diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8d6d6aaf0..b61ac08c8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,6 +3,7 @@ on: push: branches: - "stable" + - "development" pull_request: types: - opened @@ -25,4 +26,4 @@ jobs: uses: actions/upload-artifact@v3 with: name: Grasscutter - path: grasscutter.jar + path: grasscutter-*-dev.jar diff --git a/.gitignore b/.gitignore index ebb48dcaa..77647f08c 100644 --- a/.gitignore +++ b/.gitignore @@ -56,9 +56,10 @@ resources/* logs/* data/AbilityEmbryos.json data/OpenConfig.json -proto/* GM Handbook.txt config.json mitmdump.exe -grasscutter.jar -mongod.exe \ No newline at end of file +*.jar +mongod.exe +/src/generated/ +/*.sh \ No newline at end of file diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index fbab9b375..000000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "Grasscutter-Protos"] - path = Grasscutter-Protos - url = https://github.com/Melledy/Grasscutter-Protos diff --git a/Grasscutter-Protos b/Grasscutter-Protos deleted file mode 160000 index 0537e9cc4..000000000 --- a/Grasscutter-Protos +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0537e9cc4c7856a7c6f88bbbaa908a80c4ee677e diff --git a/README.md b/README.md index fdd0b1e27..d32e1ca9e 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ Grasscutter uses Gradle to handle dependencies & building. **Requirements:** -- Java SE Development Kits - 16 +- Java SE Development Kits - 17 - Git ##### Windows diff --git a/README_zh-CN.md b/README_zh-CN.md index 17f7e70f0..a2fe023b7 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -75,7 +75,7 @@ Grasscutter 使用 Gradle 来处理依赖及构建. **依赖:** -- Java SE Development Kits - 16 +- Java SE Development Kits - 17 - Git ##### Windows diff --git a/build.gradle b/build.gradle index 1be86626c..1ac88d0fa 100644 --- a/build.gradle +++ b/build.gradle @@ -6,10 +6,25 @@ * User Manual available at https://docs.gradle.org/5.6.3/userguide/tutorial_java_projects.html */ +buildscript { + repositories { + maven { url "https://plugins.gradle.org/m2/" } + } + dependencies { + classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.18' + } +} + plugins { // Apply the java plugin to add support for Java id 'java' + // Apply the protobuf auto generator + id 'com.google.protobuf' version "0.8.18" + id 'idea' + + id 'eclipse' + // Apply the application plugin to add support for building a CLI application id 'application' @@ -17,6 +32,10 @@ plugins { id 'signing' } + +sourceCompatibility = JavaVersion.VERSION_17 +targetCompatibility = JavaVersion.VERSION_17 + group = 'tech.xigam' version = '1.0.0-dev' @@ -34,7 +53,7 @@ repositories { dependencies { implementation fileTree(dir: 'lib', include: ['*.jar']) - + implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.32' implementation group: 'ch.qos.logback', name: 'logback-core', version: '1.2.9' implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.9' @@ -49,6 +68,12 @@ dependencies { implementation group: 'org.greenrobot', name: 'eventbus-java', version: '3.3.1' implementation group: 'org.danilopianini', name: 'java-quadtree', version: '0.1.9' + + implementation group: 'org.quartz-scheduler', name: 'quartz', version: '2.3.2' + implementation group: 'org.quartz-scheduler', name: 'quartz-jobs', version: '2.3.2' + + protobuf files('proto/') + } application { @@ -125,13 +150,55 @@ publishing { def releasesRepoUrl = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/' def snapshotsRepoUrl = 'https://s01.oss.sonatype.org/content/repositories/snapshots/' url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl - + name = 'sonatype' credentials(PasswordCredentials) } } } +clean { + delete protobuf.generatedFilesBaseDir +} + +protobuf { + protoc { + // The artifact spec for the Protobuf Compiler + artifact = 'com.google.protobuf:protoc:3.18.1' + } +// generatedFilesBaseDir = "$projectDir/src/main/java/emu/grasscutter/net/proto/" + generatedFilesBaseDir = "$projectDir/src/generated/" +} + +sourceSets { + main { + proto { + // In addition to the default 'src/main/proto' + srcDir 'src/generated' + } + java { + srcDir 'src/java' + } + } +} + +idea { + module { + // proto files and generated Java files are automatically added as + // source dirs. + // If you have additional sources, add them here: + sourceDirs += file("/proto/"); + } +} + +eclipse { + classpath { + file.whenMerged { cp -> + cp.entries.add( new org.gradle.plugins.ide.eclipse.model.SourceFolder('src/generated/main/java', null) ) + } + } +} + signing { sign publishing.publications.mavenJava } @@ -140,4 +207,8 @@ javadoc { if(JavaVersion.current().isJava9Compatible()) { options.addBooleanOption('html5', true) } +} + +processResources { + dependsOn "generateProto" } \ No newline at end of file diff --git a/proto/AbilityAppliedAbility.proto b/proto/AbilityAppliedAbility.proto new file mode 100755 index 000000000..87b0955a3 --- /dev/null +++ b/proto/AbilityAppliedAbility.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityString.proto"; +import "AbilityScalarValueEntry.proto"; + +message AbilityAppliedAbility { + AbilityString ability_name = 1; + AbilityString ability_override = 2; + repeated AbilityScalarValueEntry override_map = 3; + uint32 instanced_ability_id = 4; +} diff --git a/proto/AbilityAppliedModifier.proto b/proto/AbilityAppliedModifier.proto new file mode 100755 index 000000000..82972e672 --- /dev/null +++ b/proto/AbilityAppliedModifier.proto @@ -0,0 +1,23 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityString.proto"; +import "AbilityAttachedModifier.proto"; +import "ModifierDurability.proto"; + +message AbilityAppliedModifier { + int32 modifier_local_id = 1; + uint32 parent_ability_entity_id = 2; + AbilityString parent_ability_name = 3; + AbilityString parent_ability_override = 4; + uint32 instanced_ability_id = 5; + uint32 instanced_modifier_id = 6; + float exist_duration = 7; + AbilityAttachedModifier attached_instanced_modifier = 8; + uint32 apply_entity_id = 9; + bool is_attached_parent_ability = 10; + ModifierDurability modifier_durability = 11; + uint32 sbuff_uid = 12; + bool is_serverbuff_modifier = 13; +} diff --git a/proto/AbilityAttachedModifier.proto b/proto/AbilityAttachedModifier.proto new file mode 100755 index 000000000..8f996b4ba --- /dev/null +++ b/proto/AbilityAttachedModifier.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AbilityAttachedModifier { + bool is_invalid = 1; + uint32 owner_entity_id = 2; + uint32 instanced_modifier_id = 3; + bool is_serverbuff_modifier = 4; + int32 attach_name_hash = 5; +} diff --git a/proto/AbilityChangeNotify.proto b/proto/AbilityChangeNotify.proto new file mode 100755 index 000000000..9dfa12ef1 --- /dev/null +++ b/proto/AbilityChangeNotify.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityControlBlock.proto"; + +message AbilityChangeNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1112; + } + + uint32 entity_id = 1; + AbilityControlBlock ability_control_block = 2; +} diff --git a/proto/AbilityControlBlock.proto b/proto/AbilityControlBlock.proto new file mode 100755 index 000000000..eaf2e1e09 --- /dev/null +++ b/proto/AbilityControlBlock.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityEmbryo.proto"; + +message AbilityControlBlock { + repeated AbilityEmbryo ability_embryo_list = 1; +} diff --git a/proto/AbilityEmbryo.proto b/proto/AbilityEmbryo.proto new file mode 100755 index 000000000..e21840e6d --- /dev/null +++ b/proto/AbilityEmbryo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AbilityEmbryo { + uint32 ability_id = 1; + fixed32 ability_name_hash = 2; + fixed32 ability_override_name_hash = 3; +} diff --git a/proto/AbilityGadgetInfo.proto b/proto/AbilityGadgetInfo.proto new file mode 100644 index 000000000..94afb7894 --- /dev/null +++ b/proto/AbilityGadgetInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AbilityGadgetInfo { + uint32 camp_id = 1; + uint32 camp_target_type = 2; + uint32 target_entity_id = 3; +} diff --git a/proto/AbilityIdentifier.proto b/proto/AbilityIdentifier.proto new file mode 100755 index 000000000..e771d23fd --- /dev/null +++ b/proto/AbilityIdentifier.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AbilityIdentifier { + uint32 instanced_ability_id = 1; + uint32 ability_caster_id = 2; + int32 local_id = 3; + uint32 instanced_modifier_id = 4; + uint32 modifier_owner_id = 5; + bool is_serverbuff_modifier = 6; +} diff --git a/proto/AbilityInvocationsNotify.proto b/proto/AbilityInvocationsNotify.proto new file mode 100755 index 000000000..bf37fd5bb --- /dev/null +++ b/proto/AbilityInvocationsNotify.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityInvokeEntry.proto"; + +message AbilityInvocationsNotify { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 1118; + } + + repeated AbilityInvokeEntry invokes = 1; +} diff --git a/proto/AbilityInvokeArgument.proto b/proto/AbilityInvokeArgument.proto new file mode 100755 index 000000000..ec8eb0f26 --- /dev/null +++ b/proto/AbilityInvokeArgument.proto @@ -0,0 +1,54 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum AbilityInvokeArgument { + ABILITY_NONE = 0; + ABILITY_META_MODIFIER_CHANGE = 1; + ABILITY_META_COMMAND_MODIFIER_CHANGE_REQUEST = 2; + ABILITY_META_SPECIAL_FLOAT_ARGUMENT = 3; + ABILITY_META_OVERRIDE_PARAM = 4; + ABILITY_META_CLEAR_OVERRIDE_PARAM = 5; + ABILITY_META_REINIT_OVERRIDEMAP = 6; + ABILITY_META_GLOBAL_FLOAT_VALUE = 7; + ABILITY_META_CLEAR_GLOBAL_FLOAT_VALUE = 8; + ABILITY_META_ABILITY_ELEMENT_STRENGTH = 9; + ABILITY_META_ADD_OR_GET_ABILITY_AND_TRIGGER = 10; + ABILITY_META_SET_KILLED_SETATE = 11; + ABILITY_META_SET_ABILITY_TRIGGER = 12; + ABILITY_META_ADD_NEW_ABILITY = 13; + ABILITY_META_REMOVE_ABILITY = 14; + ABILITY_META_SET_MODIFIER_APPLY_ENTITY = 15; + ABILITY_META_MODIFIER_DURABILITY_CHANGE = 16; + ABILITY_META_ELEMENT_REACTION_VISUAL = 17; + ABILITY_META_SET_POSE_PARAMETER = 18; + ABILITY_META_UPDATE_BASE_REACTION_DAMAGE = 19; + ABILITY_META_TRIGGER_ELEMENT_REACTION = 20; + ABILITY_META_LOSE_HP = 21; + ABILITY_ACTION_TRIGGER_ABILITY = 50; + ABILITY_ACTION_SET_CRASH_DAMAGE = 51; + ABILITY_ACTION_EFFECT = 52; + ABILITY_ACTION_SUMMON = 53; + ABILITY_ACTION_BLINK = 54; + ABILITY_ACTION_CREATE_GADGET = 55; + ABILITY_ACTION_APPLY_LEVEL_MODIFIER = 56; + ABILITY_ACTION_GENERATE_ELEM_BALL = 57; + ABILITY_ACTION_SET_RANDOM_OVERRIDE_MAP_VALUE = 58; + ABILITY_ACTION_SERVER_MONSTER_LOG = 59; + ABILITY_ACTION_CREATE_TILE = 60; + ABILITY_ACTION_DESTROY_TILE = 61; + ABILITY_ACTION_FIRE_AFTER_IMAGE = 62; + ABILITY_MIXIN_AVATAR_STEER_BY_CAMERA = 100; + ABILITY_MIXIN_MONSTER_DEFEND = 101; + ABILITY_MIXIN_WIND_ZONE = 102; + ABILITY_MIXIN_COST_STAMINA = 103; + ABILITY_MIXIN_ELITE_SHIELD = 104; + ABILITY_MIXIN_ELEMENT_SHIELD = 105; + ABILITY_MIXIN_GLOBAL_SHIELD = 106; + ABILITY_MIXIN_SHIELD_BAR = 107; + ABILITY_MIXIN_WIND_SEED_SPAWNER = 108; + ABILITY_MIXIN_DO_ACTION_BY_ELEMENT_REACTION = 109; + ABILITY_MIXIN_FIELD_ENTITY_COUNT_CHANGE = 110; + ABILITY_MIXIN_SCENE_PROP_SYNC = 111; + ABILITY_MIXIN_WIDGET_MP_SUPPORT = 112; +} diff --git a/proto/AbilityInvokeEntry.proto b/proto/AbilityInvokeEntry.proto new file mode 100755 index 000000000..6c0fcdf51 --- /dev/null +++ b/proto/AbilityInvokeEntry.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityInvokeEntryHead.proto"; +import "AbilityInvokeArgument.proto"; +import "ForwardType.proto"; + +message AbilityInvokeEntry { + AbilityInvokeEntryHead head = 1; + AbilityInvokeArgument argument_type = 2; + bytes ability_data = 3; + uint32 entity_id = 4; + ForwardType forward_type = 5; + uint32 forward_peer = 6; + uint32 event_id = 7; + double total_tick_time = 8; +} diff --git a/proto/AbilityInvokeEntryHead.proto b/proto/AbilityInvokeEntryHead.proto new file mode 100755 index 000000000..649f0d4e4 --- /dev/null +++ b/proto/AbilityInvokeEntryHead.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AbilityInvokeEntryHead { + uint32 instanced_ability_id = 1; + uint32 instanced_modifier_id = 2; + int32 local_id = 3; + int32 modifier_config_local_id = 4; + uint32 target_id = 5; + bool is_serverbuff_modifier = 6; + uint32 server_buff_uid = 7; +} diff --git a/proto/AbilityMixinRecoverInfo.proto b/proto/AbilityMixinRecoverInfo.proto new file mode 100755 index 000000000..ac0859790 --- /dev/null +++ b/proto/AbilityMixinRecoverInfo.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MassivePropSyncInfo.proto"; + +message AbilityMixinRecoverInfo { + oneof Source { + uint32 instanced_ability_id = 1; + uint32 instanced_modifier_id = 2; + } + uint32 local_id = 3; + repeated uint32 data_list = 4; + bool is_serverbuff_modifier = 5; + repeated MassivePropSyncInfo massive_prop_list = 6; +} diff --git a/proto/AbilityScalarType.proto b/proto/AbilityScalarType.proto new file mode 100755 index 000000000..390156248 --- /dev/null +++ b/proto/AbilityScalarType.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum AbilityScalarType { + UNKNOW = 0; + FLOAT = 1; + INT = 2; + BOOL = 3; + TRIGGER = 4; + STRING = 5; + UINT = 6; +} diff --git a/proto/AbilityScalarValueEntry.proto b/proto/AbilityScalarValueEntry.proto new file mode 100755 index 000000000..2f51275d5 --- /dev/null +++ b/proto/AbilityScalarValueEntry.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityString.proto"; +import "AbilityScalarType.proto"; + +message AbilityScalarValueEntry { + oneof Value { + float float_value = 3; + string string_value = 4; + int32 int_value = 5; + uint32 uint_value = 6; + } + AbilityString key = 1; + AbilityScalarType value_type = 2; +} diff --git a/proto/AbilityString.proto b/proto/AbilityString.proto new file mode 100755 index 000000000..8462b3637 --- /dev/null +++ b/proto/AbilityString.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AbilityString { + oneof Type { + string str = 1; + uint32 hash = 2; + } +} diff --git a/proto/AbilitySyncStateInfo.proto b/proto/AbilitySyncStateInfo.proto new file mode 100755 index 000000000..2fab5e3b5 --- /dev/null +++ b/proto/AbilitySyncStateInfo.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityScalarValueEntry.proto"; +import "AbilityAppliedAbility.proto"; +import "AbilityAppliedModifier.proto"; +import "AbilityMixinRecoverInfo.proto"; + +message AbilitySyncStateInfo { + bool is_inited = 1; + repeated AbilityScalarValueEntry dynamic_value_map = 2; + repeated AbilityAppliedAbility applied_abilities = 3; + repeated AbilityAppliedModifier applied_modifiers = 4; + repeated AbilityMixinRecoverInfo mixin_recover_infos = 5; + repeated AbilityScalarValueEntry sgv_dynamic_value_map = 6; +} diff --git a/proto/ActionReasonType.proto b/proto/ActionReasonType.proto new file mode 100755 index 000000000..8539e9a69 --- /dev/null +++ b/proto/ActionReasonType.proto @@ -0,0 +1,211 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum ActionReasonType { + ACTION_REASON_NONE = 0; + ACTION_REASON_QUEST_ITEM = 1; + ACTION_REASON_QUEST_REWARD = 2; + ACTION_REASON_TRIFLE = 3; + ACTION_REASON_SHOP = 4; + ACTION_REASON_PLAYER_UPGRADE_REWARD = 5; + ACTION_REASON_ADD_AVATAR = 6; + ACTION_REASON_GADGET_ENV_ANIMAL = 7; + ACTION_REASON_MONSTER_ENV_ANIMAL = 8; + ACTION_REASON_COMPOUND = 9; + ACTION_REASON_COOK = 10; + ACTION_REASON_GATHER = 11; + ACTION_REASON_MAIL_ATTACHMENT = 12; + ACTION_REASON_CITY_LEVELUP_RETURN = 15; + ACTION_REASON_CITY_LEVELUP_REWARD = 17; + ACTION_REASON_AREA_EXPLORE_REWARD = 18; + ACTION_REASON_UNLOCK_POINT_REWARD = 19; + ACTION_REASON_DUNGEON_FIRST_PASS = 20; + ACTION_REASON_DUNGEON_PASS = 21; + ACTION_REASON_CHANGE_ELEM_TYPE = 23; + ACTION_REASON_FETTER_OPEN = 25; + ACTION_REASON_DAILY_TASK_SCORE = 26; + ACTION_REASON_DAILY_TASK_HOST = 27; + ACTION_REASON_RAND_TASK_HOST = 28; + ACTION_REASON_EXPEDITION = 29; + ACTION_REASON_GACHA = 30; + ACTION_REASON_COMBINE = 31; + ACTION_REASON_RAND_TASK_GUEST = 32; + ACTION_REASON_DAILY_TASK_GUEST = 33; + ACTION_REASON_FORGE_OUTPUT = 34; + ACTION_REASON_FORGE_RETURN = 35; + ACTION_REASON_INIT_AVATAR = 36; + ACTION_REASON_MONSTER_DIE = 37; + ACTION_REASON_GM = 38; + ACTION_REASON_OPEN_CHEST = 39; + ACTION_REASON_GADGET_DIE = 40; + ACTION_REASON_MONSTER_CHANGE_HP = 41; + ACTION_REASON_SUBFIELD_DROP = 42; + ACTION_REASON_PUSH_TIPS_REWARD = 43; + ACTION_REASON_ACTIVITY_MONSTER_DROP = 44; + ACTION_REASON_ACTIVITY_GATHER = 45; + ACTION_REASON_ACTIVITY_SUBFIELD_DROP = 46; + ACTION_REASON_TOWER_SCHEDULE_REWARD = 47; + ACTION_REASON_TOWER_FLOOR_STAR_REWARD = 48; + ACTION_REASON_TOWER_FIRST_PASS_REWARD = 49; + ACTION_REASON_TOWER_DAILY_REWARD = 50; + ACTION_REASON_HIT_CLIENT_TRIVIAL_ENTITY = 51; + ACTION_REASON_OPEN_WORLD_BOSS_CHEST = 52; + ACTION_REASON_MATERIAL_DELETE_RETURN = 53; + ACTION_REASON_SIGN_IN_REWARD = 54; + ACTION_REASON_OPEN_BLOSSOM_CHEST = 55; + ACTION_REASON_RECHARGE = 56; + ACTION_REASON_BONUS_ACTIVITY_REWARD = 57; + ACTION_REASON_TOWER_COMMEMORATIVE_REWARD = 58; + ACTION_REASON_TOWER_SKIP_FLOOR_REWARD = 59; + ACTION_REASON_RECHARGE_BONUS = 60; + ACTION_REASON_RECHARGE_CARD = 61; + ACTION_REASON_RECHARGE_CARD_DAILY = 62; + ACTION_REASON_RECHARGE_CARD_REPLACE = 63; + ACTION_REASON_RECHARGE_CARD_REPLACE_FREE = 64; + ACTION_REASON_RECHARGE_PLAY_REPLACE = 65; + ACTION_REASON_MP_PLAY_TAKE_REWARD = 66; + ACTION_REASON_ACTIVITY_WATCHER = 67; + ACTION_REASON_SALESMAN_DELIVER_ITEM = 68; + ACTION_REASON_SALESMAN_REWARD = 69; + ACTION_REASON_REBATE = 70; + ACTION_REASON_MCOIN_EXCHANGE_HCOIN = 71; + ACTION_REASON_DAILY_TASK_EXCHANGE_LEGENDARY_KEY = 72; + ACTION_REASON_UNLOCK_PERSON_LINE = 73; + ACTION_REASON_FETTER_LEVEL_REWARD = 74; + ACTION_REASON_BUY_RESIN = 75; + ACTION_REASON_RECHARGE_PACKAGE = 76; + ACTION_REASON_DELIVERY_DAILY_REWARD = 77; + ACTION_REASON_CITY_REPUTATION_LEVEL = 78; + ACTION_REASON_CITY_REPUTATION_QUEST = 79; + ACTION_REASON_CITY_REPUTATION_REQUEST = 80; + ACTION_REASON_CITY_REPUTATION_EXPLORE = 81; + ACTION_REASON_OFFERGING_LEVEL = 82; + ACTION_REASON_ROUTINE_HOST = 83; + ACTION_REASON_ROUTINE_GUEST = 84; + ACTION_REASON_TREASURE_MAP_SPOT_TOKEN = 89; + ACTION_REASON_TREASURE_MAP_BONUS_LEVEL_REWARD = 90; + ACTION_REASON_TREASURE_MAP_MP_REWARD = 91; + ACTION_REASON_CONVERT = 92; + ACTION_REASON_OVERFLOW_TRANSFORM = 93; + ACTION_REASON_ACTIVITY_AVATAR_SELECTION_REWARD = 96; + ACTION_REASON_ACTIVITY_WATCHER_BATCH = 97; + ACTION_REASON_HIT_TREE_DROP = 98; + ACTION_REASON_GET_HOME_LEVELUP_REWARD = 99; + ACTION_REASON_HOME_DEFAULT_FURNITURE = 100; + ACTION_REASON_ACTIVITY_COND = 101; + ACTION_REASON_BATTLE_PASS_NOTIFY = 102; + ACTION_REASON_RELIQUARY_DECOMPOSE = 103; + ACTION_REASON_RECHARGE_GOOGLE_GIFT_GARD = 104; + ACTION_REASON_RECHARGE_CONCERT_PRODUCT = 105; + ACTION_REASON_RECHARGE_CONCERT_PRODUCT_REPLACE = 106; + ACTION_REASON_SEND_CONCERT_PRODUCT_BY_MUIP = 107; + ACTION_REASON_RECHARGE_APPLE_GIFT_GARD = 108; + ACTION_REASON_PLAYER_USE_ITEM = 1001; + ACTION_REASON_DROP_ITEM = 1002; + ACTION_REASON_WEAPON_UPGRADE = 1011; + ACTION_REASON_WEAPON_PROMOTE = 1012; + ACTION_REASON_WEAPON_AWAKEN = 1013; + ACTION_REASON_RELIC_UPGRADE = 1014; + ACTION_REASON_ABILITY = 1015; + ACTION_REASON_DUNGEON_STATUE_DROP = 1016; + ACTION_REASON_OFFLINE_MSG = 1017; + ACTION_REASON_AVATAR_UPGRADE = 1018; + ACTION_REASON_AVATAR_PROMOTE = 1019; + ACTION_REASON_QUEST_ACTION = 1021; + ACTION_REASON_CITY_LEVELUP = 1022; + ACTION_REASON_UPGRADE_SKILL = 1024; + ACTION_REASON_UNLOCK_TALENT = 1025; + ACTION_REASON_UPGRADE_PROUD_SKILL = 1026; + ACTION_REASON_PLAYER_LEVEL_LIMIT_UP = 1027; + ACTION_REASON_DUNGEON_DAILY = 1028; + ACTION_REASON_ITEM_GIVING = 1030; + ACTION_REASON_FORGE_COST = 1031; + ACTION_REASON_INVESTIGATION_REWARD = 1032; + ACTION_REASON_INVESTIGATION_TARGET_REWARD = 1033; + ACTION_REASON_GADGET_INTERACT = 1034; + ACTION_REASON_SEA_LAMP_CI_MATERIAL = 1036; + ACTION_REASON_SEA_LAMP_CONTRIBUTION_REWARD = 1037; + ACTION_REASON_SEA_LAMP_PHASE_REWARD = 1038; + ACTION_REASON_SEA_LAMP_FLY_LAMP = 1039; + ACTION_REASON_AUTO_RECOVER = 1040; + ACTION_REASON_ACTIVITY_EXPIRE_ITEM = 1041; + ACTION_REASON_SUB_COIN_NEGATIVE = 1042; + ACTION_REASON_BARGAIN_DEDUCT = 1043; + ACTION_REASON_BATTLE_PASS_PAID_REWARD = 1044; + ACTION_REASON_BATTLE_PASS_LEVEL_REWARD = 1045; + ACTION_REASON_TRIAL_AVATAR_ACTIVITY_FIRST_PASS_REWARD = 1046; + ACTION_REASON_BUY_BATTLE_PASS_LEVEL = 1047; + ACTION_REASON_GRANT_BIRTHDAY_BENEFIT = 1048; + ACTION_REASON_ACHIEVEMENT_REWARD = 1049; + ACTION_REASON_ACHIEVEMENT_GOAL_REWARD = 1050; + ACTION_REASON_FIRST_SHARE_TO_SOCIAL_NETWORK = 1051; + ACTION_REASON_DESTROY_MATERIAL = 1052; + ACTION_REASON_CODEX_LEVELUP_REWARD = 1053; + ACTION_REASON_HUNTING_OFFER_REWARD = 1054; + ACTION_REASON_USE_WIDGET_ANCHOR_POINT = 1055; + ACTION_REASON_USE_WIDGET_BONFIRE = 1056; + ACTION_REASON_UNGRADE_WEAPON_RETURN_MATERIAL = 1057; + ACTION_REASON_USE_WIDGET_ONEOFF_GATHER_POINT_DETECTOR = 1058; + ACTION_REASON_USE_WIDGET_CLIENT_COLLECTOR = 1059; + ACTION_REASON_USE_WIDGET_CLIENT_DETECTOR = 1060; + ACTION_REASON_TAKE_GENERAL_REWARD = 1061; + ACTION_REASON_ASTER_TAKE_SPECIAL_REWARD = 1062; + ACTION_REASON_REMOVE_CODEX_BOOK = 1063; + ACTION_REASON_OFFERING_ITEM = 1064; + ACTION_REASON_USE_WIDGET_GADGET_BUILDER = 1065; + ACTION_REASON_EFFIGY_FIRST_PASS_REWARD = 1066; + ACTION_REASON_EFFIGY_REWARD = 1067; + ACTION_REASON_REUNION_FIRST_GIFT_REWARD = 1068; + ACTION_REASON_REUNION_SIGN_IN_REWARD = 1069; + ACTION_REASON_REUNION_WATCHER_REWARD = 1070; + ACTION_REASON_SALESMAN_MP_REWARD = 1071; + ACTION_REASION_AVATAR_PROMOTE_REWARD = 1072; + ACTION_REASON_BLESSING_REDEEM_REWARD = 1073; + ACTION_MIRACLE_RING_REWARD = 1074; + ACTION_REASON_EXPEDITION_REWARD = 1075; + ACTION_REASON_TREASURE_MAP_REMOVE_DETECTOR = 1076; + ACTION_REASON_MECHANICUS_DUNGEON_TICKET = 1077; + ACTION_REASON_MECHANICUS_LEVELUP_GEAR = 1078; + ACTION_REASON_MECHANICUS_BATTLE_SETTLE = 1079; + ACTION_REASON_REGION_SEARCH_REWARD = 1080; + ACTION_REASON_UNLOCK_COOP_CHAPTER = 1081; + ACTION_REASON_TAKE_COOP_REWARD = 1082; + ACTION_REASON_FLEUR_FAIR_DUNGEON_REWARD = 1083; + ACTION_REASON_ACTIVITY_SCORE = 1084; + ACTION_REASON_CHANNELLER_SLAB_ONEOFF_DUNGEON_REWARD = 1085; + ACTION_REASON_FURNITURE_MAKE_START = 1086; + ACTION_REASON_FURNITURE_MAKE_TAKE = 1087; + ACTION_REASON_FURNITURE_MAKE_CANCEL = 1088; + ACTION_REASON_FURNITURE_MAKE_FAST_FINISH = 1089; + ACTION_REASON_CHANNELLER_SLAB_LOOP_DUNGEON_FIRST_PASS_REWARD = 1090; + ACTION_REASON_CHANNELLER_SLAB_LOOP_DUNGEON_SCORE_REWARD = 1091; + ACTION_REASON_HOME_LIMITED_SHOP_BUY = 1092; + ACTION_REASON_HOME_COIN_COLLECT = 1093; + ACTION_REASON_SUMMER_TIME_SENTRY_TOWER_REWARD = 1094; + ACTION_REASON_SUMMER_TIME_SPRINT_BOAT_REWARD = 1095; + ACTION_REASON_SUMMER_TIME_BOSS_REWARD = 1096; + ACTION_REASON_SUMMER_TIME_BOMB_REWARD = 1097; + ACTION_REASON_HOME_FETTER_COLLECT = 1098; + ACTION_REASON_ECHO_SHELL_REWARD = 1099; + ACTION_REASON_HOME_EVENT_REWARD = 1100; + ACTION_REASON_BLITZ_RUSH_DUNGEON_REWARD = 1101; + ACTION_REASON_FURNITURE_MAKE_RETURN = 1102; + ACTION_REASON_HOME_PLANT_BOX_GATHER = 1103; + ACTION_REASON_HOME_PLANT_SEED = 1104; + ACTION_REASON_HOME_PLANT_GATHER = 1105; + ACTION_REASON_CHESS_DUNGEON_REWARD = 1106; + ACTION_REASON_GROUP_LINK_BUNDLE_FINISH = 1107; + ACTION_REASON_LUNA_RITE_SACRIFICE = 1108; + ACTION_REASON_LUNA_RITE_TAKE_SACRIFICE_REWARD = 1109; + ACTION_REASON_FISH_BITE = 1110; + ACTION_REASON_FISH_SUCC = 1111; + ACTION_REASON_PLANT_FLOWER_REWARD = 1112; + ACTION_REASON_PLANT_FLOWER_DELIVER_ITEM = 1113; + ACTION_REASON_PLANT_FLOWER_GIVE_FLOWER = 1114; + ACTION_REASON_PLANT_FLOWER_RECV_FLOWER = 1115; + ACTION_REASON_ROGUE_CHALLENGE_SETTLE = 1116; + ACTION_REASON_ROGUE_TAKE_FIRST_PASS_REWARD = 1117; + ACTION_REASON_ROGUE_UPGRADE_SHIKIGAMI = 1118; + ACTION_REASON_ROGUE_REFRESH_CARD = 1119; +} diff --git a/proto/ActivityInfo.proto b/proto/ActivityInfo.proto new file mode 100755 index 000000000..373c8e2e5 --- /dev/null +++ b/proto/ActivityInfo.proto @@ -0,0 +1,62 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ActivityNullDetailInfo.proto"; +import "ActivityWatcherInfo.proto"; + +message ActivityInfo { + oneof Detail { + ActivityNullDetailInfo sam_lamp_info = 11; + ActivityNullDetailInfo crucible_info = 12; + ActivityNullDetailInfo salesman_info = 13; + ActivityNullDetailInfo trial_avatar_info = 14; + ActivityNullDetailInfo delivery_info = 16; + ActivityNullDetailInfo aster_info = 21; + ActivityNullDetailInfo flight_info = 25; + ActivityNullDetailInfo dragon_spine_info = 31; + ActivityNullDetailInfo effigy_info = 32; + ActivityNullDetailInfo treasure_map_info = 35; + ActivityNullDetailInfo blessing_info = 41; + ActivityNullDetailInfo sea_lamp_info = 42; + ActivityNullDetailInfo expedition_info = 43; + ActivityNullDetailInfo arena_challenge_info = 44; + ActivityNullDetailInfo fleur_fair_info = 51; + ActivityNullDetailInfo water_spirit_info = 52; + ActivityNullDetailInfo challneler_slab_info = 61; + ActivityNullDetailInfo mist_trial_activity_info = 62; + ActivityNullDetailInfo hide_and_seek_info = 63; + ActivityNullDetailInfo find_hilichurl_info = 64; + ActivityNullDetailInfo summer_time_info = 65; + ActivityNullDetailInfo buoyant_combat_info = 66; + ActivityNullDetailInfo echo_shell_info = 67; + ActivityNullDetailInfo bounce_conjuring_info = 68; + ActivityNullDetailInfo blitz_rush_info = 69; + ActivityNullDetailInfo chess_info = 70; + ActivityNullDetailInfo sumo_info = 71; + ActivityNullDetailInfo moonfin_trial_info = 72; + ActivityNullDetailInfo luna_rite_info = 73; + ActivityNullDetailInfo plant_flower_info = 74; + ActivityNullDetailInfo music_game_info = 75; + ActivityNullDetailInfo roguelike_dungoen_info = 76; + ActivityNullDetailInfo dig_info = 77; + } + uint32 activity_id = 1; + uint32 schedule_id = 2; + uint32 begin_time = 3; + uint32 end_time = 4; + uint32 activity_type = 5; + bool is_play_open_anim = 6; + bool is_finished = 7; + bool is_starting = 8; + repeated ActivityWatcherInfo watcher_info_list = 9; + repeated uint32 meet_cond_list = 10; + repeated uint32 expire_cond_list = 15; + uint32 selected_avatar_reward_id = 17; + map activity_coin_map = 18; + uint32 score_limit = 19; + uint32 cur_score = 20; + repeated uint32 taken_reward_list = 24; + bool is_hidden = 26; + uint32 first_day_start_time = 27; +} diff --git a/proto/ActivityNullDetailInfo.proto b/proto/ActivityNullDetailInfo.proto new file mode 100755 index 000000000..90ee7844e --- /dev/null +++ b/proto/ActivityNullDetailInfo.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ActivityNullDetailInfo { + +} diff --git a/proto/ActivityWatcherInfo.proto b/proto/ActivityWatcherInfo.proto new file mode 100755 index 000000000..fa82861c8 --- /dev/null +++ b/proto/ActivityWatcherInfo.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ActivityWatcherInfo { + uint32 watcher_id = 1; + uint32 cur_progress = 2; + uint32 total_progress = 3; + bool is_taken_reward = 4; +} diff --git a/proto/AdjustTrackingInfo.proto b/proto/AdjustTrackingInfo.proto new file mode 100644 index 000000000..06c41ea9f --- /dev/null +++ b/proto/AdjustTrackingInfo.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AdjustTrackingInfo { + string idfa = 1; + string gps_adid = 2; + string fire_adid = 3; + string adid = 4; + string event_token = 5; + string app_token = 6; +} diff --git a/proto/AiSkillCdInfo.proto b/proto/AiSkillCdInfo.proto new file mode 100755 index 000000000..e0e205730 --- /dev/null +++ b/proto/AiSkillCdInfo.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AiSkillCdInfo { + map skill_cd_map = 1; + map skill_group_cd_map = 2; +} diff --git a/proto/AiSyncInfo.proto b/proto/AiSyncInfo.proto new file mode 100755 index 000000000..b279f2021 --- /dev/null +++ b/proto/AiSyncInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AiSyncInfo { + uint32 entity_id = 1; + bool has_path_to_target = 2; + bool is_self_killing = 3; +} diff --git a/proto/AiThreatInfo.proto b/proto/AiThreatInfo.proto new file mode 100755 index 000000000..24e2083d0 --- /dev/null +++ b/proto/AiThreatInfo.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AiThreatInfo { + map ai_threat_map = 1; +} diff --git a/proto/AnimatorParameterValueInfo.proto b/proto/AnimatorParameterValueInfo.proto new file mode 100755 index 000000000..fd74b7e42 --- /dev/null +++ b/proto/AnimatorParameterValueInfo.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AnimatorParameterValueInfo { + oneof ParaVal { + int32 int_val = 2; + float float_val = 3; + bool bool_val = 4; + } + uint32 para_type = 1; +} diff --git a/proto/AnimatorParameterValueInfoPair.proto b/proto/AnimatorParameterValueInfoPair.proto new file mode 100755 index 000000000..c0e77578d --- /dev/null +++ b/proto/AnimatorParameterValueInfoPair.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AnimatorParameterValueInfo.proto"; + +message AnimatorParameterValueInfoPair { + int32 name_id = 1; + AnimatorParameterValueInfo animator_para = 2; +} diff --git a/proto/AskAddFriendNotify.proto b/proto/AskAddFriendNotify.proto new file mode 100755 index 000000000..647ca561e --- /dev/null +++ b/proto/AskAddFriendNotify.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "FriendBrief.proto"; + +message AskAddFriendNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 4006; + } + + uint32 target_uid = 1; + FriendBrief target_friend_brief = 2; +} diff --git a/proto/AskAddFriendReq.proto b/proto/AskAddFriendReq.proto new file mode 100755 index 000000000..65c89ea21 --- /dev/null +++ b/proto/AskAddFriendReq.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AskAddFriendReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 4100; + } + + uint32 target_uid = 1; +} diff --git a/proto/AskAddFriendRsp.proto b/proto/AskAddFriendRsp.proto new file mode 100755 index 000000000..12493c5bd --- /dev/null +++ b/proto/AskAddFriendRsp.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AskAddFriendRsp { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 4001; + } + + int32 retcode = 1; + uint32 target_uid = 2; + uint32 param = 3; +} diff --git a/proto/AttackHitEffectResult.proto b/proto/AttackHitEffectResult.proto new file mode 100755 index 000000000..b3e0ec3d4 --- /dev/null +++ b/proto/AttackHitEffectResult.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AttackHitEffectResult { + uint32 hit_eff_level = 1; + float retreat_strength = 2; + float air_strength = 3; + float hit_halt_time = 4; + float hit_halt_time_scale = 5; + uint32 original_hit_eff_level = 6; +} diff --git a/proto/AttackResult.proto b/proto/AttackResult.proto new file mode 100755 index 000000000..6b55dd587 --- /dev/null +++ b/proto/AttackResult.proto @@ -0,0 +1,40 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityIdentifier.proto"; +import "HitCollision.proto"; +import "Vector.proto"; +import "AttackHitEffectResult.proto"; + +message AttackResult { + uint32 attacker_id = 1; + uint32 defense_id = 2; + string anim_event_id = 3; + AbilityIdentifier ability_identifier = 4; + float damage = 6; + bool is_crit = 7; + HitCollision hit_collision = 8; + uint32 hit_pos_type = 9; + uint32 endure_break = 10; + Vector resolved_dir = 11; + int32 hit_retreat_angle_compat = 12; + AttackHitEffectResult hit_eff_result = 13; + uint32 element_type = 14; + bool use_gadget_damage_action = 19; + uint32 gadget_damage_action_idx = 20; + bool is_resist_text = 22; + uint32 critical_rand = 23; + float element_amplify_rate = 24; + float damage_shield = 26; + bool mute_element_hurt = 27; + uint32 amplify_reaction_type = 30; + uint32 addhurt_reaction_type = 31; + uint32 bullet_fly_time_ms = 32; + uint32 attack_count = 33; + uint32 hashed_anim_event_id = 34; + uint32 attack_timestamp_ms = 36; + float endure_delta = 37; + uint32 target_type = 38; + float element_durability_attenuation = 39; +} diff --git a/proto/AvatarAddNotify.proto b/proto/AvatarAddNotify.proto new file mode 100755 index 000000000..72375aa8f --- /dev/null +++ b/proto/AvatarAddNotify.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AvatarInfo.proto"; + +message AvatarAddNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1795; + } + + AvatarInfo avatar = 1; + bool is_in_team = 2; +} diff --git a/proto/AvatarChangeCostumeNotify.proto b/proto/AvatarChangeCostumeNotify.proto new file mode 100755 index 000000000..cb4c611a4 --- /dev/null +++ b/proto/AvatarChangeCostumeNotify.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "SceneEntityInfo.proto"; + +message AvatarChangeCostumeNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1724; + } + + SceneEntityInfo entity_info = 1; +} diff --git a/proto/AvatarChangeCostumeReq.proto b/proto/AvatarChangeCostumeReq.proto new file mode 100755 index 000000000..5da0ffd94 --- /dev/null +++ b/proto/AvatarChangeCostumeReq.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AvatarChangeCostumeReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 1606; + } + + uint64 avatar_guid = 1; + uint32 costume_id = 2; +} diff --git a/proto/AvatarChangeCostumeRsp.proto b/proto/AvatarChangeCostumeRsp.proto new file mode 100755 index 000000000..e4e60bc94 --- /dev/null +++ b/proto/AvatarChangeCostumeRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AvatarChangeCostumeRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1748; + } + + int32 retcode = 1; + uint64 avatar_guid = 2; + uint32 costume_id = 3; +} diff --git a/proto/AvatarDataNotify.proto b/proto/AvatarDataNotify.proto new file mode 100755 index 000000000..dd93c8c35 --- /dev/null +++ b/proto/AvatarDataNotify.proto @@ -0,0 +1,24 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AvatarInfo.proto"; +import "AvatarTeam.proto"; + +message AvatarDataNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1694; + } + + repeated AvatarInfo avatar_list = 1; + map avatar_team_map = 2; + uint32 cur_avatar_team_id = 3; + fixed64 choose_avatar_guid = 4; + repeated uint64 temp_avatar_guid_list = 5; + repeated uint32 owned_flycloak_list = 6; + repeated uint32 owned_costume_list = 7; +} diff --git a/proto/AvatarDieAnimationEndReq.proto b/proto/AvatarDieAnimationEndReq.proto new file mode 100755 index 000000000..de301fc9f --- /dev/null +++ b/proto/AvatarDieAnimationEndReq.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Vector.proto"; + +message AvatarDieAnimationEndReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 1737; + } + + uint64 die_guid = 1; + uint32 skill_id = 2; + Vector reborn_pos = 3; +} diff --git a/proto/AvatarDieAnimationEndRsp.proto b/proto/AvatarDieAnimationEndRsp.proto new file mode 100755 index 000000000..58c9ecb7c --- /dev/null +++ b/proto/AvatarDieAnimationEndRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AvatarDieAnimationEndRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1697; + } + + int32 retcode = 1; + uint64 die_guid = 2; + uint32 skill_id = 3; +} diff --git a/proto/AvatarEnterSceneInfo.proto b/proto/AvatarEnterSceneInfo.proto new file mode 100755 index 000000000..448ddb994 --- /dev/null +++ b/proto/AvatarEnterSceneInfo.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilitySyncStateInfo.proto"; +import "ServerBuff.proto"; + +message AvatarEnterSceneInfo { + uint64 avatar_guid = 1; + uint32 avatar_entity_id = 2; + AbilitySyncStateInfo avatar_ability_info = 3; + repeated uint32 buff_id_list = 4; + uint64 weapon_guid = 5; + uint32 weapon_entity_id = 6; + AbilitySyncStateInfo weapon_ability_info = 7; + repeated ServerBuff server_buff_list = 8; +} diff --git a/proto/AvatarEquipAffixInfo.proto b/proto/AvatarEquipAffixInfo.proto new file mode 100755 index 000000000..ef4a49fa4 --- /dev/null +++ b/proto/AvatarEquipAffixInfo.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AvatarEquipAffixInfo { + uint32 equip_affix_id = 1; + uint32 left_cd_time = 2; +} diff --git a/proto/AvatarEquipChangeNotify.proto b/proto/AvatarEquipChangeNotify.proto new file mode 100755 index 000000000..c69c73f82 --- /dev/null +++ b/proto/AvatarEquipChangeNotify.proto @@ -0,0 +1,24 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "SceneWeaponInfo.proto"; +import "SceneReliquaryInfo.proto"; + +message AvatarEquipChangeNotify { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 615; + } + + uint64 avatar_guid = 1; + uint32 equip_type = 2; + uint32 item_id = 3; + uint64 equip_guid = 4; + SceneWeaponInfo weapon = 5; + SceneReliquaryInfo reliquary = 6; +} diff --git a/proto/AvatarExcelInfo.proto b/proto/AvatarExcelInfo.proto new file mode 100644 index 000000000..901b60e0c --- /dev/null +++ b/proto/AvatarExcelInfo.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarExcelInfo { + uint64 prefab_path_hash = 1; + uint64 prefab_path_remote_hash = 2; + uint64 controller_path_hash = 3; + uint64 controller_path_remote_hash = 4; + uint64 combat_config_hash = 5; +} diff --git a/proto/AvatarExpeditionState.proto b/proto/AvatarExpeditionState.proto new file mode 100755 index 000000000..7b43570a6 --- /dev/null +++ b/proto/AvatarExpeditionState.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum AvatarExpeditionState { + AVATAR_EXPEDITION_NONE = 0; + AVATAR_EXPEDITION_DOING = 1; + AVATAR_EXPEDITION_FINISH_WAIT_REWARD = 2; + AVATAR_EXPEDITION_CALLBACK_WAIT_REWARD = 3; + AVATAR_EXPEDITION_LOCKED = 4; +} diff --git a/proto/AvatarFetterDataNotify.proto b/proto/AvatarFetterDataNotify.proto new file mode 100644 index 000000000..cace9aba6 --- /dev/null +++ b/proto/AvatarFetterDataNotify.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AvatarFetterInfo.proto"; + +message AvatarFetterDataNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1685; + } + + map fetter_info_map = 1; +} diff --git a/proto/AvatarFetterInfo.proto b/proto/AvatarFetterInfo.proto new file mode 100755 index 000000000..00f3f6032 --- /dev/null +++ b/proto/AvatarFetterInfo.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "FetterData.proto"; + +message AvatarFetterInfo { + uint32 exp_number = 1; + uint32 exp_level = 2; + repeated uint32 open_id_list = 3; + repeated uint32 finish_id_list = 4; + repeated uint32 rewarded_fetter_level_list = 5; + repeated FetterData fetter_list = 6; +} diff --git a/proto/AvatarFetterLevelRewardReq.proto b/proto/AvatarFetterLevelRewardReq.proto new file mode 100644 index 000000000..56d941a7a --- /dev/null +++ b/proto/AvatarFetterLevelRewardReq.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarFetterLevelRewardReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 1624; + } + + uint64 avatar_guid = 1; + uint32 fetter_level = 2; +} diff --git a/proto/AvatarFetterLevelRewardRsp.proto b/proto/AvatarFetterLevelRewardRsp.proto new file mode 100644 index 000000000..0fbc864e8 --- /dev/null +++ b/proto/AvatarFetterLevelRewardRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarFetterLevelRewardRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1704; + } + + int32 retcode = 1; + uint64 avatar_guid = 2; + uint32 fetter_level = 3; + uint32 reward_id = 4; +} diff --git a/proto/AvatarFightPropNotify.proto b/proto/AvatarFightPropNotify.proto new file mode 100755 index 000000000..00a50c17d --- /dev/null +++ b/proto/AvatarFightPropNotify.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AvatarFightPropNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1300; + } + + uint64 avatar_guid = 1; + map fight_prop_map = 2; +} diff --git a/proto/AvatarFightPropUpdateNotify.proto b/proto/AvatarFightPropUpdateNotify.proto new file mode 100755 index 000000000..c187c2968 --- /dev/null +++ b/proto/AvatarFightPropUpdateNotify.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AvatarFightPropUpdateNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1201; + } + + uint64 avatar_guid = 1; + map fight_prop_map = 2; +} diff --git a/proto/AvatarFlycloakChangeNotify.proto b/proto/AvatarFlycloakChangeNotify.proto new file mode 100755 index 000000000..e7a92573f --- /dev/null +++ b/proto/AvatarFlycloakChangeNotify.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AvatarFlycloakChangeNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1759; + } + + uint64 avatar_guid = 1; + uint32 flycloak_id = 2; +} diff --git a/proto/AvatarGainCostumeNotify.proto b/proto/AvatarGainCostumeNotify.proto new file mode 100755 index 000000000..2989054c6 --- /dev/null +++ b/proto/AvatarGainCostumeNotify.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AvatarGainCostumeNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1734; + } + + uint32 costume_id = 1; +} diff --git a/proto/AvatarGainFlycloakNotify.proto b/proto/AvatarGainFlycloakNotify.proto new file mode 100755 index 000000000..a3450d09d --- /dev/null +++ b/proto/AvatarGainFlycloakNotify.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AvatarGainFlycloakNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1604; + } + + uint32 flycloak_id = 1; +} diff --git a/proto/AvatarInfo.proto b/proto/AvatarInfo.proto new file mode 100755 index 000000000..3b77c9040 --- /dev/null +++ b/proto/AvatarInfo.proto @@ -0,0 +1,40 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "TrialAvatarInfo.proto"; +import "AvatarFetterInfo.proto"; +import "AvatarExpeditionState.proto"; +import "AvatarExcelInfo.proto"; +import "PropValue.proto"; +import "AvatarSkillInfo.proto"; +import "AvatarEquipAffixInfo.proto"; + +message AvatarInfo { + uint32 avatar_id = 1; + uint64 guid = 2; + map prop_map = 3; + uint32 life_state = 4; + repeated uint64 equip_guid_list = 5; + repeated uint32 talent_id_list = 6; + map fight_prop_map = 7; + TrialAvatarInfo trial_avatar_info = 9; + map skill_map = 10; + uint32 skill_depot_id = 11; + AvatarFetterInfo fetter_info = 12; + uint32 core_proud_skill_level = 13; + repeated uint32 inherent_proud_skill_list = 14; + map skill_level_map = 15; + AvatarExpeditionState expedition_state = 16; + map proud_skill_extra_level_map = 17; + bool is_focus = 18; + uint32 avatar_type = 19; + repeated uint32 team_resonance_list = 20; + uint32 wearing_flycloak_id = 21; + repeated AvatarEquipAffixInfo equip_affix_list = 22; + uint32 born_time = 23; + repeated uint32 pending_promote_reward_list = 24; + uint32 costume_id = 25; + AvatarExcelInfo excel_info = 26; + uint32 anim_hash = 27; +} diff --git a/proto/AvatarLifeStateChangeNotify.proto b/proto/AvatarLifeStateChangeNotify.proto new file mode 100755 index 000000000..9b0b8102d --- /dev/null +++ b/proto/AvatarLifeStateChangeNotify.proto @@ -0,0 +1,24 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PlayerDieType.proto"; +import "ServerBuff.proto"; + +message AvatarLifeStateChangeNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1242; + } + + uint64 avatar_guid = 1; + uint32 life_state = 2; + uint32 source_entity_id = 3; + string attack_tag = 4; + PlayerDieType die_type = 5; + uint32 move_reliable_seq = 6; + repeated ServerBuff server_buff_list = 7; +} diff --git a/proto/AvatarPromoteGetRewardReq.proto b/proto/AvatarPromoteGetRewardReq.proto new file mode 100755 index 000000000..1f9d73fb7 --- /dev/null +++ b/proto/AvatarPromoteGetRewardReq.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarPromoteGetRewardReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 1701; + } + + uint64 avatar_guid = 1; + uint32 promote_level = 2; +} diff --git a/proto/AvatarPromoteGetRewardRsp.proto b/proto/AvatarPromoteGetRewardRsp.proto new file mode 100755 index 000000000..a4cae2bca --- /dev/null +++ b/proto/AvatarPromoteGetRewardRsp.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AvatarPromoteGetRewardRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1764; + } + + int32 retcode = 1; + uint64 avatar_guid = 2; + uint32 promote_level = 3; + uint32 reward_id = 4; +} diff --git a/proto/AvatarPromoteReq.proto b/proto/AvatarPromoteReq.proto new file mode 100755 index 000000000..1f14f38bd --- /dev/null +++ b/proto/AvatarPromoteReq.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AvatarPromoteReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 1692; + } + + uint64 guid = 1; +} diff --git a/proto/AvatarPromoteRsp.proto b/proto/AvatarPromoteRsp.proto new file mode 100755 index 000000000..3e1287006 --- /dev/null +++ b/proto/AvatarPromoteRsp.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AvatarPromoteRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1728; + } + + int32 retcode = 1; + uint64 guid = 2; +} diff --git a/proto/AvatarPropNotify.proto b/proto/AvatarPropNotify.proto new file mode 100755 index 000000000..46e7d41ac --- /dev/null +++ b/proto/AvatarPropNotify.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AvatarPropNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1212; + } + + uint64 avatar_guid = 1; + map prop_map = 2; +} diff --git a/proto/AvatarSkillChangeNotify.proto b/proto/AvatarSkillChangeNotify.proto new file mode 100755 index 000000000..e0a10ac75 --- /dev/null +++ b/proto/AvatarSkillChangeNotify.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AvatarSkillChangeNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1091; + } + + uint64 avatar_guid = 1; + uint32 entity_id = 2; + uint32 skill_depot_id = 3; + uint32 avatar_skill_id = 4; + uint32 old_level = 5; + uint32 cur_level = 6; +} diff --git a/proto/AvatarSkillInfo.proto b/proto/AvatarSkillInfo.proto new file mode 100755 index 000000000..da5c086c7 --- /dev/null +++ b/proto/AvatarSkillInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AvatarSkillInfo { + uint32 pass_cd_time = 1; + repeated uint32 full_cd_time_list = 2; + uint32 max_charge_count = 3; +} diff --git a/proto/AvatarSkillUpgradeReq.proto b/proto/AvatarSkillUpgradeReq.proto new file mode 100755 index 000000000..02ff7373d --- /dev/null +++ b/proto/AvatarSkillUpgradeReq.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AvatarSkillUpgradeReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 1026; + } + + uint64 avatar_guid = 1; + uint32 avatar_skill_id = 2; + uint32 old_level = 3; +} diff --git a/proto/AvatarSkillUpgradeRsp.proto b/proto/AvatarSkillUpgradeRsp.proto new file mode 100755 index 000000000..7ec89d675 --- /dev/null +++ b/proto/AvatarSkillUpgradeRsp.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AvatarSkillUpgradeRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1024; + } + + int32 retcode = 1; + uint64 avatar_guid = 2; + uint32 avatar_skill_id = 3; + uint32 old_level = 4; + uint32 cur_level = 5; +} diff --git a/proto/AvatarTeam.proto b/proto/AvatarTeam.proto new file mode 100755 index 000000000..08b4885e6 --- /dev/null +++ b/proto/AvatarTeam.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AvatarTeam { + repeated uint64 avatar_guid_list = 1; + string team_name = 2; +} diff --git a/proto/AvatarTeamResonanceInfo.proto b/proto/AvatarTeamResonanceInfo.proto new file mode 100755 index 000000000..b5569065b --- /dev/null +++ b/proto/AvatarTeamResonanceInfo.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AvatarTeamResonanceInfo { + uint32 entity_id = 1; + uint64 avatar_guid = 2; + repeated uint32 add_team_resonance_id_list = 3; + repeated uint32 del_team_resonance_id_list = 4; +} diff --git a/proto/AvatarTeamUpdateNotify.proto b/proto/AvatarTeamUpdateNotify.proto new file mode 100755 index 000000000..ec6dbbda4 --- /dev/null +++ b/proto/AvatarTeamUpdateNotify.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AvatarTeam.proto"; + +message AvatarTeamUpdateNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1642; + } + + map avatar_team_map = 1; + repeated uint64 temp_avatar_guid_list = 2; +} diff --git a/proto/AvatarUnlockTalentNotify.proto b/proto/AvatarUnlockTalentNotify.proto new file mode 100755 index 000000000..b883c7dfc --- /dev/null +++ b/proto/AvatarUnlockTalentNotify.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AvatarUnlockTalentNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1089; + } + + uint64 avatar_guid = 1; + uint32 entity_id = 2; + uint32 talent_id = 3; + uint32 skill_depot_id = 4; +} diff --git a/proto/AvatarUpgradeReq.proto b/proto/AvatarUpgradeReq.proto new file mode 100755 index 000000000..cc561e7bb --- /dev/null +++ b/proto/AvatarUpgradeReq.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AvatarUpgradeReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 1691; + } + + uint32 item_id = 1; + uint32 count = 2; + uint64 avatar_guid = 3; +} diff --git a/proto/AvatarUpgradeRsp.proto b/proto/AvatarUpgradeRsp.proto new file mode 100755 index 000000000..f3a8f8ad7 --- /dev/null +++ b/proto/AvatarUpgradeRsp.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AvatarUpgradeRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1720; + } + + int32 retcode = 1; + uint64 avatar_guid = 2; + uint32 old_level = 3; + uint32 cur_level = 4; + map old_fight_prop_map = 5; + map cur_fight_prop_map = 6; +} diff --git a/proto/AvatarWearFlycloakReq.proto b/proto/AvatarWearFlycloakReq.proto new file mode 100755 index 000000000..aa99c6df4 --- /dev/null +++ b/proto/AvatarWearFlycloakReq.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AvatarWearFlycloakReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 1635; + } + + uint64 avatar_guid = 1; + uint32 flycloak_id = 2; +} diff --git a/proto/AvatarWearFlycloakRsp.proto b/proto/AvatarWearFlycloakRsp.proto new file mode 100755 index 000000000..a78f0cada --- /dev/null +++ b/proto/AvatarWearFlycloakRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message AvatarWearFlycloakRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1709; + } + + int32 retcode = 1; + uint64 avatar_guid = 2; + uint32 flycloak_id = 3; +} diff --git a/proto/Birthday.proto b/proto/Birthday.proto new file mode 100755 index 000000000..027a9ed39 --- /dev/null +++ b/proto/Birthday.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message Birthday { + uint32 month = 1; + uint32 day = 2; +} diff --git a/proto/BlockInfo.proto b/proto/BlockInfo.proto new file mode 100755 index 000000000..93ecdad4f --- /dev/null +++ b/proto/BlockInfo.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message BlockInfo { + uint32 block_id = 1; + uint32 data_version = 2; + bytes bin_data = 3; + bool is_dirty = 4; +} diff --git a/proto/BlossomBriefInfo.proto b/proto/BlossomBriefInfo.proto new file mode 100644 index 000000000..884add468 --- /dev/null +++ b/proto/BlossomBriefInfo.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Vector.proto"; + +message BlossomBriefInfo { + uint32 refresh_id = 1; + uint32 circle_camp_id = 2; + uint32 city_id = 3; + uint32 resin = 4; + Vector pos = 5; + uint32 reward_id = 6; + uint32 monster_level = 7; + bool is_guide_opened = 8; + uint32 state = 9; + uint32 scene_id = 10; +} diff --git a/proto/BlossomChestInfo.proto b/proto/BlossomChestInfo.proto new file mode 100644 index 000000000..16d6099ca --- /dev/null +++ b/proto/BlossomChestInfo.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message BlossomChestInfo { + uint32 resin = 1; + repeated uint32 qualify_uid_list = 2; + repeated uint32 remain_uid_list = 3; + uint32 dead_time = 4; + uint32 blossom_refresh_type = 5; + uint32 refresh_id = 6; +} diff --git a/proto/BossChestInfo.proto b/proto/BossChestInfo.proto new file mode 100644 index 000000000..72edf1af8 --- /dev/null +++ b/proto/BossChestInfo.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "WeeklyBossResinDiscountInfo.proto"; + +message BossChestInfo { + uint32 monster_config_id = 1; + uint32 resin = 2; + repeated uint32 remain_uid_list = 3; + repeated uint32 qualify_uid_list = 4; + map uid_discount_map = 5; +} diff --git a/proto/BuildingInfo.proto b/proto/BuildingInfo.proto new file mode 100644 index 000000000..1d0262078 --- /dev/null +++ b/proto/BuildingInfo.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message BuildingInfo { + uint32 building_id = 1; + uint32 point_config_id = 2; + uint32 cost = 3; + uint32 level = 4; + uint32 refund = 5; + uint32 owner_uid = 6; +} diff --git a/proto/CalcWeaponUpgradeReturnItemsReq.proto b/proto/CalcWeaponUpgradeReturnItemsReq.proto new file mode 100755 index 000000000..1a7c5a858 --- /dev/null +++ b/proto/CalcWeaponUpgradeReturnItemsReq.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message CalcWeaponUpgradeReturnItemsReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 669; + } + + uint64 target_weapon_guid = 1; + repeated uint64 food_weapon_guid_list = 2; + repeated ItemParam item_param_list = 3; +} diff --git a/proto/CalcWeaponUpgradeReturnItemsRsp.proto b/proto/CalcWeaponUpgradeReturnItemsRsp.proto new file mode 100755 index 000000000..a3d78aa87 --- /dev/null +++ b/proto/CalcWeaponUpgradeReturnItemsRsp.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message CalcWeaponUpgradeReturnItemsRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 660; + } + + int32 retcode = 1; + uint64 target_weapon_guid = 2; + repeated ItemParam item_param_list = 3; +} diff --git a/proto/CardProductRewardNotify.proto b/proto/CardProductRewardNotify.proto new file mode 100644 index 000000000..109e685e1 --- /dev/null +++ b/proto/CardProductRewardNotify.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message CardProductRewardNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 4105; + } + + string product_id = 1; + uint32 hcoin = 2; + uint32 remain_days = 3; +} diff --git a/proto/ChangeAvatarReq.proto b/proto/ChangeAvatarReq.proto new file mode 100755 index 000000000..d6fdc2b1c --- /dev/null +++ b/proto/ChangeAvatarReq.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Vector.proto"; + +message ChangeAvatarReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 1669; + } + + uint64 guid = 1; + uint32 skill_id = 2; + bool is_move = 3; + Vector move_pos = 4; +} diff --git a/proto/ChangeAvatarRsp.proto b/proto/ChangeAvatarRsp.proto new file mode 100755 index 000000000..d7308e51e --- /dev/null +++ b/proto/ChangeAvatarRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ChangeAvatarRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1634; + } + + int32 retcode = 1; + uint64 cur_guid = 2; + uint32 skill_id = 3; +} diff --git a/proto/ChangeEnergyReason.proto b/proto/ChangeEnergyReason.proto new file mode 100644 index 000000000..5e7558388 --- /dev/null +++ b/proto/ChangeEnergyReason.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum ChangeEnergyReason { + CHANGE_ENERGY_NONE = 0; + CHANGE_ENERGY_SKILL_START = 1; +} diff --git a/proto/ChangeGameTimeReq.proto b/proto/ChangeGameTimeReq.proto new file mode 100755 index 000000000..9c080687f --- /dev/null +++ b/proto/ChangeGameTimeReq.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ChangeGameTimeReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 161; + } + + uint32 game_time = 1; + bool is_force_set = 2; + uint32 extra_days = 3; +} diff --git a/proto/ChangeGameTimeRsp.proto b/proto/ChangeGameTimeRsp.proto new file mode 100755 index 000000000..221792204 --- /dev/null +++ b/proto/ChangeGameTimeRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ChangeGameTimeRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 179; + } + + int32 retcode = 1; + uint32 cur_game_time = 2; + uint32 extra_days = 3; +} diff --git a/proto/ChangeHpReason.proto b/proto/ChangeHpReason.proto new file mode 100755 index 000000000..e56d9acc3 --- /dev/null +++ b/proto/ChangeHpReason.proto @@ -0,0 +1,31 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum ChangeHpReason { + ChangeHpNone = 0; + ChangeHpSubAvatar = 1; + ChangeHpSubMonster = 2; + ChangeHpSubGear = 3; + ChangeHpSubEnvir = 4; + ChangeHpSubFall = 5; + ChangeHpSubDrawn = 6; + ChangeHpSubAbyss = 7; + ChangeHpSubAbility = 8; + ChangeHpSubSummon = 9; + ChangeHpSubScript = 10; + ChangeHpSubGm = 11; + ChangeHpSubKillSelf = 12; + ChangeHpSubClimateCold = 13; + ChangeHpSubStormLightning = 14; + ChangeHpSubKillServerGadget = 15; + ChangeHpByLua = 51; + ChangeHpAddAbility = 101; + ChangeHpAddItem = 102; + ChangeHpAddRevive = 103; + ChangeHpAddUpgrade = 104; + ChangeHpAddStatue = 105; + ChangeHpAddBackground = 106; + ChangeHpAddGm = 107; + ChangeHpAddTrialAvatarActivity = 108; +} diff --git a/proto/ChangeMailStarNotify.proto b/proto/ChangeMailStarNotify.proto new file mode 100644 index 000000000..e5347c86b --- /dev/null +++ b/proto/ChangeMailStarNotify.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ChangeMailStarNotify { + repeated uint32 mail_id_list = 1; + bool is_star = 2; +} diff --git a/proto/ChangeMpTeamAvatarReq.proto b/proto/ChangeMpTeamAvatarReq.proto new file mode 100755 index 000000000..9ab827372 --- /dev/null +++ b/proto/ChangeMpTeamAvatarReq.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ChangeMpTeamAvatarReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 1731; + } + + repeated uint64 avatar_guid_list = 1; + uint64 cur_avatar_guid = 2; +} diff --git a/proto/ChangeMpTeamAvatarRsp.proto b/proto/ChangeMpTeamAvatarRsp.proto new file mode 100755 index 000000000..4aca75336 --- /dev/null +++ b/proto/ChangeMpTeamAvatarRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ChangeMpTeamAvatarRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1640; + } + + int32 retcode = 1; + repeated uint64 avatar_guid_list = 2; + uint64 cur_avatar_guid = 3; +} diff --git a/proto/ChangeTeamNameReq.proto b/proto/ChangeTeamNameReq.proto new file mode 100755 index 000000000..764b49856 --- /dev/null +++ b/proto/ChangeTeamNameReq.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ChangeTeamNameReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 1693; + } + + int32 team_id = 1; + string team_name = 2; +} diff --git a/proto/ChangeTeamNameRsp.proto b/proto/ChangeTeamNameRsp.proto new file mode 100755 index 000000000..1e0ba48fe --- /dev/null +++ b/proto/ChangeTeamNameRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ChangeTeamNameRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1788; + } + + int32 team_id = 1; + string team_name = 2; + int32 retcode = 3; +} diff --git a/proto/ChatInfo.proto b/proto/ChatInfo.proto new file mode 100755 index 000000000..b1f8f33bf --- /dev/null +++ b/proto/ChatInfo.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ChatInfo { + enum SystemHintType { + CHAT_NONE = 0; + CHAT_ENTER_WORLD = 1; + CHAT_LEAVE_WORLD = 2; + } + + message SystemHint { + uint32 type = 1; + } + + oneof Content { + string text = 100; + uint32 icon = 101; + SystemHint system_hint = 102; + } + uint32 time = 1; + uint32 uid = 2; + uint32 sequence = 3; + uint32 to_uid = 4; + bool is_read = 5; +} diff --git a/proto/ChooseCurAvatarTeamReq.proto b/proto/ChooseCurAvatarTeamReq.proto new file mode 100755 index 000000000..1ea02de57 --- /dev/null +++ b/proto/ChooseCurAvatarTeamReq.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ChooseCurAvatarTeamReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 1663; + } + + uint32 team_id = 1; +} diff --git a/proto/ChooseCurAvatarTeamRsp.proto b/proto/ChooseCurAvatarTeamRsp.proto new file mode 100755 index 000000000..0b1503781 --- /dev/null +++ b/proto/ChooseCurAvatarTeamRsp.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ChooseCurAvatarTeamRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1798; + } + + int32 retcode = 1; + uint32 cur_team_id = 2; +} diff --git a/proto/CityInfo.proto b/proto/CityInfo.proto new file mode 100755 index 000000000..5bf9163e0 --- /dev/null +++ b/proto/CityInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message CityInfo { + uint32 city_id = 1; + uint32 level = 2; + uint32 crystal_num = 3; +} diff --git a/proto/ClientAbilityChangeNotify.proto b/proto/ClientAbilityChangeNotify.proto new file mode 100755 index 000000000..cb3b23508 --- /dev/null +++ b/proto/ClientAbilityChangeNotify.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityInvokeEntry.proto"; + +message ClientAbilityChangeNotify { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 1126; + } + + uint32 entity_id = 1; + repeated AbilityInvokeEntry invokes = 2; +} diff --git a/proto/ClientAbilityInitBeginNotify.proto b/proto/ClientAbilityInitBeginNotify.proto new file mode 100755 index 000000000..82dbd5b10 --- /dev/null +++ b/proto/ClientAbilityInitBeginNotify.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ClientAbilityInitBeginNotify { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 1189; + } + + uint32 entity_id = 1; +} diff --git a/proto/ClientAbilityInitFinishNotify.proto b/proto/ClientAbilityInitFinishNotify.proto new file mode 100755 index 000000000..a591eaa93 --- /dev/null +++ b/proto/ClientAbilityInitFinishNotify.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityInvokeEntry.proto"; + +message ClientAbilityInitFinishNotify { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 1184; + } + + uint32 entity_id = 1; + repeated AbilityInvokeEntry invokes = 2; +} diff --git a/proto/ClientGadgetInfo.proto b/proto/ClientGadgetInfo.proto new file mode 100644 index 000000000..14add090c --- /dev/null +++ b/proto/ClientGadgetInfo.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ClientGadgetInfo { + uint32 camp_id = 1; + uint32 camp_type = 2; + uint64 guid = 3; + uint32 owner_entity_id = 4; + uint32 target_entity_id = 5; + bool async_load = 6; +} diff --git a/proto/CombatInvocationsNotify.proto b/proto/CombatInvocationsNotify.proto new file mode 100755 index 000000000..0f5c8e4bd --- /dev/null +++ b/proto/CombatInvocationsNotify.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "CombatInvokeEntry.proto"; + +message CombatInvocationsNotify { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 359; + } + + repeated CombatInvokeEntry invoke_list = 1; +} diff --git a/proto/CombatInvokeEntry.proto b/proto/CombatInvokeEntry.proto new file mode 100755 index 000000000..dea1caf92 --- /dev/null +++ b/proto/CombatInvokeEntry.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "CombatTypeArgument.proto"; +import "ForwardType.proto"; + +message CombatInvokeEntry { + CombatTypeArgument argument_type = 1; + ForwardType forward_type = 2; + bytes combat_data = 3; +} diff --git a/proto/CombatTypeArgument.proto b/proto/CombatTypeArgument.proto new file mode 100755 index 000000000..9116aba0b --- /dev/null +++ b/proto/CombatTypeArgument.proto @@ -0,0 +1,22 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum CombatTypeArgument { + COMBAT_NONE = 0; + COMBAT_EVT_BEING_HIT = 1; + COMBAT_ANIMATOR_STATE_CHANGED = 2; + COMBAT_FACE_TO_DIR = 3; + COMBAT_SET_ATTACK_TARGET = 4; + COMBAT_RUSH_MOVE = 5; + COMBAT_ANIMATOR_PARAMETER_CHANGED = 6; + ENTITY_MOVE = 7; + SYNC_ENTITY_POSITION = 8; + COMBAT_STEER_MOTION_INFO = 9; + COMBAT_FORCE_SET_POS_INFO = 10; + COMBAT_COMPENSATE_POS_DIFF = 11; + COMBAT_MONSTER_DO_BLINK = 12; + COMBAT_FIXED_RUSH_MOVE = 13; + COMBAT_SYNC_TRANSFORM = 14; + COMBAT_LIGHT_CORE_MOVE = 15; +} diff --git a/proto/CombineDataNotify.proto b/proto/CombineDataNotify.proto new file mode 100644 index 000000000..1ef4c8a5f --- /dev/null +++ b/proto/CombineDataNotify.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message CombineDataNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 657; + } + + repeated uint32 combine_id_list = 1; +} diff --git a/proto/CombineFormulaDataNotify.proto b/proto/CombineFormulaDataNotify.proto new file mode 100644 index 000000000..3c13553ed --- /dev/null +++ b/proto/CombineFormulaDataNotify.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message CombineFormulaDataNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 682; + } + + uint32 combine_id = 1; + bool is_locked = 2; +} diff --git a/proto/CombineReq.proto b/proto/CombineReq.proto new file mode 100644 index 000000000..58d38e15b --- /dev/null +++ b/proto/CombineReq.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message CombineReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 655; + } + + uint32 combine_id = 1; + uint32 combine_count = 2; + uint64 avatar_guid = 3; +} diff --git a/proto/CombineRsp.proto b/proto/CombineRsp.proto new file mode 100644 index 000000000..bba446ae7 --- /dev/null +++ b/proto/CombineRsp.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message CombineRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 695; + } + + int32 retcode = 1; + uint32 combine_id = 2; + uint32 combine_count = 3; + uint64 avatar_guid = 4; + repeated ItemParam cost_item_list = 5; + repeated ItemParam result_item_list = 6; + repeated ItemParam total_random_item_list = 7; + repeated ItemParam total_return_item_list = 8; + repeated ItemParam total_extra_item_list = 9; +} diff --git a/proto/CoopCg.proto b/proto/CoopCg.proto new file mode 100755 index 000000000..a507579d8 --- /dev/null +++ b/proto/CoopCg.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message CoopCg { + uint32 id = 1; + bool is_unlock = 2; +} diff --git a/proto/CoopChapter.proto b/proto/CoopChapter.proto new file mode 100755 index 000000000..360df6249 --- /dev/null +++ b/proto/CoopChapter.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "CoopPoint.proto"; +import "CoopReward.proto"; +import "CoopCg.proto"; + +message CoopChapter { + enum State { + CLOSE = 0; + COND_NOT_MEET = 1; + COND_MEET = 2; + ACCEPT = 3; + } + + uint32 id = 1; + State state = 2; + repeated uint32 lock_reason_list = 3; + repeated CoopPoint coop_point_list = 4; + repeated CoopReward coop_reward_list = 5; + repeated CoopCg coop_cg_list = 6; + uint32 total_end_count = 7; + uint32 finished_end_count = 8; + map seen_ending_map = 9; + repeated uint32 finish_dialog_list = 10; +} diff --git a/proto/CoopChapterState.proto b/proto/CoopChapterState.proto new file mode 100755 index 000000000..40ae5f2bd --- /dev/null +++ b/proto/CoopChapterState.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum CoopChapterState { + Close = 0; + CondNotMeet = 1; + CondMeet = 2; + Accept = 3; +} diff --git a/proto/CoopDataNotify.proto b/proto/CoopDataNotify.proto new file mode 100755 index 000000000..a9e673f30 --- /dev/null +++ b/proto/CoopDataNotify.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "CoopChapter.proto"; + +message CoopDataNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1957; + } + + repeated CoopChapter chapter_list = 1; + bool is_have_progress = 2; + uint32 cur_coop_point = 3; + repeated uint32 viewed_chapter_list = 4; +} diff --git a/proto/CoopPoint.proto b/proto/CoopPoint.proto new file mode 100755 index 000000000..d0c728eb5 --- /dev/null +++ b/proto/CoopPoint.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message CoopPoint { + enum State { + UNSTARTED = 0; + STARTED = 1; + FINISHED = 2; + } + + uint32 id = 1; + State state = 2; + uint32 self_confidence = 3; +} diff --git a/proto/CoopPointState.proto b/proto/CoopPointState.proto new file mode 100755 index 000000000..34288e2b5 --- /dev/null +++ b/proto/CoopPointState.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum CoopPointState { + Unstarted = 0; + Started = 1; + Finished = 2; +} diff --git a/proto/CoopReward.proto b/proto/CoopReward.proto new file mode 100755 index 000000000..38cac7285 --- /dev/null +++ b/proto/CoopReward.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message CoopReward { + enum State { + UNLOCK = 0; + LOCK = 1; + TAKEN = 2; + } + + uint32 id = 1; + State state = 2; +} diff --git a/proto/CoopRewardState.proto b/proto/CoopRewardState.proto new file mode 100755 index 000000000..60b60d7a7 --- /dev/null +++ b/proto/CoopRewardState.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum CoopRewardState { + Unlock = 0; + Lock = 1; + Taken = 2; +} diff --git a/proto/CountDownDelete.proto b/proto/CountDownDelete.proto new file mode 100755 index 000000000..fd394c44d --- /dev/null +++ b/proto/CountDownDelete.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message CountDownDelete { + +} diff --git a/proto/CurVehicleInfo.proto b/proto/CurVehicleInfo.proto new file mode 100644 index 000000000..3fba87e46 --- /dev/null +++ b/proto/CurVehicleInfo.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message CurVehicleInfo { + uint32 entity_id = 1; + uint32 pos = 2; +} diff --git a/proto/CustomCommonNodeInfo.proto b/proto/CustomCommonNodeInfo.proto new file mode 100644 index 000000000..9082f6be4 --- /dev/null +++ b/proto/CustomCommonNodeInfo.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message CustomCommonNodeInfo { + int32 parent_index = 1; + uint32 config_id = 2; + string slot_identifier = 3; +} diff --git a/proto/CustomGadgetTreeInfo.proto b/proto/CustomGadgetTreeInfo.proto new file mode 100644 index 000000000..0af66df7e --- /dev/null +++ b/proto/CustomGadgetTreeInfo.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "CustomCommonNodeInfo.proto"; + +message CustomGadgetTreeInfo { + repeated CustomCommonNodeInfo node_list = 1; +} diff --git a/proto/DateTimeDelete.proto b/proto/DateTimeDelete.proto new file mode 100755 index 000000000..9af357326 --- /dev/null +++ b/proto/DateTimeDelete.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message DateTimeDelete { + +} diff --git a/proto/DealAddFriendReq.proto b/proto/DealAddFriendReq.proto new file mode 100755 index 000000000..1941a5cde --- /dev/null +++ b/proto/DealAddFriendReq.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "DealAddFriendResultType.proto"; + +message DealAddFriendReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 4094; + } + + uint32 target_uid = 1; + DealAddFriendResultType deal_add_friend_result = 2; +} diff --git a/proto/DealAddFriendResultType.proto b/proto/DealAddFriendResultType.proto new file mode 100755 index 000000000..f0925b009 --- /dev/null +++ b/proto/DealAddFriendResultType.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum DealAddFriendResultType { + DEAL_ADD_FRIEND_REJECT = 0; + DEAL_ADD_FRIEND_ACCEPT = 1; +} diff --git a/proto/DealAddFriendRsp.proto b/proto/DealAddFriendRsp.proto new file mode 100755 index 000000000..b8961f45a --- /dev/null +++ b/proto/DealAddFriendRsp.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "DealAddFriendResultType.proto"; + +message DealAddFriendRsp { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 4042; + } + + int32 retcode = 1; + uint32 target_uid = 2; + DealAddFriendResultType deal_add_friend_result = 3; +} diff --git a/proto/DelMailReq.proto b/proto/DelMailReq.proto new file mode 100644 index 000000000..ac72fce2b --- /dev/null +++ b/proto/DelMailReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message DelMailReq { + repeated uint32 mail_id_list = 1; +} diff --git a/proto/DelMailRsp.proto b/proto/DelMailRsp.proto new file mode 100644 index 000000000..cd20e6fa9 --- /dev/null +++ b/proto/DelMailRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message DelMailRsp { + int32 retcode = 1; + repeated uint32 mail_id_list = 2; +} diff --git a/proto/DelTeamEntityNotify.proto b/proto/DelTeamEntityNotify.proto new file mode 100755 index 000000000..28ff11662 --- /dev/null +++ b/proto/DelTeamEntityNotify.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message DelTeamEntityNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 366; + } + + uint32 scene_id = 1; + repeated uint32 del_entity_id_list = 2; +} diff --git a/proto/DelayWeekCountDownDelete.proto b/proto/DelayWeekCountDownDelete.proto new file mode 100755 index 000000000..52c2c007e --- /dev/null +++ b/proto/DelayWeekCountDownDelete.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message DelayWeekCountDownDelete { + +} diff --git a/proto/DeleteFriendNotify.proto b/proto/DeleteFriendNotify.proto new file mode 100755 index 000000000..c8befa9e8 --- /dev/null +++ b/proto/DeleteFriendNotify.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message DeleteFriendNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 4032; + } + + uint32 target_uid = 1; +} diff --git a/proto/DeleteFriendReq.proto b/proto/DeleteFriendReq.proto new file mode 100755 index 000000000..b27fd960d --- /dev/null +++ b/proto/DeleteFriendReq.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message DeleteFriendReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 4012; + } + + uint32 target_uid = 1; +} diff --git a/proto/DeleteFriendRsp.proto b/proto/DeleteFriendRsp.proto new file mode 100755 index 000000000..fe9412096 --- /dev/null +++ b/proto/DeleteFriendRsp.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message DeleteFriendRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 4026; + } + + int32 retcode = 1; + uint32 target_uid = 2; +} diff --git a/proto/DestroyMaterialReq.proto b/proto/DestroyMaterialReq.proto new file mode 100755 index 000000000..a2a0915cf --- /dev/null +++ b/proto/DestroyMaterialReq.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MaterialInfo.proto"; + +message DestroyMaterialReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 687; + } + + repeated MaterialInfo material_list = 1; +} diff --git a/proto/DestroyMaterialRsp.proto b/proto/DestroyMaterialRsp.proto new file mode 100755 index 000000000..229784363 --- /dev/null +++ b/proto/DestroyMaterialRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message DestroyMaterialRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 641; + } + + int32 retcode = 1; + repeated uint32 item_id_list = 2; + repeated uint32 item_count_list = 3; +} diff --git a/proto/DoGachaReq.proto b/proto/DoGachaReq.proto new file mode 100755 index 000000000..85a632c80 --- /dev/null +++ b/proto/DoGachaReq.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message DoGachaReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 1589; + } + + uint32 gacha_type = 1; + uint32 gacha_times = 2; + uint32 gacha_random = 3; + uint32 gacha_schedule_id = 4; + string gacha_tag = 5; +} diff --git a/proto/DoGachaRsp.proto b/proto/DoGachaRsp.proto new file mode 100755 index 000000000..83fd92899 --- /dev/null +++ b/proto/DoGachaRsp.proto @@ -0,0 +1,31 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "GachaItem.proto"; + +message DoGachaRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1584; + } + + int32 retcode = 1; + uint32 gacha_type = 2; + uint32 gacha_times = 3; + uint32 gacha_schedule_id = 4; + repeated GachaItem gacha_item_list = 5; + uint32 new_gacha_random = 6; + uint32 cost_item_id = 7; + uint32 cost_item_num = 8; + uint32 ten_cost_item_id = 9; + uint32 ten_cost_item_num = 10; + uint32 left_gacha_times = 11; + uint32 gacha_times_limit = 12; + uint32 wish_item_id = 13; + uint32 wish_progress = 14; + uint32 wish_max_progress = 15; +} diff --git a/proto/DropHintNotify.proto b/proto/DropHintNotify.proto new file mode 100755 index 000000000..c22cb3d55 --- /dev/null +++ b/proto/DropHintNotify.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Vector.proto"; + +message DropHintNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 609; + } + + repeated uint32 item_id_list = 1; + Vector position = 2; +} diff --git a/proto/DungeonEntryInfo.proto b/proto/DungeonEntryInfo.proto new file mode 100755 index 000000000..b95ea757d --- /dev/null +++ b/proto/DungeonEntryInfo.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "WeeklyBossResinDiscountInfo.proto"; + +message DungeonEntryInfo { + uint32 dungeon_id = 1; + bool is_passed = 2; + uint32 left_times = 3; + uint32 start_time = 4; + uint32 end_time = 5; + uint32 max_boss_chest_num = 6; + uint32 boss_chest_num = 7; + uint32 next_refresh_time = 8; + WeeklyBossResinDiscountInfo weekly_boss_resin_discount_info = 9; +} diff --git a/proto/DungeonEntryInfoReq.proto b/proto/DungeonEntryInfoReq.proto new file mode 100755 index 000000000..9bcc2edfe --- /dev/null +++ b/proto/DungeonEntryInfoReq.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message DungeonEntryInfoReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 949; + } + + uint32 point_id = 1; +} diff --git a/proto/DungeonEntryInfoRsp.proto b/proto/DungeonEntryInfoRsp.proto new file mode 100755 index 000000000..4e529f95c --- /dev/null +++ b/proto/DungeonEntryInfoRsp.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "DungeonEntryInfo.proto"; + +message DungeonEntryInfoRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 918; + } + + int32 retcode = 1; + uint32 point_id = 2; + repeated DungeonEntryInfo dungeon_entry_list = 3; + uint32 recommend_dungeon_id = 4; +} diff --git a/proto/EchoShellInfo.proto b/proto/EchoShellInfo.proto new file mode 100644 index 000000000..db8d40a46 --- /dev/null +++ b/proto/EchoShellInfo.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message EchoShellInfo { + uint32 shell_id = 1; +} diff --git a/proto/EnterSceneDoneRsp.proto b/proto/EnterSceneDoneRsp.proto new file mode 100755 index 000000000..e4d9d4221 --- /dev/null +++ b/proto/EnterSceneDoneRsp.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message EnterSceneDoneRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 248; + } + + int32 retcode = 1; + uint32 enter_scene_token = 2; +} diff --git a/proto/EnterScenePeerNotify.proto b/proto/EnterScenePeerNotify.proto new file mode 100755 index 000000000..61f39228f --- /dev/null +++ b/proto/EnterScenePeerNotify.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message EnterScenePeerNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 223; + } + + uint32 dest_scene_id = 1; + uint32 peer_id = 2; + uint32 host_peer_id = 3; + uint32 enter_scene_token = 4; +} diff --git a/proto/EnterSceneReadyRsp.proto b/proto/EnterSceneReadyRsp.proto new file mode 100755 index 000000000..93ba80072 --- /dev/null +++ b/proto/EnterSceneReadyRsp.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message EnterSceneReadyRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 245; + } + + int32 retcode = 1; + uint32 enter_scene_token = 2; +} diff --git a/proto/EnterType.proto b/proto/EnterType.proto new file mode 100755 index 000000000..57a2e6823 --- /dev/null +++ b/proto/EnterType.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum EnterType { + ENTER_NONE = 0; + ENTER_SELF = 1; + ENTER_GOTO = 2; + ENTER_JUMP = 3; + ENTER_OTHER = 4; + ENTER_BACK = 5; + ENTER_DUNGEON = 6; + ENTER_DUNGEON_REPLAY = 7; + ENTER_GOTO_BY_PORTAL = 8; + ENTER_SELF_HOME = 9; + ENTER_OTHER_HOME = 10; + ENTER_GOTO_RECREATE = 11; +} diff --git a/proto/EnterWorldAreaReq.proto b/proto/EnterWorldAreaReq.proto new file mode 100755 index 000000000..45d5358d7 --- /dev/null +++ b/proto/EnterWorldAreaReq.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message EnterWorldAreaReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 209; + } + + uint32 area_type = 1; + uint32 area_id = 2; +} diff --git a/proto/EnterWorldAreaRsp.proto b/proto/EnterWorldAreaRsp.proto new file mode 100755 index 000000000..ddba1f0be --- /dev/null +++ b/proto/EnterWorldAreaRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message EnterWorldAreaRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 255; + } + + int32 retcode = 1; + uint32 area_type = 2; + uint32 area_id = 3; +} diff --git a/proto/EntityAiSyncNotify.proto b/proto/EntityAiSyncNotify.proto new file mode 100755 index 000000000..b2577d92c --- /dev/null +++ b/proto/EntityAiSyncNotify.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AiSyncInfo.proto"; + +message EntityAiSyncNotify { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 352; + } + + repeated AiSyncInfo info_list = 1; + repeated uint32 local_avatar_alerted_monster_list = 2; +} diff --git a/proto/EntityAuthorityInfo.proto b/proto/EntityAuthorityInfo.proto new file mode 100755 index 000000000..69c377f9a --- /dev/null +++ b/proto/EntityAuthorityInfo.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilitySyncStateInfo.proto"; +import "EntityRendererChangedInfo.proto"; +import "SceneEntityAiInfo.proto"; +import "Vector.proto"; +import "AnimatorParameterValueInfoPair.proto"; + +message EntityAuthorityInfo { + AbilitySyncStateInfo ability_info = 1; + EntityRendererChangedInfo renderer_changed_info = 2; + SceneEntityAiInfo ai_info = 3; + Vector born_pos = 4; + repeated AnimatorParameterValueInfoPair pose_para_list = 5; +} diff --git a/proto/EntityClientData.proto b/proto/EntityClientData.proto new file mode 100755 index 000000000..50d8cb3e9 --- /dev/null +++ b/proto/EntityClientData.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message EntityClientData { + uint32 wind_change_scene_time = 1; + float windmill_sync_angle = 2; + int32 wind_change_target_level = 3; +} diff --git a/proto/EntityEnvironmentInfo.proto b/proto/EntityEnvironmentInfo.proto new file mode 100755 index 000000000..ebc191218 --- /dev/null +++ b/proto/EntityEnvironmentInfo.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message EntityEnvironmentInfo { + uint32 json_climate_type = 1; + uint32 climate_area_id = 2; +} diff --git a/proto/EntityFightPropChangeReasonNotify.proto b/proto/EntityFightPropChangeReasonNotify.proto new file mode 100755 index 000000000..11dd4f26d --- /dev/null +++ b/proto/EntityFightPropChangeReasonNotify.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PropChangeReason.proto"; +import "ChangeHpReason.proto"; +import "ChangeEnergyReason.proto"; + +message EntityFightPropChangeReasonNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1294; + } + + uint32 entity_id = 1; + uint32 prop_type = 2; + float prop_delta = 3; + PropChangeReason reason = 4; + repeated uint32 param_list = 5; + ChangeHpReason change_hp_reason = 6; + ChangeEnergyReason change_energy_reson = 7; +} diff --git a/proto/EntityFightPropUpdateNotify.proto b/proto/EntityFightPropUpdateNotify.proto new file mode 100755 index 000000000..bc1fb1ddb --- /dev/null +++ b/proto/EntityFightPropUpdateNotify.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message EntityFightPropUpdateNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1284; + } + + uint32 entity_id = 1; + map fight_prop_map = 2; +} diff --git a/proto/EntityMoveInfo.proto b/proto/EntityMoveInfo.proto new file mode 100755 index 000000000..69c284f41 --- /dev/null +++ b/proto/EntityMoveInfo.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MotionInfo.proto"; + +message EntityMoveInfo { + uint32 entity_id = 1; + MotionInfo motion_info = 2; + uint32 scene_time = 3; + uint32 reliable_seq = 4; + bool is_reliable = 5; +} diff --git a/proto/EntityPropNotify.proto b/proto/EntityPropNotify.proto new file mode 100755 index 000000000..ae9412d04 --- /dev/null +++ b/proto/EntityPropNotify.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PropValue.proto"; + +message EntityPropNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1249; + } + + uint32 entity_id = 1; + map prop_map = 2; +} diff --git a/proto/EntityRendererChangedInfo.proto b/proto/EntityRendererChangedInfo.proto new file mode 100755 index 000000000..b516139cf --- /dev/null +++ b/proto/EntityRendererChangedInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message EntityRendererChangedInfo { + map changed_renderers = 1; + uint32 visibility_count = 2; + bool is_cached = 3; +} diff --git a/proto/Equip.proto b/proto/Equip.proto new file mode 100755 index 000000000..edfe05f6b --- /dev/null +++ b/proto/Equip.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Reliquary.proto"; +import "Weapon.proto"; + +message Equip { + oneof Detail { + Reliquary reliquary = 1; + Weapon weapon = 2; + } + bool is_locked = 3; +} diff --git a/proto/EquipParam.proto b/proto/EquipParam.proto new file mode 100644 index 000000000..52d24943e --- /dev/null +++ b/proto/EquipParam.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message EquipParam { + uint32 item_id = 1; + uint32 item_num = 2; + uint32 item_level = 3; + uint32 promote_level = 4; +} diff --git a/proto/EvtAiSyncCombatThreatInfoNotify.proto b/proto/EvtAiSyncCombatThreatInfoNotify.proto new file mode 100755 index 000000000..fb0c69071 --- /dev/null +++ b/proto/EvtAiSyncCombatThreatInfoNotify.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AiThreatInfo.proto"; + +message EvtAiSyncCombatThreatInfoNotify { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 373; + } + + map combat_threat_info_map = 1; +} diff --git a/proto/EvtAiSyncSkillCdNotify.proto b/proto/EvtAiSyncSkillCdNotify.proto new file mode 100755 index 000000000..8cc86faf1 --- /dev/null +++ b/proto/EvtAiSyncSkillCdNotify.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AiSkillCdInfo.proto"; + +message EvtAiSyncSkillCdNotify { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 399; + } + + map ai_cd_map = 1; +} diff --git a/proto/EvtAvatarSitDownNotify.proto b/proto/EvtAvatarSitDownNotify.proto new file mode 100644 index 000000000..69a42adf0 --- /dev/null +++ b/proto/EvtAvatarSitDownNotify.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Vector.proto"; + +message EvtAvatarSitDownNotify { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 321; + } + + uint32 entity_id = 1; + Vector position = 2; + uint64 chair_id = 3; +} diff --git a/proto/EvtAvatarStandUpNotify.proto b/proto/EvtAvatarStandUpNotify.proto new file mode 100644 index 000000000..ebae8f1e4 --- /dev/null +++ b/proto/EvtAvatarStandUpNotify.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message EvtAvatarStandUpNotify { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 331; + } + + uint32 entity_id = 1; + int32 direction = 2; + int32 perform_i_d = 3; + uint64 chair_id = 4; +} diff --git a/proto/EvtBeingHitInfo.proto b/proto/EvtBeingHitInfo.proto new file mode 100755 index 000000000..b2e8ec651 --- /dev/null +++ b/proto/EvtBeingHitInfo.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AttackResult.proto"; + +message EvtBeingHitInfo { + uint32 peer_id = 1; + AttackResult attack_result = 2; + uint32 frame_num = 3; +} diff --git a/proto/EvtBeingHitNotify.proto b/proto/EvtBeingHitNotify.proto new file mode 100755 index 000000000..0814dfefd --- /dev/null +++ b/proto/EvtBeingHitNotify.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ForwardType.proto"; +import "EvtBeingHitInfo.proto"; + +message EvtBeingHitNotify { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 349; + } + + ForwardType forward_type = 1; + EvtBeingHitInfo being_hit_info = 2; +} diff --git a/proto/EvtBeingHitsCombineNotify.proto b/proto/EvtBeingHitsCombineNotify.proto new file mode 100755 index 000000000..e6356c1da --- /dev/null +++ b/proto/EvtBeingHitsCombineNotify.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ForwardType.proto"; +import "EvtBeingHitInfo.proto"; + +message EvtBeingHitsCombineNotify { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 375; + } + + ForwardType forward_type = 1; + repeated EvtBeingHitInfo evt_being_hit_info_list = 2; +} diff --git a/proto/EvtCreateGadgetNotify.proto b/proto/EvtCreateGadgetNotify.proto new file mode 100755 index 000000000..e928fe285 --- /dev/null +++ b/proto/EvtCreateGadgetNotify.proto @@ -0,0 +1,33 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ForwardType.proto"; +import "Vector.proto"; + +message EvtCreateGadgetNotify { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 400; + } + + ForwardType forward_type = 1; + uint32 entity_id = 2; + uint32 config_id = 3; + uint32 camp_id = 4; + uint32 camp_type = 5; + Vector init_pos = 6; + Vector init_euler_angles = 7; + uint64 guid = 8; + uint32 owner_entity_id = 9; + uint32 target_entity_id = 10; + bool is_async_load = 11; + uint32 target_lock_point_index = 12; + uint32 room_id = 13; + uint32 prop_owner_entity_id = 14; + bool sight_group_with_owner = 15; +} diff --git a/proto/EvtDestroyGadgetNotify.proto b/proto/EvtDestroyGadgetNotify.proto new file mode 100755 index 000000000..2fa5970c4 --- /dev/null +++ b/proto/EvtDestroyGadgetNotify.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ForwardType.proto"; + +message EvtDestroyGadgetNotify { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 301; + } + + ForwardType forward_type = 1; + uint32 entity_id = 2; +} diff --git a/proto/EvtDoSkillSuccNotify.proto b/proto/EvtDoSkillSuccNotify.proto new file mode 100755 index 000000000..235743c66 --- /dev/null +++ b/proto/EvtDoSkillSuccNotify.proto @@ -0,0 +1,22 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ForwardType.proto"; +import "Vector.proto"; + +message EvtDoSkillSuccNotify { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 384; + } + + ForwardType forward_type = 1; + uint32 caster_id = 2; + uint32 skill_id = 3; + Vector forward = 4; +} diff --git a/proto/EvtHittingOtherInfo.proto b/proto/EvtHittingOtherInfo.proto new file mode 100755 index 000000000..27ead0526 --- /dev/null +++ b/proto/EvtHittingOtherInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AttackResult.proto"; + +message EvtHittingOtherInfo { + uint32 peer_id = 1; + AttackResult attack_result = 2; +} diff --git a/proto/FeatureBlockInfo.proto b/proto/FeatureBlockInfo.proto new file mode 100755 index 000000000..d66896734 --- /dev/null +++ b/proto/FeatureBlockInfo.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message FeatureBlockInfo { + uint32 feature_type = 1; + uint32 end_time = 2; +} diff --git a/proto/FetterData.proto b/proto/FetterData.proto new file mode 100755 index 000000000..7b1b93609 --- /dev/null +++ b/proto/FetterData.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message FetterData { + uint32 fetter_id = 1; + uint32 fetter_state = 2; + repeated uint32 cond_index_list = 3; +} diff --git a/proto/FightPropPair.proto b/proto/FightPropPair.proto new file mode 100755 index 000000000..7c740032e --- /dev/null +++ b/proto/FightPropPair.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message FightPropPair { + uint32 prop_type = 1; + float prop_value = 2; +} diff --git a/proto/FishPoolInfo.proto b/proto/FishPoolInfo.proto new file mode 100644 index 000000000..4344e5e16 --- /dev/null +++ b/proto/FishPoolInfo.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message FishPoolInfo { + uint32 pool_id = 1; + repeated uint32 fish_area_list = 2; + uint32 today_fish_num = 3; +} diff --git a/proto/ForceUpdateInfo.proto b/proto/ForceUpdateInfo.proto new file mode 100644 index 000000000..05a95af25 --- /dev/null +++ b/proto/ForceUpdateInfo.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ForceUpdateInfo { + string force_update_url = 1; +} diff --git a/proto/ForwardType.proto b/proto/ForwardType.proto new file mode 100755 index 000000000..b24643602 --- /dev/null +++ b/proto/ForwardType.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum ForwardType { + FORWARD_LOCAL = 0; + FORWARD_TO_ALL = 1; + FORWARD_TO_ALL_EXCEPT_CUR = 2; + FORWARD_TO_HOST = 3; + FORWARD_TO_ALL_GUEST = 4; + FORWARD_TO_PEER = 5; + FORWARD_TO_PEERS = 6; + FORWARD_ONLY_SERVER = 7; + FORWARD_TO_ALL_EXIST_EXCEPT_CUR = 8; +} diff --git a/proto/FoundationInfo.proto b/proto/FoundationInfo.proto new file mode 100644 index 000000000..f99c2b110 --- /dev/null +++ b/proto/FoundationInfo.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "FoundationStatus.proto"; +import "BuildingInfo.proto"; + +message FoundationInfo { + FoundationStatus status = 1; + repeated uint32 uid_list = 2; + uint32 current_building_id = 3; + uint64 begin_build_time_ms = 4; + uint32 demolition_refund = 5; + repeated BuildingInfo building_list = 6; + uint32 current_num = 7; + uint32 max_num = 8; + uint32 locked_by_uid = 9; +} diff --git a/proto/FoundationStatus.proto b/proto/FoundationStatus.proto new file mode 100644 index 000000000..e53b57be0 --- /dev/null +++ b/proto/FoundationStatus.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum FoundationStatus { + FOUNDATION_STATUS_NONE = 0; + FOUNDATION_STATUS_INIT = 1; + FOUNDATION_STATUS_BUILDING = 2; + FOUNDATION_STATUS_BUILT = 3; +} diff --git a/proto/FriendBrief.proto b/proto/FriendBrief.proto new file mode 100755 index 000000000..83b4f4fe3 --- /dev/null +++ b/proto/FriendBrief.proto @@ -0,0 +1,34 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "FriendOnlineState.proto"; +import "FriendEnterHomeOption.proto"; +import "ProfilePicture.proto"; +import "PlatformType.proto"; +import "SocialShowAvatarInfo.proto"; + +message FriendBrief { + uint32 uid = 1; + string nickname = 2; + uint32 level = 3; + uint32 avatar_id = 4; + uint32 world_level = 5; + string signature = 6; + FriendOnlineState online_state = 7; + uint32 param = 8; + bool is_mp_mode_available = 10; + string online_id = 11; + uint32 last_active_time = 12; + uint32 name_card_id = 13; + uint32 mp_player_num = 14; + bool is_chat_no_disturb = 15; + uint32 chat_sequence = 16; + string remark_name = 17; + repeated SocialShowAvatarInfo show_avatar_info_list = 22; + FriendEnterHomeOption friend_enter_home_option = 23; + ProfilePicture profile_picture = 24; + bool is_game_source = 25; + bool is_psn_source = 26; + PlatformType platform_type = 27; +} diff --git a/proto/FriendEnterHomeOption.proto b/proto/FriendEnterHomeOption.proto new file mode 100755 index 000000000..3aa2bd726 --- /dev/null +++ b/proto/FriendEnterHomeOption.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum FriendEnterHomeOption { + NEED_CONFIRM = 0; + REFUSE = 1; + DIRECT = 2; +} diff --git a/proto/FriendOnlineState.proto b/proto/FriendOnlineState.proto new file mode 100755 index 000000000..0c08222bd --- /dev/null +++ b/proto/FriendOnlineState.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum FriendOnlineState { + FREIEND_DISCONNECT = 0; + FRIEND_ONLINE = 1; +} diff --git a/proto/Furniture.proto b/proto/Furniture.proto new file mode 100755 index 000000000..ba058d8e3 --- /dev/null +++ b/proto/Furniture.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message Furniture { + uint32 count = 1; +} diff --git a/proto/GachaInfo.proto b/proto/GachaInfo.proto new file mode 100755 index 000000000..ebf25b09f --- /dev/null +++ b/proto/GachaInfo.proto @@ -0,0 +1,29 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "GachaUpInfo.proto"; + +message GachaInfo { + uint32 gachaType = 1; + uint32 scheduleId = 2; + uint32 beginTime = 3; + uint32 endTime = 4; + uint32 costItemId = 5; + uint32 costItemNum = 6; + string gachaPrefabPath = 7; + string gachaProbUrl = 8; + string gachaRecordUrl = 9; + string gachaPreviewPrefabPath = 10; + uint32 tenCostItemId = 11; + uint32 tenCostItemNum = 12; + uint32 leftGachaTimes = 13; + uint32 gachaTimesLimit = 14; + uint32 gachaSortId = 15; + string gachaProbUrlOversea = 16; + string gachaRecordUrlOversea = 17; + repeated GachaUpInfo gachaUpInfoList = 18; + string gachaTitlePath = 19; + repeated uint32 mainNameId = 20; + repeated uint32 subNameId = 21; +} \ No newline at end of file diff --git a/proto/GachaItem.proto b/proto/GachaItem.proto new file mode 100755 index 000000000..a2d73af26 --- /dev/null +++ b/proto/GachaItem.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; +import "GachaTransferItem.proto"; + +message GachaItem { + ItemParam gacha_item_ = 1; + repeated GachaTransferItem transfer_items = 2; + bool is_flash_card = 3; + bool is_gacha_item_new = 4; + repeated ItemParam token_item_list = 5; +} diff --git a/proto/GachaTransferItem.proto b/proto/GachaTransferItem.proto new file mode 100755 index 000000000..5de8c22f1 --- /dev/null +++ b/proto/GachaTransferItem.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message GachaTransferItem { + ItemParam item = 1; + bool is_transfer_item_new = 2; +} diff --git a/proto/GachaUpInfo.proto b/proto/GachaUpInfo.proto new file mode 100755 index 000000000..37d1873a2 --- /dev/null +++ b/proto/GachaUpInfo.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message GachaUpInfo { + uint32 item_parent_type = 1; + repeated uint32 item_id_list = 2; +} diff --git a/proto/GadgetBornType.proto b/proto/GadgetBornType.proto new file mode 100755 index 000000000..c20baa443 --- /dev/null +++ b/proto/GadgetBornType.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum GadgetBornType { + GADGET_BORN_NONE = 0; + GADGET_BORN_IN_AIR = 1; + GADGET_BORN_PLAYER = 2; + GADGET_BORN_MONSTER_HIT = 3; + GADGET_BORN_MONSTER_DIE = 4; + GADGET_BORN_GADGET = 5; + GADGET_BORN_GROUND = 6; +} diff --git a/proto/GadgetClientParam.proto b/proto/GadgetClientParam.proto new file mode 100755 index 000000000..546ef56c6 --- /dev/null +++ b/proto/GadgetClientParam.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GadgetClientParam { + uint32 campId = 1; + uint32 campType = 2; + uint64 guid = 3; + uint32 ownerEntityId = 4; + uint32 targetEntityId = 5; + bool asyncLoad = 6; +} diff --git a/proto/GadgetCrucibleInfo.proto b/proto/GadgetCrucibleInfo.proto new file mode 100755 index 000000000..3fbbcede2 --- /dev/null +++ b/proto/GadgetCrucibleInfo.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message GadgetCrucibleInfo { + uint32 mp_play_id = 1; + uint32 prepare_end_time = 2; +} diff --git a/proto/GadgetGeneralRewardInfo.proto b/proto/GadgetGeneralRewardInfo.proto new file mode 100644 index 000000000..42d9d02ad --- /dev/null +++ b/proto/GadgetGeneralRewardInfo.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message GadgetGeneralRewardInfo { + uint32 resin = 1; + uint32 dead_time = 2; + repeated uint32 remain_uid_list = 3; + repeated uint32 qualify_uid_list = 4; + ItemParam item_param = 5; +} diff --git a/proto/GadgetInteractReq.proto b/proto/GadgetInteractReq.proto new file mode 100755 index 000000000..540f1922b --- /dev/null +++ b/proto/GadgetInteractReq.proto @@ -0,0 +1,23 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "InterOpType.proto"; +import "ResinCostType.proto"; + +message GadgetInteractReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 849; + } + + uint32 gadget_entity_id = 1; + InterOpType op_type = 2; + uint32 gadget_id = 3; + bool is_use_condense_resin = 4; + ResinCostType resin_cost_type = 5; +} diff --git a/proto/GadgetInteractRsp.proto b/proto/GadgetInteractRsp.proto new file mode 100755 index 000000000..1c500d87f --- /dev/null +++ b/proto/GadgetInteractRsp.proto @@ -0,0 +1,22 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "InteractType.proto"; +import "InterOpType.proto"; + +message GadgetInteractRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 818; + } + + int32 retcode = 1; + uint32 gadget_entity_id = 2; + InteractType interact_type = 3; + InterOpType op_type = 4; + uint32 gadget_id = 5; +} diff --git a/proto/GadgetPlayInfo.proto b/proto/GadgetPlayInfo.proto new file mode 100755 index 000000000..2ad76e24e --- /dev/null +++ b/proto/GadgetPlayInfo.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "GadgetCrucibleInfo.proto"; + +message GadgetPlayInfo { + oneof PlayInfo { + GadgetCrucibleInfo crucible_info = 21; + } + uint32 play_type = 1; + uint32 duration = 2; + repeated uint32 progress_stage_list = 3; + uint32 start_cd = 4; + uint32 start_time = 5; + uint32 progress = 6; +} diff --git a/proto/GatherGadgetInfo.proto b/proto/GatherGadgetInfo.proto new file mode 100644 index 000000000..2c2426976 --- /dev/null +++ b/proto/GatherGadgetInfo.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GatherGadgetInfo { + uint32 item_id = 1; + bool is_forbid_guest = 2; +} diff --git a/proto/GetActivityInfoRsp.proto b/proto/GetActivityInfoRsp.proto new file mode 100755 index 000000000..6da523f83 --- /dev/null +++ b/proto/GetActivityInfoRsp.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ActivityInfo.proto"; +import "Uint32Pair.proto"; + +message GetActivityInfoRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 2011; + } + + int32 retcode = 1; + repeated ActivityInfo activity_info_list = 2; + repeated uint32 activated_sale_id_list = 3; + repeated Uint32Pair disable_transfer_point_interaction_list = 4; +} diff --git a/proto/GetAllMailReq.proto b/proto/GetAllMailReq.proto new file mode 100644 index 000000000..8c6bce100 --- /dev/null +++ b/proto/GetAllMailReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetAllMailReq { + bool is_gift_mail = 1; +} diff --git a/proto/GetAllMailRsp.proto b/proto/GetAllMailRsp.proto new file mode 100644 index 000000000..0613899cb --- /dev/null +++ b/proto/GetAllMailRsp.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MailData.proto"; + +message GetAllMailRsp { + int32 retcode = 1; + repeated MailData mail_list = 2; + bool is_truncated = 3; +} diff --git a/proto/GetAllUnlockNameCardRsp.proto b/proto/GetAllUnlockNameCardRsp.proto new file mode 100755 index 000000000..aaf13382b --- /dev/null +++ b/proto/GetAllUnlockNameCardRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message GetAllUnlockNameCardRsp { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 4076; + } + + int32 retcode = 1; + repeated uint32 name_card_list = 2; +} diff --git a/proto/GetAuthkeyReq.proto b/proto/GetAuthkeyReq.proto new file mode 100755 index 000000000..8816c8140 --- /dev/null +++ b/proto/GetAuthkeyReq.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message GetAuthkeyReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 1442; + } + + string auth_appid = 1; + uint32 sign_type = 2; + uint32 authkey_ver = 3; +} diff --git a/proto/GetAuthkeyRsp.proto b/proto/GetAuthkeyRsp.proto new file mode 100755 index 000000000..35c1aee73 --- /dev/null +++ b/proto/GetAuthkeyRsp.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message GetAuthkeyRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1461; + } + + int32 retcode = 1; + string authkey = 2; + string auth_appid = 3; + uint32 sign_type = 4; + uint32 authkey_ver = 5; + string game_biz = 6; +} diff --git a/proto/GetGachaInfoRsp.proto b/proto/GetGachaInfoRsp.proto new file mode 100755 index 000000000..0aca2e46b --- /dev/null +++ b/proto/GetGachaInfoRsp.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "GachaInfo.proto"; + +message GetGachaInfoRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1518; + } + + int32 retcode = 1; + repeated GachaInfo gacha_info_list = 2; + uint32 gacha_random = 3; +} diff --git a/proto/GetMailItemReq.proto b/proto/GetMailItemReq.proto new file mode 100644 index 000000000..259c8ba5c --- /dev/null +++ b/proto/GetMailItemReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetMailItemReq { + repeated uint32 mail_id_list = 1; +} diff --git a/proto/GetMailItemRsp.proto b/proto/GetMailItemRsp.proto new file mode 100644 index 000000000..e14bd54c8 --- /dev/null +++ b/proto/GetMailItemRsp.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "EquipParam.proto"; + +message GetMailItemRsp { + int32 retcode = 1; + repeated uint32 mail_id_list = 2; + repeated EquipParam item_list = 3; +} diff --git a/proto/GetPlayerAskFriendListRsp.proto b/proto/GetPlayerAskFriendListRsp.proto new file mode 100755 index 000000000..c3cfe9268 --- /dev/null +++ b/proto/GetPlayerAskFriendListRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "FriendBrief.proto"; + +message GetPlayerAskFriendListRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 4005; + } + + int32 retcode = 1; + repeated FriendBrief ask_friend_list = 2; +} diff --git a/proto/GetPlayerBlacklistRsp.proto b/proto/GetPlayerBlacklistRsp.proto new file mode 100755 index 000000000..6a6966af0 --- /dev/null +++ b/proto/GetPlayerBlacklistRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "FriendBrief.proto"; + +message GetPlayerBlacklistRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 4020; + } + + int32 retcode = 1; + repeated FriendBrief blacklist = 2; +} diff --git a/proto/GetPlayerFriendListRsp.proto b/proto/GetPlayerFriendListRsp.proto new file mode 100755 index 000000000..044f3bc2d --- /dev/null +++ b/proto/GetPlayerFriendListRsp.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "FriendBrief.proto"; + +message GetPlayerFriendListRsp { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 4018; + } + + int32 retcode = 1; + repeated FriendBrief friend_list = 2; + repeated FriendBrief ask_friend_list = 3; +} diff --git a/proto/GetPlayerSocialDetailReq.proto b/proto/GetPlayerSocialDetailReq.proto new file mode 100755 index 000000000..c0a4bc400 --- /dev/null +++ b/proto/GetPlayerSocialDetailReq.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message GetPlayerSocialDetailReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 4061; + } + + uint32 uid = 1; +} diff --git a/proto/GetPlayerSocialDetailRsp.proto b/proto/GetPlayerSocialDetailRsp.proto new file mode 100755 index 000000000..6ef02e88b --- /dev/null +++ b/proto/GetPlayerSocialDetailRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "SocialDetail.proto"; + +message GetPlayerSocialDetailRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 4079; + } + + int32 retcode = 1; + SocialDetail detail_data = 2; +} diff --git a/proto/GetPlayerTokenReq.proto b/proto/GetPlayerTokenReq.proto new file mode 100755 index 000000000..f43d00d0f --- /dev/null +++ b/proto/GetPlayerTokenReq.proto @@ -0,0 +1,31 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message GetPlayerTokenReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 149; + } + + uint32 account_type = 1; + string account_uid = 2; + string account_token = 3; + string account_ext = 4; + uint32 uid = 5; + bool is_guest = 6; + uint32 platform_type = 7; + uint32 cloud_client_ip = 8; + string online_id = 9; + string psn_region = 10; + uint32 channel_id = 11; + uint32 sub_channel_id = 12; + string country_code = 13; + string psn_id = 14; + string client_ip_str = 15; +} diff --git a/proto/GetPlayerTokenRsp.proto b/proto/GetPlayerTokenRsp.proto new file mode 100755 index 000000000..d48a6661d --- /dev/null +++ b/proto/GetPlayerTokenRsp.proto @@ -0,0 +1,39 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message GetPlayerTokenRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 118; + } + + int32 retcode = 1; + string msg = 2; + uint32 uid = 3; + string token = 4; + uint32 black_uid_end_time = 5; + uint32 account_type = 6; + string account_uid = 7; + bool is_proficient_player = 8; + string secret_key = 9; + uint32 gm_uid = 10; + uint64 secret_key_seed = 11; + bytes security_cmd_buffer = 12; + uint32 platform_type = 13; + bytes extra_bin_data = 14; + bool is_guest = 15; + uint32 channel_id = 16; + uint32 sub_channel_id = 17; + uint32 tag = 18; + string country_code = 19; + bool is_login_white_list = 20; + string psn_id = 21; + string client_version_random_key = 22; + uint32 reg_platform = 23; + string client_ip_str = 24; +} diff --git a/proto/GetSceneAreaReq.proto b/proto/GetSceneAreaReq.proto new file mode 100755 index 000000000..9ff736755 --- /dev/null +++ b/proto/GetSceneAreaReq.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message GetSceneAreaReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 206; + } + + uint32 scene_id = 1; + uint32 belong_uid = 2; +} diff --git a/proto/GetSceneAreaRsp.proto b/proto/GetSceneAreaRsp.proto new file mode 100755 index 000000000..c71a0ebb0 --- /dev/null +++ b/proto/GetSceneAreaRsp.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "CityInfo.proto"; + +message GetSceneAreaRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 216; + } + + int32 retcode = 1; + uint32 scene_id = 2; + repeated uint32 area_id_list = 3; + repeated CityInfo city_info_list = 4; +} diff --git a/proto/GetScenePointReq.proto b/proto/GetScenePointReq.proto new file mode 100755 index 000000000..d031cdf69 --- /dev/null +++ b/proto/GetScenePointReq.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message GetScenePointReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 291; + } + + uint32 scene_id = 1; + uint32 belong_uid = 2; +} diff --git a/proto/GetScenePointRsp.proto b/proto/GetScenePointRsp.proto new file mode 100755 index 000000000..135ff2a54 --- /dev/null +++ b/proto/GetScenePointRsp.proto @@ -0,0 +1,26 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message GetScenePointRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 236; + } + + int32 retcode = 1; + uint32 scene_id = 2; + repeated uint32 unlocked_point_list = 3; + uint32 belong_uid = 4; + repeated uint32 unlock_area_list = 5; + repeated uint32 locked_point_list = 6; + repeated uint32 to_be_explore_dungeon_entry_list = 7; + repeated uint32 not_explored_dungeon_entry_list = 8; + repeated uint32 group_unlimit_point_list = 9; + repeated uint32 not_interact_dungeon_entry_list = 10; + repeated uint32 hide_point_list = 11; +} diff --git a/proto/GetShopReq.proto b/proto/GetShopReq.proto new file mode 100755 index 000000000..66d4a310f --- /dev/null +++ b/proto/GetShopReq.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message GetShopReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 749; + } + + uint32 shop_type = 1; +} diff --git a/proto/GetShopRsp.proto b/proto/GetShopRsp.proto new file mode 100755 index 000000000..994508352 --- /dev/null +++ b/proto/GetShopRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Shop.proto"; + +message GetShopRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 718; + } + + int32 retcode = 1; + Shop shop = 2; +} diff --git a/proto/GetShopmallDataRsp.proto b/proto/GetShopmallDataRsp.proto new file mode 100755 index 000000000..e2b8e61b8 --- /dev/null +++ b/proto/GetShopmallDataRsp.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message GetShopmallDataRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 701; + } + + int32 retcode = 1; + repeated uint32 shop_type_list = 2; +} diff --git a/proto/GetWorldMpInfoRsp.proto b/proto/GetWorldMpInfoRsp.proto new file mode 100755 index 000000000..4e6faff53 --- /dev/null +++ b/proto/GetWorldMpInfoRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message GetWorldMpInfoRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 3394; + } + + int32 retcode = 1; + bool is_in_mp_mode = 2; + uint32 quit_mp_valid_time = 3; +} diff --git a/proto/H5ActivityIdsNotify.proto b/proto/H5ActivityIdsNotify.proto new file mode 100755 index 000000000..1cd25d2be --- /dev/null +++ b/proto/H5ActivityIdsNotify.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message H5ActivityIdsNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 5677; + } + + map h5_activity_map = 1; + uint32 client_red_dot_timestamp = 2; +} diff --git a/proto/HeadImage.proto b/proto/HeadImage.proto new file mode 100755 index 000000000..0aa6d697b --- /dev/null +++ b/proto/HeadImage.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message HeadImage { + uint32 avatarId = 1; +} diff --git a/proto/HitColliderType.proto b/proto/HitColliderType.proto new file mode 100755 index 000000000..6c04a4aa8 --- /dev/null +++ b/proto/HitColliderType.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum HitColliderType { + HIT_COLLIDER_INVALID = 0; + HIT_COLLIDER_HIT_BOX = 1; + HIT_COLLIDER_WET_HIT_BOX = 2; + HIT_COLLIDER_HEAD_BOX = 3; +} diff --git a/proto/HitCollision.proto b/proto/HitCollision.proto new file mode 100755 index 000000000..939a0e1e5 --- /dev/null +++ b/proto/HitCollision.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "HitColliderType.proto"; +import "Vector.proto"; + +message HitCollision { + HitColliderType hit_collider_type = 1; + int32 hit_box_index = 2; + Vector hit_point = 3; + Vector hit_dir = 4; + float attackee_hit_force_angle = 5; + float attackee_hit_entity_angle = 6; +} diff --git a/proto/HostPlayerNotify.proto b/proto/HostPlayerNotify.proto new file mode 100755 index 000000000..39127be7e --- /dev/null +++ b/proto/HostPlayerNotify.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message HostPlayerNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 389; + } + + uint32 host_uid = 1; + uint32 host_peer_id = 2; +} diff --git a/proto/InterOpType.proto b/proto/InterOpType.proto new file mode 100755 index 000000000..79110918a --- /dev/null +++ b/proto/InterOpType.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum InterOpType { + INTER_OP_FINISH = 0; + INTER_OP_START = 1; +} diff --git a/proto/InteractType.proto b/proto/InteractType.proto new file mode 100755 index 000000000..cadaf32f1 --- /dev/null +++ b/proto/InteractType.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum InteractType { + INTERACT_NONE = 0; + INTERACT_PICK_ITEM = 1; + INTERACT_GATHER = 2; + INTERACT_OPEN_CHEST = 3; + INTERACT_OPEN_STATUE = 4; + INTERACT_CONSUM = 5; + INTERACT_MP_PLAY_REWARD = 6; + INTERACT_VIEW = 7; + INTERACT_GENERAL_REWARD = 8; + INTERACT_MIRACLE_RING = 9; + INTERACT_FOUNDATION = 10; + INTERACT_ECHO_SHELL = 11; + INTERACT_HOME_GATHER = 12; + INTERACT_ENV_ANIMAL = 13; + INTERACT_QUEST_GADGET = 14; +} diff --git a/proto/Item.proto b/proto/Item.proto new file mode 100755 index 000000000..98f809887 --- /dev/null +++ b/proto/Item.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Material.proto"; +import "Equip.proto"; +import "Furniture.proto"; + +message Item { + oneof Detail { + Material material = 5; + Equip equip = 6; + Furniture furniture = 7; + } + uint32 item_id = 1; + uint64 guid = 2; +} diff --git a/proto/ItemAddHintNotify.proto b/proto/ItemAddHintNotify.proto new file mode 100755 index 000000000..c9b5be100 --- /dev/null +++ b/proto/ItemAddHintNotify.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Vector.proto"; +import "ItemHint.proto"; + +message ItemAddHintNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 700; + } + + repeated ItemHint item_list = 1; + Vector position = 2; + bool is_position_valid = 3; + uint32 reason = 4; + uint32 quest_id = 5; + bool is_transfered_from_avatar_card = 6; + repeated ItemHint overflow_transformed_item_list = 7; + bool is_general_reward_hiden = 8; +} diff --git a/proto/ItemExceedLimitNotify.proto b/proto/ItemExceedLimitNotify.proto new file mode 100755 index 000000000..d294ba8b9 --- /dev/null +++ b/proto/ItemExceedLimitNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ItemExceedLimitNotify { + bool isMaterialExceedLimit = 1; + bool isWeaponExceedLimit = 2; + bool isReliquaryExceedLimit = 3; + repeated uint32 itemIdList = 4; +} diff --git a/proto/ItemGivingReq.proto b/proto/ItemGivingReq.proto new file mode 100755 index 000000000..562e2ea46 --- /dev/null +++ b/proto/ItemGivingReq.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message ItemGivingReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 187; + } + + uint32 giving_id = 1; + repeated ItemParam item_param_list = 2; + map item_guid_count_map = 3; +} diff --git a/proto/ItemGivingRsp.proto b/proto/ItemGivingRsp.proto new file mode 100755 index 000000000..ac5d6f674 --- /dev/null +++ b/proto/ItemGivingRsp.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ItemGivingRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 141; + } + + int32 retcode = 1; + uint32 giving_id = 2; +} diff --git a/proto/ItemHint.proto b/proto/ItemHint.proto new file mode 100755 index 000000000..5409b461e --- /dev/null +++ b/proto/ItemHint.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ItemHint { + uint32 item_id = 1; + uint32 count = 2; + bool is_new = 3; +} diff --git a/proto/ItemParam.proto b/proto/ItemParam.proto new file mode 100755 index 000000000..10b7572c4 --- /dev/null +++ b/proto/ItemParam.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ItemParam { + uint32 item_id = 1; + uint32 count = 2; +} diff --git a/proto/LifeStateChangeNotify.proto b/proto/LifeStateChangeNotify.proto new file mode 100755 index 000000000..076b27611 --- /dev/null +++ b/proto/LifeStateChangeNotify.proto @@ -0,0 +1,24 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PlayerDieType.proto"; +import "ServerBuff.proto"; + +message LifeStateChangeNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1218; + } + + uint32 entity_id = 1; + uint32 life_state = 2; + uint32 source_entity_id = 3; + string attack_tag = 4; + PlayerDieType die_type = 5; + uint32 move_reliable_seq = 6; + repeated ServerBuff server_buff_list = 7; +} diff --git a/proto/MPLevelEntityInfo.proto b/proto/MPLevelEntityInfo.proto new file mode 100755 index 000000000..25b79c6c1 --- /dev/null +++ b/proto/MPLevelEntityInfo.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilitySyncStateInfo.proto"; + +message MPLevelEntityInfo { + uint32 entity_id = 1; + uint32 authority_peer_id = 2; + AbilitySyncStateInfo ability_info = 3; +} diff --git a/proto/MailChangeNotify.proto b/proto/MailChangeNotify.proto new file mode 100644 index 000000000..1e362f6ff --- /dev/null +++ b/proto/MailChangeNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MailData.proto"; + +message MailChangeNotify { + repeated MailData mail_list = 1; + repeated uint32 del_mail_id_list = 2; +} diff --git a/proto/MailData.proto b/proto/MailData.proto new file mode 100644 index 000000000..ba606c2e6 --- /dev/null +++ b/proto/MailData.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MailTextContent.proto"; +import "MailItem.proto"; + +message MailData { + uint32 mail_id = 1; + MailTextContent mail_text_content = 4; + repeated MailItem item_list = 7; + uint32 send_time = 8; + uint32 expire_time = 9; + uint32 importance = 10; + bool is_read = 11; + bool is_attachment_got = 12; + uint32 config_id = 13; + repeated string argument_list = 14; + uint32 state_value = 15; +} diff --git a/proto/MailItem.proto b/proto/MailItem.proto new file mode 100644 index 000000000..da657815e --- /dev/null +++ b/proto/MailItem.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; +import "MaterialDeleteInfo.proto"; + +message MailItem { + ItemParam item_param = 1; + MaterialDeleteInfo delete_info = 2; +} diff --git a/proto/MailTextContent.proto b/proto/MailTextContent.proto new file mode 100644 index 000000000..097710f87 --- /dev/null +++ b/proto/MailTextContent.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message MailTextContent { + string title = 1; + string content = 2; + string sender = 3; +} diff --git a/proto/MapMarkFromType.proto b/proto/MapMarkFromType.proto new file mode 100755 index 000000000..1dcbc0a09 --- /dev/null +++ b/proto/MapMarkFromType.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum MapMarkFromType { + NOE = 0; + MONSTER = 1; + QUEST = 2; +} diff --git a/proto/MapMarkPoint.proto b/proto/MapMarkPoint.proto new file mode 100755 index 000000000..2a615d49a --- /dev/null +++ b/proto/MapMarkPoint.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Vector.proto"; +import "MapMarkPointType.proto"; +import "MapMarkFromType.proto"; + +message MapMarkPoint { + uint32 scene_id = 1; + string name = 2; + Vector pos = 3; + MapMarkPointType point_type = 4; + uint32 monster_id = 5; + MapMarkFromType from_type = 6; + uint32 quest_id = 7; +} diff --git a/proto/MapMarkPointType.proto b/proto/MapMarkPointType.proto new file mode 100755 index 000000000..bce93da13 --- /dev/null +++ b/proto/MapMarkPointType.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum MapMarkPointType { + MAP_MARK_POINT_TYPE_NPC = 0; + MAP_MARK_POINT_TYPE_QUEST = 1; + MAP_MARK_POINT_TYPE_SPECIAL = 2; + MAP_MARK_POINT_TYPE_MINE = 3; + MAP_MARK_POINT_TYPE_COLLECTION = 4; + MAP_MARK_POINT_TYPE_MONSTER = 5; + MAP_MARK_POINT_TYPE_FISH_POOL = 6; +} diff --git a/proto/MarkMapReq.proto b/proto/MarkMapReq.proto new file mode 100755 index 000000000..41e9fe2bd --- /dev/null +++ b/proto/MarkMapReq.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MapMarkPoint.proto"; + +message MarkMapReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 3216; + } + + enum Operation { + ADD = 0; + MOD = 1; + DEL = 2; + GET = 3; + } + + Operation op = 1; + MapMarkPoint old = 2; + MapMarkPoint mark = 3; +} diff --git a/proto/MassivePropParam.proto b/proto/MassivePropParam.proto new file mode 100755 index 000000000..80ca7ee77 --- /dev/null +++ b/proto/MassivePropParam.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message MassivePropParam { + int32 type = 1; + repeated uint32 reaction_info_list = 2; + repeated float param_list = 3; + uint32 sync_flag = 4; +} diff --git a/proto/MassivePropSyncInfo.proto b/proto/MassivePropSyncInfo.proto new file mode 100755 index 000000000..b197a120a --- /dev/null +++ b/proto/MassivePropSyncInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MassivePropParam.proto"; + +message MassivePropSyncInfo { + int64 id = 1; + repeated MassivePropParam prop_list = 2; +} diff --git a/proto/Material.proto b/proto/Material.proto new file mode 100755 index 000000000..2303cf679 --- /dev/null +++ b/proto/Material.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MaterialDeleteInfo.proto"; + +message Material { + uint32 count = 1; + MaterialDeleteInfo delete_info = 2; +} diff --git a/proto/MaterialDeleteInfo.proto b/proto/MaterialDeleteInfo.proto new file mode 100755 index 000000000..1c8877ca1 --- /dev/null +++ b/proto/MaterialDeleteInfo.proto @@ -0,0 +1,26 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message MaterialDeleteInfo { + message CountDownDelete { + map delete_time_num_map = 1; + uint32 config_count_down_time = 2; + } + message DateTimeDelete { + uint32 delete_time = 1; + } + message DelayWeekCountDownDelete { + map delete_time_num_map = 1; + uint32 config_delay_week = 2; + uint32 config_count_down_time = 3; + } + + oneof DeleteInfo { + CountDownDelete count_down_delete = 2; + DateTimeDelete date_delete = 3; + DelayWeekCountDownDelete delay_week_count_down_delete = 4; + } + bool has_delete_config = 1; +} diff --git a/proto/MaterialInfo.proto b/proto/MaterialInfo.proto new file mode 100755 index 000000000..ea8701dca --- /dev/null +++ b/proto/MaterialInfo.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message MaterialInfo { + uint64 guid = 1; + uint32 count = 2; +} diff --git a/proto/MathQuaternion.proto b/proto/MathQuaternion.proto new file mode 100755 index 000000000..131e9a1aa --- /dev/null +++ b/proto/MathQuaternion.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message MathQuaternion { + float X = 1; + float Y = 2; + float Z = 3; + float W = 4; +} diff --git a/proto/ModifierDurability.proto b/proto/ModifierDurability.proto new file mode 100755 index 000000000..f59ccd026 --- /dev/null +++ b/proto/ModifierDurability.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ModifierDurability { + float reduce_ratio = 1; + float remaining_durability = 2; +} diff --git a/proto/MonsterBornType.proto b/proto/MonsterBornType.proto new file mode 100755 index 000000000..d44d80f5d --- /dev/null +++ b/proto/MonsterBornType.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum MonsterBornType { + MONSTER_BORN_NONE = 0; + MONSTER_BORN_DEFAULT = 1; + MONSTER_BORN_RANDOM = 2; +} diff --git a/proto/MonsterRoute.proto b/proto/MonsterRoute.proto new file mode 100755 index 000000000..dfea99313 --- /dev/null +++ b/proto/MonsterRoute.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "RoutePoint.proto"; + +message MonsterRoute { + repeated RoutePoint route_points = 1; + uint32 speed_level = 2; + uint32 route_type = 3; + float arrive_range = 4; +} diff --git a/proto/MotionInfo.proto b/proto/MotionInfo.proto new file mode 100755 index 000000000..3ce74eb94 --- /dev/null +++ b/proto/MotionInfo.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Vector.proto"; +import "MotionState.proto"; + +message MotionInfo { + Vector pos = 1; + Vector rot = 2; + Vector speed = 3; + MotionState state = 4; + repeated Vector params = 5; + Vector ref_pos = 6; + uint32 ref_id = 7; + uint32 scene_time = 8; + uint32 interval_velocity = 9; +} diff --git a/proto/MotionState.proto b/proto/MotionState.proto new file mode 100755 index 000000000..6897fc380 --- /dev/null +++ b/proto/MotionState.proto @@ -0,0 +1,61 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum MotionState { + MOTION_NONE = 0; + MOTION_RESET = 1; + MOTION_STANDBY = 2; + MOTION_STANDBY_MOVE = 3; + MOTION_WALK = 4; + MOTION_RUN = 5; + MOTION_DASH = 6; + MOTION_CLIMB = 7; + MOTION_CLIMB_JUMP = 8; + MOTION_STANDBY_TO_CLIMB = 9; + MOTION_FIGHT = 10; + MOTION_JUMP = 11; + MOTION_DROP = 12; + MOTION_FLY = 13; + MOTION_SWIM_MOVE = 14; + MOTION_SWIM_IDLE = 15; + MOTION_SWIM_DASH = 16; + MOTION_SWIM_JUMP = 17; + MOTION_SLIP = 18; + MOTION_GO_UPSTAIRS = 19; + MOTION_FALL_ON_GROUND = 20; + MOTION_JUMP_UP_WALL_FOR_STANDBY = 21; + MOTION_JUMP_OFF_WALL = 22; + MOTION_POWERED_FLY = 23; + MOTION_LADDER_IDLE = 24; + MOTION_LADDER_MOVE = 25; + MOTION_LADDER_SLIP = 26; + MOTION_STANDBY_TO_LADDER = 27; + MOTION_LADDER_TO_STANDBY = 28; + MOTION_DANGER_STANDBY = 29; + MOTION_DANGER_STANDBY_MOVE = 30; + MOTION_DANGER_WALK = 31; + MOTION_DANGER_RUN = 32; + MOTION_DANGER_DASH = 33; + MOTION_CROUCH_IDLE = 34; + MOTION_CROUCH_MOVE = 35; + MOTION_CROUCH_ROLL = 36; + MOTION_NOTIFY = 37; + MOTION_LAND_SPEED = 38; + MOTION_MOVE_FAIL_ACK = 39; + MOTION_WATERFALL = 40; + MOTION_DASH_BEFORE_SHAKE = 41; + MOTION_SIT_IDLE = 42; + MOTION_FORCE_SET_POS = 43; + MOTION_QUEST_FORCE_DRAG = 44; + MOTION_FOLLOW_ROUTE = 45; + MOTION_SKIFF_BOARDING = 46; + MOTION_SKIFF_NORMAL = 47; + MOTION_SKIFF_DASH = 48; + MOTION_SKIFF_POWERED_DASH = 49; + MOTION_DESTROY_VEHICLE = 50; + MOTION_FLY_IDLE = 51; + MOTION_FLY_SLOW = 52; + MOTION_FLY_FAST = 53; + MOTION_NUM = 54; +} diff --git a/proto/MovingPlatformType.proto b/proto/MovingPlatformType.proto new file mode 100755 index 000000000..9821a8373 --- /dev/null +++ b/proto/MovingPlatformType.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum MovingPlatformType { + MOVING_PLATFORM_NONE = 0; + MOVING_PLATFORM_USE_CONFIG = 1; + MOVING_PLATFORM_ABILITY = 2; + MOVING_PLATFORM_ROUTE = 3; +} diff --git a/proto/MpPlayRewardInfo.proto b/proto/MpPlayRewardInfo.proto new file mode 100644 index 000000000..a34cec490 --- /dev/null +++ b/proto/MpPlayRewardInfo.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message MpPlayRewardInfo { + uint32 resin = 1; + repeated uint32 remain_uid_list = 2; + repeated uint32 qualify_uid_list = 3; +} diff --git a/proto/MpSettingType.proto b/proto/MpSettingType.proto new file mode 100755 index 000000000..886f1e43e --- /dev/null +++ b/proto/MpSettingType.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum MpSettingType { + MP_SETTING_NO_ENTER = 0; + MP_SETTING_ENTER_FREELY = 1; + MP_SETTING_ENTER_AFTER_APPLY = 2; +} diff --git a/proto/NpcTalkReq.proto b/proto/NpcTalkReq.proto new file mode 100755 index 000000000..e6a90f068 --- /dev/null +++ b/proto/NpcTalkReq.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message NpcTalkReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 549; + } + + uint32 npc_entity_id = 1; + uint32 talk_id = 3; + uint32 entity_id = 4; +} diff --git a/proto/NpcTalkRsp.proto b/proto/NpcTalkRsp.proto new file mode 100755 index 000000000..5e398ad1f --- /dev/null +++ b/proto/NpcTalkRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message NpcTalkRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 518; + } + + int32 retcode = 1; + uint32 npc_entity_id = 2; + uint32 cur_talk_id = 4; + uint32 entity_id = 5; +} diff --git a/proto/OfferingInfo.proto b/proto/OfferingInfo.proto new file mode 100644 index 000000000..99e8ee69b --- /dev/null +++ b/proto/OfferingInfo.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message OfferingInfo { + uint32 offering_id = 1; +} diff --git a/proto/OnlinePlayerInfo.proto b/proto/OnlinePlayerInfo.proto new file mode 100755 index 000000000..8df80a821 --- /dev/null +++ b/proto/OnlinePlayerInfo.proto @@ -0,0 +1,22 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MpSettingType.proto"; +import "ProfilePicture.proto"; + +message OnlinePlayerInfo { + uint32 uid = 1; + string nickname = 2; + uint32 player_level = 3; + uint32 avatar_id = 4; + MpSettingType mp_setting_type = 5; + uint32 cur_player_num_in_world = 6; + uint32 world_level = 7; + string online_id = 8; + uint32 name_card_id = 9; + repeated uint32 blacklist_uid_list = 10; + string signature = 11; + ProfilePicture profile_picture = 12; + string psn_id = 13; +} diff --git a/proto/OpenStateUpdateNotify.proto b/proto/OpenStateUpdateNotify.proto new file mode 100755 index 000000000..8d70a9d0a --- /dev/null +++ b/proto/OpenStateUpdateNotify.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message OpenStateUpdateNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 196; + } + + map open_state_map = 1; +} diff --git a/proto/Operation.proto b/proto/Operation.proto new file mode 100755 index 000000000..c48819bd5 --- /dev/null +++ b/proto/Operation.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum Operation { + Add = 0; + Mod = 1; + Del = 2; + Get = 3; +} diff --git a/proto/PacketHead.proto b/proto/PacketHead.proto new file mode 100755 index 000000000..bb63f4ae9 --- /dev/null +++ b/proto/PacketHead.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message PacketHead { + uint32 client_sequence_id = 3; + uint64 timestamp = 6; +} diff --git a/proto/PingReq.proto b/proto/PingReq.proto new file mode 100755 index 000000000..e5bc38cc7 --- /dev/null +++ b/proto/PingReq.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message PingReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 100; + } + + uint32 seq = 1; + uint32 client_time = 2; + bytes sc_data = 3; + float ue_time = 4; + double total_tick_time = 5; +} diff --git a/proto/PingRsp.proto b/proto/PingRsp.proto new file mode 100755 index 000000000..b898469e1 --- /dev/null +++ b/proto/PingRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message PingRsp { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + CMD_ID = 1; + ENET_IS_RELIABLE = 1; + } + + int32 retcode = 1; + uint32 seq = 2; + uint32 client_time = 3; +} diff --git a/proto/PlatformInfo.proto b/proto/PlatformInfo.proto new file mode 100755 index 000000000..659afc373 --- /dev/null +++ b/proto/PlatformInfo.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Vector.proto"; +import "MathQuaternion.proto"; +import "MovingPlatformType.proto"; +import "Route.proto"; + +message PlatformInfo { + uint32 route_id = 1; + int32 start_index = 2; + uint32 start_route_time = 3; + uint32 start_scene_time = 4; + Vector start_pos = 7; + bool is_started = 8; + MathQuaternion start_rot = 9; + uint32 stop_scene_time = 10; + Vector pos_offset = 11; + MathQuaternion rot_offset = 12; + MovingPlatformType moving_platform_type = 13; + bool is_active = 14; + Route route = 15; + uint32 point_id = 16; +} diff --git a/proto/PlatformType.proto b/proto/PlatformType.proto new file mode 100644 index 000000000..8f4904622 --- /dev/null +++ b/proto/PlatformType.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum PlatformType { + EDITOR = 0; + IOS = 1; + ANDROID = 2; + PC = 3; + PS4 = 4; + SERVER = 5; + CLOUD_ANDROID = 6; + CLOUD_IOS = 7; + PS5 = 8; + CLOUD_WEB = 9; + CLOUD_TV = 10; +} diff --git a/proto/PlayTeamEntityInfo.proto b/proto/PlayTeamEntityInfo.proto new file mode 100644 index 000000000..0e7636602 --- /dev/null +++ b/proto/PlayTeamEntityInfo.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilitySyncStateInfo.proto"; + +message PlayTeamEntityInfo { + uint32 entity_id = 1; + uint32 player_uid = 2; + uint32 authority_peer_id = 3; + uint32 gadget_config_id = 5; + AbilitySyncStateInfo ability_info = 6; +} diff --git a/proto/PlayerApplyEnterMpNotify.proto b/proto/PlayerApplyEnterMpNotify.proto new file mode 100755 index 000000000..b742a4227 --- /dev/null +++ b/proto/PlayerApplyEnterMpNotify.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "OnlinePlayerInfo.proto"; + +message PlayerApplyEnterMpNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1803; + } + + OnlinePlayerInfo src_player_info = 1; + uint32 src_app_id = 2; + uint32 src_thread_index = 3; +} diff --git a/proto/PlayerApplyEnterMpReason.proto b/proto/PlayerApplyEnterMpReason.proto new file mode 100755 index 000000000..e305e435f --- /dev/null +++ b/proto/PlayerApplyEnterMpReason.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum PlayerApplyEnterMpReason { + PlayerJudge = 0; + SceneCannotEnter = 1; + PlayerCannotEnterMp = 2; + SystemJudge = 3; + AllowEnterPlayerFull = 4; + WorldLevelLowerThanHost = 5; + HostInMatch = 6; + PlayerInBlacklist = 7; + PsPlayerNotAcceptOthers = 8; + HostIsBlocked = 9; + OtherDataVersionNotLatest = 10; + DataVersionNotLatest = 11; + PlayerNotInPlayerWorld = 12; +} diff --git a/proto/PlayerApplyEnterMpReq.proto b/proto/PlayerApplyEnterMpReq.proto new file mode 100755 index 000000000..8d4c5f18b --- /dev/null +++ b/proto/PlayerApplyEnterMpReq.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message PlayerApplyEnterMpReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 1843; + } + + uint32 target_uid = 1; +} diff --git a/proto/PlayerApplyEnterMpResultNotify.proto b/proto/PlayerApplyEnterMpResultNotify.proto new file mode 100755 index 000000000..7c8921ad1 --- /dev/null +++ b/proto/PlayerApplyEnterMpResultNotify.proto @@ -0,0 +1,36 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message PlayerApplyEnterMpResultNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1805; + } + + enum Reason { + PLAYER_JUDGE = 0; + SCENE_CANNOT_ENTER = 1; + PLAYER_CANNOT_ENTER_MP = 2; + SYSTEM_JUDGE = 3; + ALLOW_ENTER_PLAYER_FULL = 4; + WORLD_LEVEL_LOWER_THAN_HOST = 5; + HOST_IN_MATCH = 6; + PLAYER_IN_BLACKLIST = 7; + PS_PLAYER_NOT_ACCEPT_OTHERS = 8; + HOST_IS_BLOCKED = 9; + OTHER_DATA_VERSION_NOT_LATEST = 10; + DATA_VERSION_NOT_LATEST = 11; + PLAYER_NOT_IN_PLAYER_WORLD = 12; + MAX_PLAYER = 13; + } + + uint32 target_uid = 1; + bool is_agreed = 2; + Reason reason = 3; + string target_nickname = 4; +} diff --git a/proto/PlayerApplyEnterMpResultReq.proto b/proto/PlayerApplyEnterMpResultReq.proto new file mode 100755 index 000000000..c084c00f8 --- /dev/null +++ b/proto/PlayerApplyEnterMpResultReq.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message PlayerApplyEnterMpResultReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 1824; + } + + uint32 apply_uid = 1; + bool is_agreed = 2; +} diff --git a/proto/PlayerApplyEnterMpResultRsp.proto b/proto/PlayerApplyEnterMpResultRsp.proto new file mode 100755 index 000000000..d7d42eb6a --- /dev/null +++ b/proto/PlayerApplyEnterMpResultRsp.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message PlayerApplyEnterMpResultRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1832; + } + + int32 retcode = 1; + uint32 apply_uid = 2; + bool is_agreed = 3; + uint32 param = 4; +} diff --git a/proto/PlayerApplyEnterMpRsp.proto b/proto/PlayerApplyEnterMpRsp.proto new file mode 100755 index 000000000..05e7e3499 --- /dev/null +++ b/proto/PlayerApplyEnterMpRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message PlayerApplyEnterMpRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1827; + } + + int32 retcode = 1; + uint32 target_uid = 2; + uint32 param = 3; +} diff --git a/proto/PlayerChatNotify.proto b/proto/PlayerChatNotify.proto new file mode 100755 index 000000000..738602a06 --- /dev/null +++ b/proto/PlayerChatNotify.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ChatInfo.proto"; + +message PlayerChatNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 3122; + } + + uint32 channel_id = 1; + ChatInfo chat_info = 2; +} diff --git a/proto/PlayerChatReq.proto b/proto/PlayerChatReq.proto new file mode 100755 index 000000000..4568a6b23 --- /dev/null +++ b/proto/PlayerChatReq.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ChatInfo.proto"; + +message PlayerChatReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 3326; + } + + uint32 channel_id = 1; + ChatInfo chat_info = 2; +} diff --git a/proto/PlayerChatRsp.proto b/proto/PlayerChatRsp.proto new file mode 100755 index 000000000..1b9e8e04d --- /dev/null +++ b/proto/PlayerChatRsp.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message PlayerChatRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 3485; + } + + int32 retcode = 1; + uint32 chat_forbidden_endtime = 2; +} diff --git a/proto/PlayerDataNotify.proto b/proto/PlayerDataNotify.proto new file mode 100755 index 000000000..117e4fdca --- /dev/null +++ b/proto/PlayerDataNotify.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PropValue.proto"; + +message PlayerDataNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 142; + } + + string nick_name = 1; + uint64 server_time = 2; + bool is_first_login_today = 3; + uint32 region_id = 4; + map prop_map = 6; +} diff --git a/proto/PlayerDieType.proto b/proto/PlayerDieType.proto new file mode 100755 index 000000000..bd9edaf69 --- /dev/null +++ b/proto/PlayerDieType.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum PlayerDieType { + PLAYER_DIE_NONE = 0; + PLAYER_DIE_KILL_BY_MONSTER = 1; + PLAYER_DIE_KILL_BY_GEAR = 2; + PLAYER_DIE_FALL = 3; + PLAYER_DIE_DRAWN = 4; + PLAYER_DIE_ABYSS = 5; + PLAYER_DIE_GM = 6; + PLAYER_DIE_CLIMATE_COLD = 7; + PLAYER_DIE_STORM_LIGHTING = 8; +} diff --git a/proto/PlayerEnterSceneInfoNotify.proto b/proto/PlayerEnterSceneInfoNotify.proto new file mode 100755 index 000000000..1202f058e --- /dev/null +++ b/proto/PlayerEnterSceneInfoNotify.proto @@ -0,0 +1,24 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "TeamEnterSceneInfo.proto"; +import "MPLevelEntityInfo.proto"; +import "AvatarEnterSceneInfo.proto"; + +message PlayerEnterSceneInfoNotify { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 246; + } + + uint32 cur_avatar_entity_id = 1; + repeated AvatarEnterSceneInfo avatar_enter_info = 2; + TeamEnterSceneInfo team_enter_info = 3; + MPLevelEntityInfo mp_level_entity_info = 4; + uint32 enter_scene_token = 5; +} diff --git a/proto/PlayerEnterSceneNotify.proto b/proto/PlayerEnterSceneNotify.proto new file mode 100755 index 000000000..3dc84e10b --- /dev/null +++ b/proto/PlayerEnterSceneNotify.proto @@ -0,0 +1,33 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Vector.proto"; +import "EnterType.proto"; + +message PlayerEnterSceneNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 249; + } + + uint32 scene_id = 1; + Vector pos = 2; + uint64 scene_begin_time = 3; + EnterType type = 4; + uint32 target_uid = 6; + uint32 prev_scene_id = 9; + Vector prev_pos = 10; + uint32 dungeon_id = 11; + uint32 world_level = 12; + uint32 enter_scene_token = 13; + bool is_first_login_enter_scene = 14; + repeated uint32 scene_tag_id_list = 15; + bool is_skip_ui = 16; + uint32 enter_reason = 17; + uint32 world_type = 18; + string scene_transaction = 19; +} diff --git a/proto/PlayerGameTimeNotify.proto b/proto/PlayerGameTimeNotify.proto new file mode 100755 index 000000000..53f0daf96 --- /dev/null +++ b/proto/PlayerGameTimeNotify.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message PlayerGameTimeNotify { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 112; + } + + uint32 game_time = 1; + uint32 uid = 2; + bool is_home = 3; +} diff --git a/proto/PlayerGetForceQuitBanInfoRsp.proto b/proto/PlayerGetForceQuitBanInfoRsp.proto new file mode 100755 index 000000000..bdac2277a --- /dev/null +++ b/proto/PlayerGetForceQuitBanInfoRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message PlayerGetForceQuitBanInfoRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 4188; + } + + int32 retcode = 1; + uint32 match_id = 2; + uint32 expire_time = 3; +} diff --git a/proto/PlayerLevelRewardUpdateNotify.proto b/proto/PlayerLevelRewardUpdateNotify.proto new file mode 100755 index 000000000..dc3dd44dc --- /dev/null +++ b/proto/PlayerLevelRewardUpdateNotify.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message PlayerLevelRewardUpdateNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 152; + } + + repeated uint32 level_list = 1; +} diff --git a/proto/PlayerLocationInfo.proto b/proto/PlayerLocationInfo.proto new file mode 100755 index 000000000..9816560ee --- /dev/null +++ b/proto/PlayerLocationInfo.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Vector.proto"; + +message PlayerLocationInfo { + uint32 uid = 1; + Vector pos = 2; + Vector rot = 3; +} diff --git a/proto/PlayerLoginReq.proto b/proto/PlayerLoginReq.proto new file mode 100755 index 000000000..095047fa2 --- /dev/null +++ b/proto/PlayerLoginReq.proto @@ -0,0 +1,56 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "TrackingIOInfo.proto"; +import "AdjustTrackingInfo.proto"; + +message PlayerLoginReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 189; + } + + string token = 1; + string client_version = 2; + string system_version = 3; + string device_name = 4; + string device_uuid = 5; + uint32 target_uid = 6; + uint64 login_rand = 7; + bool is_editor = 8; + uint32 language_type = 9; + uint32 account_type = 10; + string account_uid = 11; + string platform = 12; + string device_info = 13; + uint32 platform_type = 14; + bool is_guest = 15; + uint32 cloud_client_ip = 16; + uint32 gm_uid = 17; + string checksum = 18; + string online_id = 19; + uint32 client_token = 20; + bytes security_cmd_reply = 21; + bytes extra_bin_data = 22; + string cps = 23; + uint32 channel_id = 24; + uint32 sub_channel_id = 25; + string checksum_client_version = 26; + uint32 tag = 27; + TrackingIOInfo tracking_io_info = 28; + string country_code = 29; + uint32 client_data_version = 30; + bytes environment_error_code = 31; + uint32 target_home_owner_uid = 32; + string psn_id = 33; + string client_verison_hash = 34; + bool is_transfer = 35; + uint32 reg_platform = 36; + uint32 target_home_param = 37; + AdjustTrackingInfo adjust_tracking_info = 38; +} diff --git a/proto/PlayerLoginRsp.proto b/proto/PlayerLoginRsp.proto new file mode 100755 index 000000000..0aa59e21e --- /dev/null +++ b/proto/PlayerLoginRsp.proto @@ -0,0 +1,52 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ResVersionConfig.proto"; +import "BlockInfo.proto"; +import "ShortAbilityHashPair.proto"; +import "FeatureBlockInfo.proto"; + +message PlayerLoginRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 184; + } + + int32 retcode = 1; + bytes player_data = 2; + bool is_new_player = 3; + uint32 target_uid = 4; + uint64 login_rand = 5; + bool is_use_ability_hash = 6; + int32 ability_hash_code = 7; + map ability_hash_map = 8; + uint32 client_data_version = 9; + bool is_relogin = 11; + uint32 client_silence_data_version = 13; + string game_biz = 14; + uint32 player_data_version = 15; + string client_md5 = 16; + string client_silence_md5 = 17; + ResVersionConfig res_version_config = 20; + map block_info_map = 21; + string client_version_suffix = 24; + string client_silence_version_suffix = 25; + repeated ShortAbilityHashPair short_ability_hash_map = 27; + bytes sc_info = 28; + bool is_audit = 29; + bool is_sc_open = 30; + string register_cps = 31; + repeated FeatureBlockInfo feature_block_info_list = 32; + bool is_data_need_relogin = 33; + string country_code = 34; + ResVersionConfig next_res_version_config = 35; + string next_resource_url = 36; + uint32 target_home_owner_uid = 37; + bool is_enable_client_hash_debug = 38; + bool is_transfer = 39; + double total_tick_time = 40; +} diff --git a/proto/PlayerPropNotify.proto b/proto/PlayerPropNotify.proto new file mode 100755 index 000000000..22d32bdce --- /dev/null +++ b/proto/PlayerPropNotify.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PropValue.proto"; + +message PlayerPropNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 126; + } + + map prop_map = 1; +} diff --git a/proto/PlayerRTTInfo.proto b/proto/PlayerRTTInfo.proto new file mode 100755 index 000000000..4618fcb0e --- /dev/null +++ b/proto/PlayerRTTInfo.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message PlayerRTTInfo { + uint32 uid = 1; + uint32 rtt = 2; +} diff --git a/proto/PlayerSetPauseReq.proto b/proto/PlayerSetPauseReq.proto new file mode 100755 index 000000000..442bc47c2 --- /dev/null +++ b/proto/PlayerSetPauseReq.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message PlayerSetPauseReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 121; + } + + bool is_paused = 1; +} diff --git a/proto/PlayerStoreNotify.proto b/proto/PlayerStoreNotify.proto new file mode 100755 index 000000000..b81b78479 --- /dev/null +++ b/proto/PlayerStoreNotify.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "StoreType.proto"; +import "Item.proto"; + +message PlayerStoreNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 649; + } + + StoreType store_type = 1; + repeated Item item_list = 2; + uint32 weight_limit = 3; +} diff --git a/proto/PlayerTimeNotify.proto b/proto/PlayerTimeNotify.proto new file mode 100755 index 000000000..3b004f6f0 --- /dev/null +++ b/proto/PlayerTimeNotify.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message PlayerTimeNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 120; + } + + bool is_paused = 1; + uint64 player_time = 2; + uint64 server_time = 3; +} diff --git a/proto/PlayerWorldLocationInfo.proto b/proto/PlayerWorldLocationInfo.proto new file mode 100644 index 000000000..282cbde0a --- /dev/null +++ b/proto/PlayerWorldLocationInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PlayerLocationInfo.proto"; + +message PlayerWorldLocationInfo { + uint32 scene_id = 1; + PlayerLocationInfo player_loc = 2; +} diff --git a/proto/PostEnterSceneRsp.proto b/proto/PostEnterSceneRsp.proto new file mode 100755 index 000000000..7e836219f --- /dev/null +++ b/proto/PostEnterSceneRsp.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message PostEnterSceneRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 3139; + } + + int32 retcode = 1; + uint32 enter_scene_token = 2; +} diff --git a/proto/PrivateChatNotify.proto b/proto/PrivateChatNotify.proto new file mode 100755 index 000000000..d40a879ff --- /dev/null +++ b/proto/PrivateChatNotify.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ChatInfo.proto"; + +message PrivateChatNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 5039; + } + + ChatInfo chat_info = 1; +} diff --git a/proto/PrivateChatReq.proto b/proto/PrivateChatReq.proto new file mode 100755 index 000000000..388d254ab --- /dev/null +++ b/proto/PrivateChatReq.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message PrivateChatReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 4999; + } + + oneof Content { + string text = 2; + uint32 icon = 3; + } + uint32 target_uid = 1; +} diff --git a/proto/PrivateChatRsp.proto b/proto/PrivateChatRsp.proto new file mode 100755 index 000000000..cbea58d75 --- /dev/null +++ b/proto/PrivateChatRsp.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message PrivateChatRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 4968; + } + + int32 retcode = 1; + uint32 chat_forbidden_endtime = 2; +} diff --git a/proto/ProfilePicture.proto b/proto/ProfilePicture.proto new file mode 100644 index 000000000..2b6af5930 --- /dev/null +++ b/proto/ProfilePicture.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ProfilePicture { + uint32 avatar_id = 1; + uint32 costume_id = 2; +} diff --git a/proto/PropChangeReason.proto b/proto/PropChangeReason.proto new file mode 100755 index 000000000..f947a8ea7 --- /dev/null +++ b/proto/PropChangeReason.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum PropChangeReason { + PROP_CHANGE_NONE = 0; + PROP_CHANGE_STATUE_RECOVER = 1; + PROP_CHANGE_ENERGY_BALL = 2; + PROP_CHANGE_ABILITY = 3; + PROP_CHANGE_LEVELUP = 4; + PROP_CHANGE_ITEM = 5; + PROP_CHANGE_AVATAR_CARD = 6; + PROP_CHANGE_CITY_LEVELUP = 7; + PROP_CHANGE_AVATAR_UPGRADE = 8; + PROP_CHANGE_AVATAR_PROMOTE = 9; + PROP_CHANGE_PLAYER_ADD_EXP = 10; + PROP_CHANGE_FINISH_QUEST = 11; + PROP_CHANGE_GM = 12; + PROP_CHANGE_MANUAL_ADJUST_WORLD_LEVEL = 13; +} diff --git a/proto/PropPair.proto b/proto/PropPair.proto new file mode 100755 index 000000000..f294e03df --- /dev/null +++ b/proto/PropPair.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PropValue.proto"; + +message PropPair { + uint32 type = 1; + PropValue prop_value = 2; +} diff --git a/proto/PropValue.proto b/proto/PropValue.proto new file mode 100755 index 000000000..15ff0e37f --- /dev/null +++ b/proto/PropValue.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message PropValue { + oneof Value { + int64 ival = 2; + float fval = 3; + } + uint32 type = 1; + int64 val = 4; +} diff --git a/proto/ProtEntityType.proto b/proto/ProtEntityType.proto new file mode 100755 index 000000000..03a451c20 --- /dev/null +++ b/proto/ProtEntityType.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum ProtEntityType { + PROT_ENTITY_NONE = 0; + PROT_ENTITY_AVATAR = 1; + PROT_ENTITY_MONSTER = 2; + PROT_ENTITY_NPC = 3; + PROT_ENTITY_GADGET = 4; + PROT_ENTITY_REGION = 5; + PROT_ENTITY_WEAPON = 6; + PROT_ENTITY_WEATHER = 7; + PROT_ENTITY_SCENE = 8; + PROT_ENTITY_TEAM = 9; + PROT_ENTITY_MASSIVE_ENTITY = 10; + PROT_ENTITY_MP_LEVEL = 11; + PROT_ENTITY_PLAY_TEAM_ENTITY = 12; + PROT_ENTITY_EYE_POINT = 13; + PROT_ENTITY_MAX = 14; +} diff --git a/proto/ProudSkillChangeNotify.proto b/proto/ProudSkillChangeNotify.proto new file mode 100755 index 000000000..eab257802 --- /dev/null +++ b/proto/ProudSkillChangeNotify.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ProudSkillChangeNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1012; + } + + uint64 avatar_guid = 1; + uint32 entity_id = 2; + uint32 skill_depot_id = 3; + repeated uint32 proud_skill_list = 4; +} diff --git a/proto/ProudSkillExtraLevelNotify.proto b/proto/ProudSkillExtraLevelNotify.proto new file mode 100755 index 000000000..77d5e666d --- /dev/null +++ b/proto/ProudSkillExtraLevelNotify.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ProudSkillExtraLevelNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1036; + } + + uint64 avatar_guid = 1; + uint32 talent_type = 2; + uint32 talent_index = 3; + uint32 extra_level = 4; +} diff --git a/proto/PullPrivateChatReq.proto b/proto/PullPrivateChatReq.proto new file mode 100755 index 000000000..8dc4d5fc2 --- /dev/null +++ b/proto/PullPrivateChatReq.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message PullPrivateChatReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 4951; + } + + uint32 target_uid = 1; + uint32 from_sequence = 2; + uint32 pull_num = 3; +} diff --git a/proto/PullPrivateChatRsp.proto b/proto/PullPrivateChatRsp.proto new file mode 100755 index 000000000..3a3c44ce1 --- /dev/null +++ b/proto/PullPrivateChatRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ChatInfo.proto"; + +message PullPrivateChatRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 5044; + } + + int32 retcode = 1; + repeated ChatInfo chat_info = 2; +} diff --git a/proto/PullRecentChatRsp.proto b/proto/PullRecentChatRsp.proto new file mode 100755 index 000000000..43ab77dd7 --- /dev/null +++ b/proto/PullRecentChatRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ChatInfo.proto"; + +message PullRecentChatRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 5011; + } + + int32 retcode = 1; + repeated ChatInfo chat_info = 2; +} diff --git a/proto/QueryCurrRegionHttpRsp.proto b/proto/QueryCurrRegionHttpRsp.proto new file mode 100755 index 000000000..cd8cb0293 --- /dev/null +++ b/proto/QueryCurrRegionHttpRsp.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ForceUpdateInfo.proto"; +import "StopServerInfo.proto"; +import "RegionInfo.proto"; + +message QueryCurrRegionHttpRsp { + oneof Detail { + ForceUpdateInfo force_udpate = 4; + StopServerInfo stop_server = 5; + } + int32 retcode = 1; + string msg = 2; + RegionInfo region_info = 3; + bytes client_secret_key = 11; + bytes region_custom_config_encrypted = 12; + bytes client_region_custom_config_encrypted = 13; +} diff --git a/proto/QueryRegionListHttpRsp.proto b/proto/QueryRegionListHttpRsp.proto new file mode 100755 index 000000000..d3ab02247 --- /dev/null +++ b/proto/QueryRegionListHttpRsp.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "RegionSimpleInfo.proto"; + +message QueryRegionListHttpRsp { + int32 retcode = 1; + repeated RegionSimpleInfo region_list = 2; + bytes client_secret_key = 5; + bytes client_custom_config_encrypted = 6; + bool enable_login_pc = 7; +} diff --git a/proto/ReadMailNotify.proto b/proto/ReadMailNotify.proto new file mode 100644 index 000000000..f485c8a6c --- /dev/null +++ b/proto/ReadMailNotify.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ReadMailNotify { + repeated uint32 mail_id_list = 1; +} diff --git a/proto/RegionInfo.proto b/proto/RegionInfo.proto new file mode 100755 index 000000000..87e14d58c --- /dev/null +++ b/proto/RegionInfo.proto @@ -0,0 +1,36 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ResVersionConfig.proto"; + +message RegionInfo { + string gateserver_ip = 1; + uint32 gateserver_port = 2; + string pay_callback_url = 3; + string area_type = 7; + string resource_url = 8; + string data_url = 9; + string feedback_url = 10; + string bulletin_url = 11; + string resource_url_bak = 12; + string data_url_bak = 13; + uint32 client_data_version = 14; + string handbook_url = 16; + uint32 client_silence_data_version = 18; + string client_data_md5 = 19; + string client_silence_data_md5 = 20; + ResVersionConfig res_version_config = 22; + bytes secret_key = 23; + string official_community_url = 24; + string client_version_suffix = 26; + string client_silence_version_suffix = 27; + bool use_gateserver_domain_name = 28; + string gateserver_domain_name = 29; + string user_center_url = 30; + string account_bind_url = 31; + string cdkey_url = 32; + string privacy_policy_url = 33; + string next_resource_url = 34; + ResVersionConfig next_res_version_config = 35; +} diff --git a/proto/RegionSimpleInfo.proto b/proto/RegionSimpleInfo.proto new file mode 100755 index 000000000..e70ade47e --- /dev/null +++ b/proto/RegionSimpleInfo.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message RegionSimpleInfo { + string name = 1; + string title = 2; + string type = 3; + string dispatch_url = 4; +} diff --git a/proto/Reliquary.proto b/proto/Reliquary.proto new file mode 100755 index 000000000..a38387bab --- /dev/null +++ b/proto/Reliquary.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message Reliquary { + uint32 level = 1; + uint32 exp = 2; + uint32 promote_level = 3; + uint32 main_prop_id = 4; + repeated uint32 append_prop_id_list = 5; +} diff --git a/proto/ReliquaryPromoteReq.proto b/proto/ReliquaryPromoteReq.proto new file mode 100755 index 000000000..780844be0 --- /dev/null +++ b/proto/ReliquaryPromoteReq.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ReliquaryPromoteReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 622; + } + + uint64 target_guid = 1; + uint64 item_guid = 2; +} diff --git a/proto/ReliquaryPromoteRsp.proto b/proto/ReliquaryPromoteRsp.proto new file mode 100755 index 000000000..36cd6aec6 --- /dev/null +++ b/proto/ReliquaryPromoteRsp.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ReliquaryPromoteRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 676; + } + + int32 retcode = 1; + uint64 target_reliquary_guid = 2; + uint32 old_promote_level = 3; + uint32 cur_promote_level = 4; + repeated uint32 old_append_prop_list = 5; + repeated uint32 cur_append_prop_list = 6; +} diff --git a/proto/ReliquaryUpgradeReq.proto b/proto/ReliquaryUpgradeReq.proto new file mode 100755 index 000000000..78e136bb1 --- /dev/null +++ b/proto/ReliquaryUpgradeReq.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message ReliquaryUpgradeReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 616; + } + + uint64 target_reliquary_guid = 1; + repeated uint64 food_reliquary_guid_list = 2; + repeated ItemParam item_param_list = 3; +} diff --git a/proto/ReliquaryUpgradeRsp.proto b/proto/ReliquaryUpgradeRsp.proto new file mode 100755 index 000000000..f5fe7eae1 --- /dev/null +++ b/proto/ReliquaryUpgradeRsp.proto @@ -0,0 +1,22 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ReliquaryUpgradeRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 696; + } + + int32 retcode = 1; + uint64 target_reliquary_guid = 2; + uint32 old_level = 3; + uint32 cur_level = 4; + uint32 power_up_rate = 5; + repeated uint32 old_append_prop_list = 6; + repeated uint32 cur_append_prop_list = 7; +} diff --git a/proto/ResVersionConfig.proto b/proto/ResVersionConfig.proto new file mode 100755 index 000000000..36073f2af --- /dev/null +++ b/proto/ResVersionConfig.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ResVersionConfig { + uint32 version = 1; + bool relogin = 2; + string md5 = 3; + string release_total_size = 4; + string version_suffix = 5; + string branch = 6; + string next_script_version = 7; +} diff --git a/proto/ResinCard.proto b/proto/ResinCard.proto new file mode 100755 index 000000000..66db1bad8 --- /dev/null +++ b/proto/ResinCard.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message ResinCard { + repeated ItemParam baseItemList = 1; + repeated ItemParam perDayItemList = 2; +} diff --git a/proto/ResinChangeNotify.proto b/proto/ResinChangeNotify.proto new file mode 100755 index 000000000..d68c0db22 --- /dev/null +++ b/proto/ResinChangeNotify.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ResinChangeNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 611; + } + + uint32 cur_value = 1; + uint32 next_add_timestamp = 2; + uint32 cur_buy_count = 3; +} diff --git a/proto/ResinCostType.proto b/proto/ResinCostType.proto new file mode 100755 index 000000000..92e395509 --- /dev/null +++ b/proto/ResinCostType.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum ResinCostType { + NONE = 0; + NORMAL = 1; + CONDENSE = 2; + REUNION_PRIVILEGE = 3; + OP_ACTIVITY = 4; + MATERIAL = 5; +} diff --git a/proto/Retcode.proto b/proto/Retcode.proto new file mode 100644 index 000000000..7464e8ea6 --- /dev/null +++ b/proto/Retcode.proto @@ -0,0 +1,834 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum Retcode { + RET_SUCC = 0; + RET_SVR_ERROR = 1; + RET_UNKNOWN_ERROR = 2; + RET_FREQUENT = 3; + RET_NODE_FORWARD_ERROR = 4; + RET_NOT_FOUND_CONFIG = 5; + RET_SYSTEM_BUSY = 6; + RET_GM_UID_BIND = 7; + RET_STOP_REGISTER = 10; + RET_STOP_SERVER = 11; + RET_ACCOUNT_VEIRFY_ERROR = 12; + RET_ACCOUNT_FREEZE = 13; + RET_REPEAT_LOGIN = 14; + RET_CLIENT_VERSION_ERROR = 15; + RET_TOKEN_ERROR = 16; + RET_ACCOUNT_NOT_EXIST = 17; + RET_WAIT_OTHER_LOGIN = 18; + RET_ANOTHER_LOGIN = 19; + RET_CLIENT_FORCE_UPDATE = 20; + RET_BLACK_UID = 21; + RET_LOGIN_DB_FAIL = 22; + RET_LOGIN_INIT_FAIL = 23; + RET_MYSQL_DUPLICATE = 24; + RET_MAX_PLAYER = 25; + RET_ANTI_ADDICT = 26; + RET_PS_PLAYER_WITHOUT_ONLINE_ID = 27; + RET_ONLINE_ID_NOT_FOUND = 28; + RET_ONLNE_ID_NOT_MATCH = 29; + RET_REGISTER_IS_FULL = 30; + RET_CHECKSUM_INVALID = 31; + RET_BLACK_REGISTER_IP = 32; + RET_EXCEED_REGISTER_RATE = 33; + RET_UNKNOWN_PLATFORM = 34; + RET_TOKEN_PARAM_ERROR = 35; + RET_ANTI_OFFLINE_ERROR = 36; + RET_BLACK_LOGIN_IP = 37; + RET_GET_TOKEN_SESSION_HAS_UID = 38; + RET_ENVIRONMENT_ERROR = 39; + RET_CHECK_CLIENT_VERSION_HASH_FAIL = 40; + RET_AVATAR_IN_CD = 101; + RET_AVATAR_NOT_ALIVE = 102; + RET_AVATAR_NOT_ON_SCENE = 103; + RET_CAN_NOT_FIND_AVATAR = 104; + RET_CAN_NOT_DEL_CUR_AVATAR = 105; + RET_DUPLICATE_AVATAR = 106; + RET_AVATAR_IS_SAME_ONE = 107; + RET_AVATAR_LEVEL_LESS_THAN = 108; + RET_AVATAR_CAN_NOT_CHANGE_ELEMENT = 109; + RET_AVATAR_BREAK_LEVEL_LESS_THAN = 110; + RET_AVATAR_ON_MAX_BREAK_LEVEL = 111; + RET_AVATAR_ID_ALREADY_EXIST = 112; + RET_AVATAR_NOT_DEAD = 113; + RET_AVATAR_IS_REVIVING = 114; + RET_AVATAR_ID_ERROR = 115; + RET_REPEAT_SET_PLAYER_BORN_DATA = 116; + RET_PLAYER_LEVEL_LESS_THAN = 117; + RET_AVATAR_LIMIT_LEVEL_ERROR = 118; + RET_CUR_AVATAR_NOT_ALIVE = 119; + RET_CAN_NOT_FIND_TEAM = 120; + RET_CAN_NOT_FIND_CUR_TEAM = 121; + RET_AVATAR_NOT_EXIST_IN_TEAM = 122; + RET_CAN_NOT_REMOVE_CUR_AVATAR_FROM_TEAM = 123; + RET_CAN_NOT_USE_REVIVE_ITEM_FOR_CUR_AVATAR = 124; + RET_TEAM_COST_EXCEED_LIMIT = 125; + RET_TEAM_AVATAR_IN_EXPEDITION = 126; + RET_TEAM_CAN_NOT_CHOSE_REPLACE_USE = 127; + RET_AVATAR_IN_COMBAT = 128; + RET_NICKNAME_UTF8_ERROR = 130; + RET_NICKNAME_TOO_LONG = 131; + RET_NICKNAME_WORD_ILLEGAL = 132; + RET_NICKNAME_TOO_MANY_DIGITS = 133; + RET_NICKNAME_IS_EMPTY = 134; + RET_PLAYER_NOT_ONLINE = 140; + RET_OPEN_STATE_NOT_OPEN = 141; + RET_FEATURE_CLOSED = 142; + RET_AVATAR_EXPEDITION_AVATAR_DIE = 152; + RET_AVATAR_EXPEDITION_COUNT_LIMIT = 153; + RET_AVATAR_EXPEDITION_MAIN_FORBID = 154; + RET_AVATAR_EXPEDITION_TRIAL_FORBID = 155; + RET_TEAM_NAME_ILLEGAL = 156; + RET_IS_NOT_IN_STANDBY = 157; + RET_IS_IN_DUNGEON = 158; + RET_IS_IN_LOCK_AVATAR_QUEST = 159; + RET_IS_USING_TRIAL_AVATAR = 160; + RET_IS_USING_TEMP_AVATAR = 161; + RET_NOT_HAS_FLYCLOAK = 162; + RET_FETTER_REWARD_ALREADY_GOT = 163; + RET_FETTER_REWARD_LEVEL_NOT_ENOUGH = 164; + RET_WORLD_LEVEL_ADJUST_MIN_LEVEL = 165; + RET_WORLD_LEVEL_ADJUST_CD = 166; + RET_NOT_HAS_COSTUME = 167; + RET_COSTUME_AVATAR_ERROR = 168; + RET_FLYCLOAK_PLATFORM_TYPE_ERR = 169; + RET_FLOAT_ERROR = 201; + RET_NPC_NOT_EXIST = 301; + RET_NPC_TOO_FAR = 302; + RET_NOT_CURRENT_TALK = 303; + RET_NPC_CREATE_FAIL = 304; + RET_NPC_MOVE_FAIL = 305; + RET_QUEST_NOT_EXIST = 401; + RET_QUEST_IS_FAIL = 402; + RET_QUEST_CONTENT_ERROR = 403; + RET_BARGAIN_NOT_ACTIVATED = 404; + RET_BARGAIN_FINISHED = 405; + RET_POINT_NOT_UNLOCKED = 501; + RET_POINT_TOO_FAR = 502; + RET_POINT_ALREAY_UNLOCKED = 503; + RET_ENTITY_NOT_EXIST = 504; + RET_ENTER_SCENE_FAIL = 505; + RET_PLAYER_IS_ENTER_SCENE = 506; + RET_CITY_MAX_LEVEL = 507; + RET_AREA_LOCKED = 508; + RET_JOIN_OTHER_WAIT = 509; + RET_WEATHER_AREA_NOT_FOUND = 510; + RET_WEATHER_IS_LOCKED = 511; + RET_NOT_IN_SELF_SCENE = 512; + RET_GROUP_NOT_EXIST = 513; + RET_MARK_NAME_ILLEGAL = 514; + RET_MARK_ALREADY_EXISTS = 515; + RET_MARK_OVERFLOW = 516; + RET_MARK_NOT_EXISTS = 517; + RET_MARK_UNKNOWN_TYPE = 518; + RET_MARK_NAME_TOO_LONG = 519; + RET_DISTANCE_LONG = 520; + RET_ENTER_SCENE_TOKEN_INVALID = 521; + RET_NOT_IN_WORLD_SCENE = 522; + RET_ANY_GALLERY_STARTED = 523; + RET_GALLERY_NOT_START = 524; + RET_GALLERY_INTERRUPT_ONLY_ON_SINGLE_MODE = 525; + RET_GALLERY_CANNOT_INTERRUPT = 526; + RET_GALLERY_WORLD_NOT_MEET = 527; + RET_GALLERY_SCENE_NOT_MEET = 528; + RET_CUR_PLAY_CANNOT_TRANSFER = 529; + RET_CANT_USE_WIDGET_IN_HOME_SCENE = 530; + RET_SCENE_GROUP_NOT_MATCH = 531; + RET_POS_ROT_INVALID = 551; + RET_MARK_INVALID_SCENE_ID = 552; + RET_INVALID_SCENE_TO_USE_ANCHOR_POINT = 553; + RET_ENTER_HOME_SCENE_FAIL = 554; + RET_CUR_SCENE_IS_NULL = 555; + RET_GROUP_ID_ERROR = 556; + RET_ITEM_NOT_EXIST = 601; + RET_PACK_EXCEED_MAX_WEIGHT = 602; + RET_ITEM_NOT_DROPABLE = 603; + RET_ITEM_NOT_USABLE = 604; + RET_ITEM_INVALID_USE_COUNT = 605; + RET_ITEM_INVALID_DROP_COUNT = 606; + RET_ITEM_ALREADY_EXIST = 607; + RET_ITEM_IN_COOLDOWN = 608; + RET_ITEM_COUNT_NOT_ENOUGH = 609; + RET_ITEM_INVALID_TARGET = 610; + RET_RECIPE_NOT_EXIST = 611; + RET_RECIPE_LOCKED = 612; + RET_RECIPE_UNLOCKED = 613; + RET_COMPOUND_QUEUE_FULL = 614; + RET_COMPOUND_NOT_FINISH = 615; + RET_MAIL_ITEM_NOT_GET = 616; + RET_ITEM_EXCEED_LIMIT = 617; + RET_AVATAR_CAN_NOT_USE = 618; + RET_ITEM_NEED_PLAYER_LEVEL = 619; + RET_RECIPE_NOT_AUTO_QTE = 620; + RET_COMPOUND_BUSY_QUEUE = 621; + RET_NEED_MORE_SCOIN = 622; + RET_SKILL_DEPOT_NOT_FOUND = 623; + RET_HCOIN_NOT_ENOUGH = 624; + RET_SCOIN_NOT_ENOUGH = 625; + RET_HCOIN_EXCEED_LIMIT = 626; + RET_SCOIN_EXCEED_LIMIT = 627; + RET_MAIL_EXPIRED = 628; + RET_REWARD_HAS_TAKEN = 629; + RET_COMBINE_COUNT_TOO_LARGE = 630; + RET_GIVING_ITEM_WRONG = 631; + RET_GIVING_IS_FINISHED = 632; + RET_GIVING_NOT_ACTIVED = 633; + RET_FORGE_QUEUE_FULL = 634; + RET_FORGE_QUEUE_CAPACITY = 635; + RET_FORGE_QUEUE_NOT_FOUND = 636; + RET_FORGE_QUEUE_EMPTY = 637; + RET_NOT_SUPPORT_ITEM = 638; + RET_ITEM_EMPTY = 639; + RET_VIRTUAL_EXCEED_LIMIT = 640; + RET_MATERIAL_EXCEED_LIMIT = 641; + RET_EQUIP_EXCEED_LIMIT = 642; + RET_ITEM_SHOULD_HAVE_NO_LEVEL = 643; + RET_WEAPON_PROMOTE_LEVEL_EXCEED_LIMIT = 644; + RET_WEAPON_LEVEL_INVALID = 645; + RET_UNKNOW_ITEM_TYPE = 646; + RET_ITEM_COUNT_IS_ZERO = 647; + RET_ITEM_IS_EXPIRED = 648; + RET_ITEM_EXCEED_OUTPUT_LIMIT = 649; + RET_EQUIP_LEVEL_HIGHER = 650; + RET_EQUIP_CAN_NOT_WAKE_OFF_WEAPON = 651; + RET_EQUIP_HAS_BEEN_WEARED = 652; + RET_EQUIP_WEARED_CANNOT_DROP = 653; + RET_AWAKEN_LEVEL_MAX = 654; + RET_MCOIN_NOT_ENOUGH = 655; + RET_MCOIN_EXCEED_LIMIT = 656; + RET_RESIN_NOT_ENOUGH = 660; + RET_RESIN_EXCEED_LIMIT = 661; + RET_RESIN_OPENSTATE_OFF = 662; + RET_RESIN_BOUGHT_COUNT_EXCEEDED = 663; + RET_RESIN_CARD_DAILY_REWARD_HAS_TAKEN = 664; + RET_RESIN_CARD_EXPIRED = 665; + RET_AVATAR_CAN_NOT_COOK = 666; + RET_ATTACH_AVATAR_CD = 667; + RET_AUTO_RECOVER_OPENSTATE_OFF = 668; + RET_AUTO_RECOVER_BOUGHT_COUNT_EXCEEDED = 669; + RET_RESIN_GAIN_FAILED = 670; + RET_WIDGET_ORNAMENTS_TYPE_ERROR = 671; + RET_ALL_TARGET_SATIATION_FULL = 672; + RET_FORGE_WORLD_LEVEL_NOT_MATCH = 673; + RET_FORGE_POINT_NOT_ENOUGH = 674; + RET_WIDGET_ANCHOR_POINT_FULL = 675; + RET_WIDGET_ANCHOR_POINT_NOT_FOUND = 676; + RET_ALL_BONFIRE_EXCEED_MAX_COUNT = 677; + RET_BONFIRE_EXCEED_MAX_COUNT = 678; + RET_LUNCH_BOX_DATA_ERROR = 679; + RET_INVALID_QUICK_USE_WIDGET = 680; + RET_INVALID_REPLACE_RESIN_COUNT = 681; + RET_PREV_DETECTED_GATHER_NOT_FOUND = 682; + RET_GOT_ALL_ONEOFF_GAHTER = 683; + RET_INVALID_WIDGET_MATERIAL_ID = 684; + RET_WIDGET_DETECTOR_NO_HINT_TO_CLEAR = 685; + RET_WIDGET_ALREADY_WITHIN_NEARBY_RADIUS = 686; + RET_WIDGET_CLIENT_COLLECTOR_NEED_POINTS = 687; + RET_WIDGET_IN_COMBAT = 688; + RET_WIDGET_NOT_SET_QUICK_USE = 689; + RET_ALREADY_ATTACH_WIDGET = 690; + RET_EQUIP_IS_LOCKED = 691; + RET_FORGE_IS_LOCKED = 692; + RET_COMBINE_IS_LOCKED = 693; + RET_FORGE_OUTPUT_STACK_LIMIT = 694; + RET_ALREADY_DETTACH_WIDGET = 695; + RET_GADGET_BUILDER_EXCEED_MAX_COUNT = 696; + RET_REUNION_PRIVILEGE_RESIN_TYPE_IS_NORMAL = 697; + RET_BONUS_COUNT_EXCEED_DOUBLE_LIMIT = 698; + RET_RELIQUARY_DECOMPOSE_PARAM_ERROR = 699; + RET_ITEM_COMBINE_COUNT_NOT_ENOUGH = 700; + RET_GOODS_NOT_EXIST = 701; + RET_GOODS_MATERIAL_NOT_ENOUGH = 702; + RET_GOODS_NOT_IN_TIME = 703; + RET_GOODS_BUY_NUM_NOT_ENOUGH = 704; + RET_GOODS_BUY_NUM_ERROR = 705; + RET_SHOP_NOT_OPEN = 706; + RET_SHOP_CONTENT_NOT_MATCH = 707; + RET_CHAT_FORBIDDEN = 798; + RET_CHAT_CD = 799; + RET_CHAT_FREQUENTLY = 800; + RET_GADGET_NOT_EXIST = 801; + RET_GADGET_NOT_INTERACTIVE = 802; + RET_GADGET_NOT_GATHERABLE = 803; + RET_CHEST_IS_LOCKED = 804; + RET_GADGET_CREATE_FAIL = 805; + RET_WORKTOP_OPTION_NOT_EXIST = 806; + RET_GADGET_STATUE_NOT_ACTIVE = 807; + RET_GADGET_STATUE_OPENED = 808; + RET_BOSS_CHEST_NO_QUALIFICATION = 809; + RET_BOSS_CHEST_LIFE_TIME_OVER = 810; + RET_BOSS_CHEST_WEEK_NUM_LIMIT = 811; + RET_BOSS_CHEST_GUEST_WORLD_LEVEL = 812; + RET_BOSS_CHEST_HAS_TAKEN = 813; + RET_BLOSSOM_CHEST_NO_QUALIFICATION = 814; + RET_BLOSSOM_CHEST_LIFE_TIME_OVER = 815; + RET_BLOSSOM_CHEST_HAS_TAKEN = 816; + RET_BLOSSOM_CHEST_GUEST_WORLD_LEVEL = 817; + RET_MP_PLAY_REWARD_NO_QUALIFICATION = 818; + RET_MP_PLAY_REWARD_HAS_TAKEN = 819; + RET_GENERAL_REWARD_NO_QUALIFICATION = 820; + RET_GENERAL_REWARD_LIFE_TIME_OVER = 821; + RET_GENERAL_REWARD_HAS_TAKEN = 822; + RET_GADGET_NOT_VEHICLE = 823; + RET_VEHICLE_SLOT_OCCUPIED = 824; + RET_NOT_IN_VEHICLE = 825; + RET_CREATE_VEHICLE_IN_CD = 826; + RET_CREATE_VEHICLE_POS_INVALID = 827; + RET_VEHICLE_POINT_NOT_UNLOCK = 828; + RET_GADGET_INTERACT_COND_NOT_MEET = 829; + RET_GADGET_INTERACT_PARAM_ERROR = 830; + RET_ACTIVITY_CLOSE = 860; + RET_ACTIVITY_ITEM_ERROR = 861; + RET_ACTIVITY_CONTRIBUTION_NOT_ENOUGH = 862; + RET_SEA_LAMP_PHASE_NOT_FINISH = 863; + RET_SEA_LAMP_FLY_NUM_LIMIT = 864; + RET_SEA_LAMP_FLY_LAMP_WORD_ILLEGAL = 865; + RET_ACTIVITY_WATCHER_REWARD_TAKEN = 866; + RET_ACTIVITY_WATCHER_REWARD_NOT_FINISHED = 867; + RET_SALESMAN_ALREADY_DELIVERED = 868; + RET_SALESMAN_REWARD_COUNT_NOT_ENOUGH = 869; + RET_SALESMAN_POSITION_INVALID = 870; + RET_DELIVER_NOT_FINISH_ALL_QUEST = 871; + RET_DELIVER_ALREADY_TAKE_DAILY_REWARD = 872; + RET_ASTER_PROGRESS_EXCEED_LIMIT = 873; + RET_ASTER_CREDIT_EXCEED_LIMIT = 874; + RET_ASTER_TOKEN_EXCEED_LIMIT = 875; + RET_ASTER_CREDIT_NOT_ENOUGH = 876; + RET_ASTER_TOKEN_NOT_ENOUGH = 877; + RET_ASTER_SPECIAL_REWARD_HAS_TAKEN = 878; + RET_FLIGHT_GROUP_ACTIVITY_NOT_STARTED = 879; + RET_ASTER_MID_PREVIOUS_BATTLE_NOT_FINISHED = 880; + RET_DRAGON_SPINE_SHIMMERING_ESSENCE_EXCEED_LIMIT = 881; + RET_DRAGON_SPINE_WARM_ESSENCE_EXCEED_LIMIT = 882; + RET_DRAGON_SPINE_WONDROUS_ESSENCE_EXCEED_LIMIT = 883; + RET_DRAGON_SPINE_SHIMMERING_ESSENCE_NOT_ENOUGH = 884; + RET_DRAGON_SPINE_WARM_ESSENCE_NOT_ENOUGH = 885; + RET_DRAGON_SPINE_WONDROUS_ESSENCE_NOT_ENOUGH = 886; + RET_EFFIGY_FIRST_PASS_REWARD_HAS_TAKEN = 891; + RET_EFFIGY_REWARD_HAS_TAKEN = 892; + RET_TREASURE_MAP_ADD_TOKEN_EXCEED_LIMIT = 893; + RET_TREASURE_MAP_TOKEN_NOT_ENOUGHT = 894; + RET_SEA_LAMP_COIN_EXCEED_LIMIT = 895; + RET_SEA_LAMP_COIN_NOT_ENOUGH = 896; + RET_SEA_LAMP_POPULARITY_EXCEED_LIMIT = 897; + RET_ACTIVITY_AVATAR_REWARD_NOT_OPEN = 898; + RET_ACTIVITY_AVATAR_REWARD_HAS_TAKEN = 899; + RET_ARENA_ACTIVITY_ALREADY_STARTED = 900; + RET_TALENT_ALREAY_UNLOCKED = 901; + RET_PREV_TALENT_NOT_UNLOCKED = 902; + RET_BIG_TALENT_POINT_NOT_ENOUGH = 903; + RET_SMALL_TALENT_POINT_NOT_ENOUGH = 904; + RET_PROUD_SKILL_ALREADY_GOT = 905; + RET_PREV_PROUD_SKILL_NOT_GET = 906; + RET_PROUD_SKILL_MAX_LEVEL = 907; + RET_CANDIDATE_SKILL_DEPOT_ID_NOT_FIND = 910; + RET_SKILL_DEPOT_IS_THE_SAME = 911; + RET_MONSTER_NOT_EXIST = 1001; + RET_MONSTER_CREATE_FAIL = 1002; + RET_DUNGEON_ENTER_FAIL = 1101; + RET_DUNGEON_QUIT_FAIL = 1102; + RET_DUNGEON_ENTER_EXCEED_DAY_COUNT = 1103; + RET_DUNGEON_REVIVE_EXCEED_MAX_COUNT = 1104; + RET_DUNGEON_REVIVE_FAIL = 1105; + RET_DUNGEON_NOT_SUCCEED = 1106; + RET_DUNGEON_CAN_NOT_CANCEL = 1107; + RET_DEST_DUNGEON_SETTLED = 1108; + RET_DUNGEON_CANDIDATE_TEAM_IS_FULL = 1109; + RET_DUNGEON_CANDIDATE_TEAM_IS_DISMISS = 1110; + RET_DUNGEON_CANDIDATE_TEAM_NOT_ALL_READY = 1111; + RET_DUNGEON_CANDIDATE_TEAM_HAS_REPEAT_AVATAR = 1112; + RET_DUNGEON_CANDIDATE_NOT_SINGEL_PASS = 1113; + RET_DUNGEON_REPLAY_NEED_ALL_PLAYER_DIE = 1114; + RET_DUNGEON_REPLAY_HAS_REVIVE_COUNT = 1115; + RET_DUNGEON_OTHERS_LEAVE = 1116; + RET_DUNGEON_ENTER_LEVEL_LIMIT = 1117; + RET_DUNGEON_CANNOT_ENTER_PLOT_IN_MP = 1118; + RET_DUNGEON_DROP_SUBFIELD_LIMIT = 1119; + RET_DUNGEON_BE_INVITE_PLAYER_AVATAR_ALL_DIE = 1120; + RET_DUNGEON_CANNOT_KICK = 1121; + RET_DUNGEON_CANDIDATE_TEAM_SOMEONE_LEVEL_LIMIT = 1122; + RET_DUNGEON_IN_FORCE_QUIT = 1123; + RET_DUNGEON_GUEST_QUIT_DUNGEON = 1124; + RET_DUNGEON_TICKET_FAIL = 1125; + RET_MP_NOT_IN_MY_WORLD = 1201; + RET_MP_IN_MP_MODE = 1202; + RET_MP_SCENE_IS_FULL = 1203; + RET_MP_MODE_NOT_AVAILABLE = 1204; + RET_MP_PLAYER_NOT_ENTERABLE = 1205; + RET_MP_QUEST_BLOCK_MP = 1206; + RET_MP_IN_ROOM_SCENE = 1207; + RET_MP_WORLD_IS_FULL = 1208; + RET_MP_PLAYER_NOT_ALLOW_ENTER = 1209; + RET_MP_PLAYER_DISCONNECTED = 1210; + RET_MP_NOT_IN_MP_MODE = 1211; + RET_MP_OWNER_NOT_ENTER = 1212; + RET_MP_ALLOW_ENTER_PLAYER_FULL = 1213; + RET_MP_TARGET_PLAYER_IN_TRANSFER = 1214; + RET_MP_TARGET_ENTERING_OTHER = 1215; + RET_MP_OTHER_ENTERING = 1216; + RET_MP_ENTER_MAIN_PLAYER_IN_PLOT = 1217; + RET_MP_NOT_PS_PLAYER = 1218; + RET_MP_PLAY_NOT_ACTIVE = 1219; + RET_MP_PLAY_REMAIN_REWARDS = 1220; + RET_MP_PLAY_NO_REWARD = 1221; + RET_MP_OPEN_STATE_FAIL = 1223; + RET_MP_PLAYER_IN_BLACKLIST = 1224; + RET_MP_REPLY_TIMEOUT = 1225; + RET_MP_IS_BLOCK = 1226; + RET_MP_ENTER_MAIN_PLAYER_IN_MP_PLAY = 1227; + RET_MP_IN_MP_PLAY_BATTLE = 1228; + RET_MP_GUEST_HAS_REWARD_REMAINED = 1229; + RET_MP_QUIT_MP_INVALID = 1230; + RET_MP_OTHER_DATA_VERSION_NOT_LATEST = 1231; + RET_MP_DATA_VERSION_NOT_LATEST = 1232; + RET_MP_CUR_WORLD_NOT_ENTERABLE = 1233; + RET_MP_ANY_GALLERY_STARTED = 1234; + RET_MP_HAS_ACTIVE_DRAFT = 1235; + RET_MP_PLAYER_IN_DUNGEON = 1236; + RET_MP_MATCH_FULL = 1237; + RET_MP_MATCH_LIMIT = 1238; + RET_MP_MATCH_IN_PUNISH = 1239; + RET_MP_IS_IN_MULTISTAGE = 1240; + RET_MP_MATCH_PLAY_NOT_OPEN = 1241; + RET_MP_ONLY_MP_WITH_PS_PLAYER = 1242; + RET_MP_GUEST_LOADING_FIRST_ENTER = 1243; + RET_MP_SUMMER_TIME_SPRINT_BOAT_ONGOING = 1244; + RET_MP_BLITZ_RUSH_PARKOUR_CHALLENGE_ONGOING = 1245; + RET_MP_MUSIC_GAME_ONGOING = 1246; + RET_MAIL_PARA_ERR = 1301; + RET_MAIL_MAX_NUM = 1302; + RET_MAIL_ITEM_NUM_EXCEED = 1303; + RET_MAIL_TITLE_LEN_EXCEED = 1304; + RET_MAIL_CONTENT_LEN_EXCEED = 1305; + RET_MAIL_SENDER_LEN_EXCEED = 1306; + RET_MAIL_PARSE_PACKET_FAIL = 1307; + RET_OFFLINE_MSG_MAX_NUM = 1308; + RET_OFFLINE_MSG_SAME_TICKET = 1309; + RET_MAIL_EXCEL_MAIL_TYPE_ERROR = 1310; + RET_MAIL_CANNOT_SEND_MCOIN = 1311; + RET_MAIL_HCOIN_EXCEED_LIMIT = 1312; + RET_MAIL_SCOIN_EXCEED_LIMIT = 1313; + RET_MAIL_MATERIAL_ID_INVALID = 1314; + RET_MAIL_AVATAR_EXCEED_LIMIT = 1315; + RET_MAIL_GACHA_TICKET_ETC_EXCEED_LIMIT = 1316; + RET_MAIL_ITEM_EXCEED_CEHUA_LIMIT = 1317; + RET_MAIL_SPACE_OR_REST_NUM_NOT_ENOUGH = 1318; + RET_MAIL_TICKET_IS_EMPTY = 1319; + RET_MAIL_TRANSACTION_IS_EMPTY = 1320; + RET_DAILY_TASK_NOT_FINISH = 1330; + RET_DAILY_TAKS_HAS_TAKEN = 1331; + RET_SOCIAL_OFFLINE_MSG_NUM_EXCEED = 1332; + RET_DAILY_TASK_FILTER_CITY_NOT_OPEN = 1333; + RET_GACHA_INAVAILABLE = 1401; + RET_GACHA_RANDOM_NOT_MATCH = 1402; + RET_GACHA_SCHEDULE_NOT_MATCH = 1403; + RET_GACHA_INVALID_TIMES = 1404; + RET_GACHA_COST_ITEM_NOT_ENOUGH = 1405; + RET_GACHA_TIMES_LIMIT = 1406; + RET_GACHA_WISH_SAME_ITEM = 1407; + RET_GACHA_WISH_INVALID_ITEM = 1408; + RET_INVESTIGAITON_NOT_IN_PROGRESS = 1501; + RET_INVESTIGAITON_UNCOMPLETE = 1502; + RET_INVESTIGAITON_REWARD_TAKEN = 1503; + RET_INVESTIGAITON_TARGET_STATE_ERROR = 1504; + RET_PUSH_TIPS_NOT_FOUND = 1505; + RET_SIGN_IN_RECORD_NOT_FOUND = 1506; + RET_ALREADY_HAVE_SIGNED_IN = 1507; + RET_SIGN_IN_COND_NOT_SATISFIED = 1508; + RET_BONUS_ACTIVITY_NOT_UNREWARDED = 1509; + RET_SIGN_IN_REWARDED = 1510; + RET_TOWER_NOT_OPEN = 1521; + RET_TOWER_HAVE_DAILY_RECORD = 1522; + RET_TOWER_NOT_RECORD = 1523; + RET_TOWER_HAVE_RECORD = 1524; + RET_TOWER_TEAM_NUM_ERROR = 1525; + RET_TOWER_FLOOR_NOT_OPEN = 1526; + RET_TOWER_NO_FLOOR_STAR_RECORD = 1527; + RET_ALREADY_HAS_TOWER_BUFF = 1528; + RET_DUPLICATE_ENTER_LEVEL = 1529; + RET_NOT_IN_TOWER_LEVEL = 1530; + RET_IN_TOWER_LEVEL = 1531; + RET_TOWER_PREV_FLOOR_NOT_FINISH = 1532; + RET_TOWER_STAR_NOT_ENOUGH = 1533; + RET_BATTLE_PASS_NO_SCHEDULE = 1541; + RET_BATTLE_PASS_HAS_BUYED = 1542; + RET_BATTLE_PASS_LEVEL_OVERFLOW = 1543; + RET_BATTLE_PASS_PRODUCT_EXPIRED = 1544; + RET_MATCH_HOST_QUIT = 1561; + RET_MATCH_ALREADY_IN_MATCH = 1562; + RET_MATCH_NOT_IN_MATCH = 1563; + RET_MATCH_APPLYING_ENTER_MP = 1564; + RET_WIDGET_TREASURE_SPOT_NOT_FOUND = 1581; + RET_WIDGET_TREASURE_ENTITY_EXISTS = 1582; + RET_WIDGET_TREASURE_SPOT_FAR_AWAY = 1583; + RET_WIDGET_TREASURE_FINISHED_TODAY = 1584; + RET_WIDGET_QUICK_USE_REQ_PARAM_ERROR = 1585; + RET_WIDGET_CAMERA_SCAN_ID_ERROR = 1586; + RET_WIDGET_NOT_ACTIVE = 1587; + RET_WIDGET_FEATHER_NOT_ACTIVE = 1588; + RET_WIDGET_FEATHER_GADGET_TOO_FAR_AWAY = 1589; + RET_UID_NOT_EXIST = 2001; + RET_PARSE_BIN_ERROR = 2002; + RET_ACCOUNT_INFO_NOT_EXIST = 2003; + RET_ORDER_INFO_NOT_EXIST = 2004; + RET_SNAPSHOT_INDEX_ERROR = 2005; + RET_MAIL_HAS_BEEN_SENT = 2006; + RET_PRODUCT_NOT_EXIST = 2007; + RET_UNFINISH_ORDER = 2008; + RET_ID_NOT_EXIST = 2009; + RET_ORDER_TRADE_EARLY = 2010; + RET_ORDER_FINISHED = 2011; + RET_GAMESERVER_VERSION_WRONG = 2012; + RET_OFFLINE_OP_FULL_LENGTH = 2013; + RET_CONCERT_PRODUCT_OBTAIN_LIMIT = 2014; + RET_CONCERT_PRODUCT_TICKET_DUPLICATED = 2015; + RET_CONCERT_PRODUCT_TICKET_EMPTY = 2016; + RET_REDIS_MODIFIED = 5001; + RET_REDIS_UID_NOT_EXIST = 5002; + RET_PATHFINDING_DATA_NOT_EXIST = 6001; + RET_PATHFINDING_DESTINATION_NOT_EXIST = 6002; + RET_PATHFINDING_ERROR_SCENE = 6003; + RET_PATHFINDING_SCENE_DATA_LOADING = 6004; + RET_FRIEND_COUNT_EXCEEDED = 7001; + RET_PLAYER_NOT_EXIST = 7002; + RET_ALREADY_SENT_ADD_REQUEST = 7003; + RET_ASK_FRIEND_LIST_FULL = 7004; + RET_PLAYER_ALREADY_IS_FRIEND = 7005; + RET_PLAYER_NOT_ASK_FRIEND = 7006; + RET_TARGET_FRIEND_COUNT_EXCEED = 7007; + RET_NOT_FRIEND = 7008; + RET_BIRTHDAY_CANNOT_BE_SET_TWICE = 7009; + RET_CANNOT_ADD_SELF_FRIEND = 7010; + RET_SIGNATURE_ILLEGAL = 7011; + RET_PS_PLAYER_CANNOT_ADD_FRIENDS = 7012; + RET_PS_PLAYER_CANNOT_REMOVE_FRIENDS = 7013; + RET_NAME_CARD_NOT_UNLOCKED = 7014; + RET_ALREADY_IN_BLACKLIST = 7015; + RET_PS_PALEYRS_CANNOT_ADD_BLACKLIST = 7016; + RET_PLAYER_BLACKLIST_FULL = 7017; + RET_PLAYER_NOT_IN_BLACKLIST = 7018; + RET_BLACKLIST_PLAYER_CANNOT_ADD_FRIEND = 7019; + RET_IN_TARGET_BLACKLIST = 7020; + RET_CANNOT_ADD_TARGET_FRIEND = 7021; + RET_BIRTHDAY_FORMAT_ERROR = 7022; + RET_ONLINE_ID_NOT_EXISTS = 7023; + RET_FIRST_SHARE_REWARD_HAS_TAKEN = 7024; + RET_PS_PLAYER_CANNOT_REMOVE_BLACKLIST = 7025; + RET_REPORT_CD = 7026; + RET_REPORT_CONTENT_ILLEGAL = 7027; + RET_REMARK_WORD_ILLEGAL = 7028; + RET_REMARK_TOO_LONG = 7029; + RET_REMARK_UTF8_ERROR = 7030; + RET_REMARK_IS_EMPTY = 7031; + RET_ASK_ADD_FRIEND_CD = 7032; + RET_SHOW_AVATAR_INFO_NOT_EXIST = 7033; + RET_PLAYER_NOT_SHOW_AVATAR = 7034; + RET_SOCIAL_UPDATE_SHOW_LIST_REPEAT_ID = 7035; + RET_PSN_ID_NOT_FOUND = 7036; + RET_EMOJI_COLLECTION_NUM_EXCEED_LIMIT = 7037; + RET_REMARK_EMPTY = 7038; + RET_OFFERING_NOT_OPEN = 7081; + RET_OFFERING_LEVEL_LIMIT = 7082; + RET_OFFERING_LEVEL_NOT_REACH = 7083; + RET_OFFERING_LEVEL_HAS_TAKEN = 7084; + RET_CITY_REPUTATION_NOT_OPEN = 7101; + RET_CITY_REPUTATION_LEVEL_TAKEN = 7102; + RET_CITY_REPUTATION_LEVEL_NOT_REACH = 7103; + RET_CITY_REPUTATION_PARENT_QUEST_TAKEN = 7104; + RET_CITY_REPUTATION_PARENT_QUEST_UNFINISH = 7105; + RET_CITY_REPUTATION_ACCEPT_REQUEST = 7106; + RET_CITY_REPUTATION_NOT_ACCEPT_REQUEST = 7107; + RET_CITY_REPUTATION_ACCEPT_REQUEST_LIMIT = 7108; + RET_CITY_REPUTATION_ENTRANCE_NOT_OPEN = 7109; + RET_CITY_REPUTATION_TAKEN_REQUEST_REWARD = 7110; + RET_CITY_REPUTATION_SWITCH_CLOSE = 7111; + RET_CITY_REPUTATION_ENTRACE_SWITCH_CLOSE = 7112; + RET_CITY_REPUTATION_TAKEN_EXPLORE_REWARD = 7113; + RET_CITY_REPUTATION_EXPLORE_NOT_REACH = 7114; + RET_MECHANICUS_NOT_OPEN = 7120; + RET_MECHANICUS_GEAR_UNLOCK = 7121; + RET_MECHANICUS_GEAR_LOCK = 7122; + RET_MECHANICUS_GEAR_LEVEL_LIMIT = 7123; + RET_MECHANICUS_COIN_NOT_ENOUGH = 7124; + RET_MECHANICUS_NO_SEQUENCE = 7125; + RET_MECHANICUS_SEQUENCE_LIMIT_LEVEL = 7126; + RET_MECHANICUS_SEQUENCE_LIMIT_OPEN = 7127; + RET_MECHANICUS_DIFFICULT_NOT_SUPPORT = 7128; + RET_MECHANICUS_TICKET_NOT_ENOUGH = 7129; + RET_MECHANICUS_TEACH_NOT_FINISH = 7130; + RET_MECHANICUS_TEACH_FINISHED = 7131; + RET_MECHANICUS_PREV_DIFFICULT_LEVEL_BLOCK = 7132; + RET_MECHANICUS_PLAYER_LIMIT = 7133; + RET_MECHANICUS_PUNISH_TIME = 7134; + RET_MECHANICUS_SWITCH_CLOSE = 7135; + RET_MECHANICUS_BATTLE_NOT_IN_DUNGEON = 7150; + RET_MECHANICUS_BATTLE_PLAY_NOT_FOUND = 7151; + RET_MECHANICUS_BATTLE_DUPLICATE_PICK_CARD = 7152; + RET_MECHANICUS_BATTLE_PLAYER_NOT_IN_PLAY = 7153; + RET_MECHANICUS_BATTLE_CARD_NOT_AVAILABLE = 7154; + RET_MECHANICUS_BATTLE_NOT_IN_CARD_STAGE = 7155; + RET_MECHANICUS_BATTLE_CARD_IS_WAITING = 7156; + RET_MECHANICUS_BATTLE_CARD_ALL_CONFIRMED = 7157; + RET_MECHANICUS_BATTLE_CARD_ALREADY_CONFIRMED = 7158; + RET_MECHANICUS_BATTLE_CARD_CONFIRMED_BY_OTHER = 7159; + RET_MECHANICUS_BATTLE_CARD_NOT_ENOUGH_POINTS = 7160; + RET_MECHANICUS_BATTLE_CARD_ALREADY_SKIPPED = 7161; + RET_LEGENDARY_KEY_NOT_ENOUGH = 8001; + RET_LEGENDARY_KEY_EXCEED_LIMIT = 8002; + RET_DAILY_TASK_NOT_ENOUGH_TO_REDEEM = 8003; + RET_PERSONAL_LINE_OPEN_STATE_OFF = 8004; + RET_PERSONAL_LINE_LEVEL_NOT_ENOUGH = 8005; + RET_PERSONAL_LINE_NOT_OPEN = 8006; + RET_PERSONAL_LINE_PRE_QUEST_NOT_FINISH = 8007; + RET_HUNTING_ALREADY_FINISH_OFFER_LIMIT = 8201; + RET_HUNTING_HAS_UNFINISHED_OFFER = 8202; + RET_HUNTING_FAILED_OFFER_NOT_CD_READY = 8203; + RET_HUNTING_NOT_TAKE_OFFER = 8204; + RET_HUNTING_CANNOT_TAKE_TWICE = 8205; + RET_RPIVATE_CHAT_INVALID_CONTENT_TYPE = 8901; + RET_PRIVATE_CHAT_TARGET_IS_NOT_FRIEND = 8902; + RET_PRIVATE_CHAT_CONTENT_NOT_SUPPORTED = 8903; + RET_PRIVATE_CHAT_CONTENT_TOO_LONG = 8904; + RET_PRIVATE_CHAT_PULL_TOO_FAST = 8905; + RET_PRIVATE_CHAT_REPEAT_READ = 8906; + RET_PRIVATE_CHAT_READ_NOT_FRIEND = 8907; + RET_REUNION_FINISHED = 9001; + RET_REUNION_NOT_ACTIVATED = 9002; + RET_REUNION_ALREADY_TAKE_FIRST_REWARD = 9003; + RET_REUNION_SIGN_IN_REWARDED = 9004; + RET_REUNION_WATCHER_REWARDED = 9005; + RET_REUNION_WATCHER_NOT_FINISH = 9006; + RET_REUNION_MISSION_REWARDED = 9007; + RET_REUNION_MISSION_NOT_FINISH = 9008; + RET_REUNION_WATCHER_REWARD_NOT_UNLOCKED = 9009; + RET_BLESSING_CONTENT_CLOSED = 9101; + RET_BLESSING_NOT_ACTIVE = 9102; + RET_BLESSING_NOT_TODAY_ENTITY = 9103; + RET_BLESSING_ENTITY_EXCEED_SCAN_NUM_LIMIT = 9104; + RET_BLESSING_DAILY_SCAN_NUM_EXCEED_LIMIT = 9105; + RET_BLESSING_REDEEM_REWARD_NUM_EXCEED_LIMIT = 9106; + RET_BLESSING_REDEEM_PIC_NUM_NOT_ENOUGH = 9107; + RET_BLESSING_PIC_NOT_ENOUGH = 9108; + RET_BLESSING_PIC_HAS_RECEIVED = 9109; + RET_BLESSING_TARGET_RECV_NUM_EXCEED = 9110; + RET_FLEUR_FAIR_CREDIT_EXCEED_LIMIT = 9111; + RET_FLEUR_FAIR_CREDIT_NOT_ENOUGH = 9112; + RET_FLEUR_FAIR_TOKEN_EXCEED_LIMIT = 9113; + RET_FLEUR_FAIR_TOKEN_NOT_ENOUGH = 9114; + RET_FLEUR_FAIR_MINIGAME_NOT_OPEN = 9115; + RET_FLEUR_FAIR_MUSIC_GAME_DIFFICULTY_NOT_UNLOCK = 9116; + RET_FLEUR_FAIR_DUNGEON_LOCKED = 9117; + RET_FLEUR_FAIR_DUNGEON_PUNISH_TIME = 9118; + RET_FLEUR_FAIR_ONLY_OWNER_CAN_RESTART_MINIGAM = 9119; + RET_WATER_SPIRIT_COIN_EXCEED_LIMIT = 9120; + RET_WATER_SPIRIT_COIN_NOT_ENOUGH = 9121; + RET_REGION_SEARCH_NO_SEARCH = 9122; + RET_REGION_SEARCH_STATE_ERROR = 9123; + RET_CHANNELLER_SLAB_LOOP_DUNGEON_STAGE_NOT_OPEN = 9130; + RET_CHANNELLER_SLAB_LOOP_DUNGEON_NOT_OPEN = 9131; + RET_CHANNELLER_SLAB_LOOP_DUNGEON_FIRST_PASS_REWARD_HAS_TAKEN = 9132; + RET_CHANNELLER_SLAB_LOOP_DUNGEON_SCORE_REWARD_HAS_TAKEN = 9133; + RET_CHANNELLER_SLAB_INVALID_ONE_OFF_DUNGEON = 9134; + RET_CHANNELLER_SLAB_ONE_OFF_DUNGEON_DONE = 9135; + RET_CHANNELLER_SLAB_ONE_OFF_DUNGEON_STAGE_NOT_OPEN = 9136; + RET_CHANNELLER_SLAB_TOKEN_EXCEED_LIMIT = 9137; + RET_CHANNELLER_SLAB_TOKEN_NOT_ENOUGH = 9138; + RET_CHANNELLER_SLAB_PLAYER_NOT_IN_ONE_OFF_DUNGEON = 9139; + RET_MIST_TRIAL_SELECT_CHARACTER_NUM_NOT_ENOUGH = 9150; + RET_HIDE_AND_SEEK_PLAY_NOT_OPEN = 9160; + RET_HIDE_AND_SEEK_PLAY_MAP_NOT_OPEN = 9161; + RET_SUMMER_TIME_DRAFT_WOORD_EXCEED_LIMIT = 9170; + RET_SUMMER_TIME_DRAFT_WOORD_NOT_ENOUGH = 9171; + RET_SUMMER_TIME_MINI_HARPASTUM_EXCEED_LIMIT = 9172; + RET_SUMMER_TIME_MINI_HARPASTUMNOT_ENOUGH = 9173; + RET_BOUNCE_CONJURING_COIN_EXCEED_LIMIT = 9180; + RET_BOUNCE_CONJURING_COIN_NOT_ENOUGH = 9181; + RET_CHESS_TEACH_MAP_FINISHED = 9183; + RET_CHESS_TEACH_MAP_UNFINISHED = 9184; + RET_CHESS_COIN_EXCEED_LIMIT = 9185; + RET_CHESS_COIN_NOT_ENOUGH = 9186; + RET_CHESS_IN_PUNISH_TIME = 9187; + RET_CHESS_PREV_MAP_UNFINISHED = 9188; + RET_CHESS_MAP_LOCKED = 9189; + RET_BLITZ_RUSH_NOT_OPEN = 9192; + RET_BLITZ_RUSH_DUNGEON_NOT_OPEN = 9193; + RET_BLITZ_RUSH_COIN_A_EXCEED_LIMIT = 9194; + RET_BLITZ_RUSH_COIN_B_EXCEED_LIMIT = 9195; + RET_BLITZ_RUSH_COIN_A_NOT_ENOUGH = 9196; + RET_BLITZ_RUSH_COIN_B_NOT_ENOUGH = 9197; + RET_MIRACLE_RING_VALUE_NOT_ENOUGH = 9201; + RET_MIRACLE_RING_CD = 9202; + RET_MIRACLE_RING_REWARD_NOT_TAKEN = 9203; + RET_MIRACLE_RING_NOT_DELIVER = 9204; + RET_MIRACLE_RING_DELIVER_EXCEED = 9205; + RET_MIRACLE_RING_HAS_CREATED = 9206; + RET_MIRACLE_RING_HAS_NOT_CREATED = 9207; + RET_MIRACLE_RING_NOT_YOURS = 9208; + RET_GADGET_FOUNDATION_UNAUTHORIZED = 9251; + RET_GADGET_FOUNDATION_SCENE_NOT_FOUND = 9252; + RET_GADGET_FOUNDATION_NOT_IN_INIT_STATE = 9253; + RET_GADGET_FOUNDATION_BILDING_POINT_NOT_ENOUGHT = 9254; + RET_GADGET_FOUNDATION_NOT_IN_BUILT_STATE = 9255; + RET_GADGET_FOUNDATION_OP_NOT_SUPPORTED = 9256; + RET_GADGET_FOUNDATION_REQ_PLAYER_NOT_IN_SCENE = 9257; + RET_GADGET_FOUNDATION_LOCKED_BY_ANOTHER_PLAYER = 9258; + RET_GADGET_FOUNDATION_NOT_LOCKED = 9259; + RET_GADGET_FOUNDATION_DUPLICATE_LOCK = 9260; + RET_GADGET_FOUNDATION_PLAYER_NOT_FOUND = 9261; + RET_GADGET_FOUNDATION_PLAYER_GEAR_NOT_FOUND = 9262; + RET_GADGET_FOUNDATION_ROTAION_DISABLED = 9263; + RET_GADGET_FOUNDATION_REACH_DUNGEON_GEAR_LIMIT = 9264; + RET_GADGET_FOUNDATION_REACH_SINGLE_GEAR_LIMIT = 9265; + RET_GADGET_FOUNDATION_ROTATION_ON_GOING = 9266; + RET_OP_ACTIVITY_BONUS_NOT_FOUND = 9301; + RET_OP_ACTIVITY_NOT_OPEN = 9302; + RET_MULTISTAGE_PLAY_PLAYER_NOT_IN_SCENE = 9501; + RET_MULTISTAGE_PLAY_NOT_FOUND = 9502; + RET_COOP_CHAPTER_NOT_OPEN = 9601; + RET_COOP_COND_NOT_MEET = 9602; + RET_COOP_POINT_LOCKED = 9603; + RET_COOP_NOT_HAVE_PROGRESS = 9604; + RET_COOP_REWARD_HAS_TAKEN = 9605; + RET_DRAFT_HAS_ACTIVE_DRAFT = 9651; + RET_DRAFT_NOT_IN_MY_WORLD = 9652; + RET_DRAFT_NOT_SUPPORT_MP = 9653; + RET_DRAFT_PLAYER_NOT_ENOUGH = 9654; + RET_DRAFT_INCORRECT_SCENE = 9655; + RET_DRAFT_OTHER_PLAYER_ENTERING = 9656; + RET_DRAFT_GUEST_IS_TRANSFERRING = 9657; + RET_DRAFT_GUEST_NOT_IN_DRAFT_SCENE = 9658; + RET_DRAFT_INVITE_OVER_TIME = 9659; + RET_DRAFT_TWICE_CONFIRM_OVER_TIMER = 9660; + RET_HOME_UNKOWN = 9701; + RET_HOME_INVALID_CLIENT_PARAM = 9702; + RET_HOME_TARGE_PLAYER_HAS_NO_HOME = 9703; + RET_HOME_NOT_ONLINE = 9704; + RET_HOME_PLAYER_FULL = 9705; + RET_HOME_BLOCKED = 9706; + RET_HOME_ALREADY_IN_TARGET_HOME_WORLD = 9707; + RET_HOME_IN_EDIT_MODE = 9708; + RET_HOME_NOT_IN_EDIT_MODE = 9709; + RET_HOME_HAS_GUEST = 9710; + RET_HOME_CANT_ENTER_BY_IN_EDIT_MODE = 9711; + RET_HOME_CLIENT_PARAM_INVALID = 9712; + RET_HOME_PLAYER_NOT_IN_HOME_WORLD = 9713; + RET_HOME_PLAYER_NOT_IN_SELF_HOME_WORLD = 9714; + RET_HOME_NOT_FOUND_IN_MEM = 9715; + RET_HOME_PLAYER_IN_HOME_ROOM_SCENE = 9716; + RET_HOME_HOME_REFUSE_GUEST_ENTER = 9717; + RET_HOME_OWNER_REFUSE_TO_ENTER_HOME = 9718; + RET_HOME_OWNER_OFFLINE = 9719; + RET_HOME_FURNITURE_EXCEED_LIMIT = 9720; + RET_HOME_FURNITURE_COUNT_NOT_ENOUGH = 9721; + RET_HOME_IN_TRY_ENTER_PROCESS = 9722; + RET_HOME_ALREADY_IN_TARGET_SCENE = 9723; + RET_HOME_COIN_EXCEED_LIMIT = 9724; + RET_HOME_COIN_NOT_ENOUGH = 9725; + RET_HOME_MODULE_NOT_UNLOCKED = 9726; + RET_HOME_CUR_MODULE_CLOSED = 9727; + RET_HOME_FURNITURE_SUITE_NOT_UNLOCKED = 9728; + RET_HOME_IN_MATCH = 9729; + RET_HOME_IN_COMBAT = 9730; + RET_HOME_EDIT_MODE_CD = 9731; + RET_HOME_UPDATE_FURNITURE_CD = 9732; + RET_HOME_BLOCK_FURNITURE_LIMIT = 9733; + RET_HOME_NOT_SUPPORT = 9734; + RET_HOME_STATE_NOT_OPEN = 9735; + RET_HOME_TARGET_STATE_NOT_OPEN = 9736; + RET_HOME_APPLY_ENTER_OTHER_HOME_FAIL = 9737; + RET_HOME_SAVE_NO_MAIN_HOUSE = 9738; + RET_HOME_IN_DUNGEON = 9739; + RET_HOME_ANY_GALLERY_STARTED = 9740; + RET_HOME_QUEST_BLOCK_HOME = 9741; + RET_HOME_WAITING_PRIOR_CHECK = 9742; + RET_HOME_PERSISTENT_CHECK_FAIL = 9743; + RET_HOME_FIND_ONLINE_HOME_FAIL = 9744; + RET_HOME_JOIN_SCENE_FAIL = 9745; + RET_HOME_MAX_PLAYER = 9746; + RET_HOME_IN_TRANSFER = 9747; + RET_FURNITURE_MAKE_INDEX_ERROR = 9750; + RET_FURNITURE_MAKE_LOCKED = 9751; + RET_FURNITURE_MAKE_CONFIG_ERROR = 9752; + RET_FURNITURE_MAKE_SLOT_FULL = 9753; + RET_FURNITURE_MAKE_ADD_FURNITURE_FAIL = 9754; + RET_FURNITURE_MAKE_UNFINISH = 9755; + RET_FURNITURE_MAKE_IS_FINISH = 9756; + RET_FURNITURE_MAKE_NOT_IN_CORRECT_HOME = 9757; + RET_FURNITURE_MAKE_NO_COUNT = 9758; + RET_FURNITURE_MAKE_ACCELERATE_LIMIT = 9759; + RET_FURNITURE_MAKE_NO_MAKE_DATA = 9760; + RET_HOME_LIMITED_SHOP_CLOSE = 9761; + RET_HOME_AVATAR_NOT_SHOW = 9762; + RET_HOME_EVENT_COND_NOT_SATISFIED = 9763; + RET_HOME_INVALID_ARRANGE_ANIMAL_PARAM = 9764; + RET_HOME_INVALID_ARRANGE_NPC_PARAM = 9765; + RET_HOME_INVALID_ARRANGE_SUITE_PARAM = 9766; + RET_HOME_INVALID_ARRANGE_MAIN_HOUSE_PARAM = 9767; + RET_HOME_AVATAR_STATE_NOT_OPEN = 9768; + RET_HOME_PLANT_FIELD_NOT_EMPTY = 9769; + RET_HOME_PLANT_FIELD_EMPTY = 9770; + RET_HOME_PLANT_FIELD_TYPE_ERROR = 9771; + RET_HOME_PLANT_TIME_NOT_ENOUGH = 9772; + RET_HOME_PLANT_SUB_FIELD_NUM_NOT_ENOUGH = 9773; + RET_HOME_PLANT_FIELD_PARAM_ERROR = 9774; + RET_HOME_FURNITURE_GUID_ERROR = 9775; + RET_HOME_FURNITURE_ARRANGE_LIMIT = 9776; + RET_HOME_FISH_FARMING_LIMIT = 9777; + RET_HOME_FISH_COUNT_NOT_ENOUGH = 9778; + RET_HOME_FURNITURE_COST_LIMIT = 9779; + RET_HOME_CUSTOM_FURNITURE_INVALID = 9780; + RET_SUMO_ACTIVITY_STAGE_NOT_OPEN = 10000; + RET_SUMO_ACTIVITY_SWITCH_TEAM_IN_CD = 10001; + RET_SUMO_ACTIVITY_TEAM_NUM_INCORRECT = 10002; + RET_LUNA_RITE_ACTIVITY_AREA_ID_ERROR = 10004; + RET_LUNA_RITE_ACTIVITY_BATTLE_NOT_FINISH = 10005; + RET_LUNA_RITE_ACTIVITY_ALREADY_SACRIFICE = 10006; + RET_LUNA_RITE_ACTIVITY_ALREADY_TAKE_REWARD = 10007; + RET_LUNA_RITE_ACTIVITY_SACRIFICE_NOT_ENOUGH = 10008; + RET_LUNA_RITE_ACTIVITY_SEARCHING_COND_NOT_MEET = 10009; + RET_DIG_GADGET_CONFIG_ID_NOT_MATCH = 10015; + RET_DIG_FIND_NEAREST_POS_FAIL = 10016; + RET_MUSIC_GAME_LEVEL_NOT_OPEN = 10021; + RET_MUSIC_GAME_LEVEL_NOT_UNLOCK = 10022; + RET_MUSIC_GAME_LEVEL_NOT_STARTED = 10023; + RET_MUSIC_GAME_LEVEL_CONFIG_NOT_FOUND = 10024; + RET_MUSIC_GAME_LEVEL_ID_NOT_MATCH = 10025; + RET_ROGUELIKE_COIN_A_NOT_ENOUGH = 10031; + RET_ROGUELIKE_COIN_B_NOT_ENOUGH = 10032; + RET_ROGUELIKE_COIN_C_NOT_ENOUGH = 10033; + RET_ROGUELIKE_COIN_A_EXCEED_LIMIT = 10034; + RET_ROGUELIKE_COIN_B_EXCEED_LIMIT = 10035; + RET_ROGUELIKE_COIN_C_EXCEED_LIMIT = 10036; + RET_ROGUELIKE_RUNE_COUNT_NOT_ENOUGH = 10037; + RET_ROGUELIKE_NOT_IN_ROGUE_DUNGEON = 10038; + RET_ROGUELIKE_CELL_NOT_FOUND = 10039; + RET_ROGUELIKE_CELL_TYPE_INCORRECT = 10040; + RET_ROGUELIKE_CELL_ALREADY_FINISHED = 10041; + RET_ROGUELIKE_DUNGEON_HAVE_UNFINISHED_PROGRESS = 10042; + RET_ROGUELIKE_STAGE_NOT_FINISHED = 10043; + RET_ROGUELIKE_STAGE_FIRST_PASS_REWARD_HAS_TAKEN = 10045; + RET_ROGUELIKE_ACTIVITY_CONTENT_CLOSED = 10046; + RET_ROGUELIKE_DUNGEON_PRE_QUEST_NOT_FINISHED = 10047; + RET_ROGUELIKE_DUNGEON_NOT_OPEN = 10048; + RET_ROGUELIKE_SPRINT_IS_BANNED = 10049; + RET_ROGUELIKE_DUNGEON_PRE_STAGE_NOT_FINISHED = 10050; + RET_ROGUELIKE_ALL_AVATAR_DIE_CANNOT_RESUME = 10051; + RET_PLANT_FLOWER_ALREADY_TAKE_SEED = 10056; + RET_PLANT_FLOWER_FRIEND_HAVE_FLOWER_LIMIT = 10057; + RET_PLANT_FLOWER_CAN_GIVE_FLOWER_NOT_ENOUGH = 10058; + RET_PLANT_FLOWER_WISH_FLOWER_KINDS_LIMIT = 10059; + RET_PLANT_FLOWER_HAVE_FLOWER_NOT_ENOUGH = 10060; + RET_PLANT_FLOWER_FLOWER_COMBINATION_INVALID = 10061; + RET_NOT_IN_FISHING = 11001; + RET_FISH_STATE_ERROR = 11002; + RET_FISH_BAIT_LIMIT = 11003; + RET_FISHING_MAX_DISTANCE = 11004; + RET_FISHING_IN_COMBAT = 11005; + RET_FISHING_BATTLE_TOO_SHORT = 11006; + RET_FISH_GONE_AWAY = 11007; + RET_FAIL = -1; +} diff --git a/proto/RoguelikeGadgetInfo.proto b/proto/RoguelikeGadgetInfo.proto new file mode 100644 index 000000000..763a019da --- /dev/null +++ b/proto/RoguelikeGadgetInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message RoguelikeGadgetInfo { + uint32 cell_config_id = 1; + uint32 cell_type = 2; + uint32 cell_state = 3; + uint32 cell_id = 4; +} diff --git a/proto/Route.proto b/proto/Route.proto new file mode 100755 index 000000000..b16092560 --- /dev/null +++ b/proto/Route.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "RoutePoint.proto"; + +message Route { + repeated RoutePoint route_points = 1; + uint32 route_type = 2; +} diff --git a/proto/RoutePoint.proto b/proto/RoutePoint.proto new file mode 100755 index 000000000..d6266de5f --- /dev/null +++ b/proto/RoutePoint.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Vector.proto"; +import "MathQuaternion.proto"; + +message RoutePoint { + oneof MoveParams { + float velocity = 11; + float time = 12; + } + oneof RotateParams { + Vector rotation = 21; + MathQuaternion rotation_speed = 22; + MathQuaternion axis_speed = 23; + } + Vector position = 1; + float arrive_range = 2; +} diff --git a/proto/SceneAreaWeatherNotify.proto b/proto/SceneAreaWeatherNotify.proto new file mode 100755 index 000000000..51b168130 --- /dev/null +++ b/proto/SceneAreaWeatherNotify.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message SceneAreaWeatherNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 251; + } + + uint32 weather_gadget_id = 1; + map weather_value_map = 2; + uint32 weather_area_id = 3; + uint32 climate_type = 4; + float trans_duration = 5; +} diff --git a/proto/SceneAvatarInfo.proto b/proto/SceneAvatarInfo.proto new file mode 100755 index 000000000..f6b23cf05 --- /dev/null +++ b/proto/SceneAvatarInfo.proto @@ -0,0 +1,33 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "SceneWeaponInfo.proto"; +import "CurVehicleInfo.proto"; +import "AvatarExcelInfo.proto"; +import "SceneReliquaryInfo.proto"; +import "ServerBuff.proto"; + +message SceneAvatarInfo { + uint32 uid = 1; + uint32 avatar_id = 2; + uint64 guid = 3; + uint32 peer_id = 4; + repeated uint32 equip_id_list = 5; + uint32 skill_depot_id = 6; + repeated uint32 talent_id_list = 7; + SceneWeaponInfo weapon = 8; + repeated SceneReliquaryInfo reliquary_list = 9; + uint32 core_proud_skill_level = 11; + repeated uint32 inherent_proud_skill_list = 12; + map skill_level_map = 13; + map proud_skill_extra_level_map = 14; + repeated ServerBuff server_buff_list = 15; + repeated uint32 team_resonance_list = 16; + uint32 wearing_flycloak_id = 17; + uint32 born_time = 18; + uint32 costume_id = 19; + CurVehicleInfo cur_vehicle_info = 20; + AvatarExcelInfo excel_info = 21; + uint32 anim_hash = 22; +} diff --git a/proto/SceneEntityAiInfo.proto b/proto/SceneEntityAiInfo.proto new file mode 100755 index 000000000..bc85ef4f2 --- /dev/null +++ b/proto/SceneEntityAiInfo.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Vector.proto"; +import "ServantInfo.proto"; + +message SceneEntityAiInfo { + bool is_ai_open = 1; + Vector born_pos = 2; + map skill_cd_map = 3; + ServantInfo servant_info = 4; + map ai_threat_map = 5; + map skill_group_cd_map = 6; + uint32 cur_tactic = 7; +} diff --git a/proto/SceneEntityAppearNotify.proto b/proto/SceneEntityAppearNotify.proto new file mode 100755 index 000000000..388c69dcd --- /dev/null +++ b/proto/SceneEntityAppearNotify.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "VisionType.proto"; +import "SceneEntityInfo.proto"; + +message SceneEntityAppearNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 201; + } + + repeated SceneEntityInfo entity_list = 1; + VisionType appear_type = 2; + uint32 param = 3; +} diff --git a/proto/SceneEntityDisappearNotify.proto b/proto/SceneEntityDisappearNotify.proto new file mode 100755 index 000000000..45a4c02fb --- /dev/null +++ b/proto/SceneEntityDisappearNotify.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "VisionType.proto"; + +message SceneEntityDisappearNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 294; + } + + repeated uint32 entity_list = 1; + VisionType disappear_type = 2; +} diff --git a/proto/SceneEntityDrownReq.proto b/proto/SceneEntityDrownReq.proto new file mode 100644 index 000000000..a0a98e9c2 --- /dev/null +++ b/proto/SceneEntityDrownReq.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SceneEntityDrownReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 222; + } + + uint32 entity_id = 1; +} diff --git a/proto/SceneEntityDrownRsp.proto b/proto/SceneEntityDrownRsp.proto new file mode 100644 index 000000000..8db1aece0 --- /dev/null +++ b/proto/SceneEntityDrownRsp.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SceneEntityDrownRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 276; + } + + int32 retcode = 1; + uint32 entity_id = 2; +} diff --git a/proto/SceneEntityInfo.proto b/proto/SceneEntityInfo.proto new file mode 100755 index 000000000..0c56b7043 --- /dev/null +++ b/proto/SceneEntityInfo.proto @@ -0,0 +1,41 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "SceneAvatarInfo.proto"; +import "SceneMonsterInfo.proto"; +import "SceneNpcInfo.proto"; +import "SceneGadgetInfo.proto"; +import "ProtEntityType.proto"; +import "MotionInfo.proto"; +import "EntityClientData.proto"; +import "EntityAuthorityInfo.proto"; +import "PropPair.proto"; +import "FightPropPair.proto"; +import "AnimatorParameterValueInfoPair.proto"; +import "EntityEnvironmentInfo.proto"; +import "ServerBuff.proto"; + +message SceneEntityInfo { + oneof Entity { + SceneAvatarInfo avatar = 10; + SceneMonsterInfo monster = 11; + SceneNpcInfo npc = 12; + SceneGadgetInfo gadget = 13; + } + ProtEntityType entity_type = 1; + uint32 entity_id = 2; + string name = 3; + MotionInfo motion_info = 4; + repeated PropPair prop_list = 5; + repeated FightPropPair fight_prop_list = 6; + uint32 life_state = 7; + repeated AnimatorParameterValueInfoPair animator_para_list = 9; + uint32 last_move_scene_time_ms = 17; + uint32 last_move_reliable_seq = 18; + EntityClientData entity_client_data = 19; + repeated EntityEnvironmentInfo entity_environment_info_list = 20; + EntityAuthorityInfo entity_authority_info = 21; + repeated string tag_list = 22; + repeated ServerBuff server_buff_list = 23; +} diff --git a/proto/SceneEntityMoveNotify.proto b/proto/SceneEntityMoveNotify.proto new file mode 100755 index 000000000..58b430c68 --- /dev/null +++ b/proto/SceneEntityMoveNotify.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MotionInfo.proto"; + +message SceneEntityMoveNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_IS_RELIABLE = 1; + ENET_CHANNEL_ID = 1; + CMD_ID = 226; + } + + uint32 entity_id = 1; + MotionInfo motion_info = 2; + uint32 scene_time = 3; + uint32 reliable_seq = 4; +} diff --git a/proto/SceneFishInfo.proto b/proto/SceneFishInfo.proto new file mode 100644 index 000000000..212a244c2 --- /dev/null +++ b/proto/SceneFishInfo.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Vector.proto"; + +message SceneFishInfo { + uint32 fish_id = 1; + uint32 fish_pool_entity_id = 2; + Vector fish_pool_pos = 3; + uint32 fish_pool_gadget_id = 4; +} diff --git a/proto/SceneForceUnlockNotify.proto b/proto/SceneForceUnlockNotify.proto new file mode 100755 index 000000000..b260606df --- /dev/null +++ b/proto/SceneForceUnlockNotify.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message SceneForceUnlockNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 292; + } + + repeated uint32 force_id_list = 1; + bool is_add = 2; +} diff --git a/proto/SceneGadgetInfo.proto b/proto/SceneGadgetInfo.proto new file mode 100755 index 000000000..0c405e475 --- /dev/null +++ b/proto/SceneGadgetInfo.proto @@ -0,0 +1,68 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Item.proto"; +import "GatherGadgetInfo.proto"; +import "WorktopInfo.proto"; +import "ClientGadgetInfo.proto"; +import "WeatherInfo.proto"; +import "AbilityGadgetInfo.proto"; +import "StatueGadgetInfo.proto"; +import "BossChestInfo.proto"; +import "BlossomChestInfo.proto"; +import "MpPlayRewardInfo.proto"; +import "GadgetGeneralRewardInfo.proto"; +import "OfferingInfo.proto"; +import "FoundationInfo.proto"; +import "VehicleInfo.proto"; +import "EchoShellInfo.proto"; +import "ScreenInfo.proto"; +import "FishPoolInfo.proto"; +import "CustomGadgetTreeInfo.proto"; +import "RoguelikeGadgetInfo.proto"; +import "GadgetBornType.proto"; +import "PlatformInfo.proto"; +import "GadgetPlayInfo.proto"; + +message SceneGadgetInfo { + oneof Content { + Item trifle_item = 12; + GatherGadgetInfo gather_gadget = 13; + WorktopInfo worktop = 14; + ClientGadgetInfo client_gadget = 15; + WeatherInfo weather = 17; + AbilityGadgetInfo ability_gadget = 18; + StatueGadgetInfo statue_gadget = 19; + BossChestInfo boss_chest = 20; + BlossomChestInfo blossom_chest = 41; + MpPlayRewardInfo mp_play_reward = 42; + GadgetGeneralRewardInfo general_reward = 43; + OfferingInfo offering_info = 44; + FoundationInfo foundation_info = 45; + VehicleInfo vehicle_info = 46; + EchoShellInfo shell_info = 47; + ScreenInfo screen_info = 48; + FishPoolInfo fish_pool_info = 59; + CustomGadgetTreeInfo custom_gadget_tree_info = 60; + RoguelikeGadgetInfo roguelike_gadget_info = 61; + } + uint32 gadget_id = 1; + uint32 group_id = 2; + uint32 config_id = 3; + uint32 owner_entity_id = 4; + GadgetBornType born_type = 5; + uint32 gadget_state = 6; + uint32 gadget_type = 7; + bool is_show_cutscene = 8; + uint32 authority_peer_id = 9; + bool is_enable_interact = 10; + uint32 interact_id = 11; + uint32 mark_flag = 21; + uint32 prop_owner_entity_id = 22; + PlatformInfo platform = 23; + repeated uint32 interact_uid_list = 24; + uint32 draft_id = 25; + uint32 gadget_talk_state = 26; + GadgetPlayInfo play_info = 100; +} diff --git a/proto/SceneInitFinishRsp.proto b/proto/SceneInitFinishRsp.proto new file mode 100755 index 000000000..bdc518b88 --- /dev/null +++ b/proto/SceneInitFinishRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message SceneInitFinishRsp { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 300; + } + + int32 retcode = 1; + uint32 enter_scene_token = 2; +} diff --git a/proto/SceneKickPlayerNotify.proto b/proto/SceneKickPlayerNotify.proto new file mode 100755 index 000000000..cb8e5f070 --- /dev/null +++ b/proto/SceneKickPlayerNotify.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message SceneKickPlayerNotify { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 235; + } + + uint32 kicker_uid = 1; + uint32 target_uid = 2; +} diff --git a/proto/SceneKickPlayerReq.proto b/proto/SceneKickPlayerReq.proto new file mode 100755 index 000000000..eada835ad --- /dev/null +++ b/proto/SceneKickPlayerReq.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message SceneKickPlayerReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 268; + } + + uint32 target_uid = 1; +} diff --git a/proto/SceneKickPlayerRsp.proto b/proto/SceneKickPlayerRsp.proto new file mode 100755 index 000000000..68eadc25d --- /dev/null +++ b/proto/SceneKickPlayerRsp.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message SceneKickPlayerRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 272; + } + + int32 retcode = 1; + uint32 target_uid = 2; +} diff --git a/proto/SceneMonsterInfo.proto b/proto/SceneMonsterInfo.proto new file mode 100755 index 000000000..ef9572818 --- /dev/null +++ b/proto/SceneMonsterInfo.proto @@ -0,0 +1,35 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "SceneFishInfo.proto"; +import "MonsterBornType.proto"; +import "MonsterRoute.proto"; +import "SceneWeaponInfo.proto"; + +message SceneMonsterInfo { + oneof Content { + SceneFishInfo fish_info = 50; + } + uint32 monster_id = 1; + uint32 group_id = 2; + uint32 config_id = 3; + repeated SceneWeaponInfo weapon_list = 4; + uint32 authority_peer_id = 5; + repeated uint32 affix_list = 6; + bool is_elite = 7; + uint32 owner_entity_id = 8; + uint32 summoned_tag = 9; + map summon_tag_map = 10; + uint32 pose_id = 11; + MonsterBornType born_type = 12; + uint32 block_id = 13; + uint32 mark_flag = 14; + uint32 title_id = 15; + uint32 special_name_id = 16; + uint32 attack_target_id = 17; + MonsterRoute monster_route = 18; + uint32 ai_config_id = 19; + uint32 level_route_id = 20; + uint32 init_pose_id = 21; +} diff --git a/proto/SceneNpcInfo.proto b/proto/SceneNpcInfo.proto new file mode 100755 index 000000000..b04265cb8 --- /dev/null +++ b/proto/SceneNpcInfo.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message SceneNpcInfo { + uint32 npc_id = 1; + uint32 room_id = 2; + uint32 parent_quest_id = 3; + uint32 block_id = 4; +} diff --git a/proto/ScenePlayerInfo.proto b/proto/ScenePlayerInfo.proto new file mode 100755 index 000000000..bcfb4f0ff --- /dev/null +++ b/proto/ScenePlayerInfo.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "OnlinePlayerInfo.proto"; + +message ScenePlayerInfo { + uint32 uid = 1; + uint32 peer_id = 2; + string name = 3; + bool is_connected = 4; + uint32 scene_id = 5; + OnlinePlayerInfo online_player_info = 6; +} diff --git a/proto/ScenePlayerInfoNotify.proto b/proto/ScenePlayerInfoNotify.proto new file mode 100755 index 000000000..7f789f3fb --- /dev/null +++ b/proto/ScenePlayerInfoNotify.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ScenePlayerInfo.proto"; + +message ScenePlayerInfoNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 293; + } + + repeated ScenePlayerInfo player_info_list = 1; +} diff --git a/proto/ScenePlayerLocationNotify.proto b/proto/ScenePlayerLocationNotify.proto new file mode 100755 index 000000000..6e8478848 --- /dev/null +++ b/proto/ScenePlayerLocationNotify.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PlayerLocationInfo.proto"; +import "VehicleLocationInfo.proto"; + +message ScenePlayerLocationNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_IS_RELIABLE = 1; + ENET_CHANNEL_ID = 1; + CMD_ID = 224; + } + + uint32 scene_id = 1; + repeated PlayerLocationInfo player_loc_list = 2; + repeated VehicleLocationInfo vehicle_loc_list = 3; +} diff --git a/proto/SceneReliquaryInfo.proto b/proto/SceneReliquaryInfo.proto new file mode 100755 index 000000000..8d785d459 --- /dev/null +++ b/proto/SceneReliquaryInfo.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message SceneReliquaryInfo { + uint32 item_id = 1; + uint64 guid = 2; + uint32 level = 3; + uint32 promote_level = 4; +} diff --git a/proto/SceneTeamAvatar.proto b/proto/SceneTeamAvatar.proto new file mode 100755 index 000000000..1b09ddb45 --- /dev/null +++ b/proto/SceneTeamAvatar.proto @@ -0,0 +1,29 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AvatarInfo.proto"; +import "SceneAvatarInfo.proto"; +import "AbilitySyncStateInfo.proto"; +import "SceneEntityInfo.proto"; +import "AbilityControlBlock.proto"; +import "ServerBuff.proto"; + +message SceneTeamAvatar { + uint32 player_uid = 1; + uint64 avatar_guid = 2; + uint32 scene_id = 3; + uint32 entity_id = 4; + AvatarInfo avatar_info = 5; + SceneAvatarInfo scene_avatar_info = 6; + AbilitySyncStateInfo avatar_ability_info = 7; + repeated ServerBuff server_buff_list = 8; + SceneEntityInfo scene_entity_info = 9; + uint64 weapon_guid = 10; + uint32 weapon_entity_id = 11; + AbilitySyncStateInfo weapon_ability_info = 12; + AbilityControlBlock ability_control_block = 13; + bool is_reconnect = 14; + bool is_player_cur_avatar = 15; + bool is_on_scene = 16; +} diff --git a/proto/SceneTeamUpdateNotify.proto b/proto/SceneTeamUpdateNotify.proto new file mode 100755 index 000000000..183d88f81 --- /dev/null +++ b/proto/SceneTeamUpdateNotify.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "SceneTeamAvatar.proto"; + +message SceneTeamUpdateNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1793; + } + + repeated SceneTeamAvatar scene_team_avatar_list = 1; + bool is_in_mp = 3; +} diff --git a/proto/SceneTimeNotify.proto b/proto/SceneTimeNotify.proto new file mode 100755 index 000000000..601be2773 --- /dev/null +++ b/proto/SceneTimeNotify.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message SceneTimeNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 230; + } + + uint32 scene_id = 1; + bool is_paused = 2; + uint64 scene_time = 3; +} diff --git a/proto/SceneTransToPointReq.proto b/proto/SceneTransToPointReq.proto new file mode 100755 index 000000000..aed746d33 --- /dev/null +++ b/proto/SceneTransToPointReq.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message SceneTransToPointReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 270; + } + + uint32 scene_id = 1; + uint32 point_id = 2; +} diff --git a/proto/SceneTransToPointRsp.proto b/proto/SceneTransToPointRsp.proto new file mode 100755 index 000000000..3448f263f --- /dev/null +++ b/proto/SceneTransToPointRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message SceneTransToPointRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 232; + } + + int32 retcode = 1; + uint32 scene_id = 2; + uint32 point_id = 3; +} diff --git a/proto/SceneUnlockInfo.proto b/proto/SceneUnlockInfo.proto new file mode 100755 index 000000000..d4dfa2f4f --- /dev/null +++ b/proto/SceneUnlockInfo.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SceneUnlockInfo { + uint32 sceneId = 1; + bool isLocked = 2; + repeated uint32 sceneTagIdList = 3; +} diff --git a/proto/SceneUnlockInfoNotify.proto b/proto/SceneUnlockInfoNotify.proto new file mode 100755 index 000000000..28be03d6c --- /dev/null +++ b/proto/SceneUnlockInfoNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "SceneUnlockInfo.proto"; + +message SceneUnlockInfoNotify { + repeated SceneUnlockInfo unlockInfos = 1; +} diff --git a/proto/SceneWeaponInfo.proto b/proto/SceneWeaponInfo.proto new file mode 100755 index 000000000..db45af89e --- /dev/null +++ b/proto/SceneWeaponInfo.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilitySyncStateInfo.proto"; + +message SceneWeaponInfo { + uint32 entity_id = 1; + uint32 gadget_id = 2; + uint32 item_id = 3; + uint64 guid = 4; + uint32 level = 5; + uint32 promote_level = 6; + AbilitySyncStateInfo ability_info = 7; + map affix_map = 8; +} diff --git a/proto/ScreenInfo.proto b/proto/ScreenInfo.proto new file mode 100644 index 000000000..2fa38427f --- /dev/null +++ b/proto/ScreenInfo.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ScreenInfo { + uint32 live_id = 1; + uint32 projector_entity_id = 2; +} diff --git a/proto/ServantInfo.proto b/proto/ServantInfo.proto new file mode 100755 index 000000000..3ed3e9b0b --- /dev/null +++ b/proto/ServantInfo.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ServantInfo { + uint32 master_entity_id = 1; + uint32 born_slot_index = 2; +} diff --git a/proto/ServerBuff.proto b/proto/ServerBuff.proto new file mode 100755 index 000000000..bc9695843 --- /dev/null +++ b/proto/ServerBuff.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ServerBuff { + uint32 server_buff_uid = 1; + uint32 server_buff_id = 2; + uint32 server_buff_type = 3; + uint32 instanced_modifier_id = 4; + bool is_modifier_added = 5; +} diff --git a/proto/ServerTimeNotify.proto b/proto/ServerTimeNotify.proto new file mode 100755 index 000000000..f20266a02 --- /dev/null +++ b/proto/ServerTimeNotify.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ServerTimeNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_IS_RELIABLE = 1; + ENET_CHANNEL_ID = 1; + CMD_ID = 79; + } + + uint64 server_time = 1; +} diff --git a/proto/SetEntityClientDataNotify.proto b/proto/SetEntityClientDataNotify.proto new file mode 100755 index 000000000..2760a4d58 --- /dev/null +++ b/proto/SetEntityClientDataNotify.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "EntityClientData.proto"; + +message SetEntityClientDataNotify { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 3187; + } + + uint32 entity_id = 1; + EntityClientData entity_client_data = 2; +} diff --git a/proto/SetEquipLockStateReq.proto b/proto/SetEquipLockStateReq.proto new file mode 100755 index 000000000..91c97d472 --- /dev/null +++ b/proto/SetEquipLockStateReq.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message SetEquipLockStateReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 605; + } + + uint64 target_equip_guid = 1; + bool is_locked = 2; +} diff --git a/proto/SetEquipLockStateRsp.proto b/proto/SetEquipLockStateRsp.proto new file mode 100755 index 000000000..7afa7503d --- /dev/null +++ b/proto/SetEquipLockStateRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message SetEquipLockStateRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 662; + } + + int32 retcode = 1; + uint64 target_equip_guid = 2; + bool is_locked = 3; +} diff --git a/proto/SetNameCardReq.proto b/proto/SetNameCardReq.proto new file mode 100755 index 000000000..d89eedb1e --- /dev/null +++ b/proto/SetNameCardReq.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message SetNameCardReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 4016; + } + + uint32 name_card_id = 1; +} diff --git a/proto/SetNameCardRsp.proto b/proto/SetNameCardRsp.proto new file mode 100755 index 000000000..f45961a5b --- /dev/null +++ b/proto/SetNameCardRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message SetNameCardRsp { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 4096; + } + + int32 retcode = 1; + uint32 name_card_id = 2; +} diff --git a/proto/SetPlayerBirthdayReq.proto b/proto/SetPlayerBirthdayReq.proto new file mode 100644 index 000000000..3085c75b0 --- /dev/null +++ b/proto/SetPlayerBirthdayReq.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +import "Birthday.proto"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetPlayerBirthdayReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 4024; + } + + Birthday birthday = 1; +} diff --git a/proto/SetPlayerBirthdayRsp.proto b/proto/SetPlayerBirthdayRsp.proto new file mode 100644 index 000000000..a7ac3c01f --- /dev/null +++ b/proto/SetPlayerBirthdayRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +import "Birthday.proto"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetPlayerBirthdayRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 4091; + } + + int32 retcode = 1; + Birthday birthday = 2; +} diff --git a/proto/SetPlayerBornDataReq.proto b/proto/SetPlayerBornDataReq.proto new file mode 100644 index 000000000..ce0594d33 --- /dev/null +++ b/proto/SetPlayerBornDataReq.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetPlayerBornDataReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 119; + } + + uint32 avatar_id = 1; + string nick_name = 2; +} diff --git a/proto/SetPlayerBornDataRsp.proto b/proto/SetPlayerBornDataRsp.proto new file mode 100644 index 000000000..9192576c8 --- /dev/null +++ b/proto/SetPlayerBornDataRsp.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetPlayerBornDataRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 114; + } + + int32 retcode = 1; +} diff --git a/proto/SetPlayerHeadImageReq.proto b/proto/SetPlayerHeadImageReq.proto new file mode 100755 index 000000000..d2182baaa --- /dev/null +++ b/proto/SetPlayerHeadImageReq.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message SetPlayerHeadImageReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 4014; + } + + uint32 avatar_id = 1; +} diff --git a/proto/SetPlayerHeadImageRsp.proto b/proto/SetPlayerHeadImageRsp.proto new file mode 100755 index 000000000..28d568caa --- /dev/null +++ b/proto/SetPlayerHeadImageRsp.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ProfilePicture.proto"; + +message SetPlayerHeadImageRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 4015; + } + + int32 retcode = 1; + uint32 avatar_id = 2; + ProfilePicture profile_picture = 3; +} diff --git a/proto/SetPlayerNameReq.proto b/proto/SetPlayerNameReq.proto new file mode 100755 index 000000000..d9b60621d --- /dev/null +++ b/proto/SetPlayerNameReq.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message SetPlayerNameReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 132; + } + + string nick_name = 1; +} diff --git a/proto/SetPlayerNameRsp.proto b/proto/SetPlayerNameRsp.proto new file mode 100755 index 000000000..0e4be0996 --- /dev/null +++ b/proto/SetPlayerNameRsp.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message SetPlayerNameRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 147; + } + + int32 retcode = 1; + string nick_name = 2; +} diff --git a/proto/SetPlayerPropReq.proto b/proto/SetPlayerPropReq.proto new file mode 100755 index 000000000..41b018ed7 --- /dev/null +++ b/proto/SetPlayerPropReq.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PropValue.proto"; + +message SetPlayerPropReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 191; + } + + repeated PropValue prop_list = 1; +} diff --git a/proto/SetPlayerPropRsp.proto b/proto/SetPlayerPropRsp.proto new file mode 100755 index 000000000..935754f19 --- /dev/null +++ b/proto/SetPlayerPropRsp.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message SetPlayerPropRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 136; + } + + int32 retcode = 1; +} diff --git a/proto/SetPlayerSignatureReq.proto b/proto/SetPlayerSignatureReq.proto new file mode 100755 index 000000000..dd1f5e8bd --- /dev/null +++ b/proto/SetPlayerSignatureReq.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message SetPlayerSignatureReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 4036; + } + + string signature = 1; +} diff --git a/proto/SetPlayerSignatureRsp.proto b/proto/SetPlayerSignatureRsp.proto new file mode 100755 index 000000000..b225cec4c --- /dev/null +++ b/proto/SetPlayerSignatureRsp.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message SetPlayerSignatureRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 4019; + } + + int32 retcode = 1; + string signature = 2; +} diff --git a/proto/SetUpAvatarTeamReq.proto b/proto/SetUpAvatarTeamReq.proto new file mode 100755 index 000000000..3c2db15d2 --- /dev/null +++ b/proto/SetUpAvatarTeamReq.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message SetUpAvatarTeamReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 1653; + } + + uint32 team_id = 1; + repeated uint64 avatar_team_guid_list = 2; + uint64 cur_avatar_guid = 3; +} diff --git a/proto/SetUpAvatarTeamRsp.proto b/proto/SetUpAvatarTeamRsp.proto new file mode 100755 index 000000000..dbcc81d63 --- /dev/null +++ b/proto/SetUpAvatarTeamRsp.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message SetUpAvatarTeamRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1744; + } + + int32 retcode = 1; + uint32 team_id = 2; + repeated uint64 avatar_team_guid_list = 3; + uint64 cur_avatar_guid = 4; +} diff --git a/proto/Shop.proto b/proto/Shop.proto new file mode 100755 index 000000000..a5b9ad6e5 --- /dev/null +++ b/proto/Shop.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ShopGoods.proto"; +import "ShopMcoinProduct.proto"; +import "ShopCardProduct.proto"; +import "ShopConcertProduct.proto"; + +message Shop { + uint32 shop_type = 1; + repeated ShopGoods goods_list = 2; + repeated ShopMcoinProduct mcoin_product_list = 3; + repeated ShopCardProduct card_product_list = 4; + uint32 next_refresh_time = 6; + uint32 city_id = 7; + uint32 city_reputation_level = 8; + repeated ShopConcertProduct concert_product_list = 9; +} diff --git a/proto/ShopCardProduct.proto b/proto/ShopCardProduct.proto new file mode 100755 index 000000000..45971007a --- /dev/null +++ b/proto/ShopCardProduct.proto @@ -0,0 +1,23 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message ShopCardProduct { + message ResinCard { + repeated ItemParam base_item_list = 1; + repeated ItemParam per_day_item_list = 2; + } + + oneof ExtraCardData { + ResinCard resin_card = 101; + } + string product_id = 1; + string price_tier = 2; + uint32 mcoin_base = 3; + uint32 hcoin_per_day = 4; + uint32 days = 5; + uint32 remain_reward_days = 6; + uint32 card_product_type = 7; +} diff --git a/proto/ShopConcertProduct.proto b/proto/ShopConcertProduct.proto new file mode 100644 index 000000000..e91f4b1f7 --- /dev/null +++ b/proto/ShopConcertProduct.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ShopConcertProduct { + string product_id = 1; + string price_tier = 2; + uint32 obtain_count = 3; + uint32 obtain_limit = 4; + uint32 begin_time = 5; + uint32 end_time = 6; + uint32 buy_times = 7; +} diff --git a/proto/ShopGoods.proto b/proto/ShopGoods.proto new file mode 100755 index 000000000..ea4a3717b --- /dev/null +++ b/proto/ShopGoods.proto @@ -0,0 +1,28 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message ShopGoods { + uint32 goods_id = 1; + ItemParam goods_item = 2; + uint32 scoin = 3; + uint32 hcoin = 4; + repeated ItemParam cost_item_list = 5; + uint32 bought_num = 6; + uint32 buy_limit = 7; + uint32 begin_time = 8; + uint32 end_time = 9; + uint32 next_refresh_time = 10; + uint32 min_level = 11; + uint32 max_level = 12; + repeated uint32 pre_goods_id_list = 13; + uint32 mcoin = 14; + uint32 disable_type = 15; + uint32 secondary_sheet_id = 16; + uint32 discount_id = 17; + uint32 discount_begin_time = 18; + uint32 discount_end_time = 19; + uint32 single_limit = 20; +} diff --git a/proto/ShopGoodsDisableType.proto b/proto/ShopGoodsDisableType.proto new file mode 100755 index 000000000..cd1608bc6 --- /dev/null +++ b/proto/ShopGoodsDisableType.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum ShopGoodsDisableType { + SHOP_GOODS_DISABLE_NONE = 0; + SHOP_GOODS_DISABLE_TALENT_FULL = 1; + SHOP_GOODS_DISABLE_FURNITURE_FORMULA_UNLOCKED = 2; + SHOP_GOODS_DISABLE_COSTUME_UNLOCKED = 3; +} diff --git a/proto/ShopMcoinProduct.proto b/proto/ShopMcoinProduct.proto new file mode 100755 index 000000000..3962ad173 --- /dev/null +++ b/proto/ShopMcoinProduct.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ShopMcoinProduct { + string product_id = 1; + string price_tier = 2; + uint32 mcoin_base = 3; + uint32 mcoin_non_first = 4; + uint32 mcoin_first = 5; + uint32 bought_num = 6; + bool is_audit = 7; +} diff --git a/proto/ShortAbilityHashPair.proto b/proto/ShortAbilityHashPair.proto new file mode 100755 index 000000000..ec02252ae --- /dev/null +++ b/proto/ShortAbilityHashPair.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message ShortAbilityHashPair { + int32 ability_name_hash = 1; + int32 ability_config_hash = 2; +} diff --git a/proto/SocialDetail.proto b/proto/SocialDetail.proto new file mode 100755 index 000000000..0d8752c92 --- /dev/null +++ b/proto/SocialDetail.proto @@ -0,0 +1,37 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Birthday.proto"; +import "FriendOnlineState.proto"; +import "FriendEnterHomeOption.proto"; +import "ProfilePicture.proto"; +import "SocialShowAvatarInfo.proto"; + +message SocialDetail { + uint32 uid = 1; + string nickname = 2; + uint32 level = 3; + uint32 avatar_id = 4; + string signature = 5; + Birthday birthday = 6; + uint32 world_level = 7; + repeated uint32 reserved_list = 8; + FriendOnlineState online_state = 9; + uint32 param = 10; + bool is_friend = 11; + bool is_mp_mode_available = 12; + string online_id = 13; + uint32 name_card_id = 14; + bool is_in_blacklist = 15; + bool is_chat_no_disturb = 16; + string remark_name = 17; + uint32 finish_achievement_num = 18; + uint32 tower_floor_index = 19; + uint32 tower_level_index = 20; + bool is_show_avatar = 21; + repeated SocialShowAvatarInfo show_avatar_info_list = 22; + repeated uint32 show_name_card_id_list = 23; + FriendEnterHomeOption friend_enter_home_option = 24; + ProfilePicture profile_picture = 25; +} diff --git a/proto/SocialShowAvatarInfo.proto b/proto/SocialShowAvatarInfo.proto new file mode 100755 index 000000000..c682d366c --- /dev/null +++ b/proto/SocialShowAvatarInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message SocialShowAvatarInfo { + uint32 avatar_id = 1; + uint32 level = 2; + uint32 costume_id = 3; +} diff --git a/proto/StatueGadgetInfo.proto b/proto/StatueGadgetInfo.proto new file mode 100644 index 000000000..6bf5de64d --- /dev/null +++ b/proto/StatueGadgetInfo.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message StatueGadgetInfo { + repeated uint32 opened_statue_uid_list = 1; +} diff --git a/proto/StopServerInfo.proto b/proto/StopServerInfo.proto new file mode 100644 index 000000000..3dc24ece9 --- /dev/null +++ b/proto/StopServerInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message StopServerInfo { + uint32 stop_begin_time = 1; + uint32 stop_end_time = 2; + string url = 3; + string content_msg = 4; +} diff --git a/proto/StoreItemChangeNotify.proto b/proto/StoreItemChangeNotify.proto new file mode 100755 index 000000000..c76d0ef7f --- /dev/null +++ b/proto/StoreItemChangeNotify.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "StoreType.proto"; +import "Item.proto"; + +message StoreItemChangeNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 689; + } + + StoreType store_type = 1; + repeated Item item_list = 2; +} diff --git a/proto/StoreItemDelNotify.proto b/proto/StoreItemDelNotify.proto new file mode 100755 index 000000000..bf9f23267 --- /dev/null +++ b/proto/StoreItemDelNotify.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "StoreType.proto"; + +message StoreItemDelNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 684; + } + + StoreType store_type = 1; + repeated uint64 guid_list = 2; +} diff --git a/proto/StoreType.proto b/proto/StoreType.proto new file mode 100755 index 000000000..91163c522 --- /dev/null +++ b/proto/StoreType.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum StoreType { + STORE_NONE = 0; + STORE_PACK = 1; + STORE_DEPOT = 2; +} diff --git a/proto/StoreWeightLimitNotify.proto b/proto/StoreWeightLimitNotify.proto new file mode 100755 index 000000000..24e58560e --- /dev/null +++ b/proto/StoreWeightLimitNotify.proto @@ -0,0 +1,22 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "StoreType.proto"; + +message StoreWeightLimitNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 618; + } + + StoreType store_type = 1; + uint32 weight_limit = 3; + uint32 material_count_limit = 4; + uint32 weapon_count_limit = 5; + uint32 reliquary_count_limit = 6; + uint32 furniture_count_limit = 7; +} diff --git a/proto/SyncScenePlayTeamEntityNotify.proto b/proto/SyncScenePlayTeamEntityNotify.proto new file mode 100755 index 000000000..e14237da3 --- /dev/null +++ b/proto/SyncScenePlayTeamEntityNotify.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PlayTeamEntityInfo.proto"; + +message SyncScenePlayTeamEntityNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 3375; + } + + uint32 scene_id = 1; + repeated PlayTeamEntityInfo entity_info_list = 2; +} diff --git a/proto/SyncTeamEntityNotify.proto b/proto/SyncTeamEntityNotify.proto new file mode 100755 index 000000000..e41525177 --- /dev/null +++ b/proto/SyncTeamEntityNotify.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "TeamEntityInfo.proto"; + +message SyncTeamEntityNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 308; + } + + uint32 scene_id = 1; + repeated TeamEntityInfo team_entity_info_list = 2; +} diff --git a/proto/SystemHint.proto b/proto/SystemHint.proto new file mode 100755 index 000000000..2bc1f19ef --- /dev/null +++ b/proto/SystemHint.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SystemHint { + uint32 type = 1; +} diff --git a/proto/TakePlayerLevelRewardReq.proto b/proto/TakePlayerLevelRewardReq.proto new file mode 100755 index 000000000..fbaa3c1bf --- /dev/null +++ b/proto/TakePlayerLevelRewardReq.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message TakePlayerLevelRewardReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 173; + } + + uint32 level = 1; +} diff --git a/proto/TakePlayerLevelRewardRsp.proto b/proto/TakePlayerLevelRewardRsp.proto new file mode 100755 index 000000000..ec1944c28 --- /dev/null +++ b/proto/TakePlayerLevelRewardRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message TakePlayerLevelRewardRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 102; + } + + int32 retcode = 1; + uint32 level = 2; + uint32 reward_id = 3; +} diff --git a/proto/TakeoffEquipReq.proto b/proto/TakeoffEquipReq.proto new file mode 100755 index 000000000..e956faeec --- /dev/null +++ b/proto/TakeoffEquipReq.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message TakeoffEquipReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 619; + } + + uint64 avatar_guid = 1; + uint32 slot = 2; +} diff --git a/proto/TakeoffEquipRsp.proto b/proto/TakeoffEquipRsp.proto new file mode 100755 index 000000000..db6dcedae --- /dev/null +++ b/proto/TakeoffEquipRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message TakeoffEquipRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 614; + } + + int32 retcode = 1; + uint64 avatar_guid = 2; + uint32 slot = 3; +} diff --git a/proto/TeamEnterSceneInfo.proto b/proto/TeamEnterSceneInfo.proto new file mode 100755 index 000000000..b6adbe8ca --- /dev/null +++ b/proto/TeamEnterSceneInfo.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilitySyncStateInfo.proto"; +import "AbilityControlBlock.proto"; + +message TeamEnterSceneInfo { + uint32 team_entity_id = 1; + AbilitySyncStateInfo team_ability_info = 2; + AbilityControlBlock ability_control_block = 3; +} diff --git a/proto/TeamEntityInfo.proto b/proto/TeamEntityInfo.proto new file mode 100755 index 000000000..9b09ff01c --- /dev/null +++ b/proto/TeamEntityInfo.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilitySyncStateInfo.proto"; + +message TeamEntityInfo { + uint32 team_entity_id = 1; + uint32 authority_peer_id = 2; + AbilitySyncStateInfo team_ability_info = 3; +} diff --git a/proto/TeamResonanceChangeNotify.proto b/proto/TeamResonanceChangeNotify.proto new file mode 100755 index 000000000..fe8e8b4e0 --- /dev/null +++ b/proto/TeamResonanceChangeNotify.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AvatarTeamResonanceInfo.proto"; + +message TeamResonanceChangeNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1014; + } + + repeated AvatarTeamResonanceInfo info_list = 1; +} diff --git a/proto/TowerAllDataRsp.proto b/proto/TowerAllDataRsp.proto new file mode 100755 index 000000000..e99d62873 --- /dev/null +++ b/proto/TowerAllDataRsp.proto @@ -0,0 +1,35 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "TowerCurLevelRecord.proto"; +import "TowerMonthlyBrief.proto"; +import "TowerFloorRecord.proto"; + +message TowerAllDataRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 2461; + } + + uint32 tower_schedule_id = 1; + repeated TowerFloorRecord tower_floor_record_list = 2; + uint32 daily_floor_id = 3; + uint32 daily_level_index = 4; + TowerCurLevelRecord cur_level_record = 5; + uint32 next_schedule_change_time = 6; + map floor_open_time_map = 7; + bool is_first_interact = 8; + TowerMonthlyBrief monthly_brief = 9; + uint32 skip_to_floor_index = 10; + uint32 commemorative_reward_id = 11; + map skip_floor_granted_reward_item_map = 12; + uint32 valid_tower_record_num = 13; + int32 retcode = 14; + bool is_finished_entrance_floor = 15; + uint32 schedule_start_time = 16; + TowerMonthlyBrief last_schedule_monthly_brief = 17; +} diff --git a/proto/TowerCurLevelRecord.proto b/proto/TowerCurLevelRecord.proto new file mode 100755 index 000000000..bfd4a84a6 --- /dev/null +++ b/proto/TowerCurLevelRecord.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "TowerTeam.proto"; + +message TowerCurLevelRecord { + uint32 cur_floor_id = 1; + uint32 cur_level_index = 2; + repeated TowerTeam tower_team_list = 3; + repeated uint32 buff_id_list = 4; + bool is_empty = 5; +} diff --git a/proto/TowerFloorRecord.proto b/proto/TowerFloorRecord.proto new file mode 100755 index 000000000..d5a44c8ba --- /dev/null +++ b/proto/TowerFloorRecord.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "TowerLevelRecord.proto"; + +message TowerFloorRecord { + uint32 floor_id = 1; + map passed_level_map = 2; + uint32 floor_star_reward_progress = 3; + repeated TowerLevelRecord passed_level_record_list = 4; +} diff --git a/proto/TowerLevelRecord.proto b/proto/TowerLevelRecord.proto new file mode 100755 index 000000000..30dbed4bd --- /dev/null +++ b/proto/TowerLevelRecord.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message TowerLevelRecord { + uint32 level_id = 1; + repeated uint32 satisfied_cond_list = 2; +} diff --git a/proto/TowerMonthlyBrief.proto b/proto/TowerMonthlyBrief.proto new file mode 100755 index 000000000..fecf3aebb --- /dev/null +++ b/proto/TowerMonthlyBrief.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message TowerMonthlyBrief { + uint32 tower_schedule_id = 1; + uint32 best_floor_index = 2; + uint32 best_level_index = 3; + uint32 total_star_count = 4; +} diff --git a/proto/TowerTeam.proto b/proto/TowerTeam.proto new file mode 100755 index 000000000..374c59313 --- /dev/null +++ b/proto/TowerTeam.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message TowerTeam { + uint32 tower_team_id = 1; + repeated uint64 avatar_guid_list = 2; +} diff --git a/proto/TrackingIOInfo.proto b/proto/TrackingIOInfo.proto new file mode 100755 index 000000000..976185e84 --- /dev/null +++ b/proto/TrackingIOInfo.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message TrackingIOInfo { + string appid = 1; + string deviceid = 2; + string mac = 3; + string rydevicetype = 4; + string client_tz = 5; + string current_caid = 6; + string cached_caid = 7; +} diff --git a/proto/TrialAvatarGrantRecord.proto b/proto/TrialAvatarGrantRecord.proto new file mode 100755 index 000000000..fbfe446cc --- /dev/null +++ b/proto/TrialAvatarGrantRecord.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message TrialAvatarGrantRecord { + enum GrantReason { + INVALID = 0; + GRANT_BY_QUEST = 1; + GRANT_BY_TRIAL_AVATAR_ACTIVITY = 2; + GRANT_BY_DUNGEON_ELEMENT_CHALLENGE = 3; + GRANT_BY_MIST_TRIAL_ACTIVITY = 4; + GRANT_BY_SUMO_ACTIVITY = 5; + } + + uint32 grant_reason = 1; + uint32 from_parent_quest_id = 2; +} diff --git a/proto/TrialAvatarInfo.proto b/proto/TrialAvatarInfo.proto new file mode 100755 index 000000000..d72fec872 --- /dev/null +++ b/proto/TrialAvatarInfo.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "TrialAvatarGrantRecord.proto"; +import "Item.proto"; + +message TrialAvatarInfo { + uint32 trial_avatar_id = 1; + repeated Item trial_equip_list = 2; + TrialAvatarGrantRecord grant_record = 3; +} diff --git a/proto/Uint32Pair.proto b/proto/Uint32Pair.proto new file mode 100644 index 000000000..690943c2d --- /dev/null +++ b/proto/Uint32Pair.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message Uint32Pair { + uint32 key = 1; + uint32 value = 2; +} diff --git a/proto/UnionCmd.proto b/proto/UnionCmd.proto new file mode 100755 index 000000000..5483633b0 --- /dev/null +++ b/proto/UnionCmd.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message UnionCmd { + uint32 message_id = 1; + bytes body = 2; +} diff --git a/proto/UnionCmdNotify.proto b/proto/UnionCmdNotify.proto new file mode 100755 index 000000000..6dc0437bd --- /dev/null +++ b/proto/UnionCmdNotify.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "UnionCmd.proto"; + +message UnionCmdNotify { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 19; + } + + repeated UnionCmd cmd_list = 1; +} diff --git a/proto/UnlockAvatarTalentReq.proto b/proto/UnlockAvatarTalentReq.proto new file mode 100755 index 000000000..b7dd1bed6 --- /dev/null +++ b/proto/UnlockAvatarTalentReq.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message UnlockAvatarTalentReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 1049; + } + + uint64 avatar_guid = 1; + uint32 talent_id = 2; +} diff --git a/proto/UnlockAvatarTalentRsp.proto b/proto/UnlockAvatarTalentRsp.proto new file mode 100755 index 000000000..5bbfe4150 --- /dev/null +++ b/proto/UnlockAvatarTalentRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message UnlockAvatarTalentRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1018; + } + + int32 retcode = 1; + uint64 avatar_guid = 2; + uint32 talent_id = 3; +} diff --git a/proto/UnlockNameCardNotify.proto b/proto/UnlockNameCardNotify.proto new file mode 100755 index 000000000..d423d6fac --- /dev/null +++ b/proto/UnlockNameCardNotify.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message UnlockNameCardNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 4092; + } + + uint32 name_card_id = 1; +} diff --git a/proto/UseItemReq.proto b/proto/UseItemReq.proto new file mode 100755 index 000000000..27ab74830 --- /dev/null +++ b/proto/UseItemReq.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message UseItemReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 642; + } + + uint64 guid = 1; + uint32 count = 2; + uint64 target_guid = 3; + uint32 option_idx = 4; + bool is_enter_mp_dungeon_team = 5; +} diff --git a/proto/UseItemRsp.proto b/proto/UseItemRsp.proto new file mode 100755 index 000000000..de693da2c --- /dev/null +++ b/proto/UseItemRsp.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message UseItemRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 661; + } + + int32 retcode = 1; + uint64 guid = 2; + uint32 item_id = 3; + uint64 target_guid = 4; + uint32 option_idx = 5; +} diff --git a/proto/Vector.proto b/proto/Vector.proto new file mode 100755 index 000000000..0c0554276 --- /dev/null +++ b/proto/Vector.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message Vector { + float X = 1; + float Y = 2; + float Z = 3; +} diff --git a/proto/VehicleInfo.proto b/proto/VehicleInfo.proto new file mode 100644 index 000000000..06e6d0143 --- /dev/null +++ b/proto/VehicleInfo.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "VehicleMember.proto"; + +message VehicleInfo { + repeated VehicleMember member_list = 1; + uint32 owner_uid = 2; + float cur_stamina = 3; +} diff --git a/proto/VehicleLocationInfo.proto b/proto/VehicleLocationInfo.proto new file mode 100644 index 000000000..ea0b3607b --- /dev/null +++ b/proto/VehicleLocationInfo.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Vector.proto"; + +message VehicleLocationInfo { + uint32 entity_id = 1; + uint32 gadget_id = 2; + uint32 owner_uid = 3; + Vector pos = 4; + Vector rot = 5; + float cur_hp = 6; + float max_hp = 7; + repeated uint32 uid_list = 8; +} diff --git a/proto/VehicleMember.proto b/proto/VehicleMember.proto new file mode 100644 index 000000000..31580d0ef --- /dev/null +++ b/proto/VehicleMember.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message VehicleMember { + uint32 uid = 1; + uint64 avatar_guid = 2; + uint32 pos = 3; +} diff --git a/proto/VisionType.proto b/proto/VisionType.proto new file mode 100755 index 000000000..444584c12 --- /dev/null +++ b/proto/VisionType.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum VisionType { + VISION_NONE = 0; + VISION_MEET = 1; + VISION_REBORN = 2; + VISION_REPLACE = 3; + VISION_WAYPOINT_REBORN = 4; + VISION_MISS = 5; + VISION_DIE = 6; + VISION_GATHER_ESCAPE = 7; + VISION_REFRESH = 8; + VISION_TRANSPORT = 9; + VISION_REPLACE_DIE = 10; + VISION_REPLACE_NO_NOTIFY = 11; + VISION_BORN = 12; + VISION_PICKUP = 13; + VISION_REMOVE = 14; + VISION_CHANGE_COSTUME = 15; + VISION_FISH_REFRESH = 16; + VISION_FISH_BIG_SHOCK = 17; + VISION_FISH_QTE_SUCC = 18; +} diff --git a/proto/Weapon.proto b/proto/Weapon.proto new file mode 100755 index 000000000..aedbbf877 --- /dev/null +++ b/proto/Weapon.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message Weapon { + uint32 level = 1; + uint32 exp = 2; + uint32 promote_level = 3; + map affix_map = 4; +} diff --git a/proto/WeaponAwakenReq.proto b/proto/WeaponAwakenReq.proto new file mode 100755 index 000000000..4a04f457b --- /dev/null +++ b/proto/WeaponAwakenReq.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message WeaponAwakenReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 656; + } + + uint64 target_weapon_guid = 1; + uint64 item_guid = 2; + map affix_level_map = 3; +} diff --git a/proto/WeaponAwakenRsp.proto b/proto/WeaponAwakenRsp.proto new file mode 100755 index 000000000..c715044f9 --- /dev/null +++ b/proto/WeaponAwakenRsp.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message WeaponAwakenRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 692; + } + + int32 retcode = 1; + uint64 target_weapon_guid = 2; + uint32 target_weapon_awaken_level = 3; + map old_affix_level_map = 4; + map cur_affix_level_map = 5; + uint64 avatar_guid = 6; +} diff --git a/proto/WeaponPromoteReq.proto b/proto/WeaponPromoteReq.proto new file mode 100755 index 000000000..e7cf1f178 --- /dev/null +++ b/proto/WeaponPromoteReq.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message WeaponPromoteReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 647; + } + + uint64 target_weapon_guid = 1; +} diff --git a/proto/WeaponPromoteRsp.proto b/proto/WeaponPromoteRsp.proto new file mode 100755 index 000000000..6df2aa714 --- /dev/null +++ b/proto/WeaponPromoteRsp.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message WeaponPromoteRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 606; + } + + int32 retcode = 1; + uint64 target_weapon_guid = 2; + uint32 old_promote_level = 3; + uint32 cur_promote_level = 4; +} diff --git a/proto/WeaponUpgradeReq.proto b/proto/WeaponUpgradeReq.proto new file mode 100755 index 000000000..860f43986 --- /dev/null +++ b/proto/WeaponUpgradeReq.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message WeaponUpgradeReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 670; + } + + uint64 target_weapon_guid = 1; + repeated uint64 food_weapon_guid_list = 2; + repeated ItemParam item_param_list = 3; +} diff --git a/proto/WeaponUpgradeRsp.proto b/proto/WeaponUpgradeRsp.proto new file mode 100755 index 000000000..e15a82ec7 --- /dev/null +++ b/proto/WeaponUpgradeRsp.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message WeaponUpgradeRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 632; + } + + int32 retcode = 1; + uint64 target_weapon_guid = 2; + uint32 old_level = 3; + uint32 cur_level = 4; + repeated ItemParam item_param_list = 5; +} diff --git a/proto/WearEquipReq.proto b/proto/WearEquipReq.proto new file mode 100755 index 000000000..d12c5049a --- /dev/null +++ b/proto/WearEquipReq.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message WearEquipReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 691; + } + + uint64 avatar_guid = 1; + uint64 equip_guid = 2; +} diff --git a/proto/WearEquipRsp.proto b/proto/WearEquipRsp.proto new file mode 100755 index 000000000..01760f9fb --- /dev/null +++ b/proto/WearEquipRsp.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message WearEquipRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 636; + } + + int32 retcode = 1; + uint64 avatar_guid = 2; + uint64 equip_guid = 3; +} diff --git a/proto/WeatherInfo.proto b/proto/WeatherInfo.proto new file mode 100644 index 000000000..2d9c84fa4 --- /dev/null +++ b/proto/WeatherInfo.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message WeatherInfo { + uint32 weather_area_id = 1; +} diff --git a/proto/WeeklyBossResinDiscountInfo.proto b/proto/WeeklyBossResinDiscountInfo.proto new file mode 100755 index 000000000..740fa4d2c --- /dev/null +++ b/proto/WeeklyBossResinDiscountInfo.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message WeeklyBossResinDiscountInfo { + uint32 discount_num = 1; + uint32 discount_num_limit = 2; + uint32 resin_cost = 3; + uint32 original_resin_cost = 4; +} diff --git a/proto/WorktopInfo.proto b/proto/WorktopInfo.proto new file mode 100644 index 000000000..4efc17b50 --- /dev/null +++ b/proto/WorktopInfo.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message WorktopInfo { + repeated uint32 option_list = 1; + bool is_guest_can_operate = 2; +} diff --git a/proto/WorldDataNotify.proto b/proto/WorldDataNotify.proto new file mode 100755 index 000000000..345c279ef --- /dev/null +++ b/proto/WorldDataNotify.proto @@ -0,0 +1,24 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PropValue.proto"; + +message WorldDataNotify { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 3219; + } + + enum DataType { + DATA_NONE = 0; + WORLD_LEVEL = 1; + IS_IN_MP_MODE = 2; + } + + map world_prop_map = 1; +} diff --git a/proto/WorldPlayerDieNotify.proto b/proto/WorldPlayerDieNotify.proto new file mode 100755 index 000000000..e1e27b100 --- /dev/null +++ b/proto/WorldPlayerDieNotify.proto @@ -0,0 +1,22 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PlayerDieType.proto"; + +message WorldPlayerDieNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 254; + } + + oneof Entity { + uint32 monster_id = 3; + uint32 gadget_id = 4; + } + PlayerDieType die_type = 1; + uint32 murderer_entity_id = 2; +} diff --git a/proto/WorldPlayerInfoNotify.proto b/proto/WorldPlayerInfoNotify.proto new file mode 100755 index 000000000..276940d5b --- /dev/null +++ b/proto/WorldPlayerInfoNotify.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "OnlinePlayerInfo.proto"; + +message WorldPlayerInfoNotify { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 3109; + } + + repeated OnlinePlayerInfo player_info_list = 1; + repeated uint32 player_uid_list = 2; +} diff --git a/proto/WorldPlayerLocationNotify.proto b/proto/WorldPlayerLocationNotify.proto new file mode 100755 index 000000000..1b8e9d71d --- /dev/null +++ b/proto/WorldPlayerLocationNotify.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PlayerLocationInfo.proto"; +import "PlayerWorldLocationInfo.proto"; + +message WorldPlayerLocationNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 253; + } + + repeated PlayerLocationInfo player_loc_list = 1; + repeated PlayerWorldLocationInfo player_world_loc_list = 2; +} diff --git a/proto/WorldPlayerRTTNotify.proto b/proto/WorldPlayerRTTNotify.proto new file mode 100755 index 000000000..a927198ae --- /dev/null +++ b/proto/WorldPlayerRTTNotify.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PlayerRTTInfo.proto"; + +message WorldPlayerRTTNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 47; + } + + repeated PlayerRTTInfo player_rtt_list = 1; +} diff --git a/proto/WorldPlayerReviveRsp.proto b/proto/WorldPlayerReviveRsp.proto new file mode 100755 index 000000000..d08ce1e2e --- /dev/null +++ b/proto/WorldPlayerReviveRsp.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +message WorldPlayerReviveRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 227; + } + + int32 retcode = 1; +} diff --git a/src/main/java/emu/grasscutter/GenshinConstants.java b/src/main/java/emu/grasscutter/GameConstants.java similarity index 96% rename from src/main/java/emu/grasscutter/GenshinConstants.java rename to src/main/java/emu/grasscutter/GameConstants.java index 0f9eaa0b0..dc07c32e1 100644 --- a/src/main/java/emu/grasscutter/GenshinConstants.java +++ b/src/main/java/emu/grasscutter/GameConstants.java @@ -5,7 +5,7 @@ import java.util.Arrays; import emu.grasscutter.utils.Position; import emu.grasscutter.utils.Utils; -public final class GenshinConstants { +public final class GameConstants { public static String VERSION = "2.6.0"; public static final int MAX_TEAMS = 4; diff --git a/src/main/java/emu/grasscutter/command/Command.java b/src/main/java/emu/grasscutter/command/Command.java index d8a57e1a8..a0edc5cdc 100644 --- a/src/main/java/emu/grasscutter/command/Command.java +++ b/src/main/java/emu/grasscutter/command/Command.java @@ -14,4 +14,6 @@ public @interface Command { String[] aliases() default {}; String permission() default ""; + + boolean threading() default false; } diff --git a/src/main/java/emu/grasscutter/command/CommandHandler.java b/src/main/java/emu/grasscutter/command/CommandHandler.java index 037e1ed9d..9fc7d20c1 100644 --- a/src/main/java/emu/grasscutter/command/CommandHandler.java +++ b/src/main/java/emu/grasscutter/command/CommandHandler.java @@ -1,7 +1,7 @@ package emu.grasscutter.command; import emu.grasscutter.Grasscutter; -import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.player.Player; import java.util.List; @@ -12,7 +12,7 @@ public interface CommandHandler { * @param player The player to send the message to, or null for the server console. * @param message The message to send. */ - static void sendMessage(GenshinPlayer player, String message) { + static void sendMessage(Player player, String message) { if (player == null) { Grasscutter.getLogger().info(message); } else { @@ -25,6 +25,6 @@ public interface CommandHandler { * @param sender The player/console that invoked the command. * @param args The arguments to the command. */ - default void execute(GenshinPlayer sender, List args) { + default void execute(Player sender, List args) { } } diff --git a/src/main/java/emu/grasscutter/command/CommandMap.java b/src/main/java/emu/grasscutter/command/CommandMap.java index f735bc642..c46164adc 100644 --- a/src/main/java/emu/grasscutter/command/CommandMap.java +++ b/src/main/java/emu/grasscutter/command/CommandMap.java @@ -2,7 +2,8 @@ package emu.grasscutter.command; import emu.grasscutter.Grasscutter; import emu.grasscutter.game.Account; -import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.player.Player; + import org.reflections.Reflections; import java.util.*; @@ -11,7 +12,6 @@ import java.util.*; public final class CommandMap { private final Map commands = new HashMap<>(); private final Map annotations = new HashMap<>(); - public CommandMap() { this(false); } @@ -104,10 +104,11 @@ public final class CommandMap { * @param player The player invoking the command or null for the server console. * @param rawMessage The messaged used to invoke the command. */ - public void invoke(GenshinPlayer player, String rawMessage) { + public void invoke(Player player, String rawMessage) { rawMessage = rawMessage.trim(); - if(rawMessage.length() == 0) { - CommandHandler.sendMessage(player, "No command specified."); return; + if (rawMessage.length() == 0) { + CommandHandler.sendMessage(player, "No command specified."); + return; } // Remove prefix if present. @@ -118,7 +119,6 @@ public final class CommandMap { String[] split = rawMessage.split(" "); List args = new LinkedList<>(Arrays.asList(split)); String label = args.remove(0); - // Get command handler. CommandHandler handler = this.commands.get(label); if (handler == null) { @@ -130,14 +130,22 @@ public final class CommandMap { if (player != null) { String permissionNode = this.annotations.get(label).permission(); Account account = player.getAccount(); - if(!permissionNode.isEmpty() && !account.hasPermission(permissionNode)) { + if (!permissionNode.isEmpty() && !account.hasPermission(permissionNode)) { CommandHandler.sendMessage(player, "You do not have permission to run this command."); return; } } // Invoke execute method for handler. - handler.execute(player, args); + boolean threading = this.annotations.get(label).threading(); + Runnable runnable = () -> handler.execute(player, args); + if(threading) { + Thread command = new Thread(runnable); + command.start(); + } + else { + runnable.run(); + } } /** diff --git a/src/main/java/emu/grasscutter/command/commands/AccountCommand.java b/src/main/java/emu/grasscutter/command/commands/AccountCommand.java index 26570e0e8..68da1569a 100644 --- a/src/main/java/emu/grasscutter/command/commands/AccountCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/AccountCommand.java @@ -3,7 +3,7 @@ package emu.grasscutter.command.commands; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; import emu.grasscutter.database.DatabaseHelper; -import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.player.Player; import java.util.List; @@ -12,7 +12,7 @@ import java.util.List; public final class AccountCommand implements CommandHandler { @Override - public void execute(GenshinPlayer sender, List args) { + public void execute(Player sender, List args) { if (sender != null) { CommandHandler.sendMessage(sender, "This command can only be run from the console."); return; diff --git a/src/main/java/emu/grasscutter/command/commands/BroadcastCommand.java b/src/main/java/emu/grasscutter/command/commands/BroadcastCommand.java index 4922f16f8..9ef0b49a5 100644 --- a/src/main/java/emu/grasscutter/command/commands/BroadcastCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/BroadcastCommand.java @@ -3,7 +3,7 @@ package emu.grasscutter.command.commands; import emu.grasscutter.Grasscutter; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; -import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.player.Player; import java.util.List; @@ -12,7 +12,7 @@ import java.util.List; public final class BroadcastCommand implements CommandHandler { @Override - public void execute(GenshinPlayer sender, List args) { + public void execute(Player sender, List args) { if (args.size() < 1) { CommandHandler.sendMessage(sender, "Usage: broadcast "); return; @@ -20,7 +20,7 @@ public final class BroadcastCommand implements CommandHandler { String message = String.join(" ", args.subList(0, args.size())); - for (GenshinPlayer p : Grasscutter.getGameServer().getPlayers().values()) { + for (Player p : Grasscutter.getGameServer().getPlayers().values()) { CommandHandler.sendMessage(p, message); } diff --git a/src/main/java/emu/grasscutter/command/commands/ChangeSceneCommand.java b/src/main/java/emu/grasscutter/command/commands/ChangeSceneCommand.java index eb2e998f2..30ef090d5 100644 --- a/src/main/java/emu/grasscutter/command/commands/ChangeSceneCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/ChangeSceneCommand.java @@ -2,7 +2,7 @@ package emu.grasscutter.command.commands; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; -import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.player.Player; import java.util.List; @@ -10,7 +10,7 @@ import java.util.List; description = "Changes your scene", aliases = {"scene"}, permission = "player.changescene") public final class ChangeSceneCommand implements CommandHandler { @Override - public void execute(GenshinPlayer sender, List args) { + public void execute(Player sender, List args) { if (sender == null) { CommandHandler.sendMessage(null, "Run this command in-game."); return; diff --git a/src/main/java/emu/grasscutter/command/commands/ClearCommand.java b/src/main/java/emu/grasscutter/command/commands/ClearCommand.java index fc6295253..8aa7d7333 100644 --- a/src/main/java/emu/grasscutter/command/commands/ClearCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/ClearCommand.java @@ -3,9 +3,9 @@ package emu.grasscutter.command.commands; import emu.grasscutter.Grasscutter; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; -import emu.grasscutter.game.GenshinPlayer; import emu.grasscutter.game.inventory.Inventory; import emu.grasscutter.game.inventory.ItemType; +import emu.grasscutter.game.player.Player; import java.util.List; @@ -16,7 +16,7 @@ import java.util.List; public final class ClearCommand implements CommandHandler { @Override - public void execute(GenshinPlayer sender, List args) { + public void execute(Player sender, List args) { int target; if (sender == null) { CommandHandler.sendMessage(null, "Run this command in-game."); @@ -27,7 +27,7 @@ public final class ClearCommand implements CommandHandler { Inventory playerInventory = sender.getInventory(); try { target = Integer.parseInt(args.get(0)); - GenshinPlayer targetPlayer = Grasscutter.getGameServer().getPlayerByUid(target); + Player targetPlayer = Grasscutter.getGameServer().getPlayerByUid(target); if (targetPlayer == null) { target = sender.getUid(); } else { @@ -92,7 +92,7 @@ public final class ClearCommand implements CommandHandler { return; } - GenshinPlayer targetPlayer = Grasscutter.getGameServer().getPlayerByUid(target); + Player targetPlayer = Grasscutter.getGameServer().getPlayerByUid(target); if (targetPlayer == null) { CommandHandler.sendMessage(sender, "Player not found."); return; diff --git a/src/main/java/emu/grasscutter/command/commands/DropCommand.java b/src/main/java/emu/grasscutter/command/commands/DropCommand.java index e2d7644a0..38a5fba4a 100644 --- a/src/main/java/emu/grasscutter/command/commands/DropCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/DropCommand.java @@ -2,10 +2,10 @@ package emu.grasscutter.command.commands; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; -import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.GameData; import emu.grasscutter.data.def.ItemData; -import emu.grasscutter.game.GenshinPlayer; import emu.grasscutter.game.entity.EntityItem; +import emu.grasscutter.game.player.Player; import emu.grasscutter.utils.Position; import java.util.List; @@ -15,7 +15,7 @@ import java.util.List; public final class DropCommand implements CommandHandler { @Override - public void execute(GenshinPlayer sender, List args) { + public void execute(Player sender, List args) { if (sender == null) { CommandHandler.sendMessage(null, "Run this command in-game."); return; @@ -31,7 +31,7 @@ public final class DropCommand implements CommandHandler { int amount = 1; if (args.size() > 1) amount = Integer.parseInt(args.get(1)); - ItemData itemData = GenshinData.getItemDataMap().get(item); + ItemData itemData = GameData.getItemDataMap().get(item); if (itemData == null) { CommandHandler.sendMessage(sender, "Invalid item id."); return; diff --git a/src/main/java/emu/grasscutter/command/commands/GiveAllCommand.java b/src/main/java/emu/grasscutter/command/commands/GiveAllCommand.java new file mode 100644 index 000000000..c81578b43 --- /dev/null +++ b/src/main/java/emu/grasscutter/command/commands/GiveAllCommand.java @@ -0,0 +1,189 @@ +package emu.grasscutter.command.commands; + +import emu.grasscutter.Grasscutter; +import emu.grasscutter.command.Command; +import emu.grasscutter.command.CommandHandler; +import emu.grasscutter.data.GameData; +import emu.grasscutter.data.def.AvatarData; +import emu.grasscutter.data.def.ItemData; +import emu.grasscutter.game.avatar.Avatar; +import emu.grasscutter.game.inventory.GameItem; +import emu.grasscutter.game.inventory.ItemType; +import emu.grasscutter.game.player.Player; + +import java.util.*; + +@Command(label = "giveall", usage = "giveall [player] ", + description = "Gives all items", aliases = {"givea"}, permission = "player.giveall", threading = true) +public class GiveAllCommand implements CommandHandler { + + @Override + public void execute(Player sender, List args) { + int target, amount = 99999; + + switch (args.size()) { + case 0: // *no args* + if (sender == null) { + CommandHandler.sendMessage(null, "This usage can only be run in-game"); + return; + } + target = sender.getUid(); + break; + + case 1: // [player] + try { + target = Integer.parseInt(args.get(0)); + if (Grasscutter.getGameServer().getPlayerByUid(target) == null) { + CommandHandler.sendMessage(sender, "Invalid player ID."); + return; + } + }catch (NumberFormatException ignored){ + CommandHandler.sendMessage(sender, "Invalid player ID."); + return; + } + break; + + case 2: // [player] [amount] + try { + target = Integer.parseInt(args.get(0)); + if (Grasscutter.getGameServer().getPlayerByUid(target) == null) { + target = sender.getUid(); + amount = Integer.parseInt(args.get(0)); + } else { + amount = Integer.parseInt(args.get(1)); + } + } catch (NumberFormatException ignored) { + CommandHandler.sendMessage(sender, "Invalid amount or player ID."); + return; + } + break; + + default: // invalid + CommandHandler.sendMessage(null, "Usage: giveall [player] "); + return; + } + + Player targetPlayer = Grasscutter.getGameServer().getPlayerByUid(target); + if (targetPlayer == null) { + CommandHandler.sendMessage(sender, "Player not found."); + return; + } + + this.giveAllItems(targetPlayer, amount); + CommandHandler.sendMessage(sender, "Giving all items done"); + } + + public void giveAllItems(Player player, int amount) { + CommandHandler.sendMessage(player, "Giving all items..."); + + for (AvatarData avatarData: GameData.getAvatarDataMap().values()) { + //Exclude test avatar + if (isTestAvatar(avatarData.getId())) continue; + + Avatar avatar = new Avatar(avatarData); + avatar.setLevel(90); + avatar.setPromoteLevel(6); + for (int i = 1; i <= 6; ++i) { + avatar.getTalentIdList().add((avatar.getAvatarId() - 10000000) * 10 + i); + } + // This will handle stats and talents + avatar.recalcStats(); + player.addAvatar(avatar); + } + + //some test items + List itemList = new ArrayList<>(); + for (ItemData itemdata: GameData.getItemDataMap().values()) { + //Exclude test item + if (isTestItem(itemdata.getId())) continue; + + if (itemdata.isEquip()) { + for (int i = 0; i < 10; ++i) { + GameItem item = new GameItem(itemdata); + if (itemdata.getItemType() == ItemType.ITEM_WEAPON) { + item.setLevel(90); + item.setPromoteLevel(6); + item.setRefinement(4); + } + itemList.add(item); + } + } + else { + GameItem item = new GameItem(itemdata); + item.setCount(amount); + itemList.add(item); + } + } + int packetNum = 20; + int itemLength = itemList.size(); + int number = itemLength / packetNum; + int remainder = itemLength % packetNum; + int offset = 0; + for (int i = 0; i < packetNum; ++i) { + if (remainder > 0) { + player.getInventory().addItems(itemList.subList(i * number + offset, (i + 1) * number + offset + 1)); + --remainder; + ++offset; + } + else { + player.getInventory().addItems(itemList.subList(i * number + offset, (i + 1) * number + offset)); + } + } + } + + public boolean isTestAvatar(int avatarId) { + return avatarId < 10000002 || avatarId >= 11000000; + } + + public boolean isTestItem(int itemId) { + for (Range range: testItemRanges) { + if (range.check(itemId)) { + return true; + } + } + + if (testItemsList.contains(itemId)) { + return true; + } + + return false; + } + + static class Range { + private int min; + private int max; + + public Range(int min, int max) { + if(min > max){ + min ^= max; + max ^= min; + min ^= max; + } + this.min = min; + this.max = max; + } + + public boolean check(int value) { + return value >= this.min && value <= this.max; + } + } + + private static final Range[] testItemRanges = new Range[] { + new Range(106, 139), + new Range(1000, 1099), + new Range(2001, 2008), + new Range(2017, 2029), + // new Range(108001, 108387) //food + }; + + private static final Integer[] testItemsIds = new Integer[] { + 210, 211, 314, 315, 317, 1005, 1007, 1105, 1107, 1201, 1202, 2800, + 100001, 100002, 100244, 100305, 100312, 100313, 101212, 11411, 11506, 11507, 11508, 12505, + 12506, 12508, 12509, 13503, 13506, 14411, 14503, 14505, 14508, 15411, 15504, 15505, + 15506, 15508, 20001, 10002, 10003, 10004, 10005, 10006, 10008 //9 + }; + + private static final Collection testItemsList = Arrays.asList(testItemsIds); + +} + diff --git a/src/main/java/emu/grasscutter/command/commands/GiveCharCommand.java b/src/main/java/emu/grasscutter/command/commands/GiveCharCommand.java index bfe0f51c0..a15a9b95c 100644 --- a/src/main/java/emu/grasscutter/command/commands/GiveCharCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/GiveCharCommand.java @@ -3,10 +3,10 @@ package emu.grasscutter.command.commands; import emu.grasscutter.Grasscutter; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; -import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.GameData; import emu.grasscutter.data.def.AvatarData; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.game.avatar.Avatar; +import emu.grasscutter.game.player.Player; import java.util.List; @@ -15,7 +15,7 @@ import java.util.List; public final class GiveCharCommand implements CommandHandler { @Override - public void execute(GenshinPlayer sender, List args) { + public void execute(Player sender, List args) { int target, avatarId, level = 1, ascension; if (sender == null && args.size() < 2) { @@ -61,13 +61,13 @@ public final class GiveCharCommand implements CommandHandler { break; } - GenshinPlayer targetPlayer = Grasscutter.getGameServer().getPlayerByUid(target); + Player targetPlayer = Grasscutter.getGameServer().getPlayerByUid(target); if (targetPlayer == null) { CommandHandler.sendMessage(sender, "Player not found."); return; } - AvatarData avatarData = GenshinData.getAvatarDataMap().get(avatarId); + AvatarData avatarData = GameData.getAvatarDataMap().get(avatarId); if (avatarData == null) { CommandHandler.sendMessage(sender, "Invalid avatar id."); return; @@ -80,7 +80,7 @@ public final class GiveCharCommand implements CommandHandler { ascension = (int) Math.ceil(level / 10f) - 3; } - GenshinAvatar avatar = new GenshinAvatar(avatarId); + Avatar avatar = new Avatar(avatarId); avatar.setLevel(level); avatar.setPromoteLevel(ascension); diff --git a/src/main/java/emu/grasscutter/command/commands/GiveCommand.java b/src/main/java/emu/grasscutter/command/commands/GiveCommand.java index 2ecdac1f5..4c9052a3e 100644 --- a/src/main/java/emu/grasscutter/command/commands/GiveCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/GiveCommand.java @@ -3,10 +3,10 @@ package emu.grasscutter.command.commands; import emu.grasscutter.Grasscutter; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; -import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.GameData; import emu.grasscutter.data.def.ItemData; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.inventory.GenshinItem; +import emu.grasscutter.game.inventory.GameItem; +import emu.grasscutter.game.player.Player; import emu.grasscutter.game.props.ActionReason; import emu.grasscutter.server.packet.send.PacketItemAddHintNotify; @@ -18,7 +18,7 @@ import java.util.List; public final class GiveCommand implements CommandHandler { @Override - public void execute(GenshinPlayer sender, List args) { + public void execute(Player sender, List args) { int target, item, lvl, amount = 1; if (sender == null && args.size() < 2) { CommandHandler.sendMessage(null, "Usage: give [amount] [level]"); @@ -99,14 +99,14 @@ public final class GiveCommand implements CommandHandler { break; } - GenshinPlayer targetPlayer = Grasscutter.getGameServer().getPlayerByUid(target); + Player targetPlayer = Grasscutter.getGameServer().getPlayerByUid(target); if (targetPlayer == null) { CommandHandler.sendMessage(sender, "Player not found."); return; } - ItemData itemData = GenshinData.getItemDataMap().get(item); + ItemData itemData = GameData.getItemDataMap().get(item); if (itemData == null) { CommandHandler.sendMessage(sender, "Invalid item id."); return; @@ -121,11 +121,11 @@ public final class GiveCommand implements CommandHandler { String.format("Given %s with level %s %s times to %s", item, lvl, amount, target)); } - private void item(GenshinPlayer player, ItemData itemData, int amount, int lvl) { + private void item(Player player, ItemData itemData, int amount, int lvl) { if (itemData.isEquip()) { - List items = new LinkedList<>(); + List items = new LinkedList<>(); for (int i = 0; i < amount; i++) { - GenshinItem item = new GenshinItem(itemData); + GameItem item = new GameItem(itemData); item.setCount(amount); item.setLevel(lvl); item.setPromoteLevel(0); @@ -144,13 +144,11 @@ public final class GiveCommand implements CommandHandler { } items.add(item); } - player.getInventory().addItems(items); - player.sendPacket(new PacketItemAddHintNotify(items, ActionReason.SubfieldDrop)); + player.getInventory().addItems(items, ActionReason.SubfieldDrop); } else { - GenshinItem genshinItem = new GenshinItem(itemData); - genshinItem.setCount(amount); - player.getInventory().addItem(genshinItem); - player.sendPacket(new PacketItemAddHintNotify(genshinItem, ActionReason.SubfieldDrop)); + GameItem item = new GameItem(itemData); + item.setCount(amount); + player.getInventory().addItem(item, ActionReason.SubfieldDrop); } } } diff --git a/src/main/java/emu/grasscutter/command/commands/GodModeCommand.java b/src/main/java/emu/grasscutter/command/commands/GodModeCommand.java index 0b4139ac1..9229b5845 100644 --- a/src/main/java/emu/grasscutter/command/commands/GodModeCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/GodModeCommand.java @@ -3,7 +3,7 @@ package emu.grasscutter.command.commands; import emu.grasscutter.Grasscutter; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; -import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.player.Player; import java.util.List; @@ -12,7 +12,7 @@ import java.util.List; public final class GodModeCommand implements CommandHandler { @Override - public void execute(GenshinPlayer sender, List args) { + public void execute(Player sender, List args) { if (sender == null) { CommandHandler.sendMessage(null, "Run this command in-game."); return; // TODO: toggle player's godmode statue from console or other players @@ -32,7 +32,7 @@ public final class GodModeCommand implements CommandHandler { } else { target = sender.getUid(); } - GenshinPlayer targetPlayer = Grasscutter.getGameServer().getPlayerByUid(target); + Player targetPlayer = Grasscutter.getGameServer().getPlayerByUid(target); if (targetPlayer == null) { CommandHandler.sendMessage(sender, "Player not found."); return; diff --git a/src/main/java/emu/grasscutter/command/commands/HealCommand.java b/src/main/java/emu/grasscutter/command/commands/HealCommand.java index 27511e527..6c58fa5c3 100644 --- a/src/main/java/emu/grasscutter/command/commands/HealCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/HealCommand.java @@ -2,7 +2,7 @@ package emu.grasscutter.command.commands; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; -import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.player.Player; import emu.grasscutter.game.props.FightProperty; import emu.grasscutter.server.packet.send.PacketAvatarFightPropUpdateNotify; import emu.grasscutter.server.packet.send.PacketAvatarLifeStateChangeNotify; @@ -13,7 +13,7 @@ import java.util.List; description = "Heal all characters in your current team.", permission = "player.heal") public final class HealCommand implements CommandHandler { @Override - public void execute(GenshinPlayer sender, List args) { + public void execute(Player sender, List args) { if (sender == null) { CommandHandler.sendMessage(null, "Run this command in-game."); return; diff --git a/src/main/java/emu/grasscutter/command/commands/HelpCommand.java b/src/main/java/emu/grasscutter/command/commands/HelpCommand.java index abe78e7d3..d8c5b610e 100644 --- a/src/main/java/emu/grasscutter/command/commands/HelpCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/HelpCommand.java @@ -3,7 +3,7 @@ package emu.grasscutter.command.commands; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; import emu.grasscutter.command.CommandMap; -import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.player.Player; import java.util.*; @@ -12,7 +12,7 @@ import java.util.*; public final class HelpCommand implements CommandHandler { @Override - public void execute(GenshinPlayer player, List args) { + public void execute(Player player, List args) { if (args.size() < 1) { HashMap handlers = CommandMap.getInstance().getHandlers(); List annotations = new ArrayList<>(); @@ -53,7 +53,7 @@ public final class HelpCommand implements CommandHandler { } } - void SendAllHelpMessage(GenshinPlayer player, List annotations) { + void SendAllHelpMessage(Player player, List annotations) { if (player == null) { StringBuilder builder = new StringBuilder("\nAvailable commands:\n"); annotations.forEach(annotation -> { diff --git a/src/main/java/emu/grasscutter/command/commands/KickCommand.java b/src/main/java/emu/grasscutter/command/commands/KickCommand.java index 61e9d759b..60fb02b5f 100644 --- a/src/main/java/emu/grasscutter/command/commands/KickCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/KickCommand.java @@ -3,7 +3,7 @@ package emu.grasscutter.command.commands; import emu.grasscutter.Grasscutter; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; -import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.player.Player; import java.util.List; @@ -12,10 +12,10 @@ import java.util.List; public final class KickCommand implements CommandHandler { @Override - public void execute(GenshinPlayer sender, List args) { + public void execute(Player sender, List args) { int target = Integer.parseInt(args.get(0)); - GenshinPlayer targetPlayer = Grasscutter.getGameServer().getPlayerByUid(target); + Player targetPlayer = Grasscutter.getGameServer().getPlayerByUid(target); if (targetPlayer == null) { CommandHandler.sendMessage(sender, "Player not found."); return; diff --git a/src/main/java/emu/grasscutter/command/commands/KillAllCommand.java b/src/main/java/emu/grasscutter/command/commands/KillAllCommand.java index 436691b57..3e2466686 100644 --- a/src/main/java/emu/grasscutter/command/commands/KillAllCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/KillAllCommand.java @@ -3,9 +3,9 @@ package emu.grasscutter.command.commands; import emu.grasscutter.Grasscutter; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.GenshinScene; import emu.grasscutter.game.entity.EntityMonster; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.game.world.Scene; import java.util.List; @@ -14,9 +14,9 @@ import java.util.List; public final class KillAllCommand implements CommandHandler { @Override - public void execute(GenshinPlayer sender, List args) { - GenshinScene scene; - GenshinPlayer genshinPlayer; + public void execute(Player sender, List args) { + Scene mainScene; + Player targetPlayer; try { switch (args.size()) { @@ -25,38 +25,38 @@ public final class KillAllCommand implements CommandHandler { CommandHandler.sendMessage(null, "Usage: killall [playerUid] [sceneId]"); return; } - scene = sender.getScene(); + mainScene = sender.getScene(); break; case 1: // [playerUid] - genshinPlayer = Grasscutter.getGameServer().getPlayerByUid(Integer.parseInt(args.get(0))); - if (genshinPlayer == null) { + targetPlayer = Grasscutter.getGameServer().getPlayerByUid(Integer.parseInt(args.get(0))); + if (targetPlayer == null) { CommandHandler.sendMessage(sender, "Player not found or offline."); return; } - scene = genshinPlayer.getScene(); + mainScene = targetPlayer.getScene(); break; case 2: // [playerUid] [sceneId] - genshinPlayer = Grasscutter.getGameServer().getPlayerByUid(Integer.parseInt(args.get(0))); - if (genshinPlayer == null) { + targetPlayer = Grasscutter.getGameServer().getPlayerByUid(Integer.parseInt(args.get(0))); + if (targetPlayer == null) { CommandHandler.sendMessage(sender, "Player not found or offline."); return; } - GenshinScene genshinScene = sender.getWorld().getSceneById(Integer.parseInt(args.get(1))); - if (genshinScene == null) { + Scene scene = sender.getWorld().getSceneById(Integer.parseInt(args.get(1))); + if (scene == null) { CommandHandler.sendMessage(sender, "Scene not found in player world"); return; } - scene = genshinScene; + mainScene = scene; break; default: CommandHandler.sendMessage(sender, "Usage: killall [playerUid] [sceneId]"); return; } - scene.getEntities().values().stream() + mainScene.getEntities().values().stream() .filter(entity -> entity instanceof EntityMonster) - .forEach(entity -> scene.killEntity(entity, 0)); - CommandHandler.sendMessage(sender, "Killing all monsters in scene " + scene.getId()); + .forEach(entity -> mainScene.killEntity(entity, 0)); + CommandHandler.sendMessage(sender, "Killing all monsters in scene " + mainScene.getId()); } catch (NumberFormatException ignored) { CommandHandler.sendMessage(sender, "Invalid arguments."); } diff --git a/src/main/java/emu/grasscutter/command/commands/KillCharacterCommand.java b/src/main/java/emu/grasscutter/command/commands/KillCharacterCommand.java index beaa4f959..2d95683bb 100644 --- a/src/main/java/emu/grasscutter/command/commands/KillCharacterCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/KillCharacterCommand.java @@ -3,8 +3,8 @@ package emu.grasscutter.command.commands; import emu.grasscutter.Grasscutter; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; -import emu.grasscutter.game.GenshinPlayer; import emu.grasscutter.game.entity.EntityAvatar; +import emu.grasscutter.game.player.Player; import emu.grasscutter.game.props.FightProperty; import emu.grasscutter.game.props.LifeState; import emu.grasscutter.server.packet.send.PacketEntityFightPropUpdateNotify; @@ -17,7 +17,7 @@ import java.util.List; public final class KillCharacterCommand implements CommandHandler { @Override - public void execute(GenshinPlayer sender, List args) { + public void execute(Player sender, List args) { int target; if (sender == null) { // from console @@ -48,7 +48,7 @@ public final class KillCharacterCommand implements CommandHandler { } } - GenshinPlayer targetPlayer = Grasscutter.getGameServer().getPlayerByUid(target); + Player targetPlayer = Grasscutter.getGameServer().getPlayerByUid(target); if (targetPlayer == null) { CommandHandler.sendMessage(sender, "Player not found or offline."); return; diff --git a/src/main/java/emu/grasscutter/command/commands/ListCommand.java b/src/main/java/emu/grasscutter/command/commands/ListCommand.java index 1fb7f0eed..99abd7ac7 100644 --- a/src/main/java/emu/grasscutter/command/commands/ListCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/ListCommand.java @@ -3,7 +3,7 @@ package emu.grasscutter.command.commands; import emu.grasscutter.Grasscutter; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; -import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.player.Player; import java.util.List; import java.util.Map; @@ -12,8 +12,8 @@ import java.util.Map; public final class ListCommand implements CommandHandler { @Override - public void execute(GenshinPlayer sender, List args) { - Map playersMap = Grasscutter.getGameServer().getPlayers(); + public void execute(Player sender, List args) { + Map playersMap = Grasscutter.getGameServer().getPlayers(); CommandHandler.sendMessage(sender, String.format("There are %s player(s) online:", playersMap.size())); diff --git a/src/main/java/emu/grasscutter/command/commands/PermissionCommand.java b/src/main/java/emu/grasscutter/command/commands/PermissionCommand.java index 7218bf2cd..d048041de 100644 --- a/src/main/java/emu/grasscutter/command/commands/PermissionCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/PermissionCommand.java @@ -4,7 +4,7 @@ import emu.grasscutter.Grasscutter; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; import emu.grasscutter.game.Account; -import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.player.Player; import java.util.List; @@ -13,7 +13,7 @@ import java.util.List; public final class PermissionCommand implements CommandHandler { @Override - public void execute(GenshinPlayer sender, List args) { + public void execute(Player sender, List args) { if (args.size() < 3) { CommandHandler.sendMessage(sender, "Usage: permission "); return; diff --git a/src/main/java/emu/grasscutter/command/commands/PositionCommand.java b/src/main/java/emu/grasscutter/command/commands/PositionCommand.java index 8bdf3c754..434250171 100644 --- a/src/main/java/emu/grasscutter/command/commands/PositionCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/PositionCommand.java @@ -2,7 +2,7 @@ package emu.grasscutter.command.commands; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; -import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.player.Player; import java.util.List; @@ -11,7 +11,7 @@ import java.util.List; public final class PositionCommand implements CommandHandler { @Override - public void execute(GenshinPlayer sender, List args) { + public void execute(Player sender, List args) { if (sender == null) { CommandHandler.sendMessage(null, "Run this command in-game."); return; diff --git a/src/main/java/emu/grasscutter/command/commands/ReloadCommand.java b/src/main/java/emu/grasscutter/command/commands/ReloadCommand.java index b145aaf94..26dbb903b 100644 --- a/src/main/java/emu/grasscutter/command/commands/ReloadCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/ReloadCommand.java @@ -3,7 +3,7 @@ package emu.grasscutter.command.commands; import emu.grasscutter.Grasscutter; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; -import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.player.Player; import java.util.List; @@ -12,7 +12,7 @@ import java.util.List; public final class ReloadCommand implements CommandHandler { @Override - public void execute(GenshinPlayer sender, List args) { + public void execute(Player sender, List args) { CommandHandler.sendMessage(sender, "Reloading config."); Grasscutter.loadConfig(); Grasscutter.getGameServer().getGachaManager().load(); diff --git a/src/main/java/emu/grasscutter/command/commands/ResetConstCommand.java b/src/main/java/emu/grasscutter/command/commands/ResetConstCommand.java index 77f16f9b8..657d76718 100644 --- a/src/main/java/emu/grasscutter/command/commands/ResetConstCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/ResetConstCommand.java @@ -2,9 +2,9 @@ package emu.grasscutter.command.commands; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.game.avatar.Avatar; import emu.grasscutter.game.entity.EntityAvatar; +import emu.grasscutter.game.player.Player; import java.util.List; @@ -14,7 +14,7 @@ import java.util.List; public final class ResetConstCommand implements CommandHandler { @Override - public void execute(GenshinPlayer sender, List args) { + public void execute(Player sender, List args) { if (sender == null) { CommandHandler.sendMessage(null, "Run this command in-game."); return; @@ -29,14 +29,14 @@ public final class ResetConstCommand implements CommandHandler { return; } - GenshinAvatar avatar = entity.getAvatar(); + Avatar avatar = entity.getAvatar(); this.resetConstellation(avatar); sender.dropMessage("Constellations for " + avatar.getAvatarData().getName() + " have been reset. Please relog to see changes."); } } - private void resetConstellation(GenshinAvatar avatar) { + private void resetConstellation(Avatar avatar) { avatar.getTalentIdList().clear(); avatar.setCoreProudSkillLevel(0); avatar.recalcStats(); diff --git a/src/main/java/emu/grasscutter/command/commands/RestartCommand.java b/src/main/java/emu/grasscutter/command/commands/RestartCommand.java index cf40fa9bd..0b73ba861 100644 --- a/src/main/java/emu/grasscutter/command/commands/RestartCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/RestartCommand.java @@ -2,7 +2,7 @@ package emu.grasscutter.command.commands; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; -import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.player.Player; import java.util.List; @@ -10,7 +10,7 @@ import java.util.List; public final class RestartCommand implements CommandHandler { @Override - public void execute(GenshinPlayer sender, List args) { + public void execute(Player sender, List args) { sender.getSession().close(); } } diff --git a/src/main/java/emu/grasscutter/command/commands/SendMailCommand.java b/src/main/java/emu/grasscutter/command/commands/SendMailCommand.java new file mode 100644 index 000000000..35cedab9a --- /dev/null +++ b/src/main/java/emu/grasscutter/command/commands/SendMailCommand.java @@ -0,0 +1,210 @@ +package emu.grasscutter.command.commands; + +import emu.grasscutter.Grasscutter; +import emu.grasscutter.command.Command; +import emu.grasscutter.command.CommandHandler; +import emu.grasscutter.database.DatabaseHelper; +import emu.grasscutter.game.mail.Mail; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.server.packet.send.PacketMailChangeNotify; + +import java.time.Instant; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Locale; + +@Command(label = "sendmail", usage = "sendmail [templateId]", + description = "Sends mail to the specified user. The usage of this command changes based on it's composition state.", permission = "server.sendmail") +public class SendMailCommand implements CommandHandler { + + // TODO: You should be able to do /sendmail and then just send subsequent messages until you finish + // However, due to the current nature of the command system, I don't think this is possible without rewriting + // the command system (again). For now this will do + + // Key = User that is constructing the mail. + private static HashMap mailBeingConstructed = new HashMap(); + + // Yes this is awful and I hate it. + @Override + public void execute(Player sender, List args) { + int senderId; + if(sender != null) { + senderId = sender.getUid(); + } else { + senderId = -1; + } + + if (!mailBeingConstructed.containsKey(senderId)) { + switch (args.size()) { + case 1 -> { + MailBuilder mailBuilder; + switch (args.get(0).toLowerCase()) { + case "help" -> { + CommandHandler.sendMessage(sender, this.getClass().getAnnotation(Command.class).description() + "\nUsage: " + this.getClass().getAnnotation(Command.class).usage()); + return; + } + case "all" -> mailBuilder = new MailBuilder(true, new Mail()); + default -> { + if (DatabaseHelper.getPlayerById(Integer.parseInt(args.get(0))) != null) { + mailBuilder = new MailBuilder(Integer.parseInt(args.get(0)), new Mail()); + break; + } else { + CommandHandler.sendMessage(sender, "The user with an id of '" + args.get(0) + "' does not exist"); + return; + } + } + } + mailBeingConstructed.put(senderId, mailBuilder); + CommandHandler.sendMessage(sender, "Starting composition of message.\nPlease use `/sendmail ` to continue.\nYou can use `/sendmail stop` at any time"); + } + case 2 -> CommandHandler.sendMessage(sender, "Mail templates coming soon implemented..."); + default -> CommandHandler.sendMessage(sender, "Invalid arguments.\nUsage `/sendmail <userId|all|help> [templateId]`"); + } + } else { + MailBuilder mailBuilder = mailBeingConstructed.get(senderId); + + if (args.size() >= 1) { + switch (args.get(0).toLowerCase()) { + case "stop" -> { + mailBeingConstructed.remove(senderId); + CommandHandler.sendMessage(sender, "Message sending cancelled"); + return; + } + case "finish" -> { + if (mailBuilder.constructionStage == 3) { + if (mailBuilder.sendToAll == false) { + Grasscutter.getGameServer().getPlayerByUid(mailBuilder.recipient, true).sendMail(mailBuilder.mail); + CommandHandler.sendMessage(sender, "Message sent to user " + mailBuilder.recipient + "!"); + } else { + for (Player player : DatabaseHelper.getAllPlayers()) { + Grasscutter.getGameServer().getPlayerByUid(player.getUid(), true).sendMail(mailBuilder.mail); + } + CommandHandler.sendMessage(sender, "Message sent to all users!"); + } + mailBeingConstructed.remove(senderId); + } else { + CommandHandler.sendMessage(sender, "Message composition not at final stage.\nPlease use `/sendmail " + getConstructionArgs(mailBuilder.constructionStage) + "` or `/sendmail stop` to cancel"); + } + return; + } + case "help" -> { + CommandHandler.sendMessage(sender, "Please use `/sendmail " + getConstructionArgs(mailBuilder.constructionStage) + "`"); + return; + } + default -> { + switch (mailBuilder.constructionStage) { + case 0 -> { + String title = String.join(" ", args.subList(0, args.size())); + mailBuilder.mail.mailContent.title = title; + CommandHandler.sendMessage(sender, "Message title set as '" + title + "'.\nUse '/sendmail <content>' to continue."); + mailBuilder.constructionStage++; + } + case 1 -> { + String contents = String.join(" ", args.subList(0, args.size())); + mailBuilder.mail.mailContent.content = contents; + CommandHandler.sendMessage(sender, "Message contents set as '" + contents + "'.\nUse '/sendmail <sender>' to continue."); + mailBuilder.constructionStage++; + } + case 2 -> { + String msgSender = String.join(" ", args.subList(0, args.size())); + mailBuilder.mail.mailContent.sender = msgSender; + CommandHandler.sendMessage(sender, "Message sender set as '" + msgSender + "'.\nUse '/sendmail <itemId|itemName|finish> [amount] [level]' to continue."); + mailBuilder.constructionStage++; + } + case 3 -> { + // Literally just copy-pasted from the give command lol. + int item, lvl, amount = 1; + switch (args.size()) { + default -> { // *No args* + CommandHandler.sendMessage(sender, "Usage: give [player] <itemId|itemName> [amount]"); + return; + } + case 1 -> { // <itemId|itemName> + try { + item = Integer.parseInt(args.get(0)); + lvl = 1; + } catch (NumberFormatException ignored) { + // TODO: Parse from item name using GM Handbook. + CommandHandler.sendMessage(sender, "Invalid item id."); + return; + } + } + case 2 -> { // <itemId|itemName> [amount] + lvl = 1; + item = Integer.parseInt(args.get(0)); + amount = Integer.parseInt(args.get(1)); + } + case 3 -> { // <itemId|itemName> [amount] [level] + try { + item = Integer.parseInt(args.get(0)); + amount = Integer.parseInt(args.get(1)); + lvl = Integer.parseInt(args.get(2)); + + } catch (NumberFormatException ignored) { + // TODO: Parse from item name using GM Handbook. + CommandHandler.sendMessage(sender, "Invalid item or player ID."); + return; + } + } + } + mailBuilder.mail.itemList.add(new Mail.MailItem(item, amount, lvl)); + CommandHandler.sendMessage(sender, String.format("Attached %s of %s (level %s) to the message.\nContinue adding more items or use `/sendmail finish` to send the message.", amount, item, lvl)); + } + } + } + } + } else { + CommandHandler.sendMessage(sender, "Invalid arguments \n Please use `/sendmail " + getConstructionArgs(mailBuilder.constructionStage)); + } + } + } + + private String getConstructionArgs(int stage) { + switch (stage) { + case 0 -> { + return "<title>"; + } + case 1 -> { + return "<message>"; + } + case 2 -> { + return "<sender>"; + + } + case 3 -> { + return "<itemId|itemName|finish> [amount] [level]"; + } + default -> { + Thread.dumpStack(); + return "ERROR: invalid construction stage " + stage + ". Check console for stacktrace."; + } + } + } + + public static class MailBuilder { + public int recipient; + public boolean sendToAll; + public int constructionStage; + public Mail mail; + + public MailBuilder(int recipient, Mail mail) { + this.recipient = recipient; + this.sendToAll = false; + this.constructionStage = 0; + this.mail = mail; + } + + public MailBuilder(boolean sendToAll, Mail mail) { + if (sendToAll) { + this.recipient = 0; + this.sendToAll = true; + this.constructionStage = 0; + this.mail = mail; + } else { + Grasscutter.getLogger().error("Please use MailBuilder(int, mail) when not sending to all"); + Thread.dumpStack(); + } + } + } +} diff --git a/src/main/java/emu/grasscutter/command/commands/SendMessageCommand.java b/src/main/java/emu/grasscutter/command/commands/SendMessageCommand.java index 061009c19..a86e1a218 100644 --- a/src/main/java/emu/grasscutter/command/commands/SendMessageCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/SendMessageCommand.java @@ -3,7 +3,7 @@ package emu.grasscutter.command.commands; import emu.grasscutter.Grasscutter; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; -import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.player.Player; import java.util.List; @@ -12,7 +12,7 @@ import java.util.List; public final class SendMessageCommand implements CommandHandler { @Override - public void execute(GenshinPlayer sender, List<String> args) { + public void execute(Player sender, List<String> args) { if (args.size() < 2) { CommandHandler.sendMessage(null, "Usage: sendmessage <player> <message>"); return; @@ -22,7 +22,7 @@ public final class SendMessageCommand implements CommandHandler { int target = Integer.parseInt(args.get(0)); String message = String.join(" ", args.subList(1, args.size())); - GenshinPlayer targetPlayer = Grasscutter.getGameServer().getPlayerByUid(target); + Player targetPlayer = Grasscutter.getGameServer().getPlayerByUid(target); if (targetPlayer == null) { CommandHandler.sendMessage(sender, "Player not found."); return; diff --git a/src/main/java/emu/grasscutter/command/commands/SetFetterLevelCommand.java b/src/main/java/emu/grasscutter/command/commands/SetFetterLevelCommand.java index 565a480dc..1d7eefc10 100644 --- a/src/main/java/emu/grasscutter/command/commands/SetFetterLevelCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/SetFetterLevelCommand.java @@ -4,9 +4,9 @@ import java.util.List; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; -import emu.grasscutter.data.GenshinData; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.data.GameData; +import emu.grasscutter.game.avatar.Avatar; +import emu.grasscutter.game.player.Player; import emu.grasscutter.server.packet.send.PacketAvatarFetterDataNotify; @Command(label = "setfetterlevel", usage = "setfetterlevel <level>", @@ -15,7 +15,7 @@ import emu.grasscutter.server.packet.send.PacketAvatarFetterDataNotify; public final class SetFetterLevelCommand implements CommandHandler { @Override - public void execute(GenshinPlayer sender, List<String> args) { + public void execute(Player sender, List<String> args) { if (sender == null) { CommandHandler.sendMessage(null, "Run this command in-game."); return; @@ -32,11 +32,11 @@ public final class SetFetterLevelCommand implements CommandHandler { CommandHandler.sendMessage(sender, "Fetter level must be between 0 and 10."); return; } - GenshinAvatar avatar = sender.getTeamManager().getCurrentAvatarEntity().getAvatar(); + Avatar avatar = sender.getTeamManager().getCurrentAvatarEntity().getAvatar(); avatar.setFetterLevel(fetterLevel); if (fetterLevel != 10) { - avatar.setFetterExp(GenshinData.getAvatarFetterLevelDataMap().get(fetterLevel).getExp()); + avatar.setFetterExp(GameData.getAvatarFetterLevelDataMap().get(fetterLevel).getExp()); } avatar.save(); diff --git a/src/main/java/emu/grasscutter/command/commands/SetStatsCommand.java b/src/main/java/emu/grasscutter/command/commands/SetStatsCommand.java index d7d27a24a..6e18573bb 100644 --- a/src/main/java/emu/grasscutter/command/commands/SetStatsCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/SetStatsCommand.java @@ -2,8 +2,8 @@ package emu.grasscutter.command.commands; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; -import emu.grasscutter.game.GenshinPlayer; import emu.grasscutter.game.entity.EntityAvatar; +import emu.grasscutter.game.player.Player; import emu.grasscutter.game.props.FightProperty; import emu.grasscutter.server.packet.send.PacketEntityFightPropUpdateNotify; @@ -14,7 +14,7 @@ import java.util.List; public final class SetStatsCommand implements CommandHandler { @Override - public void execute(GenshinPlayer sender, List<String> args) { + public void execute(Player sender, List<String> args) { if (sender == null) { CommandHandler.sendMessage(null, "Run this command in-game."); return; diff --git a/src/main/java/emu/grasscutter/command/commands/SetWorldLevelCommand.java b/src/main/java/emu/grasscutter/command/commands/SetWorldLevelCommand.java index 146837523..0ffd015f8 100644 --- a/src/main/java/emu/grasscutter/command/commands/SetWorldLevelCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/SetWorldLevelCommand.java @@ -2,7 +2,7 @@ package emu.grasscutter.command.commands; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; -import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.player.Player; import emu.grasscutter.game.props.PlayerProperty; import java.util.List; @@ -13,7 +13,7 @@ import java.util.List; public final class SetWorldLevelCommand implements CommandHandler { @Override - public void execute(GenshinPlayer sender, List<String> args) { + public void execute(Player sender, List<String> args) { if (sender == null) { CommandHandler.sendMessage(null, "Run this command in-game."); return; // TODO: set player's world level from console or other players @@ -29,7 +29,7 @@ public final class SetWorldLevelCommand implements CommandHandler { // Set in both world and player props sender.getWorld().setWorldLevel(level); - sender.setProperty(PlayerProperty.PROP_PLAYER_WORLD_LEVEL, level); + sender.setWorldLevel(level); sender.dropMessage("World level set to " + level + "."); } catch (NumberFormatException ignored) { diff --git a/src/main/java/emu/grasscutter/command/commands/SpawnCommand.java b/src/main/java/emu/grasscutter/command/commands/SpawnCommand.java index 969872119..efb4b231b 100644 --- a/src/main/java/emu/grasscutter/command/commands/SpawnCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/SpawnCommand.java @@ -2,10 +2,10 @@ package emu.grasscutter.command.commands; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; -import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.GameData; import emu.grasscutter.data.def.MonsterData; -import emu.grasscutter.game.GenshinPlayer; import emu.grasscutter.game.entity.EntityMonster; +import emu.grasscutter.game.player.Player; import emu.grasscutter.utils.Position; import java.util.List; @@ -15,7 +15,7 @@ import java.util.List; public final class SpawnCommand implements CommandHandler { @Override - public void execute(GenshinPlayer sender, List<String> args) { + public void execute(Player sender, List<String> args) { if (sender == null) { CommandHandler.sendMessage(null, "Run this command in-game."); return; @@ -31,7 +31,7 @@ public final class SpawnCommand implements CommandHandler { int level = args.size() > 1 ? Integer.parseInt(args.get(1)) : 1; int amount = args.size() > 2 ? Integer.parseInt(args.get(2)) : 1; - MonsterData entityData = GenshinData.getMonsterDataMap().get(entity); + MonsterData entityData = GameData.getMonsterDataMap().get(entity); if (entityData == null) { CommandHandler.sendMessage(sender, "Invalid entity id."); return; diff --git a/src/main/java/emu/grasscutter/command/commands/StopCommand.java b/src/main/java/emu/grasscutter/command/commands/StopCommand.java index 4b63cd44e..96a81207d 100644 --- a/src/main/java/emu/grasscutter/command/commands/StopCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/StopCommand.java @@ -3,7 +3,7 @@ package emu.grasscutter.command.commands; import emu.grasscutter.Grasscutter; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; -import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.player.Player; import java.util.List; @@ -12,9 +12,9 @@ import java.util.List; public final class StopCommand implements CommandHandler { @Override - public void execute(GenshinPlayer sender, List<String> args) { + public void execute(Player sender, List<String> args) { CommandHandler.sendMessage(null, "Server shutting down..."); - for (GenshinPlayer p : Grasscutter.getGameServer().getPlayers().values()) { + for (Player p : Grasscutter.getGameServer().getPlayers().values()) { CommandHandler.sendMessage(p, "Server shutting down..."); } diff --git a/src/main/java/emu/grasscutter/command/commands/TalentCommand.java b/src/main/java/emu/grasscutter/command/commands/TalentCommand.java index 59fc83226..f0e779700 100644 --- a/src/main/java/emu/grasscutter/command/commands/TalentCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/TalentCommand.java @@ -3,9 +3,9 @@ package emu.grasscutter.command.commands; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; import emu.grasscutter.data.def.AvatarSkillDepotData; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.game.avatar.Avatar; import emu.grasscutter.game.entity.EntityAvatar; +import emu.grasscutter.game.player.Player; import emu.grasscutter.server.packet.send.PacketAvatarSkillChangeNotify; import emu.grasscutter.server.packet.send.PacketAvatarSkillUpgradeRsp; @@ -16,7 +16,7 @@ import java.util.List; public final class TalentCommand implements CommandHandler { @Override - public void execute(GenshinPlayer sender, List<String> args) { + public void execute(Player sender, List<String> args) { if (sender == null) { CommandHandler.sendMessage(null, "Run this command in-game."); return; @@ -41,7 +41,7 @@ public final class TalentCommand implements CommandHandler { int skillId = Integer.parseInt(args.get(1)); int nextLevel = Integer.parseInt(args.get(2)); EntityAvatar entity = sender.getTeamManager().getCurrentAvatarEntity(); - GenshinAvatar avatar = entity.getAvatar(); + Avatar avatar = entity.getAvatar(); int skillIdNorAtk = avatar.getData().getSkillDepot().getSkills().get(0); int skillIdE = avatar.getData().getSkillDepot().getSkills().get(1); int skillIdQ = avatar.getData().getSkillDepot().getEnergySkill(); @@ -97,7 +97,7 @@ public final class TalentCommand implements CommandHandler { case "n": case "e": case "q": try { EntityAvatar entity = sender.getTeamManager().getCurrentAvatarEntity(); - GenshinAvatar avatar = entity.getAvatar(); + Avatar avatar = entity.getAvatar(); AvatarSkillDepotData SkillDepot = avatar.getData().getSkillDepot(); int skillId; switch (cmdSwitch) { @@ -135,7 +135,7 @@ public final class TalentCommand implements CommandHandler { break; case "getid": EntityAvatar entity = sender.getTeamManager().getCurrentAvatarEntity(); - GenshinAvatar avatar = entity.getAvatar(); + Avatar avatar = entity.getAvatar(); int skillIdNorAtk = avatar.getData().getSkillDepot().getSkills().get(0); int skillIdE = avatar.getData().getSkillDepot().getSkills().get(1); int skillIdQ = avatar.getData().getSkillDepot().getEnergySkill(); diff --git a/src/main/java/emu/grasscutter/command/commands/TeleportCommand.java b/src/main/java/emu/grasscutter/command/commands/TeleportCommand.java index 6b08fb333..c478118e3 100644 --- a/src/main/java/emu/grasscutter/command/commands/TeleportCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/TeleportCommand.java @@ -2,7 +2,7 @@ package emu.grasscutter.command.commands; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; -import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.player.Player; import emu.grasscutter.utils.Position; import java.util.List; @@ -12,7 +12,7 @@ import java.util.List; public final class TeleportCommand implements CommandHandler { @Override - public void execute(GenshinPlayer sender, List<String> args) { + public void execute(Player sender, List<String> args) { if (sender == null) { CommandHandler.sendMessage(null, "Run this command in-game."); return; diff --git a/src/main/java/emu/grasscutter/command/commands/WeatherCommand.java b/src/main/java/emu/grasscutter/command/commands/WeatherCommand.java index bb9ae4a42..6fd3c453b 100644 --- a/src/main/java/emu/grasscutter/command/commands/WeatherCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/WeatherCommand.java @@ -2,7 +2,7 @@ package emu.grasscutter.command.commands; import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; -import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.player.Player; import emu.grasscutter.game.props.ClimateType; import emu.grasscutter.server.packet.send.PacketSceneAreaWeatherNotify; @@ -13,7 +13,7 @@ import java.util.List; public final class WeatherCommand implements CommandHandler { @Override - public void execute(GenshinPlayer sender, List<String> args) { + public void execute(Player sender, List<String> args) { if (sender == null) { CommandHandler.sendMessage(null, "Run this command in-game."); return; diff --git a/src/main/java/emu/grasscutter/data/GenshinData.java b/src/main/java/emu/grasscutter/data/GameData.java similarity index 98% rename from src/main/java/emu/grasscutter/data/GenshinData.java rename to src/main/java/emu/grasscutter/data/GameData.java index 29410b1c7..4c7363054 100644 --- a/src/main/java/emu/grasscutter/data/GenshinData.java +++ b/src/main/java/emu/grasscutter/data/GameData.java @@ -16,7 +16,7 @@ import it.unimi.dsi.fastutil.ints.Int2ObjectLinkedOpenHashMap; import it.unimi.dsi.fastutil.ints.Int2ObjectMap; import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; -public class GenshinData { +public class GameData { // BinOutputs private static final Int2ObjectMap<String> abilityHashes = new Int2ObjectOpenHashMap<>(); private static final Map<String, AbilityEmbryoEntry> abilityEmbryos = new HashMap<>(); @@ -69,7 +69,7 @@ public class GenshinData { Int2ObjectMap<?> map = null; try { - Field field = GenshinData.class.getDeclaredField(Utils.lowerCaseFirstChar(resourceDefinition.getSimpleName()) + "Map"); + Field field = GameData.class.getDeclaredField(Utils.lowerCaseFirstChar(resourceDefinition.getSimpleName()) + "Map"); field.setAccessible(true); map = (Int2ObjectMap<?>) field.get(null); diff --git a/src/main/java/emu/grasscutter/data/GenshinDepot.java b/src/main/java/emu/grasscutter/data/GameDepot.java similarity index 92% rename from src/main/java/emu/grasscutter/data/GenshinDepot.java rename to src/main/java/emu/grasscutter/data/GameDepot.java index 7281853df..fa5aecba5 100644 --- a/src/main/java/emu/grasscutter/data/GenshinDepot.java +++ b/src/main/java/emu/grasscutter/data/GameDepot.java @@ -15,21 +15,21 @@ import emu.grasscutter.utils.WeightedList; import it.unimi.dsi.fastutil.ints.Int2ObjectMap; import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; -public class GenshinDepot { +public class GameDepot { private static Int2ObjectMap<WeightedList<ReliquaryMainPropData>> relicMainPropDepot = new Int2ObjectOpenHashMap<>(); private static Int2ObjectMap<List<ReliquaryAffixData>> relicAffixDepot = new Int2ObjectOpenHashMap<>(); private static Int2ObjectMap<SpatialIndex<SpawnGroupEntry>> spawnLists = new Int2ObjectOpenHashMap<>(); public static void load() { - for (ReliquaryMainPropData data : GenshinData.getReliquaryMainPropDataMap().values()) { + for (ReliquaryMainPropData data : GameData.getReliquaryMainPropDataMap().values()) { if (data.getWeight() <= 0 || data.getPropDepotId() <= 0) { continue; } WeightedList<ReliquaryMainPropData> list = relicMainPropDepot.computeIfAbsent(data.getPropDepotId(), k -> new WeightedList<>()); list.add(data.getWeight(), data); } - for (ReliquaryAffixData data : GenshinData.getReliquaryAffixDataMap().values()) { + for (ReliquaryAffixData data : GameData.getReliquaryAffixDataMap().values()) { if (data.getWeight() <= 0 || data.getDepotId() <= 0) { continue; } diff --git a/src/main/java/emu/grasscutter/data/GenshinResource.java b/src/main/java/emu/grasscutter/data/GameResource.java similarity index 72% rename from src/main/java/emu/grasscutter/data/GenshinResource.java rename to src/main/java/emu/grasscutter/data/GameResource.java index 92e06354e..f3d47a516 100644 --- a/src/main/java/emu/grasscutter/data/GenshinResource.java +++ b/src/main/java/emu/grasscutter/data/GameResource.java @@ -1,6 +1,6 @@ package emu.grasscutter.data; -public abstract class GenshinResource { +public abstract class GameResource { public int getId() { return 0; diff --git a/src/main/java/emu/grasscutter/data/ResourceLoader.java b/src/main/java/emu/grasscutter/data/ResourceLoader.java index da9facfd3..589f6aca8 100644 --- a/src/main/java/emu/grasscutter/data/ResourceLoader.java +++ b/src/main/java/emu/grasscutter/data/ResourceLoader.java @@ -27,7 +27,7 @@ public class ResourceLoader { public static List<Class<?>> getResourceDefClasses() { Reflections reflections = new Reflections(ResourceLoader.class.getPackage().getName()); - Set<?> classes = reflections.getSubTypesOf(GenshinResource.class); + Set<?> classes = reflections.getSubTypesOf(GameResource.class); List<Class<?>> classList = new ArrayList<>(classes.size()); classes.forEach(o -> { @@ -50,12 +50,12 @@ public class ResourceLoader { loadResources(); loadScenePoints(); // Process into depots - GenshinDepot.load(); + GameDepot.load(); // Load spawn data loadSpawnData(); // Custom - TODO move this somewhere else try { - GenshinData.getAvatarSkillDepotDataMap().get(504).setAbilities( + GameData.getAvatarSkillDepotDataMap().get(504).setAbilities( new AbilityEmbryoEntry( "", new String[] { @@ -68,7 +68,7 @@ public class ResourceLoader { "Avatar_Player_WindBreathe_CameraController" } )); - GenshinData.getAvatarSkillDepotDataMap().get(704).setAbilities( + GameData.getAvatarSkillDepotDataMap().get(704).setAbilities( new AbilityEmbryoEntry( "", new String[] { @@ -95,7 +95,7 @@ public class ResourceLoader { } @SuppressWarnings("rawtypes") - Int2ObjectMap map = GenshinData.getMapByResourceDef(resourceDefinition); + Int2ObjectMap map = GameData.getMapByResourceDef(resourceDefinition); if (map == null) { continue; @@ -123,7 +123,7 @@ public class ResourceLoader { List list = Grasscutter.getGsonFactory().fromJson(fileReader, TypeToken.getParameterized(Collection.class, c).getType()); for (Object o : list) { - GenshinResource res = (GenshinResource) o; + GameResource res = (GameResource) o; res.onLoad(); map.put(res.getId(), res); } @@ -140,7 +140,7 @@ public class ResourceLoader { } List<ScenePointEntry> scenePointList = new ArrayList<>(); - for (File file : folder.listFiles()) { + for (File file : Objects.requireNonNull(folder.listFiles())) { ScenePointConfig config = null; Integer sceneId = null; @@ -170,7 +170,7 @@ public class ResourceLoader { } for (ScenePointEntry entry : scenePointList) { - GenshinData.getScenePointEntries().put(entry.getName(), entry); + GameData.getScenePointEntries().put(entry.getName(), entry); } } } @@ -190,7 +190,7 @@ public class ResourceLoader { } else { // Load from BinOutput Pattern pattern = Pattern.compile("(?<=ConfigAvatar_)(.*?)(?=.json)"); - + embryoList = new LinkedList<>(); File folder = new File(Utils.toFilePath(Grasscutter.getConfig().RESOURCE_FOLDER + "BinOutput/Avatar/")); File[] files = folder.listFiles(); @@ -198,29 +198,29 @@ public class ResourceLoader { Grasscutter.getLogger().error("Error loading ability embryos: no files found in " + folder.getAbsolutePath()); return; } - + for (File file : files) { AvatarConfig config; String avatarName; - + Matcher matcher = pattern.matcher(file.getName()); if (matcher.find()) { avatarName = matcher.group(0); } else { continue; } - + try (FileReader fileReader = new FileReader(file)) { config = Grasscutter.getGsonFactory().fromJson(fileReader, AvatarConfig.class); } catch (Exception e) { e.printStackTrace(); continue; } - + if (config.abilities == null) { continue; } - + int s = config.abilities.size(); AbilityEmbryoEntry al = new AbilityEmbryoEntry(avatarName, config.abilities.stream().map(Object::toString).toArray(size -> new String[s])); embryoList.add(al); @@ -233,7 +233,7 @@ public class ResourceLoader { } for (AbilityEmbryoEntry entry : embryoList) { - GenshinData.getAbilityEmbryoInfo().put(entry.getName(), entry); + GameData.getAbilityEmbryoInfo().put(entry.getName(), entry); } } @@ -260,7 +260,7 @@ public class ResourceLoader { entry.getSpawns().stream().forEach(s -> { s.setGroup(entry); }); - GenshinDepot.getSpawnListById(entry.getSceneId()).insert(entry, entry.getPos().getX(), entry.getPos().getZ()); + GameDepot.getSpawnListById(entry.getSceneId()).insert(entry, entry.getPos().getX(), entry.getPos().getZ()); } } @@ -328,10 +328,10 @@ public class ResourceLoader { } for (OpenConfigEntry entry : list) { - GenshinData.getOpenConfigEntries().put(entry.getName(), entry); + GameData.getOpenConfigEntries().put(entry.getName(), entry); } } - + // BinOutput configs private static class AvatarConfig { diff --git a/src/main/java/emu/grasscutter/data/def/AvatarCostumeData.java b/src/main/java/emu/grasscutter/data/def/AvatarCostumeData.java index b45bac9c7..c6166bd71 100644 --- a/src/main/java/emu/grasscutter/data/def/AvatarCostumeData.java +++ b/src/main/java/emu/grasscutter/data/def/AvatarCostumeData.java @@ -1,11 +1,11 @@ package emu.grasscutter.data.def; -import emu.grasscutter.data.GenshinData; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameData; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; @ResourceType(name = "AvatarCostumeExcelConfigData.json") -public class AvatarCostumeData extends GenshinResource { +public class AvatarCostumeData extends GameResource { private int CostumeId; private int ItemId; private int AvatarId; @@ -25,6 +25,6 @@ public class AvatarCostumeData extends GenshinResource { @Override public void onLoad() { - GenshinData.getAvatarCostumeDataItemIdMap().put(this.getItemId(), this); + GameData.getAvatarCostumeDataItemIdMap().put(this.getItemId(), this); } } diff --git a/src/main/java/emu/grasscutter/data/def/AvatarCurveData.java b/src/main/java/emu/grasscutter/data/def/AvatarCurveData.java index da560b2b8..586c0517d 100644 --- a/src/main/java/emu/grasscutter/data/def/AvatarCurveData.java +++ b/src/main/java/emu/grasscutter/data/def/AvatarCurveData.java @@ -4,12 +4,12 @@ import java.util.HashMap; import java.util.Map; import java.util.stream.Stream; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; import emu.grasscutter.data.common.CurveInfo; @ResourceType(name = "AvatarCurveExcelConfigData.json") -public class AvatarCurveData extends GenshinResource { +public class AvatarCurveData extends GameResource { private int Level; private CurveInfo[] CurveInfos; diff --git a/src/main/java/emu/grasscutter/data/def/AvatarData.java b/src/main/java/emu/grasscutter/data/def/AvatarData.java index 3beb21eec..27555fc0d 100644 --- a/src/main/java/emu/grasscutter/data/def/AvatarData.java +++ b/src/main/java/emu/grasscutter/data/def/AvatarData.java @@ -2,8 +2,8 @@ package emu.grasscutter.data.def; import java.util.List; -import emu.grasscutter.data.GenshinData; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameData; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; import emu.grasscutter.data.ResourceType.LoadPriority; import emu.grasscutter.data.common.PropGrowCurve; @@ -15,7 +15,7 @@ import it.unimi.dsi.fastutil.ints.IntArrayList; import it.unimi.dsi.fastutil.ints.IntList; @ResourceType(name = "AvatarExcelConfigData.json", loadPriority = LoadPriority.LOW) -public class AvatarData extends GenshinResource { +public class AvatarData extends GameResource { private String name; private String IconName; @@ -178,7 +178,7 @@ public class AvatarData extends GenshinResource { if (growCurve == null) { return 1f; } - AvatarCurveData curveData = GenshinData.getAvatarCurveDataMap().get(level); + AvatarCurveData curveData = GameData.getAvatarCurveDataMap().get(level); if (curveData == null) { return 1f; } @@ -211,24 +211,24 @@ public class AvatarData extends GenshinResource { @Override public void onLoad() { - this.skillDepot = GenshinData.getAvatarSkillDepotDataMap().get(this.SkillDepotId); + this.skillDepot = GameData.getAvatarSkillDepotDataMap().get(this.SkillDepotId); - // Get fetters from GenshinData - this.fetters = GenshinData.getFetterDataEntries().get(this.Id); + // Get fetters from GameData + this.fetters = GameData.getFetterDataEntries().get(this.Id); - if (GenshinData.getFetterCharacterCardDataMap().get(this.Id) != null) { - this.nameCardRewardId = GenshinData.getFetterCharacterCardDataMap().get(this.Id).getRewardId(); + if (GameData.getFetterCharacterCardDataMap().get(this.Id) != null) { + this.nameCardRewardId = GameData.getFetterCharacterCardDataMap().get(this.Id).getRewardId(); } - if (GenshinData.getRewardDataMap().get(this.nameCardRewardId) != null) { - this.nameCardId = GenshinData.getRewardDataMap().get(this.nameCardRewardId).getRewardItemList().get(0).getItemId(); + if (GameData.getRewardDataMap().get(this.nameCardRewardId) != null) { + this.nameCardId = GameData.getRewardDataMap().get(this.nameCardRewardId).getRewardItemList().get(0).getItemId(); } - int size = GenshinData.getAvatarCurveDataMap().size(); + int size = GameData.getAvatarCurveDataMap().size(); this.hpGrowthCurve = new float[size]; this.attackGrowthCurve = new float[size]; this.defenseGrowthCurve = new float[size]; - for (AvatarCurveData curveData : GenshinData.getAvatarCurveDataMap().values()) { + for (AvatarCurveData curveData : GameData.getAvatarCurveDataMap().values()) { int level = curveData.getLevel() - 1; for (PropGrowCurve growCurve : this.PropGrowCurves) { FightProperty prop = FightProperty.getPropByName(growCurve.getType()); @@ -260,7 +260,7 @@ public class AvatarData extends GenshinResource { if (split.length > 0) { this.name = split[split.length - 1]; - AbilityEmbryoEntry info = GenshinData.getAbilityEmbryoInfo().get(this.name); + AbilityEmbryoEntry info = GameData.getAbilityEmbryoInfo().get(this.name); if (info != null) { this.abilities = new IntArrayList(info.getAbilities().length); for (String ability : info.getAbilities()) { diff --git a/src/main/java/emu/grasscutter/data/def/AvatarFetterLevelData.java b/src/main/java/emu/grasscutter/data/def/AvatarFetterLevelData.java index 8dd93eea5..a02915069 100644 --- a/src/main/java/emu/grasscutter/data/def/AvatarFetterLevelData.java +++ b/src/main/java/emu/grasscutter/data/def/AvatarFetterLevelData.java @@ -1,10 +1,10 @@ package emu.grasscutter.data.def; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; @ResourceType(name = "AvatarFettersLevelExcelConfigData.json") -public class AvatarFetterLevelData extends GenshinResource { +public class AvatarFetterLevelData extends GameResource { private int FetterLevel; private int NeedExp; diff --git a/src/main/java/emu/grasscutter/data/def/AvatarFlycloakData.java b/src/main/java/emu/grasscutter/data/def/AvatarFlycloakData.java index 29d04cce5..100a6c87c 100644 --- a/src/main/java/emu/grasscutter/data/def/AvatarFlycloakData.java +++ b/src/main/java/emu/grasscutter/data/def/AvatarFlycloakData.java @@ -1,10 +1,10 @@ package emu.grasscutter.data.def; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; @ResourceType(name = "AvatarFlycloakExcelConfigData.json") -public class AvatarFlycloakData extends GenshinResource { +public class AvatarFlycloakData extends GameResource { private int FlycloakId; private long NameTextMapHash; diff --git a/src/main/java/emu/grasscutter/data/def/AvatarLevelData.java b/src/main/java/emu/grasscutter/data/def/AvatarLevelData.java index f7586f690..bc6ca671c 100644 --- a/src/main/java/emu/grasscutter/data/def/AvatarLevelData.java +++ b/src/main/java/emu/grasscutter/data/def/AvatarLevelData.java @@ -1,10 +1,10 @@ package emu.grasscutter.data.def; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; @ResourceType(name = "AvatarLevelExcelConfigData.json") -public class AvatarLevelData extends GenshinResource { +public class AvatarLevelData extends GameResource { private int Level; private int Exp; diff --git a/src/main/java/emu/grasscutter/data/def/AvatarPromoteData.java b/src/main/java/emu/grasscutter/data/def/AvatarPromoteData.java index 2a40d44ad..c397902e4 100644 --- a/src/main/java/emu/grasscutter/data/def/AvatarPromoteData.java +++ b/src/main/java/emu/grasscutter/data/def/AvatarPromoteData.java @@ -1,13 +1,13 @@ package emu.grasscutter.data.def; import java.util.ArrayList; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; import emu.grasscutter.data.common.FightPropData; import emu.grasscutter.data.common.ItemParamData; @ResourceType(name = "AvatarPromoteExcelConfigData.json") -public class AvatarPromoteData extends GenshinResource { +public class AvatarPromoteData extends GameResource { private int AvatarPromoteId; private int PromoteLevel; diff --git a/src/main/java/emu/grasscutter/data/def/AvatarSkillData.java b/src/main/java/emu/grasscutter/data/def/AvatarSkillData.java index 147c22d10..3efc2a142 100644 --- a/src/main/java/emu/grasscutter/data/def/AvatarSkillData.java +++ b/src/main/java/emu/grasscutter/data/def/AvatarSkillData.java @@ -2,12 +2,12 @@ package emu.grasscutter.data.def; import java.util.List; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; import emu.grasscutter.data.ResourceType.LoadPriority; @ResourceType(name = "AvatarSkillExcelConfigData.json", loadPriority = LoadPriority.HIGHEST) -public class AvatarSkillData extends GenshinResource { +public class AvatarSkillData extends GameResource { private int Id; private float CdTime; private int CostElemVal; diff --git a/src/main/java/emu/grasscutter/data/def/AvatarSkillDepotData.java b/src/main/java/emu/grasscutter/data/def/AvatarSkillDepotData.java index 4beb6ec8c..7916bfd45 100644 --- a/src/main/java/emu/grasscutter/data/def/AvatarSkillDepotData.java +++ b/src/main/java/emu/grasscutter/data/def/AvatarSkillDepotData.java @@ -2,8 +2,8 @@ package emu.grasscutter.data.def; import java.util.List; -import emu.grasscutter.data.GenshinData; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameData; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; import emu.grasscutter.data.ResourceType.LoadPriority; import emu.grasscutter.data.custom.AbilityEmbryoEntry; @@ -13,7 +13,7 @@ import it.unimi.dsi.fastutil.ints.IntArrayList; import it.unimi.dsi.fastutil.ints.IntList; @ResourceType(name = "AvatarSkillDepotExcelConfigData.json", loadPriority = LoadPriority.HIGH) -public class AvatarSkillDepotData extends GenshinResource { +public class AvatarSkillDepotData extends GameResource { private int Id; private int EnergySkill; @@ -94,7 +94,7 @@ public class AvatarSkillDepotData extends GenshinResource { @Override public void onLoad() { - this.energySkillData = GenshinData.getAvatarSkillDataMap().get(this.EnergySkill); + this.energySkillData = GameData.getAvatarSkillDataMap().get(this.EnergySkill); if (getEnergySkillData() != null) { this.elementType = ElementType.getTypeByName(getEnergySkillData().getCostElemType()); } else { diff --git a/src/main/java/emu/grasscutter/data/def/AvatarTalentData.java b/src/main/java/emu/grasscutter/data/def/AvatarTalentData.java index 6708da8c8..fdf96875d 100644 --- a/src/main/java/emu/grasscutter/data/def/AvatarTalentData.java +++ b/src/main/java/emu/grasscutter/data/def/AvatarTalentData.java @@ -1,13 +1,13 @@ package emu.grasscutter.data.def; import java.util.ArrayList; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; import emu.grasscutter.data.ResourceType.LoadPriority; import emu.grasscutter.data.common.FightPropData; @ResourceType(name = "AvatarTalentExcelConfigData.json", loadPriority = LoadPriority.HIGHEST) -public class AvatarTalentData extends GenshinResource { +public class AvatarTalentData extends GameResource { private int TalentId; private int PrevTalent; private long NameTextMapHash; diff --git a/src/main/java/emu/grasscutter/data/def/CombineData.java b/src/main/java/emu/grasscutter/data/def/CombineData.java new file mode 100644 index 000000000..c4c19794f --- /dev/null +++ b/src/main/java/emu/grasscutter/data/def/CombineData.java @@ -0,0 +1,10 @@ +package emu.grasscutter.data.def; + +import emu.grasscutter.data.ResourceType; + +@ResourceType(name = "CombineExcelConfigData.json") +public class CombineData { + + + +} diff --git a/src/main/java/emu/grasscutter/data/def/EquipAffixData.java b/src/main/java/emu/grasscutter/data/def/EquipAffixData.java index af08276df..9020c7b46 100644 --- a/src/main/java/emu/grasscutter/data/def/EquipAffixData.java +++ b/src/main/java/emu/grasscutter/data/def/EquipAffixData.java @@ -1,12 +1,12 @@ package emu.grasscutter.data.def; import java.util.ArrayList; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; import emu.grasscutter.data.common.FightPropData; @ResourceType(name = "EquipAffixExcelConfigData.json") -public class EquipAffixData extends GenshinResource { +public class EquipAffixData extends GameResource { private int AffixId; private int Id; diff --git a/src/main/java/emu/grasscutter/data/def/FetterCharacterCardData.java b/src/main/java/emu/grasscutter/data/def/FetterCharacterCardData.java index 2bf96ad8e..62e323509 100644 --- a/src/main/java/emu/grasscutter/data/def/FetterCharacterCardData.java +++ b/src/main/java/emu/grasscutter/data/def/FetterCharacterCardData.java @@ -1,11 +1,11 @@ package emu.grasscutter.data.def; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; import emu.grasscutter.data.ResourceType.LoadPriority; @ResourceType(name = "FetterCharacterCardExcelConfigData.json", loadPriority = LoadPriority.HIGHEST) -public class FetterCharacterCardData extends GenshinResource { +public class FetterCharacterCardData extends GameResource { private int AvatarId; private int RewardId; diff --git a/src/main/java/emu/grasscutter/data/def/FetterData.java b/src/main/java/emu/grasscutter/data/def/FetterData.java index dc88fd795..f4e6abbd9 100644 --- a/src/main/java/emu/grasscutter/data/def/FetterData.java +++ b/src/main/java/emu/grasscutter/data/def/FetterData.java @@ -2,13 +2,13 @@ package emu.grasscutter.data.def; import java.util.List; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; import emu.grasscutter.data.ResourceType.LoadPriority; import emu.grasscutter.data.common.OpenCondData; @ResourceType(name = {"FetterInfoExcelConfigData.json", "FettersExcelConfigData.json", "FetterStoryExcelConfigData.json"}, loadPriority = LoadPriority.HIGHEST) -public class FetterData extends GenshinResource { +public class FetterData extends GameResource { private int AvatarId; private int FetterId; private List<OpenCondData> OpenCond; diff --git a/src/main/java/emu/grasscutter/data/def/GadgetData.java b/src/main/java/emu/grasscutter/data/def/GadgetData.java index ec7754863..7a071972b 100644 --- a/src/main/java/emu/grasscutter/data/def/GadgetData.java +++ b/src/main/java/emu/grasscutter/data/def/GadgetData.java @@ -1,10 +1,10 @@ package emu.grasscutter.data.def; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; @ResourceType(name = "GadgetExcelConfigData.json") -public class GadgetData extends GenshinResource { +public class GadgetData extends GameResource { private int Id; private String Type; diff --git a/src/main/java/emu/grasscutter/data/def/ItemData.java b/src/main/java/emu/grasscutter/data/def/ItemData.java index 25be666e7..5cd1df751 100644 --- a/src/main/java/emu/grasscutter/data/def/ItemData.java +++ b/src/main/java/emu/grasscutter/data/def/ItemData.java @@ -1,13 +1,13 @@ package emu.grasscutter.data.def; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; import emu.grasscutter.game.props.FightProperty; import it.unimi.dsi.fastutil.ints.IntOpenHashSet; import it.unimi.dsi.fastutil.ints.IntSet; @ResourceType(name = {"MaterialExcelConfigData.json", "WeaponExcelConfigData.json", "ReliquaryExcelConfigData.json"}) -public class ItemData extends GenshinResource { +public class ItemData extends GameResource { private int Id; private int StackLimit = 1; diff --git a/src/main/java/emu/grasscutter/data/def/MonsterCurveData.java b/src/main/java/emu/grasscutter/data/def/MonsterCurveData.java index 77a44bd6a..07c705403 100644 --- a/src/main/java/emu/grasscutter/data/def/MonsterCurveData.java +++ b/src/main/java/emu/grasscutter/data/def/MonsterCurveData.java @@ -4,12 +4,12 @@ import java.util.HashMap; import java.util.Map; import java.util.stream.Stream; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; import emu.grasscutter.data.common.CurveInfo; @ResourceType(name = "MonsterCurveExcelConfigData.json") -public class MonsterCurveData extends GenshinResource { +public class MonsterCurveData extends GameResource { private int Level; private CurveInfo[] CurveInfos; diff --git a/src/main/java/emu/grasscutter/data/def/MonsterData.java b/src/main/java/emu/grasscutter/data/def/MonsterData.java index 2cf41bf7e..341a10ce0 100644 --- a/src/main/java/emu/grasscutter/data/def/MonsterData.java +++ b/src/main/java/emu/grasscutter/data/def/MonsterData.java @@ -2,14 +2,14 @@ package emu.grasscutter.data.def; import java.util.List; -import emu.grasscutter.data.GenshinData; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameData; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; import emu.grasscutter.data.ResourceType.LoadPriority; import emu.grasscutter.data.common.PropGrowCurve; @ResourceType(name = "MonsterExcelConfigData.json", loadPriority = LoadPriority.LOW) -public class MonsterData extends GenshinResource { +public class MonsterData extends GameResource { private int Id; private String MonsterName; @@ -168,13 +168,13 @@ public class MonsterData extends GenshinResource { @Override public void onLoad() { - this.describeData = GenshinData.getMonsterDescribeDataMap().get(this.getDescribeId()); + this.describeData = GameData.getMonsterDescribeDataMap().get(this.getDescribeId()); for (int id : this.Equips) { if (id == 0) { continue; } - GadgetData gadget = GenshinData.getGadgetDataMap().get(id); + GadgetData gadget = GameData.getGadgetDataMap().get(id); if (gadget == null) { continue; } diff --git a/src/main/java/emu/grasscutter/data/def/MonsterDescribeData.java b/src/main/java/emu/grasscutter/data/def/MonsterDescribeData.java index 6d6271a77..41b826c5b 100644 --- a/src/main/java/emu/grasscutter/data/def/MonsterDescribeData.java +++ b/src/main/java/emu/grasscutter/data/def/MonsterDescribeData.java @@ -1,11 +1,11 @@ package emu.grasscutter.data.def; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; import emu.grasscutter.data.ResourceType.LoadPriority; @ResourceType(name = "MonsterDescribeExcelConfigData.json", loadPriority = LoadPriority.HIGH) -public class MonsterDescribeData extends GenshinResource { +public class MonsterDescribeData extends GameResource { private int Id; private long NameTextMapHash; private int TitleID; diff --git a/src/main/java/emu/grasscutter/data/def/NpcData.java b/src/main/java/emu/grasscutter/data/def/NpcData.java index ad08ca9ee..37fa78776 100644 --- a/src/main/java/emu/grasscutter/data/def/NpcData.java +++ b/src/main/java/emu/grasscutter/data/def/NpcData.java @@ -1,10 +1,10 @@ package emu.grasscutter.data.def; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; @ResourceType(name = "NpcExcelConfigData.json") -public class NpcData extends GenshinResource { +public class NpcData extends GameResource { private int Id; private String JsonName; diff --git a/src/main/java/emu/grasscutter/data/def/PlayerLevelData.java b/src/main/java/emu/grasscutter/data/def/PlayerLevelData.java index 3735b7e59..1e02e3eca 100644 --- a/src/main/java/emu/grasscutter/data/def/PlayerLevelData.java +++ b/src/main/java/emu/grasscutter/data/def/PlayerLevelData.java @@ -1,10 +1,10 @@ package emu.grasscutter.data.def; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; @ResourceType(name = "PlayerLevelExcelConfigData.json") -public class PlayerLevelData extends GenshinResource { +public class PlayerLevelData extends GameResource { private int Level; private int Exp; private int RewardId; diff --git a/src/main/java/emu/grasscutter/data/def/ProudSkillData.java b/src/main/java/emu/grasscutter/data/def/ProudSkillData.java index 6ffb180d2..3eff8b94d 100644 --- a/src/main/java/emu/grasscutter/data/def/ProudSkillData.java +++ b/src/main/java/emu/grasscutter/data/def/ProudSkillData.java @@ -3,13 +3,13 @@ package emu.grasscutter.data.def; import java.util.ArrayList; import java.util.List; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; import emu.grasscutter.data.common.FightPropData; import emu.grasscutter.data.common.ItemParamData; @ResourceType(name = "ProudSkillExcelConfigData.json") -public class ProudSkillData extends GenshinResource { +public class ProudSkillData extends GameResource { private int ProudSkillId; private int ProudSkillGroupId; diff --git a/src/main/java/emu/grasscutter/data/def/ReliquaryAffixData.java b/src/main/java/emu/grasscutter/data/def/ReliquaryAffixData.java index 25e7693c3..ba9b1d369 100644 --- a/src/main/java/emu/grasscutter/data/def/ReliquaryAffixData.java +++ b/src/main/java/emu/grasscutter/data/def/ReliquaryAffixData.java @@ -1,11 +1,11 @@ package emu.grasscutter.data.def; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; import emu.grasscutter.game.props.FightProperty; @ResourceType(name = "ReliquaryAffixExcelConfigData.json") -public class ReliquaryAffixData extends GenshinResource { +public class ReliquaryAffixData extends GameResource { private int Id; private int DepotId; diff --git a/src/main/java/emu/grasscutter/data/def/ReliquaryLevelData.java b/src/main/java/emu/grasscutter/data/def/ReliquaryLevelData.java index 0217ff48b..b4e37dd90 100644 --- a/src/main/java/emu/grasscutter/data/def/ReliquaryLevelData.java +++ b/src/main/java/emu/grasscutter/data/def/ReliquaryLevelData.java @@ -2,14 +2,14 @@ package emu.grasscutter.data.def; import java.util.List; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; import emu.grasscutter.game.props.FightProperty; import it.unimi.dsi.fastutil.ints.Int2ObjectMap; import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; @ResourceType(name = "ReliquaryLevelExcelConfigData.json") -public class ReliquaryLevelData extends GenshinResource { +public class ReliquaryLevelData extends GameResource { private int id; private Int2ObjectMap<Float> propMap; diff --git a/src/main/java/emu/grasscutter/data/def/ReliquaryMainPropData.java b/src/main/java/emu/grasscutter/data/def/ReliquaryMainPropData.java index a67233f51..6b2c920e4 100644 --- a/src/main/java/emu/grasscutter/data/def/ReliquaryMainPropData.java +++ b/src/main/java/emu/grasscutter/data/def/ReliquaryMainPropData.java @@ -1,11 +1,11 @@ package emu.grasscutter.data.def; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; import emu.grasscutter.game.props.FightProperty; @ResourceType(name = "ReliquaryMainPropExcelConfigData.json") -public class ReliquaryMainPropData extends GenshinResource { +public class ReliquaryMainPropData extends GameResource { private int Id; private int PropDepotId; diff --git a/src/main/java/emu/grasscutter/data/def/ReliquarySetData.java b/src/main/java/emu/grasscutter/data/def/ReliquarySetData.java index 85c3e3237..9eac2c050 100644 --- a/src/main/java/emu/grasscutter/data/def/ReliquarySetData.java +++ b/src/main/java/emu/grasscutter/data/def/ReliquarySetData.java @@ -1,10 +1,10 @@ package emu.grasscutter.data.def; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; @ResourceType(name = "ReliquarySetExcelConfigData.json") -public class ReliquarySetData extends GenshinResource { +public class ReliquarySetData extends GameResource { private int SetId; private int[] SetNeedNum; private int EquipAffixId; diff --git a/src/main/java/emu/grasscutter/data/def/RewardData.java b/src/main/java/emu/grasscutter/data/def/RewardData.java index 46c39ac10..d8ea58415 100644 --- a/src/main/java/emu/grasscutter/data/def/RewardData.java +++ b/src/main/java/emu/grasscutter/data/def/RewardData.java @@ -2,12 +2,12 @@ package emu.grasscutter.data.def; import java.util.List; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; import emu.grasscutter.data.common.RewardItemData; @ResourceType(name = "RewardExcelConfigData.json") -public class RewardData extends GenshinResource { +public class RewardData extends GameResource { public int RewardId; public List<RewardItemData> RewardItemList; diff --git a/src/main/java/emu/grasscutter/data/def/SceneData.java b/src/main/java/emu/grasscutter/data/def/SceneData.java index d9c0bd0ab..220579faf 100644 --- a/src/main/java/emu/grasscutter/data/def/SceneData.java +++ b/src/main/java/emu/grasscutter/data/def/SceneData.java @@ -1,13 +1,13 @@ package emu.grasscutter.data.def; -import emu.grasscutter.data.GenshinData; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameData; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; import emu.grasscutter.game.props.SceneType; @ResourceType(name = "SceneExcelConfigData.json") -public class SceneData extends GenshinResource { +public class SceneData extends GameResource { private int Id; private SceneType SceneType; private String ScriptData; diff --git a/src/main/java/emu/grasscutter/data/def/WeaponCurveData.java b/src/main/java/emu/grasscutter/data/def/WeaponCurveData.java index 0bccd603a..287ce8af6 100644 --- a/src/main/java/emu/grasscutter/data/def/WeaponCurveData.java +++ b/src/main/java/emu/grasscutter/data/def/WeaponCurveData.java @@ -4,12 +4,12 @@ import java.util.HashMap; import java.util.Map; import java.util.stream.Stream; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; import emu.grasscutter.data.common.CurveInfo; @ResourceType(name = "WeaponCurveExcelConfigData.json") -public class WeaponCurveData extends GenshinResource { +public class WeaponCurveData extends GameResource { private int Level; private CurveInfo[] CurveInfos; diff --git a/src/main/java/emu/grasscutter/data/def/WeaponLevelData.java b/src/main/java/emu/grasscutter/data/def/WeaponLevelData.java index c3f415681..98550b24a 100644 --- a/src/main/java/emu/grasscutter/data/def/WeaponLevelData.java +++ b/src/main/java/emu/grasscutter/data/def/WeaponLevelData.java @@ -1,10 +1,10 @@ package emu.grasscutter.data.def; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; @ResourceType(name = "WeaponLevelExcelConfigData.json") -public class WeaponLevelData extends GenshinResource { +public class WeaponLevelData extends GameResource { private int Level; private int[] RequiredExps; diff --git a/src/main/java/emu/grasscutter/data/def/WeaponPromoteData.java b/src/main/java/emu/grasscutter/data/def/WeaponPromoteData.java index ab008bfed..8e75b2b7c 100644 --- a/src/main/java/emu/grasscutter/data/def/WeaponPromoteData.java +++ b/src/main/java/emu/grasscutter/data/def/WeaponPromoteData.java @@ -1,13 +1,13 @@ package emu.grasscutter.data.def; import java.util.ArrayList; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; import emu.grasscutter.data.common.FightPropData; import emu.grasscutter.data.common.ItemParamData; @ResourceType(name = "WeaponPromoteExcelConfigData.json") -public class WeaponPromoteData extends GenshinResource { +public class WeaponPromoteData extends GameResource { private int WeaponPromoteId; private int PromoteLevel; diff --git a/src/main/java/emu/grasscutter/data/def/WorldLevelData.java b/src/main/java/emu/grasscutter/data/def/WorldLevelData.java index c2072d8f2..3b101f9b8 100644 --- a/src/main/java/emu/grasscutter/data/def/WorldLevelData.java +++ b/src/main/java/emu/grasscutter/data/def/WorldLevelData.java @@ -1,10 +1,10 @@ package emu.grasscutter.data.def; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.ResourceType; @ResourceType(name = "WorldLevelExcelConfigData.json") -public class WorldLevelData extends GenshinResource { +public class WorldLevelData extends GameResource { private int Level; private int MonsterLevel; diff --git a/src/main/java/emu/grasscutter/database/DatabaseHelper.java b/src/main/java/emu/grasscutter/database/DatabaseHelper.java index fc24b70e6..c1800c145 100644 --- a/src/main/java/emu/grasscutter/database/DatabaseHelper.java +++ b/src/main/java/emu/grasscutter/database/DatabaseHelper.java @@ -4,12 +4,12 @@ import java.util.List; import com.mongodb.client.result.DeleteResult; import dev.morphia.query.experimental.filters.Filters; -import emu.grasscutter.GenshinConstants; +import emu.grasscutter.GameConstants; import emu.grasscutter.game.Account; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.game.avatar.Avatar; import emu.grasscutter.game.friends.Friendship; -import emu.grasscutter.game.inventory.GenshinItem; +import emu.grasscutter.game.inventory.GameItem; +import emu.grasscutter.game.player.Player; public final class DatabaseHelper { public static Account createAccount(String username) { @@ -26,7 +26,7 @@ public final class DatabaseHelper { // Make sure there are no id collisions if (reservedId > 0) { // Cannot make account with the same uid as the server console - if (reservedId == GenshinConstants.SERVER_CONSOLE_UID) { + if (reservedId == GameConstants.SERVER_CONSOLE_UID) { return null; } exists = DatabaseHelper.getAccountByPlayerId(reservedId); @@ -90,15 +90,19 @@ public final class DatabaseHelper { return DatabaseManager.getDatastore().find(Account.class).filter(Filters.eq("username", username)).delete().getDeletedCount() > 0; } - public static GenshinPlayer getPlayerById(int id) { - return DatabaseManager.getDatastore().find(GenshinPlayer.class).filter(Filters.eq("_id", id)).first(); + public static List<Player> getAllPlayers() { + return DatabaseManager.getDatastore().find(Player.class).stream().toList(); + } + + public static Player getPlayerById(int id) { + return DatabaseManager.getDatastore().find(Player.class).filter(Filters.eq("_id", id)).first(); } public static boolean checkPlayerExists(int id) { - return DatabaseManager.getDatastore().find(GenshinPlayer.class).filter(Filters.eq("_id", id)).first() != null; + return DatabaseManager.getDatastore().find(Player.class).filter(Filters.eq("_id", id)).first() != null; } - public static synchronized GenshinPlayer createPlayer(GenshinPlayer character, int reservedId) { + public static synchronized Player createPlayer(Player character, int reservedId) { // Check if reserved id int id; if (reservedId > 0 && !checkPlayerExists(reservedId)) { @@ -123,42 +127,42 @@ public final class DatabaseHelper { id = reservedId; } else { do { - id = DatabaseManager.getNextId(GenshinPlayer.class); + id = DatabaseManager.getNextId(Player.class); } while (checkPlayerExists(id)); } return id; } - public static void savePlayer(GenshinPlayer character) { + public static void savePlayer(Player character) { DatabaseManager.getDatastore().save(character); } - public static void saveAvatar(GenshinAvatar avatar) { + public static void saveAvatar(Avatar avatar) { DatabaseManager.getDatastore().save(avatar); } - public static List<GenshinAvatar> getAvatars(GenshinPlayer player) { - return DatabaseManager.getDatastore().find(GenshinAvatar.class).filter(Filters.eq("ownerId", player.getUid())).stream().toList(); + public static List<Avatar> getAvatars(Player player) { + return DatabaseManager.getDatastore().find(Avatar.class).filter(Filters.eq("ownerId", player.getUid())).stream().toList(); } - public static void saveItem(GenshinItem item) { + public static void saveItem(GameItem item) { DatabaseManager.getDatastore().save(item); } - public static boolean deleteItem(GenshinItem item) { + public static boolean deleteItem(GameItem item) { DeleteResult result = DatabaseManager.getDatastore().delete(item); return result.wasAcknowledged(); } - public static List<GenshinItem> getInventoryItems(GenshinPlayer player) { - return DatabaseManager.getDatastore().find(GenshinItem.class).filter(Filters.eq("ownerId", player.getUid())).stream().toList(); + public static List<GameItem> getInventoryItems(Player player) { + return DatabaseManager.getDatastore().find(GameItem.class).filter(Filters.eq("ownerId", player.getUid())).stream().toList(); } - public static List<Friendship> getFriends(GenshinPlayer player) { + public static List<Friendship> getFriends(Player player) { return DatabaseManager.getDatastore().find(Friendship.class).filter(Filters.eq("ownerId", player.getUid())).stream().toList(); } - public static List<Friendship> getReverseFriends(GenshinPlayer player) { + public static List<Friendship> getReverseFriends(Player player) { return DatabaseManager.getDatastore().find(Friendship.class).filter(Filters.eq("friendId", player.getUid())).stream().toList(); } diff --git a/src/main/java/emu/grasscutter/database/DatabaseManager.java b/src/main/java/emu/grasscutter/database/DatabaseManager.java index 6df2ca9f0..68e1f5e87 100644 --- a/src/main/java/emu/grasscutter/database/DatabaseManager.java +++ b/src/main/java/emu/grasscutter/database/DatabaseManager.java @@ -13,10 +13,10 @@ import dev.morphia.mapping.MapperOptions; import dev.morphia.query.experimental.filters.Filters; import emu.grasscutter.Grasscutter; import emu.grasscutter.game.Account; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.game.avatar.Avatar; import emu.grasscutter.game.friends.Friendship; -import emu.grasscutter.game.inventory.GenshinItem; +import emu.grasscutter.game.inventory.GameItem; +import emu.grasscutter.game.player.Player; public final class DatabaseManager { @@ -27,7 +27,7 @@ public final class DatabaseManager { private static Datastore dispatchDatastore; private static final Class<?>[] mappedClasses = new Class<?>[] { - DatabaseCounter.class, Account.class, GenshinPlayer.class, GenshinAvatar.class, GenshinItem.class, Friendship.class + DatabaseCounter.class, Account.class, Player.class, Avatar.class, GameItem.class, Friendship.class }; public static Datastore getDatastore() { diff --git a/src/main/java/emu/grasscutter/game/CoopRequest.java b/src/main/java/emu/grasscutter/game/CoopRequest.java index 1e885672c..80a004ca7 100644 --- a/src/main/java/emu/grasscutter/game/CoopRequest.java +++ b/src/main/java/emu/grasscutter/game/CoopRequest.java @@ -1,17 +1,19 @@ package emu.grasscutter.game; +import emu.grasscutter.game.player.Player; + public class CoopRequest { - private final GenshinPlayer requester; + private final Player requester; private final long requestTime; private final long expireTime; - public CoopRequest(GenshinPlayer requester) { + public CoopRequest(Player requester) { this.requester = requester; this.requestTime = System.currentTimeMillis(); this.expireTime = this.requestTime + 10000; } - public GenshinPlayer getRequester() { + public Player getRequester() { return requester; } diff --git a/src/main/java/emu/grasscutter/game/avatar/GenshinAvatar.java b/src/main/java/emu/grasscutter/game/avatar/Avatar.java similarity index 88% rename from src/main/java/emu/grasscutter/game/avatar/GenshinAvatar.java rename to src/main/java/emu/grasscutter/game/avatar/Avatar.java index b6007e280..d16b9a2fa 100644 --- a/src/main/java/emu/grasscutter/game/avatar/GenshinAvatar.java +++ b/src/main/java/emu/grasscutter/game/avatar/Avatar.java @@ -16,7 +16,7 @@ import dev.morphia.annotations.PostLoad; import dev.morphia.annotations.PrePersist; import dev.morphia.annotations.Transient; import emu.grasscutter.Grasscutter; -import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.GameData; import emu.grasscutter.data.common.FightPropData; import emu.grasscutter.data.custom.OpenConfigEntry; import emu.grasscutter.data.def.AvatarData; @@ -35,10 +35,10 @@ import emu.grasscutter.data.def.WeaponPromoteData; import emu.grasscutter.data.def.ItemData.WeaponProperty; import emu.grasscutter.data.def.ProudSkillData; import emu.grasscutter.database.DatabaseHelper; -import emu.grasscutter.game.GenshinPlayer; import emu.grasscutter.game.entity.EntityAvatar; import emu.grasscutter.game.inventory.EquipType; -import emu.grasscutter.game.inventory.GenshinItem; +import emu.grasscutter.game.inventory.GameItem; +import emu.grasscutter.game.player.Player; import emu.grasscutter.game.props.ElementType; import emu.grasscutter.game.props.EntityIdType; import emu.grasscutter.game.props.FetterState; @@ -57,11 +57,11 @@ import it.unimi.dsi.fastutil.ints.Int2ObjectMap; import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; @Entity(value = "avatars", useDiscriminator = false) -public class GenshinAvatar { +public class Avatar { @Id private ObjectId id; @Indexed private int ownerId; // Id of player that this avatar belongs to - @Transient private GenshinPlayer owner; + @Transient private Player owner; @Transient private AvatarData data; @Transient private long guid; // Player unique id private int avatarId; // Id of avatar @@ -73,7 +73,7 @@ public class GenshinAvatar { private int satiationPenalty; // ? private float currentHp; - @Transient private final Int2ObjectMap<GenshinItem> equips; + @Transient private final Int2ObjectMap<GameItem> equips; @Transient private final Int2FloatOpenHashMap fightProp; @Transient private Set<String> extraAbilityEmbryos; @@ -96,21 +96,21 @@ public class GenshinAvatar { private int nameCardRewardId; private int nameCardId; - public GenshinAvatar() { + public Avatar() { // Morhpia only! this.equips = new Int2ObjectOpenHashMap<>(); this.fightProp = new Int2FloatOpenHashMap(); this.extraAbilityEmbryos = new HashSet<>(); this.proudSkillBonusMap = new HashMap<>(); - this.fetters = new ArrayList<>(); // TODO Move to genshin avatar + this.fetters = new ArrayList<>(); // TODO Move to avatar } // On creation - public GenshinAvatar(int avatarId) { - this(GenshinData.getAvatarDataMap().get(avatarId)); + public Avatar(int avatarId) { + this(GameData.getAvatarDataMap().get(avatarId)); } - public GenshinAvatar(AvatarData data) { + public Avatar(AvatarData data) { this(); this.avatarId = data.getId(); this.nameCardRewardId = data.getNameCardRewardId(); @@ -143,7 +143,7 @@ public class GenshinAvatar { this.onLoad(); } - public GenshinPlayer getPlayer() { + public Player getPlayer() { return this.owner; } @@ -163,10 +163,10 @@ public class GenshinAvatar { return ownerId; } - public void setOwner(GenshinPlayer player) { + public void setOwner(Player player) { this.owner = player; this.ownerId = player.getUid(); - this.guid = player.getNextGenshinGuid(); + this.guid = player.getNextGameGuid(); } public int getSatiation() { @@ -229,19 +229,19 @@ public class GenshinAvatar { this.promoteLevel = promoteLevel; } - public Int2ObjectMap<GenshinItem> getEquips() { + public Int2ObjectMap<GameItem> getEquips() { return equips; } - public GenshinItem getEquipBySlot(EquipType slot) { + public GameItem getEquipBySlot(EquipType slot) { return this.getEquips().get(slot.getValue()); } - private GenshinItem getEquipBySlot(int slotId) { + private GameItem getEquipBySlot(int slotId) { return this.getEquips().get(slotId); } - public GenshinItem getWeapon() { + public GameItem getWeapon() { return this.getEquipBySlot(EquipType.EQUIP_WEAPON); } @@ -270,7 +270,7 @@ public class GenshinAvatar { } if (openData.getNeedAvatarPromoteLevel() <= this.getPromoteLevel()) { int proudSkillId = (openData.getProudSkillGroupId() * 100) + 1; - if (GenshinData.getProudSkillDataMap().containsKey(proudSkillId)) { + if (GameData.getProudSkillDataMap().containsKey(proudSkillId)) { this.getProudSkillList().add(proudSkillId); } } @@ -385,7 +385,7 @@ public class GenshinAvatar { return bornTime; } - public boolean equipItem(GenshinItem item, boolean shouldRecalc) { + public boolean equipItem(GameItem item, boolean shouldRecalc) { EquipType itemEquipType = item.getItemData().getEquipType(); if (itemEquipType == EquipType.EQUIP_NONE) { return false; @@ -416,7 +416,7 @@ public class GenshinAvatar { } public boolean unequipItem(EquipType slot) { - GenshinItem item = getEquips().remove(slot.getValue()); + GameItem item = getEquips().remove(slot.getValue()); if (item != null) { item.setEquipCharacter(0); @@ -434,7 +434,7 @@ public class GenshinAvatar { public void recalcStats(boolean forceSendAbilityChange) { // Setup AvatarData data = this.getAvatarData(); - AvatarPromoteData promoteData = GenshinData.getAvatarPromoteData(data.getAvatarPromoteId(), this.getPromoteLevel()); + AvatarPromoteData promoteData = GameData.getAvatarPromoteData(data.getAvatarPromoteId(), this.getPromoteLevel()); Int2IntOpenHashMap setMap = new Int2IntOpenHashMap(); // Extra ability embryos @@ -476,21 +476,21 @@ public class GenshinAvatar { // Artifacts for (int slotId = 1; slotId <= 5; slotId++) { // Get artifact - GenshinItem equip = this.getEquipBySlot(slotId); + GameItem equip = this.getEquipBySlot(slotId); if (equip == null) { continue; } // Artifact main stat - ReliquaryMainPropData mainPropData = GenshinData.getReliquaryMainPropDataMap().get(equip.getMainPropId()); + ReliquaryMainPropData mainPropData = GameData.getReliquaryMainPropDataMap().get(equip.getMainPropId()); if (mainPropData != null) { - ReliquaryLevelData levelData = GenshinData.getRelicLevelData(equip.getItemData().getRankLevel(), equip.getLevel()); + ReliquaryLevelData levelData = GameData.getRelicLevelData(equip.getItemData().getRankLevel(), equip.getLevel()); if (levelData != null) { this.addFightProperty(mainPropData.getFightProp(), levelData.getPropValue(mainPropData.getFightProp())); } } // Artifact sub stats for (int appendPropId : equip.getAppendPropIdList()) { - ReliquaryAffixData affixData = GenshinData.getReliquaryAffixDataMap().get(appendPropId); + ReliquaryAffixData affixData = GameData.getReliquaryAffixDataMap().get(appendPropId); if (affixData != null) { this.addFightProperty(affixData.getFightProp(), affixData.getPropValue()); } @@ -503,7 +503,7 @@ public class GenshinAvatar { // Set stuff for (Int2IntOpenHashMap.Entry e : setMap.int2IntEntrySet()) { - ReliquarySetData setData = GenshinData.getReliquarySetDataMap().get(e.getIntKey()); + ReliquarySetData setData = GameData.getReliquarySetDataMap().get(e.getIntKey()); if (setData == null) { continue; } @@ -516,7 +516,7 @@ public class GenshinAvatar { if (amount >= setData.getSetNeedNum()[setIndex]) { int affixId = (setData.getEquipAffixId() * 10) + setIndex; - EquipAffixData affix = GenshinData.getEquipAffixDataMap().get(affixId); + EquipAffixData affix = GameData.getEquipAffixDataMap().get(affixId); if (affix == null) { continue; } @@ -535,17 +535,17 @@ public class GenshinAvatar { } // Weapon - GenshinItem weapon = this.getWeapon(); + GameItem weapon = this.getWeapon(); if (weapon != null) { // Add stats - WeaponCurveData curveData = GenshinData.getWeaponCurveDataMap().get(weapon.getLevel()); + WeaponCurveData curveData = GameData.getWeaponCurveDataMap().get(weapon.getLevel()); if (curveData != null) { for (WeaponProperty weaponProperty : weapon.getItemData().getWeaponProperties()) { this.addFightProperty(weaponProperty.getFightProp(), weaponProperty.getInitValue() * curveData.getMultByProp(weaponProperty.getType())); } } // Weapon promotion stats - WeaponPromoteData wepPromoteData = GenshinData.getWeaponPromoteData(weapon.getItemData().getWeaponPromoteId(), weapon.getPromoteLevel()); + WeaponPromoteData wepPromoteData = GameData.getWeaponPromoteData(weapon.getItemData().getWeaponPromoteId(), weapon.getPromoteLevel()); if (wepPromoteData != null) { for (FightPropData prop : wepPromoteData.getAddProps()) { if (prop.getValue() == 0f || prop.getProp() == null) { @@ -563,7 +563,7 @@ public class GenshinAvatar { } // Calculate affix id int affixId = (af * 10) + weapon.getRefinement(); - EquipAffixData affix = GenshinData.getEquipAffixDataMap().get(affixId); + EquipAffixData affix = GameData.getEquipAffixDataMap().get(affixId); if (affix == null) { continue; } @@ -580,7 +580,7 @@ public class GenshinAvatar { } // Add proud skills and unlock them if needed - AvatarSkillDepotData skillDepot = GenshinData.getAvatarSkillDepotDataMap().get(this.getSkillDepotId()); + AvatarSkillDepotData skillDepot = GameData.getAvatarSkillDepotDataMap().get(this.getSkillDepotId()); this.getProudSkillList().clear(); for (InherentProudSkillOpens openData : skillDepot.getInherentProudSkillOpens()) { if (openData.getProudSkillGroupId() == 0) { @@ -588,7 +588,7 @@ public class GenshinAvatar { } if (openData.getNeedAvatarPromoteLevel() <= this.getPromoteLevel()) { int proudSkillId = (openData.getProudSkillGroupId() * 100) + 1; - if (GenshinData.getProudSkillDataMap().containsKey(proudSkillId)) { + if (GameData.getProudSkillDataMap().containsKey(proudSkillId)) { this.getProudSkillList().add(proudSkillId); } } @@ -596,7 +596,7 @@ public class GenshinAvatar { // Proud skills for (int proudSkillId : this.getProudSkillList()) { - ProudSkillData proudSkillData = GenshinData.getProudSkillDataMap().get(proudSkillId); + ProudSkillData proudSkillData = GameData.getProudSkillDataMap().get(proudSkillId); if (proudSkillData == null) { continue; } @@ -613,7 +613,7 @@ public class GenshinAvatar { // Constellations if (this.getTalentIdList().size() > 0) { for (int talentId : this.getTalentIdList()) { - AvatarTalentData avatarTalentData = GenshinData.getAvatarTalentDataMap().get(talentId); + AvatarTalentData avatarTalentData = GameData.getAvatarTalentDataMap().get(talentId); if (avatarTalentData == null) { return; } @@ -657,7 +657,7 @@ public class GenshinAvatar { return; } - OpenConfigEntry entry = GenshinData.getOpenConfigEntries().get(openConfig); + OpenConfigEntry entry = GameData.getOpenConfigEntries().get(openConfig); if (entry == null) { if (forceAdd) { // Add config string to ability skill list anyways @@ -684,14 +684,14 @@ public class GenshinAvatar { if (this.getTalentIdList().size() > 0) { for (int talentId : this.getTalentIdList()) { - AvatarTalentData avatarTalentData = GenshinData.getAvatarTalentDataMap().get(talentId); + AvatarTalentData avatarTalentData = GameData.getAvatarTalentDataMap().get(talentId); if (avatarTalentData == null || avatarTalentData.getOpenConfig() == null || avatarTalentData.getOpenConfig().length() == 0) { continue; } // Get open config to find which skill should be boosted - OpenConfigEntry entry = GenshinData.getOpenConfigEntries().get(avatarTalentData.getOpenConfig()); + OpenConfigEntry entry = GameData.getOpenConfigEntries().get(avatarTalentData.getOpenConfig()); if (entry == null) { continue; } @@ -712,7 +712,7 @@ public class GenshinAvatar { } // Get proud skill group id - AvatarSkillData skillData = GenshinData.getAvatarSkillDataMap().get(skillId); + AvatarSkillData skillData = GameData.getAvatarSkillDataMap().get(skillId); if (skillData == null) { continue; @@ -778,14 +778,14 @@ public class GenshinAvatar { .setCoreProudSkillLevel(this.getCoreProudSkillLevel()) .putAllSkillLevelMap(this.getSkillLevelMap()) .addAllInherentProudSkillList(this.getProudSkillList()) - .putAllProudSkillExtraLevel(getProudSkillBonusMap()) + .putAllProudSkillExtraLevelMap(getProudSkillBonusMap()) .setAvatarType(1) .setBornTime(this.getBornTime()) .setFetterInfo(avatarFetter) .setWearingFlycloakId(this.getFlyCloak()) .setCostumeId(this.getCostume()); - for (GenshinItem item : this.getEquips().values()) { + for (GameItem item : this.getEquips().values()) { avatarInfo.addEquipGuidList(item.getGuid()); } diff --git a/src/main/java/emu/grasscutter/game/avatar/AvatarProfileData.java b/src/main/java/emu/grasscutter/game/avatar/AvatarProfileData.java index d04c9d326..b38855b81 100644 --- a/src/main/java/emu/grasscutter/game/avatar/AvatarProfileData.java +++ b/src/main/java/emu/grasscutter/game/avatar/AvatarProfileData.java @@ -7,7 +7,7 @@ public class AvatarProfileData { private int avatarId; private int level; - public AvatarProfileData(GenshinAvatar avatar) { + public AvatarProfileData(Avatar avatar) { this.update(avatar); } @@ -19,7 +19,7 @@ public class AvatarProfileData { return level; } - public void update(GenshinAvatar avatar) { + public void update(Avatar avatar) { this.avatarId = avatar.getAvatarId(); this.level = avatar.getLevel(); } diff --git a/src/main/java/emu/grasscutter/game/avatar/AvatarStorage.java b/src/main/java/emu/grasscutter/game/avatar/AvatarStorage.java index 5162156bc..99ccda173 100644 --- a/src/main/java/emu/grasscutter/game/avatar/AvatarStorage.java +++ b/src/main/java/emu/grasscutter/game/avatar/AvatarStorage.java @@ -3,12 +3,12 @@ package emu.grasscutter.game.avatar; import java.util.Iterator; import java.util.List; -import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.GameData; import emu.grasscutter.data.def.AvatarData; import emu.grasscutter.database.DatabaseHelper; -import emu.grasscutter.game.GenshinPlayer; import emu.grasscutter.game.entity.EntityAvatar; -import emu.grasscutter.game.inventory.GenshinItem; +import emu.grasscutter.game.inventory.GameItem; +import emu.grasscutter.game.player.Player; import emu.grasscutter.server.packet.send.PacketAvatarChangeCostumeNotify; import emu.grasscutter.server.packet.send.PacketAvatarFlycloakChangeNotify; import it.unimi.dsi.fastutil.ints.Int2ObjectMap; @@ -16,22 +16,22 @@ import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; import it.unimi.dsi.fastutil.longs.Long2ObjectMap; import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap; -public class AvatarStorage implements Iterable<GenshinAvatar> { - private final GenshinPlayer player; - private final Int2ObjectMap<GenshinAvatar> avatars; - private final Long2ObjectMap<GenshinAvatar> avatarsGuid; +public class AvatarStorage implements Iterable<Avatar> { + private final Player player; + private final Int2ObjectMap<Avatar> avatars; + private final Long2ObjectMap<Avatar> avatarsGuid; - public AvatarStorage(GenshinPlayer player) { + public AvatarStorage(Player player) { this.player = player; this.avatars = new Int2ObjectOpenHashMap<>(); this.avatarsGuid = new Long2ObjectOpenHashMap<>(); } - public GenshinPlayer getPlayer() { + public Player getPlayer() { return player; } - public Int2ObjectMap<GenshinAvatar> getAvatars() { + public Int2ObjectMap<Avatar> getAvatars() { return avatars; } @@ -39,11 +39,11 @@ public class AvatarStorage implements Iterable<GenshinAvatar> { return this.avatars.size(); } - public GenshinAvatar getAvatarById(int id) { + public Avatar getAvatarById(int id) { return getAvatars().get(id); } - public GenshinAvatar getAvatarByGuid(long id) { + public Avatar getAvatarByGuid(long id) { return avatarsGuid.get(id); } @@ -51,7 +51,7 @@ public class AvatarStorage implements Iterable<GenshinAvatar> { return getAvatars().containsKey(id); } - public boolean addAvatar(GenshinAvatar avatar) { + public boolean addAvatar(Avatar avatar) { if (avatar.getAvatarData() == null || this.hasAvatar(avatar.getAvatarId())) { return false; } @@ -68,14 +68,14 @@ public class AvatarStorage implements Iterable<GenshinAvatar> { return true; } - public void addStartingWeapon(GenshinAvatar avatar) { + public void addStartingWeapon(Avatar avatar) { // Make sure avatar owner is this player if (avatar.getPlayer() != this.getPlayer()) { return; } // Create weapon - GenshinItem weapon = new GenshinItem(avatar.getAvatarData().getInitialWeapon()); + GameItem weapon = new GameItem(avatar.getAvatarData().getInitialWeapon()); if (weapon.getItemData() != null) { this.getPlayer().getInventory().addItem(weapon); @@ -85,7 +85,7 @@ public class AvatarStorage implements Iterable<GenshinAvatar> { } public boolean wearFlycloak(long avatarGuid, int flycloakId) { - GenshinAvatar avatar = this.getAvatarByGuid(avatarGuid); + Avatar avatar = this.getAvatarByGuid(avatarGuid); if (avatar == null || !getPlayer().getFlyCloakList().contains(flycloakId)) { return false; @@ -101,7 +101,7 @@ public class AvatarStorage implements Iterable<GenshinAvatar> { } public boolean changeCostume(long avatarGuid, int costumeId) { - GenshinAvatar avatar = this.getAvatarByGuid(avatarGuid); + Avatar avatar = this.getAvatarByGuid(avatarGuid); if (avatar == null) { return false; @@ -130,15 +130,15 @@ public class AvatarStorage implements Iterable<GenshinAvatar> { } public void loadFromDatabase() { - List<GenshinAvatar> avatars = DatabaseHelper.getAvatars(getPlayer()); + List<Avatar> avatars = DatabaseHelper.getAvatars(getPlayer()); - for (GenshinAvatar avatar : avatars) { + for (Avatar avatar : avatars) { // Should never happen if (avatar.getObjectId() == null) { continue; } - AvatarData avatarData = GenshinData.getAvatarDataMap().get(avatar.getAvatarId()); + AvatarData avatarData = GameData.getAvatarDataMap().get(avatar.getAvatarId()); if (avatarData == null) { continue; } @@ -157,7 +157,7 @@ public class AvatarStorage implements Iterable<GenshinAvatar> { } public void postLoad() { - for (GenshinAvatar avatar : this) { + for (Avatar avatar : this) { // Weapon check if (avatar.getWeapon() == null) { this.addStartingWeapon(avatar); @@ -168,7 +168,7 @@ public class AvatarStorage implements Iterable<GenshinAvatar> { } @Override - public Iterator<GenshinAvatar> iterator() { + public Iterator<Avatar> iterator() { return getAvatars().values().iterator(); } } diff --git a/src/main/java/emu/grasscutter/game/entity/EntityAvatar.java b/src/main/java/emu/grasscutter/game/entity/EntityAvatar.java index 233da5288..a21e14360 100644 --- a/src/main/java/emu/grasscutter/game/entity/EntityAvatar.java +++ b/src/main/java/emu/grasscutter/game/entity/EntityAvatar.java @@ -1,18 +1,18 @@ package emu.grasscutter.game.entity; -import emu.grasscutter.GenshinConstants; -import emu.grasscutter.data.GenshinData; +import emu.grasscutter.GameConstants; +import emu.grasscutter.data.GameData; import emu.grasscutter.data.def.AvatarData; import emu.grasscutter.data.def.AvatarSkillDepotData; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.GenshinScene; -import emu.grasscutter.game.World; -import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.game.avatar.Avatar; import emu.grasscutter.game.inventory.EquipType; -import emu.grasscutter.game.inventory.GenshinItem; +import emu.grasscutter.game.inventory.GameItem; +import emu.grasscutter.game.player.Player; import emu.grasscutter.game.props.EntityIdType; import emu.grasscutter.game.props.FightProperty; import emu.grasscutter.game.props.PlayerProperty; +import emu.grasscutter.game.world.Scene; +import emu.grasscutter.game.world.World; import emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock; import emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo; import emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo; @@ -34,29 +34,29 @@ import emu.grasscutter.utils.Utils; import it.unimi.dsi.fastutil.ints.Int2FloatMap; import it.unimi.dsi.fastutil.ints.Int2FloatOpenHashMap; -public class EntityAvatar extends GenshinEntity { - private final GenshinAvatar avatar; +public class EntityAvatar extends GameEntity { + private final Avatar avatar; private PlayerDieType killedType; private int killedBy; - public EntityAvatar(GenshinScene scene, GenshinAvatar avatar) { + public EntityAvatar(Scene scene, Avatar avatar) { super(scene); this.avatar = avatar; this.id = getScene().getWorld().getNextEntityId(EntityIdType.AVATAR); - GenshinItem weapon = this.getAvatar().getWeapon(); + GameItem weapon = this.getAvatar().getWeapon(); if (weapon != null) { weapon.setWeaponEntityId(getScene().getWorld().getNextEntityId(EntityIdType.WEAPON)); } } - public EntityAvatar(GenshinAvatar avatar) { + public EntityAvatar(Avatar avatar) { super(null); this.avatar = avatar; } - public GenshinPlayer getPlayer() { + public Player getPlayer() { return avatar.getPlayer(); } @@ -70,7 +70,7 @@ public class EntityAvatar extends GenshinEntity { return getPlayer().getRotation(); } - public GenshinAvatar getAvatar() { + public Avatar getAvatar() { return avatar; } @@ -101,13 +101,13 @@ public class EntityAvatar extends GenshinEntity { @Override public void onDeath(int killerId) { - this.killedType = PlayerDieType.PlayerDieKillByMonster; + this.killedType = PlayerDieType.PLAYER_DIE_KILL_BY_MONSTER; this.killedBy = killerId; } public SceneAvatarInfo getSceneAvatarInfo() { SceneAvatarInfo.Builder avatarInfo = SceneAvatarInfo.newBuilder() - .setPlayerId(this.getPlayer().getUid()) + .setUid(this.getPlayer().getUid()) .setAvatarId(this.getAvatar().getAvatarId()) .setGuid(this.getAvatar().getGuid()) .setPeerId(this.getPlayer().getPeerId()) @@ -122,7 +122,7 @@ public class EntityAvatar extends GenshinEntity { .setCostumeId(this.getAvatar().getCostume()) .setBornTime(this.getAvatar().getBornTime()); - for (GenshinItem item : avatar.getEquips().values()) { + for (GameItem item : avatar.getEquips().values()) { if (item.getItemData().getEquipType() == EquipType.EQUIP_WEAPON) { avatarInfo.setWeapon(item.createSceneWeaponInfo()); } else { @@ -145,7 +145,7 @@ public class EntityAvatar extends GenshinEntity { SceneEntityInfo.Builder entityInfo = SceneEntityInfo.newBuilder() .setEntityId(getId()) - .setEntityType(ProtEntityType.ProtEntityAvatar) + .setEntityType(ProtEntityType.PROT_ENTITY_AVATAR) .addAnimatorParaList(AnimatorParameterValueInfoPair.newBuilder()) .setEntityClientData(EntityClientData.newBuilder()) .setEntityAuthorityInfo(authority) @@ -161,7 +161,7 @@ public class EntityAvatar extends GenshinEntity { if (entry.getIntKey() == 0) { continue; } - FightPropPair fightProp = FightPropPair.newBuilder().setType(entry.getIntKey()).setPropValue(entry.getFloatValue()).build(); + FightPropPair fightProp = FightPropPair.newBuilder().setPropType(entry.getIntKey()).setPropValue(entry.getFloatValue()).build(); entityInfo.addFightPropList(fightProp); } @@ -187,17 +187,17 @@ public class EntityAvatar extends GenshinEntity { AbilityEmbryo emb = AbilityEmbryo.newBuilder() .setAbilityId(++embryoId) .setAbilityNameHash(id) - .setAbilityOverrideNameHash(GenshinConstants.DEFAULT_ABILITY_NAME) + .setAbilityOverrideNameHash(GameConstants.DEFAULT_ABILITY_NAME) .build(); abilityControlBlock.addAbilityEmbryoList(emb); } } // Add default abilities - for (int id : GenshinConstants.DEFAULT_ABILITY_HASHES) { + for (int id : GameConstants.DEFAULT_ABILITY_HASHES) { AbilityEmbryo emb = AbilityEmbryo.newBuilder() .setAbilityId(++embryoId) .setAbilityNameHash(id) - .setAbilityOverrideNameHash(GenshinConstants.DEFAULT_ABILITY_NAME) + .setAbilityOverrideNameHash(GameConstants.DEFAULT_ABILITY_NAME) .build(); abilityControlBlock.addAbilityEmbryoList(emb); } @@ -206,18 +206,18 @@ public class EntityAvatar extends GenshinEntity { AbilityEmbryo emb = AbilityEmbryo.newBuilder() .setAbilityId(++embryoId) .setAbilityNameHash(id) - .setAbilityOverrideNameHash(GenshinConstants.DEFAULT_ABILITY_NAME) + .setAbilityOverrideNameHash(GameConstants.DEFAULT_ABILITY_NAME) .build(); abilityControlBlock.addAbilityEmbryoList(emb); } // Add skill depot abilities - AvatarSkillDepotData skillDepot = GenshinData.getAvatarSkillDepotDataMap().get(this.getAvatar().getSkillDepotId()); + AvatarSkillDepotData skillDepot = GameData.getAvatarSkillDepotDataMap().get(this.getAvatar().getSkillDepotId()); if (skillDepot != null && skillDepot.getAbilities() != null) { for (int id : skillDepot.getAbilities()) { AbilityEmbryo emb = AbilityEmbryo.newBuilder() .setAbilityId(++embryoId) .setAbilityNameHash(id) - .setAbilityOverrideNameHash(GenshinConstants.DEFAULT_ABILITY_NAME) + .setAbilityOverrideNameHash(GameConstants.DEFAULT_ABILITY_NAME) .build(); abilityControlBlock.addAbilityEmbryoList(emb); } @@ -228,7 +228,7 @@ public class EntityAvatar extends GenshinEntity { AbilityEmbryo emb = AbilityEmbryo.newBuilder() .setAbilityId(++embryoId) .setAbilityNameHash(Utils.abilityHash(skill)) - .setAbilityOverrideNameHash(GenshinConstants.DEFAULT_ABILITY_NAME) + .setAbilityOverrideNameHash(GameConstants.DEFAULT_ABILITY_NAME) .build(); abilityControlBlock.addAbilityEmbryoList(emb); } diff --git a/src/main/java/emu/grasscutter/game/entity/EntityClientGadget.java b/src/main/java/emu/grasscutter/game/entity/EntityClientGadget.java index 5fbd26502..464789426 100644 --- a/src/main/java/emu/grasscutter/game/entity/EntityClientGadget.java +++ b/src/main/java/emu/grasscutter/game/entity/EntityClientGadget.java @@ -1,11 +1,12 @@ package emu.grasscutter.game.entity; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.GenshinScene; -import emu.grasscutter.game.World; +import emu.grasscutter.game.player.Player; import emu.grasscutter.game.props.PlayerProperty; +import emu.grasscutter.game.world.Scene; +import emu.grasscutter.game.world.World; import emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo; import emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair; +import emu.grasscutter.net.proto.ClientGadgetInfoOuterClass; import emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo; import emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData; import emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo; @@ -23,7 +24,7 @@ import emu.grasscutter.utils.ProtoHelper; import it.unimi.dsi.fastutil.ints.Int2FloatOpenHashMap; public class EntityClientGadget extends EntityGadget { - private final GenshinPlayer owner; + private final Player owner; private final Position pos; private final Position rot; @@ -35,7 +36,7 @@ public class EntityClientGadget extends EntityGadget { private int targetEntityId; private boolean asyncLoad; - public EntityClientGadget(GenshinScene scene, GenshinPlayer player, EvtCreateGadgetNotify notify) { + public EntityClientGadget(Scene scene, Player player, EvtCreateGadgetNotify notify) { super(scene); this.owner = player; this.id = notify.getEntityId(); @@ -54,7 +55,7 @@ public class EntityClientGadget extends EntityGadget { return configId; } - public GenshinPlayer getOwner() { + public Player getOwner() { return owner; } @@ -112,7 +113,7 @@ public class EntityClientGadget extends EntityGadget { SceneEntityInfo.Builder entityInfo = SceneEntityInfo.newBuilder() .setEntityId(getId()) - .setEntityType(ProtEntityType.ProtEntityGadget) + .setEntityType(ProtEntityType.PROT_ENTITY_GADGET) .setMotionInfo(MotionInfo.newBuilder().setPos(getPosition().toProto()).setRot(getRotation().toProto()).setSpeed(Vector.newBuilder())) .addAnimatorParaList(AnimatorParameterValueInfoPair.newBuilder()) .setEntityClientData(EntityClientData.newBuilder()) @@ -125,7 +126,7 @@ public class EntityClientGadget extends EntityGadget { .build(); entityInfo.addPropList(pair); - GadgetClientParam clientGadget = GadgetClientParam.newBuilder() + ClientGadgetInfoOuterClass.ClientGadgetInfo clientGadget = ClientGadgetInfoOuterClass.ClientGadgetInfo.newBuilder() .setCampId(this.getCampId()) .setCampType(this.getCampType()) .setOwnerEntityId(this.getOwnerEntityId()) diff --git a/src/main/java/emu/grasscutter/game/entity/EntityGadget.java b/src/main/java/emu/grasscutter/game/entity/EntityGadget.java index 081c2fe3f..c09504c21 100644 --- a/src/main/java/emu/grasscutter/game/entity/EntityGadget.java +++ b/src/main/java/emu/grasscutter/game/entity/EntityGadget.java @@ -1,11 +1,11 @@ package emu.grasscutter.game.entity; -import emu.grasscutter.game.GenshinScene; -import emu.grasscutter.game.World; +import emu.grasscutter.game.world.Scene; +import emu.grasscutter.game.world.World; -public abstract class EntityGadget extends GenshinEntity { +public abstract class EntityGadget extends GameEntity { - public EntityGadget(GenshinScene scene) { + public EntityGadget(Scene scene) { super(scene); } diff --git a/src/main/java/emu/grasscutter/game/entity/EntityItem.java b/src/main/java/emu/grasscutter/game/entity/EntityItem.java index ba1188f13..5b1e05fc7 100644 --- a/src/main/java/emu/grasscutter/game/entity/EntityItem.java +++ b/src/main/java/emu/grasscutter/game/entity/EntityItem.java @@ -1,12 +1,12 @@ package emu.grasscutter.game.entity; import emu.grasscutter.data.def.ItemData; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.GenshinScene; -import emu.grasscutter.game.World; -import emu.grasscutter.game.inventory.GenshinItem; +import emu.grasscutter.game.inventory.GameItem; +import emu.grasscutter.game.player.Player; import emu.grasscutter.game.props.EntityIdType; import emu.grasscutter.game.props.PlayerProperty; +import emu.grasscutter.game.world.Scene; +import emu.grasscutter.game.world.World; import emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo; import emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair; import emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo; @@ -28,16 +28,16 @@ public class EntityItem extends EntityGadget { private final Position pos; private final Position rot; - private final GenshinItem item; + private final GameItem item; private final long guid; - public EntityItem(GenshinScene scene, GenshinPlayer player, ItemData itemData, Position pos, int count) { + public EntityItem(Scene scene, Player player, ItemData itemData, Position pos, int count) { super(scene); this.id = getScene().getWorld().getNextEntityId(EntityIdType.GADGET); this.pos = new Position(pos); this.rot = new Position(); - this.guid = player.getNextGenshinGuid(); - this.item = new GenshinItem(itemData, count); + this.guid = player.getNextGameGuid(); + this.item = new GameItem(itemData, count); } @Override @@ -45,7 +45,7 @@ public class EntityItem extends EntityGadget { return this.id; } - private GenshinItem getItem() { + private GameItem getItem() { return this.item; } @@ -92,7 +92,7 @@ public class EntityItem extends EntityGadget { SceneEntityInfo.Builder entityInfo = SceneEntityInfo.newBuilder() .setEntityId(getId()) - .setEntityType(ProtEntityType.ProtEntityGadget) + .setEntityType(ProtEntityType.PROT_ENTITY_GADGET) .setMotionInfo(MotionInfo.newBuilder().setPos(getPosition().toProto()).setRot(getRotation().toProto()).setSpeed(Vector.newBuilder())) .addAnimatorParaList(AnimatorParameterValueInfoPair.newBuilder()) .setEntityClientData(EntityClientData.newBuilder()) @@ -108,7 +108,7 @@ public class EntityItem extends EntityGadget { SceneGadgetInfo.Builder gadgetInfo = SceneGadgetInfo.newBuilder() .setGadgetId(this.getItemData().getGadgetId()) .setTrifleItem(this.getItem().toProto()) - .setBornType(GadgetBornType.GadgetBornInAir) + .setBornType(GadgetBornType.GADGET_BORN_IN_AIR) .setAuthorityPeerId(this.getWorld().getHostPeerId()) .setIsEnableInteract(true); diff --git a/src/main/java/emu/grasscutter/game/entity/EntityMonster.java b/src/main/java/emu/grasscutter/game/entity/EntityMonster.java index 754def22c..b9f212fe1 100644 --- a/src/main/java/emu/grasscutter/game/entity/EntityMonster.java +++ b/src/main/java/emu/grasscutter/game/entity/EntityMonster.java @@ -1,14 +1,14 @@ package emu.grasscutter.game.entity; -import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.GameData; import emu.grasscutter.data.common.PropGrowCurve; import emu.grasscutter.data.def.MonsterCurveData; import emu.grasscutter.data.def.MonsterData; -import emu.grasscutter.game.GenshinScene; -import emu.grasscutter.game.World; import emu.grasscutter.game.props.EntityIdType; import emu.grasscutter.game.props.FightProperty; import emu.grasscutter.game.props.PlayerProperty; +import emu.grasscutter.game.world.Scene; +import emu.grasscutter.game.world.World; import emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo; import emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair; import emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo; @@ -27,7 +27,7 @@ import emu.grasscutter.utils.ProtoHelper; import it.unimi.dsi.fastutil.ints.Int2FloatMap; import it.unimi.dsi.fastutil.ints.Int2FloatOpenHashMap; -public class EntityMonster extends GenshinEntity { +public class EntityMonster extends GameEntity { private final MonsterData monsterData; private final Int2FloatOpenHashMap fightProp; @@ -41,7 +41,7 @@ public class EntityMonster extends GenshinEntity { private int configId; private int poseId; - public EntityMonster(GenshinScene scene, MonsterData monsterData, Position pos, int level) { + public EntityMonster(Scene scene, MonsterData monsterData, Position pos, int level) { super(scene); this.id = getWorld().getNextEntityId(EntityIdType.MONSTER); this.monsterData = monsterData; @@ -160,7 +160,7 @@ public class EntityMonster extends GenshinEntity { this.setFightProperty(FightProperty.FIGHT_PROP_ICE_SUB_HURT, data.getIceSubHurt()); // Level curve - MonsterCurveData curve = GenshinData.getMonsterCurveDataMap().get(this.getLevel()); + MonsterCurveData curve = GameData.getMonsterCurveDataMap().get(this.getLevel()); if (curve != null) { for (PropGrowCurve growCurve : data.getPropGrowCurves()) { FightProperty prop = FightProperty.getPropByName(growCurve.getType()); @@ -197,7 +197,7 @@ public class EntityMonster extends GenshinEntity { SceneEntityInfo.Builder entityInfo = SceneEntityInfo.newBuilder() .setEntityId(getId()) - .setEntityType(ProtEntityType.ProtEntityMonster) + .setEntityType(ProtEntityType.PROT_ENTITY_MONSTER) .setMotionInfo(this.getMotionInfo()) .addAnimatorParaList(AnimatorParameterValueInfoPair.newBuilder()) .setEntityClientData(EntityClientData.newBuilder()) @@ -208,7 +208,7 @@ public class EntityMonster extends GenshinEntity { if (entry.getIntKey() == 0) { continue; } - FightPropPair fightProp = FightPropPair.newBuilder().setType(entry.getIntKey()).setPropValue(entry.getFloatValue()).build(); + FightPropPair fightProp = FightPropPair.newBuilder().setPropType(entry.getIntKey()).setPropValue(entry.getFloatValue()).build(); entityInfo.addFightPropList(fightProp); } @@ -226,7 +226,7 @@ public class EntityMonster extends GenshinEntity { .setAuthorityPeerId(getWorld().getHostPeerId()) .setPoseId(this.getPoseId()) .setBlockId(3001) - .setBornType(MonsterBornType.MonsterBornDefault) + .setBornType(MonsterBornType.MONSTER_BORN_DEFAULT) .setSpecialNameId(40); if (getMonsterData().getDescribeData() != null) { @@ -240,7 +240,7 @@ public class EntityMonster extends GenshinEntity { .setAbilityInfo(AbilitySyncStateInfo.newBuilder()) .build(); - monsterInfo.setWeaponList(weaponInfo); + monsterInfo.addWeaponList(weaponInfo); } entityInfo.setMonster(monsterInfo); diff --git a/src/main/java/emu/grasscutter/game/entity/GenshinEntity.java b/src/main/java/emu/grasscutter/game/entity/GameEntity.java similarity index 90% rename from src/main/java/emu/grasscutter/game/entity/GenshinEntity.java rename to src/main/java/emu/grasscutter/game/entity/GameEntity.java index a65d30f07..aef3378b6 100644 --- a/src/main/java/emu/grasscutter/game/entity/GenshinEntity.java +++ b/src/main/java/emu/grasscutter/game/entity/GameEntity.java @@ -1,10 +1,10 @@ package emu.grasscutter.game.entity; -import emu.grasscutter.game.GenshinScene; -import emu.grasscutter.game.World; import emu.grasscutter.game.props.FightProperty; import emu.grasscutter.game.props.LifeState; +import emu.grasscutter.game.world.Scene; import emu.grasscutter.game.world.SpawnDataEntry; +import emu.grasscutter.game.world.World; import emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo; import emu.grasscutter.net.proto.MotionStateOuterClass.MotionState; import emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo; @@ -12,18 +12,18 @@ import emu.grasscutter.net.proto.VectorOuterClass.Vector; import emu.grasscutter.utils.Position; import it.unimi.dsi.fastutil.ints.Int2FloatOpenHashMap; -public abstract class GenshinEntity { +public abstract class GameEntity { protected int id; - private final GenshinScene scene; + private final Scene scene; private SpawnDataEntry spawnEntry; private MotionState moveState; private int lastMoveSceneTimeMs; private int lastMoveReliableSeq; - public GenshinEntity(GenshinScene scene) { + public GameEntity(Scene scene) { this.scene = scene; - this.moveState = MotionState.MotionNone; + this.moveState = MotionState.MOTION_NONE; } public int getId() { @@ -34,7 +34,7 @@ public abstract class GenshinEntity { return this.getScene().getWorld(); } - public GenshinScene getScene() { + public Scene getScene() { return this.scene; } diff --git a/src/main/java/emu/grasscutter/game/friends/FriendsList.java b/src/main/java/emu/grasscutter/game/friends/FriendsList.java index 45a11fb1c..de73ecb30 100644 --- a/src/main/java/emu/grasscutter/game/friends/FriendsList.java +++ b/src/main/java/emu/grasscutter/game/friends/FriendsList.java @@ -3,7 +3,7 @@ package emu.grasscutter.game.friends; import java.util.List; import emu.grasscutter.database.DatabaseHelper; -import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.player.Player; import emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType; import emu.grasscutter.server.packet.send.PacketAskAddFriendNotify; import emu.grasscutter.server.packet.send.PacketAskAddFriendRsp; @@ -14,20 +14,20 @@ import it.unimi.dsi.fastutil.ints.Int2ObjectMap; import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; public class FriendsList { - private final GenshinPlayer player; + private final Player player; private final Int2ObjectMap<Friendship> friends; private final Int2ObjectMap<Friendship> pendingFriends; private boolean loaded = false; - public FriendsList(GenshinPlayer player) { + public FriendsList(Player player) { this.player = player; this.friends = new Int2ObjectOpenHashMap<Friendship>(); this.pendingFriends = new Int2ObjectOpenHashMap<Friendship>(); } - public GenshinPlayer getPlayer() { + public Player getPlayer() { return player; } @@ -83,7 +83,7 @@ public class FriendsList { return; } - GenshinPlayer target = getPlayer().getSession().getServer().getPlayerByUid(targetUid, true); + Player target = getPlayer().getSession().getServer().getPlayerByUid(targetUid, true); if (target == null) { return; // Should never happen } @@ -104,7 +104,7 @@ public class FriendsList { } // Handle - if (result == DealAddFriendResultType.DealAddFriendAccept) { // Request accepted + if (result == DealAddFriendResultType.DEAL_ADD_FRIEND_ACCEPT) { // Request accepted myFriendship.setIsFriend(true); theirFriendship.setIsFriend(true); @@ -143,7 +143,7 @@ public class FriendsList { myFriendship.delete(); Friendship theirFriendship = null; - GenshinPlayer friend = myFriendship.getFriendProfile().getPlayer(); + Player friend = myFriendship.getFriendProfile().getPlayer(); if (friend != null) { // Friend online theirFriendship = friend.getFriendsList().getFriendById(this.getPlayer().getUid()); @@ -165,7 +165,7 @@ public class FriendsList { } public synchronized void sendFriendRequest(int targetUid) { - GenshinPlayer target = getPlayer().getSession().getServer().getPlayerByUid(targetUid, true); + Player target = getPlayer().getSession().getServer().getPlayerByUid(targetUid, true); if (target == null || target == this.getPlayer()) { return; @@ -220,7 +220,7 @@ public class FriendsList { friendship.setOwner(getPlayer()); // Check if friend is online - GenshinPlayer friend = getPlayer().getSession().getServer().getPlayerByUid(friendship.getFriendProfile().getUid()); + Player friend = getPlayer().getSession().getServer().getPlayerByUid(friendship.getFriendProfile().getUid()); if (friend != null) { // Set friend to online mode friendship.setFriendProfile(friend); diff --git a/src/main/java/emu/grasscutter/game/friends/Friendship.java b/src/main/java/emu/grasscutter/game/friends/Friendship.java index 28561dc39..ef0bed109 100644 --- a/src/main/java/emu/grasscutter/game/friends/Friendship.java +++ b/src/main/java/emu/grasscutter/game/friends/Friendship.java @@ -1,10 +1,11 @@ package emu.grasscutter.game.friends; +import emu.grasscutter.net.proto.PlatformTypeOuterClass; import org.bson.types.ObjectId; import dev.morphia.annotations.*; import emu.grasscutter.database.DatabaseHelper; -import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.player.Player; import emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief; import emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState; import emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage; @@ -13,7 +14,7 @@ import emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage; public class Friendship { @Id private ObjectId id; - @Transient private GenshinPlayer owner; + @Transient private Player owner; @Indexed private int ownerId; @Indexed private int friendId; @@ -25,7 +26,7 @@ public class Friendship { @Deprecated // Morphia use only public Friendship() { } - public Friendship(GenshinPlayer owner, GenshinPlayer friend, GenshinPlayer asker) { + public Friendship(Player owner, Player friend, Player asker) { this.setOwner(owner); this.ownerId = owner.getUid(); this.friendId = friend.getUid(); @@ -33,11 +34,11 @@ public class Friendship { this.askerId = asker.getUid(); } - public GenshinPlayer getOwner() { + public Player getOwner() { return owner; } - public void setOwner(GenshinPlayer owner) { + public void setOwner(Player owner) { this.owner = owner; } @@ -69,7 +70,7 @@ public class Friendship { return profile; } - public void setFriendProfile(GenshinPlayer character) { + public void setFriendProfile(Player character) { if (character == null || this.friendId != character.getUid()) return; this.profile = character.getProfile(); } @@ -91,16 +92,16 @@ public class Friendship { .setUid(getFriendProfile().getUid()) .setNickname(getFriendProfile().getName()) .setLevel(getFriendProfile().getPlayerLevel()) - .setAvatar(HeadImage.newBuilder().setAvatarId(getFriendProfile().getAvatarId())) + .setAvatarId(HeadImage.newBuilder().setAvatarId(getFriendProfile().getAvatarId()).getAvatarId()) .setWorldLevel(getFriendProfile().getWorldLevel()) .setSignature(getFriendProfile().getSignature()) - .setOnlineState(getFriendProfile().isOnline() ? FriendOnlineState.FRIEND_ONLINE : FriendOnlineState.FRIEND_DISCONNECT) + .setOnlineState(getFriendProfile().isOnline() ? FriendOnlineState.FRIEND_ONLINE : FriendOnlineState.FREIEND_DISCONNECT) .setIsMpModeAvailable(true) .setLastActiveTime(getFriendProfile().getLastActiveTime()) .setNameCardId(getFriendProfile().getNameCard()) .setParam(getFriendProfile().getDaysSinceLogin()) - .setUnk1(1) - .setUnk2(3) + .setIsGameSource(true) + .setPlatformType(PlatformTypeOuterClass.PlatformType.PC) .build(); return proto; diff --git a/src/main/java/emu/grasscutter/game/friends/PlayerProfile.java b/src/main/java/emu/grasscutter/game/friends/PlayerProfile.java index 4af5f570e..8b39ec0f4 100644 --- a/src/main/java/emu/grasscutter/game/friends/PlayerProfile.java +++ b/src/main/java/emu/grasscutter/game/friends/PlayerProfile.java @@ -1,12 +1,12 @@ package emu.grasscutter.game.friends; import dev.morphia.annotations.*; -import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.player.Player; import emu.grasscutter.utils.Utils; @Entity public class PlayerProfile { - @Transient private GenshinPlayer player; + @Transient private Player player; @AlsoLoad("id") private int uid; private int nameCard; @@ -22,7 +22,7 @@ public class PlayerProfile { @Deprecated // Morphia only public PlayerProfile() { } - public PlayerProfile(GenshinPlayer player) { + public PlayerProfile(Player player) { this.uid = player.getUid(); this.syncWithCharacter(player); } @@ -31,11 +31,11 @@ public class PlayerProfile { return uid; } - public GenshinPlayer getPlayer() { + public Player getPlayer() { return player; } - public synchronized void setPlayer(GenshinPlayer player) { + public synchronized void setPlayer(Player player) { this.player = player; } @@ -83,7 +83,7 @@ public class PlayerProfile { return this.getPlayer() != null; } - public void syncWithCharacter(GenshinPlayer player) { + public void syncWithCharacter(Player player) { if (player == null) { return; } diff --git a/src/main/java/emu/grasscutter/game/gacha/GachaManager.java b/src/main/java/emu/grasscutter/game/gacha/GachaManager.java index ffb68a1d7..fa26569e4 100644 --- a/src/main/java/emu/grasscutter/game/gacha/GachaManager.java +++ b/src/main/java/emu/grasscutter/game/gacha/GachaManager.java @@ -12,13 +12,13 @@ import com.google.gson.reflect.TypeToken; import com.sun.nio.file.SensitivityWatchEventModifier; import emu.grasscutter.Grasscutter; -import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.GameData; import emu.grasscutter.data.def.ItemData; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.avatar.GenshinAvatar; -import emu.grasscutter.game.inventory.GenshinItem; +import emu.grasscutter.game.avatar.Avatar; +import emu.grasscutter.game.inventory.GameItem; import emu.grasscutter.game.inventory.ItemType; import emu.grasscutter.game.inventory.MaterialType; +import emu.grasscutter.game.player.Player; import emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem; import emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem; import emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp; @@ -89,7 +89,7 @@ public class GachaManager { } } - public synchronized void doPulls(GenshinPlayer player, int gachaType, int times) { + public synchronized void doPulls(Player player, int gachaType, int times) { // Sanity check if (times != 10 && times != 1) { return; @@ -108,7 +108,7 @@ public class GachaManager { // Spend currency if (banner.getCostItem() > 0) { - GenshinItem costItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(banner.getCostItem()); + GameItem costItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(banner.getCostItem()); if (costItem == null || costItem.getCount() < times) { return; } @@ -191,7 +191,7 @@ public class GachaManager { int stardust = 0, starglitter = 0; for (int itemId : wonItems) { - ItemData itemData = GenshinData.getItemDataMap().get(itemId); + ItemData itemData = GameData.getItemDataMap().get(itemId); if (itemData == null) { continue; } @@ -204,11 +204,11 @@ public class GachaManager { // Const check if (itemData.getMaterialType() == MaterialType.MATERIAL_AVATAR) { int avatarId = (itemData.getId() % 1000) + 10000000; - GenshinAvatar avatar = player.getAvatars().getAvatarById(avatarId); + Avatar avatar = player.getAvatars().getAvatarById(avatarId); if (avatar != null) { int constLevel = avatar.getCoreProudSkillLevel(); int constItemId = itemData.getId() + 100; - GenshinItem constItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(constItemId); + GameItem constItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(constItemId); if (constItem != null) { constLevel += constItem.getCount(); } @@ -249,7 +249,7 @@ public class GachaManager { } // Create item - GenshinItem item = new GenshinItem(itemData); + GameItem item = new GameItem(itemData); gachaItem.setGachaItem(item.toItemParam()); player.getInventory().addItem(item); diff --git a/src/main/java/emu/grasscutter/game/inventory/EquipInventoryTab.java b/src/main/java/emu/grasscutter/game/inventory/EquipInventoryTab.java index af33558c8..e1d6c062f 100644 --- a/src/main/java/emu/grasscutter/game/inventory/EquipInventoryTab.java +++ b/src/main/java/emu/grasscutter/game/inventory/EquipInventoryTab.java @@ -4,26 +4,26 @@ import java.util.HashSet; import java.util.Set; public class EquipInventoryTab implements InventoryTab { - private final Set<GenshinItem> items; + private final Set<GameItem> items; private final int maxCapacity; public EquipInventoryTab(int maxCapacity) { - this.items = new HashSet<GenshinItem>(); + this.items = new HashSet<GameItem>(); this.maxCapacity = maxCapacity; } @Override - public GenshinItem getItemById(int id) { + public GameItem getItemById(int id) { return null; } @Override - public void onAddItem(GenshinItem item) { + public void onAddItem(GameItem item) { this.items.add(item); } @Override - public void onRemoveItem(GenshinItem item) { + public void onRemoveItem(GameItem item) { this.items.remove(item); } diff --git a/src/main/java/emu/grasscutter/game/inventory/GenshinItem.java b/src/main/java/emu/grasscutter/game/inventory/GameItem.java similarity index 88% rename from src/main/java/emu/grasscutter/game/inventory/GenshinItem.java rename to src/main/java/emu/grasscutter/game/inventory/GameItem.java index 89c0e7169..8f3bef7f2 100644 --- a/src/main/java/emu/grasscutter/game/inventory/GenshinItem.java +++ b/src/main/java/emu/grasscutter/game/inventory/GameItem.java @@ -13,13 +13,13 @@ import dev.morphia.annotations.Indexed; import dev.morphia.annotations.PostLoad; import dev.morphia.annotations.Transient; -import emu.grasscutter.data.GenshinData; -import emu.grasscutter.data.GenshinDepot; +import emu.grasscutter.data.GameData; +import emu.grasscutter.data.GameDepot; import emu.grasscutter.data.def.ItemData; import emu.grasscutter.data.def.ReliquaryAffixData; import emu.grasscutter.data.def.ReliquaryMainPropData; import emu.grasscutter.database.DatabaseHelper; -import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.player.Player; import emu.grasscutter.game.props.FightProperty; import emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo; import emu.grasscutter.net.proto.EquipOuterClass.Equip; @@ -35,7 +35,7 @@ import emu.grasscutter.net.proto.WeaponOuterClass.Weapon; import emu.grasscutter.utils.WeightedList; @Entity(value = "items", useDiscriminator = false) -public class GenshinItem { +public class GameItem { @Id private ObjectId id; @Indexed private int ownerId; private int itemId; @@ -62,23 +62,23 @@ public class GenshinItem { private int equipCharacter; @Transient private int weaponEntityId; - public GenshinItem() { + public GameItem() { // Morphia only } - public GenshinItem(int itemId) { - this(GenshinData.getItemDataMap().get(itemId)); + public GameItem(int itemId) { + this(GameData.getItemDataMap().get(itemId)); } - public GenshinItem(int itemId, int count) { - this(GenshinData.getItemDataMap().get(itemId), count); + public GameItem(int itemId, int count) { + this(GameData.getItemDataMap().get(itemId), count); } - public GenshinItem(ItemData data) { + public GameItem(ItemData data) { this(data, 1); } - public GenshinItem(ItemData data, int count) { + public GameItem(ItemData data, int count) { this.itemId = data.getId(); this.itemData = data; @@ -103,7 +103,7 @@ public class GenshinItem { this.level = 1; this.appendPropIdList = new ArrayList<>(); // Create main property - ReliquaryMainPropData mainPropData = GenshinDepot.getRandomRelicMainProp(getItemData().getMainPropDepotId()); + ReliquaryMainPropData mainPropData = GameDepot.getRandomRelicMainProp(getItemData().getMainPropDepotId()); if (mainPropData != null) { this.mainPropId = mainPropData.getId(); } @@ -124,9 +124,9 @@ public class GenshinItem { return ownerId; } - public void setOwner(GenshinPlayer player) { + public void setOwner(Player player) { this.ownerId = player.getUid(); - this.guid = player.getNextGenshinGuid(); + this.guid = player.getNextGameGuid(); } public int getItemId() { return itemId; @@ -261,7 +261,7 @@ public class GenshinItem { } private void addNewAppendProp() { - List<ReliquaryAffixData> affixList = GenshinDepot.getRandomRelicAffixList(getItemData().getAppendPropDepotId()); + List<ReliquaryAffixData> affixList = GameDepot.getRandomRelicAffixList(getItemData().getAppendPropDepotId()); if (affixList == null) { return; @@ -269,13 +269,13 @@ public class GenshinItem { // Build blacklist - Dont add same stat as main/sub stat Set<FightProperty> blacklist = new HashSet<>(); - ReliquaryMainPropData mainPropData = GenshinData.getReliquaryMainPropDataMap().get(this.getMainPropId()); + ReliquaryMainPropData mainPropData = GameData.getReliquaryMainPropDataMap().get(this.getMainPropId()); if (mainPropData != null) { blacklist.add(mainPropData.getFightProp()); } int len = Math.min(4, this.getAppendPropIdList().size()); for (int i = 0; i < len; i++) { - ReliquaryAffixData affixData = GenshinData.getReliquaryAffixDataMap().get((int) this.getAppendPropIdList().get(i)); + ReliquaryAffixData affixData = GameData.getReliquaryAffixDataMap().get((int) this.getAppendPropIdList().get(i)); if (affixData != null) { blacklist.add(affixData.getFightProp()); } @@ -299,7 +299,7 @@ public class GenshinItem { } private void upgradeRandomAppendProp() { - List<ReliquaryAffixData> affixList = GenshinDepot.getRandomRelicAffixList(getItemData().getAppendPropDepotId()); + List<ReliquaryAffixData> affixList = GameDepot.getRandomRelicAffixList(getItemData().getAppendPropDepotId()); if (affixList == null) { return; @@ -309,7 +309,7 @@ public class GenshinItem { Set<FightProperty> whitelist = new HashSet<>(); int len = Math.min(4, this.getAppendPropIdList().size()); for (int i = 0; i < len; i++) { - ReliquaryAffixData affixData = GenshinData.getReliquaryAffixDataMap().get((int) this.getAppendPropIdList().get(i)); + ReliquaryAffixData affixData = GameData.getReliquaryAffixDataMap().get((int) this.getAppendPropIdList().get(i)); if (affixData != null) { whitelist.add(affixData.getFightProp()); } @@ -331,7 +331,7 @@ public class GenshinItem { @PostLoad public void onLoad() { if (this.itemData == null) { - this.itemData = GenshinData.getItemDataMap().get(getItemId()); + this.itemData = GameData.getItemDataMap().get(getItemId()); } } diff --git a/src/main/java/emu/grasscutter/game/inventory/Inventory.java b/src/main/java/emu/grasscutter/game/inventory/Inventory.java index 8954b1031..bb8dfad46 100644 --- a/src/main/java/emu/grasscutter/game/inventory/Inventory.java +++ b/src/main/java/emu/grasscutter/game/inventory/Inventory.java @@ -5,20 +5,22 @@ import java.util.Iterator; import java.util.LinkedList; import java.util.List; -import emu.grasscutter.GenshinConstants; +import emu.grasscutter.GameConstants; import emu.grasscutter.Grasscutter; -import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.GameData; import emu.grasscutter.data.def.AvatarCostumeData; import emu.grasscutter.data.def.AvatarData; import emu.grasscutter.data.def.AvatarFlycloakData; import emu.grasscutter.data.def.ItemData; import emu.grasscutter.database.DatabaseHelper; -import emu.grasscutter.game.GenshinPlayer; import emu.grasscutter.game.avatar.AvatarStorage; -import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.game.avatar.Avatar; import emu.grasscutter.game.entity.EntityAvatar; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.game.props.ActionReason; import emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam; import emu.grasscutter.server.packet.send.PacketAvatarEquipChangeNotify; +import emu.grasscutter.server.packet.send.PacketItemAddHintNotify; import emu.grasscutter.server.packet.send.PacketStoreItemChangeNotify; import emu.grasscutter.server.packet.send.PacketStoreItemDelNotify; import it.unimi.dsi.fastutil.ints.Int2ObjectMap; @@ -26,13 +28,13 @@ import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; import it.unimi.dsi.fastutil.longs.Long2ObjectMap; import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap; -public class Inventory implements Iterable<GenshinItem> { - private final GenshinPlayer player; +public class Inventory implements Iterable<GameItem> { + private final Player player; - private final Long2ObjectMap<GenshinItem> store; + private final Long2ObjectMap<GameItem> store; private final Int2ObjectMap<InventoryTab> inventoryTypes; - public Inventory(GenshinPlayer player) { + public Inventory(Player player) { this.player = player; this.store = new Long2ObjectOpenHashMap<>(); this.inventoryTypes = new Int2ObjectOpenHashMap<>(); @@ -43,7 +45,7 @@ public class Inventory implements Iterable<GenshinItem> { this.createInventoryTab(ItemType.ITEM_FURNITURE, new MaterialInventoryTab(Grasscutter.getConfig().getGameServerOptions().InventoryLimitFurniture)); } - public GenshinPlayer getPlayer() { + public Player getPlayer() { return player; } @@ -51,7 +53,7 @@ public class Inventory implements Iterable<GenshinItem> { return this.getPlayer().getAvatars(); } - public Long2ObjectMap<GenshinItem> getItems() { + public Long2ObjectMap<GameItem> getItems() { return store; } @@ -67,7 +69,7 @@ public class Inventory implements Iterable<GenshinItem> { this.getInventoryTypes().put(type.getValue(), tab); } - public GenshinItem getItemByGuid(long id) { + public GameItem getItemByGuid(long id) { return this.getItems().get(id); } @@ -76,19 +78,19 @@ public class Inventory implements Iterable<GenshinItem> { } public boolean addItem(int itemId, int count) { - ItemData itemData = GenshinData.getItemDataMap().get(itemId); + ItemData itemData = GameData.getItemDataMap().get(itemId); if (itemData == null) { return false; } - GenshinItem item = new GenshinItem(itemData, count); + GameItem item = new GameItem(itemData, count); return addItem(item); } - - public boolean addItem(GenshinItem item) { - GenshinItem result = putItem(item); + + public boolean addItem(GameItem item) { + GameItem result = putItem(item); if (result != null) { getPlayer().sendPacket(new PacketStoreItemChangeNotify(result)); @@ -98,34 +100,46 @@ public class Inventory implements Iterable<GenshinItem> { return false; } - public void addItems(Collection<GenshinItem> items) { - List<GenshinItem> changedItems = new LinkedList<>(); + public boolean addItem(GameItem item, ActionReason reason) { + boolean result = addItem(item); - for (GenshinItem item : items) { - GenshinItem result = putItem(item); + if (result && reason != null) { + getPlayer().sendPacket(new PacketItemAddHintNotify(item, reason)); + } + + return result; + } + + public void addItems(Collection<GameItem> items) { + this.addItems(items, null); + } + + public void addItems(Collection<GameItem> items, ActionReason reason) { + List<GameItem> changedItems = new LinkedList<>(); + + for (GameItem item : items) { + GameItem result = putItem(item); if (result != null) { changedItems.add(result); } } + if (changedItems.size() == 0) { + return; + } + + if (reason != null) { + getPlayer().sendPacket(new PacketItemAddHintNotify(changedItems, reason)); + } + getPlayer().sendPacket(new PacketStoreItemChangeNotify(changedItems)); } public void addItemParams(Collection<ItemParam> items) { - List<GenshinItem> changedItems = new LinkedList<>(); - - for (ItemParam itemParam : items) { - GenshinItem toAdd = new GenshinItem(itemParam.getItemId(), itemParam.getCount()); - GenshinItem result = putItem(toAdd); - if (result != null) { - changedItems.add(result); - } - } - - getPlayer().sendPacket(new PacketStoreItemChangeNotify(changedItems)); + addItems(items.stream().map(param -> new GameItem(param.getItemId(), param.getCount())).toList(), null); } - private synchronized GenshinItem putItem(GenshinItem item) { + private synchronized GameItem putItem(GameItem item) { // Dont add items that dont have a valid item definition. if (item.getItemData() == null) { return null; @@ -149,23 +163,23 @@ public class Inventory implements Iterable<GenshinItem> { // Get avatar id int avatarId = (item.getItemId() % 1000) + 10000000; // Dont let people give themselves extra main characters - if (avatarId == GenshinConstants.MAIN_CHARACTER_MALE || avatarId == GenshinConstants.MAIN_CHARACTER_FEMALE) { + if (avatarId == GameConstants.MAIN_CHARACTER_MALE || avatarId == GameConstants.MAIN_CHARACTER_FEMALE) { return null; } // Add avatar - AvatarData avatarData = GenshinData.getAvatarDataMap().get(avatarId); + AvatarData avatarData = GameData.getAvatarDataMap().get(avatarId); if (avatarData != null && !player.getAvatars().hasAvatar(avatarId)) { - this.getPlayer().addAvatar(new GenshinAvatar(avatarData)); + this.getPlayer().addAvatar(new Avatar(avatarData)); } return null; } else if (item.getItemData().getMaterialType() == MaterialType.MATERIAL_FLYCLOAK) { - AvatarFlycloakData flycloakData = GenshinData.getAvatarFlycloakDataMap().get(item.getItemId()); + AvatarFlycloakData flycloakData = GameData.getAvatarFlycloakDataMap().get(item.getItemId()); if (flycloakData != null && !player.getFlyCloakList().contains(item.getItemId())) { getPlayer().addFlycloak(item.getItemId()); } return null; } else if (item.getItemData().getMaterialType() == MaterialType.MATERIAL_COSTUME) { - AvatarCostumeData costumeData = GenshinData.getAvatarCostumeDataItemIdMap().get(item.getItemId()); + AvatarCostumeData costumeData = GameData.getAvatarCostumeDataItemIdMap().get(item.getItemId()); if (costumeData != null && !player.getCostumeList().contains(costumeData.getId())) { getPlayer().addCostume(costumeData.getId()); } @@ -176,7 +190,7 @@ public class Inventory implements Iterable<GenshinItem> { } return null; } else if (tab != null) { - GenshinItem existingItem = tab.getItemById(item.getItemId()); + GameItem existingItem = tab.getItemById(item.getItemId()); if (existingItem == null) { // Item type didnt exist before, we will add it to main inventory map if there is enough space if (tab.getSize() >= tab.getMaxCapacity()) { @@ -199,7 +213,7 @@ public class Inventory implements Iterable<GenshinItem> { return item; } - private synchronized void putItem(GenshinItem item, InventoryTab tab) { + private synchronized void putItem(GameItem item, InventoryTab tab) { // Set owner and guid FIRST! item.setOwner(getPlayer()); // Put in item store @@ -228,9 +242,9 @@ public class Inventory implements Iterable<GenshinItem> { } } - public void removeItems(List<GenshinItem> items) { + public void removeItems(List<GameItem> items) { // TODO Bulk delete - for (GenshinItem item : items) { + for (GameItem item : items) { this.removeItem(item, item.getCount()); } } @@ -240,7 +254,7 @@ public class Inventory implements Iterable<GenshinItem> { } public synchronized boolean removeItem(long guid, int count) { - GenshinItem item = this.getItemByGuid(guid); + GameItem item = this.getItemByGuid(guid); if (item == null) { return false; @@ -249,11 +263,11 @@ public class Inventory implements Iterable<GenshinItem> { return removeItem(item, count); } - public synchronized boolean removeItem(GenshinItem item) { + public synchronized boolean removeItem(GameItem item) { return removeItem(item, item.getCount()); } - public synchronized boolean removeItem(GenshinItem item, int count) { + public synchronized boolean removeItem(GameItem item, int count) { // Sanity check if (count <= 0 || item == null) { return false; @@ -282,7 +296,7 @@ public class Inventory implements Iterable<GenshinItem> { return true; } - private void deleteItem(GenshinItem item, InventoryTab tab) { + private void deleteItem(GameItem item, InventoryTab tab) { getItems().remove(item.getGuid()); if (tab != null) { tab.onRemoveItem(item); @@ -290,8 +304,8 @@ public class Inventory implements Iterable<GenshinItem> { } public boolean equipItem(long avatarGuid, long equipGuid) { - GenshinAvatar avatar = getPlayer().getAvatars().getAvatarByGuid(avatarGuid); - GenshinItem item = this.getItemByGuid(equipGuid); + Avatar avatar = getPlayer().getAvatars().getAvatarByGuid(avatarGuid); + GameItem item = this.getItemByGuid(equipGuid); if (avatar != null && item != null) { return avatar.equipItem(item, true); @@ -301,7 +315,7 @@ public class Inventory implements Iterable<GenshinItem> { } public boolean unequipItem(long avatarGuid, int slot) { - GenshinAvatar avatar = getPlayer().getAvatars().getAvatarByGuid(avatarGuid); + Avatar avatar = getPlayer().getAvatars().getAvatarByGuid(avatarGuid); EquipType equipType = EquipType.getTypeByValue(slot); if (avatar != null && equipType != EquipType.EQUIP_WEAPON) { @@ -316,15 +330,15 @@ public class Inventory implements Iterable<GenshinItem> { } public void loadFromDatabase() { - List<GenshinItem> items = DatabaseHelper.getInventoryItems(getPlayer()); + List<GameItem> items = DatabaseHelper.getInventoryItems(getPlayer()); - for (GenshinItem item : items) { + for (GameItem item : items) { // Should never happen if (item.getObjectId() == null) { continue; } - ItemData itemData = GenshinData.getItemDataMap().get(item.getItemId()); + ItemData itemData = GameData.getItemDataMap().get(item.getItemId()); if (itemData == null) { continue; } @@ -340,7 +354,7 @@ public class Inventory implements Iterable<GenshinItem> { // Equip to a character if possible if (item.isEquipped()) { - GenshinAvatar avatar = getPlayer().getAvatars().getAvatarById(item.getEquipCharacter()); + Avatar avatar = getPlayer().getAvatars().getAvatarById(item.getEquipCharacter()); boolean hasEquipped = false; if (avatar != null) { @@ -356,7 +370,7 @@ public class Inventory implements Iterable<GenshinItem> { } @Override - public Iterator<GenshinItem> iterator() { + public Iterator<GameItem> iterator() { return this.getItems().values().iterator(); } } diff --git a/src/main/java/emu/grasscutter/game/inventory/InventoryTab.java b/src/main/java/emu/grasscutter/game/inventory/InventoryTab.java index 72099642b..465c3cffa 100644 --- a/src/main/java/emu/grasscutter/game/inventory/InventoryTab.java +++ b/src/main/java/emu/grasscutter/game/inventory/InventoryTab.java @@ -1,11 +1,11 @@ package emu.grasscutter.game.inventory; public interface InventoryTab { - public GenshinItem getItemById(int id); + public GameItem getItemById(int id); - public void onAddItem(GenshinItem item); + public void onAddItem(GameItem item); - public void onRemoveItem(GenshinItem item); + public void onRemoveItem(GameItem item); public int getSize(); diff --git a/src/main/java/emu/grasscutter/game/inventory/MaterialInventoryTab.java b/src/main/java/emu/grasscutter/game/inventory/MaterialInventoryTab.java index f5ebfc5d7..7cea186db 100644 --- a/src/main/java/emu/grasscutter/game/inventory/MaterialInventoryTab.java +++ b/src/main/java/emu/grasscutter/game/inventory/MaterialInventoryTab.java @@ -4,7 +4,7 @@ import it.unimi.dsi.fastutil.ints.Int2ObjectMap; import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; public class MaterialInventoryTab implements InventoryTab { - private final Int2ObjectMap<GenshinItem> items; + private final Int2ObjectMap<GameItem> items; private final int maxCapacity; public MaterialInventoryTab(int maxCapacity) { @@ -13,17 +13,17 @@ public class MaterialInventoryTab implements InventoryTab { } @Override - public GenshinItem getItemById(int id) { + public GameItem getItemById(int id) { return this.items.get(id); } @Override - public void onAddItem(GenshinItem item) { + public void onAddItem(GameItem item) { this.items.put(item.getItemId(), item); } @Override - public void onRemoveItem(GenshinItem item) { + public void onRemoveItem(GameItem item) { this.items.remove(item.getItemId()); } diff --git a/src/main/java/emu/grasscutter/game/mail/Mail.java b/src/main/java/emu/grasscutter/game/mail/Mail.java new file mode 100644 index 000000000..19fd79adc --- /dev/null +++ b/src/main/java/emu/grasscutter/game/mail/Mail.java @@ -0,0 +1,96 @@ +package emu.grasscutter.game.mail; + +import dev.morphia.annotations.Entity; +import emu.grasscutter.game.player.Player; + +import java.time.Instant; +import java.util.ArrayList; +import java.util.List; + +@Entity +public class Mail { + + public MailContent mailContent; + public List<MailItem> itemList; + public long sendTime; + public long expireTime; + public int importance; + public boolean isRead; + public boolean isAttachmentGot; + public int stateValue; + + public Mail() { + this(new MailContent(), new ArrayList<MailItem>(), (int) Instant.now().getEpochSecond() + 604800); // TODO: add expire time to send mail command + } + + public Mail(MailContent mailContent, List<MailItem> itemList, long expireTime) { + this(mailContent, itemList, expireTime, 0); + } + + public Mail(MailContent mailContent, List<MailItem> itemList, long expireTime, int importance) { + this(mailContent, itemList, expireTime, importance, 1); + } + + public Mail(MailContent mailContent, List<MailItem> itemList, long expireTime, int importance, int state) { + this.mailContent = mailContent; + this.itemList = itemList; + this.sendTime = (int) Instant.now().getEpochSecond(); + this.expireTime = expireTime; + this.importance = importance; // Starred mail, 0 = No star, 1 = Star. + this.isRead = false; + this.isAttachmentGot = false; + this.stateValue = state; // Different mailboxes, 1 = Default, 3 = Gift-box. + } + + @Entity + public static class MailContent { + public String title; + public String content; + public String sender; + + public MailContent() { + this.title = ""; + this.content = "loading..."; + this.sender = "loading"; + } + + public MailContent(String title, String content) { + this(title, content, "Server"); + } + + public MailContent(String title, String content, Player sender) { + this(title, content, sender.getNickname()); + } + + public MailContent(String title, String content, String sender) { + this.title = title; + this.content = content; + this.sender = sender; + } + } + + @Entity + public static class MailItem { + public int itemId; + public int itemCount; + public int itemLevel; + + public MailItem() { + this.itemId = 11101; + this.itemCount = 1; + this.itemLevel = 1; + } + + public MailItem(int itemId) { + this(itemId, 1); + } + + public MailItem(int itemId, int itemCount) { this(itemId, itemCount, 1); } + + public MailItem(int itemId, int itemCount, int itemLevel) { + this.itemId = itemId; + this.itemCount = itemCount; + this.itemLevel = itemLevel; + } + } +} diff --git a/src/main/java/emu/grasscutter/game/managers/ChatManager.java b/src/main/java/emu/grasscutter/game/managers/ChatManager.java index d9867e875..ababbf2e1 100644 --- a/src/main/java/emu/grasscutter/game/managers/ChatManager.java +++ b/src/main/java/emu/grasscutter/game/managers/ChatManager.java @@ -1,8 +1,8 @@ package emu.grasscutter.game.managers; import emu.grasscutter.command.CommandMap; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.server.game.GameServer; import emu.grasscutter.server.packet.send.PacketPlayerChatNotify; import emu.grasscutter.server.packet.send.PacketPrivateChatNotify; @@ -23,7 +23,7 @@ public class ChatManager { return server; } - public void sendPrivateMessage(GenshinPlayer player, int targetUid, String message) { + public void sendPrivateMessage(Player player, int targetUid, String message) { // Sanity checks if (message == null || message.length() == 0) { return; @@ -36,35 +36,35 @@ public class ChatManager { } // Get target - GenshinPlayer target = getServer().getPlayerByUid(targetUid); + Player target = getServer().getPlayerByUid(targetUid); if (target == null) { return; } // Create chat packet - GenshinPacket packet = new PacketPrivateChatNotify(player.getUid(), target.getUid(), message); + BasePacket packet = new PacketPrivateChatNotify(player.getUid(), target.getUid(), message); player.sendPacket(packet); target.sendPacket(packet); } - public void sendPrivateMessage(GenshinPlayer player, int targetUid, int emote) { + public void sendPrivateMessage(Player player, int targetUid, int emote) { // Get target - GenshinPlayer target = getServer().getPlayerByUid(targetUid); + Player target = getServer().getPlayerByUid(targetUid); if (target == null) { return; } // Create chat packet - GenshinPacket packet = new PacketPrivateChatNotify(player.getUid(), target.getUid(), emote); + BasePacket packet = new PacketPrivateChatNotify(player.getUid(), target.getUid(), emote); player.sendPacket(packet); target.sendPacket(packet); } - public void sendTeamMessage(GenshinPlayer player, int channel, String message) { + public void sendTeamMessage(Player player, int channel, String message) { // Sanity checks if (message == null || message.length() == 0) { return; @@ -80,7 +80,7 @@ public class ChatManager { player.getWorld().broadcastPacket(new PacketPlayerChatNotify(player, channel, message)); } - public void sendTeamMessage(GenshinPlayer player, int channel, int icon) { + public void sendTeamMessage(Player player, int channel, int icon) { // Create and send chat packet player.getWorld().broadcastPacket(new PacketPlayerChatNotify(player, channel, icon)); } diff --git a/src/main/java/emu/grasscutter/game/managers/InventoryManager.java b/src/main/java/emu/grasscutter/game/managers/InventoryManager.java index 4ea9e6bc1..904d2cbdd 100644 --- a/src/main/java/emu/grasscutter/game/managers/InventoryManager.java +++ b/src/main/java/emu/grasscutter/game/managers/InventoryManager.java @@ -5,7 +5,7 @@ import java.util.List; import java.util.Map; import java.util.stream.Collectors; -import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.GameData; import emu.grasscutter.data.common.ItemParamData; import emu.grasscutter.data.custom.OpenConfigEntry; import emu.grasscutter.data.def.AvatarPromoteData; @@ -15,11 +15,11 @@ import emu.grasscutter.data.def.WeaponPromoteData; import emu.grasscutter.data.def.AvatarSkillDepotData.InherentProudSkillOpens; import emu.grasscutter.data.def.AvatarTalentData; import emu.grasscutter.data.def.ProudSkillData; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.avatar.GenshinAvatar; -import emu.grasscutter.game.inventory.GenshinItem; +import emu.grasscutter.game.avatar.Avatar; +import emu.grasscutter.game.inventory.GameItem; import emu.grasscutter.game.inventory.ItemType; import emu.grasscutter.game.inventory.MaterialType; +import emu.grasscutter.game.player.Player; import emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam; import emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo; import emu.grasscutter.server.game.GameServer; @@ -72,8 +72,8 @@ public class InventoryManager { return server; } - public void lockEquip(GenshinPlayer player, long targetEquipGuid, boolean isLocked) { - GenshinItem equip = player.getInventory().getItemByGuid(targetEquipGuid); + public void lockEquip(Player player, long targetEquipGuid, boolean isLocked) { + GameItem equip = player.getInventory().getItemByGuid(targetEquipGuid); if (equip == null || !equip.getItemData().isEquip()) { return; @@ -86,8 +86,8 @@ public class InventoryManager { player.sendPacket(new PacketSetEquipLockStateRsp(equip)); } - public void upgradeRelic(GenshinPlayer player, long targetGuid, List<Long> foodRelicList, List<ItemParam> list) { - GenshinItem relic = player.getInventory().getItemByGuid(targetGuid); + public void upgradeRelic(Player player, long targetGuid, List<Long> foodRelicList, List<ItemParam> list) { + GameItem relic = player.getInventory().getItemByGuid(targetGuid); if (relic == null || relic.getItemType() != ItemType.ITEM_RELIQUARY) { return; @@ -98,7 +98,7 @@ public class InventoryManager { for (long guid : foodRelicList) { // Add to delete queue - GenshinItem food = player.getInventory().getItemByGuid(guid); + GameItem food = player.getInventory().getItemByGuid(guid); if (food == null || !food.isDestroyable()) { continue; } @@ -111,7 +111,7 @@ public class InventoryManager { } } for (ItemParam itemParam : list) { - GenshinItem food = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(itemParam.getItemId()); + GameItem food = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(itemParam.getItemId()); if (food == null || food.getItemData().getMaterialType() != MaterialType.MATERIAL_RELIQUARY_MATERIAL) { continue; } @@ -139,14 +139,14 @@ public class InventoryManager { // Consume food items for (long guid : foodRelicList) { - GenshinItem food = player.getInventory().getItemByGuid(guid); + GameItem food = player.getInventory().getItemByGuid(guid); if (food == null || !food.isDestroyable()) { continue; } player.getInventory().removeItem(food); } for (ItemParam itemParam : list) { - GenshinItem food = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(itemParam.getItemId()); + GameItem food = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(itemParam.getItemId()); if (food == null || food.getItemData().getMaterialType() != MaterialType.MATERIAL_RELIQUARY_MATERIAL) { continue; } @@ -169,7 +169,7 @@ public class InventoryManager { int oldLevel = level; int exp = relic.getExp(); int totalExp = relic.getTotalExp(); - int reqExp = GenshinData.getRelicExpRequired(relic.getItemData().getRankLevel(), level); + int reqExp = GameData.getRelicExpRequired(relic.getItemData().getRankLevel(), level); int upgrades = 0; List<Integer> oldAppendPropIdList = relic.getAppendPropIdList(); @@ -189,7 +189,7 @@ public class InventoryManager { upgrades += 1; } // Set req exp - reqExp = GenshinData.getRelicExpRequired(relic.getItemData().getRankLevel(), level); + reqExp = GameData.getRelicExpRequired(relic.getItemData().getRankLevel(), level); } } @@ -209,7 +209,7 @@ public class InventoryManager { // Avatar if (oldLevel != level) { - GenshinAvatar avatar = relic.getEquipCharacter() > 0 ? player.getAvatars().getAvatarById(relic.getEquipCharacter()) : null; + Avatar avatar = relic.getEquipCharacter() > 0 ? player.getAvatars().getAvatarById(relic.getEquipCharacter()) : null; if (avatar != null) { avatar.recalcStats(); } @@ -220,15 +220,15 @@ public class InventoryManager { player.sendPacket(new PacketReliquaryUpgradeRsp(relic, rate, oldLevel, oldAppendPropIdList)); } - public List<ItemParam> calcWeaponUpgradeReturnItems(GenshinPlayer player, long targetGuid, List<Long> foodWeaponGuidList, List<ItemParam> itemParamList) { - GenshinItem weapon = player.getInventory().getItemByGuid(targetGuid); + public List<ItemParam> calcWeaponUpgradeReturnItems(Player player, long targetGuid, List<Long> foodWeaponGuidList, List<ItemParam> itemParamList) { + GameItem weapon = player.getInventory().getItemByGuid(targetGuid); // Sanity checks if (weapon == null || weapon.getItemType() != ItemType.ITEM_WEAPON) { return null; } - WeaponPromoteData promoteData = GenshinData.getWeaponPromoteData(weapon.getItemData().getWeaponPromoteId(), weapon.getPromoteLevel()); + WeaponPromoteData promoteData = GameData.getWeaponPromoteData(weapon.getItemData().getWeaponPromoteId(), weapon.getPromoteLevel()); if (promoteData == null) { return null; } @@ -236,7 +236,7 @@ public class InventoryManager { // Get exp gain int expGain = 0; for (long guid : foodWeaponGuidList) { - GenshinItem food = player.getInventory().getItemByGuid(guid); + GameItem food = player.getInventory().getItemByGuid(guid); if (food == null) { continue; } @@ -246,7 +246,7 @@ public class InventoryManager { } } for (ItemParam param : itemParamList) { - GenshinItem food = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(param.getItemId()); + GameItem food = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(param.getItemId()); if (food == null || food.getItemData().getMaterialType() != MaterialType.MATERIAL_WEAPON_EXP_STONE) { continue; } @@ -264,7 +264,7 @@ public class InventoryManager { int maxLevel = promoteData.getUnlockMaxLevel(); int level = weapon.getLevel(); int exp = weapon.getExp(); - int reqExp = GenshinData.getWeaponExpRequired(weapon.getItemData().getRankLevel(), level); + int reqExp = GameData.getWeaponExpRequired(weapon.getItemData().getRankLevel(), level); while (expGain > 0 && reqExp > 0 && level < maxLevel) { // Do calculations @@ -277,7 +277,7 @@ public class InventoryManager { exp = 0; level += 1; // Set req exp - reqExp = GenshinData.getWeaponExpRequired(weapon.getItemData().getRankLevel(), level); + reqExp = GameData.getWeaponExpRequired(weapon.getItemData().getRankLevel(), level); } } @@ -285,15 +285,15 @@ public class InventoryManager { } - public void upgradeWeapon(GenshinPlayer player, long targetGuid, List<Long> foodWeaponGuidList, List<ItemParam> itemParamList) { - GenshinItem weapon = player.getInventory().getItemByGuid(targetGuid); + public void upgradeWeapon(Player player, long targetGuid, List<Long> foodWeaponGuidList, List<ItemParam> itemParamList) { + GameItem weapon = player.getInventory().getItemByGuid(targetGuid); // Sanity checks if (weapon == null || weapon.getItemType() != ItemType.ITEM_WEAPON) { return; } - WeaponPromoteData promoteData = GenshinData.getWeaponPromoteData(weapon.getItemData().getWeaponPromoteId(), weapon.getPromoteLevel()); + WeaponPromoteData promoteData = GameData.getWeaponPromoteData(weapon.getItemData().getWeaponPromoteId(), weapon.getPromoteLevel()); if (promoteData == null) { return; } @@ -302,7 +302,7 @@ public class InventoryManager { int expGain = 0, moraCost = 0; for (long guid : foodWeaponGuidList) { - GenshinItem food = player.getInventory().getItemByGuid(guid); + GameItem food = player.getInventory().getItemByGuid(guid); if (food == null || !food.isDestroyable()) { continue; } @@ -313,7 +313,7 @@ public class InventoryManager { } } for (ItemParam param : itemParamList) { - GenshinItem food = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(param.getItemId()); + GameItem food = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(param.getItemId()); if (food == null || food.getItemData().getMaterialType() != MaterialType.MATERIAL_WEAPON_EXP_STONE) { continue; } @@ -344,14 +344,14 @@ public class InventoryManager { // Consume weapon/items used to feed for (long guid : foodWeaponGuidList) { - GenshinItem food = player.getInventory().getItemByGuid(guid); + GameItem food = player.getInventory().getItemByGuid(guid); if (food == null || !food.isDestroyable()) { continue; } player.getInventory().removeItem(food); } for (ItemParam param : itemParamList) { - GenshinItem food = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(param.getItemId()); + GameItem food = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(param.getItemId()); if (food == null || food.getItemData().getMaterialType() != MaterialType.MATERIAL_WEAPON_EXP_STONE) { continue; } @@ -365,7 +365,7 @@ public class InventoryManager { int oldLevel = level; int exp = weapon.getExp(); int totalExp = weapon.getTotalExp(); - int reqExp = GenshinData.getWeaponExpRequired(weapon.getItemData().getRankLevel(), level); + int reqExp = GameData.getWeaponExpRequired(weapon.getItemData().getRankLevel(), level); while (expGain > 0 && reqExp > 0 && level < maxLevel) { // Do calculations @@ -379,7 +379,7 @@ public class InventoryManager { exp = 0; level += 1; // Set req exp - reqExp = GenshinData.getWeaponExpRequired(weapon.getItemData().getRankLevel(), level); + reqExp = GameData.getWeaponExpRequired(weapon.getItemData().getRankLevel(), level); } } @@ -393,7 +393,7 @@ public class InventoryManager { // Avatar if (oldLevel != level) { - GenshinAvatar avatar = weapon.getEquipCharacter() > 0 ? player.getAvatars().getAvatarById(weapon.getEquipCharacter()) : null; + Avatar avatar = weapon.getEquipCharacter() > 0 ? player.getAvatars().getAvatarById(weapon.getEquipCharacter()) : null; if (avatar != null) { avatar.recalcStats(); } @@ -429,9 +429,9 @@ public class InventoryManager { return leftoverOreList; } - public void refineWeapon(GenshinPlayer player, long targetGuid, long feedGuid) { - GenshinItem weapon = player.getInventory().getItemByGuid(targetGuid); - GenshinItem feed = player.getInventory().getItemByGuid(feedGuid); + public void refineWeapon(Player player, long targetGuid, long feedGuid) { + GameItem weapon = player.getInventory().getItemByGuid(targetGuid); + GameItem feed = player.getInventory().getItemByGuid(feedGuid); // Sanity checks if (weapon == null || feed == null || !feed.isDestroyable()) { @@ -478,7 +478,7 @@ public class InventoryManager { weapon.save(); // Avatar - GenshinAvatar avatar = weapon.getEquipCharacter() > 0 ? player.getAvatars().getAvatarById(weapon.getEquipCharacter()) : null; + Avatar avatar = weapon.getEquipCharacter() > 0 ? player.getAvatars().getAvatarById(weapon.getEquipCharacter()) : null; if (avatar != null) { avatar.recalcStats(); } @@ -488,16 +488,16 @@ public class InventoryManager { player.sendPacket(new PacketWeaponAwakenRsp(avatar, weapon, feed, oldRefineLevel)); } - public void promoteWeapon(GenshinPlayer player, long targetGuid) { - GenshinItem weapon = player.getInventory().getItemByGuid(targetGuid); + public void promoteWeapon(Player player, long targetGuid) { + GameItem weapon = player.getInventory().getItemByGuid(targetGuid); if (weapon == null || weapon.getItemType() != ItemType.ITEM_WEAPON) { return; } int nextPromoteLevel = weapon.getPromoteLevel() + 1; - WeaponPromoteData currentPromoteData = GenshinData.getWeaponPromoteData(weapon.getItemData().getWeaponPromoteId(), weapon.getPromoteLevel()); - WeaponPromoteData nextPromoteData = GenshinData.getWeaponPromoteData(weapon.getItemData().getWeaponPromoteId(), nextPromoteLevel); + WeaponPromoteData currentPromoteData = GameData.getWeaponPromoteData(weapon.getItemData().getWeaponPromoteId(), weapon.getPromoteLevel()); + WeaponPromoteData nextPromoteData = GameData.getWeaponPromoteData(weapon.getItemData().getWeaponPromoteId(), nextPromoteLevel); if (currentPromoteData == null || nextPromoteData == null) { return; } @@ -509,7 +509,7 @@ public class InventoryManager { // Make sure player has promote items for (ItemParamData cost : nextPromoteData.getCostItems()) { - GenshinItem feedItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(cost.getId()); + GameItem feedItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(cost.getId()); if (feedItem == null || feedItem.getCount() < cost.getCount()) { return; } @@ -524,7 +524,7 @@ public class InventoryManager { // Consume promote filler items for (ItemParamData cost : nextPromoteData.getCostItems()) { - GenshinItem feedItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(cost.getId()); + GameItem feedItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(cost.getId()); player.getInventory().removeItem(feedItem, cost.getCount()); } @@ -533,7 +533,7 @@ public class InventoryManager { weapon.save(); // Avatar - GenshinAvatar avatar = weapon.getEquipCharacter() > 0 ? player.getAvatars().getAvatarById(weapon.getEquipCharacter()) : null; + Avatar avatar = weapon.getEquipCharacter() > 0 ? player.getAvatars().getAvatarById(weapon.getEquipCharacter()) : null; if (avatar != null) { avatar.recalcStats(); } @@ -543,8 +543,8 @@ public class InventoryManager { player.sendPacket(new PacketWeaponPromoteRsp(weapon, oldPromoteLevel)); } - public void promoteAvatar(GenshinPlayer player, long guid) { - GenshinAvatar avatar = player.getAvatars().getAvatarByGuid(guid); + public void promoteAvatar(Player player, long guid) { + Avatar avatar = player.getAvatars().getAvatarByGuid(guid); // Sanity checks if (avatar == null) { @@ -552,8 +552,8 @@ public class InventoryManager { } int nextPromoteLevel = avatar.getPromoteLevel() + 1; - AvatarPromoteData currentPromoteData = GenshinData.getAvatarPromoteData(avatar.getAvatarData().getAvatarPromoteId(), avatar.getPromoteLevel()); - AvatarPromoteData nextPromoteData = GenshinData.getAvatarPromoteData(avatar.getAvatarData().getAvatarPromoteId(), nextPromoteLevel); + AvatarPromoteData currentPromoteData = GameData.getAvatarPromoteData(avatar.getAvatarData().getAvatarPromoteId(), avatar.getPromoteLevel()); + AvatarPromoteData nextPromoteData = GameData.getAvatarPromoteData(avatar.getAvatarData().getAvatarPromoteId(), nextPromoteLevel); if (currentPromoteData == null || nextPromoteData == null) { return; } @@ -565,7 +565,7 @@ public class InventoryManager { // Make sure player has cost items for (ItemParamData cost : nextPromoteData.getCostItems()) { - GenshinItem feedItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(cost.getId()); + GameItem feedItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(cost.getId()); if (feedItem == null || feedItem.getCount() < cost.getCount()) { return; } @@ -580,7 +580,7 @@ public class InventoryManager { // Consume promote filler items for (ItemParamData cost : nextPromoteData.getCostItems()) { - GenshinItem feedItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(cost.getId()); + GameItem feedItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(cost.getId()); player.getInventory().removeItem(feedItem, cost.getCount()); } @@ -588,7 +588,7 @@ public class InventoryManager { avatar.setPromoteLevel(nextPromoteLevel); // Update proud skills - AvatarSkillDepotData skillDepot = GenshinData.getAvatarSkillDepotDataMap().get(avatar.getSkillDepotId()); + AvatarSkillDepotData skillDepot = GameData.getAvatarSkillDepotDataMap().get(avatar.getSkillDepotId()); if (skillDepot != null && skillDepot.getInherentProudSkillOpens() != null) { for (InherentProudSkillOpens openData : skillDepot.getInherentProudSkillOpens()) { @@ -597,7 +597,7 @@ public class InventoryManager { } if (openData.getNeedAvatarPromoteLevel() == avatar.getPromoteLevel()) { int proudSkillId = (openData.getProudSkillGroupId() * 100) + 1; - if (GenshinData.getProudSkillDataMap().containsKey(proudSkillId)) { + if (GameData.getProudSkillDataMap().containsKey(proudSkillId)) { avatar.getProudSkillList().add(proudSkillId); player.sendPacket(new PacketProudSkillChangeNotify(avatar)); } @@ -614,20 +614,20 @@ public class InventoryManager { avatar.save(); } - public void upgradeAvatar(GenshinPlayer player, long guid, int itemId, int count) { - GenshinAvatar avatar = player.getAvatars().getAvatarByGuid(guid); + public void upgradeAvatar(Player player, long guid, int itemId, int count) { + Avatar avatar = player.getAvatars().getAvatarByGuid(guid); // Sanity checks if (avatar == null) { return; } - AvatarPromoteData promoteData = GenshinData.getAvatarPromoteData(avatar.getAvatarData().getAvatarPromoteId(), avatar.getPromoteLevel()); + AvatarPromoteData promoteData = GameData.getAvatarPromoteData(avatar.getAvatarData().getAvatarPromoteId(), avatar.getPromoteLevel()); if (promoteData == null) { return; } - GenshinItem feedItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(itemId); + GameItem feedItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(itemId); if (feedItem == null || feedItem.getItemData().getMaterialType() != MaterialType.MATERIAL_EXP_FRUIT || feedItem.getCount() < count) { return; @@ -660,8 +660,8 @@ public class InventoryManager { upgradeAvatar(player, avatar, promoteData, expGain); } - public void upgradeAvatar(GenshinPlayer player, GenshinAvatar avatar, int expGain) { - AvatarPromoteData promoteData = GenshinData.getAvatarPromoteData(avatar.getAvatarData().getAvatarPromoteId(), avatar.getPromoteLevel()); + public void upgradeAvatar(Player player, Avatar avatar, int expGain) { + AvatarPromoteData promoteData = GameData.getAvatarPromoteData(avatar.getAvatarData().getAvatarPromoteId(), avatar.getPromoteLevel()); if (promoteData == null) { return; } @@ -669,12 +669,12 @@ public class InventoryManager { upgradeAvatar(player, avatar, promoteData, expGain); } - public void upgradeAvatar(GenshinPlayer player, GenshinAvatar avatar, AvatarPromoteData promoteData, int expGain) { + public void upgradeAvatar(Player player, Avatar avatar, AvatarPromoteData promoteData, int expGain) { int maxLevel = promoteData.getUnlockMaxLevel(); int level = avatar.getLevel(); int oldLevel = level; int exp = avatar.getExp(); - int reqExp = GenshinData.getAvatarLevelExpRequired(level); + int reqExp = GameData.getAvatarLevelExpRequired(level); while (expGain > 0 && reqExp > 0 && level < maxLevel) { // Do calculations @@ -687,7 +687,7 @@ public class InventoryManager { exp = 0; level += 1; // Set req exp - reqExp = GenshinData.getAvatarLevelExpRequired(level); + reqExp = GameData.getAvatarLevelExpRequired(level); } } @@ -711,12 +711,12 @@ public class InventoryManager { player.sendPacket(new PacketAvatarUpgradeRsp(avatar, oldLevel, oldPropMap)); } - public void upgradeAvatarFetterLevel(GenshinPlayer player, GenshinAvatar avatar, int expGain) { + public void upgradeAvatarFetterLevel(Player player, Avatar avatar, int expGain) { // May work. Not test. int maxLevel = 10; // Keep it until I think of a more "elegant" way int level = avatar.getFetterLevel(); int exp = avatar.getFetterExp(); - int reqExp = GenshinData.getAvatarFetterLevelExpRequired(level); + int reqExp = GameData.getAvatarFetterLevelExpRequired(level); while (expGain > 0 && reqExp > 0 && level < maxLevel) { int toGain = Math.min(expGain, reqExp - exp); @@ -725,7 +725,7 @@ public class InventoryManager { if (exp >= reqExp) { exp = 0; level += 1; - reqExp = GenshinData.getAvatarFetterLevelExpRequired(level); + reqExp = GameData.getAvatarFetterLevelExpRequired(level); } } @@ -736,9 +736,9 @@ public class InventoryManager { player.sendPacket(new PacketAvatarPropNotify(avatar)); } - public void upgradeAvatarSkill(GenshinPlayer player, long guid, int skillId) { + public void upgradeAvatarSkill(Player player, long guid, int skillId) { // Sanity checks - GenshinAvatar avatar = player.getAvatars().getAvatarByGuid(guid); + Avatar avatar = player.getAvatars().getAvatarByGuid(guid); if (avatar == null) { return; } @@ -748,7 +748,7 @@ public class InventoryManager { return; } - AvatarSkillData skillData = GenshinData.getAvatarSkillDataMap().get(skillId); + AvatarSkillData skillData = GameData.getAvatarSkillDataMap().get(skillId); if (skillData == null) { return; } @@ -764,7 +764,7 @@ public class InventoryManager { } // Proud skill data - ProudSkillData proudSkill = GenshinData.getProudSkillDataMap().get(proudSkillId); + ProudSkillData proudSkill = GameData.getProudSkillDataMap().get(proudSkillId); if (proudSkill == null) { return; } @@ -779,7 +779,7 @@ public class InventoryManager { if (cost.getId() == 0) { continue; } - GenshinItem feedItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(cost.getId()); + GameItem feedItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(cost.getId()); if (feedItem == null || feedItem.getCount() < cost.getCount()) { return; } @@ -797,7 +797,7 @@ public class InventoryManager { if (cost.getId() == 0) { continue; } - GenshinItem feedItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(cost.getId()); + GameItem feedItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(cost.getId()); player.getInventory().removeItem(feedItem, cost.getCount()); } @@ -810,9 +810,9 @@ public class InventoryManager { player.sendPacket(new PacketAvatarSkillUpgradeRsp(avatar, skillId, currentLevel, nextLevel)); } - public void unlockAvatarConstellation(GenshinPlayer player, long guid) { + public void unlockAvatarConstellation(Player player, long guid) { // Sanity checks - GenshinAvatar avatar = player.getAvatars().getAvatarByGuid(guid); + Avatar avatar = player.getAvatars().getAvatarByGuid(guid); if (avatar == null) { return; } @@ -826,13 +826,13 @@ public class InventoryManager { nextTalentId = 40 + currentTalentLevel + 1; } - AvatarTalentData talentData = GenshinData.getAvatarTalentDataMap().get(nextTalentId); + AvatarTalentData talentData = GameData.getAvatarTalentDataMap().get(nextTalentId); if (talentData == null) { return; } - GenshinItem costItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(talentData.getMainCostItemId()); + GameItem costItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(talentData.getMainCostItemId()); if (costItem == null || costItem.getCount() < talentData.getMainCostItemCount()) { return; } @@ -849,7 +849,7 @@ public class InventoryManager { player.sendPacket(new PacketUnlockAvatarTalentRsp(avatar, nextTalentId)); // Proud skill bonus map (Extra skills) - OpenConfigEntry entry = GenshinData.getOpenConfigEntries().get(talentData.getOpenConfig()); + OpenConfigEntry entry = GameData.getOpenConfigEntries().get(talentData.getOpenConfig()); if (entry != null && entry.getExtraTalentIndex() > 0) { avatar.recalcProudSkillBonusMap(); player.sendPacket(new PacketProudSkillExtraLevelNotify(avatar, entry.getExtraTalentIndex())); @@ -860,7 +860,7 @@ public class InventoryManager { avatar.save(); } - public void destroyMaterial(GenshinPlayer player, List<MaterialInfo> list) { + public void destroyMaterial(Player player, List<MaterialInfo> list) { // Return materials Int2IntOpenHashMap returnMaterialMap = new Int2IntOpenHashMap(); @@ -870,7 +870,7 @@ public class InventoryManager { continue; } - GenshinItem item = player.getInventory().getItemByGuid(info.getGuid()); + GameItem item = player.getInventory().getItemByGuid(info.getGuid()); if (item == null || !item.isDestroyable()) { continue; } @@ -890,7 +890,7 @@ public class InventoryManager { // Give back items if (returnMaterialMap.size() > 0) { for (Int2IntMap.Entry e : returnMaterialMap.int2IntEntrySet()) { - player.getInventory().addItem(new GenshinItem(e.getIntKey(), e.getIntValue())); + player.getInventory().addItem(new GameItem(e.getIntKey(), e.getIntValue())); } } @@ -898,9 +898,9 @@ public class InventoryManager { player.sendPacket(new PacketDestroyMaterialRsp(returnMaterialMap)); } - public GenshinItem useItem(GenshinPlayer player, long targetGuid, long itemGuid, int count) { - GenshinAvatar target = player.getAvatars().getAvatarByGuid(targetGuid); - GenshinItem useItem = player.getInventory().getItemByGuid(itemGuid); + public GameItem useItem(Player player, long targetGuid, long itemGuid, int count) { + Avatar target = player.getAvatars().getAvatarByGuid(targetGuid); + GameItem useItem = player.getInventory().getItemByGuid(itemGuid); if (useItem == null) { return null; @@ -922,6 +922,11 @@ public class InventoryManager { default: break; } + + if (useItem.getItemId() == 1202) { + player.rechargeMoonCard(); + used = 1; + } if (used > 0) { player.getInventory().removeItem(useItem, used); diff --git a/src/main/java/emu/grasscutter/game/managers/MultiplayerManager.java b/src/main/java/emu/grasscutter/game/managers/MultiplayerManager.java index 56d629036..247b3356d 100644 --- a/src/main/java/emu/grasscutter/game/managers/MultiplayerManager.java +++ b/src/main/java/emu/grasscutter/game/managers/MultiplayerManager.java @@ -1,12 +1,13 @@ package emu.grasscutter.game.managers; import emu.grasscutter.game.CoopRequest; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.GenshinPlayer.SceneLoadState; import emu.grasscutter.game.props.EnterReason; +import emu.grasscutter.game.world.World; import emu.grasscutter.net.proto.EnterTypeOuterClass.EnterType; import emu.grasscutter.net.proto.PlayerApplyEnterMpReasonOuterClass.PlayerApplyEnterMpReason; -import emu.grasscutter.game.World; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.game.player.Player.SceneLoadState; +import emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass; import emu.grasscutter.server.game.GameServer; import emu.grasscutter.server.packet.send.PacketPlayerApplyEnterMpNotify; import emu.grasscutter.server.packet.send.PacketPlayerApplyEnterMpResultNotify; @@ -23,10 +24,10 @@ public class MultiplayerManager { return server; } - public void applyEnterMp(GenshinPlayer player, int targetUid) { - GenshinPlayer target = getServer().getPlayerByUid(targetUid); + public void applyEnterMp(Player player, int targetUid) { + Player target = getServer().getPlayerByUid(targetUid); if (target == null) { - player.sendPacket(new PacketPlayerApplyEnterMpResultNotify(targetUid, "", false, PlayerApplyEnterMpReason.PlayerCannotEnterMp)); + player.sendPacket(new PacketPlayerApplyEnterMpResultNotify(targetUid, "", false, PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify.Reason.PLAYER_CANNOT_ENTER_MP)); return; } @@ -58,7 +59,7 @@ public class MultiplayerManager { target.sendPacket(new PacketPlayerApplyEnterMpNotify(player)); } - public void applyEnterMpReply(GenshinPlayer hostPlayer, int applyUid, boolean isAgreed) { + public void applyEnterMpReply(Player hostPlayer, int applyUid, boolean isAgreed) { // Checks CoopRequest request = hostPlayer.getCoopRequests().get(applyUid); if (request == null || request.isExpired()) { @@ -66,17 +67,17 @@ public class MultiplayerManager { } // Remove now that we are handling it - GenshinPlayer requester = request.getRequester(); + Player requester = request.getRequester(); hostPlayer.getCoopRequests().remove(applyUid); // Sanity checks - Dont let the requesting player join if they are already in multiplayer if (requester.getWorld().isMultiplayer()) { - request.getRequester().sendPacket(new PacketPlayerApplyEnterMpResultNotify(hostPlayer, false, PlayerApplyEnterMpReason.PlayerCannotEnterMp)); + request.getRequester().sendPacket(new PacketPlayerApplyEnterMpResultNotify(hostPlayer, false, PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify.Reason.PLAYER_CANNOT_ENTER_MP)); return; } // Response packet - request.getRequester().sendPacket(new PacketPlayerApplyEnterMpResultNotify(hostPlayer, isAgreed, PlayerApplyEnterMpReason.PlayerJudge)); + request.getRequester().sendPacket(new PacketPlayerApplyEnterMpResultNotify(hostPlayer, isAgreed, PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify.Reason.PLAYER_JUDGE)); // Declined if (!isAgreed) { @@ -92,7 +93,7 @@ public class MultiplayerManager { world.addPlayer(hostPlayer); // Rejoin packet - hostPlayer.sendPacket(new PacketPlayerEnterSceneNotify(hostPlayer, hostPlayer, EnterType.EnterSelf, EnterReason.HostFromSingleToMp, hostPlayer.getScene().getId(), hostPlayer.getPos())); + hostPlayer.sendPacket(new PacketPlayerEnterSceneNotify(hostPlayer, hostPlayer, EnterType.ENTER_SELF, EnterReason.HostFromSingleToMp, hostPlayer.getScene().getId(), hostPlayer.getPos())); } // Set scene pos and id of requester to the host player's @@ -104,17 +105,17 @@ public class MultiplayerManager { hostPlayer.getWorld().addPlayer(requester); // Packet - requester.sendPacket(new PacketPlayerEnterSceneNotify(requester, hostPlayer, EnterType.EnterOther, EnterReason.TeamJoin, hostPlayer.getScene().getId(), hostPlayer.getPos())); + requester.sendPacket(new PacketPlayerEnterSceneNotify(requester, hostPlayer, EnterType.ENTER_OTHER, EnterReason.TeamJoin, hostPlayer.getScene().getId(), hostPlayer.getPos())); } - public boolean leaveCoop(GenshinPlayer player) { + public boolean leaveCoop(Player player) { // Make sure player's world is multiplayer if (!player.getWorld().isMultiplayer()) { return false; } // Make sure everyone's scene is loaded - for (GenshinPlayer p : player.getWorld().getPlayers()) { + for (Player p : player.getWorld().getPlayers()) { if (p.getSceneLoadState() != SceneLoadState.LOADED) { return false; } @@ -125,19 +126,19 @@ public class MultiplayerManager { world.addPlayer(player); // Packet - player.sendPacket(new PacketPlayerEnterSceneNotify(player, EnterType.EnterSelf, EnterReason.TeamBack, player.getScene().getId(), player.getPos())); + player.sendPacket(new PacketPlayerEnterSceneNotify(player, EnterType.ENTER_SELF, EnterReason.TeamBack, player.getScene().getId(), player.getPos())); return true; } - public boolean kickPlayer(GenshinPlayer player, int targetUid) { + public boolean kickPlayer(Player player, int targetUid) { // Make sure player's world is multiplayer and that player is owner if (!player.getWorld().isMultiplayer() || player.getWorld().getHost() != player) { return false; } // Get victim and sanity checks - GenshinPlayer victim = player.getServer().getPlayerByUid(targetUid); + Player victim = player.getServer().getPlayerByUid(targetUid); if (victim == null || victim == player) { return false; @@ -152,7 +153,7 @@ public class MultiplayerManager { World world = new World(victim); world.addPlayer(victim); - victim.sendPacket(new PacketPlayerEnterSceneNotify(victim, EnterType.EnterSelf, EnterReason.TeamKick, victim.getScene().getId(), victim.getPos())); + victim.sendPacket(new PacketPlayerEnterSceneNotify(victim, EnterType.ENTER_SELF, EnterReason.TeamKick, victim.getScene().getId(), victim.getPos())); return true; } } diff --git a/src/main/java/emu/grasscutter/game/InvokeHandler.java b/src/main/java/emu/grasscutter/game/player/InvokeHandler.java similarity index 58% rename from src/main/java/emu/grasscutter/game/InvokeHandler.java rename to src/main/java/emu/grasscutter/game/player/InvokeHandler.java index 727f93509..edfcbfc83 100644 --- a/src/main/java/emu/grasscutter/game/InvokeHandler.java +++ b/src/main/java/emu/grasscutter/game/player/InvokeHandler.java @@ -1,17 +1,18 @@ -package emu.grasscutter.game; +package emu.grasscutter.game.player; import java.util.ArrayList; import java.util.List; -import emu.grasscutter.net.packet.GenshinPacket; + +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType; public class InvokeHandler<T> { private final List<T> entryListForwardAll; private final List<T> entryListForwardAllExceptCur; private final List<T> entryListForwardHost; - private final Class<? extends GenshinPacket> packetClass; + private final Class<? extends BasePacket> packetClass; - public InvokeHandler(Class<? extends GenshinPacket> packetClass) { + public InvokeHandler(Class<? extends BasePacket> packetClass) { this.entryListForwardAll = new ArrayList<>(); this.entryListForwardAllExceptCur = new ArrayList<>(); this.entryListForwardHost = new ArrayList<>(); @@ -20,22 +21,15 @@ public class InvokeHandler<T> { public synchronized void addEntry(ForwardType forward, T entry) { switch (forward) { - case ForwardToAll: - entryListForwardAll.add(entry); - break; - case ForwardToAllExceptCur: - case ForwardToAllExistExceptCur: - entryListForwardAllExceptCur.add(entry); - break; - case ForwardToHost: - entryListForwardHost.add(entry); - break; - default: - break; + case FORWARD_TO_ALL -> entryListForwardAll.add(entry); + case FORWARD_TO_ALL_EXCEPT_CUR, FORWARD_TO_ALL_EXIST_EXCEPT_CUR -> entryListForwardAllExceptCur.add(entry); + case FORWARD_TO_HOST -> entryListForwardHost.add(entry); + default -> { + } } } - public synchronized void update(GenshinPlayer player) { + public synchronized void update(Player player) { if (player.getWorld() == null) { this.entryListForwardAll.clear(); this.entryListForwardAllExceptCur.clear(); @@ -45,17 +39,17 @@ public class InvokeHandler<T> { try { if (entryListForwardAll.size() > 0) { - GenshinPacket packet = packetClass.getDeclaredConstructor(List.class).newInstance(this.entryListForwardAll); + BasePacket packet = packetClass.getDeclaredConstructor(List.class).newInstance(this.entryListForwardAll); player.getScene().broadcastPacket(packet); this.entryListForwardAll.clear(); } if (entryListForwardAllExceptCur.size() > 0) { - GenshinPacket packet = packetClass.getDeclaredConstructor(List.class).newInstance(this.entryListForwardAllExceptCur); + BasePacket packet = packetClass.getDeclaredConstructor(List.class).newInstance(this.entryListForwardAllExceptCur); player.getScene().broadcastPacketToOthers(player, packet); this.entryListForwardAllExceptCur.clear(); } if (entryListForwardHost.size() > 0) { - GenshinPacket packet = packetClass.getDeclaredConstructor(List.class).newInstance(this.entryListForwardHost); + BasePacket packet = packetClass.getDeclaredConstructor(List.class).newInstance(this.entryListForwardHost); player.getWorld().getHost().sendPacket(packet); this.entryListForwardHost.clear(); } diff --git a/src/main/java/emu/grasscutter/game/GenshinPlayer.java b/src/main/java/emu/grasscutter/game/player/Player.java similarity index 75% rename from src/main/java/emu/grasscutter/game/GenshinPlayer.java rename to src/main/java/emu/grasscutter/game/player/Player.java index 95edb99b6..5970c3f13 100644 --- a/src/main/java/emu/grasscutter/game/GenshinPlayer.java +++ b/src/main/java/emu/grasscutter/game/player/Player.java @@ -1,25 +1,33 @@ -package emu.grasscutter.game; +package emu.grasscutter.game.player; + +import java.time.Instant; +import java.util.*; import dev.morphia.annotations.*; -import emu.grasscutter.GenshinConstants; +import emu.grasscutter.GameConstants; import emu.grasscutter.Grasscutter; -import emu.grasscutter.data.GenshinData; +import emu.grasscutter.command.CommandHandler; +import emu.grasscutter.data.GameData; import emu.grasscutter.data.def.PlayerLevelData; import emu.grasscutter.database.DatabaseHelper; import emu.grasscutter.game.avatar.AvatarProfileData; import emu.grasscutter.game.avatar.AvatarStorage; -import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.game.Account; +import emu.grasscutter.game.CoopRequest; +import emu.grasscutter.game.avatar.Avatar; import emu.grasscutter.game.entity.EntityItem; -import emu.grasscutter.game.entity.GenshinEntity; +import emu.grasscutter.game.entity.GameEntity; import emu.grasscutter.game.friends.FriendsList; import emu.grasscutter.game.friends.PlayerProfile; import emu.grasscutter.game.gacha.PlayerGachaInfo; -import emu.grasscutter.game.inventory.GenshinItem; +import emu.grasscutter.game.inventory.GameItem; import emu.grasscutter.game.inventory.Inventory; -import emu.grasscutter.game.player.PlayerBirthday; +import emu.grasscutter.game.mail.Mail; import emu.grasscutter.game.props.ActionReason; import emu.grasscutter.game.props.PlayerProperty; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.world.Scene; +import emu.grasscutter.game.world.World; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry; import emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry; import emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage; @@ -27,20 +35,22 @@ import emu.grasscutter.net.proto.InteractTypeOuterClass.InteractType; import emu.grasscutter.net.proto.MpSettingTypeOuterClass.MpSettingType; import emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo; import emu.grasscutter.net.proto.PlayerApplyEnterMpReasonOuterClass.PlayerApplyEnterMpReason; +import emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass; import emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo; +import emu.grasscutter.net.proto.PlayerWorldLocationInfoOuterClass; import emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail; -import emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo; import emu.grasscutter.server.game.GameServer; import emu.grasscutter.server.game.GameSession; import emu.grasscutter.server.packet.send.*; import emu.grasscutter.utils.Position; +import emu.grasscutter.utils.DateHelper; import it.unimi.dsi.fastutil.ints.Int2ObjectMap; import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; import java.util.*; @Entity(value = "players", useDiscriminator = false) -public class GenshinPlayer { +public class Player { @Id private int id; @Indexed(options = @IndexOptions(unique = true)) private String accountId; @@ -61,7 +71,7 @@ public class GenshinPlayer { @Transient private long nextGuid = 0; @Transient private int peerId; @Transient private World world; - @Transient private GenshinScene scene; + @Transient private Scene scene; @Transient private GameSession session; @Transient private AvatarStorage avatars; @Transient private Inventory inventory; @@ -70,16 +80,21 @@ public class GenshinPlayer { private TeamManager teamManager; private PlayerGachaInfo gachaInfo; private PlayerProfile playerProfile; - private MpSettingType mpSetting = MpSettingType.MpSettingEnterAfterApply; private boolean showAvatar; private ArrayList<AvatarProfileData> shownAvatars; private Set<Integer> rewardedLevels; + private ArrayList<Mail> mail; private int sceneId; private int regionId; private int mainCharacterId; private boolean godmode; + private boolean moonCard; + private Date moonCardStartTime; + private int moonCardDuration; + private Set<Date> moonCardGetTimes; + @Transient private boolean paused; @Transient private int enterSceneToken; @Transient private SceneLoadState sceneState; @@ -93,7 +108,7 @@ public class GenshinPlayer { @Deprecated @SuppressWarnings({"rawtypes", "unchecked"}) // Morphia only! - public GenshinPlayer() { + public Player() { this.inventory = new Inventory(this); this.avatars = new AvatarStorage(this); this.friendsList = new FriendsList(this); @@ -112,6 +127,8 @@ public class GenshinPlayer { this.flyCloakList = new HashSet<>(); this.costumeList = new HashSet<>(); + this.mail = new ArrayList<>(); + this.setSceneId(3); this.setRegionId(1); this.sceneState = SceneLoadState.NONE; @@ -123,10 +140,11 @@ public class GenshinPlayer { this.birthday = new PlayerBirthday(); this.rewardedLevels = new HashSet<>(); + this.moonCardGetTimes = new HashSet<>(); } // On player creation - public GenshinPlayer(GameSession session) { + public Player(GameSession session) { this(); this.account = session.getAccount(); this.accountId = this.getAccount().getId(); @@ -145,7 +163,7 @@ public class GenshinPlayer { this.setProperty(PlayerProperty.PROP_PLAYER_RESIN, 160); this.getFlyCloakList().add(140001); this.getNameCardList().add(210001); - this.getPos().set(GenshinConstants.START_POSITION); + this.getPos().set(GameConstants.START_POSITION); this.getRotation().set(0, 307, 0); } @@ -157,7 +175,7 @@ public class GenshinPlayer { this.id = id; } - public long getNextGenshinGuid() { + public long getNextGameGuid() { long nextId = ++this.nextGuid; return ((long) this.getUid() << 32) + nextId; } @@ -195,11 +213,11 @@ public class GenshinPlayer { this.world = world; } - public synchronized GenshinScene getScene() { + public synchronized Scene getScene() { return scene; } - public synchronized void setScene(GenshinScene scene) { + public synchronized void setScene(Scene scene) { this.scene = scene; } @@ -253,6 +271,11 @@ public class GenshinPlayer { public int getWorldLevel() { return this.getProperty(PlayerProperty.PROP_PLAYER_WORLD_LEVEL); } + + public void setWorldLevel(int level) { + this.setProperty(PlayerProperty.PROP_PLAYER_WORLD_LEVEL, level); + this.sendPacket(new PacketPlayerPropNotify(this, PlayerProperty.PROP_PLAYER_WORLD_LEVEL)); + } public int getPrimogems() { return this.getProperty(PlayerProperty.PROP_PLAYER_HCOIN); @@ -273,7 +296,7 @@ public class GenshinPlayer { } private int getExpRequired(int level) { - PlayerLevelData levelData = GenshinData.getPlayerLevelDataMap().get(level); + PlayerLevelData levelData = GameData.getPlayerLevelDataMap().get(level); return levelData != null ? levelData.getExp() : 0; } @@ -366,7 +389,7 @@ public class GenshinPlayer { } public MpSettingType getMpSetting() { - return mpSetting; + return MpSettingType.MP_SETTING_ENTER_AFTER_APPLY; // TEMP } public synchronized Int2ObjectMap<CoopRequest> getCoopRequests() { @@ -385,10 +408,6 @@ public class GenshinPlayer { return clientAbilityInitFinishHandler; } - public void setMpSetting(MpSettingType mpSetting) { - this.mpSetting = mpSetting; - } - public AvatarStorage getAvatars() { return avatars; } @@ -485,6 +504,94 @@ public class GenshinPlayer { this.regionId = regionId; } + public boolean inMoonCard() { + return moonCard; + } + + public void setMoonCard(boolean moonCard) { + this.moonCard = moonCard; + } + + public void addMoonCardDays(int days) { + this.moonCardDuration += days; + } + + public int getMoonCardDuration() { + return moonCardDuration; + } + + public void setMoonCardDuration(int moonCardDuration) { + this.moonCardDuration = moonCardDuration; + } + + public Date getMoonCardStartTime() { + return moonCardStartTime; + } + + public void setMoonCardStartTime(Date moonCardStartTime) { + this.moonCardStartTime = moonCardStartTime; + } + + public Set<Date> getMoonCardGetTimes() { + return moonCardGetTimes; + } + + public void setMoonCardGetTimes(Set<Date> moonCardGetTimes) { + this.moonCardGetTimes = moonCardGetTimes; + } + + public int getMoonCardRemainDays() { + Calendar remainCalendar = Calendar.getInstance(); + remainCalendar.setTime(moonCardStartTime); + remainCalendar.add(Calendar.DATE, moonCardDuration); + Date theLastDay = remainCalendar.getTime(); + Date now = DateHelper.onlyYearMonthDay(new Date()); + return (int) ((theLastDay.getTime() - now.getTime()) / (24 * 60 * 60 * 1000)); // By copilot + } + + public void rechargeMoonCard() { + LinkedList<GameItem> items = new LinkedList<GameItem>(); + for (int i = 0; i < 300; i++) { + items.add(new GameItem(203)); + } + inventory.addItems(items); + if (!moonCard) { + moonCard = true; + Date now = new Date(); + moonCardStartTime = DateHelper.onlyYearMonthDay(now); + moonCardDuration = 30; + } else { + moonCardDuration += 30; + } + if (!moonCardGetTimes.contains(moonCardStartTime)) { + moonCardGetTimes.add(moonCardStartTime); + } + } + + public void getTodayMoonCard() { + if (!moonCard) { + return; + } + Date now = DateHelper.onlyYearMonthDay(new Date()); + if (moonCardGetTimes.contains(now)) { + return; + } + Date stopTime = new Date(); + Calendar stopCalendar = Calendar.getInstance(); + stopCalendar.setTime(stopTime); + stopCalendar.add(Calendar.DATE, moonCardDuration); + stopTime = stopCalendar.getTime(); + if (now.after(stopTime)) { + moonCard = false; + return; + } + moonCardGetTimes.add(now); + addMoonCardDays(1); + GameItem item = new GameItem(201, 90); + getInventory().addItem(item, ActionReason.BlessingRedeemReward); + session.send(new PacketCardProductRewardNotify(getMoonCardRemainDays())); + } + public boolean inGodmode() { return godmode; } @@ -501,29 +608,19 @@ public class GenshinPlayer { this.hasSentAvatarDataNotify = hasSentAvatarDataNotify; } - public void addAvatar(GenshinAvatar avatar) { + public void addAvatar(Avatar avatar) { boolean result = getAvatars().addAvatar(avatar); if (result) { // Add starting weapon getAvatars().addStartingWeapon(avatar); - // Try adding to team if possible - //List<EntityAvatar> currentTeam = this.getTeamManager().getCurrentTeam(); - boolean addedToTeam = false; - - /* - if (currentTeam.size() <= GenshinConstants.MAX_AVATARS_IN_TEAM) { - addedToTeam = currentTeam - } - */ - // Done if (hasSentAvatarDataNotify()) { // Recalc stats avatar.recalcStats(); // Packet - sendPacket(new PacketAvatarAddNotify(avatar, addedToTeam)); + sendPacket(new PacketAvatarAddNotify(avatar, false)); } } else { // Failed adding avatar @@ -556,7 +653,7 @@ public class GenshinPlayer { } public void dropMessage(Object message) { - this.sendPacket(new PacketPrivateChatNotify(GenshinConstants.SERVER_CONSOLE_UID, getUid(), message.toString())); + this.sendPacket(new PacketPrivateChatNotify(GameConstants.SERVER_CONSOLE_UID, getUid(), message.toString())); } /** @@ -565,12 +662,53 @@ public class GenshinPlayer { * @param sender The sender of the message. * @param message The message to send. */ - public void sendMessage(GenshinPlayer sender, Object message) { + public void sendMessage(Player sender, Object message) { this.sendPacket(new PacketPrivateChatNotify(sender.getUid(), this.getUid(), message.toString())); } + // ---------------------MAIL------------------------ + + public List<Mail> getAllMail() { return this.mail; } + + public void sendMail(Mail message) { + this.mail.add(message); + this.save(); + Grasscutter.getLogger().info("Mail sent to user [" + this.getUid() + ":" + this.getNickname() + "]!"); + if(this.isOnline()) { + this.sendPacket(new PacketMailChangeNotify(this, message)); + } // TODO: setup a way for the mail notification to show up when someone receives mail when they were offline + } + + public boolean deleteMail(int mailId) { + Mail message = getMail(mailId); + + if(message != null) { + int index = getMailId(message); + message.expireTime = (int) Instant.now().getEpochSecond(); // Just set the mail as expired for now. I don't want to implement a counter specifically for an account... + this.replaceMailByIndex(index, message); + return true; + } + + return false; + } + + public Mail getMail(int index) { return this.mail.get(index); } + public int getMailId(Mail message) { + return this.mail.indexOf(message); + } + + public boolean replaceMailByIndex(int index, Mail message) { + if(getMail(index) != null) { + this.mail.set(index, message); + this.save(); + return true; + } else { + return false; + } + } + public void interactWith(int gadgetEntityId) { - GenshinEntity entity = getScene().getEntityById(gadgetEntityId); + GameEntity entity = getScene().getEntityById(gadgetEntityId); if (entity == null) { return; @@ -583,12 +721,11 @@ public class GenshinPlayer { if (entity instanceof EntityItem) { // Pick item EntityItem drop = (EntityItem) entity; - GenshinItem item = new GenshinItem(drop.getItemData(), drop.getCount()); + GameItem item = new GameItem(drop.getItemData(), drop.getCount()); // Add to inventory - boolean success = getInventory().addItem(item); + boolean success = getInventory().addItem(item, ActionReason.SubfieldDrop); if (success) { - this.sendPacket(new PacketGadgetInteractRsp(drop, InteractType.InteractPickItem)); - this.sendPacket(new PacketItemAddHintNotify(item, ActionReason.SubfieldDrop)); + this.sendPacket(new PacketGadgetInteractRsp(drop, InteractType.INTERACT_PICK_ITEM)); } } @@ -603,7 +740,7 @@ public class GenshinPlayer { } - public void sendPacket(GenshinPacket packet) { + public void sendPacket(BasePacket packet) { if (this.hasSentAvatarDataNotify) { this.getSession().send(packet); } @@ -617,7 +754,7 @@ public class GenshinPlayer { .setMpSettingType(this.getMpSetting()) .setNameCardId(this.getNameCardId()) .setSignature(this.getSignature()) - .setAvatar(HeadImage.newBuilder().setAvatarId(this.getHeadImage())); + .setAvatarId(HeadImage.newBuilder().setAvatarId(this.getHeadImage()).getAvatarId()); if (this.getWorld() != null) { onlineInfo.setCurPlayerNumInWorld(this.getWorld().getPlayers().indexOf(this) + 1); @@ -652,21 +789,19 @@ public class GenshinPlayer { public SocialDetail.Builder getSocialDetail() { SocialDetail.Builder social = SocialDetail.newBuilder() .setUid(this.getUid()) - .setAvatar(HeadImage.newBuilder().setAvatarId(this.getHeadImage())) + .setAvatarId(HeadImage.newBuilder().setAvatarId(this.getHeadImage()).getAvatarId()) .setNickname(this.getNickname()) .setSignature(this.getSignature()) .setLevel(this.getLevel()) .setBirthday(this.getBirthday().getFilledProtoWhenNotEmpty()) .setWorldLevel(this.getWorldLevel()) - .setUnk1(1) - .setUnk3(1) .setNameCardId(this.getNameCardId()) .setFinishAchievementNum(0); return social; } - - public WorldPlayerLocationInfo getWorldPlayerLocationInfo() { - return WorldPlayerLocationInfo.newBuilder() + + public PlayerWorldLocationInfoOuterClass.PlayerWorldLocationInfo getWorldPlayerLocationInfo() { + return PlayerWorldLocationInfoOuterClass.PlayerWorldLocationInfo.newBuilder() .setSceneId(this.getSceneId()) .setPlayerLoc(this.getPlayerLocationInfo()) .build(); @@ -691,7 +826,7 @@ public class GenshinPlayer { while (it.hasNext()) { CoopRequest req = it.next(); if (req.isExpired()) { - req.getRequester().sendPacket(new PacketPlayerApplyEnterMpResultNotify(this, false, PlayerApplyEnterMpReason.SystemJudge)); + req.getRequester().sendPacket(new PacketPlayerApplyEnterMpResultNotify(this, false, PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify.Reason.SYSTEM_JUDGE)); it.remove(); } } @@ -734,7 +869,7 @@ public class GenshinPlayer { // Check if player object exists in server // TODO - optimize - GenshinPlayer exists = this.getServer().getPlayerByUid(getUid()); + Player exists = this.getServer().getPlayerByUid(getUid()); if (exists != null) { exists.getSession().close(); } diff --git a/src/main/java/emu/grasscutter/game/TeamInfo.java b/src/main/java/emu/grasscutter/game/player/TeamInfo.java similarity index 87% rename from src/main/java/emu/grasscutter/game/TeamInfo.java rename to src/main/java/emu/grasscutter/game/player/TeamInfo.java index efaf5ea1c..5c66f1aaa 100644 --- a/src/main/java/emu/grasscutter/game/TeamInfo.java +++ b/src/main/java/emu/grasscutter/game/player/TeamInfo.java @@ -1,12 +1,12 @@ -package emu.grasscutter.game; +package emu.grasscutter.game.player; import java.util.ArrayList; import java.util.List; import dev.morphia.annotations.Entity; -import emu.grasscutter.GenshinConstants; +import emu.grasscutter.GameConstants; import emu.grasscutter.Grasscutter; -import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.game.avatar.Avatar; @Entity public class TeamInfo { @@ -34,11 +34,11 @@ public class TeamInfo { return avatars.size(); } - public boolean contains(GenshinAvatar avatar) { + public boolean contains(Avatar avatar) { return getAvatars().contains(avatar.getAvatarId()); } - public boolean addAvatar(GenshinAvatar avatar) { + public boolean addAvatar(Avatar avatar) { if (size() >= Grasscutter.getConfig().getGameServerOptions().MaxAvatarsInTeam || contains(avatar)) { return false; } diff --git a/src/main/java/emu/grasscutter/game/TeamManager.java b/src/main/java/emu/grasscutter/game/player/TeamManager.java similarity index 92% rename from src/main/java/emu/grasscutter/game/TeamManager.java rename to src/main/java/emu/grasscutter/game/player/TeamManager.java index 6cd447d49..b942604f5 100644 --- a/src/main/java/emu/grasscutter/game/TeamManager.java +++ b/src/main/java/emu/grasscutter/game/player/TeamManager.java @@ -1,4 +1,4 @@ -package emu.grasscutter.game; +package emu.grasscutter.game.player; import java.util.ArrayList; import java.util.HashMap; @@ -10,16 +10,17 @@ import java.util.Set; import dev.morphia.annotations.Entity; import dev.morphia.annotations.Transient; -import emu.grasscutter.GenshinConstants; +import emu.grasscutter.GameConstants; import emu.grasscutter.Grasscutter; import emu.grasscutter.data.def.AvatarSkillDepotData; -import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.game.avatar.Avatar; import emu.grasscutter.game.entity.EntityAvatar; import emu.grasscutter.game.entity.EntityGadget; import emu.grasscutter.game.props.ElementType; import emu.grasscutter.game.props.EnterReason; import emu.grasscutter.game.props.FightProperty; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.world.World; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.EnterTypeOuterClass.EnterType; import emu.grasscutter.net.proto.MotionStateOuterClass.MotionState; @@ -44,7 +45,7 @@ import it.unimi.dsi.fastutil.ints.IntSet; @Entity public class TeamManager { - @Transient private GenshinPlayer player; + @Transient private Player player; private Map<Integer, TeamInfo> teams; private int currentTeamIndex; @@ -65,18 +66,18 @@ public class TeamManager { this.teamResonancesConfig = new IntOpenHashSet(); } - public TeamManager(GenshinPlayer player) { + public TeamManager(Player player) { this(); this.player = player; this.teams = new HashMap<>(); this.currentTeamIndex = 1; - for (int i = 1; i <= GenshinConstants.MAX_TEAMS; i++) { + for (int i = 1; i <= GameConstants.MAX_TEAMS; i++) { this.teams.put(i, new TeamInfo()); } } - public GenshinPlayer getPlayer() { + public Player getPlayer() { return player; } @@ -84,7 +85,7 @@ public class TeamManager { return player.getWorld(); } - public void setPlayer(GenshinPlayer player) { + public void setPlayer(Player player) { this.player = player; } @@ -207,7 +208,7 @@ public class TeamManager { } } - public void updateTeamEntities(GenshinPacket responsePacket) { + public void updateTeamEntities(BasePacket responsePacket) { // Sanity check - Should never happen if (this.getCurrentTeamInfo().getAvatars().size() <= 0) { return; @@ -287,9 +288,9 @@ public class TeamManager { } // Set team data - LinkedHashSet<GenshinAvatar> newTeam = new LinkedHashSet<>(); + LinkedHashSet<Avatar> newTeam = new LinkedHashSet<>(); for (int i = 0; i < list.size(); i++) { - GenshinAvatar avatar = getPlayer().getAvatars().getAvatarByGuid(list.get(i)); + Avatar avatar = getPlayer().getAvatars().getAvatarByGuid(list.get(i)); if (avatar == null || newTeam.contains(avatar)) { // Should never happen return; @@ -299,7 +300,7 @@ public class TeamManager { // Clear current team info and add avatars from our new team teamInfo.getAvatars().clear(); - for (GenshinAvatar avatar : newTeam) { + for (Avatar avatar : newTeam) { teamInfo.addAvatar(avatar); } @@ -323,9 +324,9 @@ public class TeamManager { TeamInfo teamInfo = this.getMpTeam(); // Set team data - LinkedHashSet<GenshinAvatar> newTeam = new LinkedHashSet<>(); + LinkedHashSet<Avatar> newTeam = new LinkedHashSet<>(); for (int i = 0; i < list.size(); i++) { - GenshinAvatar avatar = getPlayer().getAvatars().getAvatarByGuid(list.get(i)); + Avatar avatar = getPlayer().getAvatars().getAvatarByGuid(list.get(i)); if (avatar == null || newTeam.contains(avatar)) { // Should never happen return; @@ -335,7 +336,7 @@ public class TeamManager { // Clear current team info and add avatars from our new team teamInfo.getAvatars().clear(); - for (GenshinAvatar avatar : newTeam) { + for (Avatar avatar : newTeam) { teamInfo.addAvatar(avatar); } @@ -397,7 +398,7 @@ public class TeamManager { this.setCurrentCharacterIndex(index); // Old entity motion state - oldEntity.setMotionState(MotionState.MotionStandby); + oldEntity.setMotionState(MotionState.MOTION_STANDBY); // Remove and Add getPlayer().getScene().replaceEntity(oldEntity, newEntity); @@ -437,7 +438,7 @@ public class TeamManager { getPlayer().sendPacket(new PacketAvatarDieAnimationEndRsp(deadAvatar.getId(), 0)); } - public boolean reviveAvatar(GenshinAvatar avatar) { + public boolean reviveAvatar(Avatar avatar) { for (EntityAvatar entity : getActiveTeam()) { if (entity.getAvatar() == avatar) { if (entity.isAlive()) { @@ -476,14 +477,14 @@ public class TeamManager { } // Teleport player - getPlayer().sendPacket(new PacketPlayerEnterSceneNotify(getPlayer(), EnterType.EnterSelf, EnterReason.Revival, 3, GenshinConstants.START_POSITION)); + getPlayer().sendPacket(new PacketPlayerEnterSceneNotify(getPlayer(), EnterType.ENTER_SELF, EnterReason.Revival, 3, GameConstants.START_POSITION)); // Set player position player.setSceneId(3); - player.getPos().set(GenshinConstants.START_POSITION); + player.getPos().set(GameConstants.START_POSITION); // Packets - getPlayer().sendPacket(new GenshinPacket(PacketOpcodes.WorldPlayerReviveRsp)); + getPlayer().sendPacket(new BasePacket(PacketOpcodes.WorldPlayerReviveRsp)); } public void saveAvatars() { diff --git a/src/main/java/emu/grasscutter/game/GenshinScene.java b/src/main/java/emu/grasscutter/game/world/Scene.java similarity index 77% rename from src/main/java/emu/grasscutter/game/GenshinScene.java rename to src/main/java/emu/grasscutter/game/world/Scene.java index 431134b5f..d9b01e0ef 100644 --- a/src/main/java/emu/grasscutter/game/GenshinScene.java +++ b/src/main/java/emu/grasscutter/game/world/Scene.java @@ -1,4 +1,4 @@ -package emu.grasscutter.game; +package emu.grasscutter.game.world; import java.util.ArrayList; import java.util.Collection; @@ -12,9 +12,9 @@ import java.util.Set; import org.danilopianini.util.SpatialIndex; import emu.grasscutter.Grasscutter; -import emu.grasscutter.data.GenshinData; -import emu.grasscutter.data.GenshinDepot; -import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.GameData; +import emu.grasscutter.data.GameDepot; +import emu.grasscutter.data.GameResource; import emu.grasscutter.data.def.MonsterData; import emu.grasscutter.data.def.SceneData; import emu.grasscutter.data.def.WorldLevelData; @@ -22,14 +22,15 @@ import emu.grasscutter.game.entity.EntityAvatar; import emu.grasscutter.game.entity.EntityClientGadget; import emu.grasscutter.game.entity.EntityGadget; import emu.grasscutter.game.entity.EntityMonster; -import emu.grasscutter.game.entity.GenshinEntity; +import emu.grasscutter.game.entity.GameEntity; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.game.player.TeamInfo; import emu.grasscutter.game.props.ClimateType; import emu.grasscutter.game.props.FightProperty; import emu.grasscutter.game.props.LifeState; import emu.grasscutter.game.props.SceneType; -import emu.grasscutter.game.world.SpawnDataEntry; import emu.grasscutter.game.world.SpawnDataEntry.SpawnGroupEntry; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult; import emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType; import emu.grasscutter.server.packet.send.PacketEntityFightPropUpdateNotify; @@ -41,11 +42,11 @@ import it.unimi.dsi.fastutil.ints.Int2ObjectMap; import it.unimi.dsi.fastutil.ints.Int2ObjectMaps; import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; -public class GenshinScene { +public class Scene { private final World world; private final SceneData sceneData; - private final List<GenshinPlayer> players; - private final Int2ObjectMap<GenshinEntity> entities; + private final List<Player> players; + private final Int2ObjectMap<GameEntity> entities; private final Set<SpawnDataEntry> spawnedEntities; private final Set<SpawnDataEntry> deadSpawnedEntities; @@ -55,7 +56,7 @@ public class GenshinScene { private ClimateType climate; private int weather; - public GenshinScene(World world, SceneData sceneData) { + public Scene(World world, SceneData sceneData) { this.world = world; this.sceneData = sceneData; this.players = Collections.synchronizedList(new ArrayList<>()); @@ -84,7 +85,7 @@ public class GenshinScene { return getSceneData().getSceneType(); } - public List<GenshinPlayer> getPlayers() { + public List<Player> getPlayers() { return players; } @@ -92,11 +93,11 @@ public class GenshinScene { return this.getPlayers().size(); } - public Int2ObjectMap<GenshinEntity> getEntities() { + public Int2ObjectMap<GameEntity> getEntities() { return entities; } - public GenshinEntity getEntityById(int id) { + public GameEntity getEntityById(int id) { return this.entities.get(id); } @@ -140,11 +141,11 @@ public class GenshinScene { return deadSpawnedEntities; } - public boolean isInScene(GenshinEntity entity) { + public boolean isInScene(GameEntity entity) { return this.entities.containsKey(entity.getId()); } - public synchronized void addPlayer(GenshinPlayer player) { + public synchronized void addPlayer(Player player) { // Check if player already in if (getPlayers().contains(player)) { return; @@ -163,7 +164,7 @@ public class GenshinScene { this.setupPlayerAvatars(player); } - public synchronized void removePlayer(GenshinPlayer player) { + public synchronized void removePlayer(Player player) { // Remove player from scene getPlayers().remove(player); player.setScene(null); @@ -182,7 +183,7 @@ public class GenshinScene { } } - private void setupPlayerAvatars(GenshinPlayer player) { + private void setupPlayerAvatars(Player player) { // Clear entities from old team player.getTeamManager().getActiveTeam().clear(); @@ -199,15 +200,15 @@ public class GenshinScene { } } - private void removePlayerAvatars(GenshinPlayer player) { + private void removePlayerAvatars(Player player) { Iterator<EntityAvatar> it = player.getTeamManager().getActiveTeam().iterator(); while (it.hasNext()) { - this.removeEntity(it.next(), VisionType.VisionRemove); + this.removeEntity(it.next(), VisionType.VISION_REMOVE); it.remove(); } } - public void spawnPlayer(GenshinPlayer player) { + public void spawnPlayer(Player player) { if (this.isInScene(player.getTeamManager().getCurrentAvatarEntity())) { return; } @@ -219,33 +220,33 @@ public class GenshinScene { this.addEntity(player.getTeamManager().getCurrentAvatarEntity()); } - private void addEntityDirectly(GenshinEntity entity) { + private void addEntityDirectly(GameEntity entity) { getEntities().put(entity.getId(), entity); } - public synchronized void addEntity(GenshinEntity entity) { + public synchronized void addEntity(GameEntity entity) { this.addEntityDirectly(entity); this.broadcastPacket(new PacketSceneEntityAppearNotify(entity)); } - public synchronized void addEntities(Collection<GenshinEntity> entities) { - for (GenshinEntity entity : entities) { + public synchronized void addEntities(Collection<GameEntity> entities) { + for (GameEntity entity : entities) { this.addEntityDirectly(entity); } - this.broadcastPacket(new PacketSceneEntityAppearNotify(entities, VisionType.VisionBorn)); + this.broadcastPacket(new PacketSceneEntityAppearNotify(entities, VisionType.VISION_BORN)); } - private GenshinEntity removeEntityDirectly(GenshinEntity entity) { + private GameEntity removeEntityDirectly(GameEntity entity) { return getEntities().remove(entity.getId()); } - public void removeEntity(GenshinEntity entity) { - this.removeEntity(entity, VisionType.VisionDie); + public void removeEntity(GameEntity entity) { + this.removeEntity(entity, VisionType.VISION_DIE); } - public synchronized void removeEntity(GenshinEntity entity, VisionType visionType) { - GenshinEntity removed = this.removeEntityDirectly(entity); + public synchronized void removeEntity(GameEntity entity, VisionType visionType) { + GameEntity removed = this.removeEntityDirectly(entity); if (removed != null) { this.broadcastPacket(new PacketSceneEntityDisappearNotify(removed, visionType)); } @@ -254,27 +255,27 @@ public class GenshinScene { public synchronized void replaceEntity(EntityAvatar oldEntity, EntityAvatar newEntity) { this.removeEntityDirectly(oldEntity); this.addEntityDirectly(newEntity); - this.broadcastPacket(new PacketSceneEntityDisappearNotify(oldEntity, VisionType.VisionReplace)); - this.broadcastPacket(new PacketSceneEntityAppearNotify(newEntity, VisionType.VisionReplace, oldEntity.getId())); + this.broadcastPacket(new PacketSceneEntityDisappearNotify(oldEntity, VisionType.VISION_REPLACE)); + this.broadcastPacket(new PacketSceneEntityAppearNotify(newEntity, VisionType.VISION_REPLACE, oldEntity.getId())); } - public void showOtherEntities(GenshinPlayer player) { - List<GenshinEntity> entities = new LinkedList<>(); - GenshinEntity currentEntity = player.getTeamManager().getCurrentAvatarEntity(); + public void showOtherEntities(Player player) { + List<GameEntity> entities = new LinkedList<>(); + GameEntity currentEntity = player.getTeamManager().getCurrentAvatarEntity(); - for (GenshinEntity entity : this.getEntities().values()) { + for (GameEntity entity : this.getEntities().values()) { if (entity == currentEntity) { continue; } entities.add(entity); } - player.sendPacket(new PacketSceneEntityAppearNotify(entities, VisionType.VisionMeet)); + player.sendPacket(new PacketSceneEntityAppearNotify(entities, VisionType.VISION_MEET)); } public void handleAttack(AttackResult result) { - //GenshinEntity attacker = getEntityById(result.getAttackerId()); - GenshinEntity target = getEntityById(result.getDefenseId()); + //GameEntity attacker = getEntityById(result.getAttackerId()); + GameEntity target = getEntityById(result.getDefenseId()); if (target == null) { return; @@ -306,7 +307,7 @@ public class GenshinScene { } } - public void killEntity(GenshinEntity target, int attackerId) { + public void killEntity(GameEntity target, int attackerId) { // Packet this.broadcastPacket(new PacketLifeStateChangeNotify(attackerId, target, LifeState.LIFE_DEAD)); this.removeEntity(target); @@ -321,10 +322,10 @@ public class GenshinScene { // TODO - Test public void checkSpawns() { - SpatialIndex<SpawnGroupEntry> list = GenshinDepot.getSpawnListById(this.getId()); + SpatialIndex<SpawnGroupEntry> list = GameDepot.getSpawnListById(this.getId()); Set<SpawnDataEntry> visible = new HashSet<>(); - for (GenshinPlayer player : this.getPlayers()) { + for (Player player : this.getPlayers()) { int RANGE = 100; Collection<SpawnGroupEntry> entries = list.query( new double[] {player.getPos().getX() - RANGE, player.getPos().getZ() - RANGE}, @@ -339,7 +340,7 @@ public class GenshinScene { } // World level - WorldLevelData worldLevelData = GenshinData.getWorldLevelDataMap().get(getWorld().getWorldLevel()); + WorldLevelData worldLevelData = GameData.getWorldLevelDataMap().get(getWorld().getWorldLevel()); int worldLevelOverride = 0; if (worldLevelData != null) { @@ -347,13 +348,13 @@ public class GenshinScene { } // Todo - List<GenshinEntity> toAdd = new LinkedList<>(); - List<GenshinEntity> toRemove = new LinkedList<>(); + List<GameEntity> toAdd = new LinkedList<>(); + List<GameEntity> toRemove = new LinkedList<>(); for (SpawnDataEntry entry : visible) { if (!this.getSpawnedEntities().contains(entry) && !this.getDeadSpawnedEntities().contains(entry)) { // Spawn entity - MonsterData data = GenshinData.getMonsterDataMap().get(entry.getMonsterId()); + MonsterData data = GameData.getMonsterDataMap().get(entry.getMonsterId()); if (data == null) { continue; @@ -373,7 +374,7 @@ public class GenshinScene { } } - for (GenshinEntity entity : this.getEntities().values()) { + for (GameEntity entity : this.getEntities().values()) { if (entity.getSpawnEntry() != null && !visible.contains(entity.getSpawnEntry())) { toRemove.add(entity); } @@ -381,11 +382,11 @@ public class GenshinScene { if (toAdd.size() > 0) { toAdd.stream().forEach(this::addEntityDirectly); - this.broadcastPacket(new PacketSceneEntityAppearNotify(toAdd, VisionType.VisionBorn)); + this.broadcastPacket(new PacketSceneEntityAppearNotify(toAdd, VisionType.VISION_BORN)); } if (toRemove.size() > 0) { toRemove.stream().forEach(this::removeEntityDirectly); - this.broadcastPacket(new PacketSceneEntityDisappearNotify(toRemove, VisionType.VisionRemove)); + this.broadcastPacket(new PacketSceneEntityDisappearNotify(toRemove, VisionType.VISION_REMOVE)); } } @@ -407,7 +408,7 @@ public class GenshinScene { } public void onPlayerDestroyGadget(int entityId) { - GenshinEntity entity = getEntities().get(entityId); + GameEntity entity = getEntities().get(entityId); if (entity == null || !(entity instanceof EntityClientGadget)) { return; @@ -425,25 +426,25 @@ public class GenshinScene { return; } - this.broadcastPacketToOthers(gadget.getOwner(), new PacketSceneEntityDisappearNotify(gadget, VisionType.VisionDie)); + this.broadcastPacketToOthers(gadget.getOwner(), new PacketSceneEntityDisappearNotify(gadget, VisionType.VISION_DIE)); } // Broadcasting - public void broadcastPacket(GenshinPacket packet) { + public void broadcastPacket(BasePacket packet) { // Send to all players - might have to check if player has been sent data packets - for (GenshinPlayer player : this.getPlayers()) { + for (Player player : this.getPlayers()) { player.getSession().send(packet); } } - public void broadcastPacketToOthers(GenshinPlayer excludedPlayer, GenshinPacket packet) { + public void broadcastPacketToOthers(Player excludedPlayer, BasePacket packet) { // Optimization if (this.getPlayerCount() == 1 && this.getPlayers().get(0) == excludedPlayer) { return; } // Send to all players - might have to check if player has been sent data packets - for (GenshinPlayer player : this.getPlayers()) { + for (Player player : this.getPlayers()) { if (player == excludedPlayer) { continue; } diff --git a/src/main/java/emu/grasscutter/game/World.java b/src/main/java/emu/grasscutter/game/world/World.java similarity index 76% rename from src/main/java/emu/grasscutter/game/World.java rename to src/main/java/emu/grasscutter/game/world/World.java index 9dd6b6905..292e63d32 100644 --- a/src/main/java/emu/grasscutter/game/World.java +++ b/src/main/java/emu/grasscutter/game/world/World.java @@ -1,4 +1,4 @@ -package emu.grasscutter.game; +package emu.grasscutter.game.world; import java.util.ArrayList; import java.util.Collection; @@ -8,19 +8,20 @@ import java.util.LinkedList; import java.util.List; import java.util.stream.Collectors; -import emu.grasscutter.game.entity.GenshinEntity; +import emu.grasscutter.game.entity.GameEntity; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.game.player.Player.SceneLoadState; import emu.grasscutter.game.props.ClimateType; import emu.grasscutter.game.props.EnterReason; import emu.grasscutter.game.props.EntityIdType; import emu.grasscutter.game.props.FightProperty; import emu.grasscutter.game.props.LifeState; -import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.GameData; import emu.grasscutter.data.def.SceneData; -import emu.grasscutter.game.GenshinPlayer.SceneLoadState; import emu.grasscutter.game.entity.EntityAvatar; import emu.grasscutter.game.entity.EntityClientGadget; import emu.grasscutter.game.entity.EntityGadget; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult; import emu.grasscutter.net.proto.EnterTypeOuterClass.EnterType; import emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType; @@ -40,10 +41,10 @@ import it.unimi.dsi.fastutil.ints.Int2ObjectMap; import it.unimi.dsi.fastutil.ints.Int2ObjectMaps; import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; -public class World implements Iterable<GenshinPlayer> { - private final GenshinPlayer owner; - private final List<GenshinPlayer> players; - private final Int2ObjectMap<GenshinScene> scenes; +public class World implements Iterable<Player> { + private final Player owner; + private final List<Player> players; + private final Int2ObjectMap<Scene> scenes; private int levelEntityId; private int nextEntityId = 0; @@ -52,11 +53,11 @@ public class World implements Iterable<GenshinPlayer> { private boolean isMultiplayer; - public World(GenshinPlayer player) { + public World(Player player) { this(player, false); } - public World(GenshinPlayer player, boolean isMultiplayer) { + public World(Player player, boolean isMultiplayer) { this.owner = player; this.players = Collections.synchronizedList(new ArrayList<>()); this.scenes = Int2ObjectMaps.synchronize(new Int2ObjectOpenHashMap<>()); @@ -64,11 +65,11 @@ public class World implements Iterable<GenshinPlayer> { this.levelEntityId = getNextEntityId(EntityIdType.MPLEVEL); this.worldLevel = player.getWorldLevel(); this.isMultiplayer = isMultiplayer; - + this.owner.getServer().registerWorld(this); } - public GenshinPlayer getHost() { + public Player getHost() { return owner; } @@ -95,25 +96,25 @@ public class World implements Iterable<GenshinPlayer> { this.worldLevel = worldLevel; } - public List<GenshinPlayer> getPlayers() { + public List<Player> getPlayers() { return players; } - public Int2ObjectMap<GenshinScene> getScenes() { + public Int2ObjectMap<Scene> getScenes() { return this.scenes; } - public GenshinScene getSceneById(int sceneId) { + public Scene getSceneById(int sceneId) { // Get scene normally - GenshinScene scene = getScenes().get(sceneId); + Scene scene = getScenes().get(sceneId); if (scene != null) { return scene; } // Create scene from scene data if it doesnt exist - SceneData sceneData = GenshinData.getSceneDataMap().get(sceneId); + SceneData sceneData = GameData.getSceneDataMap().get(sceneId); if (sceneData != null) { - scene = new GenshinScene(this, sceneData); + scene = new Scene(this, sceneData); this.registerScene(scene); return scene; } @@ -133,7 +134,7 @@ public class World implements Iterable<GenshinPlayer> { return (idType.getId() << 24) + ++this.nextEntityId; } - public synchronized void addPlayer(GenshinPlayer player) { + public synchronized void addPlayer(Player player) { // Check if player already in if (getPlayers().contains(player)) { return; @@ -159,7 +160,7 @@ public class World implements Iterable<GenshinPlayer> { } // Add to scene - GenshinScene scene = this.getSceneById(player.getSceneId()); + Scene scene = this.getSceneById(player.getSceneId()); scene.addPlayer(player); // Info packet for other players @@ -168,7 +169,7 @@ public class World implements Iterable<GenshinPlayer> { } } - public synchronized void removePlayer(GenshinPlayer player) { + public synchronized void removePlayer(Player player) { // Remove team entities player.sendPacket( new PacketDelTeamEntityNotify( @@ -182,7 +183,7 @@ public class World implements Iterable<GenshinPlayer> { player.setWorld(null); // Remove from scene - GenshinScene scene = this.getSceneById(player.getSceneId()); + Scene scene = this.getSceneById(player.getSceneId()); scene.removePlayer(player); // Info packet for other players @@ -192,61 +193,61 @@ public class World implements Iterable<GenshinPlayer> { // Disband world if host leaves if (getHost() == player) { - List<GenshinPlayer> kicked = new ArrayList<>(this.getPlayers()); - for (GenshinPlayer victim : kicked) { + List<Player> kicked = new ArrayList<>(this.getPlayers()); + for (Player victim : kicked) { World world = new World(victim); world.addPlayer(victim); - victim.sendPacket(new PacketPlayerEnterSceneNotify(victim, EnterType.EnterSelf, EnterReason.TeamKick, victim.getSceneId(), victim.getPos())); + victim.sendPacket(new PacketPlayerEnterSceneNotify(victim, EnterType.ENTER_SELF, EnterReason.TeamKick, victim.getSceneId(), victim.getPos())); } } } - public void registerScene(GenshinScene scene) { + public void registerScene(Scene scene) { this.getScenes().put(scene.getId(), scene); } - public void deregisterScene(GenshinScene scene) { + public void deregisterScene(Scene scene) { this.getScenes().remove(scene.getId()); } - public boolean transferPlayerToScene(GenshinPlayer player, int sceneId, Position pos) { - if (GenshinData.getSceneDataMap().get(sceneId) == null) { + public boolean transferPlayerToScene(Player player, int sceneId, Position pos) { + if (GameData.getSceneDataMap().get(sceneId) == null) { return false; } - GenshinScene oldScene = null; + Scene oldScene = null; if (player.getScene() != null) { oldScene = player.getScene(); - + // Dont deregister scenes if the player is going to tp back into them if (oldScene.getId() == sceneId) { oldScene.setDontDestroyWhenEmpty(true); } - + oldScene.removePlayer(player); } - GenshinScene newScene = this.getSceneById(sceneId); + Scene newScene = this.getSceneById(sceneId); newScene.addPlayer(player); player.getPos().set(pos); if (oldScene != null) { oldScene.setDontDestroyWhenEmpty(false); } - + // Teleport packet if (oldScene == newScene) { - player.sendPacket(new PacketPlayerEnterSceneNotify(player, EnterType.EnterGoto, EnterReason.TransPoint, sceneId, pos)); + player.sendPacket(new PacketPlayerEnterSceneNotify(player, EnterType.ENTER_GOTO, EnterReason.TransPoint, sceneId, pos)); } else { - player.sendPacket(new PacketPlayerEnterSceneNotify(player, EnterType.EnterJump, EnterReason.TransPoint, sceneId, pos)); + player.sendPacket(new PacketPlayerEnterSceneNotify(player, EnterType.ENTER_JUMP, EnterReason.TransPoint, sceneId, pos)); } return true; } - private void updatePlayerInfos(GenshinPlayer paramPlayer) { - for (GenshinPlayer player : getPlayers()) { + private void updatePlayerInfos(Player paramPlayer) { + for (Player player : getPlayers()) { // Dont send packets if player is loading in and filter out joining player if (!player.hasSentAvatarDataNotify() || player.getSceneLoadState().getValue() < SceneLoadState.INIT.getValue() || player == paramPlayer) { continue; @@ -269,25 +270,25 @@ public class World implements Iterable<GenshinPlayer> { } } - public void broadcastPacket(GenshinPacket packet) { + public void broadcastPacket(BasePacket packet) { // Send to all players - might have to check if player has been sent data packets - for (GenshinPlayer player : this.getPlayers()) { + for (Player player : this.getPlayers()) { player.getSession().send(packet); } } public void onTick() { - for (GenshinScene scene : this.getScenes().values()) { + for (Scene scene : this.getScenes().values()) { scene.onTick(); } } - + public void close() { } @Override - public Iterator<GenshinPlayer> iterator() { + public Iterator<Player> iterator() { return getPlayers().iterator(); } } diff --git a/src/main/java/emu/grasscutter/net/packet/GenshinPacket.java b/src/main/java/emu/grasscutter/net/packet/BasePacket.java similarity index 93% rename from src/main/java/emu/grasscutter/net/packet/GenshinPacket.java rename to src/main/java/emu/grasscutter/net/packet/BasePacket.java index 158c0d3c0..7fae74c8a 100644 --- a/src/main/java/emu/grasscutter/net/packet/GenshinPacket.java +++ b/src/main/java/emu/grasscutter/net/packet/BasePacket.java @@ -7,7 +7,7 @@ import com.google.protobuf.GeneratedMessageV3; import emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead; import emu.grasscutter.utils.Crypto; -public class GenshinPacket { +public class BasePacket { private static final int const1 = 17767; // 0x4567 private static final int const2 = -30293; // 0x89ab @@ -21,16 +21,16 @@ public class GenshinPacket { private boolean useDispatchKey; public boolean shouldEncrypt = true; - public GenshinPacket(int opcode) { + public BasePacket(int opcode) { this.opcode = opcode; } - public GenshinPacket(int opcode, int clientSequence) { + public BasePacket(int opcode, int clientSequence) { this.opcode = opcode; this.buildHeader(clientSequence); } - public GenshinPacket(int opcode, boolean buildHeader) { + public BasePacket(int opcode, boolean buildHeader) { this.opcode = opcode; this.shouldBuildHeader = buildHeader; } @@ -80,7 +80,7 @@ public class GenshinPacket { this.data = proto.build().toByteArray(); } - public GenshinPacket buildHeader(int clientSequence) { + public BasePacket buildHeader(int clientSequence) { if (this.getHeader() != null && clientSequence == 0) { return this; } diff --git a/src/main/java/emu/grasscutter/net/packet/PacketOpcodes.java b/src/main/java/emu/grasscutter/net/packet/PacketOpcodes.java index 365055e26..b65bc5e5c 100644 --- a/src/main/java/emu/grasscutter/net/packet/PacketOpcodes.java +++ b/src/main/java/emu/grasscutter/net/packet/PacketOpcodes.java @@ -1009,6 +1009,7 @@ public class PacketOpcodes { public static final int SetNameCardRsp = 4009; public static final int SetOpenStateReq = 162; public static final int SetOpenStateRsp = 189; + public static final int SetPlayerBirthdayReq = 4097; public static final int SetPlayerBirthdayRsp = 4088; public static final int SetPlayerBornDataReq = 155; @@ -1034,8 +1035,6 @@ public class PacketOpcodes { public static final int ShowTemplateReminderNotify = 3164; public static final int SignInInfoReq = 2510; public static final int SignInInfoRsp = 2515; - public static final int SitReq = 354; - public static final int SitRsp = 335; public static final int SocialDataNotify = 4063; public static final int SpringUseReq = 1720; public static final int SpringUseRsp = 1727; diff --git a/src/main/java/emu/grasscutter/net/packet/Retcode.java b/src/main/java/emu/grasscutter/net/packet/Retcode.java deleted file mode 100644 index c061a1897..000000000 --- a/src/main/java/emu/grasscutter/net/packet/Retcode.java +++ /dev/null @@ -1,6 +0,0 @@ -package emu.grasscutter.net.packet; - -public class Retcode { - public static final int SUCCESS = 0; - public static final int FAIL = 1; -} diff --git a/src/main/java/emu/grasscutter/net/proto/AbilityAppliedAbilityOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AbilityAppliedAbilityOuterClass.java deleted file mode 100644 index 9e5844512..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AbilityAppliedAbilityOuterClass.java +++ /dev/null @@ -1,1326 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AbilityAppliedAbility.proto - -package emu.grasscutter.net.proto; - -public final class AbilityAppliedAbilityOuterClass { - private AbilityAppliedAbilityOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AbilityAppliedAbilityOrBuilder extends - // @@protoc_insertion_point(interface_extends:AbilityAppliedAbility) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.AbilityString abilityName = 1;</code> - * @return Whether the abilityName field is set. - */ - boolean hasAbilityName(); - /** - * <code>.AbilityString abilityName = 1;</code> - * @return The abilityName. - */ - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getAbilityName(); - /** - * <code>.AbilityString abilityName = 1;</code> - */ - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getAbilityNameOrBuilder(); - - /** - * <code>.AbilityString abilityOverride = 2;</code> - * @return Whether the abilityOverride field is set. - */ - boolean hasAbilityOverride(); - /** - * <code>.AbilityString abilityOverride = 2;</code> - * @return The abilityOverride. - */ - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getAbilityOverride(); - /** - * <code>.AbilityString abilityOverride = 2;</code> - */ - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getAbilityOverrideOrBuilder(); - - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - java.util.List<emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry> - getOverrideMapList(); - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry getOverrideMap(int index); - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - int getOverrideMapCount(); - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder> - getOverrideMapOrBuilderList(); - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder getOverrideMapOrBuilder( - int index); - - /** - * <code>uint32 instancedAbilityId = 4;</code> - * @return The instancedAbilityId. - */ - int getInstancedAbilityId(); - } - /** - * Protobuf type {@code AbilityAppliedAbility} - */ - public static final class AbilityAppliedAbility extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AbilityAppliedAbility) - AbilityAppliedAbilityOrBuilder { - private static final long serialVersionUID = 0L; - // Use AbilityAppliedAbility.newBuilder() to construct. - private AbilityAppliedAbility(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AbilityAppliedAbility() { - overrideMap_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AbilityAppliedAbility(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AbilityAppliedAbility( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder subBuilder = null; - if (abilityName_ != null) { - subBuilder = abilityName_.toBuilder(); - } - abilityName_ = input.readMessage(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abilityName_); - abilityName_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder subBuilder = null; - if (abilityOverride_ != null) { - subBuilder = abilityOverride_.toBuilder(); - } - abilityOverride_ = input.readMessage(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abilityOverride_); - abilityOverride_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - overrideMap_ = new java.util.ArrayList<emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry>(); - mutable_bitField0_ |= 0x00000001; - } - overrideMap_.add( - input.readMessage(emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.parser(), extensionRegistry)); - break; - } - case 32: { - - instancedAbilityId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - overrideMap_ = java.util.Collections.unmodifiableList(overrideMap_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.internal_static_AbilityAppliedAbility_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.internal_static_AbilityAppliedAbility_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.class, emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.Builder.class); - } - - public static final int ABILITYNAME_FIELD_NUMBER = 1; - private emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString abilityName_; - /** - * <code>.AbilityString abilityName = 1;</code> - * @return Whether the abilityName field is set. - */ - @java.lang.Override - public boolean hasAbilityName() { - return abilityName_ != null; - } - /** - * <code>.AbilityString abilityName = 1;</code> - * @return The abilityName. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getAbilityName() { - return abilityName_ == null ? emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : abilityName_; - } - /** - * <code>.AbilityString abilityName = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getAbilityNameOrBuilder() { - return getAbilityName(); - } - - public static final int ABILITYOVERRIDE_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString abilityOverride_; - /** - * <code>.AbilityString abilityOverride = 2;</code> - * @return Whether the abilityOverride field is set. - */ - @java.lang.Override - public boolean hasAbilityOverride() { - return abilityOverride_ != null; - } - /** - * <code>.AbilityString abilityOverride = 2;</code> - * @return The abilityOverride. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getAbilityOverride() { - return abilityOverride_ == null ? emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : abilityOverride_; - } - /** - * <code>.AbilityString abilityOverride = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getAbilityOverrideOrBuilder() { - return getAbilityOverride(); - } - - public static final int OVERRIDEMAP_FIELD_NUMBER = 3; - private java.util.List<emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry> overrideMap_; - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry> getOverrideMapList() { - return overrideMap_; - } - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder> - getOverrideMapOrBuilderList() { - return overrideMap_; - } - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - @java.lang.Override - public int getOverrideMapCount() { - return overrideMap_.size(); - } - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry getOverrideMap(int index) { - return overrideMap_.get(index); - } - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder getOverrideMapOrBuilder( - int index) { - return overrideMap_.get(index); - } - - public static final int INSTANCEDABILITYID_FIELD_NUMBER = 4; - private int instancedAbilityId_; - /** - * <code>uint32 instancedAbilityId = 4;</code> - * @return The instancedAbilityId. - */ - @java.lang.Override - public int getInstancedAbilityId() { - return instancedAbilityId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (abilityName_ != null) { - output.writeMessage(1, getAbilityName()); - } - if (abilityOverride_ != null) { - output.writeMessage(2, getAbilityOverride()); - } - for (int i = 0; i < overrideMap_.size(); i++) { - output.writeMessage(3, overrideMap_.get(i)); - } - if (instancedAbilityId_ != 0) { - output.writeUInt32(4, instancedAbilityId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (abilityName_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAbilityName()); - } - if (abilityOverride_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAbilityOverride()); - } - for (int i = 0; i < overrideMap_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, overrideMap_.get(i)); - } - if (instancedAbilityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, instancedAbilityId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility other = (emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility) obj; - - if (hasAbilityName() != other.hasAbilityName()) return false; - if (hasAbilityName()) { - if (!getAbilityName() - .equals(other.getAbilityName())) return false; - } - if (hasAbilityOverride() != other.hasAbilityOverride()) return false; - if (hasAbilityOverride()) { - if (!getAbilityOverride() - .equals(other.getAbilityOverride())) return false; - } - if (!getOverrideMapList() - .equals(other.getOverrideMapList())) return false; - if (getInstancedAbilityId() - != other.getInstancedAbilityId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasAbilityName()) { - hash = (37 * hash) + ABILITYNAME_FIELD_NUMBER; - hash = (53 * hash) + getAbilityName().hashCode(); - } - if (hasAbilityOverride()) { - hash = (37 * hash) + ABILITYOVERRIDE_FIELD_NUMBER; - hash = (53 * hash) + getAbilityOverride().hashCode(); - } - if (getOverrideMapCount() > 0) { - hash = (37 * hash) + OVERRIDEMAP_FIELD_NUMBER; - hash = (53 * hash) + getOverrideMapList().hashCode(); - } - hash = (37 * hash) + INSTANCEDABILITYID_FIELD_NUMBER; - hash = (53 * hash) + getInstancedAbilityId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AbilityAppliedAbility} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AbilityAppliedAbility) - emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbilityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.internal_static_AbilityAppliedAbility_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.internal_static_AbilityAppliedAbility_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.class, emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getOverrideMapFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (abilityNameBuilder_ == null) { - abilityName_ = null; - } else { - abilityName_ = null; - abilityNameBuilder_ = null; - } - if (abilityOverrideBuilder_ == null) { - abilityOverride_ = null; - } else { - abilityOverride_ = null; - abilityOverrideBuilder_ = null; - } - if (overrideMapBuilder_ == null) { - overrideMap_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - overrideMapBuilder_.clear(); - } - instancedAbilityId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.internal_static_AbilityAppliedAbility_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility build() { - emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility buildPartial() { - emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility result = new emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility(this); - int from_bitField0_ = bitField0_; - if (abilityNameBuilder_ == null) { - result.abilityName_ = abilityName_; - } else { - result.abilityName_ = abilityNameBuilder_.build(); - } - if (abilityOverrideBuilder_ == null) { - result.abilityOverride_ = abilityOverride_; - } else { - result.abilityOverride_ = abilityOverrideBuilder_.build(); - } - if (overrideMapBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - overrideMap_ = java.util.Collections.unmodifiableList(overrideMap_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.overrideMap_ = overrideMap_; - } else { - result.overrideMap_ = overrideMapBuilder_.build(); - } - result.instancedAbilityId_ = instancedAbilityId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility) { - return mergeFrom((emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility other) { - if (other == emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.getDefaultInstance()) return this; - if (other.hasAbilityName()) { - mergeAbilityName(other.getAbilityName()); - } - if (other.hasAbilityOverride()) { - mergeAbilityOverride(other.getAbilityOverride()); - } - if (overrideMapBuilder_ == null) { - if (!other.overrideMap_.isEmpty()) { - if (overrideMap_.isEmpty()) { - overrideMap_ = other.overrideMap_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureOverrideMapIsMutable(); - overrideMap_.addAll(other.overrideMap_); - } - onChanged(); - } - } else { - if (!other.overrideMap_.isEmpty()) { - if (overrideMapBuilder_.isEmpty()) { - overrideMapBuilder_.dispose(); - overrideMapBuilder_ = null; - overrideMap_ = other.overrideMap_; - bitField0_ = (bitField0_ & ~0x00000001); - overrideMapBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOverrideMapFieldBuilder() : null; - } else { - overrideMapBuilder_.addAllMessages(other.overrideMap_); - } - } - } - if (other.getInstancedAbilityId() != 0) { - setInstancedAbilityId(other.getInstancedAbilityId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString abilityName_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder> abilityNameBuilder_; - /** - * <code>.AbilityString abilityName = 1;</code> - * @return Whether the abilityName field is set. - */ - public boolean hasAbilityName() { - return abilityNameBuilder_ != null || abilityName_ != null; - } - /** - * <code>.AbilityString abilityName = 1;</code> - * @return The abilityName. - */ - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getAbilityName() { - if (abilityNameBuilder_ == null) { - return abilityName_ == null ? emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : abilityName_; - } else { - return abilityNameBuilder_.getMessage(); - } - } - /** - * <code>.AbilityString abilityName = 1;</code> - */ - public Builder setAbilityName(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString value) { - if (abilityNameBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - abilityName_ = value; - onChanged(); - } else { - abilityNameBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.AbilityString abilityName = 1;</code> - */ - public Builder setAbilityName( - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder builderForValue) { - if (abilityNameBuilder_ == null) { - abilityName_ = builderForValue.build(); - onChanged(); - } else { - abilityNameBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.AbilityString abilityName = 1;</code> - */ - public Builder mergeAbilityName(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString value) { - if (abilityNameBuilder_ == null) { - if (abilityName_ != null) { - abilityName_ = - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.newBuilder(abilityName_).mergeFrom(value).buildPartial(); - } else { - abilityName_ = value; - } - onChanged(); - } else { - abilityNameBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.AbilityString abilityName = 1;</code> - */ - public Builder clearAbilityName() { - if (abilityNameBuilder_ == null) { - abilityName_ = null; - onChanged(); - } else { - abilityName_ = null; - abilityNameBuilder_ = null; - } - - return this; - } - /** - * <code>.AbilityString abilityName = 1;</code> - */ - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder getAbilityNameBuilder() { - - onChanged(); - return getAbilityNameFieldBuilder().getBuilder(); - } - /** - * <code>.AbilityString abilityName = 1;</code> - */ - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getAbilityNameOrBuilder() { - if (abilityNameBuilder_ != null) { - return abilityNameBuilder_.getMessageOrBuilder(); - } else { - return abilityName_ == null ? - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : abilityName_; - } - } - /** - * <code>.AbilityString abilityName = 1;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder> - getAbilityNameFieldBuilder() { - if (abilityNameBuilder_ == null) { - abilityNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder>( - getAbilityName(), - getParentForChildren(), - isClean()); - abilityName_ = null; - } - return abilityNameBuilder_; - } - - private emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString abilityOverride_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder> abilityOverrideBuilder_; - /** - * <code>.AbilityString abilityOverride = 2;</code> - * @return Whether the abilityOverride field is set. - */ - public boolean hasAbilityOverride() { - return abilityOverrideBuilder_ != null || abilityOverride_ != null; - } - /** - * <code>.AbilityString abilityOverride = 2;</code> - * @return The abilityOverride. - */ - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getAbilityOverride() { - if (abilityOverrideBuilder_ == null) { - return abilityOverride_ == null ? emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : abilityOverride_; - } else { - return abilityOverrideBuilder_.getMessage(); - } - } - /** - * <code>.AbilityString abilityOverride = 2;</code> - */ - public Builder setAbilityOverride(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString value) { - if (abilityOverrideBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - abilityOverride_ = value; - onChanged(); - } else { - abilityOverrideBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.AbilityString abilityOverride = 2;</code> - */ - public Builder setAbilityOverride( - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder builderForValue) { - if (abilityOverrideBuilder_ == null) { - abilityOverride_ = builderForValue.build(); - onChanged(); - } else { - abilityOverrideBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.AbilityString abilityOverride = 2;</code> - */ - public Builder mergeAbilityOverride(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString value) { - if (abilityOverrideBuilder_ == null) { - if (abilityOverride_ != null) { - abilityOverride_ = - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.newBuilder(abilityOverride_).mergeFrom(value).buildPartial(); - } else { - abilityOverride_ = value; - } - onChanged(); - } else { - abilityOverrideBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.AbilityString abilityOverride = 2;</code> - */ - public Builder clearAbilityOverride() { - if (abilityOverrideBuilder_ == null) { - abilityOverride_ = null; - onChanged(); - } else { - abilityOverride_ = null; - abilityOverrideBuilder_ = null; - } - - return this; - } - /** - * <code>.AbilityString abilityOverride = 2;</code> - */ - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder getAbilityOverrideBuilder() { - - onChanged(); - return getAbilityOverrideFieldBuilder().getBuilder(); - } - /** - * <code>.AbilityString abilityOverride = 2;</code> - */ - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getAbilityOverrideOrBuilder() { - if (abilityOverrideBuilder_ != null) { - return abilityOverrideBuilder_.getMessageOrBuilder(); - } else { - return abilityOverride_ == null ? - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : abilityOverride_; - } - } - /** - * <code>.AbilityString abilityOverride = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder> - getAbilityOverrideFieldBuilder() { - if (abilityOverrideBuilder_ == null) { - abilityOverrideBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder>( - getAbilityOverride(), - getParentForChildren(), - isClean()); - abilityOverride_ = null; - } - return abilityOverrideBuilder_; - } - - private java.util.List<emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry> overrideMap_ = - java.util.Collections.emptyList(); - private void ensureOverrideMapIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - overrideMap_ = new java.util.ArrayList<emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry>(overrideMap_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder> overrideMapBuilder_; - - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry> getOverrideMapList() { - if (overrideMapBuilder_ == null) { - return java.util.Collections.unmodifiableList(overrideMap_); - } else { - return overrideMapBuilder_.getMessageList(); - } - } - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - public int getOverrideMapCount() { - if (overrideMapBuilder_ == null) { - return overrideMap_.size(); - } else { - return overrideMapBuilder_.getCount(); - } - } - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry getOverrideMap(int index) { - if (overrideMapBuilder_ == null) { - return overrideMap_.get(index); - } else { - return overrideMapBuilder_.getMessage(index); - } - } - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - public Builder setOverrideMap( - int index, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry value) { - if (overrideMapBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOverrideMapIsMutable(); - overrideMap_.set(index, value); - onChanged(); - } else { - overrideMapBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - public Builder setOverrideMap( - int index, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder builderForValue) { - if (overrideMapBuilder_ == null) { - ensureOverrideMapIsMutable(); - overrideMap_.set(index, builderForValue.build()); - onChanged(); - } else { - overrideMapBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - public Builder addOverrideMap(emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry value) { - if (overrideMapBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOverrideMapIsMutable(); - overrideMap_.add(value); - onChanged(); - } else { - overrideMapBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - public Builder addOverrideMap( - int index, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry value) { - if (overrideMapBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOverrideMapIsMutable(); - overrideMap_.add(index, value); - onChanged(); - } else { - overrideMapBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - public Builder addOverrideMap( - emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder builderForValue) { - if (overrideMapBuilder_ == null) { - ensureOverrideMapIsMutable(); - overrideMap_.add(builderForValue.build()); - onChanged(); - } else { - overrideMapBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - public Builder addOverrideMap( - int index, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder builderForValue) { - if (overrideMapBuilder_ == null) { - ensureOverrideMapIsMutable(); - overrideMap_.add(index, builderForValue.build()); - onChanged(); - } else { - overrideMapBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - public Builder addAllOverrideMap( - java.lang.Iterable<? extends emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry> values) { - if (overrideMapBuilder_ == null) { - ensureOverrideMapIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, overrideMap_); - onChanged(); - } else { - overrideMapBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - public Builder clearOverrideMap() { - if (overrideMapBuilder_ == null) { - overrideMap_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - overrideMapBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - public Builder removeOverrideMap(int index) { - if (overrideMapBuilder_ == null) { - ensureOverrideMapIsMutable(); - overrideMap_.remove(index); - onChanged(); - } else { - overrideMapBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder getOverrideMapBuilder( - int index) { - return getOverrideMapFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder getOverrideMapOrBuilder( - int index) { - if (overrideMapBuilder_ == null) { - return overrideMap_.get(index); } else { - return overrideMapBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder> - getOverrideMapOrBuilderList() { - if (overrideMapBuilder_ != null) { - return overrideMapBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(overrideMap_); - } - } - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder addOverrideMapBuilder() { - return getOverrideMapFieldBuilder().addBuilder( - emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.getDefaultInstance()); - } - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder addOverrideMapBuilder( - int index) { - return getOverrideMapFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.getDefaultInstance()); - } - /** - * <code>repeated .AbilityScalarValueEntry overrideMap = 3;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder> - getOverrideMapBuilderList() { - return getOverrideMapFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder> - getOverrideMapFieldBuilder() { - if (overrideMapBuilder_ == null) { - overrideMapBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder>( - overrideMap_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - overrideMap_ = null; - } - return overrideMapBuilder_; - } - - private int instancedAbilityId_ ; - /** - * <code>uint32 instancedAbilityId = 4;</code> - * @return The instancedAbilityId. - */ - @java.lang.Override - public int getInstancedAbilityId() { - return instancedAbilityId_; - } - /** - * <code>uint32 instancedAbilityId = 4;</code> - * @param value The instancedAbilityId to set. - * @return This builder for chaining. - */ - public Builder setInstancedAbilityId(int value) { - - instancedAbilityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 instancedAbilityId = 4;</code> - * @return This builder for chaining. - */ - public Builder clearInstancedAbilityId() { - - instancedAbilityId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AbilityAppliedAbility) - } - - // @@protoc_insertion_point(class_scope:AbilityAppliedAbility) - private static final emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility(); - } - - public static emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AbilityAppliedAbility> - PARSER = new com.google.protobuf.AbstractParser<AbilityAppliedAbility>() { - @java.lang.Override - public AbilityAppliedAbility parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AbilityAppliedAbility(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AbilityAppliedAbility> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AbilityAppliedAbility> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AbilityAppliedAbility_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AbilityAppliedAbility_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033AbilityAppliedAbility.proto\032\035AbilitySc" + - "alarValueEntry.proto\032\023AbilityString.prot" + - "o\"\260\001\n\025AbilityAppliedAbility\022#\n\013abilityNa" + - "me\030\001 \001(\0132\016.AbilityString\022\'\n\017abilityOverr" + - "ide\030\002 \001(\0132\016.AbilityString\022-\n\013overrideMap" + - "\030\003 \003(\0132\030.AbilityScalarValueEntry\022\032\n\022inst" + - "ancedAbilityId\030\004 \001(\rB\033\n\031emu.grasscutter." + - "net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.getDescriptor(), - emu.grasscutter.net.proto.AbilityStringOuterClass.getDescriptor(), - }); - internal_static_AbilityAppliedAbility_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AbilityAppliedAbility_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AbilityAppliedAbility_descriptor, - new java.lang.String[] { "AbilityName", "AbilityOverride", "OverrideMap", "InstancedAbilityId", }); - emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.getDescriptor(); - emu.grasscutter.net.proto.AbilityStringOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AbilityAppliedModifierOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AbilityAppliedModifierOuterClass.java deleted file mode 100644 index 8314a62b3..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AbilityAppliedModifierOuterClass.java +++ /dev/null @@ -1,1931 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AbilityAppliedModifier.proto - -package emu.grasscutter.net.proto; - -public final class AbilityAppliedModifierOuterClass { - private AbilityAppliedModifierOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AbilityAppliedModifierOrBuilder extends - // @@protoc_insertion_point(interface_extends:AbilityAppliedModifier) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 modifierLocalId = 1;</code> - * @return The modifierLocalId. - */ - int getModifierLocalId(); - - /** - * <code>uint32 parentAbilityEntityId = 2;</code> - * @return The parentAbilityEntityId. - */ - int getParentAbilityEntityId(); - - /** - * <code>.AbilityString parentAbilityName = 3;</code> - * @return Whether the parentAbilityName field is set. - */ - boolean hasParentAbilityName(); - /** - * <code>.AbilityString parentAbilityName = 3;</code> - * @return The parentAbilityName. - */ - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getParentAbilityName(); - /** - * <code>.AbilityString parentAbilityName = 3;</code> - */ - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getParentAbilityNameOrBuilder(); - - /** - * <code>.AbilityString parentAbilityOverride = 4;</code> - * @return Whether the parentAbilityOverride field is set. - */ - boolean hasParentAbilityOverride(); - /** - * <code>.AbilityString parentAbilityOverride = 4;</code> - * @return The parentAbilityOverride. - */ - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getParentAbilityOverride(); - /** - * <code>.AbilityString parentAbilityOverride = 4;</code> - */ - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getParentAbilityOverrideOrBuilder(); - - /** - * <code>uint32 instancedAbilityId = 5;</code> - * @return The instancedAbilityId. - */ - int getInstancedAbilityId(); - - /** - * <code>uint32 instancedModifierId = 6;</code> - * @return The instancedModifierId. - */ - int getInstancedModifierId(); - - /** - * <code>float existDuration = 7;</code> - * @return The existDuration. - */ - float getExistDuration(); - - /** - * <code>.AbilityAttachedModifier attachedInstancedModifier = 8;</code> - * @return Whether the attachedInstancedModifier field is set. - */ - boolean hasAttachedInstancedModifier(); - /** - * <code>.AbilityAttachedModifier attachedInstancedModifier = 8;</code> - * @return The attachedInstancedModifier. - */ - emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier getAttachedInstancedModifier(); - /** - * <code>.AbilityAttachedModifier attachedInstancedModifier = 8;</code> - */ - emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifierOrBuilder getAttachedInstancedModifierOrBuilder(); - - /** - * <code>uint32 applyEntityId = 9;</code> - * @return The applyEntityId. - */ - int getApplyEntityId(); - - /** - * <code>bool isAttachedParentAbility = 10;</code> - * @return The isAttachedParentAbility. - */ - boolean getIsAttachedParentAbility(); - - /** - * <code>.ModifierDurability modifierDurability = 11;</code> - * @return Whether the modifierDurability field is set. - */ - boolean hasModifierDurability(); - /** - * <code>.ModifierDurability modifierDurability = 11;</code> - * @return The modifierDurability. - */ - emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability getModifierDurability(); - /** - * <code>.ModifierDurability modifierDurability = 11;</code> - */ - emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurabilityOrBuilder getModifierDurabilityOrBuilder(); - - /** - * <code>uint32 sbuffUid = 12;</code> - * @return The sbuffUid. - */ - int getSbuffUid(); - - /** - * <code>bool isServerbuffModifier = 13;</code> - * @return The isServerbuffModifier. - */ - boolean getIsServerbuffModifier(); - } - /** - * Protobuf type {@code AbilityAppliedModifier} - */ - public static final class AbilityAppliedModifier extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AbilityAppliedModifier) - AbilityAppliedModifierOrBuilder { - private static final long serialVersionUID = 0L; - // Use AbilityAppliedModifier.newBuilder() to construct. - private AbilityAppliedModifier(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AbilityAppliedModifier() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AbilityAppliedModifier(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AbilityAppliedModifier( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - modifierLocalId_ = input.readInt32(); - break; - } - case 16: { - - parentAbilityEntityId_ = input.readUInt32(); - break; - } - case 26: { - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder subBuilder = null; - if (parentAbilityName_ != null) { - subBuilder = parentAbilityName_.toBuilder(); - } - parentAbilityName_ = input.readMessage(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(parentAbilityName_); - parentAbilityName_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder subBuilder = null; - if (parentAbilityOverride_ != null) { - subBuilder = parentAbilityOverride_.toBuilder(); - } - parentAbilityOverride_ = input.readMessage(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(parentAbilityOverride_); - parentAbilityOverride_ = subBuilder.buildPartial(); - } - - break; - } - case 40: { - - instancedAbilityId_ = input.readUInt32(); - break; - } - case 48: { - - instancedModifierId_ = input.readUInt32(); - break; - } - case 61: { - - existDuration_ = input.readFloat(); - break; - } - case 66: { - emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.Builder subBuilder = null; - if (attachedInstancedModifier_ != null) { - subBuilder = attachedInstancedModifier_.toBuilder(); - } - attachedInstancedModifier_ = input.readMessage(emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attachedInstancedModifier_); - attachedInstancedModifier_ = subBuilder.buildPartial(); - } - - break; - } - case 72: { - - applyEntityId_ = input.readUInt32(); - break; - } - case 80: { - - isAttachedParentAbility_ = input.readBool(); - break; - } - case 90: { - emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.Builder subBuilder = null; - if (modifierDurability_ != null) { - subBuilder = modifierDurability_.toBuilder(); - } - modifierDurability_ = input.readMessage(emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(modifierDurability_); - modifierDurability_ = subBuilder.buildPartial(); - } - - break; - } - case 96: { - - sbuffUid_ = input.readUInt32(); - break; - } - case 104: { - - isServerbuffModifier_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.internal_static_AbilityAppliedModifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.internal_static_AbilityAppliedModifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.class, emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.Builder.class); - } - - public static final int MODIFIERLOCALID_FIELD_NUMBER = 1; - private int modifierLocalId_; - /** - * <code>int32 modifierLocalId = 1;</code> - * @return The modifierLocalId. - */ - @java.lang.Override - public int getModifierLocalId() { - return modifierLocalId_; - } - - public static final int PARENTABILITYENTITYID_FIELD_NUMBER = 2; - private int parentAbilityEntityId_; - /** - * <code>uint32 parentAbilityEntityId = 2;</code> - * @return The parentAbilityEntityId. - */ - @java.lang.Override - public int getParentAbilityEntityId() { - return parentAbilityEntityId_; - } - - public static final int PARENTABILITYNAME_FIELD_NUMBER = 3; - private emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString parentAbilityName_; - /** - * <code>.AbilityString parentAbilityName = 3;</code> - * @return Whether the parentAbilityName field is set. - */ - @java.lang.Override - public boolean hasParentAbilityName() { - return parentAbilityName_ != null; - } - /** - * <code>.AbilityString parentAbilityName = 3;</code> - * @return The parentAbilityName. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getParentAbilityName() { - return parentAbilityName_ == null ? emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : parentAbilityName_; - } - /** - * <code>.AbilityString parentAbilityName = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getParentAbilityNameOrBuilder() { - return getParentAbilityName(); - } - - public static final int PARENTABILITYOVERRIDE_FIELD_NUMBER = 4; - private emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString parentAbilityOverride_; - /** - * <code>.AbilityString parentAbilityOverride = 4;</code> - * @return Whether the parentAbilityOverride field is set. - */ - @java.lang.Override - public boolean hasParentAbilityOverride() { - return parentAbilityOverride_ != null; - } - /** - * <code>.AbilityString parentAbilityOverride = 4;</code> - * @return The parentAbilityOverride. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getParentAbilityOverride() { - return parentAbilityOverride_ == null ? emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : parentAbilityOverride_; - } - /** - * <code>.AbilityString parentAbilityOverride = 4;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getParentAbilityOverrideOrBuilder() { - return getParentAbilityOverride(); - } - - public static final int INSTANCEDABILITYID_FIELD_NUMBER = 5; - private int instancedAbilityId_; - /** - * <code>uint32 instancedAbilityId = 5;</code> - * @return The instancedAbilityId. - */ - @java.lang.Override - public int getInstancedAbilityId() { - return instancedAbilityId_; - } - - public static final int INSTANCEDMODIFIERID_FIELD_NUMBER = 6; - private int instancedModifierId_; - /** - * <code>uint32 instancedModifierId = 6;</code> - * @return The instancedModifierId. - */ - @java.lang.Override - public int getInstancedModifierId() { - return instancedModifierId_; - } - - public static final int EXISTDURATION_FIELD_NUMBER = 7; - private float existDuration_; - /** - * <code>float existDuration = 7;</code> - * @return The existDuration. - */ - @java.lang.Override - public float getExistDuration() { - return existDuration_; - } - - public static final int ATTACHEDINSTANCEDMODIFIER_FIELD_NUMBER = 8; - private emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier attachedInstancedModifier_; - /** - * <code>.AbilityAttachedModifier attachedInstancedModifier = 8;</code> - * @return Whether the attachedInstancedModifier field is set. - */ - @java.lang.Override - public boolean hasAttachedInstancedModifier() { - return attachedInstancedModifier_ != null; - } - /** - * <code>.AbilityAttachedModifier attachedInstancedModifier = 8;</code> - * @return The attachedInstancedModifier. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier getAttachedInstancedModifier() { - return attachedInstancedModifier_ == null ? emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.getDefaultInstance() : attachedInstancedModifier_; - } - /** - * <code>.AbilityAttachedModifier attachedInstancedModifier = 8;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifierOrBuilder getAttachedInstancedModifierOrBuilder() { - return getAttachedInstancedModifier(); - } - - public static final int APPLYENTITYID_FIELD_NUMBER = 9; - private int applyEntityId_; - /** - * <code>uint32 applyEntityId = 9;</code> - * @return The applyEntityId. - */ - @java.lang.Override - public int getApplyEntityId() { - return applyEntityId_; - } - - public static final int ISATTACHEDPARENTABILITY_FIELD_NUMBER = 10; - private boolean isAttachedParentAbility_; - /** - * <code>bool isAttachedParentAbility = 10;</code> - * @return The isAttachedParentAbility. - */ - @java.lang.Override - public boolean getIsAttachedParentAbility() { - return isAttachedParentAbility_; - } - - public static final int MODIFIERDURABILITY_FIELD_NUMBER = 11; - private emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability modifierDurability_; - /** - * <code>.ModifierDurability modifierDurability = 11;</code> - * @return Whether the modifierDurability field is set. - */ - @java.lang.Override - public boolean hasModifierDurability() { - return modifierDurability_ != null; - } - /** - * <code>.ModifierDurability modifierDurability = 11;</code> - * @return The modifierDurability. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability getModifierDurability() { - return modifierDurability_ == null ? emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.getDefaultInstance() : modifierDurability_; - } - /** - * <code>.ModifierDurability modifierDurability = 11;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurabilityOrBuilder getModifierDurabilityOrBuilder() { - return getModifierDurability(); - } - - public static final int SBUFFUID_FIELD_NUMBER = 12; - private int sbuffUid_; - /** - * <code>uint32 sbuffUid = 12;</code> - * @return The sbuffUid. - */ - @java.lang.Override - public int getSbuffUid() { - return sbuffUid_; - } - - public static final int ISSERVERBUFFMODIFIER_FIELD_NUMBER = 13; - private boolean isServerbuffModifier_; - /** - * <code>bool isServerbuffModifier = 13;</code> - * @return The isServerbuffModifier. - */ - @java.lang.Override - public boolean getIsServerbuffModifier() { - return isServerbuffModifier_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (modifierLocalId_ != 0) { - output.writeInt32(1, modifierLocalId_); - } - if (parentAbilityEntityId_ != 0) { - output.writeUInt32(2, parentAbilityEntityId_); - } - if (parentAbilityName_ != null) { - output.writeMessage(3, getParentAbilityName()); - } - if (parentAbilityOverride_ != null) { - output.writeMessage(4, getParentAbilityOverride()); - } - if (instancedAbilityId_ != 0) { - output.writeUInt32(5, instancedAbilityId_); - } - if (instancedModifierId_ != 0) { - output.writeUInt32(6, instancedModifierId_); - } - if (existDuration_ != 0F) { - output.writeFloat(7, existDuration_); - } - if (attachedInstancedModifier_ != null) { - output.writeMessage(8, getAttachedInstancedModifier()); - } - if (applyEntityId_ != 0) { - output.writeUInt32(9, applyEntityId_); - } - if (isAttachedParentAbility_ != false) { - output.writeBool(10, isAttachedParentAbility_); - } - if (modifierDurability_ != null) { - output.writeMessage(11, getModifierDurability()); - } - if (sbuffUid_ != 0) { - output.writeUInt32(12, sbuffUid_); - } - if (isServerbuffModifier_ != false) { - output.writeBool(13, isServerbuffModifier_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (modifierLocalId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, modifierLocalId_); - } - if (parentAbilityEntityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, parentAbilityEntityId_); - } - if (parentAbilityName_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getParentAbilityName()); - } - if (parentAbilityOverride_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getParentAbilityOverride()); - } - if (instancedAbilityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, instancedAbilityId_); - } - if (instancedModifierId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, instancedModifierId_); - } - if (existDuration_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(7, existDuration_); - } - if (attachedInstancedModifier_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getAttachedInstancedModifier()); - } - if (applyEntityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(9, applyEntityId_); - } - if (isAttachedParentAbility_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(10, isAttachedParentAbility_); - } - if (modifierDurability_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getModifierDurability()); - } - if (sbuffUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(12, sbuffUid_); - } - if (isServerbuffModifier_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(13, isServerbuffModifier_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier other = (emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier) obj; - - if (getModifierLocalId() - != other.getModifierLocalId()) return false; - if (getParentAbilityEntityId() - != other.getParentAbilityEntityId()) return false; - if (hasParentAbilityName() != other.hasParentAbilityName()) return false; - if (hasParentAbilityName()) { - if (!getParentAbilityName() - .equals(other.getParentAbilityName())) return false; - } - if (hasParentAbilityOverride() != other.hasParentAbilityOverride()) return false; - if (hasParentAbilityOverride()) { - if (!getParentAbilityOverride() - .equals(other.getParentAbilityOverride())) return false; - } - if (getInstancedAbilityId() - != other.getInstancedAbilityId()) return false; - if (getInstancedModifierId() - != other.getInstancedModifierId()) return false; - if (java.lang.Float.floatToIntBits(getExistDuration()) - != java.lang.Float.floatToIntBits( - other.getExistDuration())) return false; - if (hasAttachedInstancedModifier() != other.hasAttachedInstancedModifier()) return false; - if (hasAttachedInstancedModifier()) { - if (!getAttachedInstancedModifier() - .equals(other.getAttachedInstancedModifier())) return false; - } - if (getApplyEntityId() - != other.getApplyEntityId()) return false; - if (getIsAttachedParentAbility() - != other.getIsAttachedParentAbility()) return false; - if (hasModifierDurability() != other.hasModifierDurability()) return false; - if (hasModifierDurability()) { - if (!getModifierDurability() - .equals(other.getModifierDurability())) return false; - } - if (getSbuffUid() - != other.getSbuffUid()) return false; - if (getIsServerbuffModifier() - != other.getIsServerbuffModifier()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MODIFIERLOCALID_FIELD_NUMBER; - hash = (53 * hash) + getModifierLocalId(); - hash = (37 * hash) + PARENTABILITYENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getParentAbilityEntityId(); - if (hasParentAbilityName()) { - hash = (37 * hash) + PARENTABILITYNAME_FIELD_NUMBER; - hash = (53 * hash) + getParentAbilityName().hashCode(); - } - if (hasParentAbilityOverride()) { - hash = (37 * hash) + PARENTABILITYOVERRIDE_FIELD_NUMBER; - hash = (53 * hash) + getParentAbilityOverride().hashCode(); - } - hash = (37 * hash) + INSTANCEDABILITYID_FIELD_NUMBER; - hash = (53 * hash) + getInstancedAbilityId(); - hash = (37 * hash) + INSTANCEDMODIFIERID_FIELD_NUMBER; - hash = (53 * hash) + getInstancedModifierId(); - hash = (37 * hash) + EXISTDURATION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getExistDuration()); - if (hasAttachedInstancedModifier()) { - hash = (37 * hash) + ATTACHEDINSTANCEDMODIFIER_FIELD_NUMBER; - hash = (53 * hash) + getAttachedInstancedModifier().hashCode(); - } - hash = (37 * hash) + APPLYENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getApplyEntityId(); - hash = (37 * hash) + ISATTACHEDPARENTABILITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsAttachedParentAbility()); - if (hasModifierDurability()) { - hash = (37 * hash) + MODIFIERDURABILITY_FIELD_NUMBER; - hash = (53 * hash) + getModifierDurability().hashCode(); - } - hash = (37 * hash) + SBUFFUID_FIELD_NUMBER; - hash = (53 * hash) + getSbuffUid(); - hash = (37 * hash) + ISSERVERBUFFMODIFIER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsServerbuffModifier()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AbilityAppliedModifier} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AbilityAppliedModifier) - emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.internal_static_AbilityAppliedModifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.internal_static_AbilityAppliedModifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.class, emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - modifierLocalId_ = 0; - - parentAbilityEntityId_ = 0; - - if (parentAbilityNameBuilder_ == null) { - parentAbilityName_ = null; - } else { - parentAbilityName_ = null; - parentAbilityNameBuilder_ = null; - } - if (parentAbilityOverrideBuilder_ == null) { - parentAbilityOverride_ = null; - } else { - parentAbilityOverride_ = null; - parentAbilityOverrideBuilder_ = null; - } - instancedAbilityId_ = 0; - - instancedModifierId_ = 0; - - existDuration_ = 0F; - - if (attachedInstancedModifierBuilder_ == null) { - attachedInstancedModifier_ = null; - } else { - attachedInstancedModifier_ = null; - attachedInstancedModifierBuilder_ = null; - } - applyEntityId_ = 0; - - isAttachedParentAbility_ = false; - - if (modifierDurabilityBuilder_ == null) { - modifierDurability_ = null; - } else { - modifierDurability_ = null; - modifierDurabilityBuilder_ = null; - } - sbuffUid_ = 0; - - isServerbuffModifier_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.internal_static_AbilityAppliedModifier_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier build() { - emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier buildPartial() { - emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier result = new emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier(this); - result.modifierLocalId_ = modifierLocalId_; - result.parentAbilityEntityId_ = parentAbilityEntityId_; - if (parentAbilityNameBuilder_ == null) { - result.parentAbilityName_ = parentAbilityName_; - } else { - result.parentAbilityName_ = parentAbilityNameBuilder_.build(); - } - if (parentAbilityOverrideBuilder_ == null) { - result.parentAbilityOverride_ = parentAbilityOverride_; - } else { - result.parentAbilityOverride_ = parentAbilityOverrideBuilder_.build(); - } - result.instancedAbilityId_ = instancedAbilityId_; - result.instancedModifierId_ = instancedModifierId_; - result.existDuration_ = existDuration_; - if (attachedInstancedModifierBuilder_ == null) { - result.attachedInstancedModifier_ = attachedInstancedModifier_; - } else { - result.attachedInstancedModifier_ = attachedInstancedModifierBuilder_.build(); - } - result.applyEntityId_ = applyEntityId_; - result.isAttachedParentAbility_ = isAttachedParentAbility_; - if (modifierDurabilityBuilder_ == null) { - result.modifierDurability_ = modifierDurability_; - } else { - result.modifierDurability_ = modifierDurabilityBuilder_.build(); - } - result.sbuffUid_ = sbuffUid_; - result.isServerbuffModifier_ = isServerbuffModifier_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier) { - return mergeFrom((emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier other) { - if (other == emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.getDefaultInstance()) return this; - if (other.getModifierLocalId() != 0) { - setModifierLocalId(other.getModifierLocalId()); - } - if (other.getParentAbilityEntityId() != 0) { - setParentAbilityEntityId(other.getParentAbilityEntityId()); - } - if (other.hasParentAbilityName()) { - mergeParentAbilityName(other.getParentAbilityName()); - } - if (other.hasParentAbilityOverride()) { - mergeParentAbilityOverride(other.getParentAbilityOverride()); - } - if (other.getInstancedAbilityId() != 0) { - setInstancedAbilityId(other.getInstancedAbilityId()); - } - if (other.getInstancedModifierId() != 0) { - setInstancedModifierId(other.getInstancedModifierId()); - } - if (other.getExistDuration() != 0F) { - setExistDuration(other.getExistDuration()); - } - if (other.hasAttachedInstancedModifier()) { - mergeAttachedInstancedModifier(other.getAttachedInstancedModifier()); - } - if (other.getApplyEntityId() != 0) { - setApplyEntityId(other.getApplyEntityId()); - } - if (other.getIsAttachedParentAbility() != false) { - setIsAttachedParentAbility(other.getIsAttachedParentAbility()); - } - if (other.hasModifierDurability()) { - mergeModifierDurability(other.getModifierDurability()); - } - if (other.getSbuffUid() != 0) { - setSbuffUid(other.getSbuffUid()); - } - if (other.getIsServerbuffModifier() != false) { - setIsServerbuffModifier(other.getIsServerbuffModifier()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int modifierLocalId_ ; - /** - * <code>int32 modifierLocalId = 1;</code> - * @return The modifierLocalId. - */ - @java.lang.Override - public int getModifierLocalId() { - return modifierLocalId_; - } - /** - * <code>int32 modifierLocalId = 1;</code> - * @param value The modifierLocalId to set. - * @return This builder for chaining. - */ - public Builder setModifierLocalId(int value) { - - modifierLocalId_ = value; - onChanged(); - return this; - } - /** - * <code>int32 modifierLocalId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearModifierLocalId() { - - modifierLocalId_ = 0; - onChanged(); - return this; - } - - private int parentAbilityEntityId_ ; - /** - * <code>uint32 parentAbilityEntityId = 2;</code> - * @return The parentAbilityEntityId. - */ - @java.lang.Override - public int getParentAbilityEntityId() { - return parentAbilityEntityId_; - } - /** - * <code>uint32 parentAbilityEntityId = 2;</code> - * @param value The parentAbilityEntityId to set. - * @return This builder for chaining. - */ - public Builder setParentAbilityEntityId(int value) { - - parentAbilityEntityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 parentAbilityEntityId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearParentAbilityEntityId() { - - parentAbilityEntityId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString parentAbilityName_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder> parentAbilityNameBuilder_; - /** - * <code>.AbilityString parentAbilityName = 3;</code> - * @return Whether the parentAbilityName field is set. - */ - public boolean hasParentAbilityName() { - return parentAbilityNameBuilder_ != null || parentAbilityName_ != null; - } - /** - * <code>.AbilityString parentAbilityName = 3;</code> - * @return The parentAbilityName. - */ - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getParentAbilityName() { - if (parentAbilityNameBuilder_ == null) { - return parentAbilityName_ == null ? emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : parentAbilityName_; - } else { - return parentAbilityNameBuilder_.getMessage(); - } - } - /** - * <code>.AbilityString parentAbilityName = 3;</code> - */ - public Builder setParentAbilityName(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString value) { - if (parentAbilityNameBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - parentAbilityName_ = value; - onChanged(); - } else { - parentAbilityNameBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.AbilityString parentAbilityName = 3;</code> - */ - public Builder setParentAbilityName( - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder builderForValue) { - if (parentAbilityNameBuilder_ == null) { - parentAbilityName_ = builderForValue.build(); - onChanged(); - } else { - parentAbilityNameBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.AbilityString parentAbilityName = 3;</code> - */ - public Builder mergeParentAbilityName(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString value) { - if (parentAbilityNameBuilder_ == null) { - if (parentAbilityName_ != null) { - parentAbilityName_ = - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.newBuilder(parentAbilityName_).mergeFrom(value).buildPartial(); - } else { - parentAbilityName_ = value; - } - onChanged(); - } else { - parentAbilityNameBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.AbilityString parentAbilityName = 3;</code> - */ - public Builder clearParentAbilityName() { - if (parentAbilityNameBuilder_ == null) { - parentAbilityName_ = null; - onChanged(); - } else { - parentAbilityName_ = null; - parentAbilityNameBuilder_ = null; - } - - return this; - } - /** - * <code>.AbilityString parentAbilityName = 3;</code> - */ - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder getParentAbilityNameBuilder() { - - onChanged(); - return getParentAbilityNameFieldBuilder().getBuilder(); - } - /** - * <code>.AbilityString parentAbilityName = 3;</code> - */ - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getParentAbilityNameOrBuilder() { - if (parentAbilityNameBuilder_ != null) { - return parentAbilityNameBuilder_.getMessageOrBuilder(); - } else { - return parentAbilityName_ == null ? - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : parentAbilityName_; - } - } - /** - * <code>.AbilityString parentAbilityName = 3;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder> - getParentAbilityNameFieldBuilder() { - if (parentAbilityNameBuilder_ == null) { - parentAbilityNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder>( - getParentAbilityName(), - getParentForChildren(), - isClean()); - parentAbilityName_ = null; - } - return parentAbilityNameBuilder_; - } - - private emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString parentAbilityOverride_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder> parentAbilityOverrideBuilder_; - /** - * <code>.AbilityString parentAbilityOverride = 4;</code> - * @return Whether the parentAbilityOverride field is set. - */ - public boolean hasParentAbilityOverride() { - return parentAbilityOverrideBuilder_ != null || parentAbilityOverride_ != null; - } - /** - * <code>.AbilityString parentAbilityOverride = 4;</code> - * @return The parentAbilityOverride. - */ - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getParentAbilityOverride() { - if (parentAbilityOverrideBuilder_ == null) { - return parentAbilityOverride_ == null ? emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : parentAbilityOverride_; - } else { - return parentAbilityOverrideBuilder_.getMessage(); - } - } - /** - * <code>.AbilityString parentAbilityOverride = 4;</code> - */ - public Builder setParentAbilityOverride(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString value) { - if (parentAbilityOverrideBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - parentAbilityOverride_ = value; - onChanged(); - } else { - parentAbilityOverrideBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.AbilityString parentAbilityOverride = 4;</code> - */ - public Builder setParentAbilityOverride( - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder builderForValue) { - if (parentAbilityOverrideBuilder_ == null) { - parentAbilityOverride_ = builderForValue.build(); - onChanged(); - } else { - parentAbilityOverrideBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.AbilityString parentAbilityOverride = 4;</code> - */ - public Builder mergeParentAbilityOverride(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString value) { - if (parentAbilityOverrideBuilder_ == null) { - if (parentAbilityOverride_ != null) { - parentAbilityOverride_ = - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.newBuilder(parentAbilityOverride_).mergeFrom(value).buildPartial(); - } else { - parentAbilityOverride_ = value; - } - onChanged(); - } else { - parentAbilityOverrideBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.AbilityString parentAbilityOverride = 4;</code> - */ - public Builder clearParentAbilityOverride() { - if (parentAbilityOverrideBuilder_ == null) { - parentAbilityOverride_ = null; - onChanged(); - } else { - parentAbilityOverride_ = null; - parentAbilityOverrideBuilder_ = null; - } - - return this; - } - /** - * <code>.AbilityString parentAbilityOverride = 4;</code> - */ - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder getParentAbilityOverrideBuilder() { - - onChanged(); - return getParentAbilityOverrideFieldBuilder().getBuilder(); - } - /** - * <code>.AbilityString parentAbilityOverride = 4;</code> - */ - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getParentAbilityOverrideOrBuilder() { - if (parentAbilityOverrideBuilder_ != null) { - return parentAbilityOverrideBuilder_.getMessageOrBuilder(); - } else { - return parentAbilityOverride_ == null ? - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : parentAbilityOverride_; - } - } - /** - * <code>.AbilityString parentAbilityOverride = 4;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder> - getParentAbilityOverrideFieldBuilder() { - if (parentAbilityOverrideBuilder_ == null) { - parentAbilityOverrideBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder>( - getParentAbilityOverride(), - getParentForChildren(), - isClean()); - parentAbilityOverride_ = null; - } - return parentAbilityOverrideBuilder_; - } - - private int instancedAbilityId_ ; - /** - * <code>uint32 instancedAbilityId = 5;</code> - * @return The instancedAbilityId. - */ - @java.lang.Override - public int getInstancedAbilityId() { - return instancedAbilityId_; - } - /** - * <code>uint32 instancedAbilityId = 5;</code> - * @param value The instancedAbilityId to set. - * @return This builder for chaining. - */ - public Builder setInstancedAbilityId(int value) { - - instancedAbilityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 instancedAbilityId = 5;</code> - * @return This builder for chaining. - */ - public Builder clearInstancedAbilityId() { - - instancedAbilityId_ = 0; - onChanged(); - return this; - } - - private int instancedModifierId_ ; - /** - * <code>uint32 instancedModifierId = 6;</code> - * @return The instancedModifierId. - */ - @java.lang.Override - public int getInstancedModifierId() { - return instancedModifierId_; - } - /** - * <code>uint32 instancedModifierId = 6;</code> - * @param value The instancedModifierId to set. - * @return This builder for chaining. - */ - public Builder setInstancedModifierId(int value) { - - instancedModifierId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 instancedModifierId = 6;</code> - * @return This builder for chaining. - */ - public Builder clearInstancedModifierId() { - - instancedModifierId_ = 0; - onChanged(); - return this; - } - - private float existDuration_ ; - /** - * <code>float existDuration = 7;</code> - * @return The existDuration. - */ - @java.lang.Override - public float getExistDuration() { - return existDuration_; - } - /** - * <code>float existDuration = 7;</code> - * @param value The existDuration to set. - * @return This builder for chaining. - */ - public Builder setExistDuration(float value) { - - existDuration_ = value; - onChanged(); - return this; - } - /** - * <code>float existDuration = 7;</code> - * @return This builder for chaining. - */ - public Builder clearExistDuration() { - - existDuration_ = 0F; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier attachedInstancedModifier_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier, emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.Builder, emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifierOrBuilder> attachedInstancedModifierBuilder_; - /** - * <code>.AbilityAttachedModifier attachedInstancedModifier = 8;</code> - * @return Whether the attachedInstancedModifier field is set. - */ - public boolean hasAttachedInstancedModifier() { - return attachedInstancedModifierBuilder_ != null || attachedInstancedModifier_ != null; - } - /** - * <code>.AbilityAttachedModifier attachedInstancedModifier = 8;</code> - * @return The attachedInstancedModifier. - */ - public emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier getAttachedInstancedModifier() { - if (attachedInstancedModifierBuilder_ == null) { - return attachedInstancedModifier_ == null ? emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.getDefaultInstance() : attachedInstancedModifier_; - } else { - return attachedInstancedModifierBuilder_.getMessage(); - } - } - /** - * <code>.AbilityAttachedModifier attachedInstancedModifier = 8;</code> - */ - public Builder setAttachedInstancedModifier(emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier value) { - if (attachedInstancedModifierBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - attachedInstancedModifier_ = value; - onChanged(); - } else { - attachedInstancedModifierBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.AbilityAttachedModifier attachedInstancedModifier = 8;</code> - */ - public Builder setAttachedInstancedModifier( - emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.Builder builderForValue) { - if (attachedInstancedModifierBuilder_ == null) { - attachedInstancedModifier_ = builderForValue.build(); - onChanged(); - } else { - attachedInstancedModifierBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.AbilityAttachedModifier attachedInstancedModifier = 8;</code> - */ - public Builder mergeAttachedInstancedModifier(emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier value) { - if (attachedInstancedModifierBuilder_ == null) { - if (attachedInstancedModifier_ != null) { - attachedInstancedModifier_ = - emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.newBuilder(attachedInstancedModifier_).mergeFrom(value).buildPartial(); - } else { - attachedInstancedModifier_ = value; - } - onChanged(); - } else { - attachedInstancedModifierBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.AbilityAttachedModifier attachedInstancedModifier = 8;</code> - */ - public Builder clearAttachedInstancedModifier() { - if (attachedInstancedModifierBuilder_ == null) { - attachedInstancedModifier_ = null; - onChanged(); - } else { - attachedInstancedModifier_ = null; - attachedInstancedModifierBuilder_ = null; - } - - return this; - } - /** - * <code>.AbilityAttachedModifier attachedInstancedModifier = 8;</code> - */ - public emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.Builder getAttachedInstancedModifierBuilder() { - - onChanged(); - return getAttachedInstancedModifierFieldBuilder().getBuilder(); - } - /** - * <code>.AbilityAttachedModifier attachedInstancedModifier = 8;</code> - */ - public emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifierOrBuilder getAttachedInstancedModifierOrBuilder() { - if (attachedInstancedModifierBuilder_ != null) { - return attachedInstancedModifierBuilder_.getMessageOrBuilder(); - } else { - return attachedInstancedModifier_ == null ? - emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.getDefaultInstance() : attachedInstancedModifier_; - } - } - /** - * <code>.AbilityAttachedModifier attachedInstancedModifier = 8;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier, emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.Builder, emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifierOrBuilder> - getAttachedInstancedModifierFieldBuilder() { - if (attachedInstancedModifierBuilder_ == null) { - attachedInstancedModifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier, emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.Builder, emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifierOrBuilder>( - getAttachedInstancedModifier(), - getParentForChildren(), - isClean()); - attachedInstancedModifier_ = null; - } - return attachedInstancedModifierBuilder_; - } - - private int applyEntityId_ ; - /** - * <code>uint32 applyEntityId = 9;</code> - * @return The applyEntityId. - */ - @java.lang.Override - public int getApplyEntityId() { - return applyEntityId_; - } - /** - * <code>uint32 applyEntityId = 9;</code> - * @param value The applyEntityId to set. - * @return This builder for chaining. - */ - public Builder setApplyEntityId(int value) { - - applyEntityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 applyEntityId = 9;</code> - * @return This builder for chaining. - */ - public Builder clearApplyEntityId() { - - applyEntityId_ = 0; - onChanged(); - return this; - } - - private boolean isAttachedParentAbility_ ; - /** - * <code>bool isAttachedParentAbility = 10;</code> - * @return The isAttachedParentAbility. - */ - @java.lang.Override - public boolean getIsAttachedParentAbility() { - return isAttachedParentAbility_; - } - /** - * <code>bool isAttachedParentAbility = 10;</code> - * @param value The isAttachedParentAbility to set. - * @return This builder for chaining. - */ - public Builder setIsAttachedParentAbility(boolean value) { - - isAttachedParentAbility_ = value; - onChanged(); - return this; - } - /** - * <code>bool isAttachedParentAbility = 10;</code> - * @return This builder for chaining. - */ - public Builder clearIsAttachedParentAbility() { - - isAttachedParentAbility_ = false; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability modifierDurability_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability, emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.Builder, emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurabilityOrBuilder> modifierDurabilityBuilder_; - /** - * <code>.ModifierDurability modifierDurability = 11;</code> - * @return Whether the modifierDurability field is set. - */ - public boolean hasModifierDurability() { - return modifierDurabilityBuilder_ != null || modifierDurability_ != null; - } - /** - * <code>.ModifierDurability modifierDurability = 11;</code> - * @return The modifierDurability. - */ - public emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability getModifierDurability() { - if (modifierDurabilityBuilder_ == null) { - return modifierDurability_ == null ? emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.getDefaultInstance() : modifierDurability_; - } else { - return modifierDurabilityBuilder_.getMessage(); - } - } - /** - * <code>.ModifierDurability modifierDurability = 11;</code> - */ - public Builder setModifierDurability(emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability value) { - if (modifierDurabilityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - modifierDurability_ = value; - onChanged(); - } else { - modifierDurabilityBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.ModifierDurability modifierDurability = 11;</code> - */ - public Builder setModifierDurability( - emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.Builder builderForValue) { - if (modifierDurabilityBuilder_ == null) { - modifierDurability_ = builderForValue.build(); - onChanged(); - } else { - modifierDurabilityBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.ModifierDurability modifierDurability = 11;</code> - */ - public Builder mergeModifierDurability(emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability value) { - if (modifierDurabilityBuilder_ == null) { - if (modifierDurability_ != null) { - modifierDurability_ = - emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.newBuilder(modifierDurability_).mergeFrom(value).buildPartial(); - } else { - modifierDurability_ = value; - } - onChanged(); - } else { - modifierDurabilityBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.ModifierDurability modifierDurability = 11;</code> - */ - public Builder clearModifierDurability() { - if (modifierDurabilityBuilder_ == null) { - modifierDurability_ = null; - onChanged(); - } else { - modifierDurability_ = null; - modifierDurabilityBuilder_ = null; - } - - return this; - } - /** - * <code>.ModifierDurability modifierDurability = 11;</code> - */ - public emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.Builder getModifierDurabilityBuilder() { - - onChanged(); - return getModifierDurabilityFieldBuilder().getBuilder(); - } - /** - * <code>.ModifierDurability modifierDurability = 11;</code> - */ - public emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurabilityOrBuilder getModifierDurabilityOrBuilder() { - if (modifierDurabilityBuilder_ != null) { - return modifierDurabilityBuilder_.getMessageOrBuilder(); - } else { - return modifierDurability_ == null ? - emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.getDefaultInstance() : modifierDurability_; - } - } - /** - * <code>.ModifierDurability modifierDurability = 11;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability, emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.Builder, emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurabilityOrBuilder> - getModifierDurabilityFieldBuilder() { - if (modifierDurabilityBuilder_ == null) { - modifierDurabilityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability, emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.Builder, emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurabilityOrBuilder>( - getModifierDurability(), - getParentForChildren(), - isClean()); - modifierDurability_ = null; - } - return modifierDurabilityBuilder_; - } - - private int sbuffUid_ ; - /** - * <code>uint32 sbuffUid = 12;</code> - * @return The sbuffUid. - */ - @java.lang.Override - public int getSbuffUid() { - return sbuffUid_; - } - /** - * <code>uint32 sbuffUid = 12;</code> - * @param value The sbuffUid to set. - * @return This builder for chaining. - */ - public Builder setSbuffUid(int value) { - - sbuffUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 sbuffUid = 12;</code> - * @return This builder for chaining. - */ - public Builder clearSbuffUid() { - - sbuffUid_ = 0; - onChanged(); - return this; - } - - private boolean isServerbuffModifier_ ; - /** - * <code>bool isServerbuffModifier = 13;</code> - * @return The isServerbuffModifier. - */ - @java.lang.Override - public boolean getIsServerbuffModifier() { - return isServerbuffModifier_; - } - /** - * <code>bool isServerbuffModifier = 13;</code> - * @param value The isServerbuffModifier to set. - * @return This builder for chaining. - */ - public Builder setIsServerbuffModifier(boolean value) { - - isServerbuffModifier_ = value; - onChanged(); - return this; - } - /** - * <code>bool isServerbuffModifier = 13;</code> - * @return This builder for chaining. - */ - public Builder clearIsServerbuffModifier() { - - isServerbuffModifier_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AbilityAppliedModifier) - } - - // @@protoc_insertion_point(class_scope:AbilityAppliedModifier) - private static final emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier(); - } - - public static emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AbilityAppliedModifier> - PARSER = new com.google.protobuf.AbstractParser<AbilityAppliedModifier>() { - @java.lang.Override - public AbilityAppliedModifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AbilityAppliedModifier(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AbilityAppliedModifier> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AbilityAppliedModifier> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AbilityAppliedModifier_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AbilityAppliedModifier_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034AbilityAppliedModifier.proto\032\035AbilityA" + - "ttachedModifier.proto\032\023AbilityString.pro" + - "to\032\030ModifierDurability.proto\"\320\003\n\026Ability" + - "AppliedModifier\022\027\n\017modifierLocalId\030\001 \001(\005" + - "\022\035\n\025parentAbilityEntityId\030\002 \001(\r\022)\n\021paren" + - "tAbilityName\030\003 \001(\0132\016.AbilityString\022-\n\025pa" + - "rentAbilityOverride\030\004 \001(\0132\016.AbilityStrin" + - "g\022\032\n\022instancedAbilityId\030\005 \001(\r\022\033\n\023instanc" + - "edModifierId\030\006 \001(\r\022\025\n\rexistDuration\030\007 \001(" + - "\002\022;\n\031attachedInstancedModifier\030\010 \001(\0132\030.A" + - "bilityAttachedModifier\022\025\n\rapplyEntityId\030" + - "\t \001(\r\022\037\n\027isAttachedParentAbility\030\n \001(\010\022/" + - "\n\022modifierDurability\030\013 \001(\0132\023.ModifierDur" + - "ability\022\020\n\010sbuffUid\030\014 \001(\r\022\034\n\024isServerbuf" + - "fModifier\030\r \001(\010B\033\n\031emu.grasscutter.net.p" + - "rotob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.getDescriptor(), - emu.grasscutter.net.proto.AbilityStringOuterClass.getDescriptor(), - emu.grasscutter.net.proto.ModifierDurabilityOuterClass.getDescriptor(), - }); - internal_static_AbilityAppliedModifier_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AbilityAppliedModifier_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AbilityAppliedModifier_descriptor, - new java.lang.String[] { "ModifierLocalId", "ParentAbilityEntityId", "ParentAbilityName", "ParentAbilityOverride", "InstancedAbilityId", "InstancedModifierId", "ExistDuration", "AttachedInstancedModifier", "ApplyEntityId", "IsAttachedParentAbility", "ModifierDurability", "SbuffUid", "IsServerbuffModifier", }); - emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.getDescriptor(); - emu.grasscutter.net.proto.AbilityStringOuterClass.getDescriptor(); - emu.grasscutter.net.proto.ModifierDurabilityOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AbilityAttachedModifierOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AbilityAttachedModifierOuterClass.java deleted file mode 100644 index 78aa4e631..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AbilityAttachedModifierOuterClass.java +++ /dev/null @@ -1,821 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AbilityAttachedModifier.proto - -package emu.grasscutter.net.proto; - -public final class AbilityAttachedModifierOuterClass { - private AbilityAttachedModifierOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AbilityAttachedModifierOrBuilder extends - // @@protoc_insertion_point(interface_extends:AbilityAttachedModifier) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>bool isInvalid = 1;</code> - * @return The isInvalid. - */ - boolean getIsInvalid(); - - /** - * <code>uint32 ownerEntityId = 2;</code> - * @return The ownerEntityId. - */ - int getOwnerEntityId(); - - /** - * <code>uint32 instancedModifierId = 3;</code> - * @return The instancedModifierId. - */ - int getInstancedModifierId(); - - /** - * <code>bool isServerbuffModifier = 4;</code> - * @return The isServerbuffModifier. - */ - boolean getIsServerbuffModifier(); - - /** - * <code>int32 attachNameHash = 5;</code> - * @return The attachNameHash. - */ - int getAttachNameHash(); - } - /** - * Protobuf type {@code AbilityAttachedModifier} - */ - public static final class AbilityAttachedModifier extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AbilityAttachedModifier) - AbilityAttachedModifierOrBuilder { - private static final long serialVersionUID = 0L; - // Use AbilityAttachedModifier.newBuilder() to construct. - private AbilityAttachedModifier(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AbilityAttachedModifier() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AbilityAttachedModifier(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AbilityAttachedModifier( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - isInvalid_ = input.readBool(); - break; - } - case 16: { - - ownerEntityId_ = input.readUInt32(); - break; - } - case 24: { - - instancedModifierId_ = input.readUInt32(); - break; - } - case 32: { - - isServerbuffModifier_ = input.readBool(); - break; - } - case 40: { - - attachNameHash_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.internal_static_AbilityAttachedModifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.internal_static_AbilityAttachedModifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.class, emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.Builder.class); - } - - public static final int ISINVALID_FIELD_NUMBER = 1; - private boolean isInvalid_; - /** - * <code>bool isInvalid = 1;</code> - * @return The isInvalid. - */ - @java.lang.Override - public boolean getIsInvalid() { - return isInvalid_; - } - - public static final int OWNERENTITYID_FIELD_NUMBER = 2; - private int ownerEntityId_; - /** - * <code>uint32 ownerEntityId = 2;</code> - * @return The ownerEntityId. - */ - @java.lang.Override - public int getOwnerEntityId() { - return ownerEntityId_; - } - - public static final int INSTANCEDMODIFIERID_FIELD_NUMBER = 3; - private int instancedModifierId_; - /** - * <code>uint32 instancedModifierId = 3;</code> - * @return The instancedModifierId. - */ - @java.lang.Override - public int getInstancedModifierId() { - return instancedModifierId_; - } - - public static final int ISSERVERBUFFMODIFIER_FIELD_NUMBER = 4; - private boolean isServerbuffModifier_; - /** - * <code>bool isServerbuffModifier = 4;</code> - * @return The isServerbuffModifier. - */ - @java.lang.Override - public boolean getIsServerbuffModifier() { - return isServerbuffModifier_; - } - - public static final int ATTACHNAMEHASH_FIELD_NUMBER = 5; - private int attachNameHash_; - /** - * <code>int32 attachNameHash = 5;</code> - * @return The attachNameHash. - */ - @java.lang.Override - public int getAttachNameHash() { - return attachNameHash_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (isInvalid_ != false) { - output.writeBool(1, isInvalid_); - } - if (ownerEntityId_ != 0) { - output.writeUInt32(2, ownerEntityId_); - } - if (instancedModifierId_ != 0) { - output.writeUInt32(3, instancedModifierId_); - } - if (isServerbuffModifier_ != false) { - output.writeBool(4, isServerbuffModifier_); - } - if (attachNameHash_ != 0) { - output.writeInt32(5, attachNameHash_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (isInvalid_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, isInvalid_); - } - if (ownerEntityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, ownerEntityId_); - } - if (instancedModifierId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, instancedModifierId_); - } - if (isServerbuffModifier_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, isServerbuffModifier_); - } - if (attachNameHash_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, attachNameHash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier other = (emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier) obj; - - if (getIsInvalid() - != other.getIsInvalid()) return false; - if (getOwnerEntityId() - != other.getOwnerEntityId()) return false; - if (getInstancedModifierId() - != other.getInstancedModifierId()) return false; - if (getIsServerbuffModifier() - != other.getIsServerbuffModifier()) return false; - if (getAttachNameHash() - != other.getAttachNameHash()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ISINVALID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsInvalid()); - hash = (37 * hash) + OWNERENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getOwnerEntityId(); - hash = (37 * hash) + INSTANCEDMODIFIERID_FIELD_NUMBER; - hash = (53 * hash) + getInstancedModifierId(); - hash = (37 * hash) + ISSERVERBUFFMODIFIER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsServerbuffModifier()); - hash = (37 * hash) + ATTACHNAMEHASH_FIELD_NUMBER; - hash = (53 * hash) + getAttachNameHash(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AbilityAttachedModifier} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AbilityAttachedModifier) - emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.internal_static_AbilityAttachedModifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.internal_static_AbilityAttachedModifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.class, emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - isInvalid_ = false; - - ownerEntityId_ = 0; - - instancedModifierId_ = 0; - - isServerbuffModifier_ = false; - - attachNameHash_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.internal_static_AbilityAttachedModifier_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier build() { - emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier buildPartial() { - emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier result = new emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier(this); - result.isInvalid_ = isInvalid_; - result.ownerEntityId_ = ownerEntityId_; - result.instancedModifierId_ = instancedModifierId_; - result.isServerbuffModifier_ = isServerbuffModifier_; - result.attachNameHash_ = attachNameHash_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier) { - return mergeFrom((emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier other) { - if (other == emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.getDefaultInstance()) return this; - if (other.getIsInvalid() != false) { - setIsInvalid(other.getIsInvalid()); - } - if (other.getOwnerEntityId() != 0) { - setOwnerEntityId(other.getOwnerEntityId()); - } - if (other.getInstancedModifierId() != 0) { - setInstancedModifierId(other.getInstancedModifierId()); - } - if (other.getIsServerbuffModifier() != false) { - setIsServerbuffModifier(other.getIsServerbuffModifier()); - } - if (other.getAttachNameHash() != 0) { - setAttachNameHash(other.getAttachNameHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean isInvalid_ ; - /** - * <code>bool isInvalid = 1;</code> - * @return The isInvalid. - */ - @java.lang.Override - public boolean getIsInvalid() { - return isInvalid_; - } - /** - * <code>bool isInvalid = 1;</code> - * @param value The isInvalid to set. - * @return This builder for chaining. - */ - public Builder setIsInvalid(boolean value) { - - isInvalid_ = value; - onChanged(); - return this; - } - /** - * <code>bool isInvalid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearIsInvalid() { - - isInvalid_ = false; - onChanged(); - return this; - } - - private int ownerEntityId_ ; - /** - * <code>uint32 ownerEntityId = 2;</code> - * @return The ownerEntityId. - */ - @java.lang.Override - public int getOwnerEntityId() { - return ownerEntityId_; - } - /** - * <code>uint32 ownerEntityId = 2;</code> - * @param value The ownerEntityId to set. - * @return This builder for chaining. - */ - public Builder setOwnerEntityId(int value) { - - ownerEntityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 ownerEntityId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearOwnerEntityId() { - - ownerEntityId_ = 0; - onChanged(); - return this; - } - - private int instancedModifierId_ ; - /** - * <code>uint32 instancedModifierId = 3;</code> - * @return The instancedModifierId. - */ - @java.lang.Override - public int getInstancedModifierId() { - return instancedModifierId_; - } - /** - * <code>uint32 instancedModifierId = 3;</code> - * @param value The instancedModifierId to set. - * @return This builder for chaining. - */ - public Builder setInstancedModifierId(int value) { - - instancedModifierId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 instancedModifierId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearInstancedModifierId() { - - instancedModifierId_ = 0; - onChanged(); - return this; - } - - private boolean isServerbuffModifier_ ; - /** - * <code>bool isServerbuffModifier = 4;</code> - * @return The isServerbuffModifier. - */ - @java.lang.Override - public boolean getIsServerbuffModifier() { - return isServerbuffModifier_; - } - /** - * <code>bool isServerbuffModifier = 4;</code> - * @param value The isServerbuffModifier to set. - * @return This builder for chaining. - */ - public Builder setIsServerbuffModifier(boolean value) { - - isServerbuffModifier_ = value; - onChanged(); - return this; - } - /** - * <code>bool isServerbuffModifier = 4;</code> - * @return This builder for chaining. - */ - public Builder clearIsServerbuffModifier() { - - isServerbuffModifier_ = false; - onChanged(); - return this; - } - - private int attachNameHash_ ; - /** - * <code>int32 attachNameHash = 5;</code> - * @return The attachNameHash. - */ - @java.lang.Override - public int getAttachNameHash() { - return attachNameHash_; - } - /** - * <code>int32 attachNameHash = 5;</code> - * @param value The attachNameHash to set. - * @return This builder for chaining. - */ - public Builder setAttachNameHash(int value) { - - attachNameHash_ = value; - onChanged(); - return this; - } - /** - * <code>int32 attachNameHash = 5;</code> - * @return This builder for chaining. - */ - public Builder clearAttachNameHash() { - - attachNameHash_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AbilityAttachedModifier) - } - - // @@protoc_insertion_point(class_scope:AbilityAttachedModifier) - private static final emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier(); - } - - public static emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AbilityAttachedModifier> - PARSER = new com.google.protobuf.AbstractParser<AbilityAttachedModifier>() { - @java.lang.Override - public AbilityAttachedModifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AbilityAttachedModifier(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AbilityAttachedModifier> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AbilityAttachedModifier> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AbilityAttachedModifier_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AbilityAttachedModifier_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035AbilityAttachedModifier.proto\"\226\001\n\027Abil" + - "ityAttachedModifier\022\021\n\tisInvalid\030\001 \001(\010\022\025" + - "\n\rownerEntityId\030\002 \001(\r\022\033\n\023instancedModifi" + - "erId\030\003 \001(\r\022\034\n\024isServerbuffModifier\030\004 \001(\010" + - "\022\026\n\016attachNameHash\030\005 \001(\005B\033\n\031emu.grasscut" + - "ter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AbilityAttachedModifier_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AbilityAttachedModifier_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AbilityAttachedModifier_descriptor, - new java.lang.String[] { "IsInvalid", "OwnerEntityId", "InstancedModifierId", "IsServerbuffModifier", "AttachNameHash", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AbilityChangeNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AbilityChangeNotifyOuterClass.java deleted file mode 100644 index dadcc00ec..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AbilityChangeNotifyOuterClass.java +++ /dev/null @@ -1,743 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AbilityChangeNotify.proto - -package emu.grasscutter.net.proto; - -public final class AbilityChangeNotifyOuterClass { - private AbilityChangeNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AbilityChangeNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:AbilityChangeNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - int getEntityId(); - - /** - * <code>.AbilityControlBlock abilityControlBlock = 2;</code> - * @return Whether the abilityControlBlock field is set. - */ - boolean hasAbilityControlBlock(); - /** - * <code>.AbilityControlBlock abilityControlBlock = 2;</code> - * @return The abilityControlBlock. - */ - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock getAbilityControlBlock(); - /** - * <code>.AbilityControlBlock abilityControlBlock = 2;</code> - */ - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlockOrBuilder getAbilityControlBlockOrBuilder(); - } - /** - * Protobuf type {@code AbilityChangeNotify} - */ - public static final class AbilityChangeNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AbilityChangeNotify) - AbilityChangeNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use AbilityChangeNotify.newBuilder() to construct. - private AbilityChangeNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AbilityChangeNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AbilityChangeNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AbilityChangeNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - entityId_ = input.readUInt32(); - break; - } - case 18: { - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder subBuilder = null; - if (abilityControlBlock_ != null) { - subBuilder = abilityControlBlock_.toBuilder(); - } - abilityControlBlock_ = input.readMessage(emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abilityControlBlock_); - abilityControlBlock_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.internal_static_AbilityChangeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.internal_static_AbilityChangeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify.class, emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify.Builder.class); - } - - public static final int ENTITYID_FIELD_NUMBER = 1; - private int entityId_; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - - public static final int ABILITYCONTROLBLOCK_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock abilityControlBlock_; - /** - * <code>.AbilityControlBlock abilityControlBlock = 2;</code> - * @return Whether the abilityControlBlock field is set. - */ - @java.lang.Override - public boolean hasAbilityControlBlock() { - return abilityControlBlock_ != null; - } - /** - * <code>.AbilityControlBlock abilityControlBlock = 2;</code> - * @return The abilityControlBlock. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock getAbilityControlBlock() { - return abilityControlBlock_ == null ? emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.getDefaultInstance() : abilityControlBlock_; - } - /** - * <code>.AbilityControlBlock abilityControlBlock = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlockOrBuilder getAbilityControlBlockOrBuilder() { - return getAbilityControlBlock(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (entityId_ != 0) { - output.writeUInt32(1, entityId_); - } - if (abilityControlBlock_ != null) { - output.writeMessage(2, getAbilityControlBlock()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, entityId_); - } - if (abilityControlBlock_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAbilityControlBlock()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify other = (emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify) obj; - - if (getEntityId() - != other.getEntityId()) return false; - if (hasAbilityControlBlock() != other.hasAbilityControlBlock()) return false; - if (hasAbilityControlBlock()) { - if (!getAbilityControlBlock() - .equals(other.getAbilityControlBlock())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId(); - if (hasAbilityControlBlock()) { - hash = (37 * hash) + ABILITYCONTROLBLOCK_FIELD_NUMBER; - hash = (53 * hash) + getAbilityControlBlock().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AbilityChangeNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AbilityChangeNotify) - emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.internal_static_AbilityChangeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.internal_static_AbilityChangeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify.class, emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - entityId_ = 0; - - if (abilityControlBlockBuilder_ == null) { - abilityControlBlock_ = null; - } else { - abilityControlBlock_ = null; - abilityControlBlockBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.internal_static_AbilityChangeNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify build() { - emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify buildPartial() { - emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify result = new emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify(this); - result.entityId_ = entityId_; - if (abilityControlBlockBuilder_ == null) { - result.abilityControlBlock_ = abilityControlBlock_; - } else { - result.abilityControlBlock_ = abilityControlBlockBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify) { - return mergeFrom((emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify other) { - if (other == emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify.getDefaultInstance()) return this; - if (other.getEntityId() != 0) { - setEntityId(other.getEntityId()); - } - if (other.hasAbilityControlBlock()) { - mergeAbilityControlBlock(other.getAbilityControlBlock()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int entityId_ ; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - /** - * <code>uint32 entityId = 1;</code> - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId(int value) { - - entityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 entityId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearEntityId() { - - entityId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock abilityControlBlock_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock, emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder, emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlockOrBuilder> abilityControlBlockBuilder_; - /** - * <code>.AbilityControlBlock abilityControlBlock = 2;</code> - * @return Whether the abilityControlBlock field is set. - */ - public boolean hasAbilityControlBlock() { - return abilityControlBlockBuilder_ != null || abilityControlBlock_ != null; - } - /** - * <code>.AbilityControlBlock abilityControlBlock = 2;</code> - * @return The abilityControlBlock. - */ - public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock getAbilityControlBlock() { - if (abilityControlBlockBuilder_ == null) { - return abilityControlBlock_ == null ? emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.getDefaultInstance() : abilityControlBlock_; - } else { - return abilityControlBlockBuilder_.getMessage(); - } - } - /** - * <code>.AbilityControlBlock abilityControlBlock = 2;</code> - */ - public Builder setAbilityControlBlock(emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock value) { - if (abilityControlBlockBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - abilityControlBlock_ = value; - onChanged(); - } else { - abilityControlBlockBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.AbilityControlBlock abilityControlBlock = 2;</code> - */ - public Builder setAbilityControlBlock( - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder builderForValue) { - if (abilityControlBlockBuilder_ == null) { - abilityControlBlock_ = builderForValue.build(); - onChanged(); - } else { - abilityControlBlockBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.AbilityControlBlock abilityControlBlock = 2;</code> - */ - public Builder mergeAbilityControlBlock(emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock value) { - if (abilityControlBlockBuilder_ == null) { - if (abilityControlBlock_ != null) { - abilityControlBlock_ = - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.newBuilder(abilityControlBlock_).mergeFrom(value).buildPartial(); - } else { - abilityControlBlock_ = value; - } - onChanged(); - } else { - abilityControlBlockBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.AbilityControlBlock abilityControlBlock = 2;</code> - */ - public Builder clearAbilityControlBlock() { - if (abilityControlBlockBuilder_ == null) { - abilityControlBlock_ = null; - onChanged(); - } else { - abilityControlBlock_ = null; - abilityControlBlockBuilder_ = null; - } - - return this; - } - /** - * <code>.AbilityControlBlock abilityControlBlock = 2;</code> - */ - public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder getAbilityControlBlockBuilder() { - - onChanged(); - return getAbilityControlBlockFieldBuilder().getBuilder(); - } - /** - * <code>.AbilityControlBlock abilityControlBlock = 2;</code> - */ - public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlockOrBuilder getAbilityControlBlockOrBuilder() { - if (abilityControlBlockBuilder_ != null) { - return abilityControlBlockBuilder_.getMessageOrBuilder(); - } else { - return abilityControlBlock_ == null ? - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.getDefaultInstance() : abilityControlBlock_; - } - } - /** - * <code>.AbilityControlBlock abilityControlBlock = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock, emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder, emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlockOrBuilder> - getAbilityControlBlockFieldBuilder() { - if (abilityControlBlockBuilder_ == null) { - abilityControlBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock, emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder, emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlockOrBuilder>( - getAbilityControlBlock(), - getParentForChildren(), - isClean()); - abilityControlBlock_ = null; - } - return abilityControlBlockBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AbilityChangeNotify) - } - - // @@protoc_insertion_point(class_scope:AbilityChangeNotify) - private static final emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify(); - } - - public static emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AbilityChangeNotify> - PARSER = new com.google.protobuf.AbstractParser<AbilityChangeNotify>() { - @java.lang.Override - public AbilityChangeNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AbilityChangeNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AbilityChangeNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AbilityChangeNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AbilityChangeNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AbilityChangeNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031AbilityChangeNotify.proto\032\031AbilityCont" + - "rolBlock.proto\"Z\n\023AbilityChangeNotify\022\020\n" + - "\010entityId\030\001 \001(\r\0221\n\023abilityControlBlock\030\002" + - " \001(\0132\024.AbilityControlBlockB\033\n\031emu.grassc" + - "utter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.getDescriptor(), - }); - internal_static_AbilityChangeNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AbilityChangeNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AbilityChangeNotify_descriptor, - new java.lang.String[] { "EntityId", "AbilityControlBlock", }); - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AbilityControlBlockOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AbilityControlBlockOuterClass.java deleted file mode 100644 index 4a87a29aa..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AbilityControlBlockOuterClass.java +++ /dev/null @@ -1,844 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AbilityControlBlock.proto - -package emu.grasscutter.net.proto; - -public final class AbilityControlBlockOuterClass { - private AbilityControlBlockOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AbilityControlBlockOrBuilder extends - // @@protoc_insertion_point(interface_extends:AbilityControlBlock) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - java.util.List<emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo> - getAbilityEmbryoListList(); - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo getAbilityEmbryoList(int index); - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - int getAbilityEmbryoListCount(); - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryoOrBuilder> - getAbilityEmbryoListOrBuilderList(); - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryoOrBuilder getAbilityEmbryoListOrBuilder( - int index); - } - /** - * Protobuf type {@code AbilityControlBlock} - */ - public static final class AbilityControlBlock extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AbilityControlBlock) - AbilityControlBlockOrBuilder { - private static final long serialVersionUID = 0L; - // Use AbilityControlBlock.newBuilder() to construct. - private AbilityControlBlock(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AbilityControlBlock() { - abilityEmbryoList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AbilityControlBlock(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AbilityControlBlock( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - abilityEmbryoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo>(); - mutable_bitField0_ |= 0x00000001; - } - abilityEmbryoList_.add( - input.readMessage(emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - abilityEmbryoList_ = java.util.Collections.unmodifiableList(abilityEmbryoList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityControlBlockOuterClass.internal_static_AbilityControlBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilityControlBlockOuterClass.internal_static_AbilityControlBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.class, emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder.class); - } - - public static final int ABILITYEMBRYOLIST_FIELD_NUMBER = 1; - private java.util.List<emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo> abilityEmbryoList_; - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo> getAbilityEmbryoListList() { - return abilityEmbryoList_; - } - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryoOrBuilder> - getAbilityEmbryoListOrBuilderList() { - return abilityEmbryoList_; - } - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - @java.lang.Override - public int getAbilityEmbryoListCount() { - return abilityEmbryoList_.size(); - } - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo getAbilityEmbryoList(int index) { - return abilityEmbryoList_.get(index); - } - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryoOrBuilder getAbilityEmbryoListOrBuilder( - int index) { - return abilityEmbryoList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < abilityEmbryoList_.size(); i++) { - output.writeMessage(1, abilityEmbryoList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < abilityEmbryoList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, abilityEmbryoList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock other = (emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock) obj; - - if (!getAbilityEmbryoListList() - .equals(other.getAbilityEmbryoListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAbilityEmbryoListCount() > 0) { - hash = (37 * hash) + ABILITYEMBRYOLIST_FIELD_NUMBER; - hash = (53 * hash) + getAbilityEmbryoListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AbilityControlBlock} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AbilityControlBlock) - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityControlBlockOuterClass.internal_static_AbilityControlBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilityControlBlockOuterClass.internal_static_AbilityControlBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.class, emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAbilityEmbryoListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (abilityEmbryoListBuilder_ == null) { - abilityEmbryoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - abilityEmbryoListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AbilityControlBlockOuterClass.internal_static_AbilityControlBlock_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock build() { - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock buildPartial() { - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock result = new emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock(this); - int from_bitField0_ = bitField0_; - if (abilityEmbryoListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - abilityEmbryoList_ = java.util.Collections.unmodifiableList(abilityEmbryoList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.abilityEmbryoList_ = abilityEmbryoList_; - } else { - result.abilityEmbryoList_ = abilityEmbryoListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock) { - return mergeFrom((emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock other) { - if (other == emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.getDefaultInstance()) return this; - if (abilityEmbryoListBuilder_ == null) { - if (!other.abilityEmbryoList_.isEmpty()) { - if (abilityEmbryoList_.isEmpty()) { - abilityEmbryoList_ = other.abilityEmbryoList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAbilityEmbryoListIsMutable(); - abilityEmbryoList_.addAll(other.abilityEmbryoList_); - } - onChanged(); - } - } else { - if (!other.abilityEmbryoList_.isEmpty()) { - if (abilityEmbryoListBuilder_.isEmpty()) { - abilityEmbryoListBuilder_.dispose(); - abilityEmbryoListBuilder_ = null; - abilityEmbryoList_ = other.abilityEmbryoList_; - bitField0_ = (bitField0_ & ~0x00000001); - abilityEmbryoListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAbilityEmbryoListFieldBuilder() : null; - } else { - abilityEmbryoListBuilder_.addAllMessages(other.abilityEmbryoList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List<emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo> abilityEmbryoList_ = - java.util.Collections.emptyList(); - private void ensureAbilityEmbryoListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - abilityEmbryoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo>(abilityEmbryoList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo, emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.Builder, emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryoOrBuilder> abilityEmbryoListBuilder_; - - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo> getAbilityEmbryoListList() { - if (abilityEmbryoListBuilder_ == null) { - return java.util.Collections.unmodifiableList(abilityEmbryoList_); - } else { - return abilityEmbryoListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - public int getAbilityEmbryoListCount() { - if (abilityEmbryoListBuilder_ == null) { - return abilityEmbryoList_.size(); - } else { - return abilityEmbryoListBuilder_.getCount(); - } - } - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo getAbilityEmbryoList(int index) { - if (abilityEmbryoListBuilder_ == null) { - return abilityEmbryoList_.get(index); - } else { - return abilityEmbryoListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - public Builder setAbilityEmbryoList( - int index, emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo value) { - if (abilityEmbryoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAbilityEmbryoListIsMutable(); - abilityEmbryoList_.set(index, value); - onChanged(); - } else { - abilityEmbryoListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - public Builder setAbilityEmbryoList( - int index, emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.Builder builderForValue) { - if (abilityEmbryoListBuilder_ == null) { - ensureAbilityEmbryoListIsMutable(); - abilityEmbryoList_.set(index, builderForValue.build()); - onChanged(); - } else { - abilityEmbryoListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - public Builder addAbilityEmbryoList(emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo value) { - if (abilityEmbryoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAbilityEmbryoListIsMutable(); - abilityEmbryoList_.add(value); - onChanged(); - } else { - abilityEmbryoListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - public Builder addAbilityEmbryoList( - int index, emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo value) { - if (abilityEmbryoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAbilityEmbryoListIsMutable(); - abilityEmbryoList_.add(index, value); - onChanged(); - } else { - abilityEmbryoListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - public Builder addAbilityEmbryoList( - emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.Builder builderForValue) { - if (abilityEmbryoListBuilder_ == null) { - ensureAbilityEmbryoListIsMutable(); - abilityEmbryoList_.add(builderForValue.build()); - onChanged(); - } else { - abilityEmbryoListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - public Builder addAbilityEmbryoList( - int index, emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.Builder builderForValue) { - if (abilityEmbryoListBuilder_ == null) { - ensureAbilityEmbryoListIsMutable(); - abilityEmbryoList_.add(index, builderForValue.build()); - onChanged(); - } else { - abilityEmbryoListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - public Builder addAllAbilityEmbryoList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo> values) { - if (abilityEmbryoListBuilder_ == null) { - ensureAbilityEmbryoListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, abilityEmbryoList_); - onChanged(); - } else { - abilityEmbryoListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - public Builder clearAbilityEmbryoList() { - if (abilityEmbryoListBuilder_ == null) { - abilityEmbryoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - abilityEmbryoListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - public Builder removeAbilityEmbryoList(int index) { - if (abilityEmbryoListBuilder_ == null) { - ensureAbilityEmbryoListIsMutable(); - abilityEmbryoList_.remove(index); - onChanged(); - } else { - abilityEmbryoListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.Builder getAbilityEmbryoListBuilder( - int index) { - return getAbilityEmbryoListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryoOrBuilder getAbilityEmbryoListOrBuilder( - int index) { - if (abilityEmbryoListBuilder_ == null) { - return abilityEmbryoList_.get(index); } else { - return abilityEmbryoListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryoOrBuilder> - getAbilityEmbryoListOrBuilderList() { - if (abilityEmbryoListBuilder_ != null) { - return abilityEmbryoListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(abilityEmbryoList_); - } - } - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.Builder addAbilityEmbryoListBuilder() { - return getAbilityEmbryoListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.getDefaultInstance()); - } - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.Builder addAbilityEmbryoListBuilder( - int index) { - return getAbilityEmbryoListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.getDefaultInstance()); - } - /** - * <code>repeated .AbilityEmbryo abilityEmbryoList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.Builder> - getAbilityEmbryoListBuilderList() { - return getAbilityEmbryoListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo, emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.Builder, emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryoOrBuilder> - getAbilityEmbryoListFieldBuilder() { - if (abilityEmbryoListBuilder_ == null) { - abilityEmbryoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo, emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.Builder, emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryoOrBuilder>( - abilityEmbryoList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - abilityEmbryoList_ = null; - } - return abilityEmbryoListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AbilityControlBlock) - } - - // @@protoc_insertion_point(class_scope:AbilityControlBlock) - private static final emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock(); - } - - public static emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AbilityControlBlock> - PARSER = new com.google.protobuf.AbstractParser<AbilityControlBlock>() { - @java.lang.Override - public AbilityControlBlock parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AbilityControlBlock(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AbilityControlBlock> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AbilityControlBlock> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AbilityControlBlock_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AbilityControlBlock_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031AbilityControlBlock.proto\032\023AbilityEmbr" + - "yo.proto\"@\n\023AbilityControlBlock\022)\n\021abili" + - "tyEmbryoList\030\001 \003(\0132\016.AbilityEmbryoB\033\n\031em" + - "u.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AbilityEmbryoOuterClass.getDescriptor(), - }); - internal_static_AbilityControlBlock_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AbilityControlBlock_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AbilityControlBlock_descriptor, - new java.lang.String[] { "AbilityEmbryoList", }); - emu.grasscutter.net.proto.AbilityEmbryoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AbilityEmbryoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AbilityEmbryoOuterClass.java deleted file mode 100644 index 4f2f21bfb..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AbilityEmbryoOuterClass.java +++ /dev/null @@ -1,677 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AbilityEmbryo.proto - -package emu.grasscutter.net.proto; - -public final class AbilityEmbryoOuterClass { - private AbilityEmbryoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AbilityEmbryoOrBuilder extends - // @@protoc_insertion_point(interface_extends:AbilityEmbryo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 abilityId = 1;</code> - * @return The abilityId. - */ - int getAbilityId(); - - /** - * <code>fixed32 abilityNameHash = 2;</code> - * @return The abilityNameHash. - */ - int getAbilityNameHash(); - - /** - * <code>fixed32 abilityOverrideNameHash = 3;</code> - * @return The abilityOverrideNameHash. - */ - int getAbilityOverrideNameHash(); - } - /** - * Protobuf type {@code AbilityEmbryo} - */ - public static final class AbilityEmbryo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AbilityEmbryo) - AbilityEmbryoOrBuilder { - private static final long serialVersionUID = 0L; - // Use AbilityEmbryo.newBuilder() to construct. - private AbilityEmbryo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AbilityEmbryo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AbilityEmbryo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AbilityEmbryo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - abilityId_ = input.readUInt32(); - break; - } - case 21: { - - abilityNameHash_ = input.readFixed32(); - break; - } - case 29: { - - abilityOverrideNameHash_ = input.readFixed32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityEmbryoOuterClass.internal_static_AbilityEmbryo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilityEmbryoOuterClass.internal_static_AbilityEmbryo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.class, emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.Builder.class); - } - - public static final int ABILITYID_FIELD_NUMBER = 1; - private int abilityId_; - /** - * <code>uint32 abilityId = 1;</code> - * @return The abilityId. - */ - @java.lang.Override - public int getAbilityId() { - return abilityId_; - } - - public static final int ABILITYNAMEHASH_FIELD_NUMBER = 2; - private int abilityNameHash_; - /** - * <code>fixed32 abilityNameHash = 2;</code> - * @return The abilityNameHash. - */ - @java.lang.Override - public int getAbilityNameHash() { - return abilityNameHash_; - } - - public static final int ABILITYOVERRIDENAMEHASH_FIELD_NUMBER = 3; - private int abilityOverrideNameHash_; - /** - * <code>fixed32 abilityOverrideNameHash = 3;</code> - * @return The abilityOverrideNameHash. - */ - @java.lang.Override - public int getAbilityOverrideNameHash() { - return abilityOverrideNameHash_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (abilityId_ != 0) { - output.writeUInt32(1, abilityId_); - } - if (abilityNameHash_ != 0) { - output.writeFixed32(2, abilityNameHash_); - } - if (abilityOverrideNameHash_ != 0) { - output.writeFixed32(3, abilityOverrideNameHash_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (abilityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, abilityId_); - } - if (abilityNameHash_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(2, abilityNameHash_); - } - if (abilityOverrideNameHash_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(3, abilityOverrideNameHash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo other = (emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo) obj; - - if (getAbilityId() - != other.getAbilityId()) return false; - if (getAbilityNameHash() - != other.getAbilityNameHash()) return false; - if (getAbilityOverrideNameHash() - != other.getAbilityOverrideNameHash()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ABILITYID_FIELD_NUMBER; - hash = (53 * hash) + getAbilityId(); - hash = (37 * hash) + ABILITYNAMEHASH_FIELD_NUMBER; - hash = (53 * hash) + getAbilityNameHash(); - hash = (37 * hash) + ABILITYOVERRIDENAMEHASH_FIELD_NUMBER; - hash = (53 * hash) + getAbilityOverrideNameHash(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AbilityEmbryo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AbilityEmbryo) - emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityEmbryoOuterClass.internal_static_AbilityEmbryo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilityEmbryoOuterClass.internal_static_AbilityEmbryo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.class, emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - abilityId_ = 0; - - abilityNameHash_ = 0; - - abilityOverrideNameHash_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AbilityEmbryoOuterClass.internal_static_AbilityEmbryo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo build() { - emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo buildPartial() { - emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo result = new emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo(this); - result.abilityId_ = abilityId_; - result.abilityNameHash_ = abilityNameHash_; - result.abilityOverrideNameHash_ = abilityOverrideNameHash_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo) { - return mergeFrom((emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo other) { - if (other == emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.getDefaultInstance()) return this; - if (other.getAbilityId() != 0) { - setAbilityId(other.getAbilityId()); - } - if (other.getAbilityNameHash() != 0) { - setAbilityNameHash(other.getAbilityNameHash()); - } - if (other.getAbilityOverrideNameHash() != 0) { - setAbilityOverrideNameHash(other.getAbilityOverrideNameHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int abilityId_ ; - /** - * <code>uint32 abilityId = 1;</code> - * @return The abilityId. - */ - @java.lang.Override - public int getAbilityId() { - return abilityId_; - } - /** - * <code>uint32 abilityId = 1;</code> - * @param value The abilityId to set. - * @return This builder for chaining. - */ - public Builder setAbilityId(int value) { - - abilityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 abilityId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAbilityId() { - - abilityId_ = 0; - onChanged(); - return this; - } - - private int abilityNameHash_ ; - /** - * <code>fixed32 abilityNameHash = 2;</code> - * @return The abilityNameHash. - */ - @java.lang.Override - public int getAbilityNameHash() { - return abilityNameHash_; - } - /** - * <code>fixed32 abilityNameHash = 2;</code> - * @param value The abilityNameHash to set. - * @return This builder for chaining. - */ - public Builder setAbilityNameHash(int value) { - - abilityNameHash_ = value; - onChanged(); - return this; - } - /** - * <code>fixed32 abilityNameHash = 2;</code> - * @return This builder for chaining. - */ - public Builder clearAbilityNameHash() { - - abilityNameHash_ = 0; - onChanged(); - return this; - } - - private int abilityOverrideNameHash_ ; - /** - * <code>fixed32 abilityOverrideNameHash = 3;</code> - * @return The abilityOverrideNameHash. - */ - @java.lang.Override - public int getAbilityOverrideNameHash() { - return abilityOverrideNameHash_; - } - /** - * <code>fixed32 abilityOverrideNameHash = 3;</code> - * @param value The abilityOverrideNameHash to set. - * @return This builder for chaining. - */ - public Builder setAbilityOverrideNameHash(int value) { - - abilityOverrideNameHash_ = value; - onChanged(); - return this; - } - /** - * <code>fixed32 abilityOverrideNameHash = 3;</code> - * @return This builder for chaining. - */ - public Builder clearAbilityOverrideNameHash() { - - abilityOverrideNameHash_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AbilityEmbryo) - } - - // @@protoc_insertion_point(class_scope:AbilityEmbryo) - private static final emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo(); - } - - public static emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AbilityEmbryo> - PARSER = new com.google.protobuf.AbstractParser<AbilityEmbryo>() { - @java.lang.Override - public AbilityEmbryo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AbilityEmbryo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AbilityEmbryo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AbilityEmbryo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AbilityEmbryo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AbilityEmbryo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023AbilityEmbryo.proto\"\\\n\rAbilityEmbryo\022\021" + - "\n\tabilityId\030\001 \001(\r\022\027\n\017abilityNameHash\030\002 \001" + - "(\007\022\037\n\027abilityOverrideNameHash\030\003 \001(\007B\033\n\031e" + - "mu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AbilityEmbryo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AbilityEmbryo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AbilityEmbryo_descriptor, - new java.lang.String[] { "AbilityId", "AbilityNameHash", "AbilityOverrideNameHash", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AbilityIdentifierOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AbilityIdentifierOuterClass.java deleted file mode 100644 index a3715e6ef..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AbilityIdentifierOuterClass.java +++ /dev/null @@ -1,890 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AbilityIdentifier.proto - -package emu.grasscutter.net.proto; - -public final class AbilityIdentifierOuterClass { - private AbilityIdentifierOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AbilityIdentifierOrBuilder extends - // @@protoc_insertion_point(interface_extends:AbilityIdentifier) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 instancedAbilityId = 1;</code> - * @return The instancedAbilityId. - */ - int getInstancedAbilityId(); - - /** - * <code>uint32 abilityCasterId = 2;</code> - * @return The abilityCasterId. - */ - int getAbilityCasterId(); - - /** - * <code>int32 localId = 3;</code> - * @return The localId. - */ - int getLocalId(); - - /** - * <code>uint32 instancedModifierId = 4;</code> - * @return The instancedModifierId. - */ - int getInstancedModifierId(); - - /** - * <code>uint32 modifierOwnerId = 5;</code> - * @return The modifierOwnerId. - */ - int getModifierOwnerId(); - - /** - * <code>bool isServerbuffModifier = 6;</code> - * @return The isServerbuffModifier. - */ - boolean getIsServerbuffModifier(); - } - /** - * Protobuf type {@code AbilityIdentifier} - */ - public static final class AbilityIdentifier extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AbilityIdentifier) - AbilityIdentifierOrBuilder { - private static final long serialVersionUID = 0L; - // Use AbilityIdentifier.newBuilder() to construct. - private AbilityIdentifier(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AbilityIdentifier() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AbilityIdentifier(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AbilityIdentifier( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - instancedAbilityId_ = input.readUInt32(); - break; - } - case 16: { - - abilityCasterId_ = input.readUInt32(); - break; - } - case 24: { - - localId_ = input.readInt32(); - break; - } - case 32: { - - instancedModifierId_ = input.readUInt32(); - break; - } - case 40: { - - modifierOwnerId_ = input.readUInt32(); - break; - } - case 48: { - - isServerbuffModifier_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityIdentifierOuterClass.internal_static_AbilityIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilityIdentifierOuterClass.internal_static_AbilityIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier.class, emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier.Builder.class); - } - - public static final int INSTANCEDABILITYID_FIELD_NUMBER = 1; - private int instancedAbilityId_; - /** - * <code>uint32 instancedAbilityId = 1;</code> - * @return The instancedAbilityId. - */ - @java.lang.Override - public int getInstancedAbilityId() { - return instancedAbilityId_; - } - - public static final int ABILITYCASTERID_FIELD_NUMBER = 2; - private int abilityCasterId_; - /** - * <code>uint32 abilityCasterId = 2;</code> - * @return The abilityCasterId. - */ - @java.lang.Override - public int getAbilityCasterId() { - return abilityCasterId_; - } - - public static final int LOCALID_FIELD_NUMBER = 3; - private int localId_; - /** - * <code>int32 localId = 3;</code> - * @return The localId. - */ - @java.lang.Override - public int getLocalId() { - return localId_; - } - - public static final int INSTANCEDMODIFIERID_FIELD_NUMBER = 4; - private int instancedModifierId_; - /** - * <code>uint32 instancedModifierId = 4;</code> - * @return The instancedModifierId. - */ - @java.lang.Override - public int getInstancedModifierId() { - return instancedModifierId_; - } - - public static final int MODIFIEROWNERID_FIELD_NUMBER = 5; - private int modifierOwnerId_; - /** - * <code>uint32 modifierOwnerId = 5;</code> - * @return The modifierOwnerId. - */ - @java.lang.Override - public int getModifierOwnerId() { - return modifierOwnerId_; - } - - public static final int ISSERVERBUFFMODIFIER_FIELD_NUMBER = 6; - private boolean isServerbuffModifier_; - /** - * <code>bool isServerbuffModifier = 6;</code> - * @return The isServerbuffModifier. - */ - @java.lang.Override - public boolean getIsServerbuffModifier() { - return isServerbuffModifier_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (instancedAbilityId_ != 0) { - output.writeUInt32(1, instancedAbilityId_); - } - if (abilityCasterId_ != 0) { - output.writeUInt32(2, abilityCasterId_); - } - if (localId_ != 0) { - output.writeInt32(3, localId_); - } - if (instancedModifierId_ != 0) { - output.writeUInt32(4, instancedModifierId_); - } - if (modifierOwnerId_ != 0) { - output.writeUInt32(5, modifierOwnerId_); - } - if (isServerbuffModifier_ != false) { - output.writeBool(6, isServerbuffModifier_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (instancedAbilityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, instancedAbilityId_); - } - if (abilityCasterId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, abilityCasterId_); - } - if (localId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, localId_); - } - if (instancedModifierId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, instancedModifierId_); - } - if (modifierOwnerId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, modifierOwnerId_); - } - if (isServerbuffModifier_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, isServerbuffModifier_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier other = (emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier) obj; - - if (getInstancedAbilityId() - != other.getInstancedAbilityId()) return false; - if (getAbilityCasterId() - != other.getAbilityCasterId()) return false; - if (getLocalId() - != other.getLocalId()) return false; - if (getInstancedModifierId() - != other.getInstancedModifierId()) return false; - if (getModifierOwnerId() - != other.getModifierOwnerId()) return false; - if (getIsServerbuffModifier() - != other.getIsServerbuffModifier()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + INSTANCEDABILITYID_FIELD_NUMBER; - hash = (53 * hash) + getInstancedAbilityId(); - hash = (37 * hash) + ABILITYCASTERID_FIELD_NUMBER; - hash = (53 * hash) + getAbilityCasterId(); - hash = (37 * hash) + LOCALID_FIELD_NUMBER; - hash = (53 * hash) + getLocalId(); - hash = (37 * hash) + INSTANCEDMODIFIERID_FIELD_NUMBER; - hash = (53 * hash) + getInstancedModifierId(); - hash = (37 * hash) + MODIFIEROWNERID_FIELD_NUMBER; - hash = (53 * hash) + getModifierOwnerId(); - hash = (37 * hash) + ISSERVERBUFFMODIFIER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsServerbuffModifier()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AbilityIdentifier} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AbilityIdentifier) - emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityIdentifierOuterClass.internal_static_AbilityIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilityIdentifierOuterClass.internal_static_AbilityIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier.class, emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - instancedAbilityId_ = 0; - - abilityCasterId_ = 0; - - localId_ = 0; - - instancedModifierId_ = 0; - - modifierOwnerId_ = 0; - - isServerbuffModifier_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AbilityIdentifierOuterClass.internal_static_AbilityIdentifier_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier build() { - emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier buildPartial() { - emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier result = new emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier(this); - result.instancedAbilityId_ = instancedAbilityId_; - result.abilityCasterId_ = abilityCasterId_; - result.localId_ = localId_; - result.instancedModifierId_ = instancedModifierId_; - result.modifierOwnerId_ = modifierOwnerId_; - result.isServerbuffModifier_ = isServerbuffModifier_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier) { - return mergeFrom((emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier other) { - if (other == emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier.getDefaultInstance()) return this; - if (other.getInstancedAbilityId() != 0) { - setInstancedAbilityId(other.getInstancedAbilityId()); - } - if (other.getAbilityCasterId() != 0) { - setAbilityCasterId(other.getAbilityCasterId()); - } - if (other.getLocalId() != 0) { - setLocalId(other.getLocalId()); - } - if (other.getInstancedModifierId() != 0) { - setInstancedModifierId(other.getInstancedModifierId()); - } - if (other.getModifierOwnerId() != 0) { - setModifierOwnerId(other.getModifierOwnerId()); - } - if (other.getIsServerbuffModifier() != false) { - setIsServerbuffModifier(other.getIsServerbuffModifier()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int instancedAbilityId_ ; - /** - * <code>uint32 instancedAbilityId = 1;</code> - * @return The instancedAbilityId. - */ - @java.lang.Override - public int getInstancedAbilityId() { - return instancedAbilityId_; - } - /** - * <code>uint32 instancedAbilityId = 1;</code> - * @param value The instancedAbilityId to set. - * @return This builder for chaining. - */ - public Builder setInstancedAbilityId(int value) { - - instancedAbilityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 instancedAbilityId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearInstancedAbilityId() { - - instancedAbilityId_ = 0; - onChanged(); - return this; - } - - private int abilityCasterId_ ; - /** - * <code>uint32 abilityCasterId = 2;</code> - * @return The abilityCasterId. - */ - @java.lang.Override - public int getAbilityCasterId() { - return abilityCasterId_; - } - /** - * <code>uint32 abilityCasterId = 2;</code> - * @param value The abilityCasterId to set. - * @return This builder for chaining. - */ - public Builder setAbilityCasterId(int value) { - - abilityCasterId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 abilityCasterId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearAbilityCasterId() { - - abilityCasterId_ = 0; - onChanged(); - return this; - } - - private int localId_ ; - /** - * <code>int32 localId = 3;</code> - * @return The localId. - */ - @java.lang.Override - public int getLocalId() { - return localId_; - } - /** - * <code>int32 localId = 3;</code> - * @param value The localId to set. - * @return This builder for chaining. - */ - public Builder setLocalId(int value) { - - localId_ = value; - onChanged(); - return this; - } - /** - * <code>int32 localId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearLocalId() { - - localId_ = 0; - onChanged(); - return this; - } - - private int instancedModifierId_ ; - /** - * <code>uint32 instancedModifierId = 4;</code> - * @return The instancedModifierId. - */ - @java.lang.Override - public int getInstancedModifierId() { - return instancedModifierId_; - } - /** - * <code>uint32 instancedModifierId = 4;</code> - * @param value The instancedModifierId to set. - * @return This builder for chaining. - */ - public Builder setInstancedModifierId(int value) { - - instancedModifierId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 instancedModifierId = 4;</code> - * @return This builder for chaining. - */ - public Builder clearInstancedModifierId() { - - instancedModifierId_ = 0; - onChanged(); - return this; - } - - private int modifierOwnerId_ ; - /** - * <code>uint32 modifierOwnerId = 5;</code> - * @return The modifierOwnerId. - */ - @java.lang.Override - public int getModifierOwnerId() { - return modifierOwnerId_; - } - /** - * <code>uint32 modifierOwnerId = 5;</code> - * @param value The modifierOwnerId to set. - * @return This builder for chaining. - */ - public Builder setModifierOwnerId(int value) { - - modifierOwnerId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 modifierOwnerId = 5;</code> - * @return This builder for chaining. - */ - public Builder clearModifierOwnerId() { - - modifierOwnerId_ = 0; - onChanged(); - return this; - } - - private boolean isServerbuffModifier_ ; - /** - * <code>bool isServerbuffModifier = 6;</code> - * @return The isServerbuffModifier. - */ - @java.lang.Override - public boolean getIsServerbuffModifier() { - return isServerbuffModifier_; - } - /** - * <code>bool isServerbuffModifier = 6;</code> - * @param value The isServerbuffModifier to set. - * @return This builder for chaining. - */ - public Builder setIsServerbuffModifier(boolean value) { - - isServerbuffModifier_ = value; - onChanged(); - return this; - } - /** - * <code>bool isServerbuffModifier = 6;</code> - * @return This builder for chaining. - */ - public Builder clearIsServerbuffModifier() { - - isServerbuffModifier_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AbilityIdentifier) - } - - // @@protoc_insertion_point(class_scope:AbilityIdentifier) - private static final emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier(); - } - - public static emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AbilityIdentifier> - PARSER = new com.google.protobuf.AbstractParser<AbilityIdentifier>() { - @java.lang.Override - public AbilityIdentifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AbilityIdentifier(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AbilityIdentifier> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AbilityIdentifier> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AbilityIdentifier_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AbilityIdentifier_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027AbilityIdentifier.proto\"\255\001\n\021AbilityIde" + - "ntifier\022\032\n\022instancedAbilityId\030\001 \001(\r\022\027\n\017a" + - "bilityCasterId\030\002 \001(\r\022\017\n\007localId\030\003 \001(\005\022\033\n" + - "\023instancedModifierId\030\004 \001(\r\022\027\n\017modifierOw" + - "nerId\030\005 \001(\r\022\034\n\024isServerbuffModifier\030\006 \001(" + - "\010B\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AbilityIdentifier_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AbilityIdentifier_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AbilityIdentifier_descriptor, - new java.lang.String[] { "InstancedAbilityId", "AbilityCasterId", "LocalId", "InstancedModifierId", "ModifierOwnerId", "IsServerbuffModifier", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AbilityInvocationsNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AbilityInvocationsNotifyOuterClass.java deleted file mode 100644 index 9d0c6271d..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AbilityInvocationsNotifyOuterClass.java +++ /dev/null @@ -1,845 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AbilityInvocationsNotify.proto - -package emu.grasscutter.net.proto; - -public final class AbilityInvocationsNotifyOuterClass { - private AbilityInvocationsNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AbilityInvocationsNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:AbilityInvocationsNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - java.util.List<emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry> - getInvokesList(); - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry getInvokes(int index); - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - int getInvokesCount(); - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder> - getInvokesOrBuilderList(); - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder getInvokesOrBuilder( - int index); - } - /** - * Protobuf type {@code AbilityInvocationsNotify} - */ - public static final class AbilityInvocationsNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AbilityInvocationsNotify) - AbilityInvocationsNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use AbilityInvocationsNotify.newBuilder() to construct. - private AbilityInvocationsNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AbilityInvocationsNotify() { - invokes_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AbilityInvocationsNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AbilityInvocationsNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - invokes_ = new java.util.ArrayList<emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry>(); - mutable_bitField0_ |= 0x00000001; - } - invokes_.add( - input.readMessage(emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - invokes_ = java.util.Collections.unmodifiableList(invokes_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.internal_static_AbilityInvocationsNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.internal_static_AbilityInvocationsNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify.class, emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify.Builder.class); - } - - public static final int INVOKES_FIELD_NUMBER = 1; - private java.util.List<emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry> invokes_; - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry> getInvokesList() { - return invokes_; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder> - getInvokesOrBuilderList() { - return invokes_; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - @java.lang.Override - public int getInvokesCount() { - return invokes_.size(); - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry getInvokes(int index) { - return invokes_.get(index); - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder getInvokesOrBuilder( - int index) { - return invokes_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < invokes_.size(); i++) { - output.writeMessage(1, invokes_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < invokes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, invokes_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify other = (emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify) obj; - - if (!getInvokesList() - .equals(other.getInvokesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getInvokesCount() > 0) { - hash = (37 * hash) + INVOKES_FIELD_NUMBER; - hash = (53 * hash) + getInvokesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AbilityInvocationsNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AbilityInvocationsNotify) - emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.internal_static_AbilityInvocationsNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.internal_static_AbilityInvocationsNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify.class, emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getInvokesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (invokesBuilder_ == null) { - invokes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - invokesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.internal_static_AbilityInvocationsNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify build() { - emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify buildPartial() { - emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify result = new emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify(this); - int from_bitField0_ = bitField0_; - if (invokesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - invokes_ = java.util.Collections.unmodifiableList(invokes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.invokes_ = invokes_; - } else { - result.invokes_ = invokesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify) { - return mergeFrom((emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify other) { - if (other == emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify.getDefaultInstance()) return this; - if (invokesBuilder_ == null) { - if (!other.invokes_.isEmpty()) { - if (invokes_.isEmpty()) { - invokes_ = other.invokes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureInvokesIsMutable(); - invokes_.addAll(other.invokes_); - } - onChanged(); - } - } else { - if (!other.invokes_.isEmpty()) { - if (invokesBuilder_.isEmpty()) { - invokesBuilder_.dispose(); - invokesBuilder_ = null; - invokes_ = other.invokes_; - bitField0_ = (bitField0_ & ~0x00000001); - invokesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInvokesFieldBuilder() : null; - } else { - invokesBuilder_.addAllMessages(other.invokes_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List<emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry> invokes_ = - java.util.Collections.emptyList(); - private void ensureInvokesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - invokes_ = new java.util.ArrayList<emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry>(invokes_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder> invokesBuilder_; - - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry> getInvokesList() { - if (invokesBuilder_ == null) { - return java.util.Collections.unmodifiableList(invokes_); - } else { - return invokesBuilder_.getMessageList(); - } - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - public int getInvokesCount() { - if (invokesBuilder_ == null) { - return invokes_.size(); - } else { - return invokesBuilder_.getCount(); - } - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry getInvokes(int index) { - if (invokesBuilder_ == null) { - return invokes_.get(index); - } else { - return invokesBuilder_.getMessage(index); - } - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - public Builder setInvokes( - int index, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry value) { - if (invokesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInvokesIsMutable(); - invokes_.set(index, value); - onChanged(); - } else { - invokesBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - public Builder setInvokes( - int index, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder builderForValue) { - if (invokesBuilder_ == null) { - ensureInvokesIsMutable(); - invokes_.set(index, builderForValue.build()); - onChanged(); - } else { - invokesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - public Builder addInvokes(emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry value) { - if (invokesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInvokesIsMutable(); - invokes_.add(value); - onChanged(); - } else { - invokesBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - public Builder addInvokes( - int index, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry value) { - if (invokesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInvokesIsMutable(); - invokes_.add(index, value); - onChanged(); - } else { - invokesBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - public Builder addInvokes( - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder builderForValue) { - if (invokesBuilder_ == null) { - ensureInvokesIsMutable(); - invokes_.add(builderForValue.build()); - onChanged(); - } else { - invokesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - public Builder addInvokes( - int index, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder builderForValue) { - if (invokesBuilder_ == null) { - ensureInvokesIsMutable(); - invokes_.add(index, builderForValue.build()); - onChanged(); - } else { - invokesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - public Builder addAllInvokes( - java.lang.Iterable<? extends emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry> values) { - if (invokesBuilder_ == null) { - ensureInvokesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, invokes_); - onChanged(); - } else { - invokesBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - public Builder clearInvokes() { - if (invokesBuilder_ == null) { - invokes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - invokesBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - public Builder removeInvokes(int index) { - if (invokesBuilder_ == null) { - ensureInvokesIsMutable(); - invokes_.remove(index); - onChanged(); - } else { - invokesBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder getInvokesBuilder( - int index) { - return getInvokesFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder getInvokesOrBuilder( - int index) { - if (invokesBuilder_ == null) { - return invokes_.get(index); } else { - return invokesBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder> - getInvokesOrBuilderList() { - if (invokesBuilder_ != null) { - return invokesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(invokes_); - } - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder addInvokesBuilder() { - return getInvokesFieldBuilder().addBuilder( - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.getDefaultInstance()); - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder addInvokesBuilder( - int index) { - return getInvokesFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.getDefaultInstance()); - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder> - getInvokesBuilderList() { - return getInvokesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder> - getInvokesFieldBuilder() { - if (invokesBuilder_ == null) { - invokesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder>( - invokes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - invokes_ = null; - } - return invokesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AbilityInvocationsNotify) - } - - // @@protoc_insertion_point(class_scope:AbilityInvocationsNotify) - private static final emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify(); - } - - public static emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AbilityInvocationsNotify> - PARSER = new com.google.protobuf.AbstractParser<AbilityInvocationsNotify>() { - @java.lang.Override - public AbilityInvocationsNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AbilityInvocationsNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AbilityInvocationsNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AbilityInvocationsNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AbilityInvocationsNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AbilityInvocationsNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\036AbilityInvocationsNotify.proto\032\030Abilit" + - "yInvokeEntry.proto\"@\n\030AbilityInvocations" + - "Notify\022$\n\007invokes\030\001 \003(\0132\023.AbilityInvokeE" + - "ntryB\033\n\031emu.grasscutter.net.protob\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.getDescriptor(), - }); - internal_static_AbilityInvocationsNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AbilityInvocationsNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AbilityInvocationsNotify_descriptor, - new java.lang.String[] { "Invokes", }); - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AbilityInvokeArgumentOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AbilityInvokeArgumentOuterClass.java deleted file mode 100644 index 3ab130071..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AbilityInvokeArgumentOuterClass.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AbilityInvokeArgument.proto - -package emu.grasscutter.net.proto; - -public final class AbilityInvokeArgumentOuterClass { - private AbilityInvokeArgumentOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code AbilityInvokeArgument} - */ - public enum AbilityInvokeArgument - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>AbilityNone = 0;</code> - */ - AbilityNone(0), - /** - * <code>AbilityMetaModifierChange = 1;</code> - */ - AbilityMetaModifierChange(1), - /** - * <code>AbilityMetaCommandModifierChangeRequest = 2;</code> - */ - AbilityMetaCommandModifierChangeRequest(2), - /** - * <code>AbilityMetaSpecialFloatArgument = 3;</code> - */ - AbilityMetaSpecialFloatArgument(3), - /** - * <code>AbilityMetaOverrideParam = 4;</code> - */ - AbilityMetaOverrideParam(4), - /** - * <code>AbilityMetaClearOverrideParam = 5;</code> - */ - AbilityMetaClearOverrideParam(5), - /** - * <code>AbilityMetaReinitOverridemap = 6;</code> - */ - AbilityMetaReinitOverridemap(6), - /** - * <code>AbilityMetaGlobalFloatValue = 7;</code> - */ - AbilityMetaGlobalFloatValue(7), - /** - * <code>AbilityMetaClearGlobalFloatValue = 8;</code> - */ - AbilityMetaClearGlobalFloatValue(8), - /** - * <code>AbilityMetaAbilityElementStrength = 9;</code> - */ - AbilityMetaAbilityElementStrength(9), - /** - * <code>AbilityMetaAddOrGetAbilityAndTrigger = 10;</code> - */ - AbilityMetaAddOrGetAbilityAndTrigger(10), - /** - * <code>AbilityMetaSetKilledSetate = 11;</code> - */ - AbilityMetaSetKilledSetate(11), - /** - * <code>AbilityMetaSetAbilityTrigger = 12;</code> - */ - AbilityMetaSetAbilityTrigger(12), - /** - * <code>AbilityMetaAddNewAbility = 13;</code> - */ - AbilityMetaAddNewAbility(13), - /** - * <code>AbilityMetaRemoveAbility = 14;</code> - */ - AbilityMetaRemoveAbility(14), - /** - * <code>AbilityMetaSetModifierApplyEntity = 15;</code> - */ - AbilityMetaSetModifierApplyEntity(15), - /** - * <code>AbilityMetaModifierDurabilityChange = 16;</code> - */ - AbilityMetaModifierDurabilityChange(16), - /** - * <code>AbilityMetaElementReactionVisual = 17;</code> - */ - AbilityMetaElementReactionVisual(17), - /** - * <code>AbilityMetaSetPoseParameter = 18;</code> - */ - AbilityMetaSetPoseParameter(18), - /** - * <code>AbilityMetaUpdateBaseReactionDamage = 19;</code> - */ - AbilityMetaUpdateBaseReactionDamage(19), - /** - * <code>AbilityActionTriggerAbility = 50;</code> - */ - AbilityActionTriggerAbility(50), - /** - * <code>AbilityActionSetCrashDamage = 51;</code> - */ - AbilityActionSetCrashDamage(51), - /** - * <code>AbilityActionEffect = 52;</code> - */ - AbilityActionEffect(52), - /** - * <code>AbilityActionSummon = 53;</code> - */ - AbilityActionSummon(53), - /** - * <code>AbilityActionBlink = 54;</code> - */ - AbilityActionBlink(54), - /** - * <code>AbilityActionCreateGadget = 55;</code> - */ - AbilityActionCreateGadget(55), - /** - * <code>AbilityActionApplyLevelModifier = 56;</code> - */ - AbilityActionApplyLevelModifier(56), - /** - * <code>AbilityActionGenerateElemBall = 57;</code> - */ - AbilityActionGenerateElemBall(57), - /** - * <code>AbilityActionSetRandomOverrideMapValue = 58;</code> - */ - AbilityActionSetRandomOverrideMapValue(58), - /** - * <code>AbilityActionServerMonsterLog = 59;</code> - */ - AbilityActionServerMonsterLog(59), - /** - * <code>AbilityMixinAvatarSteerByCamera = 100;</code> - */ - AbilityMixinAvatarSteerByCamera(100), - /** - * <code>AbilityMixinMonsterDefend = 101;</code> - */ - AbilityMixinMonsterDefend(101), - /** - * <code>AbilityMixinWindZone = 102;</code> - */ - AbilityMixinWindZone(102), - /** - * <code>AbilityMixinCostStamina = 103;</code> - */ - AbilityMixinCostStamina(103), - /** - * <code>AbilityMixinEliteShield = 104;</code> - */ - AbilityMixinEliteShield(104), - /** - * <code>AbilityMixinElementShield = 105;</code> - */ - AbilityMixinElementShield(105), - /** - * <code>AbilityMixinGlobalShield = 106;</code> - */ - AbilityMixinGlobalShield(106), - /** - * <code>AbilityMixinShieldBar = 107;</code> - */ - AbilityMixinShieldBar(107), - /** - * <code>AbilityMixinWindSeedSpawner = 108;</code> - */ - AbilityMixinWindSeedSpawner(108), - /** - * <code>AbilityMixinDoActionByElementReaction = 109;</code> - */ - AbilityMixinDoActionByElementReaction(109), - /** - * <code>AbilityMixinFieldEntityCountChange = 110;</code> - */ - AbilityMixinFieldEntityCountChange(110), - /** - * <code>AbilityMixinScenePropSync = 111;</code> - */ - AbilityMixinScenePropSync(111), - UNRECOGNIZED(-1), - ; - - /** - * <code>AbilityNone = 0;</code> - */ - public static final int AbilityNone_VALUE = 0; - /** - * <code>AbilityMetaModifierChange = 1;</code> - */ - public static final int AbilityMetaModifierChange_VALUE = 1; - /** - * <code>AbilityMetaCommandModifierChangeRequest = 2;</code> - */ - public static final int AbilityMetaCommandModifierChangeRequest_VALUE = 2; - /** - * <code>AbilityMetaSpecialFloatArgument = 3;</code> - */ - public static final int AbilityMetaSpecialFloatArgument_VALUE = 3; - /** - * <code>AbilityMetaOverrideParam = 4;</code> - */ - public static final int AbilityMetaOverrideParam_VALUE = 4; - /** - * <code>AbilityMetaClearOverrideParam = 5;</code> - */ - public static final int AbilityMetaClearOverrideParam_VALUE = 5; - /** - * <code>AbilityMetaReinitOverridemap = 6;</code> - */ - public static final int AbilityMetaReinitOverridemap_VALUE = 6; - /** - * <code>AbilityMetaGlobalFloatValue = 7;</code> - */ - public static final int AbilityMetaGlobalFloatValue_VALUE = 7; - /** - * <code>AbilityMetaClearGlobalFloatValue = 8;</code> - */ - public static final int AbilityMetaClearGlobalFloatValue_VALUE = 8; - /** - * <code>AbilityMetaAbilityElementStrength = 9;</code> - */ - public static final int AbilityMetaAbilityElementStrength_VALUE = 9; - /** - * <code>AbilityMetaAddOrGetAbilityAndTrigger = 10;</code> - */ - public static final int AbilityMetaAddOrGetAbilityAndTrigger_VALUE = 10; - /** - * <code>AbilityMetaSetKilledSetate = 11;</code> - */ - public static final int AbilityMetaSetKilledSetate_VALUE = 11; - /** - * <code>AbilityMetaSetAbilityTrigger = 12;</code> - */ - public static final int AbilityMetaSetAbilityTrigger_VALUE = 12; - /** - * <code>AbilityMetaAddNewAbility = 13;</code> - */ - public static final int AbilityMetaAddNewAbility_VALUE = 13; - /** - * <code>AbilityMetaRemoveAbility = 14;</code> - */ - public static final int AbilityMetaRemoveAbility_VALUE = 14; - /** - * <code>AbilityMetaSetModifierApplyEntity = 15;</code> - */ - public static final int AbilityMetaSetModifierApplyEntity_VALUE = 15; - /** - * <code>AbilityMetaModifierDurabilityChange = 16;</code> - */ - public static final int AbilityMetaModifierDurabilityChange_VALUE = 16; - /** - * <code>AbilityMetaElementReactionVisual = 17;</code> - */ - public static final int AbilityMetaElementReactionVisual_VALUE = 17; - /** - * <code>AbilityMetaSetPoseParameter = 18;</code> - */ - public static final int AbilityMetaSetPoseParameter_VALUE = 18; - /** - * <code>AbilityMetaUpdateBaseReactionDamage = 19;</code> - */ - public static final int AbilityMetaUpdateBaseReactionDamage_VALUE = 19; - /** - * <code>AbilityActionTriggerAbility = 50;</code> - */ - public static final int AbilityActionTriggerAbility_VALUE = 50; - /** - * <code>AbilityActionSetCrashDamage = 51;</code> - */ - public static final int AbilityActionSetCrashDamage_VALUE = 51; - /** - * <code>AbilityActionEffect = 52;</code> - */ - public static final int AbilityActionEffect_VALUE = 52; - /** - * <code>AbilityActionSummon = 53;</code> - */ - public static final int AbilityActionSummon_VALUE = 53; - /** - * <code>AbilityActionBlink = 54;</code> - */ - public static final int AbilityActionBlink_VALUE = 54; - /** - * <code>AbilityActionCreateGadget = 55;</code> - */ - public static final int AbilityActionCreateGadget_VALUE = 55; - /** - * <code>AbilityActionApplyLevelModifier = 56;</code> - */ - public static final int AbilityActionApplyLevelModifier_VALUE = 56; - /** - * <code>AbilityActionGenerateElemBall = 57;</code> - */ - public static final int AbilityActionGenerateElemBall_VALUE = 57; - /** - * <code>AbilityActionSetRandomOverrideMapValue = 58;</code> - */ - public static final int AbilityActionSetRandomOverrideMapValue_VALUE = 58; - /** - * <code>AbilityActionServerMonsterLog = 59;</code> - */ - public static final int AbilityActionServerMonsterLog_VALUE = 59; - /** - * <code>AbilityMixinAvatarSteerByCamera = 100;</code> - */ - public static final int AbilityMixinAvatarSteerByCamera_VALUE = 100; - /** - * <code>AbilityMixinMonsterDefend = 101;</code> - */ - public static final int AbilityMixinMonsterDefend_VALUE = 101; - /** - * <code>AbilityMixinWindZone = 102;</code> - */ - public static final int AbilityMixinWindZone_VALUE = 102; - /** - * <code>AbilityMixinCostStamina = 103;</code> - */ - public static final int AbilityMixinCostStamina_VALUE = 103; - /** - * <code>AbilityMixinEliteShield = 104;</code> - */ - public static final int AbilityMixinEliteShield_VALUE = 104; - /** - * <code>AbilityMixinElementShield = 105;</code> - */ - public static final int AbilityMixinElementShield_VALUE = 105; - /** - * <code>AbilityMixinGlobalShield = 106;</code> - */ - public static final int AbilityMixinGlobalShield_VALUE = 106; - /** - * <code>AbilityMixinShieldBar = 107;</code> - */ - public static final int AbilityMixinShieldBar_VALUE = 107; - /** - * <code>AbilityMixinWindSeedSpawner = 108;</code> - */ - public static final int AbilityMixinWindSeedSpawner_VALUE = 108; - /** - * <code>AbilityMixinDoActionByElementReaction = 109;</code> - */ - public static final int AbilityMixinDoActionByElementReaction_VALUE = 109; - /** - * <code>AbilityMixinFieldEntityCountChange = 110;</code> - */ - public static final int AbilityMixinFieldEntityCountChange_VALUE = 110; - /** - * <code>AbilityMixinScenePropSync = 111;</code> - */ - public static final int AbilityMixinScenePropSync_VALUE = 111; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static AbilityInvokeArgument valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static AbilityInvokeArgument forNumber(int value) { - switch (value) { - case 0: return AbilityNone; - case 1: return AbilityMetaModifierChange; - case 2: return AbilityMetaCommandModifierChangeRequest; - case 3: return AbilityMetaSpecialFloatArgument; - case 4: return AbilityMetaOverrideParam; - case 5: return AbilityMetaClearOverrideParam; - case 6: return AbilityMetaReinitOverridemap; - case 7: return AbilityMetaGlobalFloatValue; - case 8: return AbilityMetaClearGlobalFloatValue; - case 9: return AbilityMetaAbilityElementStrength; - case 10: return AbilityMetaAddOrGetAbilityAndTrigger; - case 11: return AbilityMetaSetKilledSetate; - case 12: return AbilityMetaSetAbilityTrigger; - case 13: return AbilityMetaAddNewAbility; - case 14: return AbilityMetaRemoveAbility; - case 15: return AbilityMetaSetModifierApplyEntity; - case 16: return AbilityMetaModifierDurabilityChange; - case 17: return AbilityMetaElementReactionVisual; - case 18: return AbilityMetaSetPoseParameter; - case 19: return AbilityMetaUpdateBaseReactionDamage; - case 50: return AbilityActionTriggerAbility; - case 51: return AbilityActionSetCrashDamage; - case 52: return AbilityActionEffect; - case 53: return AbilityActionSummon; - case 54: return AbilityActionBlink; - case 55: return AbilityActionCreateGadget; - case 56: return AbilityActionApplyLevelModifier; - case 57: return AbilityActionGenerateElemBall; - case 58: return AbilityActionSetRandomOverrideMapValue; - case 59: return AbilityActionServerMonsterLog; - case 100: return AbilityMixinAvatarSteerByCamera; - case 101: return AbilityMixinMonsterDefend; - case 102: return AbilityMixinWindZone; - case 103: return AbilityMixinCostStamina; - case 104: return AbilityMixinEliteShield; - case 105: return AbilityMixinElementShield; - case 106: return AbilityMixinGlobalShield; - case 107: return AbilityMixinShieldBar; - case 108: return AbilityMixinWindSeedSpawner; - case 109: return AbilityMixinDoActionByElementReaction; - case 110: return AbilityMixinFieldEntityCountChange; - case 111: return AbilityMixinScenePropSync; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<AbilityInvokeArgument> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - AbilityInvokeArgument> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<AbilityInvokeArgument>() { - public AbilityInvokeArgument findValueByNumber(int number) { - return AbilityInvokeArgument.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityInvokeArgumentOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final AbilityInvokeArgument[] VALUES = values(); - - public static AbilityInvokeArgument valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private AbilityInvokeArgument(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:AbilityInvokeArgument) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033AbilityInvokeArgument.proto*\227\013\n\025Abilit" + - "yInvokeArgument\022\017\n\013AbilityNone\020\000\022\035\n\031Abil" + - "ityMetaModifierChange\020\001\022+\n\'AbilityMetaCo" + - "mmandModifierChangeRequest\020\002\022#\n\037AbilityM" + - "etaSpecialFloatArgument\020\003\022\034\n\030AbilityMeta" + - "OverrideParam\020\004\022!\n\035AbilityMetaClearOverr" + - "ideParam\020\005\022 \n\034AbilityMetaReinitOverridem" + - "ap\020\006\022\037\n\033AbilityMetaGlobalFloatValue\020\007\022$\n" + - " AbilityMetaClearGlobalFloatValue\020\010\022%\n!A" + - "bilityMetaAbilityElementStrength\020\t\022(\n$Ab" + - "ilityMetaAddOrGetAbilityAndTrigger\020\n\022\036\n\032" + - "AbilityMetaSetKilledSetate\020\013\022 \n\034AbilityM" + - "etaSetAbilityTrigger\020\014\022\034\n\030AbilityMetaAdd" + - "NewAbility\020\r\022\034\n\030AbilityMetaRemoveAbility" + - "\020\016\022%\n!AbilityMetaSetModifierApplyEntity\020" + - "\017\022\'\n#AbilityMetaModifierDurabilityChange" + - "\020\020\022$\n AbilityMetaElementReactionVisual\020\021" + - "\022\037\n\033AbilityMetaSetPoseParameter\020\022\022\'\n#Abi" + - "lityMetaUpdateBaseReactionDamage\020\023\022\037\n\033Ab" + - "ilityActionTriggerAbility\0202\022\037\n\033AbilityAc" + - "tionSetCrashDamage\0203\022\027\n\023AbilityActionEff" + - "ect\0204\022\027\n\023AbilityActionSummon\0205\022\026\n\022Abilit" + - "yActionBlink\0206\022\035\n\031AbilityActionCreateGad" + - "get\0207\022#\n\037AbilityActionApplyLevelModifier" + - "\0208\022!\n\035AbilityActionGenerateElemBall\0209\022*\n" + - "&AbilityActionSetRandomOverrideMapValue\020" + - ":\022!\n\035AbilityActionServerMonsterLog\020;\022#\n\037" + - "AbilityMixinAvatarSteerByCamera\020d\022\035\n\031Abi" + - "lityMixinMonsterDefend\020e\022\030\n\024AbilityMixin" + - "WindZone\020f\022\033\n\027AbilityMixinCostStamina\020g\022" + - "\033\n\027AbilityMixinEliteShield\020h\022\035\n\031AbilityM" + - "ixinElementShield\020i\022\034\n\030AbilityMixinGloba" + - "lShield\020j\022\031\n\025AbilityMixinShieldBar\020k\022\037\n\033" + - "AbilityMixinWindSeedSpawner\020l\022)\n%Ability" + - "MixinDoActionByElementReaction\020m\022&\n\"Abil" + - "ityMixinFieldEntityCountChange\020n\022\035\n\031Abil" + - "ityMixinScenePropSync\020oB\033\n\031emu.grasscutt" + - "er.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AbilityInvokeEntryHeadOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AbilityInvokeEntryHeadOuterClass.java deleted file mode 100644 index 4a81ab4d8..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AbilityInvokeEntryHeadOuterClass.java +++ /dev/null @@ -1,961 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AbilityInvokeEntryHead.proto - -package emu.grasscutter.net.proto; - -public final class AbilityInvokeEntryHeadOuterClass { - private AbilityInvokeEntryHeadOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AbilityInvokeEntryHeadOrBuilder extends - // @@protoc_insertion_point(interface_extends:AbilityInvokeEntryHead) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 instancedAbilityId = 1;</code> - * @return The instancedAbilityId. - */ - int getInstancedAbilityId(); - - /** - * <code>uint32 instancedModifierId = 2;</code> - * @return The instancedModifierId. - */ - int getInstancedModifierId(); - - /** - * <code>int32 localId = 3;</code> - * @return The localId. - */ - int getLocalId(); - - /** - * <code>int32 modifierConfigLocalId = 4;</code> - * @return The modifierConfigLocalId. - */ - int getModifierConfigLocalId(); - - /** - * <code>uint32 targetId = 5;</code> - * @return The targetId. - */ - int getTargetId(); - - /** - * <code>bool isServerbuffModifier = 6;</code> - * @return The isServerbuffModifier. - */ - boolean getIsServerbuffModifier(); - - /** - * <code>uint32 serverBuffUid = 7;</code> - * @return The serverBuffUid. - */ - int getServerBuffUid(); - } - /** - * Protobuf type {@code AbilityInvokeEntryHead} - */ - public static final class AbilityInvokeEntryHead extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AbilityInvokeEntryHead) - AbilityInvokeEntryHeadOrBuilder { - private static final long serialVersionUID = 0L; - // Use AbilityInvokeEntryHead.newBuilder() to construct. - private AbilityInvokeEntryHead(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AbilityInvokeEntryHead() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AbilityInvokeEntryHead(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AbilityInvokeEntryHead( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - instancedAbilityId_ = input.readUInt32(); - break; - } - case 16: { - - instancedModifierId_ = input.readUInt32(); - break; - } - case 24: { - - localId_ = input.readInt32(); - break; - } - case 32: { - - modifierConfigLocalId_ = input.readInt32(); - break; - } - case 40: { - - targetId_ = input.readUInt32(); - break; - } - case 48: { - - isServerbuffModifier_ = input.readBool(); - break; - } - case 56: { - - serverBuffUid_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.internal_static_AbilityInvokeEntryHead_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.internal_static_AbilityInvokeEntryHead_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead.class, emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead.Builder.class); - } - - public static final int INSTANCEDABILITYID_FIELD_NUMBER = 1; - private int instancedAbilityId_; - /** - * <code>uint32 instancedAbilityId = 1;</code> - * @return The instancedAbilityId. - */ - @java.lang.Override - public int getInstancedAbilityId() { - return instancedAbilityId_; - } - - public static final int INSTANCEDMODIFIERID_FIELD_NUMBER = 2; - private int instancedModifierId_; - /** - * <code>uint32 instancedModifierId = 2;</code> - * @return The instancedModifierId. - */ - @java.lang.Override - public int getInstancedModifierId() { - return instancedModifierId_; - } - - public static final int LOCALID_FIELD_NUMBER = 3; - private int localId_; - /** - * <code>int32 localId = 3;</code> - * @return The localId. - */ - @java.lang.Override - public int getLocalId() { - return localId_; - } - - public static final int MODIFIERCONFIGLOCALID_FIELD_NUMBER = 4; - private int modifierConfigLocalId_; - /** - * <code>int32 modifierConfigLocalId = 4;</code> - * @return The modifierConfigLocalId. - */ - @java.lang.Override - public int getModifierConfigLocalId() { - return modifierConfigLocalId_; - } - - public static final int TARGETID_FIELD_NUMBER = 5; - private int targetId_; - /** - * <code>uint32 targetId = 5;</code> - * @return The targetId. - */ - @java.lang.Override - public int getTargetId() { - return targetId_; - } - - public static final int ISSERVERBUFFMODIFIER_FIELD_NUMBER = 6; - private boolean isServerbuffModifier_; - /** - * <code>bool isServerbuffModifier = 6;</code> - * @return The isServerbuffModifier. - */ - @java.lang.Override - public boolean getIsServerbuffModifier() { - return isServerbuffModifier_; - } - - public static final int SERVERBUFFUID_FIELD_NUMBER = 7; - private int serverBuffUid_; - /** - * <code>uint32 serverBuffUid = 7;</code> - * @return The serverBuffUid. - */ - @java.lang.Override - public int getServerBuffUid() { - return serverBuffUid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (instancedAbilityId_ != 0) { - output.writeUInt32(1, instancedAbilityId_); - } - if (instancedModifierId_ != 0) { - output.writeUInt32(2, instancedModifierId_); - } - if (localId_ != 0) { - output.writeInt32(3, localId_); - } - if (modifierConfigLocalId_ != 0) { - output.writeInt32(4, modifierConfigLocalId_); - } - if (targetId_ != 0) { - output.writeUInt32(5, targetId_); - } - if (isServerbuffModifier_ != false) { - output.writeBool(6, isServerbuffModifier_); - } - if (serverBuffUid_ != 0) { - output.writeUInt32(7, serverBuffUid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (instancedAbilityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, instancedAbilityId_); - } - if (instancedModifierId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, instancedModifierId_); - } - if (localId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, localId_); - } - if (modifierConfigLocalId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, modifierConfigLocalId_); - } - if (targetId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, targetId_); - } - if (isServerbuffModifier_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, isServerbuffModifier_); - } - if (serverBuffUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(7, serverBuffUid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead other = (emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead) obj; - - if (getInstancedAbilityId() - != other.getInstancedAbilityId()) return false; - if (getInstancedModifierId() - != other.getInstancedModifierId()) return false; - if (getLocalId() - != other.getLocalId()) return false; - if (getModifierConfigLocalId() - != other.getModifierConfigLocalId()) return false; - if (getTargetId() - != other.getTargetId()) return false; - if (getIsServerbuffModifier() - != other.getIsServerbuffModifier()) return false; - if (getServerBuffUid() - != other.getServerBuffUid()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + INSTANCEDABILITYID_FIELD_NUMBER; - hash = (53 * hash) + getInstancedAbilityId(); - hash = (37 * hash) + INSTANCEDMODIFIERID_FIELD_NUMBER; - hash = (53 * hash) + getInstancedModifierId(); - hash = (37 * hash) + LOCALID_FIELD_NUMBER; - hash = (53 * hash) + getLocalId(); - hash = (37 * hash) + MODIFIERCONFIGLOCALID_FIELD_NUMBER; - hash = (53 * hash) + getModifierConfigLocalId(); - hash = (37 * hash) + TARGETID_FIELD_NUMBER; - hash = (53 * hash) + getTargetId(); - hash = (37 * hash) + ISSERVERBUFFMODIFIER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsServerbuffModifier()); - hash = (37 * hash) + SERVERBUFFUID_FIELD_NUMBER; - hash = (53 * hash) + getServerBuffUid(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AbilityInvokeEntryHead} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AbilityInvokeEntryHead) - emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHeadOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.internal_static_AbilityInvokeEntryHead_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.internal_static_AbilityInvokeEntryHead_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead.class, emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - instancedAbilityId_ = 0; - - instancedModifierId_ = 0; - - localId_ = 0; - - modifierConfigLocalId_ = 0; - - targetId_ = 0; - - isServerbuffModifier_ = false; - - serverBuffUid_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.internal_static_AbilityInvokeEntryHead_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead build() { - emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead buildPartial() { - emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead result = new emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead(this); - result.instancedAbilityId_ = instancedAbilityId_; - result.instancedModifierId_ = instancedModifierId_; - result.localId_ = localId_; - result.modifierConfigLocalId_ = modifierConfigLocalId_; - result.targetId_ = targetId_; - result.isServerbuffModifier_ = isServerbuffModifier_; - result.serverBuffUid_ = serverBuffUid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead) { - return mergeFrom((emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead other) { - if (other == emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead.getDefaultInstance()) return this; - if (other.getInstancedAbilityId() != 0) { - setInstancedAbilityId(other.getInstancedAbilityId()); - } - if (other.getInstancedModifierId() != 0) { - setInstancedModifierId(other.getInstancedModifierId()); - } - if (other.getLocalId() != 0) { - setLocalId(other.getLocalId()); - } - if (other.getModifierConfigLocalId() != 0) { - setModifierConfigLocalId(other.getModifierConfigLocalId()); - } - if (other.getTargetId() != 0) { - setTargetId(other.getTargetId()); - } - if (other.getIsServerbuffModifier() != false) { - setIsServerbuffModifier(other.getIsServerbuffModifier()); - } - if (other.getServerBuffUid() != 0) { - setServerBuffUid(other.getServerBuffUid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int instancedAbilityId_ ; - /** - * <code>uint32 instancedAbilityId = 1;</code> - * @return The instancedAbilityId. - */ - @java.lang.Override - public int getInstancedAbilityId() { - return instancedAbilityId_; - } - /** - * <code>uint32 instancedAbilityId = 1;</code> - * @param value The instancedAbilityId to set. - * @return This builder for chaining. - */ - public Builder setInstancedAbilityId(int value) { - - instancedAbilityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 instancedAbilityId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearInstancedAbilityId() { - - instancedAbilityId_ = 0; - onChanged(); - return this; - } - - private int instancedModifierId_ ; - /** - * <code>uint32 instancedModifierId = 2;</code> - * @return The instancedModifierId. - */ - @java.lang.Override - public int getInstancedModifierId() { - return instancedModifierId_; - } - /** - * <code>uint32 instancedModifierId = 2;</code> - * @param value The instancedModifierId to set. - * @return This builder for chaining. - */ - public Builder setInstancedModifierId(int value) { - - instancedModifierId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 instancedModifierId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearInstancedModifierId() { - - instancedModifierId_ = 0; - onChanged(); - return this; - } - - private int localId_ ; - /** - * <code>int32 localId = 3;</code> - * @return The localId. - */ - @java.lang.Override - public int getLocalId() { - return localId_; - } - /** - * <code>int32 localId = 3;</code> - * @param value The localId to set. - * @return This builder for chaining. - */ - public Builder setLocalId(int value) { - - localId_ = value; - onChanged(); - return this; - } - /** - * <code>int32 localId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearLocalId() { - - localId_ = 0; - onChanged(); - return this; - } - - private int modifierConfigLocalId_ ; - /** - * <code>int32 modifierConfigLocalId = 4;</code> - * @return The modifierConfigLocalId. - */ - @java.lang.Override - public int getModifierConfigLocalId() { - return modifierConfigLocalId_; - } - /** - * <code>int32 modifierConfigLocalId = 4;</code> - * @param value The modifierConfigLocalId to set. - * @return This builder for chaining. - */ - public Builder setModifierConfigLocalId(int value) { - - modifierConfigLocalId_ = value; - onChanged(); - return this; - } - /** - * <code>int32 modifierConfigLocalId = 4;</code> - * @return This builder for chaining. - */ - public Builder clearModifierConfigLocalId() { - - modifierConfigLocalId_ = 0; - onChanged(); - return this; - } - - private int targetId_ ; - /** - * <code>uint32 targetId = 5;</code> - * @return The targetId. - */ - @java.lang.Override - public int getTargetId() { - return targetId_; - } - /** - * <code>uint32 targetId = 5;</code> - * @param value The targetId to set. - * @return This builder for chaining. - */ - public Builder setTargetId(int value) { - - targetId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 targetId = 5;</code> - * @return This builder for chaining. - */ - public Builder clearTargetId() { - - targetId_ = 0; - onChanged(); - return this; - } - - private boolean isServerbuffModifier_ ; - /** - * <code>bool isServerbuffModifier = 6;</code> - * @return The isServerbuffModifier. - */ - @java.lang.Override - public boolean getIsServerbuffModifier() { - return isServerbuffModifier_; - } - /** - * <code>bool isServerbuffModifier = 6;</code> - * @param value The isServerbuffModifier to set. - * @return This builder for chaining. - */ - public Builder setIsServerbuffModifier(boolean value) { - - isServerbuffModifier_ = value; - onChanged(); - return this; - } - /** - * <code>bool isServerbuffModifier = 6;</code> - * @return This builder for chaining. - */ - public Builder clearIsServerbuffModifier() { - - isServerbuffModifier_ = false; - onChanged(); - return this; - } - - private int serverBuffUid_ ; - /** - * <code>uint32 serverBuffUid = 7;</code> - * @return The serverBuffUid. - */ - @java.lang.Override - public int getServerBuffUid() { - return serverBuffUid_; - } - /** - * <code>uint32 serverBuffUid = 7;</code> - * @param value The serverBuffUid to set. - * @return This builder for chaining. - */ - public Builder setServerBuffUid(int value) { - - serverBuffUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 serverBuffUid = 7;</code> - * @return This builder for chaining. - */ - public Builder clearServerBuffUid() { - - serverBuffUid_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AbilityInvokeEntryHead) - } - - // @@protoc_insertion_point(class_scope:AbilityInvokeEntryHead) - private static final emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead(); - } - - public static emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AbilityInvokeEntryHead> - PARSER = new com.google.protobuf.AbstractParser<AbilityInvokeEntryHead>() { - @java.lang.Override - public AbilityInvokeEntryHead parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AbilityInvokeEntryHead(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AbilityInvokeEntryHead> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AbilityInvokeEntryHead> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AbilityInvokeEntryHead_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AbilityInvokeEntryHead_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034AbilityInvokeEntryHead.proto\"\310\001\n\026Abili" + - "tyInvokeEntryHead\022\032\n\022instancedAbilityId\030" + - "\001 \001(\r\022\033\n\023instancedModifierId\030\002 \001(\r\022\017\n\007lo" + - "calId\030\003 \001(\005\022\035\n\025modifierConfigLocalId\030\004 \001" + - "(\005\022\020\n\010targetId\030\005 \001(\r\022\034\n\024isServerbuffModi" + - "fier\030\006 \001(\010\022\025\n\rserverBuffUid\030\007 \001(\rB\033\n\031emu" + - ".grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AbilityInvokeEntryHead_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AbilityInvokeEntryHead_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AbilityInvokeEntryHead_descriptor, - new java.lang.String[] { "InstancedAbilityId", "InstancedModifierId", "LocalId", "ModifierConfigLocalId", "TargetId", "IsServerbuffModifier", "ServerBuffUid", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AbilityInvokeEntryOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AbilityInvokeEntryOuterClass.java deleted file mode 100644 index ee152cef4..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AbilityInvokeEntryOuterClass.java +++ /dev/null @@ -1,1180 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AbilityInvokeEntry.proto - -package emu.grasscutter.net.proto; - -public final class AbilityInvokeEntryOuterClass { - private AbilityInvokeEntryOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AbilityInvokeEntryOrBuilder extends - // @@protoc_insertion_point(interface_extends:AbilityInvokeEntry) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.AbilityInvokeEntryHead head = 1;</code> - * @return Whether the head field is set. - */ - boolean hasHead(); - /** - * <code>.AbilityInvokeEntryHead head = 1;</code> - * @return The head. - */ - emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead getHead(); - /** - * <code>.AbilityInvokeEntryHead head = 1;</code> - */ - emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHeadOrBuilder getHeadOrBuilder(); - - /** - * <code>.AbilityInvokeArgument argumentType = 2;</code> - * @return The enum numeric value on the wire for argumentType. - */ - int getArgumentTypeValue(); - /** - * <code>.AbilityInvokeArgument argumentType = 2;</code> - * @return The argumentType. - */ - emu.grasscutter.net.proto.AbilityInvokeArgumentOuterClass.AbilityInvokeArgument getArgumentType(); - - /** - * <code>bytes abilityData = 3;</code> - * @return The abilityData. - */ - com.google.protobuf.ByteString getAbilityData(); - - /** - * <code>uint32 entityId = 4;</code> - * @return The entityId. - */ - int getEntityId(); - - /** - * <code>.ForwardType forwardType = 5;</code> - * @return The enum numeric value on the wire for forwardType. - */ - int getForwardTypeValue(); - /** - * <code>.ForwardType forwardType = 5;</code> - * @return The forwardType. - */ - emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType(); - - /** - * <code>uint32 forwardPeer = 6;</code> - * @return The forwardPeer. - */ - int getForwardPeer(); - - /** - * <code>uint32 eventId = 7;</code> - * @return The eventId. - */ - int getEventId(); - } - /** - * Protobuf type {@code AbilityInvokeEntry} - */ - public static final class AbilityInvokeEntry extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AbilityInvokeEntry) - AbilityInvokeEntryOrBuilder { - private static final long serialVersionUID = 0L; - // Use AbilityInvokeEntry.newBuilder() to construct. - private AbilityInvokeEntry(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AbilityInvokeEntry() { - argumentType_ = 0; - abilityData_ = com.google.protobuf.ByteString.EMPTY; - forwardType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AbilityInvokeEntry(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AbilityInvokeEntry( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead.Builder subBuilder = null; - if (head_ != null) { - subBuilder = head_.toBuilder(); - } - head_ = input.readMessage(emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(head_); - head_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - argumentType_ = rawValue; - break; - } - case 26: { - - abilityData_ = input.readBytes(); - break; - } - case 32: { - - entityId_ = input.readUInt32(); - break; - } - case 40: { - int rawValue = input.readEnum(); - - forwardType_ = rawValue; - break; - } - case 48: { - - forwardPeer_ = input.readUInt32(); - break; - } - case 56: { - - eventId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.internal_static_AbilityInvokeEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.internal_static_AbilityInvokeEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.class, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder.class); - } - - public static final int HEAD_FIELD_NUMBER = 1; - private emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead head_; - /** - * <code>.AbilityInvokeEntryHead head = 1;</code> - * @return Whether the head field is set. - */ - @java.lang.Override - public boolean hasHead() { - return head_ != null; - } - /** - * <code>.AbilityInvokeEntryHead head = 1;</code> - * @return The head. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead getHead() { - return head_ == null ? emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead.getDefaultInstance() : head_; - } - /** - * <code>.AbilityInvokeEntryHead head = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHeadOrBuilder getHeadOrBuilder() { - return getHead(); - } - - public static final int ARGUMENTTYPE_FIELD_NUMBER = 2; - private int argumentType_; - /** - * <code>.AbilityInvokeArgument argumentType = 2;</code> - * @return The enum numeric value on the wire for argumentType. - */ - @java.lang.Override public int getArgumentTypeValue() { - return argumentType_; - } - /** - * <code>.AbilityInvokeArgument argumentType = 2;</code> - * @return The argumentType. - */ - @java.lang.Override public emu.grasscutter.net.proto.AbilityInvokeArgumentOuterClass.AbilityInvokeArgument getArgumentType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.AbilityInvokeArgumentOuterClass.AbilityInvokeArgument result = emu.grasscutter.net.proto.AbilityInvokeArgumentOuterClass.AbilityInvokeArgument.valueOf(argumentType_); - return result == null ? emu.grasscutter.net.proto.AbilityInvokeArgumentOuterClass.AbilityInvokeArgument.UNRECOGNIZED : result; - } - - public static final int ABILITYDATA_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString abilityData_; - /** - * <code>bytes abilityData = 3;</code> - * @return The abilityData. - */ - @java.lang.Override - public com.google.protobuf.ByteString getAbilityData() { - return abilityData_; - } - - public static final int ENTITYID_FIELD_NUMBER = 4; - private int entityId_; - /** - * <code>uint32 entityId = 4;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - - public static final int FORWARDTYPE_FIELD_NUMBER = 5; - private int forwardType_; - /** - * <code>.ForwardType forwardType = 5;</code> - * @return The enum numeric value on the wire for forwardType. - */ - @java.lang.Override public int getForwardTypeValue() { - return forwardType_; - } - /** - * <code>.ForwardType forwardType = 5;</code> - * @return The forwardType. - */ - @java.lang.Override public emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType result = emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.valueOf(forwardType_); - return result == null ? emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.UNRECOGNIZED : result; - } - - public static final int FORWARDPEER_FIELD_NUMBER = 6; - private int forwardPeer_; - /** - * <code>uint32 forwardPeer = 6;</code> - * @return The forwardPeer. - */ - @java.lang.Override - public int getForwardPeer() { - return forwardPeer_; - } - - public static final int EVENTID_FIELD_NUMBER = 7; - private int eventId_; - /** - * <code>uint32 eventId = 7;</code> - * @return The eventId. - */ - @java.lang.Override - public int getEventId() { - return eventId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (head_ != null) { - output.writeMessage(1, getHead()); - } - if (argumentType_ != emu.grasscutter.net.proto.AbilityInvokeArgumentOuterClass.AbilityInvokeArgument.AbilityNone.getNumber()) { - output.writeEnum(2, argumentType_); - } - if (!abilityData_.isEmpty()) { - output.writeBytes(3, abilityData_); - } - if (entityId_ != 0) { - output.writeUInt32(4, entityId_); - } - if (forwardType_ != emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.ForwardLocal.getNumber()) { - output.writeEnum(5, forwardType_); - } - if (forwardPeer_ != 0) { - output.writeUInt32(6, forwardPeer_); - } - if (eventId_ != 0) { - output.writeUInt32(7, eventId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (head_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getHead()); - } - if (argumentType_ != emu.grasscutter.net.proto.AbilityInvokeArgumentOuterClass.AbilityInvokeArgument.AbilityNone.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, argumentType_); - } - if (!abilityData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, abilityData_); - } - if (entityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, entityId_); - } - if (forwardType_ != emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.ForwardLocal.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, forwardType_); - } - if (forwardPeer_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, forwardPeer_); - } - if (eventId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(7, eventId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry other = (emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry) obj; - - if (hasHead() != other.hasHead()) return false; - if (hasHead()) { - if (!getHead() - .equals(other.getHead())) return false; - } - if (argumentType_ != other.argumentType_) return false; - if (!getAbilityData() - .equals(other.getAbilityData())) return false; - if (getEntityId() - != other.getEntityId()) return false; - if (forwardType_ != other.forwardType_) return false; - if (getForwardPeer() - != other.getForwardPeer()) return false; - if (getEventId() - != other.getEventId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasHead()) { - hash = (37 * hash) + HEAD_FIELD_NUMBER; - hash = (53 * hash) + getHead().hashCode(); - } - hash = (37 * hash) + ARGUMENTTYPE_FIELD_NUMBER; - hash = (53 * hash) + argumentType_; - hash = (37 * hash) + ABILITYDATA_FIELD_NUMBER; - hash = (53 * hash) + getAbilityData().hashCode(); - hash = (37 * hash) + ENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId(); - hash = (37 * hash) + FORWARDTYPE_FIELD_NUMBER; - hash = (53 * hash) + forwardType_; - hash = (37 * hash) + FORWARDPEER_FIELD_NUMBER; - hash = (53 * hash) + getForwardPeer(); - hash = (37 * hash) + EVENTID_FIELD_NUMBER; - hash = (53 * hash) + getEventId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AbilityInvokeEntry} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AbilityInvokeEntry) - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.internal_static_AbilityInvokeEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.internal_static_AbilityInvokeEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.class, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (headBuilder_ == null) { - head_ = null; - } else { - head_ = null; - headBuilder_ = null; - } - argumentType_ = 0; - - abilityData_ = com.google.protobuf.ByteString.EMPTY; - - entityId_ = 0; - - forwardType_ = 0; - - forwardPeer_ = 0; - - eventId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.internal_static_AbilityInvokeEntry_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry build() { - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry buildPartial() { - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry result = new emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry(this); - if (headBuilder_ == null) { - result.head_ = head_; - } else { - result.head_ = headBuilder_.build(); - } - result.argumentType_ = argumentType_; - result.abilityData_ = abilityData_; - result.entityId_ = entityId_; - result.forwardType_ = forwardType_; - result.forwardPeer_ = forwardPeer_; - result.eventId_ = eventId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry) { - return mergeFrom((emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry other) { - if (other == emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.getDefaultInstance()) return this; - if (other.hasHead()) { - mergeHead(other.getHead()); - } - if (other.argumentType_ != 0) { - setArgumentTypeValue(other.getArgumentTypeValue()); - } - if (other.getAbilityData() != com.google.protobuf.ByteString.EMPTY) { - setAbilityData(other.getAbilityData()); - } - if (other.getEntityId() != 0) { - setEntityId(other.getEntityId()); - } - if (other.forwardType_ != 0) { - setForwardTypeValue(other.getForwardTypeValue()); - } - if (other.getForwardPeer() != 0) { - setForwardPeer(other.getForwardPeer()); - } - if (other.getEventId() != 0) { - setEventId(other.getEventId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead head_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead, emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead.Builder, emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHeadOrBuilder> headBuilder_; - /** - * <code>.AbilityInvokeEntryHead head = 1;</code> - * @return Whether the head field is set. - */ - public boolean hasHead() { - return headBuilder_ != null || head_ != null; - } - /** - * <code>.AbilityInvokeEntryHead head = 1;</code> - * @return The head. - */ - public emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead getHead() { - if (headBuilder_ == null) { - return head_ == null ? emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead.getDefaultInstance() : head_; - } else { - return headBuilder_.getMessage(); - } - } - /** - * <code>.AbilityInvokeEntryHead head = 1;</code> - */ - public Builder setHead(emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead value) { - if (headBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - head_ = value; - onChanged(); - } else { - headBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.AbilityInvokeEntryHead head = 1;</code> - */ - public Builder setHead( - emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead.Builder builderForValue) { - if (headBuilder_ == null) { - head_ = builderForValue.build(); - onChanged(); - } else { - headBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.AbilityInvokeEntryHead head = 1;</code> - */ - public Builder mergeHead(emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead value) { - if (headBuilder_ == null) { - if (head_ != null) { - head_ = - emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead.newBuilder(head_).mergeFrom(value).buildPartial(); - } else { - head_ = value; - } - onChanged(); - } else { - headBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.AbilityInvokeEntryHead head = 1;</code> - */ - public Builder clearHead() { - if (headBuilder_ == null) { - head_ = null; - onChanged(); - } else { - head_ = null; - headBuilder_ = null; - } - - return this; - } - /** - * <code>.AbilityInvokeEntryHead head = 1;</code> - */ - public emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead.Builder getHeadBuilder() { - - onChanged(); - return getHeadFieldBuilder().getBuilder(); - } - /** - * <code>.AbilityInvokeEntryHead head = 1;</code> - */ - public emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHeadOrBuilder getHeadOrBuilder() { - if (headBuilder_ != null) { - return headBuilder_.getMessageOrBuilder(); - } else { - return head_ == null ? - emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead.getDefaultInstance() : head_; - } - } - /** - * <code>.AbilityInvokeEntryHead head = 1;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead, emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead.Builder, emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHeadOrBuilder> - getHeadFieldBuilder() { - if (headBuilder_ == null) { - headBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead, emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead.Builder, emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHeadOrBuilder>( - getHead(), - getParentForChildren(), - isClean()); - head_ = null; - } - return headBuilder_; - } - - private int argumentType_ = 0; - /** - * <code>.AbilityInvokeArgument argumentType = 2;</code> - * @return The enum numeric value on the wire for argumentType. - */ - @java.lang.Override public int getArgumentTypeValue() { - return argumentType_; - } - /** - * <code>.AbilityInvokeArgument argumentType = 2;</code> - * @param value The enum numeric value on the wire for argumentType to set. - * @return This builder for chaining. - */ - public Builder setArgumentTypeValue(int value) { - - argumentType_ = value; - onChanged(); - return this; - } - /** - * <code>.AbilityInvokeArgument argumentType = 2;</code> - * @return The argumentType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityInvokeArgumentOuterClass.AbilityInvokeArgument getArgumentType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.AbilityInvokeArgumentOuterClass.AbilityInvokeArgument result = emu.grasscutter.net.proto.AbilityInvokeArgumentOuterClass.AbilityInvokeArgument.valueOf(argumentType_); - return result == null ? emu.grasscutter.net.proto.AbilityInvokeArgumentOuterClass.AbilityInvokeArgument.UNRECOGNIZED : result; - } - /** - * <code>.AbilityInvokeArgument argumentType = 2;</code> - * @param value The argumentType to set. - * @return This builder for chaining. - */ - public Builder setArgumentType(emu.grasscutter.net.proto.AbilityInvokeArgumentOuterClass.AbilityInvokeArgument value) { - if (value == null) { - throw new NullPointerException(); - } - - argumentType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.AbilityInvokeArgument argumentType = 2;</code> - * @return This builder for chaining. - */ - public Builder clearArgumentType() { - - argumentType_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString abilityData_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>bytes abilityData = 3;</code> - * @return The abilityData. - */ - @java.lang.Override - public com.google.protobuf.ByteString getAbilityData() { - return abilityData_; - } - /** - * <code>bytes abilityData = 3;</code> - * @param value The abilityData to set. - * @return This builder for chaining. - */ - public Builder setAbilityData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - abilityData_ = value; - onChanged(); - return this; - } - /** - * <code>bytes abilityData = 3;</code> - * @return This builder for chaining. - */ - public Builder clearAbilityData() { - - abilityData_ = getDefaultInstance().getAbilityData(); - onChanged(); - return this; - } - - private int entityId_ ; - /** - * <code>uint32 entityId = 4;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - /** - * <code>uint32 entityId = 4;</code> - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId(int value) { - - entityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 entityId = 4;</code> - * @return This builder for chaining. - */ - public Builder clearEntityId() { - - entityId_ = 0; - onChanged(); - return this; - } - - private int forwardType_ = 0; - /** - * <code>.ForwardType forwardType = 5;</code> - * @return The enum numeric value on the wire for forwardType. - */ - @java.lang.Override public int getForwardTypeValue() { - return forwardType_; - } - /** - * <code>.ForwardType forwardType = 5;</code> - * @param value The enum numeric value on the wire for forwardType to set. - * @return This builder for chaining. - */ - public Builder setForwardTypeValue(int value) { - - forwardType_ = value; - onChanged(); - return this; - } - /** - * <code>.ForwardType forwardType = 5;</code> - * @return The forwardType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType result = emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.valueOf(forwardType_); - return result == null ? emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.UNRECOGNIZED : result; - } - /** - * <code>.ForwardType forwardType = 5;</code> - * @param value The forwardType to set. - * @return This builder for chaining. - */ - public Builder setForwardType(emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType value) { - if (value == null) { - throw new NullPointerException(); - } - - forwardType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.ForwardType forwardType = 5;</code> - * @return This builder for chaining. - */ - public Builder clearForwardType() { - - forwardType_ = 0; - onChanged(); - return this; - } - - private int forwardPeer_ ; - /** - * <code>uint32 forwardPeer = 6;</code> - * @return The forwardPeer. - */ - @java.lang.Override - public int getForwardPeer() { - return forwardPeer_; - } - /** - * <code>uint32 forwardPeer = 6;</code> - * @param value The forwardPeer to set. - * @return This builder for chaining. - */ - public Builder setForwardPeer(int value) { - - forwardPeer_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 forwardPeer = 6;</code> - * @return This builder for chaining. - */ - public Builder clearForwardPeer() { - - forwardPeer_ = 0; - onChanged(); - return this; - } - - private int eventId_ ; - /** - * <code>uint32 eventId = 7;</code> - * @return The eventId. - */ - @java.lang.Override - public int getEventId() { - return eventId_; - } - /** - * <code>uint32 eventId = 7;</code> - * @param value The eventId to set. - * @return This builder for chaining. - */ - public Builder setEventId(int value) { - - eventId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 eventId = 7;</code> - * @return This builder for chaining. - */ - public Builder clearEventId() { - - eventId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AbilityInvokeEntry) - } - - // @@protoc_insertion_point(class_scope:AbilityInvokeEntry) - private static final emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry(); - } - - public static emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AbilityInvokeEntry> - PARSER = new com.google.protobuf.AbstractParser<AbilityInvokeEntry>() { - @java.lang.Override - public AbilityInvokeEntry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AbilityInvokeEntry(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AbilityInvokeEntry> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AbilityInvokeEntry> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AbilityInvokeEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AbilityInvokeEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030AbilityInvokeEntry.proto\032\033AbilityInvok" + - "eArgument.proto\032\034AbilityInvokeEntryHead." + - "proto\032\021ForwardType.proto\"\331\001\n\022AbilityInvo" + - "keEntry\022%\n\004head\030\001 \001(\0132\027.AbilityInvokeEnt" + - "ryHead\022,\n\014argumentType\030\002 \001(\0162\026.AbilityIn" + - "vokeArgument\022\023\n\013abilityData\030\003 \001(\014\022\020\n\010ent" + - "ityId\030\004 \001(\r\022!\n\013forwardType\030\005 \001(\0162\014.Forwa" + - "rdType\022\023\n\013forwardPeer\030\006 \001(\r\022\017\n\007eventId\030\007" + - " \001(\rB\033\n\031emu.grasscutter.net.protob\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AbilityInvokeArgumentOuterClass.getDescriptor(), - emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.getDescriptor(), - emu.grasscutter.net.proto.ForwardTypeOuterClass.getDescriptor(), - }); - internal_static_AbilityInvokeEntry_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AbilityInvokeEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AbilityInvokeEntry_descriptor, - new java.lang.String[] { "Head", "ArgumentType", "AbilityData", "EntityId", "ForwardType", "ForwardPeer", "EventId", }); - emu.grasscutter.net.proto.AbilityInvokeArgumentOuterClass.getDescriptor(); - emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.getDescriptor(); - emu.grasscutter.net.proto.ForwardTypeOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AbilityMixinRecoverInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AbilityMixinRecoverInfoOuterClass.java deleted file mode 100644 index 54b31631f..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AbilityMixinRecoverInfoOuterClass.java +++ /dev/null @@ -1,1462 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AbilityMixinRecoverInfo.proto - -package emu.grasscutter.net.proto; - -public final class AbilityMixinRecoverInfoOuterClass { - private AbilityMixinRecoverInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AbilityMixinRecoverInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:AbilityMixinRecoverInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 instancedAbilityId = 1;</code> - * @return Whether the instancedAbilityId field is set. - */ - boolean hasInstancedAbilityId(); - /** - * <code>uint32 instancedAbilityId = 1;</code> - * @return The instancedAbilityId. - */ - int getInstancedAbilityId(); - - /** - * <code>uint32 instancedModifierId = 2;</code> - * @return Whether the instancedModifierId field is set. - */ - boolean hasInstancedModifierId(); - /** - * <code>uint32 instancedModifierId = 2;</code> - * @return The instancedModifierId. - */ - int getInstancedModifierId(); - - /** - * <code>uint32 localId = 3;</code> - * @return The localId. - */ - int getLocalId(); - - /** - * <code>repeated uint32 dataList = 4;</code> - * @return A list containing the dataList. - */ - java.util.List<java.lang.Integer> getDataListList(); - /** - * <code>repeated uint32 dataList = 4;</code> - * @return The count of dataList. - */ - int getDataListCount(); - /** - * <code>repeated uint32 dataList = 4;</code> - * @param index The index of the element to return. - * @return The dataList at the given index. - */ - int getDataList(int index); - - /** - * <code>bool isServerbuffModifier = 5;</code> - * @return The isServerbuffModifier. - */ - boolean getIsServerbuffModifier(); - - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - java.util.List<emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo> - getMassivePropListList(); - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo getMassivePropList(int index); - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - int getMassivePropListCount(); - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfoOrBuilder> - getMassivePropListOrBuilderList(); - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfoOrBuilder getMassivePropListOrBuilder( - int index); - - public emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.SourceCase getSourceCase(); - } - /** - * Protobuf type {@code AbilityMixinRecoverInfo} - */ - public static final class AbilityMixinRecoverInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AbilityMixinRecoverInfo) - AbilityMixinRecoverInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use AbilityMixinRecoverInfo.newBuilder() to construct. - private AbilityMixinRecoverInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AbilityMixinRecoverInfo() { - dataList_ = emptyIntList(); - massivePropList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AbilityMixinRecoverInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AbilityMixinRecoverInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - sourceCase_ = 1; - source_ = input.readUInt32(); - break; - } - case 16: { - sourceCase_ = 2; - source_ = input.readUInt32(); - break; - } - case 24: { - - localId_ = input.readUInt32(); - break; - } - case 32: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dataList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - dataList_.addInt(input.readUInt32()); - break; - } - case 34: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - dataList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - dataList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 40: { - - isServerbuffModifier_ = input.readBool(); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - massivePropList_ = new java.util.ArrayList<emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo>(); - mutable_bitField0_ |= 0x00000002; - } - massivePropList_.add( - input.readMessage(emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - dataList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - massivePropList_ = java.util.Collections.unmodifiableList(massivePropList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.internal_static_AbilityMixinRecoverInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.internal_static_AbilityMixinRecoverInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.class, emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.Builder.class); - } - - private int sourceCase_ = 0; - private java.lang.Object source_; - public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - INSTANCEDABILITYID(1), - INSTANCEDMODIFIERID(2), - SOURCE_NOT_SET(0); - private final int value; - private SourceCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static SourceCase valueOf(int value) { - return forNumber(value); - } - - public static SourceCase forNumber(int value) { - switch (value) { - case 1: return INSTANCEDABILITYID; - case 2: return INSTANCEDMODIFIERID; - case 0: return SOURCE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); - } - - public static final int INSTANCEDABILITYID_FIELD_NUMBER = 1; - /** - * <code>uint32 instancedAbilityId = 1;</code> - * @return Whether the instancedAbilityId field is set. - */ - @java.lang.Override - public boolean hasInstancedAbilityId() { - return sourceCase_ == 1; - } - /** - * <code>uint32 instancedAbilityId = 1;</code> - * @return The instancedAbilityId. - */ - @java.lang.Override - public int getInstancedAbilityId() { - if (sourceCase_ == 1) { - return (java.lang.Integer) source_; - } - return 0; - } - - public static final int INSTANCEDMODIFIERID_FIELD_NUMBER = 2; - /** - * <code>uint32 instancedModifierId = 2;</code> - * @return Whether the instancedModifierId field is set. - */ - @java.lang.Override - public boolean hasInstancedModifierId() { - return sourceCase_ == 2; - } - /** - * <code>uint32 instancedModifierId = 2;</code> - * @return The instancedModifierId. - */ - @java.lang.Override - public int getInstancedModifierId() { - if (sourceCase_ == 2) { - return (java.lang.Integer) source_; - } - return 0; - } - - public static final int LOCALID_FIELD_NUMBER = 3; - private int localId_; - /** - * <code>uint32 localId = 3;</code> - * @return The localId. - */ - @java.lang.Override - public int getLocalId() { - return localId_; - } - - public static final int DATALIST_FIELD_NUMBER = 4; - private com.google.protobuf.Internal.IntList dataList_; - /** - * <code>repeated uint32 dataList = 4;</code> - * @return A list containing the dataList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getDataListList() { - return dataList_; - } - /** - * <code>repeated uint32 dataList = 4;</code> - * @return The count of dataList. - */ - public int getDataListCount() { - return dataList_.size(); - } - /** - * <code>repeated uint32 dataList = 4;</code> - * @param index The index of the element to return. - * @return The dataList at the given index. - */ - public int getDataList(int index) { - return dataList_.getInt(index); - } - private int dataListMemoizedSerializedSize = -1; - - public static final int ISSERVERBUFFMODIFIER_FIELD_NUMBER = 5; - private boolean isServerbuffModifier_; - /** - * <code>bool isServerbuffModifier = 5;</code> - * @return The isServerbuffModifier. - */ - @java.lang.Override - public boolean getIsServerbuffModifier() { - return isServerbuffModifier_; - } - - public static final int MASSIVEPROPLIST_FIELD_NUMBER = 6; - private java.util.List<emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo> massivePropList_; - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo> getMassivePropListList() { - return massivePropList_; - } - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfoOrBuilder> - getMassivePropListOrBuilderList() { - return massivePropList_; - } - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - @java.lang.Override - public int getMassivePropListCount() { - return massivePropList_.size(); - } - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo getMassivePropList(int index) { - return massivePropList_.get(index); - } - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfoOrBuilder getMassivePropListOrBuilder( - int index) { - return massivePropList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (sourceCase_ == 1) { - output.writeUInt32( - 1, (int)((java.lang.Integer) source_)); - } - if (sourceCase_ == 2) { - output.writeUInt32( - 2, (int)((java.lang.Integer) source_)); - } - if (localId_ != 0) { - output.writeUInt32(3, localId_); - } - if (getDataListList().size() > 0) { - output.writeUInt32NoTag(34); - output.writeUInt32NoTag(dataListMemoizedSerializedSize); - } - for (int i = 0; i < dataList_.size(); i++) { - output.writeUInt32NoTag(dataList_.getInt(i)); - } - if (isServerbuffModifier_ != false) { - output.writeBool(5, isServerbuffModifier_); - } - for (int i = 0; i < massivePropList_.size(); i++) { - output.writeMessage(6, massivePropList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sourceCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size( - 1, (int)((java.lang.Integer) source_)); - } - if (sourceCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size( - 2, (int)((java.lang.Integer) source_)); - } - if (localId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, localId_); - } - { - int dataSize = 0; - for (int i = 0; i < dataList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataList_.getInt(i)); - } - size += dataSize; - if (!getDataListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - dataListMemoizedSerializedSize = dataSize; - } - if (isServerbuffModifier_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, isServerbuffModifier_); - } - for (int i = 0; i < massivePropList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, massivePropList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo other = (emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo) obj; - - if (getLocalId() - != other.getLocalId()) return false; - if (!getDataListList() - .equals(other.getDataListList())) return false; - if (getIsServerbuffModifier() - != other.getIsServerbuffModifier()) return false; - if (!getMassivePropListList() - .equals(other.getMassivePropListList())) return false; - if (!getSourceCase().equals(other.getSourceCase())) return false; - switch (sourceCase_) { - case 1: - if (getInstancedAbilityId() - != other.getInstancedAbilityId()) return false; - break; - case 2: - if (getInstancedModifierId() - != other.getInstancedModifierId()) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LOCALID_FIELD_NUMBER; - hash = (53 * hash) + getLocalId(); - if (getDataListCount() > 0) { - hash = (37 * hash) + DATALIST_FIELD_NUMBER; - hash = (53 * hash) + getDataListList().hashCode(); - } - hash = (37 * hash) + ISSERVERBUFFMODIFIER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsServerbuffModifier()); - if (getMassivePropListCount() > 0) { - hash = (37 * hash) + MASSIVEPROPLIST_FIELD_NUMBER; - hash = (53 * hash) + getMassivePropListList().hashCode(); - } - switch (sourceCase_) { - case 1: - hash = (37 * hash) + INSTANCEDABILITYID_FIELD_NUMBER; - hash = (53 * hash) + getInstancedAbilityId(); - break; - case 2: - hash = (37 * hash) + INSTANCEDMODIFIERID_FIELD_NUMBER; - hash = (53 * hash) + getInstancedModifierId(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AbilityMixinRecoverInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AbilityMixinRecoverInfo) - emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.internal_static_AbilityMixinRecoverInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.internal_static_AbilityMixinRecoverInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.class, emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getMassivePropListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - localId_ = 0; - - dataList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - isServerbuffModifier_ = false; - - if (massivePropListBuilder_ == null) { - massivePropList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - massivePropListBuilder_.clear(); - } - sourceCase_ = 0; - source_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.internal_static_AbilityMixinRecoverInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo build() { - emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo buildPartial() { - emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo result = new emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo(this); - int from_bitField0_ = bitField0_; - if (sourceCase_ == 1) { - result.source_ = source_; - } - if (sourceCase_ == 2) { - result.source_ = source_; - } - result.localId_ = localId_; - if (((bitField0_ & 0x00000001) != 0)) { - dataList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dataList_ = dataList_; - result.isServerbuffModifier_ = isServerbuffModifier_; - if (massivePropListBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - massivePropList_ = java.util.Collections.unmodifiableList(massivePropList_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.massivePropList_ = massivePropList_; - } else { - result.massivePropList_ = massivePropListBuilder_.build(); - } - result.sourceCase_ = sourceCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo) { - return mergeFrom((emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo other) { - if (other == emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.getDefaultInstance()) return this; - if (other.getLocalId() != 0) { - setLocalId(other.getLocalId()); - } - if (!other.dataList_.isEmpty()) { - if (dataList_.isEmpty()) { - dataList_ = other.dataList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDataListIsMutable(); - dataList_.addAll(other.dataList_); - } - onChanged(); - } - if (other.getIsServerbuffModifier() != false) { - setIsServerbuffModifier(other.getIsServerbuffModifier()); - } - if (massivePropListBuilder_ == null) { - if (!other.massivePropList_.isEmpty()) { - if (massivePropList_.isEmpty()) { - massivePropList_ = other.massivePropList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMassivePropListIsMutable(); - massivePropList_.addAll(other.massivePropList_); - } - onChanged(); - } - } else { - if (!other.massivePropList_.isEmpty()) { - if (massivePropListBuilder_.isEmpty()) { - massivePropListBuilder_.dispose(); - massivePropListBuilder_ = null; - massivePropList_ = other.massivePropList_; - bitField0_ = (bitField0_ & ~0x00000002); - massivePropListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMassivePropListFieldBuilder() : null; - } else { - massivePropListBuilder_.addAllMessages(other.massivePropList_); - } - } - } - switch (other.getSourceCase()) { - case INSTANCEDABILITYID: { - setInstancedAbilityId(other.getInstancedAbilityId()); - break; - } - case INSTANCEDMODIFIERID: { - setInstancedModifierId(other.getInstancedModifierId()); - break; - } - case SOURCE_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int sourceCase_ = 0; - private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); - } - - public Builder clearSource() { - sourceCase_ = 0; - source_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * <code>uint32 instancedAbilityId = 1;</code> - * @return Whether the instancedAbilityId field is set. - */ - public boolean hasInstancedAbilityId() { - return sourceCase_ == 1; - } - /** - * <code>uint32 instancedAbilityId = 1;</code> - * @return The instancedAbilityId. - */ - public int getInstancedAbilityId() { - if (sourceCase_ == 1) { - return (java.lang.Integer) source_; - } - return 0; - } - /** - * <code>uint32 instancedAbilityId = 1;</code> - * @param value The instancedAbilityId to set. - * @return This builder for chaining. - */ - public Builder setInstancedAbilityId(int value) { - sourceCase_ = 1; - source_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 instancedAbilityId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearInstancedAbilityId() { - if (sourceCase_ == 1) { - sourceCase_ = 0; - source_ = null; - onChanged(); - } - return this; - } - - /** - * <code>uint32 instancedModifierId = 2;</code> - * @return Whether the instancedModifierId field is set. - */ - public boolean hasInstancedModifierId() { - return sourceCase_ == 2; - } - /** - * <code>uint32 instancedModifierId = 2;</code> - * @return The instancedModifierId. - */ - public int getInstancedModifierId() { - if (sourceCase_ == 2) { - return (java.lang.Integer) source_; - } - return 0; - } - /** - * <code>uint32 instancedModifierId = 2;</code> - * @param value The instancedModifierId to set. - * @return This builder for chaining. - */ - public Builder setInstancedModifierId(int value) { - sourceCase_ = 2; - source_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 instancedModifierId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearInstancedModifierId() { - if (sourceCase_ == 2) { - sourceCase_ = 0; - source_ = null; - onChanged(); - } - return this; - } - - private int localId_ ; - /** - * <code>uint32 localId = 3;</code> - * @return The localId. - */ - @java.lang.Override - public int getLocalId() { - return localId_; - } - /** - * <code>uint32 localId = 3;</code> - * @param value The localId to set. - * @return This builder for chaining. - */ - public Builder setLocalId(int value) { - - localId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 localId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearLocalId() { - - localId_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList dataList_ = emptyIntList(); - private void ensureDataListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dataList_ = mutableCopy(dataList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 dataList = 4;</code> - * @return A list containing the dataList. - */ - public java.util.List<java.lang.Integer> - getDataListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(dataList_) : dataList_; - } - /** - * <code>repeated uint32 dataList = 4;</code> - * @return The count of dataList. - */ - public int getDataListCount() { - return dataList_.size(); - } - /** - * <code>repeated uint32 dataList = 4;</code> - * @param index The index of the element to return. - * @return The dataList at the given index. - */ - public int getDataList(int index) { - return dataList_.getInt(index); - } - /** - * <code>repeated uint32 dataList = 4;</code> - * @param index The index to set the value at. - * @param value The dataList to set. - * @return This builder for chaining. - */ - public Builder setDataList( - int index, int value) { - ensureDataListIsMutable(); - dataList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 dataList = 4;</code> - * @param value The dataList to add. - * @return This builder for chaining. - */ - public Builder addDataList(int value) { - ensureDataListIsMutable(); - dataList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 dataList = 4;</code> - * @param values The dataList to add. - * @return This builder for chaining. - */ - public Builder addAllDataList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureDataListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dataList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 dataList = 4;</code> - * @return This builder for chaining. - */ - public Builder clearDataList() { - dataList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private boolean isServerbuffModifier_ ; - /** - * <code>bool isServerbuffModifier = 5;</code> - * @return The isServerbuffModifier. - */ - @java.lang.Override - public boolean getIsServerbuffModifier() { - return isServerbuffModifier_; - } - /** - * <code>bool isServerbuffModifier = 5;</code> - * @param value The isServerbuffModifier to set. - * @return This builder for chaining. - */ - public Builder setIsServerbuffModifier(boolean value) { - - isServerbuffModifier_ = value; - onChanged(); - return this; - } - /** - * <code>bool isServerbuffModifier = 5;</code> - * @return This builder for chaining. - */ - public Builder clearIsServerbuffModifier() { - - isServerbuffModifier_ = false; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo> massivePropList_ = - java.util.Collections.emptyList(); - private void ensureMassivePropListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - massivePropList_ = new java.util.ArrayList<emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo>(massivePropList_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo, emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.Builder, emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfoOrBuilder> massivePropListBuilder_; - - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - public java.util.List<emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo> getMassivePropListList() { - if (massivePropListBuilder_ == null) { - return java.util.Collections.unmodifiableList(massivePropList_); - } else { - return massivePropListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - public int getMassivePropListCount() { - if (massivePropListBuilder_ == null) { - return massivePropList_.size(); - } else { - return massivePropListBuilder_.getCount(); - } - } - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - public emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo getMassivePropList(int index) { - if (massivePropListBuilder_ == null) { - return massivePropList_.get(index); - } else { - return massivePropListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - public Builder setMassivePropList( - int index, emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo value) { - if (massivePropListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMassivePropListIsMutable(); - massivePropList_.set(index, value); - onChanged(); - } else { - massivePropListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - public Builder setMassivePropList( - int index, emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.Builder builderForValue) { - if (massivePropListBuilder_ == null) { - ensureMassivePropListIsMutable(); - massivePropList_.set(index, builderForValue.build()); - onChanged(); - } else { - massivePropListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - public Builder addMassivePropList(emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo value) { - if (massivePropListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMassivePropListIsMutable(); - massivePropList_.add(value); - onChanged(); - } else { - massivePropListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - public Builder addMassivePropList( - int index, emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo value) { - if (massivePropListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMassivePropListIsMutable(); - massivePropList_.add(index, value); - onChanged(); - } else { - massivePropListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - public Builder addMassivePropList( - emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.Builder builderForValue) { - if (massivePropListBuilder_ == null) { - ensureMassivePropListIsMutable(); - massivePropList_.add(builderForValue.build()); - onChanged(); - } else { - massivePropListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - public Builder addMassivePropList( - int index, emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.Builder builderForValue) { - if (massivePropListBuilder_ == null) { - ensureMassivePropListIsMutable(); - massivePropList_.add(index, builderForValue.build()); - onChanged(); - } else { - massivePropListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - public Builder addAllMassivePropList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo> values) { - if (massivePropListBuilder_ == null) { - ensureMassivePropListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, massivePropList_); - onChanged(); - } else { - massivePropListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - public Builder clearMassivePropList() { - if (massivePropListBuilder_ == null) { - massivePropList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - massivePropListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - public Builder removeMassivePropList(int index) { - if (massivePropListBuilder_ == null) { - ensureMassivePropListIsMutable(); - massivePropList_.remove(index); - onChanged(); - } else { - massivePropListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - public emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.Builder getMassivePropListBuilder( - int index) { - return getMassivePropListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - public emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfoOrBuilder getMassivePropListOrBuilder( - int index) { - if (massivePropListBuilder_ == null) { - return massivePropList_.get(index); } else { - return massivePropListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfoOrBuilder> - getMassivePropListOrBuilderList() { - if (massivePropListBuilder_ != null) { - return massivePropListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(massivePropList_); - } - } - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - public emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.Builder addMassivePropListBuilder() { - return getMassivePropListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.getDefaultInstance()); - } - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - public emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.Builder addMassivePropListBuilder( - int index) { - return getMassivePropListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.getDefaultInstance()); - } - /** - * <code>repeated .MassivePropSyncInfo massivePropList = 6;</code> - */ - public java.util.List<emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.Builder> - getMassivePropListBuilderList() { - return getMassivePropListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo, emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.Builder, emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfoOrBuilder> - getMassivePropListFieldBuilder() { - if (massivePropListBuilder_ == null) { - massivePropListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo, emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.Builder, emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfoOrBuilder>( - massivePropList_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - massivePropList_ = null; - } - return massivePropListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AbilityMixinRecoverInfo) - } - - // @@protoc_insertion_point(class_scope:AbilityMixinRecoverInfo) - private static final emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo(); - } - - public static emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AbilityMixinRecoverInfo> - PARSER = new com.google.protobuf.AbstractParser<AbilityMixinRecoverInfo>() { - @java.lang.Override - public AbilityMixinRecoverInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AbilityMixinRecoverInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AbilityMixinRecoverInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AbilityMixinRecoverInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AbilityMixinRecoverInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AbilityMixinRecoverInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035AbilityMixinRecoverInfo.proto\032\031Massive" + - "PropSyncInfo.proto\"\320\001\n\027AbilityMixinRecov" + - "erInfo\022\034\n\022instancedAbilityId\030\001 \001(\rH\000\022\035\n\023" + - "instancedModifierId\030\002 \001(\rH\000\022\017\n\007localId\030\003" + - " \001(\r\022\020\n\010dataList\030\004 \003(\r\022\034\n\024isServerbuffMo" + - "difier\030\005 \001(\010\022-\n\017massivePropList\030\006 \003(\0132\024." + - "MassivePropSyncInfoB\010\n\006sourceB\033\n\031emu.gra" + - "sscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.getDescriptor(), - }); - internal_static_AbilityMixinRecoverInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AbilityMixinRecoverInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AbilityMixinRecoverInfo_descriptor, - new java.lang.String[] { "InstancedAbilityId", "InstancedModifierId", "LocalId", "DataList", "IsServerbuffModifier", "MassivePropList", "Source", }); - emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AbilityScalarTypeOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AbilityScalarTypeOuterClass.java deleted file mode 100644 index c55c7d3fa..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AbilityScalarTypeOuterClass.java +++ /dev/null @@ -1,191 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AbilityScalarType.proto - -package emu.grasscutter.net.proto; - -public final class AbilityScalarTypeOuterClass { - private AbilityScalarTypeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code AbilityScalarType} - */ - public enum AbilityScalarType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>Unknow = 0;</code> - */ - Unknow(0), - /** - * <code>Float = 1;</code> - */ - Float(1), - /** - * <code>Int = 2;</code> - */ - Int(2), - /** - * <code>Bool = 3;</code> - */ - Bool(3), - /** - * <code>Trigger = 4;</code> - */ - Trigger(4), - /** - * <code>String = 5;</code> - */ - String(5), - /** - * <code>Uint = 6;</code> - */ - Uint(6), - UNRECOGNIZED(-1), - ; - - /** - * <code>Unknow = 0;</code> - */ - public static final int Unknow_VALUE = 0; - /** - * <code>Float = 1;</code> - */ - public static final int Float_VALUE = 1; - /** - * <code>Int = 2;</code> - */ - public static final int Int_VALUE = 2; - /** - * <code>Bool = 3;</code> - */ - public static final int Bool_VALUE = 3; - /** - * <code>Trigger = 4;</code> - */ - public static final int Trigger_VALUE = 4; - /** - * <code>String = 5;</code> - */ - public static final int String_VALUE = 5; - /** - * <code>Uint = 6;</code> - */ - public static final int Uint_VALUE = 6; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static AbilityScalarType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static AbilityScalarType forNumber(int value) { - switch (value) { - case 0: return Unknow; - case 1: return Float; - case 2: return Int; - case 3: return Bool; - case 4: return Trigger; - case 5: return String; - case 6: return Uint; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<AbilityScalarType> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - AbilityScalarType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<AbilityScalarType>() { - public AbilityScalarType findValueByNumber(int number) { - return AbilityScalarType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityScalarTypeOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final AbilityScalarType[] VALUES = values(); - - public static AbilityScalarType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private AbilityScalarType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:AbilityScalarType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027AbilityScalarType.proto*`\n\021AbilityScal" + - "arType\022\n\n\006Unknow\020\000\022\t\n\005Float\020\001\022\007\n\003Int\020\002\022\010" + - "\n\004Bool\020\003\022\013\n\007Trigger\020\004\022\n\n\006String\020\005\022\010\n\004Uin" + - "t\020\006B\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AbilityScalarValueEntryOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AbilityScalarValueEntryOuterClass.java deleted file mode 100644 index c63fd61f5..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AbilityScalarValueEntryOuterClass.java +++ /dev/null @@ -1,1367 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AbilityScalarValueEntry.proto - -package emu.grasscutter.net.proto; - -public final class AbilityScalarValueEntryOuterClass { - private AbilityScalarValueEntryOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AbilityScalarValueEntryOrBuilder extends - // @@protoc_insertion_point(interface_extends:AbilityScalarValueEntry) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.AbilityString key = 1;</code> - * @return Whether the key field is set. - */ - boolean hasKey(); - /** - * <code>.AbilityString key = 1;</code> - * @return The key. - */ - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getKey(); - /** - * <code>.AbilityString key = 1;</code> - */ - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getKeyOrBuilder(); - - /** - * <code>.AbilityScalarType valueType = 2;</code> - * @return The enum numeric value on the wire for valueType. - */ - int getValueTypeValue(); - /** - * <code>.AbilityScalarType valueType = 2;</code> - * @return The valueType. - */ - emu.grasscutter.net.proto.AbilityScalarTypeOuterClass.AbilityScalarType getValueType(); - - /** - * <code>float floatValue = 3;</code> - * @return Whether the floatValue field is set. - */ - boolean hasFloatValue(); - /** - * <code>float floatValue = 3;</code> - * @return The floatValue. - */ - float getFloatValue(); - - /** - * <code>string stringValue = 4;</code> - * @return Whether the stringValue field is set. - */ - boolean hasStringValue(); - /** - * <code>string stringValue = 4;</code> - * @return The stringValue. - */ - java.lang.String getStringValue(); - /** - * <code>string stringValue = 4;</code> - * @return The bytes for stringValue. - */ - com.google.protobuf.ByteString - getStringValueBytes(); - - /** - * <code>int32 intValue = 5;</code> - * @return Whether the intValue field is set. - */ - boolean hasIntValue(); - /** - * <code>int32 intValue = 5;</code> - * @return The intValue. - */ - int getIntValue(); - - /** - * <code>uint32 uintValue = 6;</code> - * @return Whether the uintValue field is set. - */ - boolean hasUintValue(); - /** - * <code>uint32 uintValue = 6;</code> - * @return The uintValue. - */ - int getUintValue(); - - public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.ValueCase getValueCase(); - } - /** - * Protobuf type {@code AbilityScalarValueEntry} - */ - public static final class AbilityScalarValueEntry extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AbilityScalarValueEntry) - AbilityScalarValueEntryOrBuilder { - private static final long serialVersionUID = 0L; - // Use AbilityScalarValueEntry.newBuilder() to construct. - private AbilityScalarValueEntry(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AbilityScalarValueEntry() { - valueType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AbilityScalarValueEntry(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AbilityScalarValueEntry( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder subBuilder = null; - if (key_ != null) { - subBuilder = key_.toBuilder(); - } - key_ = input.readMessage(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(key_); - key_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - valueType_ = rawValue; - break; - } - case 29: { - valueCase_ = 3; - value_ = input.readFloat(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - valueCase_ = 4; - value_ = s; - break; - } - case 40: { - valueCase_ = 5; - value_ = input.readInt32(); - break; - } - case 48: { - valueCase_ = 6; - value_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.internal_static_AbilityScalarValueEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.internal_static_AbilityScalarValueEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.class, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder.class); - } - - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - FLOATVALUE(3), - STRINGVALUE(4), - INTVALUE(5), - UINTVALUE(6), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 3: return FLOATVALUE; - case 4: return STRINGVALUE; - case 5: return INTVALUE; - case 6: return UINTVALUE; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public static final int KEY_FIELD_NUMBER = 1; - private emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString key_; - /** - * <code>.AbilityString key = 1;</code> - * @return Whether the key field is set. - */ - @java.lang.Override - public boolean hasKey() { - return key_ != null; - } - /** - * <code>.AbilityString key = 1;</code> - * @return The key. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getKey() { - return key_ == null ? emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : key_; - } - /** - * <code>.AbilityString key = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getKeyOrBuilder() { - return getKey(); - } - - public static final int VALUETYPE_FIELD_NUMBER = 2; - private int valueType_; - /** - * <code>.AbilityScalarType valueType = 2;</code> - * @return The enum numeric value on the wire for valueType. - */ - @java.lang.Override public int getValueTypeValue() { - return valueType_; - } - /** - * <code>.AbilityScalarType valueType = 2;</code> - * @return The valueType. - */ - @java.lang.Override public emu.grasscutter.net.proto.AbilityScalarTypeOuterClass.AbilityScalarType getValueType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.AbilityScalarTypeOuterClass.AbilityScalarType result = emu.grasscutter.net.proto.AbilityScalarTypeOuterClass.AbilityScalarType.valueOf(valueType_); - return result == null ? emu.grasscutter.net.proto.AbilityScalarTypeOuterClass.AbilityScalarType.UNRECOGNIZED : result; - } - - public static final int FLOATVALUE_FIELD_NUMBER = 3; - /** - * <code>float floatValue = 3;</code> - * @return Whether the floatValue field is set. - */ - @java.lang.Override - public boolean hasFloatValue() { - return valueCase_ == 3; - } - /** - * <code>float floatValue = 3;</code> - * @return The floatValue. - */ - @java.lang.Override - public float getFloatValue() { - if (valueCase_ == 3) { - return (java.lang.Float) value_; - } - return 0F; - } - - public static final int STRINGVALUE_FIELD_NUMBER = 4; - /** - * <code>string stringValue = 4;</code> - * @return Whether the stringValue field is set. - */ - public boolean hasStringValue() { - return valueCase_ == 4; - } - /** - * <code>string stringValue = 4;</code> - * @return The stringValue. - */ - public java.lang.String getStringValue() { - java.lang.Object ref = ""; - if (valueCase_ == 4) { - ref = value_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valueCase_ == 4) { - value_ = s; - } - return s; - } - } - /** - * <code>string stringValue = 4;</code> - * @return The bytes for stringValue. - */ - public com.google.protobuf.ByteString - getStringValueBytes() { - java.lang.Object ref = ""; - if (valueCase_ == 4) { - ref = value_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valueCase_ == 4) { - value_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INTVALUE_FIELD_NUMBER = 5; - /** - * <code>int32 intValue = 5;</code> - * @return Whether the intValue field is set. - */ - @java.lang.Override - public boolean hasIntValue() { - return valueCase_ == 5; - } - /** - * <code>int32 intValue = 5;</code> - * @return The intValue. - */ - @java.lang.Override - public int getIntValue() { - if (valueCase_ == 5) { - return (java.lang.Integer) value_; - } - return 0; - } - - public static final int UINTVALUE_FIELD_NUMBER = 6; - /** - * <code>uint32 uintValue = 6;</code> - * @return Whether the uintValue field is set. - */ - @java.lang.Override - public boolean hasUintValue() { - return valueCase_ == 6; - } - /** - * <code>uint32 uintValue = 6;</code> - * @return The uintValue. - */ - @java.lang.Override - public int getUintValue() { - if (valueCase_ == 6) { - return (java.lang.Integer) value_; - } - return 0; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (key_ != null) { - output.writeMessage(1, getKey()); - } - if (valueType_ != emu.grasscutter.net.proto.AbilityScalarTypeOuterClass.AbilityScalarType.Unknow.getNumber()) { - output.writeEnum(2, valueType_); - } - if (valueCase_ == 3) { - output.writeFloat( - 3, (float)((java.lang.Float) value_)); - } - if (valueCase_ == 4) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, value_); - } - if (valueCase_ == 5) { - output.writeInt32( - 5, (int)((java.lang.Integer) value_)); - } - if (valueCase_ == 6) { - output.writeUInt32( - 6, (int)((java.lang.Integer) value_)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (key_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getKey()); - } - if (valueType_ != emu.grasscutter.net.proto.AbilityScalarTypeOuterClass.AbilityScalarType.Unknow.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, valueType_); - } - if (valueCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize( - 3, (float)((java.lang.Float) value_)); - } - if (valueCase_ == 4) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, value_); - } - if (valueCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 5, (int)((java.lang.Integer) value_)); - } - if (valueCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size( - 6, (int)((java.lang.Integer) value_)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry other = (emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry) obj; - - if (hasKey() != other.hasKey()) return false; - if (hasKey()) { - if (!getKey() - .equals(other.getKey())) return false; - } - if (valueType_ != other.valueType_) return false; - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 3: - if (java.lang.Float.floatToIntBits(getFloatValue()) - != java.lang.Float.floatToIntBits( - other.getFloatValue())) return false; - break; - case 4: - if (!getStringValue() - .equals(other.getStringValue())) return false; - break; - case 5: - if (getIntValue() - != other.getIntValue()) return false; - break; - case 6: - if (getUintValue() - != other.getUintValue()) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasKey()) { - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - } - hash = (37 * hash) + VALUETYPE_FIELD_NUMBER; - hash = (53 * hash) + valueType_; - switch (valueCase_) { - case 3: - hash = (37 * hash) + FLOATVALUE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getFloatValue()); - break; - case 4: - hash = (37 * hash) + STRINGVALUE_FIELD_NUMBER; - hash = (53 * hash) + getStringValue().hashCode(); - break; - case 5: - hash = (37 * hash) + INTVALUE_FIELD_NUMBER; - hash = (53 * hash) + getIntValue(); - break; - case 6: - hash = (37 * hash) + UINTVALUE_FIELD_NUMBER; - hash = (53 * hash) + getUintValue(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AbilityScalarValueEntry} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AbilityScalarValueEntry) - emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.internal_static_AbilityScalarValueEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.internal_static_AbilityScalarValueEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.class, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (keyBuilder_ == null) { - key_ = null; - } else { - key_ = null; - keyBuilder_ = null; - } - valueType_ = 0; - - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.internal_static_AbilityScalarValueEntry_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry build() { - emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry buildPartial() { - emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry result = new emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry(this); - if (keyBuilder_ == null) { - result.key_ = key_; - } else { - result.key_ = keyBuilder_.build(); - } - result.valueType_ = valueType_; - if (valueCase_ == 3) { - result.value_ = value_; - } - if (valueCase_ == 4) { - result.value_ = value_; - } - if (valueCase_ == 5) { - result.value_ = value_; - } - if (valueCase_ == 6) { - result.value_ = value_; - } - result.valueCase_ = valueCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry) { - return mergeFrom((emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry other) { - if (other == emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.getDefaultInstance()) return this; - if (other.hasKey()) { - mergeKey(other.getKey()); - } - if (other.valueType_ != 0) { - setValueTypeValue(other.getValueTypeValue()); - } - switch (other.getValueCase()) { - case FLOATVALUE: { - setFloatValue(other.getFloatValue()); - break; - } - case STRINGVALUE: { - valueCase_ = 4; - value_ = other.value_; - onChanged(); - break; - } - case INTVALUE: { - setIntValue(other.getIntValue()); - break; - } - case UINTVALUE: { - setUintValue(other.getUintValue()); - break; - } - case VALUE_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - private emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString key_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder> keyBuilder_; - /** - * <code>.AbilityString key = 1;</code> - * @return Whether the key field is set. - */ - public boolean hasKey() { - return keyBuilder_ != null || key_ != null; - } - /** - * <code>.AbilityString key = 1;</code> - * @return The key. - */ - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getKey() { - if (keyBuilder_ == null) { - return key_ == null ? emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : key_; - } else { - return keyBuilder_.getMessage(); - } - } - /** - * <code>.AbilityString key = 1;</code> - */ - public Builder setKey(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString value) { - if (keyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - key_ = value; - onChanged(); - } else { - keyBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.AbilityString key = 1;</code> - */ - public Builder setKey( - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder builderForValue) { - if (keyBuilder_ == null) { - key_ = builderForValue.build(); - onChanged(); - } else { - keyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.AbilityString key = 1;</code> - */ - public Builder mergeKey(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString value) { - if (keyBuilder_ == null) { - if (key_ != null) { - key_ = - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.newBuilder(key_).mergeFrom(value).buildPartial(); - } else { - key_ = value; - } - onChanged(); - } else { - keyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.AbilityString key = 1;</code> - */ - public Builder clearKey() { - if (keyBuilder_ == null) { - key_ = null; - onChanged(); - } else { - key_ = null; - keyBuilder_ = null; - } - - return this; - } - /** - * <code>.AbilityString key = 1;</code> - */ - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder getKeyBuilder() { - - onChanged(); - return getKeyFieldBuilder().getBuilder(); - } - /** - * <code>.AbilityString key = 1;</code> - */ - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getKeyOrBuilder() { - if (keyBuilder_ != null) { - return keyBuilder_.getMessageOrBuilder(); - } else { - return key_ == null ? - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : key_; - } - } - /** - * <code>.AbilityString key = 1;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder> - getKeyFieldBuilder() { - if (keyBuilder_ == null) { - keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder>( - getKey(), - getParentForChildren(), - isClean()); - key_ = null; - } - return keyBuilder_; - } - - private int valueType_ = 0; - /** - * <code>.AbilityScalarType valueType = 2;</code> - * @return The enum numeric value on the wire for valueType. - */ - @java.lang.Override public int getValueTypeValue() { - return valueType_; - } - /** - * <code>.AbilityScalarType valueType = 2;</code> - * @param value The enum numeric value on the wire for valueType to set. - * @return This builder for chaining. - */ - public Builder setValueTypeValue(int value) { - - valueType_ = value; - onChanged(); - return this; - } - /** - * <code>.AbilityScalarType valueType = 2;</code> - * @return The valueType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityScalarTypeOuterClass.AbilityScalarType getValueType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.AbilityScalarTypeOuterClass.AbilityScalarType result = emu.grasscutter.net.proto.AbilityScalarTypeOuterClass.AbilityScalarType.valueOf(valueType_); - return result == null ? emu.grasscutter.net.proto.AbilityScalarTypeOuterClass.AbilityScalarType.UNRECOGNIZED : result; - } - /** - * <code>.AbilityScalarType valueType = 2;</code> - * @param value The valueType to set. - * @return This builder for chaining. - */ - public Builder setValueType(emu.grasscutter.net.proto.AbilityScalarTypeOuterClass.AbilityScalarType value) { - if (value == null) { - throw new NullPointerException(); - } - - valueType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.AbilityScalarType valueType = 2;</code> - * @return This builder for chaining. - */ - public Builder clearValueType() { - - valueType_ = 0; - onChanged(); - return this; - } - - /** - * <code>float floatValue = 3;</code> - * @return Whether the floatValue field is set. - */ - public boolean hasFloatValue() { - return valueCase_ == 3; - } - /** - * <code>float floatValue = 3;</code> - * @return The floatValue. - */ - public float getFloatValue() { - if (valueCase_ == 3) { - return (java.lang.Float) value_; - } - return 0F; - } - /** - * <code>float floatValue = 3;</code> - * @param value The floatValue to set. - * @return This builder for chaining. - */ - public Builder setFloatValue(float value) { - valueCase_ = 3; - value_ = value; - onChanged(); - return this; - } - /** - * <code>float floatValue = 3;</code> - * @return This builder for chaining. - */ - public Builder clearFloatValue() { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - /** - * <code>string stringValue = 4;</code> - * @return Whether the stringValue field is set. - */ - @java.lang.Override - public boolean hasStringValue() { - return valueCase_ == 4; - } - /** - * <code>string stringValue = 4;</code> - * @return The stringValue. - */ - @java.lang.Override - public java.lang.String getStringValue() { - java.lang.Object ref = ""; - if (valueCase_ == 4) { - ref = value_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valueCase_ == 4) { - value_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string stringValue = 4;</code> - * @return The bytes for stringValue. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStringValueBytes() { - java.lang.Object ref = ""; - if (valueCase_ == 4) { - ref = value_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valueCase_ == 4) { - value_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string stringValue = 4;</code> - * @param value The stringValue to set. - * @return This builder for chaining. - */ - public Builder setStringValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - valueCase_ = 4; - value_ = value; - onChanged(); - return this; - } - /** - * <code>string stringValue = 4;</code> - * @return This builder for chaining. - */ - public Builder clearStringValue() { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - /** - * <code>string stringValue = 4;</code> - * @param value The bytes for stringValue to set. - * @return This builder for chaining. - */ - public Builder setStringValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - valueCase_ = 4; - value_ = value; - onChanged(); - return this; - } - - /** - * <code>int32 intValue = 5;</code> - * @return Whether the intValue field is set. - */ - public boolean hasIntValue() { - return valueCase_ == 5; - } - /** - * <code>int32 intValue = 5;</code> - * @return The intValue. - */ - public int getIntValue() { - if (valueCase_ == 5) { - return (java.lang.Integer) value_; - } - return 0; - } - /** - * <code>int32 intValue = 5;</code> - * @param value The intValue to set. - * @return This builder for chaining. - */ - public Builder setIntValue(int value) { - valueCase_ = 5; - value_ = value; - onChanged(); - return this; - } - /** - * <code>int32 intValue = 5;</code> - * @return This builder for chaining. - */ - public Builder clearIntValue() { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - /** - * <code>uint32 uintValue = 6;</code> - * @return Whether the uintValue field is set. - */ - public boolean hasUintValue() { - return valueCase_ == 6; - } - /** - * <code>uint32 uintValue = 6;</code> - * @return The uintValue. - */ - public int getUintValue() { - if (valueCase_ == 6) { - return (java.lang.Integer) value_; - } - return 0; - } - /** - * <code>uint32 uintValue = 6;</code> - * @param value The uintValue to set. - * @return This builder for chaining. - */ - public Builder setUintValue(int value) { - valueCase_ = 6; - value_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 uintValue = 6;</code> - * @return This builder for chaining. - */ - public Builder clearUintValue() { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AbilityScalarValueEntry) - } - - // @@protoc_insertion_point(class_scope:AbilityScalarValueEntry) - private static final emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry(); - } - - public static emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AbilityScalarValueEntry> - PARSER = new com.google.protobuf.AbstractParser<AbilityScalarValueEntry>() { - @java.lang.Override - public AbilityScalarValueEntry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AbilityScalarValueEntry(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AbilityScalarValueEntry> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AbilityScalarValueEntry> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AbilityScalarValueEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AbilityScalarValueEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035AbilityScalarValueEntry.proto\032\027Ability" + - "ScalarType.proto\032\023AbilityString.proto\"\274\001" + - "\n\027AbilityScalarValueEntry\022\033\n\003key\030\001 \001(\0132\016" + - ".AbilityString\022%\n\tvalueType\030\002 \001(\0162\022.Abil" + - "ityScalarType\022\024\n\nfloatValue\030\003 \001(\002H\000\022\025\n\013s" + - "tringValue\030\004 \001(\tH\000\022\022\n\010intValue\030\005 \001(\005H\000\022\023" + - "\n\tuintValue\030\006 \001(\rH\000B\007\n\005valueB\033\n\031emu.gras" + - "scutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AbilityScalarTypeOuterClass.getDescriptor(), - emu.grasscutter.net.proto.AbilityStringOuterClass.getDescriptor(), - }); - internal_static_AbilityScalarValueEntry_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AbilityScalarValueEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AbilityScalarValueEntry_descriptor, - new java.lang.String[] { "Key", "ValueType", "FloatValue", "StringValue", "IntValue", "UintValue", "Value", }); - emu.grasscutter.net.proto.AbilityScalarTypeOuterClass.getDescriptor(); - emu.grasscutter.net.proto.AbilityStringOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AbilityStringOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AbilityStringOuterClass.java deleted file mode 100644 index 987971915..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AbilityStringOuterClass.java +++ /dev/null @@ -1,838 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AbilityString.proto - -package emu.grasscutter.net.proto; - -public final class AbilityStringOuterClass { - private AbilityStringOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AbilityStringOrBuilder extends - // @@protoc_insertion_point(interface_extends:AbilityString) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>string str = 1;</code> - * @return Whether the str field is set. - */ - boolean hasStr(); - /** - * <code>string str = 1;</code> - * @return The str. - */ - java.lang.String getStr(); - /** - * <code>string str = 1;</code> - * @return The bytes for str. - */ - com.google.protobuf.ByteString - getStrBytes(); - - /** - * <code>uint32 hash = 2;</code> - * @return Whether the hash field is set. - */ - boolean hasHash(); - /** - * <code>uint32 hash = 2;</code> - * @return The hash. - */ - int getHash(); - - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.TypeCase getTypeCase(); - } - /** - * Protobuf type {@code AbilityString} - */ - public static final class AbilityString extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AbilityString) - AbilityStringOrBuilder { - private static final long serialVersionUID = 0L; - // Use AbilityString.newBuilder() to construct. - private AbilityString(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AbilityString() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AbilityString(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AbilityString( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - typeCase_ = 1; - type_ = s; - break; - } - case 16: { - typeCase_ = 2; - type_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityStringOuterClass.internal_static_AbilityString_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilityStringOuterClass.internal_static_AbilityString_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.class, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder.class); - } - - private int typeCase_ = 0; - private java.lang.Object type_; - public enum TypeCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - STR(1), - HASH(2), - TYPE_NOT_SET(0); - private final int value; - private TypeCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TypeCase valueOf(int value) { - return forNumber(value); - } - - public static TypeCase forNumber(int value) { - switch (value) { - case 1: return STR; - case 2: return HASH; - case 0: return TYPE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public TypeCase - getTypeCase() { - return TypeCase.forNumber( - typeCase_); - } - - public static final int STR_FIELD_NUMBER = 1; - /** - * <code>string str = 1;</code> - * @return Whether the str field is set. - */ - public boolean hasStr() { - return typeCase_ == 1; - } - /** - * <code>string str = 1;</code> - * @return The str. - */ - public java.lang.String getStr() { - java.lang.Object ref = ""; - if (typeCase_ == 1) { - ref = type_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (typeCase_ == 1) { - type_ = s; - } - return s; - } - } - /** - * <code>string str = 1;</code> - * @return The bytes for str. - */ - public com.google.protobuf.ByteString - getStrBytes() { - java.lang.Object ref = ""; - if (typeCase_ == 1) { - ref = type_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (typeCase_ == 1) { - type_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HASH_FIELD_NUMBER = 2; - /** - * <code>uint32 hash = 2;</code> - * @return Whether the hash field is set. - */ - @java.lang.Override - public boolean hasHash() { - return typeCase_ == 2; - } - /** - * <code>uint32 hash = 2;</code> - * @return The hash. - */ - @java.lang.Override - public int getHash() { - if (typeCase_ == 2) { - return (java.lang.Integer) type_; - } - return 0; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (typeCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); - } - if (typeCase_ == 2) { - output.writeUInt32( - 2, (int)((java.lang.Integer) type_)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (typeCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); - } - if (typeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size( - 2, (int)((java.lang.Integer) type_)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString other = (emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString) obj; - - if (!getTypeCase().equals(other.getTypeCase())) return false; - switch (typeCase_) { - case 1: - if (!getStr() - .equals(other.getStr())) return false; - break; - case 2: - if (getHash() - != other.getHash()) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (typeCase_) { - case 1: - hash = (37 * hash) + STR_FIELD_NUMBER; - hash = (53 * hash) + getStr().hashCode(); - break; - case 2: - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AbilityString} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AbilityString) - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilityStringOuterClass.internal_static_AbilityString_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilityStringOuterClass.internal_static_AbilityString_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.class, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - typeCase_ = 0; - type_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AbilityStringOuterClass.internal_static_AbilityString_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString build() { - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString buildPartial() { - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString result = new emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString(this); - if (typeCase_ == 1) { - result.type_ = type_; - } - if (typeCase_ == 2) { - result.type_ = type_; - } - result.typeCase_ = typeCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString) { - return mergeFrom((emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString other) { - if (other == emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance()) return this; - switch (other.getTypeCase()) { - case STR: { - typeCase_ = 1; - type_ = other.type_; - onChanged(); - break; - } - case HASH: { - setHash(other.getHash()); - break; - } - case TYPE_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int typeCase_ = 0; - private java.lang.Object type_; - public TypeCase - getTypeCase() { - return TypeCase.forNumber( - typeCase_); - } - - public Builder clearType() { - typeCase_ = 0; - type_ = null; - onChanged(); - return this; - } - - - /** - * <code>string str = 1;</code> - * @return Whether the str field is set. - */ - @java.lang.Override - public boolean hasStr() { - return typeCase_ == 1; - } - /** - * <code>string str = 1;</code> - * @return The str. - */ - @java.lang.Override - public java.lang.String getStr() { - java.lang.Object ref = ""; - if (typeCase_ == 1) { - ref = type_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (typeCase_ == 1) { - type_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string str = 1;</code> - * @return The bytes for str. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStrBytes() { - java.lang.Object ref = ""; - if (typeCase_ == 1) { - ref = type_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (typeCase_ == 1) { - type_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string str = 1;</code> - * @param value The str to set. - * @return This builder for chaining. - */ - public Builder setStr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - typeCase_ = 1; - type_ = value; - onChanged(); - return this; - } - /** - * <code>string str = 1;</code> - * @return This builder for chaining. - */ - public Builder clearStr() { - if (typeCase_ == 1) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - return this; - } - /** - * <code>string str = 1;</code> - * @param value The bytes for str to set. - * @return This builder for chaining. - */ - public Builder setStrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - typeCase_ = 1; - type_ = value; - onChanged(); - return this; - } - - /** - * <code>uint32 hash = 2;</code> - * @return Whether the hash field is set. - */ - public boolean hasHash() { - return typeCase_ == 2; - } - /** - * <code>uint32 hash = 2;</code> - * @return The hash. - */ - public int getHash() { - if (typeCase_ == 2) { - return (java.lang.Integer) type_; - } - return 0; - } - /** - * <code>uint32 hash = 2;</code> - * @param value The hash to set. - * @return This builder for chaining. - */ - public Builder setHash(int value) { - typeCase_ = 2; - type_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 hash = 2;</code> - * @return This builder for chaining. - */ - public Builder clearHash() { - if (typeCase_ == 2) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AbilityString) - } - - // @@protoc_insertion_point(class_scope:AbilityString) - private static final emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString(); - } - - public static emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AbilityString> - PARSER = new com.google.protobuf.AbstractParser<AbilityString>() { - @java.lang.Override - public AbilityString parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AbilityString(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AbilityString> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AbilityString> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AbilityString_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AbilityString_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023AbilityString.proto\"6\n\rAbilityString\022\r" + - "\n\003str\030\001 \001(\tH\000\022\016\n\004hash\030\002 \001(\rH\000B\006\n\004typeB\033\n" + - "\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AbilityString_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AbilityString_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AbilityString_descriptor, - new java.lang.String[] { "Str", "Hash", "Type", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AbilitySyncStateInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AbilitySyncStateInfoOuterClass.java deleted file mode 100644 index 98f9f393a..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AbilitySyncStateInfoOuterClass.java +++ /dev/null @@ -1,2044 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AbilitySyncStateInfo.proto - -package emu.grasscutter.net.proto; - -public final class AbilitySyncStateInfoOuterClass { - private AbilitySyncStateInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AbilitySyncStateInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:AbilitySyncStateInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>bool isInited = 1;</code> - * @return The isInited. - */ - boolean getIsInited(); - - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - java.util.List<emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry> - getDynamicValueMapList(); - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry getDynamicValueMap(int index); - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - int getDynamicValueMapCount(); - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder> - getDynamicValueMapOrBuilderList(); - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder getDynamicValueMapOrBuilder( - int index); - - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - java.util.List<emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility> - getAppliedAbilitiesList(); - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility getAppliedAbilities(int index); - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - int getAppliedAbilitiesCount(); - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbilityOrBuilder> - getAppliedAbilitiesOrBuilderList(); - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbilityOrBuilder getAppliedAbilitiesOrBuilder( - int index); - - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - java.util.List<emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier> - getAppliedModifiersList(); - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier getAppliedModifiers(int index); - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - int getAppliedModifiersCount(); - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifierOrBuilder> - getAppliedModifiersOrBuilderList(); - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifierOrBuilder getAppliedModifiersOrBuilder( - int index); - - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - java.util.List<emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo> - getMixinRecoverInfosList(); - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo getMixinRecoverInfos(int index); - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - int getMixinRecoverInfosCount(); - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfoOrBuilder> - getMixinRecoverInfosOrBuilderList(); - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfoOrBuilder getMixinRecoverInfosOrBuilder( - int index); - } - /** - * Protobuf type {@code AbilitySyncStateInfo} - */ - public static final class AbilitySyncStateInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AbilitySyncStateInfo) - AbilitySyncStateInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use AbilitySyncStateInfo.newBuilder() to construct. - private AbilitySyncStateInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AbilitySyncStateInfo() { - dynamicValueMap_ = java.util.Collections.emptyList(); - appliedAbilities_ = java.util.Collections.emptyList(); - appliedModifiers_ = java.util.Collections.emptyList(); - mixinRecoverInfos_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AbilitySyncStateInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AbilitySyncStateInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - isInited_ = input.readBool(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dynamicValueMap_ = new java.util.ArrayList<emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry>(); - mutable_bitField0_ |= 0x00000001; - } - dynamicValueMap_.add( - input.readMessage(emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - appliedAbilities_ = new java.util.ArrayList<emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility>(); - mutable_bitField0_ |= 0x00000002; - } - appliedAbilities_.add( - input.readMessage(emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.parser(), extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - appliedModifiers_ = new java.util.ArrayList<emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier>(); - mutable_bitField0_ |= 0x00000004; - } - appliedModifiers_.add( - input.readMessage(emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.parser(), extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - mixinRecoverInfos_ = new java.util.ArrayList<emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo>(); - mutable_bitField0_ |= 0x00000008; - } - mixinRecoverInfos_.add( - input.readMessage(emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - dynamicValueMap_ = java.util.Collections.unmodifiableList(dynamicValueMap_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - appliedAbilities_ = java.util.Collections.unmodifiableList(appliedAbilities_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - appliedModifiers_ = java.util.Collections.unmodifiableList(appliedModifiers_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - mixinRecoverInfos_ = java.util.Collections.unmodifiableList(mixinRecoverInfos_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.internal_static_AbilitySyncStateInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.internal_static_AbilitySyncStateInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.class, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder.class); - } - - public static final int ISINITED_FIELD_NUMBER = 1; - private boolean isInited_; - /** - * <code>bool isInited = 1;</code> - * @return The isInited. - */ - @java.lang.Override - public boolean getIsInited() { - return isInited_; - } - - public static final int DYNAMICVALUEMAP_FIELD_NUMBER = 2; - private java.util.List<emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry> dynamicValueMap_; - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry> getDynamicValueMapList() { - return dynamicValueMap_; - } - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder> - getDynamicValueMapOrBuilderList() { - return dynamicValueMap_; - } - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - @java.lang.Override - public int getDynamicValueMapCount() { - return dynamicValueMap_.size(); - } - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry getDynamicValueMap(int index) { - return dynamicValueMap_.get(index); - } - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder getDynamicValueMapOrBuilder( - int index) { - return dynamicValueMap_.get(index); - } - - public static final int APPLIEDABILITIES_FIELD_NUMBER = 3; - private java.util.List<emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility> appliedAbilities_; - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility> getAppliedAbilitiesList() { - return appliedAbilities_; - } - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbilityOrBuilder> - getAppliedAbilitiesOrBuilderList() { - return appliedAbilities_; - } - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - @java.lang.Override - public int getAppliedAbilitiesCount() { - return appliedAbilities_.size(); - } - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility getAppliedAbilities(int index) { - return appliedAbilities_.get(index); - } - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbilityOrBuilder getAppliedAbilitiesOrBuilder( - int index) { - return appliedAbilities_.get(index); - } - - public static final int APPLIEDMODIFIERS_FIELD_NUMBER = 4; - private java.util.List<emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier> appliedModifiers_; - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier> getAppliedModifiersList() { - return appliedModifiers_; - } - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifierOrBuilder> - getAppliedModifiersOrBuilderList() { - return appliedModifiers_; - } - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - @java.lang.Override - public int getAppliedModifiersCount() { - return appliedModifiers_.size(); - } - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier getAppliedModifiers(int index) { - return appliedModifiers_.get(index); - } - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifierOrBuilder getAppliedModifiersOrBuilder( - int index) { - return appliedModifiers_.get(index); - } - - public static final int MIXINRECOVERINFOS_FIELD_NUMBER = 5; - private java.util.List<emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo> mixinRecoverInfos_; - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo> getMixinRecoverInfosList() { - return mixinRecoverInfos_; - } - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfoOrBuilder> - getMixinRecoverInfosOrBuilderList() { - return mixinRecoverInfos_; - } - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - @java.lang.Override - public int getMixinRecoverInfosCount() { - return mixinRecoverInfos_.size(); - } - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo getMixinRecoverInfos(int index) { - return mixinRecoverInfos_.get(index); - } - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfoOrBuilder getMixinRecoverInfosOrBuilder( - int index) { - return mixinRecoverInfos_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (isInited_ != false) { - output.writeBool(1, isInited_); - } - for (int i = 0; i < dynamicValueMap_.size(); i++) { - output.writeMessage(2, dynamicValueMap_.get(i)); - } - for (int i = 0; i < appliedAbilities_.size(); i++) { - output.writeMessage(3, appliedAbilities_.get(i)); - } - for (int i = 0; i < appliedModifiers_.size(); i++) { - output.writeMessage(4, appliedModifiers_.get(i)); - } - for (int i = 0; i < mixinRecoverInfos_.size(); i++) { - output.writeMessage(5, mixinRecoverInfos_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (isInited_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, isInited_); - } - for (int i = 0; i < dynamicValueMap_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, dynamicValueMap_.get(i)); - } - for (int i = 0; i < appliedAbilities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, appliedAbilities_.get(i)); - } - for (int i = 0; i < appliedModifiers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, appliedModifiers_.get(i)); - } - for (int i = 0; i < mixinRecoverInfos_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, mixinRecoverInfos_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo other = (emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo) obj; - - if (getIsInited() - != other.getIsInited()) return false; - if (!getDynamicValueMapList() - .equals(other.getDynamicValueMapList())) return false; - if (!getAppliedAbilitiesList() - .equals(other.getAppliedAbilitiesList())) return false; - if (!getAppliedModifiersList() - .equals(other.getAppliedModifiersList())) return false; - if (!getMixinRecoverInfosList() - .equals(other.getMixinRecoverInfosList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ISINITED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsInited()); - if (getDynamicValueMapCount() > 0) { - hash = (37 * hash) + DYNAMICVALUEMAP_FIELD_NUMBER; - hash = (53 * hash) + getDynamicValueMapList().hashCode(); - } - if (getAppliedAbilitiesCount() > 0) { - hash = (37 * hash) + APPLIEDABILITIES_FIELD_NUMBER; - hash = (53 * hash) + getAppliedAbilitiesList().hashCode(); - } - if (getAppliedModifiersCount() > 0) { - hash = (37 * hash) + APPLIEDMODIFIERS_FIELD_NUMBER; - hash = (53 * hash) + getAppliedModifiersList().hashCode(); - } - if (getMixinRecoverInfosCount() > 0) { - hash = (37 * hash) + MIXINRECOVERINFOS_FIELD_NUMBER; - hash = (53 * hash) + getMixinRecoverInfosList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AbilitySyncStateInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AbilitySyncStateInfo) - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.internal_static_AbilitySyncStateInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.internal_static_AbilitySyncStateInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.class, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDynamicValueMapFieldBuilder(); - getAppliedAbilitiesFieldBuilder(); - getAppliedModifiersFieldBuilder(); - getMixinRecoverInfosFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - isInited_ = false; - - if (dynamicValueMapBuilder_ == null) { - dynamicValueMap_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - dynamicValueMapBuilder_.clear(); - } - if (appliedAbilitiesBuilder_ == null) { - appliedAbilities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - appliedAbilitiesBuilder_.clear(); - } - if (appliedModifiersBuilder_ == null) { - appliedModifiers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - appliedModifiersBuilder_.clear(); - } - if (mixinRecoverInfosBuilder_ == null) { - mixinRecoverInfos_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - mixinRecoverInfosBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.internal_static_AbilitySyncStateInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo build() { - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo buildPartial() { - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo result = new emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo(this); - int from_bitField0_ = bitField0_; - result.isInited_ = isInited_; - if (dynamicValueMapBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dynamicValueMap_ = java.util.Collections.unmodifiableList(dynamicValueMap_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dynamicValueMap_ = dynamicValueMap_; - } else { - result.dynamicValueMap_ = dynamicValueMapBuilder_.build(); - } - if (appliedAbilitiesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - appliedAbilities_ = java.util.Collections.unmodifiableList(appliedAbilities_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.appliedAbilities_ = appliedAbilities_; - } else { - result.appliedAbilities_ = appliedAbilitiesBuilder_.build(); - } - if (appliedModifiersBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - appliedModifiers_ = java.util.Collections.unmodifiableList(appliedModifiers_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.appliedModifiers_ = appliedModifiers_; - } else { - result.appliedModifiers_ = appliedModifiersBuilder_.build(); - } - if (mixinRecoverInfosBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - mixinRecoverInfos_ = java.util.Collections.unmodifiableList(mixinRecoverInfos_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.mixinRecoverInfos_ = mixinRecoverInfos_; - } else { - result.mixinRecoverInfos_ = mixinRecoverInfosBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo) { - return mergeFrom((emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo other) { - if (other == emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance()) return this; - if (other.getIsInited() != false) { - setIsInited(other.getIsInited()); - } - if (dynamicValueMapBuilder_ == null) { - if (!other.dynamicValueMap_.isEmpty()) { - if (dynamicValueMap_.isEmpty()) { - dynamicValueMap_ = other.dynamicValueMap_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDynamicValueMapIsMutable(); - dynamicValueMap_.addAll(other.dynamicValueMap_); - } - onChanged(); - } - } else { - if (!other.dynamicValueMap_.isEmpty()) { - if (dynamicValueMapBuilder_.isEmpty()) { - dynamicValueMapBuilder_.dispose(); - dynamicValueMapBuilder_ = null; - dynamicValueMap_ = other.dynamicValueMap_; - bitField0_ = (bitField0_ & ~0x00000001); - dynamicValueMapBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDynamicValueMapFieldBuilder() : null; - } else { - dynamicValueMapBuilder_.addAllMessages(other.dynamicValueMap_); - } - } - } - if (appliedAbilitiesBuilder_ == null) { - if (!other.appliedAbilities_.isEmpty()) { - if (appliedAbilities_.isEmpty()) { - appliedAbilities_ = other.appliedAbilities_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureAppliedAbilitiesIsMutable(); - appliedAbilities_.addAll(other.appliedAbilities_); - } - onChanged(); - } - } else { - if (!other.appliedAbilities_.isEmpty()) { - if (appliedAbilitiesBuilder_.isEmpty()) { - appliedAbilitiesBuilder_.dispose(); - appliedAbilitiesBuilder_ = null; - appliedAbilities_ = other.appliedAbilities_; - bitField0_ = (bitField0_ & ~0x00000002); - appliedAbilitiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAppliedAbilitiesFieldBuilder() : null; - } else { - appliedAbilitiesBuilder_.addAllMessages(other.appliedAbilities_); - } - } - } - if (appliedModifiersBuilder_ == null) { - if (!other.appliedModifiers_.isEmpty()) { - if (appliedModifiers_.isEmpty()) { - appliedModifiers_ = other.appliedModifiers_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureAppliedModifiersIsMutable(); - appliedModifiers_.addAll(other.appliedModifiers_); - } - onChanged(); - } - } else { - if (!other.appliedModifiers_.isEmpty()) { - if (appliedModifiersBuilder_.isEmpty()) { - appliedModifiersBuilder_.dispose(); - appliedModifiersBuilder_ = null; - appliedModifiers_ = other.appliedModifiers_; - bitField0_ = (bitField0_ & ~0x00000004); - appliedModifiersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAppliedModifiersFieldBuilder() : null; - } else { - appliedModifiersBuilder_.addAllMessages(other.appliedModifiers_); - } - } - } - if (mixinRecoverInfosBuilder_ == null) { - if (!other.mixinRecoverInfos_.isEmpty()) { - if (mixinRecoverInfos_.isEmpty()) { - mixinRecoverInfos_ = other.mixinRecoverInfos_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureMixinRecoverInfosIsMutable(); - mixinRecoverInfos_.addAll(other.mixinRecoverInfos_); - } - onChanged(); - } - } else { - if (!other.mixinRecoverInfos_.isEmpty()) { - if (mixinRecoverInfosBuilder_.isEmpty()) { - mixinRecoverInfosBuilder_.dispose(); - mixinRecoverInfosBuilder_ = null; - mixinRecoverInfos_ = other.mixinRecoverInfos_; - bitField0_ = (bitField0_ & ~0x00000008); - mixinRecoverInfosBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMixinRecoverInfosFieldBuilder() : null; - } else { - mixinRecoverInfosBuilder_.addAllMessages(other.mixinRecoverInfos_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private boolean isInited_ ; - /** - * <code>bool isInited = 1;</code> - * @return The isInited. - */ - @java.lang.Override - public boolean getIsInited() { - return isInited_; - } - /** - * <code>bool isInited = 1;</code> - * @param value The isInited to set. - * @return This builder for chaining. - */ - public Builder setIsInited(boolean value) { - - isInited_ = value; - onChanged(); - return this; - } - /** - * <code>bool isInited = 1;</code> - * @return This builder for chaining. - */ - public Builder clearIsInited() { - - isInited_ = false; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry> dynamicValueMap_ = - java.util.Collections.emptyList(); - private void ensureDynamicValueMapIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dynamicValueMap_ = new java.util.ArrayList<emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry>(dynamicValueMap_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder> dynamicValueMapBuilder_; - - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry> getDynamicValueMapList() { - if (dynamicValueMapBuilder_ == null) { - return java.util.Collections.unmodifiableList(dynamicValueMap_); - } else { - return dynamicValueMapBuilder_.getMessageList(); - } - } - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - public int getDynamicValueMapCount() { - if (dynamicValueMapBuilder_ == null) { - return dynamicValueMap_.size(); - } else { - return dynamicValueMapBuilder_.getCount(); - } - } - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry getDynamicValueMap(int index) { - if (dynamicValueMapBuilder_ == null) { - return dynamicValueMap_.get(index); - } else { - return dynamicValueMapBuilder_.getMessage(index); - } - } - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - public Builder setDynamicValueMap( - int index, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry value) { - if (dynamicValueMapBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDynamicValueMapIsMutable(); - dynamicValueMap_.set(index, value); - onChanged(); - } else { - dynamicValueMapBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - public Builder setDynamicValueMap( - int index, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder builderForValue) { - if (dynamicValueMapBuilder_ == null) { - ensureDynamicValueMapIsMutable(); - dynamicValueMap_.set(index, builderForValue.build()); - onChanged(); - } else { - dynamicValueMapBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - public Builder addDynamicValueMap(emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry value) { - if (dynamicValueMapBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDynamicValueMapIsMutable(); - dynamicValueMap_.add(value); - onChanged(); - } else { - dynamicValueMapBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - public Builder addDynamicValueMap( - int index, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry value) { - if (dynamicValueMapBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDynamicValueMapIsMutable(); - dynamicValueMap_.add(index, value); - onChanged(); - } else { - dynamicValueMapBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - public Builder addDynamicValueMap( - emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder builderForValue) { - if (dynamicValueMapBuilder_ == null) { - ensureDynamicValueMapIsMutable(); - dynamicValueMap_.add(builderForValue.build()); - onChanged(); - } else { - dynamicValueMapBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - public Builder addDynamicValueMap( - int index, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder builderForValue) { - if (dynamicValueMapBuilder_ == null) { - ensureDynamicValueMapIsMutable(); - dynamicValueMap_.add(index, builderForValue.build()); - onChanged(); - } else { - dynamicValueMapBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - public Builder addAllDynamicValueMap( - java.lang.Iterable<? extends emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry> values) { - if (dynamicValueMapBuilder_ == null) { - ensureDynamicValueMapIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dynamicValueMap_); - onChanged(); - } else { - dynamicValueMapBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - public Builder clearDynamicValueMap() { - if (dynamicValueMapBuilder_ == null) { - dynamicValueMap_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dynamicValueMapBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - public Builder removeDynamicValueMap(int index) { - if (dynamicValueMapBuilder_ == null) { - ensureDynamicValueMapIsMutable(); - dynamicValueMap_.remove(index); - onChanged(); - } else { - dynamicValueMapBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder getDynamicValueMapBuilder( - int index) { - return getDynamicValueMapFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder getDynamicValueMapOrBuilder( - int index) { - if (dynamicValueMapBuilder_ == null) { - return dynamicValueMap_.get(index); } else { - return dynamicValueMapBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder> - getDynamicValueMapOrBuilderList() { - if (dynamicValueMapBuilder_ != null) { - return dynamicValueMapBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dynamicValueMap_); - } - } - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder addDynamicValueMapBuilder() { - return getDynamicValueMapFieldBuilder().addBuilder( - emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.getDefaultInstance()); - } - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder addDynamicValueMapBuilder( - int index) { - return getDynamicValueMapFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.getDefaultInstance()); - } - /** - * <code>repeated .AbilityScalarValueEntry dynamicValueMap = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder> - getDynamicValueMapBuilderList() { - return getDynamicValueMapFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder> - getDynamicValueMapFieldBuilder() { - if (dynamicValueMapBuilder_ == null) { - dynamicValueMapBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder>( - dynamicValueMap_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - dynamicValueMap_ = null; - } - return dynamicValueMapBuilder_; - } - - private java.util.List<emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility> appliedAbilities_ = - java.util.Collections.emptyList(); - private void ensureAppliedAbilitiesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - appliedAbilities_ = new java.util.ArrayList<emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility>(appliedAbilities_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility, emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.Builder, emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbilityOrBuilder> appliedAbilitiesBuilder_; - - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility> getAppliedAbilitiesList() { - if (appliedAbilitiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(appliedAbilities_); - } else { - return appliedAbilitiesBuilder_.getMessageList(); - } - } - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - public int getAppliedAbilitiesCount() { - if (appliedAbilitiesBuilder_ == null) { - return appliedAbilities_.size(); - } else { - return appliedAbilitiesBuilder_.getCount(); - } - } - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - public emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility getAppliedAbilities(int index) { - if (appliedAbilitiesBuilder_ == null) { - return appliedAbilities_.get(index); - } else { - return appliedAbilitiesBuilder_.getMessage(index); - } - } - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - public Builder setAppliedAbilities( - int index, emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility value) { - if (appliedAbilitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAppliedAbilitiesIsMutable(); - appliedAbilities_.set(index, value); - onChanged(); - } else { - appliedAbilitiesBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - public Builder setAppliedAbilities( - int index, emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.Builder builderForValue) { - if (appliedAbilitiesBuilder_ == null) { - ensureAppliedAbilitiesIsMutable(); - appliedAbilities_.set(index, builderForValue.build()); - onChanged(); - } else { - appliedAbilitiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - public Builder addAppliedAbilities(emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility value) { - if (appliedAbilitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAppliedAbilitiesIsMutable(); - appliedAbilities_.add(value); - onChanged(); - } else { - appliedAbilitiesBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - public Builder addAppliedAbilities( - int index, emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility value) { - if (appliedAbilitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAppliedAbilitiesIsMutable(); - appliedAbilities_.add(index, value); - onChanged(); - } else { - appliedAbilitiesBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - public Builder addAppliedAbilities( - emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.Builder builderForValue) { - if (appliedAbilitiesBuilder_ == null) { - ensureAppliedAbilitiesIsMutable(); - appliedAbilities_.add(builderForValue.build()); - onChanged(); - } else { - appliedAbilitiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - public Builder addAppliedAbilities( - int index, emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.Builder builderForValue) { - if (appliedAbilitiesBuilder_ == null) { - ensureAppliedAbilitiesIsMutable(); - appliedAbilities_.add(index, builderForValue.build()); - onChanged(); - } else { - appliedAbilitiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - public Builder addAllAppliedAbilities( - java.lang.Iterable<? extends emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility> values) { - if (appliedAbilitiesBuilder_ == null) { - ensureAppliedAbilitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, appliedAbilities_); - onChanged(); - } else { - appliedAbilitiesBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - public Builder clearAppliedAbilities() { - if (appliedAbilitiesBuilder_ == null) { - appliedAbilities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - appliedAbilitiesBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - public Builder removeAppliedAbilities(int index) { - if (appliedAbilitiesBuilder_ == null) { - ensureAppliedAbilitiesIsMutable(); - appliedAbilities_.remove(index); - onChanged(); - } else { - appliedAbilitiesBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - public emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.Builder getAppliedAbilitiesBuilder( - int index) { - return getAppliedAbilitiesFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - public emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbilityOrBuilder getAppliedAbilitiesOrBuilder( - int index) { - if (appliedAbilitiesBuilder_ == null) { - return appliedAbilities_.get(index); } else { - return appliedAbilitiesBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbilityOrBuilder> - getAppliedAbilitiesOrBuilderList() { - if (appliedAbilitiesBuilder_ != null) { - return appliedAbilitiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(appliedAbilities_); - } - } - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - public emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.Builder addAppliedAbilitiesBuilder() { - return getAppliedAbilitiesFieldBuilder().addBuilder( - emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.getDefaultInstance()); - } - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - public emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.Builder addAppliedAbilitiesBuilder( - int index) { - return getAppliedAbilitiesFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.getDefaultInstance()); - } - /** - * <code>repeated .AbilityAppliedAbility appliedAbilities = 3;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.Builder> - getAppliedAbilitiesBuilderList() { - return getAppliedAbilitiesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility, emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.Builder, emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbilityOrBuilder> - getAppliedAbilitiesFieldBuilder() { - if (appliedAbilitiesBuilder_ == null) { - appliedAbilitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility, emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.Builder, emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbilityOrBuilder>( - appliedAbilities_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - appliedAbilities_ = null; - } - return appliedAbilitiesBuilder_; - } - - private java.util.List<emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier> appliedModifiers_ = - java.util.Collections.emptyList(); - private void ensureAppliedModifiersIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - appliedModifiers_ = new java.util.ArrayList<emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier>(appliedModifiers_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier, emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.Builder, emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifierOrBuilder> appliedModifiersBuilder_; - - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier> getAppliedModifiersList() { - if (appliedModifiersBuilder_ == null) { - return java.util.Collections.unmodifiableList(appliedModifiers_); - } else { - return appliedModifiersBuilder_.getMessageList(); - } - } - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - public int getAppliedModifiersCount() { - if (appliedModifiersBuilder_ == null) { - return appliedModifiers_.size(); - } else { - return appliedModifiersBuilder_.getCount(); - } - } - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - public emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier getAppliedModifiers(int index) { - if (appliedModifiersBuilder_ == null) { - return appliedModifiers_.get(index); - } else { - return appliedModifiersBuilder_.getMessage(index); - } - } - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - public Builder setAppliedModifiers( - int index, emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier value) { - if (appliedModifiersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAppliedModifiersIsMutable(); - appliedModifiers_.set(index, value); - onChanged(); - } else { - appliedModifiersBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - public Builder setAppliedModifiers( - int index, emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.Builder builderForValue) { - if (appliedModifiersBuilder_ == null) { - ensureAppliedModifiersIsMutable(); - appliedModifiers_.set(index, builderForValue.build()); - onChanged(); - } else { - appliedModifiersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - public Builder addAppliedModifiers(emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier value) { - if (appliedModifiersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAppliedModifiersIsMutable(); - appliedModifiers_.add(value); - onChanged(); - } else { - appliedModifiersBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - public Builder addAppliedModifiers( - int index, emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier value) { - if (appliedModifiersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAppliedModifiersIsMutable(); - appliedModifiers_.add(index, value); - onChanged(); - } else { - appliedModifiersBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - public Builder addAppliedModifiers( - emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.Builder builderForValue) { - if (appliedModifiersBuilder_ == null) { - ensureAppliedModifiersIsMutable(); - appliedModifiers_.add(builderForValue.build()); - onChanged(); - } else { - appliedModifiersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - public Builder addAppliedModifiers( - int index, emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.Builder builderForValue) { - if (appliedModifiersBuilder_ == null) { - ensureAppliedModifiersIsMutable(); - appliedModifiers_.add(index, builderForValue.build()); - onChanged(); - } else { - appliedModifiersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - public Builder addAllAppliedModifiers( - java.lang.Iterable<? extends emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier> values) { - if (appliedModifiersBuilder_ == null) { - ensureAppliedModifiersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, appliedModifiers_); - onChanged(); - } else { - appliedModifiersBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - public Builder clearAppliedModifiers() { - if (appliedModifiersBuilder_ == null) { - appliedModifiers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - appliedModifiersBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - public Builder removeAppliedModifiers(int index) { - if (appliedModifiersBuilder_ == null) { - ensureAppliedModifiersIsMutable(); - appliedModifiers_.remove(index); - onChanged(); - } else { - appliedModifiersBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - public emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.Builder getAppliedModifiersBuilder( - int index) { - return getAppliedModifiersFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - public emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifierOrBuilder getAppliedModifiersOrBuilder( - int index) { - if (appliedModifiersBuilder_ == null) { - return appliedModifiers_.get(index); } else { - return appliedModifiersBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifierOrBuilder> - getAppliedModifiersOrBuilderList() { - if (appliedModifiersBuilder_ != null) { - return appliedModifiersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(appliedModifiers_); - } - } - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - public emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.Builder addAppliedModifiersBuilder() { - return getAppliedModifiersFieldBuilder().addBuilder( - emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.getDefaultInstance()); - } - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - public emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.Builder addAppliedModifiersBuilder( - int index) { - return getAppliedModifiersFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.getDefaultInstance()); - } - /** - * <code>repeated .AbilityAppliedModifier appliedModifiers = 4;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.Builder> - getAppliedModifiersBuilderList() { - return getAppliedModifiersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier, emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.Builder, emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifierOrBuilder> - getAppliedModifiersFieldBuilder() { - if (appliedModifiersBuilder_ == null) { - appliedModifiersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier, emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.Builder, emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifierOrBuilder>( - appliedModifiers_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - appliedModifiers_ = null; - } - return appliedModifiersBuilder_; - } - - private java.util.List<emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo> mixinRecoverInfos_ = - java.util.Collections.emptyList(); - private void ensureMixinRecoverInfosIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - mixinRecoverInfos_ = new java.util.ArrayList<emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo>(mixinRecoverInfos_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo, emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.Builder, emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfoOrBuilder> mixinRecoverInfosBuilder_; - - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo> getMixinRecoverInfosList() { - if (mixinRecoverInfosBuilder_ == null) { - return java.util.Collections.unmodifiableList(mixinRecoverInfos_); - } else { - return mixinRecoverInfosBuilder_.getMessageList(); - } - } - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - public int getMixinRecoverInfosCount() { - if (mixinRecoverInfosBuilder_ == null) { - return mixinRecoverInfos_.size(); - } else { - return mixinRecoverInfosBuilder_.getCount(); - } - } - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - public emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo getMixinRecoverInfos(int index) { - if (mixinRecoverInfosBuilder_ == null) { - return mixinRecoverInfos_.get(index); - } else { - return mixinRecoverInfosBuilder_.getMessage(index); - } - } - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - public Builder setMixinRecoverInfos( - int index, emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo value) { - if (mixinRecoverInfosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMixinRecoverInfosIsMutable(); - mixinRecoverInfos_.set(index, value); - onChanged(); - } else { - mixinRecoverInfosBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - public Builder setMixinRecoverInfos( - int index, emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.Builder builderForValue) { - if (mixinRecoverInfosBuilder_ == null) { - ensureMixinRecoverInfosIsMutable(); - mixinRecoverInfos_.set(index, builderForValue.build()); - onChanged(); - } else { - mixinRecoverInfosBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - public Builder addMixinRecoverInfos(emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo value) { - if (mixinRecoverInfosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMixinRecoverInfosIsMutable(); - mixinRecoverInfos_.add(value); - onChanged(); - } else { - mixinRecoverInfosBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - public Builder addMixinRecoverInfos( - int index, emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo value) { - if (mixinRecoverInfosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMixinRecoverInfosIsMutable(); - mixinRecoverInfos_.add(index, value); - onChanged(); - } else { - mixinRecoverInfosBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - public Builder addMixinRecoverInfos( - emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.Builder builderForValue) { - if (mixinRecoverInfosBuilder_ == null) { - ensureMixinRecoverInfosIsMutable(); - mixinRecoverInfos_.add(builderForValue.build()); - onChanged(); - } else { - mixinRecoverInfosBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - public Builder addMixinRecoverInfos( - int index, emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.Builder builderForValue) { - if (mixinRecoverInfosBuilder_ == null) { - ensureMixinRecoverInfosIsMutable(); - mixinRecoverInfos_.add(index, builderForValue.build()); - onChanged(); - } else { - mixinRecoverInfosBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - public Builder addAllMixinRecoverInfos( - java.lang.Iterable<? extends emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo> values) { - if (mixinRecoverInfosBuilder_ == null) { - ensureMixinRecoverInfosIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, mixinRecoverInfos_); - onChanged(); - } else { - mixinRecoverInfosBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - public Builder clearMixinRecoverInfos() { - if (mixinRecoverInfosBuilder_ == null) { - mixinRecoverInfos_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - mixinRecoverInfosBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - public Builder removeMixinRecoverInfos(int index) { - if (mixinRecoverInfosBuilder_ == null) { - ensureMixinRecoverInfosIsMutable(); - mixinRecoverInfos_.remove(index); - onChanged(); - } else { - mixinRecoverInfosBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - public emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.Builder getMixinRecoverInfosBuilder( - int index) { - return getMixinRecoverInfosFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - public emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfoOrBuilder getMixinRecoverInfosOrBuilder( - int index) { - if (mixinRecoverInfosBuilder_ == null) { - return mixinRecoverInfos_.get(index); } else { - return mixinRecoverInfosBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfoOrBuilder> - getMixinRecoverInfosOrBuilderList() { - if (mixinRecoverInfosBuilder_ != null) { - return mixinRecoverInfosBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(mixinRecoverInfos_); - } - } - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - public emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.Builder addMixinRecoverInfosBuilder() { - return getMixinRecoverInfosFieldBuilder().addBuilder( - emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.getDefaultInstance()); - } - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - public emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.Builder addMixinRecoverInfosBuilder( - int index) { - return getMixinRecoverInfosFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.getDefaultInstance()); - } - /** - * <code>repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.Builder> - getMixinRecoverInfosBuilderList() { - return getMixinRecoverInfosFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo, emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.Builder, emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfoOrBuilder> - getMixinRecoverInfosFieldBuilder() { - if (mixinRecoverInfosBuilder_ == null) { - mixinRecoverInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo, emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.Builder, emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfoOrBuilder>( - mixinRecoverInfos_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - mixinRecoverInfos_ = null; - } - return mixinRecoverInfosBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AbilitySyncStateInfo) - } - - // @@protoc_insertion_point(class_scope:AbilitySyncStateInfo) - private static final emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo(); - } - - public static emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AbilitySyncStateInfo> - PARSER = new com.google.protobuf.AbstractParser<AbilitySyncStateInfo>() { - @java.lang.Override - public AbilitySyncStateInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AbilitySyncStateInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AbilitySyncStateInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AbilitySyncStateInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AbilitySyncStateInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AbilitySyncStateInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032AbilitySyncStateInfo.proto\032\033AbilityApp" + - "liedAbility.proto\032\034AbilityAppliedModifie" + - "r.proto\032\035AbilityMixinRecoverInfo.proto\032\035" + - "AbilityScalarValueEntry.proto\"\365\001\n\024Abilit" + - "ySyncStateInfo\022\020\n\010isInited\030\001 \001(\010\0221\n\017dyna" + - "micValueMap\030\002 \003(\0132\030.AbilityScalarValueEn" + - "try\0220\n\020appliedAbilities\030\003 \003(\0132\026.AbilityA" + - "ppliedAbility\0221\n\020appliedModifiers\030\004 \003(\0132" + - "\027.AbilityAppliedModifier\0223\n\021mixinRecover" + - "Infos\030\005 \003(\0132\030.AbilityMixinRecoverInfoB\033\n" + - "\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.getDescriptor(), - emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.getDescriptor(), - emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.getDescriptor(), - }); - internal_static_AbilitySyncStateInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AbilitySyncStateInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AbilitySyncStateInfo_descriptor, - new java.lang.String[] { "IsInited", "DynamicValueMap", "AppliedAbilities", "AppliedModifiers", "MixinRecoverInfos", }); - emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.getDescriptor(); - emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.getDescriptor(); - emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ActionReasonTypeOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ActionReasonTypeOuterClass.java deleted file mode 100644 index 5ca6297ca..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ActionReasonTypeOuterClass.java +++ /dev/null @@ -1,1834 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ActionReasonType.proto - -package emu.grasscutter.net.proto; - -public final class ActionReasonTypeOuterClass { - private ActionReasonTypeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code ActionReasonType} - */ - public enum ActionReasonType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>ActionReasonNone = 0;</code> - */ - ActionReasonNone(0), - /** - * <code>ActionReasonQuestItem = 1;</code> - */ - ActionReasonQuestItem(1), - /** - * <code>ActionReasonQuestReward = 2;</code> - */ - ActionReasonQuestReward(2), - /** - * <code>ActionReasonTrifle = 3;</code> - */ - ActionReasonTrifle(3), - /** - * <code>ActionReasonShop = 4;</code> - */ - ActionReasonShop(4), - /** - * <code>ActionReasonPlayerUpgradeReward = 5;</code> - */ - ActionReasonPlayerUpgradeReward(5), - /** - * <code>ActionReasonAddAvatar = 6;</code> - */ - ActionReasonAddAvatar(6), - /** - * <code>ActionReasonGadgetEnvAnimal = 7;</code> - */ - ActionReasonGadgetEnvAnimal(7), - /** - * <code>ActionReasonMonsterEnvAnimal = 8;</code> - */ - ActionReasonMonsterEnvAnimal(8), - /** - * <code>ActionReasonCompound = 9;</code> - */ - ActionReasonCompound(9), - /** - * <code>ActionReasonCook = 10;</code> - */ - ActionReasonCook(10), - /** - * <code>ActionReasonGather = 11;</code> - */ - ActionReasonGather(11), - /** - * <code>ActionReasonMailAttachment = 12;</code> - */ - ActionReasonMailAttachment(12), - /** - * <code>ActionReasonCityLevelupReturn = 15;</code> - */ - ActionReasonCityLevelupReturn(15), - /** - * <code>ActionReasonCityLevelupReward = 17;</code> - */ - ActionReasonCityLevelupReward(17), - /** - * <code>ActionReasonAreaExploreReward = 18;</code> - */ - ActionReasonAreaExploreReward(18), - /** - * <code>ActionReasonUnlockPointReward = 19;</code> - */ - ActionReasonUnlockPointReward(19), - /** - * <code>ActionReasonDungeonFirstPass = 20;</code> - */ - ActionReasonDungeonFirstPass(20), - /** - * <code>ActionReasonDungeonPass = 21;</code> - */ - ActionReasonDungeonPass(21), - /** - * <code>ActionReasonChangeElemType = 23;</code> - */ - ActionReasonChangeElemType(23), - /** - * <code>ActionReasonFetterOpen = 25;</code> - */ - ActionReasonFetterOpen(25), - /** - * <code>ActionReasonDailyTaskScore = 26;</code> - */ - ActionReasonDailyTaskScore(26), - /** - * <code>ActionReasonDailyTaskHost = 27;</code> - */ - ActionReasonDailyTaskHost(27), - /** - * <code>ActionReasonRandTaskHost = 28;</code> - */ - ActionReasonRandTaskHost(28), - /** - * <code>ActionReasonExpedition = 29;</code> - */ - ActionReasonExpedition(29), - /** - * <code>ActionReasonGacha = 30;</code> - */ - ActionReasonGacha(30), - /** - * <code>ActionReasonCombine = 31;</code> - */ - ActionReasonCombine(31), - /** - * <code>ActionReasonRandTaskGuest = 32;</code> - */ - ActionReasonRandTaskGuest(32), - /** - * <code>ActionReasonDailyTaskGuest = 33;</code> - */ - ActionReasonDailyTaskGuest(33), - /** - * <code>ActionReasonForgeOutput = 34;</code> - */ - ActionReasonForgeOutput(34), - /** - * <code>ActionReasonForgeReturn = 35;</code> - */ - ActionReasonForgeReturn(35), - /** - * <code>ActionReasonInitAvatar = 36;</code> - */ - ActionReasonInitAvatar(36), - /** - * <code>ActionReasonMonsterDie = 37;</code> - */ - ActionReasonMonsterDie(37), - /** - * <code>ActionReasonGm = 38;</code> - */ - ActionReasonGm(38), - /** - * <code>ActionReasonOpenChest = 39;</code> - */ - ActionReasonOpenChest(39), - /** - * <code>ActionReasonGadgetDie = 40;</code> - */ - ActionReasonGadgetDie(40), - /** - * <code>ActionReasonMonsterChangeHp = 41;</code> - */ - ActionReasonMonsterChangeHp(41), - /** - * <code>ActionReasonSubfieldDrop = 42;</code> - */ - ActionReasonSubfieldDrop(42), - /** - * <code>ActionReasonPushTipsReward = 43;</code> - */ - ActionReasonPushTipsReward(43), - /** - * <code>ActionReasonActivityMonsterDrop = 44;</code> - */ - ActionReasonActivityMonsterDrop(44), - /** - * <code>ActionReasonActivityGather = 45;</code> - */ - ActionReasonActivityGather(45), - /** - * <code>ActionReasonActivitySubfieldDrop = 46;</code> - */ - ActionReasonActivitySubfieldDrop(46), - /** - * <code>ActionReasonTowerScheduleReward = 47;</code> - */ - ActionReasonTowerScheduleReward(47), - /** - * <code>ActionReasonTowerFloorStarReward = 48;</code> - */ - ActionReasonTowerFloorStarReward(48), - /** - * <code>ActionReasonTowerFirstPassReward = 49;</code> - */ - ActionReasonTowerFirstPassReward(49), - /** - * <code>ActionReasonTowerDailyReward = 50;</code> - */ - ActionReasonTowerDailyReward(50), - /** - * <code>ActionReasonHitClientTrivialEntity = 51;</code> - */ - ActionReasonHitClientTrivialEntity(51), - /** - * <code>ActionReasonOpenWorldBossChest = 52;</code> - */ - ActionReasonOpenWorldBossChest(52), - /** - * <code>ActionReasonMaterialDeleteReturn = 53;</code> - */ - ActionReasonMaterialDeleteReturn(53), - /** - * <code>ActionReasonSignInReward = 54;</code> - */ - ActionReasonSignInReward(54), - /** - * <code>ActionReasonOpenBlossomChest = 55;</code> - */ - ActionReasonOpenBlossomChest(55), - /** - * <code>ActionReasonRecharge = 56;</code> - */ - ActionReasonRecharge(56), - /** - * <code>ActionReasonBonusActivityReward = 57;</code> - */ - ActionReasonBonusActivityReward(57), - /** - * <code>ActionReasonTowerCommemorativeReward = 58;</code> - */ - ActionReasonTowerCommemorativeReward(58), - /** - * <code>ActionReasonTowerSkipFloorReward = 59;</code> - */ - ActionReasonTowerSkipFloorReward(59), - /** - * <code>ActionReasonRechargeBonus = 60;</code> - */ - ActionReasonRechargeBonus(60), - /** - * <code>ActionReasonRechargeCard = 61;</code> - */ - ActionReasonRechargeCard(61), - /** - * <code>ActionReasonRechargeCardDaily = 62;</code> - */ - ActionReasonRechargeCardDaily(62), - /** - * <code>ActionReasonRechargeCardReplace = 63;</code> - */ - ActionReasonRechargeCardReplace(63), - /** - * <code>ActionReasonRechargeCardReplaceFree = 64;</code> - */ - ActionReasonRechargeCardReplaceFree(64), - /** - * <code>ActionReasonRechargePlayReplace = 65;</code> - */ - ActionReasonRechargePlayReplace(65), - /** - * <code>ActionReasonMpPlayTakeReward = 66;</code> - */ - ActionReasonMpPlayTakeReward(66), - /** - * <code>ActionReasonActivityWatcher = 67;</code> - */ - ActionReasonActivityWatcher(67), - /** - * <code>ActionReasonSalesmanDeliverItem = 68;</code> - */ - ActionReasonSalesmanDeliverItem(68), - /** - * <code>ActionReasonSalesmanReward = 69;</code> - */ - ActionReasonSalesmanReward(69), - /** - * <code>ActionReasonRebate = 70;</code> - */ - ActionReasonRebate(70), - /** - * <code>ActionReasonMcoinExchangeHcoin = 71;</code> - */ - ActionReasonMcoinExchangeHcoin(71), - /** - * <code>ActionReasonDailyTaskExchangeLegendaryKey = 72;</code> - */ - ActionReasonDailyTaskExchangeLegendaryKey(72), - /** - * <code>ActionReasonUnlockPersonLine = 73;</code> - */ - ActionReasonUnlockPersonLine(73), - /** - * <code>ActionReasonFetterLevelReward = 74;</code> - */ - ActionReasonFetterLevelReward(74), - /** - * <code>ActionReasonBuyResin = 75;</code> - */ - ActionReasonBuyResin(75), - /** - * <code>ActionReasonRechargePackage = 76;</code> - */ - ActionReasonRechargePackage(76), - /** - * <code>ActionReasonDeliveryDailyReward = 77;</code> - */ - ActionReasonDeliveryDailyReward(77), - /** - * <code>ActionReasonCityReputationLevel = 78;</code> - */ - ActionReasonCityReputationLevel(78), - /** - * <code>ActionReasonCityReputationQuest = 79;</code> - */ - ActionReasonCityReputationQuest(79), - /** - * <code>ActionReasonCityReputationRequest = 80;</code> - */ - ActionReasonCityReputationRequest(80), - /** - * <code>ActionReasonCityReputationExplore = 81;</code> - */ - ActionReasonCityReputationExplore(81), - /** - * <code>ActionReasonOffergingLevel = 82;</code> - */ - ActionReasonOffergingLevel(82), - /** - * <code>ActionReasonRoutineHost = 83;</code> - */ - ActionReasonRoutineHost(83), - /** - * <code>ActionReasonRoutineGuest = 84;</code> - */ - ActionReasonRoutineGuest(84), - /** - * <code>ActionReasonTreasureMapSpotToken = 89;</code> - */ - ActionReasonTreasureMapSpotToken(89), - /** - * <code>ActionReasonTreasureMapBonusLevelReward = 90;</code> - */ - ActionReasonTreasureMapBonusLevelReward(90), - /** - * <code>ActionReasonTreasureMapMpReward = 91;</code> - */ - ActionReasonTreasureMapMpReward(91), - /** - * <code>ActionReasonConvert = 92;</code> - */ - ActionReasonConvert(92), - /** - * <code>ActionReasonOverflowTransform = 93;</code> - */ - ActionReasonOverflowTransform(93), - /** - * <code>ActionReasonActivityAvatarSelectionReward = 96;</code> - */ - ActionReasonActivityAvatarSelectionReward(96), - /** - * <code>ActionReasonActivityWatcherBatch = 97;</code> - */ - ActionReasonActivityWatcherBatch(97), - /** - * <code>ActionReasonHitTreeDrop = 98;</code> - */ - ActionReasonHitTreeDrop(98), - /** - * <code>ActionReasonGetHomeLevelupReward = 99;</code> - */ - ActionReasonGetHomeLevelupReward(99), - /** - * <code>ActionReasonHomeDefaultFurniture = 100;</code> - */ - ActionReasonHomeDefaultFurniture(100), - /** - * <code>ActionReasonActivityCond = 101;</code> - */ - ActionReasonActivityCond(101), - /** - * <code>ActionReasonBattlePassNotify = 102;</code> - */ - ActionReasonBattlePassNotify(102), - /** - * <code>ActionReasonPlayerUseItem = 1001;</code> - */ - ActionReasonPlayerUseItem(1001), - /** - * <code>ActionReasonDropItem = 1002;</code> - */ - ActionReasonDropItem(1002), - /** - * <code>ActionReasonWeaponUpgrade = 1011;</code> - */ - ActionReasonWeaponUpgrade(1011), - /** - * <code>ActionReasonWeaponPromote = 1012;</code> - */ - ActionReasonWeaponPromote(1012), - /** - * <code>ActionReasonWeaponAwaken = 1013;</code> - */ - ActionReasonWeaponAwaken(1013), - /** - * <code>ActionReasonRelicUpgrade = 1014;</code> - */ - ActionReasonRelicUpgrade(1014), - /** - * <code>ActionReasonAbility = 1015;</code> - */ - ActionReasonAbility(1015), - /** - * <code>ActionReasonDungeonStatueDrop = 1016;</code> - */ - ActionReasonDungeonStatueDrop(1016), - /** - * <code>ActionReasonOfflineMsg = 1017;</code> - */ - ActionReasonOfflineMsg(1017), - /** - * <code>ActionReasonAvatarUpgrade = 1018;</code> - */ - ActionReasonAvatarUpgrade(1018), - /** - * <code>ActionReasonAvatarPromote = 1019;</code> - */ - ActionReasonAvatarPromote(1019), - /** - * <code>ActionReasonQuestAction = 1021;</code> - */ - ActionReasonQuestAction(1021), - /** - * <code>ActionReasonCityLevelup = 1022;</code> - */ - ActionReasonCityLevelup(1022), - /** - * <code>ActionReasonUpgradeSkill = 1024;</code> - */ - ActionReasonUpgradeSkill(1024), - /** - * <code>ActionReasonUnlockTalent = 1025;</code> - */ - ActionReasonUnlockTalent(1025), - /** - * <code>ActionReasonUpgradeProudSkill = 1026;</code> - */ - ActionReasonUpgradeProudSkill(1026), - /** - * <code>ActionReasonPlayerLevelLimitUp = 1027;</code> - */ - ActionReasonPlayerLevelLimitUp(1027), - /** - * <code>ActionReasonDungeonDaily = 1028;</code> - */ - ActionReasonDungeonDaily(1028), - /** - * <code>ActionReasonItemGiving = 1030;</code> - */ - ActionReasonItemGiving(1030), - /** - * <code>ActionReasonForgeCost = 1031;</code> - */ - ActionReasonForgeCost(1031), - /** - * <code>ActionReasonInvestigationReward = 1032;</code> - */ - ActionReasonInvestigationReward(1032), - /** - * <code>ActionReasonInvestigationTargetReward = 1033;</code> - */ - ActionReasonInvestigationTargetReward(1033), - /** - * <code>ActionReasonGadgetInteract = 1034;</code> - */ - ActionReasonGadgetInteract(1034), - /** - * <code>ActionReasonSeaLampCiMaterial = 1036;</code> - */ - ActionReasonSeaLampCiMaterial(1036), - /** - * <code>ActionReasonSeaLampContributionReward = 1037;</code> - */ - ActionReasonSeaLampContributionReward(1037), - /** - * <code>ActionReasonSeaLampPhaseReward = 1038;</code> - */ - ActionReasonSeaLampPhaseReward(1038), - /** - * <code>ActionReasonSeaLampFlyLamp = 1039;</code> - */ - ActionReasonSeaLampFlyLamp(1039), - /** - * <code>ActionReasonAutoRecover = 1040;</code> - */ - ActionReasonAutoRecover(1040), - /** - * <code>ActionReasonActivityExpireItem = 1041;</code> - */ - ActionReasonActivityExpireItem(1041), - /** - * <code>ActionReasonSubCoinNegative = 1042;</code> - */ - ActionReasonSubCoinNegative(1042), - /** - * <code>ActionReasonBargainDeduct = 1043;</code> - */ - ActionReasonBargainDeduct(1043), - /** - * <code>ActionReasonBattlePassPaidReward = 1044;</code> - */ - ActionReasonBattlePassPaidReward(1044), - /** - * <code>ActionReasonBattlePassLevelReward = 1045;</code> - */ - ActionReasonBattlePassLevelReward(1045), - /** - * <code>ActionReasonTrialAvatarActivityFirstPassReward = 1046;</code> - */ - ActionReasonTrialAvatarActivityFirstPassReward(1046), - /** - * <code>ActionReasonBuyBattlePassLevel = 1047;</code> - */ - ActionReasonBuyBattlePassLevel(1047), - /** - * <code>ActionReasonGrantBirthdayBenefit = 1048;</code> - */ - ActionReasonGrantBirthdayBenefit(1048), - /** - * <code>ActionReasonAchievementReward = 1049;</code> - */ - ActionReasonAchievementReward(1049), - /** - * <code>ActionReasonAchievementGoalReward = 1050;</code> - */ - ActionReasonAchievementGoalReward(1050), - /** - * <code>ActionReasonFirstShareToSocialNetwork = 1051;</code> - */ - ActionReasonFirstShareToSocialNetwork(1051), - /** - * <code>ActionReasonDestroyMaterial = 1052;</code> - */ - ActionReasonDestroyMaterial(1052), - /** - * <code>ActionReasonCodexLevelupReward = 1053;</code> - */ - ActionReasonCodexLevelupReward(1053), - /** - * <code>ActionReasonHuntingOfferReward = 1054;</code> - */ - ActionReasonHuntingOfferReward(1054), - /** - * <code>ActionReasonUseWidgetAnchorPoint = 1055;</code> - */ - ActionReasonUseWidgetAnchorPoint(1055), - /** - * <code>ActionReasonUseWidgetBonfire = 1056;</code> - */ - ActionReasonUseWidgetBonfire(1056), - /** - * <code>ActionReasonUngradeWeaponReturnMaterial = 1057;</code> - */ - ActionReasonUngradeWeaponReturnMaterial(1057), - /** - * <code>ActionReasonUseWidgetOneoffGatherPointDetector = 1058;</code> - */ - ActionReasonUseWidgetOneoffGatherPointDetector(1058), - /** - * <code>ActionReasonUseWidgetClientCollector = 1059;</code> - */ - ActionReasonUseWidgetClientCollector(1059), - /** - * <code>ActionReasonUseWidgetClientDetector = 1060;</code> - */ - ActionReasonUseWidgetClientDetector(1060), - /** - * <code>ActionReasonTakeGeneralReward = 1061;</code> - */ - ActionReasonTakeGeneralReward(1061), - /** - * <code>ActionReasonAsterTakeSpecialReward = 1062;</code> - */ - ActionReasonAsterTakeSpecialReward(1062), - /** - * <code>ActionReasonRemoveCodexBook = 1063;</code> - */ - ActionReasonRemoveCodexBook(1063), - /** - * <code>ActionReasonOfferingItem = 1064;</code> - */ - ActionReasonOfferingItem(1064), - /** - * <code>ActionReasonUseWidgetGadgetBuilder = 1065;</code> - */ - ActionReasonUseWidgetGadgetBuilder(1065), - /** - * <code>ActionReasonEffigyFirstPassReward = 1066;</code> - */ - ActionReasonEffigyFirstPassReward(1066), - /** - * <code>ActionReasonEffigyReward = 1067;</code> - */ - ActionReasonEffigyReward(1067), - /** - * <code>ActionReasonReunionFirstGiftReward = 1068;</code> - */ - ActionReasonReunionFirstGiftReward(1068), - /** - * <code>ActionReasonReunionSignInReward = 1069;</code> - */ - ActionReasonReunionSignInReward(1069), - /** - * <code>ActionReasonReunionWatcherReward = 1070;</code> - */ - ActionReasonReunionWatcherReward(1070), - /** - * <code>ActionReasonSalesmanMpReward = 1071;</code> - */ - ActionReasonSalesmanMpReward(1071), - /** - * <code>ActionReasionAvatarPromoteReward = 1072;</code> - */ - ActionReasionAvatarPromoteReward(1072), - /** - * <code>ActionReasonBlessingRedeemReward = 1073;</code> - */ - ActionReasonBlessingRedeemReward(1073), - /** - * <code>ActionMiracleRingReward = 1074;</code> - */ - ActionMiracleRingReward(1074), - /** - * <code>ActionReasonExpeditionReward = 1075;</code> - */ - ActionReasonExpeditionReward(1075), - /** - * <code>ActionReasonTreasureMapRemoveDetector = 1076;</code> - */ - ActionReasonTreasureMapRemoveDetector(1076), - /** - * <code>ActionReasonMechanicusDungeonTicket = 1077;</code> - */ - ActionReasonMechanicusDungeonTicket(1077), - /** - * <code>ActionReasonMechanicusLevelupGear = 1078;</code> - */ - ActionReasonMechanicusLevelupGear(1078), - /** - * <code>ActionReasonMechanicusBattleSettle = 1079;</code> - */ - ActionReasonMechanicusBattleSettle(1079), - /** - * <code>ActionReasonRegionSearchReward = 1080;</code> - */ - ActionReasonRegionSearchReward(1080), - /** - * <code>ActionReasonUnlockCoopChapter = 1081;</code> - */ - ActionReasonUnlockCoopChapter(1081), - /** - * <code>ActionReasonTakeCoopReward = 1082;</code> - */ - ActionReasonTakeCoopReward(1082), - /** - * <code>ActionReasonFleurFairDungeonReward = 1083;</code> - */ - ActionReasonFleurFairDungeonReward(1083), - /** - * <code>ActionReasonActivityScore = 1084;</code> - */ - ActionReasonActivityScore(1084), - /** - * <code>ActionReasonChannellerSlabOneoffDungeonReward = 1085;</code> - */ - ActionReasonChannellerSlabOneoffDungeonReward(1085), - /** - * <code>ActionReasonFurnitureMakeStart = 1086;</code> - */ - ActionReasonFurnitureMakeStart(1086), - /** - * <code>ActionReasonFurnitureMakeTake = 1087;</code> - */ - ActionReasonFurnitureMakeTake(1087), - /** - * <code>ActionReasonFurnitureMakeCancel = 1088;</code> - */ - ActionReasonFurnitureMakeCancel(1088), - /** - * <code>ActionReasonFurnitureMakeFastFinish = 1089;</code> - */ - ActionReasonFurnitureMakeFastFinish(1089), - /** - * <code>ActionReasonChannellerSlabLoopDungeonFirstPassReward = 1090;</code> - */ - ActionReasonChannellerSlabLoopDungeonFirstPassReward(1090), - /** - * <code>ActionReasonChannellerSlabLoopDungeonScoreReward = 1091;</code> - */ - ActionReasonChannellerSlabLoopDungeonScoreReward(1091), - /** - * <code>ActionReasonHomeLimitedShopBuy = 1092;</code> - */ - ActionReasonHomeLimitedShopBuy(1092), - /** - * <code>ActionReasonHomeCoinCollect = 1093;</code> - */ - ActionReasonHomeCoinCollect(1093), - UNRECOGNIZED(-1), - ; - - /** - * <code>ActionReasonNone = 0;</code> - */ - public static final int ActionReasonNone_VALUE = 0; - /** - * <code>ActionReasonQuestItem = 1;</code> - */ - public static final int ActionReasonQuestItem_VALUE = 1; - /** - * <code>ActionReasonQuestReward = 2;</code> - */ - public static final int ActionReasonQuestReward_VALUE = 2; - /** - * <code>ActionReasonTrifle = 3;</code> - */ - public static final int ActionReasonTrifle_VALUE = 3; - /** - * <code>ActionReasonShop = 4;</code> - */ - public static final int ActionReasonShop_VALUE = 4; - /** - * <code>ActionReasonPlayerUpgradeReward = 5;</code> - */ - public static final int ActionReasonPlayerUpgradeReward_VALUE = 5; - /** - * <code>ActionReasonAddAvatar = 6;</code> - */ - public static final int ActionReasonAddAvatar_VALUE = 6; - /** - * <code>ActionReasonGadgetEnvAnimal = 7;</code> - */ - public static final int ActionReasonGadgetEnvAnimal_VALUE = 7; - /** - * <code>ActionReasonMonsterEnvAnimal = 8;</code> - */ - public static final int ActionReasonMonsterEnvAnimal_VALUE = 8; - /** - * <code>ActionReasonCompound = 9;</code> - */ - public static final int ActionReasonCompound_VALUE = 9; - /** - * <code>ActionReasonCook = 10;</code> - */ - public static final int ActionReasonCook_VALUE = 10; - /** - * <code>ActionReasonGather = 11;</code> - */ - public static final int ActionReasonGather_VALUE = 11; - /** - * <code>ActionReasonMailAttachment = 12;</code> - */ - public static final int ActionReasonMailAttachment_VALUE = 12; - /** - * <code>ActionReasonCityLevelupReturn = 15;</code> - */ - public static final int ActionReasonCityLevelupReturn_VALUE = 15; - /** - * <code>ActionReasonCityLevelupReward = 17;</code> - */ - public static final int ActionReasonCityLevelupReward_VALUE = 17; - /** - * <code>ActionReasonAreaExploreReward = 18;</code> - */ - public static final int ActionReasonAreaExploreReward_VALUE = 18; - /** - * <code>ActionReasonUnlockPointReward = 19;</code> - */ - public static final int ActionReasonUnlockPointReward_VALUE = 19; - /** - * <code>ActionReasonDungeonFirstPass = 20;</code> - */ - public static final int ActionReasonDungeonFirstPass_VALUE = 20; - /** - * <code>ActionReasonDungeonPass = 21;</code> - */ - public static final int ActionReasonDungeonPass_VALUE = 21; - /** - * <code>ActionReasonChangeElemType = 23;</code> - */ - public static final int ActionReasonChangeElemType_VALUE = 23; - /** - * <code>ActionReasonFetterOpen = 25;</code> - */ - public static final int ActionReasonFetterOpen_VALUE = 25; - /** - * <code>ActionReasonDailyTaskScore = 26;</code> - */ - public static final int ActionReasonDailyTaskScore_VALUE = 26; - /** - * <code>ActionReasonDailyTaskHost = 27;</code> - */ - public static final int ActionReasonDailyTaskHost_VALUE = 27; - /** - * <code>ActionReasonRandTaskHost = 28;</code> - */ - public static final int ActionReasonRandTaskHost_VALUE = 28; - /** - * <code>ActionReasonExpedition = 29;</code> - */ - public static final int ActionReasonExpedition_VALUE = 29; - /** - * <code>ActionReasonGacha = 30;</code> - */ - public static final int ActionReasonGacha_VALUE = 30; - /** - * <code>ActionReasonCombine = 31;</code> - */ - public static final int ActionReasonCombine_VALUE = 31; - /** - * <code>ActionReasonRandTaskGuest = 32;</code> - */ - public static final int ActionReasonRandTaskGuest_VALUE = 32; - /** - * <code>ActionReasonDailyTaskGuest = 33;</code> - */ - public static final int ActionReasonDailyTaskGuest_VALUE = 33; - /** - * <code>ActionReasonForgeOutput = 34;</code> - */ - public static final int ActionReasonForgeOutput_VALUE = 34; - /** - * <code>ActionReasonForgeReturn = 35;</code> - */ - public static final int ActionReasonForgeReturn_VALUE = 35; - /** - * <code>ActionReasonInitAvatar = 36;</code> - */ - public static final int ActionReasonInitAvatar_VALUE = 36; - /** - * <code>ActionReasonMonsterDie = 37;</code> - */ - public static final int ActionReasonMonsterDie_VALUE = 37; - /** - * <code>ActionReasonGm = 38;</code> - */ - public static final int ActionReasonGm_VALUE = 38; - /** - * <code>ActionReasonOpenChest = 39;</code> - */ - public static final int ActionReasonOpenChest_VALUE = 39; - /** - * <code>ActionReasonGadgetDie = 40;</code> - */ - public static final int ActionReasonGadgetDie_VALUE = 40; - /** - * <code>ActionReasonMonsterChangeHp = 41;</code> - */ - public static final int ActionReasonMonsterChangeHp_VALUE = 41; - /** - * <code>ActionReasonSubfieldDrop = 42;</code> - */ - public static final int ActionReasonSubfieldDrop_VALUE = 42; - /** - * <code>ActionReasonPushTipsReward = 43;</code> - */ - public static final int ActionReasonPushTipsReward_VALUE = 43; - /** - * <code>ActionReasonActivityMonsterDrop = 44;</code> - */ - public static final int ActionReasonActivityMonsterDrop_VALUE = 44; - /** - * <code>ActionReasonActivityGather = 45;</code> - */ - public static final int ActionReasonActivityGather_VALUE = 45; - /** - * <code>ActionReasonActivitySubfieldDrop = 46;</code> - */ - public static final int ActionReasonActivitySubfieldDrop_VALUE = 46; - /** - * <code>ActionReasonTowerScheduleReward = 47;</code> - */ - public static final int ActionReasonTowerScheduleReward_VALUE = 47; - /** - * <code>ActionReasonTowerFloorStarReward = 48;</code> - */ - public static final int ActionReasonTowerFloorStarReward_VALUE = 48; - /** - * <code>ActionReasonTowerFirstPassReward = 49;</code> - */ - public static final int ActionReasonTowerFirstPassReward_VALUE = 49; - /** - * <code>ActionReasonTowerDailyReward = 50;</code> - */ - public static final int ActionReasonTowerDailyReward_VALUE = 50; - /** - * <code>ActionReasonHitClientTrivialEntity = 51;</code> - */ - public static final int ActionReasonHitClientTrivialEntity_VALUE = 51; - /** - * <code>ActionReasonOpenWorldBossChest = 52;</code> - */ - public static final int ActionReasonOpenWorldBossChest_VALUE = 52; - /** - * <code>ActionReasonMaterialDeleteReturn = 53;</code> - */ - public static final int ActionReasonMaterialDeleteReturn_VALUE = 53; - /** - * <code>ActionReasonSignInReward = 54;</code> - */ - public static final int ActionReasonSignInReward_VALUE = 54; - /** - * <code>ActionReasonOpenBlossomChest = 55;</code> - */ - public static final int ActionReasonOpenBlossomChest_VALUE = 55; - /** - * <code>ActionReasonRecharge = 56;</code> - */ - public static final int ActionReasonRecharge_VALUE = 56; - /** - * <code>ActionReasonBonusActivityReward = 57;</code> - */ - public static final int ActionReasonBonusActivityReward_VALUE = 57; - /** - * <code>ActionReasonTowerCommemorativeReward = 58;</code> - */ - public static final int ActionReasonTowerCommemorativeReward_VALUE = 58; - /** - * <code>ActionReasonTowerSkipFloorReward = 59;</code> - */ - public static final int ActionReasonTowerSkipFloorReward_VALUE = 59; - /** - * <code>ActionReasonRechargeBonus = 60;</code> - */ - public static final int ActionReasonRechargeBonus_VALUE = 60; - /** - * <code>ActionReasonRechargeCard = 61;</code> - */ - public static final int ActionReasonRechargeCard_VALUE = 61; - /** - * <code>ActionReasonRechargeCardDaily = 62;</code> - */ - public static final int ActionReasonRechargeCardDaily_VALUE = 62; - /** - * <code>ActionReasonRechargeCardReplace = 63;</code> - */ - public static final int ActionReasonRechargeCardReplace_VALUE = 63; - /** - * <code>ActionReasonRechargeCardReplaceFree = 64;</code> - */ - public static final int ActionReasonRechargeCardReplaceFree_VALUE = 64; - /** - * <code>ActionReasonRechargePlayReplace = 65;</code> - */ - public static final int ActionReasonRechargePlayReplace_VALUE = 65; - /** - * <code>ActionReasonMpPlayTakeReward = 66;</code> - */ - public static final int ActionReasonMpPlayTakeReward_VALUE = 66; - /** - * <code>ActionReasonActivityWatcher = 67;</code> - */ - public static final int ActionReasonActivityWatcher_VALUE = 67; - /** - * <code>ActionReasonSalesmanDeliverItem = 68;</code> - */ - public static final int ActionReasonSalesmanDeliverItem_VALUE = 68; - /** - * <code>ActionReasonSalesmanReward = 69;</code> - */ - public static final int ActionReasonSalesmanReward_VALUE = 69; - /** - * <code>ActionReasonRebate = 70;</code> - */ - public static final int ActionReasonRebate_VALUE = 70; - /** - * <code>ActionReasonMcoinExchangeHcoin = 71;</code> - */ - public static final int ActionReasonMcoinExchangeHcoin_VALUE = 71; - /** - * <code>ActionReasonDailyTaskExchangeLegendaryKey = 72;</code> - */ - public static final int ActionReasonDailyTaskExchangeLegendaryKey_VALUE = 72; - /** - * <code>ActionReasonUnlockPersonLine = 73;</code> - */ - public static final int ActionReasonUnlockPersonLine_VALUE = 73; - /** - * <code>ActionReasonFetterLevelReward = 74;</code> - */ - public static final int ActionReasonFetterLevelReward_VALUE = 74; - /** - * <code>ActionReasonBuyResin = 75;</code> - */ - public static final int ActionReasonBuyResin_VALUE = 75; - /** - * <code>ActionReasonRechargePackage = 76;</code> - */ - public static final int ActionReasonRechargePackage_VALUE = 76; - /** - * <code>ActionReasonDeliveryDailyReward = 77;</code> - */ - public static final int ActionReasonDeliveryDailyReward_VALUE = 77; - /** - * <code>ActionReasonCityReputationLevel = 78;</code> - */ - public static final int ActionReasonCityReputationLevel_VALUE = 78; - /** - * <code>ActionReasonCityReputationQuest = 79;</code> - */ - public static final int ActionReasonCityReputationQuest_VALUE = 79; - /** - * <code>ActionReasonCityReputationRequest = 80;</code> - */ - public static final int ActionReasonCityReputationRequest_VALUE = 80; - /** - * <code>ActionReasonCityReputationExplore = 81;</code> - */ - public static final int ActionReasonCityReputationExplore_VALUE = 81; - /** - * <code>ActionReasonOffergingLevel = 82;</code> - */ - public static final int ActionReasonOffergingLevel_VALUE = 82; - /** - * <code>ActionReasonRoutineHost = 83;</code> - */ - public static final int ActionReasonRoutineHost_VALUE = 83; - /** - * <code>ActionReasonRoutineGuest = 84;</code> - */ - public static final int ActionReasonRoutineGuest_VALUE = 84; - /** - * <code>ActionReasonTreasureMapSpotToken = 89;</code> - */ - public static final int ActionReasonTreasureMapSpotToken_VALUE = 89; - /** - * <code>ActionReasonTreasureMapBonusLevelReward = 90;</code> - */ - public static final int ActionReasonTreasureMapBonusLevelReward_VALUE = 90; - /** - * <code>ActionReasonTreasureMapMpReward = 91;</code> - */ - public static final int ActionReasonTreasureMapMpReward_VALUE = 91; - /** - * <code>ActionReasonConvert = 92;</code> - */ - public static final int ActionReasonConvert_VALUE = 92; - /** - * <code>ActionReasonOverflowTransform = 93;</code> - */ - public static final int ActionReasonOverflowTransform_VALUE = 93; - /** - * <code>ActionReasonActivityAvatarSelectionReward = 96;</code> - */ - public static final int ActionReasonActivityAvatarSelectionReward_VALUE = 96; - /** - * <code>ActionReasonActivityWatcherBatch = 97;</code> - */ - public static final int ActionReasonActivityWatcherBatch_VALUE = 97; - /** - * <code>ActionReasonHitTreeDrop = 98;</code> - */ - public static final int ActionReasonHitTreeDrop_VALUE = 98; - /** - * <code>ActionReasonGetHomeLevelupReward = 99;</code> - */ - public static final int ActionReasonGetHomeLevelupReward_VALUE = 99; - /** - * <code>ActionReasonHomeDefaultFurniture = 100;</code> - */ - public static final int ActionReasonHomeDefaultFurniture_VALUE = 100; - /** - * <code>ActionReasonActivityCond = 101;</code> - */ - public static final int ActionReasonActivityCond_VALUE = 101; - /** - * <code>ActionReasonBattlePassNotify = 102;</code> - */ - public static final int ActionReasonBattlePassNotify_VALUE = 102; - /** - * <code>ActionReasonPlayerUseItem = 1001;</code> - */ - public static final int ActionReasonPlayerUseItem_VALUE = 1001; - /** - * <code>ActionReasonDropItem = 1002;</code> - */ - public static final int ActionReasonDropItem_VALUE = 1002; - /** - * <code>ActionReasonWeaponUpgrade = 1011;</code> - */ - public static final int ActionReasonWeaponUpgrade_VALUE = 1011; - /** - * <code>ActionReasonWeaponPromote = 1012;</code> - */ - public static final int ActionReasonWeaponPromote_VALUE = 1012; - /** - * <code>ActionReasonWeaponAwaken = 1013;</code> - */ - public static final int ActionReasonWeaponAwaken_VALUE = 1013; - /** - * <code>ActionReasonRelicUpgrade = 1014;</code> - */ - public static final int ActionReasonRelicUpgrade_VALUE = 1014; - /** - * <code>ActionReasonAbility = 1015;</code> - */ - public static final int ActionReasonAbility_VALUE = 1015; - /** - * <code>ActionReasonDungeonStatueDrop = 1016;</code> - */ - public static final int ActionReasonDungeonStatueDrop_VALUE = 1016; - /** - * <code>ActionReasonOfflineMsg = 1017;</code> - */ - public static final int ActionReasonOfflineMsg_VALUE = 1017; - /** - * <code>ActionReasonAvatarUpgrade = 1018;</code> - */ - public static final int ActionReasonAvatarUpgrade_VALUE = 1018; - /** - * <code>ActionReasonAvatarPromote = 1019;</code> - */ - public static final int ActionReasonAvatarPromote_VALUE = 1019; - /** - * <code>ActionReasonQuestAction = 1021;</code> - */ - public static final int ActionReasonQuestAction_VALUE = 1021; - /** - * <code>ActionReasonCityLevelup = 1022;</code> - */ - public static final int ActionReasonCityLevelup_VALUE = 1022; - /** - * <code>ActionReasonUpgradeSkill = 1024;</code> - */ - public static final int ActionReasonUpgradeSkill_VALUE = 1024; - /** - * <code>ActionReasonUnlockTalent = 1025;</code> - */ - public static final int ActionReasonUnlockTalent_VALUE = 1025; - /** - * <code>ActionReasonUpgradeProudSkill = 1026;</code> - */ - public static final int ActionReasonUpgradeProudSkill_VALUE = 1026; - /** - * <code>ActionReasonPlayerLevelLimitUp = 1027;</code> - */ - public static final int ActionReasonPlayerLevelLimitUp_VALUE = 1027; - /** - * <code>ActionReasonDungeonDaily = 1028;</code> - */ - public static final int ActionReasonDungeonDaily_VALUE = 1028; - /** - * <code>ActionReasonItemGiving = 1030;</code> - */ - public static final int ActionReasonItemGiving_VALUE = 1030; - /** - * <code>ActionReasonForgeCost = 1031;</code> - */ - public static final int ActionReasonForgeCost_VALUE = 1031; - /** - * <code>ActionReasonInvestigationReward = 1032;</code> - */ - public static final int ActionReasonInvestigationReward_VALUE = 1032; - /** - * <code>ActionReasonInvestigationTargetReward = 1033;</code> - */ - public static final int ActionReasonInvestigationTargetReward_VALUE = 1033; - /** - * <code>ActionReasonGadgetInteract = 1034;</code> - */ - public static final int ActionReasonGadgetInteract_VALUE = 1034; - /** - * <code>ActionReasonSeaLampCiMaterial = 1036;</code> - */ - public static final int ActionReasonSeaLampCiMaterial_VALUE = 1036; - /** - * <code>ActionReasonSeaLampContributionReward = 1037;</code> - */ - public static final int ActionReasonSeaLampContributionReward_VALUE = 1037; - /** - * <code>ActionReasonSeaLampPhaseReward = 1038;</code> - */ - public static final int ActionReasonSeaLampPhaseReward_VALUE = 1038; - /** - * <code>ActionReasonSeaLampFlyLamp = 1039;</code> - */ - public static final int ActionReasonSeaLampFlyLamp_VALUE = 1039; - /** - * <code>ActionReasonAutoRecover = 1040;</code> - */ - public static final int ActionReasonAutoRecover_VALUE = 1040; - /** - * <code>ActionReasonActivityExpireItem = 1041;</code> - */ - public static final int ActionReasonActivityExpireItem_VALUE = 1041; - /** - * <code>ActionReasonSubCoinNegative = 1042;</code> - */ - public static final int ActionReasonSubCoinNegative_VALUE = 1042; - /** - * <code>ActionReasonBargainDeduct = 1043;</code> - */ - public static final int ActionReasonBargainDeduct_VALUE = 1043; - /** - * <code>ActionReasonBattlePassPaidReward = 1044;</code> - */ - public static final int ActionReasonBattlePassPaidReward_VALUE = 1044; - /** - * <code>ActionReasonBattlePassLevelReward = 1045;</code> - */ - public static final int ActionReasonBattlePassLevelReward_VALUE = 1045; - /** - * <code>ActionReasonTrialAvatarActivityFirstPassReward = 1046;</code> - */ - public static final int ActionReasonTrialAvatarActivityFirstPassReward_VALUE = 1046; - /** - * <code>ActionReasonBuyBattlePassLevel = 1047;</code> - */ - public static final int ActionReasonBuyBattlePassLevel_VALUE = 1047; - /** - * <code>ActionReasonGrantBirthdayBenefit = 1048;</code> - */ - public static final int ActionReasonGrantBirthdayBenefit_VALUE = 1048; - /** - * <code>ActionReasonAchievementReward = 1049;</code> - */ - public static final int ActionReasonAchievementReward_VALUE = 1049; - /** - * <code>ActionReasonAchievementGoalReward = 1050;</code> - */ - public static final int ActionReasonAchievementGoalReward_VALUE = 1050; - /** - * <code>ActionReasonFirstShareToSocialNetwork = 1051;</code> - */ - public static final int ActionReasonFirstShareToSocialNetwork_VALUE = 1051; - /** - * <code>ActionReasonDestroyMaterial = 1052;</code> - */ - public static final int ActionReasonDestroyMaterial_VALUE = 1052; - /** - * <code>ActionReasonCodexLevelupReward = 1053;</code> - */ - public static final int ActionReasonCodexLevelupReward_VALUE = 1053; - /** - * <code>ActionReasonHuntingOfferReward = 1054;</code> - */ - public static final int ActionReasonHuntingOfferReward_VALUE = 1054; - /** - * <code>ActionReasonUseWidgetAnchorPoint = 1055;</code> - */ - public static final int ActionReasonUseWidgetAnchorPoint_VALUE = 1055; - /** - * <code>ActionReasonUseWidgetBonfire = 1056;</code> - */ - public static final int ActionReasonUseWidgetBonfire_VALUE = 1056; - /** - * <code>ActionReasonUngradeWeaponReturnMaterial = 1057;</code> - */ - public static final int ActionReasonUngradeWeaponReturnMaterial_VALUE = 1057; - /** - * <code>ActionReasonUseWidgetOneoffGatherPointDetector = 1058;</code> - */ - public static final int ActionReasonUseWidgetOneoffGatherPointDetector_VALUE = 1058; - /** - * <code>ActionReasonUseWidgetClientCollector = 1059;</code> - */ - public static final int ActionReasonUseWidgetClientCollector_VALUE = 1059; - /** - * <code>ActionReasonUseWidgetClientDetector = 1060;</code> - */ - public static final int ActionReasonUseWidgetClientDetector_VALUE = 1060; - /** - * <code>ActionReasonTakeGeneralReward = 1061;</code> - */ - public static final int ActionReasonTakeGeneralReward_VALUE = 1061; - /** - * <code>ActionReasonAsterTakeSpecialReward = 1062;</code> - */ - public static final int ActionReasonAsterTakeSpecialReward_VALUE = 1062; - /** - * <code>ActionReasonRemoveCodexBook = 1063;</code> - */ - public static final int ActionReasonRemoveCodexBook_VALUE = 1063; - /** - * <code>ActionReasonOfferingItem = 1064;</code> - */ - public static final int ActionReasonOfferingItem_VALUE = 1064; - /** - * <code>ActionReasonUseWidgetGadgetBuilder = 1065;</code> - */ - public static final int ActionReasonUseWidgetGadgetBuilder_VALUE = 1065; - /** - * <code>ActionReasonEffigyFirstPassReward = 1066;</code> - */ - public static final int ActionReasonEffigyFirstPassReward_VALUE = 1066; - /** - * <code>ActionReasonEffigyReward = 1067;</code> - */ - public static final int ActionReasonEffigyReward_VALUE = 1067; - /** - * <code>ActionReasonReunionFirstGiftReward = 1068;</code> - */ - public static final int ActionReasonReunionFirstGiftReward_VALUE = 1068; - /** - * <code>ActionReasonReunionSignInReward = 1069;</code> - */ - public static final int ActionReasonReunionSignInReward_VALUE = 1069; - /** - * <code>ActionReasonReunionWatcherReward = 1070;</code> - */ - public static final int ActionReasonReunionWatcherReward_VALUE = 1070; - /** - * <code>ActionReasonSalesmanMpReward = 1071;</code> - */ - public static final int ActionReasonSalesmanMpReward_VALUE = 1071; - /** - * <code>ActionReasionAvatarPromoteReward = 1072;</code> - */ - public static final int ActionReasionAvatarPromoteReward_VALUE = 1072; - /** - * <code>ActionReasonBlessingRedeemReward = 1073;</code> - */ - public static final int ActionReasonBlessingRedeemReward_VALUE = 1073; - /** - * <code>ActionMiracleRingReward = 1074;</code> - */ - public static final int ActionMiracleRingReward_VALUE = 1074; - /** - * <code>ActionReasonExpeditionReward = 1075;</code> - */ - public static final int ActionReasonExpeditionReward_VALUE = 1075; - /** - * <code>ActionReasonTreasureMapRemoveDetector = 1076;</code> - */ - public static final int ActionReasonTreasureMapRemoveDetector_VALUE = 1076; - /** - * <code>ActionReasonMechanicusDungeonTicket = 1077;</code> - */ - public static final int ActionReasonMechanicusDungeonTicket_VALUE = 1077; - /** - * <code>ActionReasonMechanicusLevelupGear = 1078;</code> - */ - public static final int ActionReasonMechanicusLevelupGear_VALUE = 1078; - /** - * <code>ActionReasonMechanicusBattleSettle = 1079;</code> - */ - public static final int ActionReasonMechanicusBattleSettle_VALUE = 1079; - /** - * <code>ActionReasonRegionSearchReward = 1080;</code> - */ - public static final int ActionReasonRegionSearchReward_VALUE = 1080; - /** - * <code>ActionReasonUnlockCoopChapter = 1081;</code> - */ - public static final int ActionReasonUnlockCoopChapter_VALUE = 1081; - /** - * <code>ActionReasonTakeCoopReward = 1082;</code> - */ - public static final int ActionReasonTakeCoopReward_VALUE = 1082; - /** - * <code>ActionReasonFleurFairDungeonReward = 1083;</code> - */ - public static final int ActionReasonFleurFairDungeonReward_VALUE = 1083; - /** - * <code>ActionReasonActivityScore = 1084;</code> - */ - public static final int ActionReasonActivityScore_VALUE = 1084; - /** - * <code>ActionReasonChannellerSlabOneoffDungeonReward = 1085;</code> - */ - public static final int ActionReasonChannellerSlabOneoffDungeonReward_VALUE = 1085; - /** - * <code>ActionReasonFurnitureMakeStart = 1086;</code> - */ - public static final int ActionReasonFurnitureMakeStart_VALUE = 1086; - /** - * <code>ActionReasonFurnitureMakeTake = 1087;</code> - */ - public static final int ActionReasonFurnitureMakeTake_VALUE = 1087; - /** - * <code>ActionReasonFurnitureMakeCancel = 1088;</code> - */ - public static final int ActionReasonFurnitureMakeCancel_VALUE = 1088; - /** - * <code>ActionReasonFurnitureMakeFastFinish = 1089;</code> - */ - public static final int ActionReasonFurnitureMakeFastFinish_VALUE = 1089; - /** - * <code>ActionReasonChannellerSlabLoopDungeonFirstPassReward = 1090;</code> - */ - public static final int ActionReasonChannellerSlabLoopDungeonFirstPassReward_VALUE = 1090; - /** - * <code>ActionReasonChannellerSlabLoopDungeonScoreReward = 1091;</code> - */ - public static final int ActionReasonChannellerSlabLoopDungeonScoreReward_VALUE = 1091; - /** - * <code>ActionReasonHomeLimitedShopBuy = 1092;</code> - */ - public static final int ActionReasonHomeLimitedShopBuy_VALUE = 1092; - /** - * <code>ActionReasonHomeCoinCollect = 1093;</code> - */ - public static final int ActionReasonHomeCoinCollect_VALUE = 1093; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ActionReasonType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static ActionReasonType forNumber(int value) { - switch (value) { - case 0: return ActionReasonNone; - case 1: return ActionReasonQuestItem; - case 2: return ActionReasonQuestReward; - case 3: return ActionReasonTrifle; - case 4: return ActionReasonShop; - case 5: return ActionReasonPlayerUpgradeReward; - case 6: return ActionReasonAddAvatar; - case 7: return ActionReasonGadgetEnvAnimal; - case 8: return ActionReasonMonsterEnvAnimal; - case 9: return ActionReasonCompound; - case 10: return ActionReasonCook; - case 11: return ActionReasonGather; - case 12: return ActionReasonMailAttachment; - case 15: return ActionReasonCityLevelupReturn; - case 17: return ActionReasonCityLevelupReward; - case 18: return ActionReasonAreaExploreReward; - case 19: return ActionReasonUnlockPointReward; - case 20: return ActionReasonDungeonFirstPass; - case 21: return ActionReasonDungeonPass; - case 23: return ActionReasonChangeElemType; - case 25: return ActionReasonFetterOpen; - case 26: return ActionReasonDailyTaskScore; - case 27: return ActionReasonDailyTaskHost; - case 28: return ActionReasonRandTaskHost; - case 29: return ActionReasonExpedition; - case 30: return ActionReasonGacha; - case 31: return ActionReasonCombine; - case 32: return ActionReasonRandTaskGuest; - case 33: return ActionReasonDailyTaskGuest; - case 34: return ActionReasonForgeOutput; - case 35: return ActionReasonForgeReturn; - case 36: return ActionReasonInitAvatar; - case 37: return ActionReasonMonsterDie; - case 38: return ActionReasonGm; - case 39: return ActionReasonOpenChest; - case 40: return ActionReasonGadgetDie; - case 41: return ActionReasonMonsterChangeHp; - case 42: return ActionReasonSubfieldDrop; - case 43: return ActionReasonPushTipsReward; - case 44: return ActionReasonActivityMonsterDrop; - case 45: return ActionReasonActivityGather; - case 46: return ActionReasonActivitySubfieldDrop; - case 47: return ActionReasonTowerScheduleReward; - case 48: return ActionReasonTowerFloorStarReward; - case 49: return ActionReasonTowerFirstPassReward; - case 50: return ActionReasonTowerDailyReward; - case 51: return ActionReasonHitClientTrivialEntity; - case 52: return ActionReasonOpenWorldBossChest; - case 53: return ActionReasonMaterialDeleteReturn; - case 54: return ActionReasonSignInReward; - case 55: return ActionReasonOpenBlossomChest; - case 56: return ActionReasonRecharge; - case 57: return ActionReasonBonusActivityReward; - case 58: return ActionReasonTowerCommemorativeReward; - case 59: return ActionReasonTowerSkipFloorReward; - case 60: return ActionReasonRechargeBonus; - case 61: return ActionReasonRechargeCard; - case 62: return ActionReasonRechargeCardDaily; - case 63: return ActionReasonRechargeCardReplace; - case 64: return ActionReasonRechargeCardReplaceFree; - case 65: return ActionReasonRechargePlayReplace; - case 66: return ActionReasonMpPlayTakeReward; - case 67: return ActionReasonActivityWatcher; - case 68: return ActionReasonSalesmanDeliverItem; - case 69: return ActionReasonSalesmanReward; - case 70: return ActionReasonRebate; - case 71: return ActionReasonMcoinExchangeHcoin; - case 72: return ActionReasonDailyTaskExchangeLegendaryKey; - case 73: return ActionReasonUnlockPersonLine; - case 74: return ActionReasonFetterLevelReward; - case 75: return ActionReasonBuyResin; - case 76: return ActionReasonRechargePackage; - case 77: return ActionReasonDeliveryDailyReward; - case 78: return ActionReasonCityReputationLevel; - case 79: return ActionReasonCityReputationQuest; - case 80: return ActionReasonCityReputationRequest; - case 81: return ActionReasonCityReputationExplore; - case 82: return ActionReasonOffergingLevel; - case 83: return ActionReasonRoutineHost; - case 84: return ActionReasonRoutineGuest; - case 89: return ActionReasonTreasureMapSpotToken; - case 90: return ActionReasonTreasureMapBonusLevelReward; - case 91: return ActionReasonTreasureMapMpReward; - case 92: return ActionReasonConvert; - case 93: return ActionReasonOverflowTransform; - case 96: return ActionReasonActivityAvatarSelectionReward; - case 97: return ActionReasonActivityWatcherBatch; - case 98: return ActionReasonHitTreeDrop; - case 99: return ActionReasonGetHomeLevelupReward; - case 100: return ActionReasonHomeDefaultFurniture; - case 101: return ActionReasonActivityCond; - case 102: return ActionReasonBattlePassNotify; - case 1001: return ActionReasonPlayerUseItem; - case 1002: return ActionReasonDropItem; - case 1011: return ActionReasonWeaponUpgrade; - case 1012: return ActionReasonWeaponPromote; - case 1013: return ActionReasonWeaponAwaken; - case 1014: return ActionReasonRelicUpgrade; - case 1015: return ActionReasonAbility; - case 1016: return ActionReasonDungeonStatueDrop; - case 1017: return ActionReasonOfflineMsg; - case 1018: return ActionReasonAvatarUpgrade; - case 1019: return ActionReasonAvatarPromote; - case 1021: return ActionReasonQuestAction; - case 1022: return ActionReasonCityLevelup; - case 1024: return ActionReasonUpgradeSkill; - case 1025: return ActionReasonUnlockTalent; - case 1026: return ActionReasonUpgradeProudSkill; - case 1027: return ActionReasonPlayerLevelLimitUp; - case 1028: return ActionReasonDungeonDaily; - case 1030: return ActionReasonItemGiving; - case 1031: return ActionReasonForgeCost; - case 1032: return ActionReasonInvestigationReward; - case 1033: return ActionReasonInvestigationTargetReward; - case 1034: return ActionReasonGadgetInteract; - case 1036: return ActionReasonSeaLampCiMaterial; - case 1037: return ActionReasonSeaLampContributionReward; - case 1038: return ActionReasonSeaLampPhaseReward; - case 1039: return ActionReasonSeaLampFlyLamp; - case 1040: return ActionReasonAutoRecover; - case 1041: return ActionReasonActivityExpireItem; - case 1042: return ActionReasonSubCoinNegative; - case 1043: return ActionReasonBargainDeduct; - case 1044: return ActionReasonBattlePassPaidReward; - case 1045: return ActionReasonBattlePassLevelReward; - case 1046: return ActionReasonTrialAvatarActivityFirstPassReward; - case 1047: return ActionReasonBuyBattlePassLevel; - case 1048: return ActionReasonGrantBirthdayBenefit; - case 1049: return ActionReasonAchievementReward; - case 1050: return ActionReasonAchievementGoalReward; - case 1051: return ActionReasonFirstShareToSocialNetwork; - case 1052: return ActionReasonDestroyMaterial; - case 1053: return ActionReasonCodexLevelupReward; - case 1054: return ActionReasonHuntingOfferReward; - case 1055: return ActionReasonUseWidgetAnchorPoint; - case 1056: return ActionReasonUseWidgetBonfire; - case 1057: return ActionReasonUngradeWeaponReturnMaterial; - case 1058: return ActionReasonUseWidgetOneoffGatherPointDetector; - case 1059: return ActionReasonUseWidgetClientCollector; - case 1060: return ActionReasonUseWidgetClientDetector; - case 1061: return ActionReasonTakeGeneralReward; - case 1062: return ActionReasonAsterTakeSpecialReward; - case 1063: return ActionReasonRemoveCodexBook; - case 1064: return ActionReasonOfferingItem; - case 1065: return ActionReasonUseWidgetGadgetBuilder; - case 1066: return ActionReasonEffigyFirstPassReward; - case 1067: return ActionReasonEffigyReward; - case 1068: return ActionReasonReunionFirstGiftReward; - case 1069: return ActionReasonReunionSignInReward; - case 1070: return ActionReasonReunionWatcherReward; - case 1071: return ActionReasonSalesmanMpReward; - case 1072: return ActionReasionAvatarPromoteReward; - case 1073: return ActionReasonBlessingRedeemReward; - case 1074: return ActionMiracleRingReward; - case 1075: return ActionReasonExpeditionReward; - case 1076: return ActionReasonTreasureMapRemoveDetector; - case 1077: return ActionReasonMechanicusDungeonTicket; - case 1078: return ActionReasonMechanicusLevelupGear; - case 1079: return ActionReasonMechanicusBattleSettle; - case 1080: return ActionReasonRegionSearchReward; - case 1081: return ActionReasonUnlockCoopChapter; - case 1082: return ActionReasonTakeCoopReward; - case 1083: return ActionReasonFleurFairDungeonReward; - case 1084: return ActionReasonActivityScore; - case 1085: return ActionReasonChannellerSlabOneoffDungeonReward; - case 1086: return ActionReasonFurnitureMakeStart; - case 1087: return ActionReasonFurnitureMakeTake; - case 1088: return ActionReasonFurnitureMakeCancel; - case 1089: return ActionReasonFurnitureMakeFastFinish; - case 1090: return ActionReasonChannellerSlabLoopDungeonFirstPassReward; - case 1091: return ActionReasonChannellerSlabLoopDungeonScoreReward; - case 1092: return ActionReasonHomeLimitedShopBuy; - case 1093: return ActionReasonHomeCoinCollect; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<ActionReasonType> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ActionReasonType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<ActionReasonType>() { - public ActionReasonType findValueByNumber(int number) { - return ActionReasonType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.ActionReasonTypeOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final ActionReasonType[] VALUES = values(); - - public static ActionReasonType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ActionReasonType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:ActionReasonType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026ActionReasonType.proto*\213/\n\020ActionReaso" + - "nType\022\024\n\020ActionReasonNone\020\000\022\031\n\025ActionRea" + - "sonQuestItem\020\001\022\033\n\027ActionReasonQuestRewar" + - "d\020\002\022\026\n\022ActionReasonTrifle\020\003\022\024\n\020ActionRea" + - "sonShop\020\004\022#\n\037ActionReasonPlayerUpgradeRe" + - "ward\020\005\022\031\n\025ActionReasonAddAvatar\020\006\022\037\n\033Act" + - "ionReasonGadgetEnvAnimal\020\007\022 \n\034ActionReas" + - "onMonsterEnvAnimal\020\010\022\030\n\024ActionReasonComp" + - "ound\020\t\022\024\n\020ActionReasonCook\020\n\022\026\n\022ActionRe" + - "asonGather\020\013\022\036\n\032ActionReasonMailAttachme" + - "nt\020\014\022!\n\035ActionReasonCityLevelupReturn\020\017\022" + - "!\n\035ActionReasonCityLevelupReward\020\021\022!\n\035Ac" + - "tionReasonAreaExploreReward\020\022\022!\n\035ActionR" + - "easonUnlockPointReward\020\023\022 \n\034ActionReason" + - "DungeonFirstPass\020\024\022\033\n\027ActionReasonDungeo" + - "nPass\020\025\022\036\n\032ActionReasonChangeElemType\020\027\022" + - "\032\n\026ActionReasonFetterOpen\020\031\022\036\n\032ActionRea" + - "sonDailyTaskScore\020\032\022\035\n\031ActionReasonDaily" + - "TaskHost\020\033\022\034\n\030ActionReasonRandTaskHost\020\034" + - "\022\032\n\026ActionReasonExpedition\020\035\022\025\n\021ActionRe" + - "asonGacha\020\036\022\027\n\023ActionReasonCombine\020\037\022\035\n\031" + - "ActionReasonRandTaskGuest\020 \022\036\n\032ActionRea" + - "sonDailyTaskGuest\020!\022\033\n\027ActionReasonForge" + - "Output\020\"\022\033\n\027ActionReasonForgeReturn\020#\022\032\n" + - "\026ActionReasonInitAvatar\020$\022\032\n\026ActionReaso" + - "nMonsterDie\020%\022\022\n\016ActionReasonGm\020&\022\031\n\025Act" + - "ionReasonOpenChest\020\'\022\031\n\025ActionReasonGadg" + - "etDie\020(\022\037\n\033ActionReasonMonsterChangeHp\020)" + - "\022\034\n\030ActionReasonSubfieldDrop\020*\022\036\n\032Action" + - "ReasonPushTipsReward\020+\022#\n\037ActionReasonAc" + - "tivityMonsterDrop\020,\022\036\n\032ActionReasonActiv" + - "ityGather\020-\022$\n ActionReasonActivitySubfi" + - "eldDrop\020.\022#\n\037ActionReasonTowerScheduleRe" + - "ward\020/\022$\n ActionReasonTowerFloorStarRewa" + - "rd\0200\022$\n ActionReasonTowerFirstPassReward" + - "\0201\022 \n\034ActionReasonTowerDailyReward\0202\022&\n\"" + - "ActionReasonHitClientTrivialEntity\0203\022\"\n\036" + - "ActionReasonOpenWorldBossChest\0204\022$\n Acti" + - "onReasonMaterialDeleteReturn\0205\022\034\n\030Action" + - "ReasonSignInReward\0206\022 \n\034ActionReasonOpen" + - "BlossomChest\0207\022\030\n\024ActionReasonRecharge\0208" + - "\022#\n\037ActionReasonBonusActivityReward\0209\022(\n" + - "$ActionReasonTowerCommemorativeReward\020:\022" + - "$\n ActionReasonTowerSkipFloorReward\020;\022\035\n" + - "\031ActionReasonRechargeBonus\020<\022\034\n\030ActionRe" + - "asonRechargeCard\020=\022!\n\035ActionReasonRechar" + - "geCardDaily\020>\022#\n\037ActionReasonRechargeCar" + - "dReplace\020?\022\'\n#ActionReasonRechargeCardRe" + - "placeFree\020@\022#\n\037ActionReasonRechargePlayR" + - "eplace\020A\022 \n\034ActionReasonMpPlayTakeReward" + - "\020B\022\037\n\033ActionReasonActivityWatcher\020C\022#\n\037A" + - "ctionReasonSalesmanDeliverItem\020D\022\036\n\032Acti" + - "onReasonSalesmanReward\020E\022\026\n\022ActionReason" + - "Rebate\020F\022\"\n\036ActionReasonMcoinExchangeHco" + - "in\020G\022-\n)ActionReasonDailyTaskExchangeLeg" + - "endaryKey\020H\022 \n\034ActionReasonUnlockPersonL" + - "ine\020I\022!\n\035ActionReasonFetterLevelReward\020J" + - "\022\030\n\024ActionReasonBuyResin\020K\022\037\n\033ActionReas" + - "onRechargePackage\020L\022#\n\037ActionReasonDeliv" + - "eryDailyReward\020M\022#\n\037ActionReasonCityRepu" + - "tationLevel\020N\022#\n\037ActionReasonCityReputat" + - "ionQuest\020O\022%\n!ActionReasonCityReputation" + - "Request\020P\022%\n!ActionReasonCityReputationE" + - "xplore\020Q\022\036\n\032ActionReasonOffergingLevel\020R" + - "\022\033\n\027ActionReasonRoutineHost\020S\022\034\n\030ActionR" + - "easonRoutineGuest\020T\022$\n ActionReasonTreas" + - "ureMapSpotToken\020Y\022+\n\'ActionReasonTreasur" + - "eMapBonusLevelReward\020Z\022#\n\037ActionReasonTr" + - "easureMapMpReward\020[\022\027\n\023ActionReasonConve" + - "rt\020\\\022!\n\035ActionReasonOverflowTransform\020]\022" + - "-\n)ActionReasonActivityAvatarSelectionRe" + - "ward\020`\022$\n ActionReasonActivityWatcherBat" + - "ch\020a\022\033\n\027ActionReasonHitTreeDrop\020b\022$\n Act" + - "ionReasonGetHomeLevelupReward\020c\022$\n Actio" + - "nReasonHomeDefaultFurniture\020d\022\034\n\030ActionR" + - "easonActivityCond\020e\022 \n\034ActionReasonBattl" + - "ePassNotify\020f\022\036\n\031ActionReasonPlayerUseIt" + - "em\020\351\007\022\031\n\024ActionReasonDropItem\020\352\007\022\036\n\031Acti" + - "onReasonWeaponUpgrade\020\363\007\022\036\n\031ActionReason" + - "WeaponPromote\020\364\007\022\035\n\030ActionReasonWeaponAw" + - "aken\020\365\007\022\035\n\030ActionReasonRelicUpgrade\020\366\007\022\030" + - "\n\023ActionReasonAbility\020\367\007\022\"\n\035ActionReason" + - "DungeonStatueDrop\020\370\007\022\033\n\026ActionReasonOffl" + - "ineMsg\020\371\007\022\036\n\031ActionReasonAvatarUpgrade\020\372" + - "\007\022\036\n\031ActionReasonAvatarPromote\020\373\007\022\034\n\027Act" + - "ionReasonQuestAction\020\375\007\022\034\n\027ActionReasonC" + - "ityLevelup\020\376\007\022\035\n\030ActionReasonUpgradeSkil" + - "l\020\200\010\022\035\n\030ActionReasonUnlockTalent\020\201\010\022\"\n\035A" + - "ctionReasonUpgradeProudSkill\020\202\010\022#\n\036Actio" + - "nReasonPlayerLevelLimitUp\020\203\010\022\035\n\030ActionRe" + - "asonDungeonDaily\020\204\010\022\033\n\026ActionReasonItemG" + - "iving\020\206\010\022\032\n\025ActionReasonForgeCost\020\207\010\022$\n\037" + - "ActionReasonInvestigationReward\020\210\010\022*\n%Ac" + - "tionReasonInvestigationTargetReward\020\211\010\022\037" + - "\n\032ActionReasonGadgetInteract\020\212\010\022\"\n\035Actio" + - "nReasonSeaLampCiMaterial\020\214\010\022*\n%ActionRea" + - "sonSeaLampContributionReward\020\215\010\022#\n\036Actio" + - "nReasonSeaLampPhaseReward\020\216\010\022\037\n\032ActionRe" + - "asonSeaLampFlyLamp\020\217\010\022\034\n\027ActionReasonAut" + - "oRecover\020\220\010\022#\n\036ActionReasonActivityExpir" + - "eItem\020\221\010\022 \n\033ActionReasonSubCoinNegative\020" + - "\222\010\022\036\n\031ActionReasonBargainDeduct\020\223\010\022%\n Ac" + - "tionReasonBattlePassPaidReward\020\224\010\022&\n!Act" + - "ionReasonBattlePassLevelReward\020\225\010\0223\n.Act" + - "ionReasonTrialAvatarActivityFirstPassRew" + - "ard\020\226\010\022#\n\036ActionReasonBuyBattlePassLevel" + - "\020\227\010\022%\n ActionReasonGrantBirthdayBenefit\020" + - "\230\010\022\"\n\035ActionReasonAchievementReward\020\231\010\022&" + - "\n!ActionReasonAchievementGoalReward\020\232\010\022*" + - "\n%ActionReasonFirstShareToSocialNetwork\020" + - "\233\010\022 \n\033ActionReasonDestroyMaterial\020\234\010\022#\n\036" + - "ActionReasonCodexLevelupReward\020\235\010\022#\n\036Act" + - "ionReasonHuntingOfferReward\020\236\010\022%\n Action" + - "ReasonUseWidgetAnchorPoint\020\237\010\022!\n\034ActionR" + - "easonUseWidgetBonfire\020\240\010\022,\n\'ActionReason" + - "UngradeWeaponReturnMaterial\020\241\010\0223\n.Action" + - "ReasonUseWidgetOneoffGatherPointDetector" + - "\020\242\010\022)\n$ActionReasonUseWidgetClientCollec" + - "tor\020\243\010\022(\n#ActionReasonUseWidgetClientDet" + - "ector\020\244\010\022\"\n\035ActionReasonTakeGeneralRewar" + - "d\020\245\010\022\'\n\"ActionReasonAsterTakeSpecialRewa" + - "rd\020\246\010\022 \n\033ActionReasonRemoveCodexBook\020\247\010\022" + - "\035\n\030ActionReasonOfferingItem\020\250\010\022\'\n\"Action" + - "ReasonUseWidgetGadgetBuilder\020\251\010\022&\n!Actio" + - "nReasonEffigyFirstPassReward\020\252\010\022\035\n\030Actio" + - "nReasonEffigyReward\020\253\010\022\'\n\"ActionReasonRe" + - "unionFirstGiftReward\020\254\010\022$\n\037ActionReasonR" + - "eunionSignInReward\020\255\010\022%\n ActionReasonReu" + - "nionWatcherReward\020\256\010\022!\n\034ActionReasonSale" + - "smanMpReward\020\257\010\022%\n ActionReasionAvatarPr" + - "omoteReward\020\260\010\022%\n ActionReasonBlessingRe" + - "deemReward\020\261\010\022\034\n\027ActionMiracleRingReward" + - "\020\262\010\022!\n\034ActionReasonExpeditionReward\020\263\010\022*" + - "\n%ActionReasonTreasureMapRemoveDetector\020" + - "\264\010\022(\n#ActionReasonMechanicusDungeonTicke" + - "t\020\265\010\022&\n!ActionReasonMechanicusLevelupGea" + - "r\020\266\010\022\'\n\"ActionReasonMechanicusBattleSett" + - "le\020\267\010\022#\n\036ActionReasonRegionSearchReward\020" + - "\270\010\022\"\n\035ActionReasonUnlockCoopChapter\020\271\010\022\037" + - "\n\032ActionReasonTakeCoopReward\020\272\010\022\'\n\"Actio" + - "nReasonFleurFairDungeonReward\020\273\010\022\036\n\031Acti" + - "onReasonActivityScore\020\274\010\0222\n-ActionReason" + - "ChannellerSlabOneoffDungeonReward\020\275\010\022#\n\036" + - "ActionReasonFurnitureMakeStart\020\276\010\022\"\n\035Act" + - "ionReasonFurnitureMakeTake\020\277\010\022$\n\037ActionR" + - "easonFurnitureMakeCancel\020\300\010\022(\n#ActionRea" + - "sonFurnitureMakeFastFinish\020\301\010\0229\n4ActionR" + - "easonChannellerSlabLoopDungeonFirstPassR" + - "eward\020\302\010\0225\n0ActionReasonChannellerSlabLo" + - "opDungeonScoreReward\020\303\010\022#\n\036ActionReasonH" + - "omeLimitedShopBuy\020\304\010\022 \n\033ActionReasonHome" + - "CoinCollect\020\305\010B\033\n\031emu.grasscutter.net.pr" + - "otob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ActivityInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ActivityInfoOuterClass.java deleted file mode 100644 index ee7a47300..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ActivityInfoOuterClass.java +++ /dev/null @@ -1,7215 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ActivityInfo.proto - -package emu.grasscutter.net.proto; - -public final class ActivityInfoOuterClass { - private ActivityInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ActivityInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:ActivityInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 activityId = 1;</code> - * @return The activityId. - */ - int getActivityId(); - - /** - * <code>uint32 scheduleId = 2;</code> - * @return The scheduleId. - */ - int getScheduleId(); - - /** - * <code>uint32 beginTime = 3;</code> - * @return The beginTime. - */ - int getBeginTime(); - - /** - * <code>uint32 endTime = 4;</code> - * @return The endTime. - */ - int getEndTime(); - - /** - * <code>uint32 activityType = 5;</code> - * @return The activityType. - */ - int getActivityType(); - - /** - * <code>bool isPlayOpenAnim = 6;</code> - * @return The isPlayOpenAnim. - */ - boolean getIsPlayOpenAnim(); - - /** - * <code>bool isFinished = 7;</code> - * @return The isFinished. - */ - boolean getIsFinished(); - - /** - * <code>bool isStarting = 8;</code> - * @return The isStarting. - */ - boolean getIsStarting(); - - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - java.util.List<emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo> - getWatcherInfoListList(); - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo getWatcherInfoList(int index); - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - int getWatcherInfoListCount(); - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfoOrBuilder> - getWatcherInfoListOrBuilderList(); - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfoOrBuilder getWatcherInfoListOrBuilder( - int index); - - /** - * <code>repeated uint32 meetCondList = 10;</code> - * @return A list containing the meetCondList. - */ - java.util.List<java.lang.Integer> getMeetCondListList(); - /** - * <code>repeated uint32 meetCondList = 10;</code> - * @return The count of meetCondList. - */ - int getMeetCondListCount(); - /** - * <code>repeated uint32 meetCondList = 10;</code> - * @param index The index of the element to return. - * @return The meetCondList at the given index. - */ - int getMeetCondList(int index); - - /** - * <code>repeated uint32 expireCondList = 15;</code> - * @return A list containing the expireCondList. - */ - java.util.List<java.lang.Integer> getExpireCondListList(); - /** - * <code>repeated uint32 expireCondList = 15;</code> - * @return The count of expireCondList. - */ - int getExpireCondListCount(); - /** - * <code>repeated uint32 expireCondList = 15;</code> - * @param index The index of the element to return. - * @return The expireCondList at the given index. - */ - int getExpireCondList(int index); - - /** - * <code>uint32 selectedAvatarRewardId = 17;</code> - * @return The selectedAvatarRewardId. - */ - int getSelectedAvatarRewardId(); - - /** - * <code>map<uint32, uint32> activityCoinMap = 18;</code> - */ - int getActivityCoinMapCount(); - /** - * <code>map<uint32, uint32> activityCoinMap = 18;</code> - */ - boolean containsActivityCoinMap( - int key); - /** - * Use {@link #getActivityCoinMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Integer> - getActivityCoinMap(); - /** - * <code>map<uint32, uint32> activityCoinMap = 18;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Integer> - getActivityCoinMapMap(); - /** - * <code>map<uint32, uint32> activityCoinMap = 18;</code> - */ - - int getActivityCoinMapOrDefault( - int key, - int defaultValue); - /** - * <code>map<uint32, uint32> activityCoinMap = 18;</code> - */ - - int getActivityCoinMapOrThrow( - int key); - - /** - * <code>uint32 scoreLimit = 19;</code> - * @return The scoreLimit. - */ - int getScoreLimit(); - - /** - * <code>uint32 curScore = 20;</code> - * @return The curScore. - */ - int getCurScore(); - - /** - * <code>repeated uint32 takenRewardList = 24;</code> - * @return A list containing the takenRewardList. - */ - java.util.List<java.lang.Integer> getTakenRewardListList(); - /** - * <code>repeated uint32 takenRewardList = 24;</code> - * @return The count of takenRewardList. - */ - int getTakenRewardListCount(); - /** - * <code>repeated uint32 takenRewardList = 24;</code> - * @param index The index of the element to return. - * @return The takenRewardList at the given index. - */ - int getTakenRewardList(int index); - - /** - * <code>.ActivityNullDetailInfo samLampInfo = 11;</code> - * @return Whether the samLampInfo field is set. - */ - boolean hasSamLampInfo(); - /** - * <code>.ActivityNullDetailInfo samLampInfo = 11;</code> - * @return The samLampInfo. - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getSamLampInfo(); - /** - * <code>.ActivityNullDetailInfo samLampInfo = 11;</code> - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getSamLampInfoOrBuilder(); - - /** - * <code>.ActivityNullDetailInfo crucibleInfo = 12;</code> - * @return Whether the crucibleInfo field is set. - */ - boolean hasCrucibleInfo(); - /** - * <code>.ActivityNullDetailInfo crucibleInfo = 12;</code> - * @return The crucibleInfo. - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getCrucibleInfo(); - /** - * <code>.ActivityNullDetailInfo crucibleInfo = 12;</code> - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getCrucibleInfoOrBuilder(); - - /** - * <code>.ActivityNullDetailInfo salesmanInfo = 13;</code> - * @return Whether the salesmanInfo field is set. - */ - boolean hasSalesmanInfo(); - /** - * <code>.ActivityNullDetailInfo salesmanInfo = 13;</code> - * @return The salesmanInfo. - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getSalesmanInfo(); - /** - * <code>.ActivityNullDetailInfo salesmanInfo = 13;</code> - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getSalesmanInfoOrBuilder(); - - /** - * <code>.ActivityNullDetailInfo trialAvatarInfo = 14;</code> - * @return Whether the trialAvatarInfo field is set. - */ - boolean hasTrialAvatarInfo(); - /** - * <code>.ActivityNullDetailInfo trialAvatarInfo = 14;</code> - * @return The trialAvatarInfo. - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getTrialAvatarInfo(); - /** - * <code>.ActivityNullDetailInfo trialAvatarInfo = 14;</code> - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getTrialAvatarInfoOrBuilder(); - - /** - * <code>.ActivityNullDetailInfo deliveryInfo = 16;</code> - * @return Whether the deliveryInfo field is set. - */ - boolean hasDeliveryInfo(); - /** - * <code>.ActivityNullDetailInfo deliveryInfo = 16;</code> - * @return The deliveryInfo. - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getDeliveryInfo(); - /** - * <code>.ActivityNullDetailInfo deliveryInfo = 16;</code> - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getDeliveryInfoOrBuilder(); - - /** - * <code>.ActivityNullDetailInfo asterInfo = 21;</code> - * @return Whether the asterInfo field is set. - */ - boolean hasAsterInfo(); - /** - * <code>.ActivityNullDetailInfo asterInfo = 21;</code> - * @return The asterInfo. - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getAsterInfo(); - /** - * <code>.ActivityNullDetailInfo asterInfo = 21;</code> - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getAsterInfoOrBuilder(); - - /** - * <code>.ActivityNullDetailInfo flightInfo = 25;</code> - * @return Whether the flightInfo field is set. - */ - boolean hasFlightInfo(); - /** - * <code>.ActivityNullDetailInfo flightInfo = 25;</code> - * @return The flightInfo. - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getFlightInfo(); - /** - * <code>.ActivityNullDetailInfo flightInfo = 25;</code> - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getFlightInfoOrBuilder(); - - /** - * <code>.ActivityNullDetailInfo dragonSpineInfo = 31;</code> - * @return Whether the dragonSpineInfo field is set. - */ - boolean hasDragonSpineInfo(); - /** - * <code>.ActivityNullDetailInfo dragonSpineInfo = 31;</code> - * @return The dragonSpineInfo. - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getDragonSpineInfo(); - /** - * <code>.ActivityNullDetailInfo dragonSpineInfo = 31;</code> - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getDragonSpineInfoOrBuilder(); - - /** - * <code>.ActivityNullDetailInfo effigyInfo = 32;</code> - * @return Whether the effigyInfo field is set. - */ - boolean hasEffigyInfo(); - /** - * <code>.ActivityNullDetailInfo effigyInfo = 32;</code> - * @return The effigyInfo. - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getEffigyInfo(); - /** - * <code>.ActivityNullDetailInfo effigyInfo = 32;</code> - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getEffigyInfoOrBuilder(); - - /** - * <code>.ActivityNullDetailInfo treasureMapInfo = 35;</code> - * @return Whether the treasureMapInfo field is set. - */ - boolean hasTreasureMapInfo(); - /** - * <code>.ActivityNullDetailInfo treasureMapInfo = 35;</code> - * @return The treasureMapInfo. - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getTreasureMapInfo(); - /** - * <code>.ActivityNullDetailInfo treasureMapInfo = 35;</code> - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getTreasureMapInfoOrBuilder(); - - /** - * <code>.ActivityNullDetailInfo blessingInfo = 41;</code> - * @return Whether the blessingInfo field is set. - */ - boolean hasBlessingInfo(); - /** - * <code>.ActivityNullDetailInfo blessingInfo = 41;</code> - * @return The blessingInfo. - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getBlessingInfo(); - /** - * <code>.ActivityNullDetailInfo blessingInfo = 41;</code> - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getBlessingInfoOrBuilder(); - - /** - * <code>.ActivityNullDetailInfo seaLampInfo = 42;</code> - * @return Whether the seaLampInfo field is set. - */ - boolean hasSeaLampInfo(); - /** - * <code>.ActivityNullDetailInfo seaLampInfo = 42;</code> - * @return The seaLampInfo. - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getSeaLampInfo(); - /** - * <code>.ActivityNullDetailInfo seaLampInfo = 42;</code> - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getSeaLampInfoOrBuilder(); - - /** - * <code>.ActivityNullDetailInfo expeditionInfo = 43;</code> - * @return Whether the expeditionInfo field is set. - */ - boolean hasExpeditionInfo(); - /** - * <code>.ActivityNullDetailInfo expeditionInfo = 43;</code> - * @return The expeditionInfo. - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getExpeditionInfo(); - /** - * <code>.ActivityNullDetailInfo expeditionInfo = 43;</code> - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getExpeditionInfoOrBuilder(); - - /** - * <code>.ActivityNullDetailInfo arenaChallengeInfo = 44;</code> - * @return Whether the arenaChallengeInfo field is set. - */ - boolean hasArenaChallengeInfo(); - /** - * <code>.ActivityNullDetailInfo arenaChallengeInfo = 44;</code> - * @return The arenaChallengeInfo. - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getArenaChallengeInfo(); - /** - * <code>.ActivityNullDetailInfo arenaChallengeInfo = 44;</code> - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getArenaChallengeInfoOrBuilder(); - - /** - * <code>.ActivityNullDetailInfo fleurFairInfo = 51;</code> - * @return Whether the fleurFairInfo field is set. - */ - boolean hasFleurFairInfo(); - /** - * <code>.ActivityNullDetailInfo fleurFairInfo = 51;</code> - * @return The fleurFairInfo. - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getFleurFairInfo(); - /** - * <code>.ActivityNullDetailInfo fleurFairInfo = 51;</code> - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getFleurFairInfoOrBuilder(); - - /** - * <code>.ActivityNullDetailInfo waterSpiritInfo = 52;</code> - * @return Whether the waterSpiritInfo field is set. - */ - boolean hasWaterSpiritInfo(); - /** - * <code>.ActivityNullDetailInfo waterSpiritInfo = 52;</code> - * @return The waterSpiritInfo. - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getWaterSpiritInfo(); - /** - * <code>.ActivityNullDetailInfo waterSpiritInfo = 52;</code> - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getWaterSpiritInfoOrBuilder(); - - /** - * <code>.ActivityNullDetailInfo challnelerSlabInfo = 61;</code> - * @return Whether the challnelerSlabInfo field is set. - */ - boolean hasChallnelerSlabInfo(); - /** - * <code>.ActivityNullDetailInfo challnelerSlabInfo = 61;</code> - * @return The challnelerSlabInfo. - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getChallnelerSlabInfo(); - /** - * <code>.ActivityNullDetailInfo challnelerSlabInfo = 61;</code> - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getChallnelerSlabInfoOrBuilder(); - - /** - * <code>.ActivityNullDetailInfo mistTrialActivityInfo = 62;</code> - * @return Whether the mistTrialActivityInfo field is set. - */ - boolean hasMistTrialActivityInfo(); - /** - * <code>.ActivityNullDetailInfo mistTrialActivityInfo = 62;</code> - * @return The mistTrialActivityInfo. - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getMistTrialActivityInfo(); - /** - * <code>.ActivityNullDetailInfo mistTrialActivityInfo = 62;</code> - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getMistTrialActivityInfoOrBuilder(); - - /** - * <code>.ActivityNullDetailInfo hideAndSeekInfo = 63;</code> - * @return Whether the hideAndSeekInfo field is set. - */ - boolean hasHideAndSeekInfo(); - /** - * <code>.ActivityNullDetailInfo hideAndSeekInfo = 63;</code> - * @return The hideAndSeekInfo. - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getHideAndSeekInfo(); - /** - * <code>.ActivityNullDetailInfo hideAndSeekInfo = 63;</code> - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getHideAndSeekInfoOrBuilder(); - - /** - * <code>.ActivityNullDetailInfo findHilichurlInfo = 64;</code> - * @return Whether the findHilichurlInfo field is set. - */ - boolean hasFindHilichurlInfo(); - /** - * <code>.ActivityNullDetailInfo findHilichurlInfo = 64;</code> - * @return The findHilichurlInfo. - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getFindHilichurlInfo(); - /** - * <code>.ActivityNullDetailInfo findHilichurlInfo = 64;</code> - */ - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getFindHilichurlInfoOrBuilder(); - - public emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo.DetailCase getDetailCase(); - } - /** - * Protobuf type {@code ActivityInfo} - */ - public static final class ActivityInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ActivityInfo) - ActivityInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use ActivityInfo.newBuilder() to construct. - private ActivityInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ActivityInfo() { - watcherInfoList_ = java.util.Collections.emptyList(); - meetCondList_ = emptyIntList(); - expireCondList_ = emptyIntList(); - takenRewardList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ActivityInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ActivityInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - activityId_ = input.readUInt32(); - break; - } - case 16: { - - scheduleId_ = input.readUInt32(); - break; - } - case 24: { - - beginTime_ = input.readUInt32(); - break; - } - case 32: { - - endTime_ = input.readUInt32(); - break; - } - case 40: { - - activityType_ = input.readUInt32(); - break; - } - case 48: { - - isPlayOpenAnim_ = input.readBool(); - break; - } - case 56: { - - isFinished_ = input.readBool(); - break; - } - case 64: { - - isStarting_ = input.readBool(); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - watcherInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo>(); - mutable_bitField0_ |= 0x00000001; - } - watcherInfoList_.add( - input.readMessage(emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo.parser(), extensionRegistry)); - break; - } - case 80: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - meetCondList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - meetCondList_.addInt(input.readUInt32()); - break; - } - case 82: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - meetCondList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - meetCondList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 90: { - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder subBuilder = null; - if (detailCase_ == 11) { - subBuilder = ((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_).toBuilder(); - } - detail_ = - input.readMessage(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 11; - break; - } - case 98: { - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder subBuilder = null; - if (detailCase_ == 12) { - subBuilder = ((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_).toBuilder(); - } - detail_ = - input.readMessage(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 12; - break; - } - case 106: { - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder subBuilder = null; - if (detailCase_ == 13) { - subBuilder = ((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_).toBuilder(); - } - detail_ = - input.readMessage(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 13; - break; - } - case 114: { - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder subBuilder = null; - if (detailCase_ == 14) { - subBuilder = ((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_).toBuilder(); - } - detail_ = - input.readMessage(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 14; - break; - } - case 120: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - expireCondList_ = newIntList(); - mutable_bitField0_ |= 0x00000004; - } - expireCondList_.addInt(input.readUInt32()); - break; - } - case 122: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) { - expireCondList_ = newIntList(); - mutable_bitField0_ |= 0x00000004; - } - while (input.getBytesUntilLimit() > 0) { - expireCondList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 130: { - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder subBuilder = null; - if (detailCase_ == 16) { - subBuilder = ((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_).toBuilder(); - } - detail_ = - input.readMessage(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 16; - break; - } - case 136: { - - selectedAvatarRewardId_ = input.readUInt32(); - break; - } - case 146: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - activityCoinMap_ = com.google.protobuf.MapField.newMapField( - ActivityCoinMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - activityCoinMap__ = input.readMessage( - ActivityCoinMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - activityCoinMap_.getMutableMap().put( - activityCoinMap__.getKey(), activityCoinMap__.getValue()); - break; - } - case 152: { - - scoreLimit_ = input.readUInt32(); - break; - } - case 160: { - - curScore_ = input.readUInt32(); - break; - } - case 170: { - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder subBuilder = null; - if (detailCase_ == 21) { - subBuilder = ((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_).toBuilder(); - } - detail_ = - input.readMessage(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 21; - break; - } - case 192: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - takenRewardList_ = newIntList(); - mutable_bitField0_ |= 0x00000010; - } - takenRewardList_.addInt(input.readUInt32()); - break; - } - case 194: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000010) != 0) && input.getBytesUntilLimit() > 0) { - takenRewardList_ = newIntList(); - mutable_bitField0_ |= 0x00000010; - } - while (input.getBytesUntilLimit() > 0) { - takenRewardList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 202: { - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder subBuilder = null; - if (detailCase_ == 25) { - subBuilder = ((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_).toBuilder(); - } - detail_ = - input.readMessage(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 25; - break; - } - case 250: { - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder subBuilder = null; - if (detailCase_ == 31) { - subBuilder = ((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_).toBuilder(); - } - detail_ = - input.readMessage(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 31; - break; - } - case 258: { - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder subBuilder = null; - if (detailCase_ == 32) { - subBuilder = ((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_).toBuilder(); - } - detail_ = - input.readMessage(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 32; - break; - } - case 282: { - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder subBuilder = null; - if (detailCase_ == 35) { - subBuilder = ((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_).toBuilder(); - } - detail_ = - input.readMessage(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 35; - break; - } - case 330: { - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder subBuilder = null; - if (detailCase_ == 41) { - subBuilder = ((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_).toBuilder(); - } - detail_ = - input.readMessage(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 41; - break; - } - case 338: { - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder subBuilder = null; - if (detailCase_ == 42) { - subBuilder = ((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_).toBuilder(); - } - detail_ = - input.readMessage(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 42; - break; - } - case 346: { - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder subBuilder = null; - if (detailCase_ == 43) { - subBuilder = ((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_).toBuilder(); - } - detail_ = - input.readMessage(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 43; - break; - } - case 354: { - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder subBuilder = null; - if (detailCase_ == 44) { - subBuilder = ((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_).toBuilder(); - } - detail_ = - input.readMessage(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 44; - break; - } - case 410: { - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder subBuilder = null; - if (detailCase_ == 51) { - subBuilder = ((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_).toBuilder(); - } - detail_ = - input.readMessage(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 51; - break; - } - case 418: { - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder subBuilder = null; - if (detailCase_ == 52) { - subBuilder = ((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_).toBuilder(); - } - detail_ = - input.readMessage(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 52; - break; - } - case 490: { - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder subBuilder = null; - if (detailCase_ == 61) { - subBuilder = ((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_).toBuilder(); - } - detail_ = - input.readMessage(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 61; - break; - } - case 498: { - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder subBuilder = null; - if (detailCase_ == 62) { - subBuilder = ((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_).toBuilder(); - } - detail_ = - input.readMessage(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 62; - break; - } - case 506: { - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder subBuilder = null; - if (detailCase_ == 63) { - subBuilder = ((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_).toBuilder(); - } - detail_ = - input.readMessage(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 63; - break; - } - case 514: { - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder subBuilder = null; - if (detailCase_ == 64) { - subBuilder = ((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_).toBuilder(); - } - detail_ = - input.readMessage(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 64; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - watcherInfoList_ = java.util.Collections.unmodifiableList(watcherInfoList_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - meetCondList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - expireCondList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - takenRewardList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ActivityInfoOuterClass.internal_static_ActivityInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 18: - return internalGetActivityCoinMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ActivityInfoOuterClass.internal_static_ActivityInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo.class, emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo.Builder.class); - } - - private int detailCase_ = 0; - private java.lang.Object detail_; - public enum DetailCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - SAMLAMPINFO(11), - CRUCIBLEINFO(12), - SALESMANINFO(13), - TRIALAVATARINFO(14), - DELIVERYINFO(16), - ASTERINFO(21), - FLIGHTINFO(25), - DRAGONSPINEINFO(31), - EFFIGYINFO(32), - TREASUREMAPINFO(35), - BLESSINGINFO(41), - SEALAMPINFO(42), - EXPEDITIONINFO(43), - ARENACHALLENGEINFO(44), - FLEURFAIRINFO(51), - WATERSPIRITINFO(52), - CHALLNELERSLABINFO(61), - MISTTRIALACTIVITYINFO(62), - HIDEANDSEEKINFO(63), - FINDHILICHURLINFO(64), - DETAIL_NOT_SET(0); - private final int value; - private DetailCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DetailCase valueOf(int value) { - return forNumber(value); - } - - public static DetailCase forNumber(int value) { - switch (value) { - case 11: return SAMLAMPINFO; - case 12: return CRUCIBLEINFO; - case 13: return SALESMANINFO; - case 14: return TRIALAVATARINFO; - case 16: return DELIVERYINFO; - case 21: return ASTERINFO; - case 25: return FLIGHTINFO; - case 31: return DRAGONSPINEINFO; - case 32: return EFFIGYINFO; - case 35: return TREASUREMAPINFO; - case 41: return BLESSINGINFO; - case 42: return SEALAMPINFO; - case 43: return EXPEDITIONINFO; - case 44: return ARENACHALLENGEINFO; - case 51: return FLEURFAIRINFO; - case 52: return WATERSPIRITINFO; - case 61: return CHALLNELERSLABINFO; - case 62: return MISTTRIALACTIVITYINFO; - case 63: return HIDEANDSEEKINFO; - case 64: return FINDHILICHURLINFO; - case 0: return DETAIL_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public DetailCase - getDetailCase() { - return DetailCase.forNumber( - detailCase_); - } - - public static final int ACTIVITYID_FIELD_NUMBER = 1; - private int activityId_; - /** - * <code>uint32 activityId = 1;</code> - * @return The activityId. - */ - @java.lang.Override - public int getActivityId() { - return activityId_; - } - - public static final int SCHEDULEID_FIELD_NUMBER = 2; - private int scheduleId_; - /** - * <code>uint32 scheduleId = 2;</code> - * @return The scheduleId. - */ - @java.lang.Override - public int getScheduleId() { - return scheduleId_; - } - - public static final int BEGINTIME_FIELD_NUMBER = 3; - private int beginTime_; - /** - * <code>uint32 beginTime = 3;</code> - * @return The beginTime. - */ - @java.lang.Override - public int getBeginTime() { - return beginTime_; - } - - public static final int ENDTIME_FIELD_NUMBER = 4; - private int endTime_; - /** - * <code>uint32 endTime = 4;</code> - * @return The endTime. - */ - @java.lang.Override - public int getEndTime() { - return endTime_; - } - - public static final int ACTIVITYTYPE_FIELD_NUMBER = 5; - private int activityType_; - /** - * <code>uint32 activityType = 5;</code> - * @return The activityType. - */ - @java.lang.Override - public int getActivityType() { - return activityType_; - } - - public static final int ISPLAYOPENANIM_FIELD_NUMBER = 6; - private boolean isPlayOpenAnim_; - /** - * <code>bool isPlayOpenAnim = 6;</code> - * @return The isPlayOpenAnim. - */ - @java.lang.Override - public boolean getIsPlayOpenAnim() { - return isPlayOpenAnim_; - } - - public static final int ISFINISHED_FIELD_NUMBER = 7; - private boolean isFinished_; - /** - * <code>bool isFinished = 7;</code> - * @return The isFinished. - */ - @java.lang.Override - public boolean getIsFinished() { - return isFinished_; - } - - public static final int ISSTARTING_FIELD_NUMBER = 8; - private boolean isStarting_; - /** - * <code>bool isStarting = 8;</code> - * @return The isStarting. - */ - @java.lang.Override - public boolean getIsStarting() { - return isStarting_; - } - - public static final int WATCHERINFOLIST_FIELD_NUMBER = 9; - private java.util.List<emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo> watcherInfoList_; - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo> getWatcherInfoListList() { - return watcherInfoList_; - } - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfoOrBuilder> - getWatcherInfoListOrBuilderList() { - return watcherInfoList_; - } - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - @java.lang.Override - public int getWatcherInfoListCount() { - return watcherInfoList_.size(); - } - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo getWatcherInfoList(int index) { - return watcherInfoList_.get(index); - } - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfoOrBuilder getWatcherInfoListOrBuilder( - int index) { - return watcherInfoList_.get(index); - } - - public static final int MEETCONDLIST_FIELD_NUMBER = 10; - private com.google.protobuf.Internal.IntList meetCondList_; - /** - * <code>repeated uint32 meetCondList = 10;</code> - * @return A list containing the meetCondList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getMeetCondListList() { - return meetCondList_; - } - /** - * <code>repeated uint32 meetCondList = 10;</code> - * @return The count of meetCondList. - */ - public int getMeetCondListCount() { - return meetCondList_.size(); - } - /** - * <code>repeated uint32 meetCondList = 10;</code> - * @param index The index of the element to return. - * @return The meetCondList at the given index. - */ - public int getMeetCondList(int index) { - return meetCondList_.getInt(index); - } - private int meetCondListMemoizedSerializedSize = -1; - - public static final int EXPIRECONDLIST_FIELD_NUMBER = 15; - private com.google.protobuf.Internal.IntList expireCondList_; - /** - * <code>repeated uint32 expireCondList = 15;</code> - * @return A list containing the expireCondList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getExpireCondListList() { - return expireCondList_; - } - /** - * <code>repeated uint32 expireCondList = 15;</code> - * @return The count of expireCondList. - */ - public int getExpireCondListCount() { - return expireCondList_.size(); - } - /** - * <code>repeated uint32 expireCondList = 15;</code> - * @param index The index of the element to return. - * @return The expireCondList at the given index. - */ - public int getExpireCondList(int index) { - return expireCondList_.getInt(index); - } - private int expireCondListMemoizedSerializedSize = -1; - - public static final int SELECTEDAVATARREWARDID_FIELD_NUMBER = 17; - private int selectedAvatarRewardId_; - /** - * <code>uint32 selectedAvatarRewardId = 17;</code> - * @return The selectedAvatarRewardId. - */ - @java.lang.Override - public int getSelectedAvatarRewardId() { - return selectedAvatarRewardId_; - } - - public static final int ACTIVITYCOINMAP_FIELD_NUMBER = 18; - private static final class ActivityCoinMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Integer>newDefaultInstance( - emu.grasscutter.net.proto.ActivityInfoOuterClass.internal_static_ActivityInfo_ActivityCoinMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> activityCoinMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetActivityCoinMap() { - if (activityCoinMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ActivityCoinMapDefaultEntryHolder.defaultEntry); - } - return activityCoinMap_; - } - - public int getActivityCoinMapCount() { - return internalGetActivityCoinMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> activityCoinMap = 18;</code> - */ - - @java.lang.Override - public boolean containsActivityCoinMap( - int key) { - - return internalGetActivityCoinMap().getMap().containsKey(key); - } - /** - * Use {@link #getActivityCoinMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getActivityCoinMap() { - return getActivityCoinMapMap(); - } - /** - * <code>map<uint32, uint32> activityCoinMap = 18;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getActivityCoinMapMap() { - return internalGetActivityCoinMap().getMap(); - } - /** - * <code>map<uint32, uint32> activityCoinMap = 18;</code> - */ - @java.lang.Override - - public int getActivityCoinMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetActivityCoinMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> activityCoinMap = 18;</code> - */ - @java.lang.Override - - public int getActivityCoinMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetActivityCoinMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int SCORELIMIT_FIELD_NUMBER = 19; - private int scoreLimit_; - /** - * <code>uint32 scoreLimit = 19;</code> - * @return The scoreLimit. - */ - @java.lang.Override - public int getScoreLimit() { - return scoreLimit_; - } - - public static final int CURSCORE_FIELD_NUMBER = 20; - private int curScore_; - /** - * <code>uint32 curScore = 20;</code> - * @return The curScore. - */ - @java.lang.Override - public int getCurScore() { - return curScore_; - } - - public static final int TAKENREWARDLIST_FIELD_NUMBER = 24; - private com.google.protobuf.Internal.IntList takenRewardList_; - /** - * <code>repeated uint32 takenRewardList = 24;</code> - * @return A list containing the takenRewardList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getTakenRewardListList() { - return takenRewardList_; - } - /** - * <code>repeated uint32 takenRewardList = 24;</code> - * @return The count of takenRewardList. - */ - public int getTakenRewardListCount() { - return takenRewardList_.size(); - } - /** - * <code>repeated uint32 takenRewardList = 24;</code> - * @param index The index of the element to return. - * @return The takenRewardList at the given index. - */ - public int getTakenRewardList(int index) { - return takenRewardList_.getInt(index); - } - private int takenRewardListMemoizedSerializedSize = -1; - - public static final int SAMLAMPINFO_FIELD_NUMBER = 11; - /** - * <code>.ActivityNullDetailInfo samLampInfo = 11;</code> - * @return Whether the samLampInfo field is set. - */ - @java.lang.Override - public boolean hasSamLampInfo() { - return detailCase_ == 11; - } - /** - * <code>.ActivityNullDetailInfo samLampInfo = 11;</code> - * @return The samLampInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getSamLampInfo() { - if (detailCase_ == 11) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - /** - * <code>.ActivityNullDetailInfo samLampInfo = 11;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getSamLampInfoOrBuilder() { - if (detailCase_ == 11) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - - public static final int CRUCIBLEINFO_FIELD_NUMBER = 12; - /** - * <code>.ActivityNullDetailInfo crucibleInfo = 12;</code> - * @return Whether the crucibleInfo field is set. - */ - @java.lang.Override - public boolean hasCrucibleInfo() { - return detailCase_ == 12; - } - /** - * <code>.ActivityNullDetailInfo crucibleInfo = 12;</code> - * @return The crucibleInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getCrucibleInfo() { - if (detailCase_ == 12) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - /** - * <code>.ActivityNullDetailInfo crucibleInfo = 12;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getCrucibleInfoOrBuilder() { - if (detailCase_ == 12) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - - public static final int SALESMANINFO_FIELD_NUMBER = 13; - /** - * <code>.ActivityNullDetailInfo salesmanInfo = 13;</code> - * @return Whether the salesmanInfo field is set. - */ - @java.lang.Override - public boolean hasSalesmanInfo() { - return detailCase_ == 13; - } - /** - * <code>.ActivityNullDetailInfo salesmanInfo = 13;</code> - * @return The salesmanInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getSalesmanInfo() { - if (detailCase_ == 13) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - /** - * <code>.ActivityNullDetailInfo salesmanInfo = 13;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getSalesmanInfoOrBuilder() { - if (detailCase_ == 13) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - - public static final int TRIALAVATARINFO_FIELD_NUMBER = 14; - /** - * <code>.ActivityNullDetailInfo trialAvatarInfo = 14;</code> - * @return Whether the trialAvatarInfo field is set. - */ - @java.lang.Override - public boolean hasTrialAvatarInfo() { - return detailCase_ == 14; - } - /** - * <code>.ActivityNullDetailInfo trialAvatarInfo = 14;</code> - * @return The trialAvatarInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getTrialAvatarInfo() { - if (detailCase_ == 14) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - /** - * <code>.ActivityNullDetailInfo trialAvatarInfo = 14;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getTrialAvatarInfoOrBuilder() { - if (detailCase_ == 14) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - - public static final int DELIVERYINFO_FIELD_NUMBER = 16; - /** - * <code>.ActivityNullDetailInfo deliveryInfo = 16;</code> - * @return Whether the deliveryInfo field is set. - */ - @java.lang.Override - public boolean hasDeliveryInfo() { - return detailCase_ == 16; - } - /** - * <code>.ActivityNullDetailInfo deliveryInfo = 16;</code> - * @return The deliveryInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getDeliveryInfo() { - if (detailCase_ == 16) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - /** - * <code>.ActivityNullDetailInfo deliveryInfo = 16;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getDeliveryInfoOrBuilder() { - if (detailCase_ == 16) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - - public static final int ASTERINFO_FIELD_NUMBER = 21; - /** - * <code>.ActivityNullDetailInfo asterInfo = 21;</code> - * @return Whether the asterInfo field is set. - */ - @java.lang.Override - public boolean hasAsterInfo() { - return detailCase_ == 21; - } - /** - * <code>.ActivityNullDetailInfo asterInfo = 21;</code> - * @return The asterInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getAsterInfo() { - if (detailCase_ == 21) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - /** - * <code>.ActivityNullDetailInfo asterInfo = 21;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getAsterInfoOrBuilder() { - if (detailCase_ == 21) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - - public static final int FLIGHTINFO_FIELD_NUMBER = 25; - /** - * <code>.ActivityNullDetailInfo flightInfo = 25;</code> - * @return Whether the flightInfo field is set. - */ - @java.lang.Override - public boolean hasFlightInfo() { - return detailCase_ == 25; - } - /** - * <code>.ActivityNullDetailInfo flightInfo = 25;</code> - * @return The flightInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getFlightInfo() { - if (detailCase_ == 25) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - /** - * <code>.ActivityNullDetailInfo flightInfo = 25;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getFlightInfoOrBuilder() { - if (detailCase_ == 25) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - - public static final int DRAGONSPINEINFO_FIELD_NUMBER = 31; - /** - * <code>.ActivityNullDetailInfo dragonSpineInfo = 31;</code> - * @return Whether the dragonSpineInfo field is set. - */ - @java.lang.Override - public boolean hasDragonSpineInfo() { - return detailCase_ == 31; - } - /** - * <code>.ActivityNullDetailInfo dragonSpineInfo = 31;</code> - * @return The dragonSpineInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getDragonSpineInfo() { - if (detailCase_ == 31) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - /** - * <code>.ActivityNullDetailInfo dragonSpineInfo = 31;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getDragonSpineInfoOrBuilder() { - if (detailCase_ == 31) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - - public static final int EFFIGYINFO_FIELD_NUMBER = 32; - /** - * <code>.ActivityNullDetailInfo effigyInfo = 32;</code> - * @return Whether the effigyInfo field is set. - */ - @java.lang.Override - public boolean hasEffigyInfo() { - return detailCase_ == 32; - } - /** - * <code>.ActivityNullDetailInfo effigyInfo = 32;</code> - * @return The effigyInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getEffigyInfo() { - if (detailCase_ == 32) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - /** - * <code>.ActivityNullDetailInfo effigyInfo = 32;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getEffigyInfoOrBuilder() { - if (detailCase_ == 32) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - - public static final int TREASUREMAPINFO_FIELD_NUMBER = 35; - /** - * <code>.ActivityNullDetailInfo treasureMapInfo = 35;</code> - * @return Whether the treasureMapInfo field is set. - */ - @java.lang.Override - public boolean hasTreasureMapInfo() { - return detailCase_ == 35; - } - /** - * <code>.ActivityNullDetailInfo treasureMapInfo = 35;</code> - * @return The treasureMapInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getTreasureMapInfo() { - if (detailCase_ == 35) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - /** - * <code>.ActivityNullDetailInfo treasureMapInfo = 35;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getTreasureMapInfoOrBuilder() { - if (detailCase_ == 35) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - - public static final int BLESSINGINFO_FIELD_NUMBER = 41; - /** - * <code>.ActivityNullDetailInfo blessingInfo = 41;</code> - * @return Whether the blessingInfo field is set. - */ - @java.lang.Override - public boolean hasBlessingInfo() { - return detailCase_ == 41; - } - /** - * <code>.ActivityNullDetailInfo blessingInfo = 41;</code> - * @return The blessingInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getBlessingInfo() { - if (detailCase_ == 41) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - /** - * <code>.ActivityNullDetailInfo blessingInfo = 41;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getBlessingInfoOrBuilder() { - if (detailCase_ == 41) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - - public static final int SEALAMPINFO_FIELD_NUMBER = 42; - /** - * <code>.ActivityNullDetailInfo seaLampInfo = 42;</code> - * @return Whether the seaLampInfo field is set. - */ - @java.lang.Override - public boolean hasSeaLampInfo() { - return detailCase_ == 42; - } - /** - * <code>.ActivityNullDetailInfo seaLampInfo = 42;</code> - * @return The seaLampInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getSeaLampInfo() { - if (detailCase_ == 42) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - /** - * <code>.ActivityNullDetailInfo seaLampInfo = 42;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getSeaLampInfoOrBuilder() { - if (detailCase_ == 42) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - - public static final int EXPEDITIONINFO_FIELD_NUMBER = 43; - /** - * <code>.ActivityNullDetailInfo expeditionInfo = 43;</code> - * @return Whether the expeditionInfo field is set. - */ - @java.lang.Override - public boolean hasExpeditionInfo() { - return detailCase_ == 43; - } - /** - * <code>.ActivityNullDetailInfo expeditionInfo = 43;</code> - * @return The expeditionInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getExpeditionInfo() { - if (detailCase_ == 43) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - /** - * <code>.ActivityNullDetailInfo expeditionInfo = 43;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getExpeditionInfoOrBuilder() { - if (detailCase_ == 43) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - - public static final int ARENACHALLENGEINFO_FIELD_NUMBER = 44; - /** - * <code>.ActivityNullDetailInfo arenaChallengeInfo = 44;</code> - * @return Whether the arenaChallengeInfo field is set. - */ - @java.lang.Override - public boolean hasArenaChallengeInfo() { - return detailCase_ == 44; - } - /** - * <code>.ActivityNullDetailInfo arenaChallengeInfo = 44;</code> - * @return The arenaChallengeInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getArenaChallengeInfo() { - if (detailCase_ == 44) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - /** - * <code>.ActivityNullDetailInfo arenaChallengeInfo = 44;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getArenaChallengeInfoOrBuilder() { - if (detailCase_ == 44) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - - public static final int FLEURFAIRINFO_FIELD_NUMBER = 51; - /** - * <code>.ActivityNullDetailInfo fleurFairInfo = 51;</code> - * @return Whether the fleurFairInfo field is set. - */ - @java.lang.Override - public boolean hasFleurFairInfo() { - return detailCase_ == 51; - } - /** - * <code>.ActivityNullDetailInfo fleurFairInfo = 51;</code> - * @return The fleurFairInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getFleurFairInfo() { - if (detailCase_ == 51) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - /** - * <code>.ActivityNullDetailInfo fleurFairInfo = 51;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getFleurFairInfoOrBuilder() { - if (detailCase_ == 51) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - - public static final int WATERSPIRITINFO_FIELD_NUMBER = 52; - /** - * <code>.ActivityNullDetailInfo waterSpiritInfo = 52;</code> - * @return Whether the waterSpiritInfo field is set. - */ - @java.lang.Override - public boolean hasWaterSpiritInfo() { - return detailCase_ == 52; - } - /** - * <code>.ActivityNullDetailInfo waterSpiritInfo = 52;</code> - * @return The waterSpiritInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getWaterSpiritInfo() { - if (detailCase_ == 52) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - /** - * <code>.ActivityNullDetailInfo waterSpiritInfo = 52;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getWaterSpiritInfoOrBuilder() { - if (detailCase_ == 52) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - - public static final int CHALLNELERSLABINFO_FIELD_NUMBER = 61; - /** - * <code>.ActivityNullDetailInfo challnelerSlabInfo = 61;</code> - * @return Whether the challnelerSlabInfo field is set. - */ - @java.lang.Override - public boolean hasChallnelerSlabInfo() { - return detailCase_ == 61; - } - /** - * <code>.ActivityNullDetailInfo challnelerSlabInfo = 61;</code> - * @return The challnelerSlabInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getChallnelerSlabInfo() { - if (detailCase_ == 61) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - /** - * <code>.ActivityNullDetailInfo challnelerSlabInfo = 61;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getChallnelerSlabInfoOrBuilder() { - if (detailCase_ == 61) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - - public static final int MISTTRIALACTIVITYINFO_FIELD_NUMBER = 62; - /** - * <code>.ActivityNullDetailInfo mistTrialActivityInfo = 62;</code> - * @return Whether the mistTrialActivityInfo field is set. - */ - @java.lang.Override - public boolean hasMistTrialActivityInfo() { - return detailCase_ == 62; - } - /** - * <code>.ActivityNullDetailInfo mistTrialActivityInfo = 62;</code> - * @return The mistTrialActivityInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getMistTrialActivityInfo() { - if (detailCase_ == 62) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - /** - * <code>.ActivityNullDetailInfo mistTrialActivityInfo = 62;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getMistTrialActivityInfoOrBuilder() { - if (detailCase_ == 62) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - - public static final int HIDEANDSEEKINFO_FIELD_NUMBER = 63; - /** - * <code>.ActivityNullDetailInfo hideAndSeekInfo = 63;</code> - * @return Whether the hideAndSeekInfo field is set. - */ - @java.lang.Override - public boolean hasHideAndSeekInfo() { - return detailCase_ == 63; - } - /** - * <code>.ActivityNullDetailInfo hideAndSeekInfo = 63;</code> - * @return The hideAndSeekInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getHideAndSeekInfo() { - if (detailCase_ == 63) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - /** - * <code>.ActivityNullDetailInfo hideAndSeekInfo = 63;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getHideAndSeekInfoOrBuilder() { - if (detailCase_ == 63) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - - public static final int FINDHILICHURLINFO_FIELD_NUMBER = 64; - /** - * <code>.ActivityNullDetailInfo findHilichurlInfo = 64;</code> - * @return Whether the findHilichurlInfo field is set. - */ - @java.lang.Override - public boolean hasFindHilichurlInfo() { - return detailCase_ == 64; - } - /** - * <code>.ActivityNullDetailInfo findHilichurlInfo = 64;</code> - * @return The findHilichurlInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getFindHilichurlInfo() { - if (detailCase_ == 64) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - /** - * <code>.ActivityNullDetailInfo findHilichurlInfo = 64;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getFindHilichurlInfoOrBuilder() { - if (detailCase_ == 64) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (activityId_ != 0) { - output.writeUInt32(1, activityId_); - } - if (scheduleId_ != 0) { - output.writeUInt32(2, scheduleId_); - } - if (beginTime_ != 0) { - output.writeUInt32(3, beginTime_); - } - if (endTime_ != 0) { - output.writeUInt32(4, endTime_); - } - if (activityType_ != 0) { - output.writeUInt32(5, activityType_); - } - if (isPlayOpenAnim_ != false) { - output.writeBool(6, isPlayOpenAnim_); - } - if (isFinished_ != false) { - output.writeBool(7, isFinished_); - } - if (isStarting_ != false) { - output.writeBool(8, isStarting_); - } - for (int i = 0; i < watcherInfoList_.size(); i++) { - output.writeMessage(9, watcherInfoList_.get(i)); - } - if (getMeetCondListList().size() > 0) { - output.writeUInt32NoTag(82); - output.writeUInt32NoTag(meetCondListMemoizedSerializedSize); - } - for (int i = 0; i < meetCondList_.size(); i++) { - output.writeUInt32NoTag(meetCondList_.getInt(i)); - } - if (detailCase_ == 11) { - output.writeMessage(11, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 12) { - output.writeMessage(12, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 13) { - output.writeMessage(13, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 14) { - output.writeMessage(14, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (getExpireCondListList().size() > 0) { - output.writeUInt32NoTag(122); - output.writeUInt32NoTag(expireCondListMemoizedSerializedSize); - } - for (int i = 0; i < expireCondList_.size(); i++) { - output.writeUInt32NoTag(expireCondList_.getInt(i)); - } - if (detailCase_ == 16) { - output.writeMessage(16, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (selectedAvatarRewardId_ != 0) { - output.writeUInt32(17, selectedAvatarRewardId_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetActivityCoinMap(), - ActivityCoinMapDefaultEntryHolder.defaultEntry, - 18); - if (scoreLimit_ != 0) { - output.writeUInt32(19, scoreLimit_); - } - if (curScore_ != 0) { - output.writeUInt32(20, curScore_); - } - if (detailCase_ == 21) { - output.writeMessage(21, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (getTakenRewardListList().size() > 0) { - output.writeUInt32NoTag(194); - output.writeUInt32NoTag(takenRewardListMemoizedSerializedSize); - } - for (int i = 0; i < takenRewardList_.size(); i++) { - output.writeUInt32NoTag(takenRewardList_.getInt(i)); - } - if (detailCase_ == 25) { - output.writeMessage(25, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 31) { - output.writeMessage(31, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 32) { - output.writeMessage(32, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 35) { - output.writeMessage(35, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 41) { - output.writeMessage(41, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 42) { - output.writeMessage(42, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 43) { - output.writeMessage(43, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 44) { - output.writeMessage(44, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 51) { - output.writeMessage(51, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 52) { - output.writeMessage(52, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 61) { - output.writeMessage(61, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 62) { - output.writeMessage(62, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 63) { - output.writeMessage(63, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 64) { - output.writeMessage(64, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (activityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, activityId_); - } - if (scheduleId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, scheduleId_); - } - if (beginTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, beginTime_); - } - if (endTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, endTime_); - } - if (activityType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, activityType_); - } - if (isPlayOpenAnim_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, isPlayOpenAnim_); - } - if (isFinished_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, isFinished_); - } - if (isStarting_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, isStarting_); - } - for (int i = 0; i < watcherInfoList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, watcherInfoList_.get(i)); - } - { - int dataSize = 0; - for (int i = 0; i < meetCondList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(meetCondList_.getInt(i)); - } - size += dataSize; - if (!getMeetCondListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - meetCondListMemoizedSerializedSize = dataSize; - } - if (detailCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 13) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 14) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - { - int dataSize = 0; - for (int i = 0; i < expireCondList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(expireCondList_.getInt(i)); - } - size += dataSize; - if (!getExpireCondListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - expireCondListMemoizedSerializedSize = dataSize; - } - if (detailCase_ == 16) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (selectedAvatarRewardId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(17, selectedAvatarRewardId_); - } - for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry - : internalGetActivityCoinMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - activityCoinMap__ = ActivityCoinMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, activityCoinMap__); - } - if (scoreLimit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(19, scoreLimit_); - } - if (curScore_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(20, curScore_); - } - if (detailCase_ == 21) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - { - int dataSize = 0; - for (int i = 0; i < takenRewardList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(takenRewardList_.getInt(i)); - } - size += dataSize; - if (!getTakenRewardListList().isEmpty()) { - size += 2; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - takenRewardListMemoizedSerializedSize = dataSize; - } - if (detailCase_ == 25) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(25, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 31) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(31, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 32) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(32, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 35) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(35, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 41) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(41, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 42) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(42, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 43) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(43, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 44) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(44, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 51) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(51, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 52) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(52, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 61) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(61, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 62) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(62, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 63) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(63, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - if (detailCase_ == 64) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(64, (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo other = (emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo) obj; - - if (getActivityId() - != other.getActivityId()) return false; - if (getScheduleId() - != other.getScheduleId()) return false; - if (getBeginTime() - != other.getBeginTime()) return false; - if (getEndTime() - != other.getEndTime()) return false; - if (getActivityType() - != other.getActivityType()) return false; - if (getIsPlayOpenAnim() - != other.getIsPlayOpenAnim()) return false; - if (getIsFinished() - != other.getIsFinished()) return false; - if (getIsStarting() - != other.getIsStarting()) return false; - if (!getWatcherInfoListList() - .equals(other.getWatcherInfoListList())) return false; - if (!getMeetCondListList() - .equals(other.getMeetCondListList())) return false; - if (!getExpireCondListList() - .equals(other.getExpireCondListList())) return false; - if (getSelectedAvatarRewardId() - != other.getSelectedAvatarRewardId()) return false; - if (!internalGetActivityCoinMap().equals( - other.internalGetActivityCoinMap())) return false; - if (getScoreLimit() - != other.getScoreLimit()) return false; - if (getCurScore() - != other.getCurScore()) return false; - if (!getTakenRewardListList() - .equals(other.getTakenRewardListList())) return false; - if (!getDetailCase().equals(other.getDetailCase())) return false; - switch (detailCase_) { - case 11: - if (!getSamLampInfo() - .equals(other.getSamLampInfo())) return false; - break; - case 12: - if (!getCrucibleInfo() - .equals(other.getCrucibleInfo())) return false; - break; - case 13: - if (!getSalesmanInfo() - .equals(other.getSalesmanInfo())) return false; - break; - case 14: - if (!getTrialAvatarInfo() - .equals(other.getTrialAvatarInfo())) return false; - break; - case 16: - if (!getDeliveryInfo() - .equals(other.getDeliveryInfo())) return false; - break; - case 21: - if (!getAsterInfo() - .equals(other.getAsterInfo())) return false; - break; - case 25: - if (!getFlightInfo() - .equals(other.getFlightInfo())) return false; - break; - case 31: - if (!getDragonSpineInfo() - .equals(other.getDragonSpineInfo())) return false; - break; - case 32: - if (!getEffigyInfo() - .equals(other.getEffigyInfo())) return false; - break; - case 35: - if (!getTreasureMapInfo() - .equals(other.getTreasureMapInfo())) return false; - break; - case 41: - if (!getBlessingInfo() - .equals(other.getBlessingInfo())) return false; - break; - case 42: - if (!getSeaLampInfo() - .equals(other.getSeaLampInfo())) return false; - break; - case 43: - if (!getExpeditionInfo() - .equals(other.getExpeditionInfo())) return false; - break; - case 44: - if (!getArenaChallengeInfo() - .equals(other.getArenaChallengeInfo())) return false; - break; - case 51: - if (!getFleurFairInfo() - .equals(other.getFleurFairInfo())) return false; - break; - case 52: - if (!getWaterSpiritInfo() - .equals(other.getWaterSpiritInfo())) return false; - break; - case 61: - if (!getChallnelerSlabInfo() - .equals(other.getChallnelerSlabInfo())) return false; - break; - case 62: - if (!getMistTrialActivityInfo() - .equals(other.getMistTrialActivityInfo())) return false; - break; - case 63: - if (!getHideAndSeekInfo() - .equals(other.getHideAndSeekInfo())) return false; - break; - case 64: - if (!getFindHilichurlInfo() - .equals(other.getFindHilichurlInfo())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ACTIVITYID_FIELD_NUMBER; - hash = (53 * hash) + getActivityId(); - hash = (37 * hash) + SCHEDULEID_FIELD_NUMBER; - hash = (53 * hash) + getScheduleId(); - hash = (37 * hash) + BEGINTIME_FIELD_NUMBER; - hash = (53 * hash) + getBeginTime(); - hash = (37 * hash) + ENDTIME_FIELD_NUMBER; - hash = (53 * hash) + getEndTime(); - hash = (37 * hash) + ACTIVITYTYPE_FIELD_NUMBER; - hash = (53 * hash) + getActivityType(); - hash = (37 * hash) + ISPLAYOPENANIM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsPlayOpenAnim()); - hash = (37 * hash) + ISFINISHED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsFinished()); - hash = (37 * hash) + ISSTARTING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsStarting()); - if (getWatcherInfoListCount() > 0) { - hash = (37 * hash) + WATCHERINFOLIST_FIELD_NUMBER; - hash = (53 * hash) + getWatcherInfoListList().hashCode(); - } - if (getMeetCondListCount() > 0) { - hash = (37 * hash) + MEETCONDLIST_FIELD_NUMBER; - hash = (53 * hash) + getMeetCondListList().hashCode(); - } - if (getExpireCondListCount() > 0) { - hash = (37 * hash) + EXPIRECONDLIST_FIELD_NUMBER; - hash = (53 * hash) + getExpireCondListList().hashCode(); - } - hash = (37 * hash) + SELECTEDAVATARREWARDID_FIELD_NUMBER; - hash = (53 * hash) + getSelectedAvatarRewardId(); - if (!internalGetActivityCoinMap().getMap().isEmpty()) { - hash = (37 * hash) + ACTIVITYCOINMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetActivityCoinMap().hashCode(); - } - hash = (37 * hash) + SCORELIMIT_FIELD_NUMBER; - hash = (53 * hash) + getScoreLimit(); - hash = (37 * hash) + CURSCORE_FIELD_NUMBER; - hash = (53 * hash) + getCurScore(); - if (getTakenRewardListCount() > 0) { - hash = (37 * hash) + TAKENREWARDLIST_FIELD_NUMBER; - hash = (53 * hash) + getTakenRewardListList().hashCode(); - } - switch (detailCase_) { - case 11: - hash = (37 * hash) + SAMLAMPINFO_FIELD_NUMBER; - hash = (53 * hash) + getSamLampInfo().hashCode(); - break; - case 12: - hash = (37 * hash) + CRUCIBLEINFO_FIELD_NUMBER; - hash = (53 * hash) + getCrucibleInfo().hashCode(); - break; - case 13: - hash = (37 * hash) + SALESMANINFO_FIELD_NUMBER; - hash = (53 * hash) + getSalesmanInfo().hashCode(); - break; - case 14: - hash = (37 * hash) + TRIALAVATARINFO_FIELD_NUMBER; - hash = (53 * hash) + getTrialAvatarInfo().hashCode(); - break; - case 16: - hash = (37 * hash) + DELIVERYINFO_FIELD_NUMBER; - hash = (53 * hash) + getDeliveryInfo().hashCode(); - break; - case 21: - hash = (37 * hash) + ASTERINFO_FIELD_NUMBER; - hash = (53 * hash) + getAsterInfo().hashCode(); - break; - case 25: - hash = (37 * hash) + FLIGHTINFO_FIELD_NUMBER; - hash = (53 * hash) + getFlightInfo().hashCode(); - break; - case 31: - hash = (37 * hash) + DRAGONSPINEINFO_FIELD_NUMBER; - hash = (53 * hash) + getDragonSpineInfo().hashCode(); - break; - case 32: - hash = (37 * hash) + EFFIGYINFO_FIELD_NUMBER; - hash = (53 * hash) + getEffigyInfo().hashCode(); - break; - case 35: - hash = (37 * hash) + TREASUREMAPINFO_FIELD_NUMBER; - hash = (53 * hash) + getTreasureMapInfo().hashCode(); - break; - case 41: - hash = (37 * hash) + BLESSINGINFO_FIELD_NUMBER; - hash = (53 * hash) + getBlessingInfo().hashCode(); - break; - case 42: - hash = (37 * hash) + SEALAMPINFO_FIELD_NUMBER; - hash = (53 * hash) + getSeaLampInfo().hashCode(); - break; - case 43: - hash = (37 * hash) + EXPEDITIONINFO_FIELD_NUMBER; - hash = (53 * hash) + getExpeditionInfo().hashCode(); - break; - case 44: - hash = (37 * hash) + ARENACHALLENGEINFO_FIELD_NUMBER; - hash = (53 * hash) + getArenaChallengeInfo().hashCode(); - break; - case 51: - hash = (37 * hash) + FLEURFAIRINFO_FIELD_NUMBER; - hash = (53 * hash) + getFleurFairInfo().hashCode(); - break; - case 52: - hash = (37 * hash) + WATERSPIRITINFO_FIELD_NUMBER; - hash = (53 * hash) + getWaterSpiritInfo().hashCode(); - break; - case 61: - hash = (37 * hash) + CHALLNELERSLABINFO_FIELD_NUMBER; - hash = (53 * hash) + getChallnelerSlabInfo().hashCode(); - break; - case 62: - hash = (37 * hash) + MISTTRIALACTIVITYINFO_FIELD_NUMBER; - hash = (53 * hash) + getMistTrialActivityInfo().hashCode(); - break; - case 63: - hash = (37 * hash) + HIDEANDSEEKINFO_FIELD_NUMBER; - hash = (53 * hash) + getHideAndSeekInfo().hashCode(); - break; - case 64: - hash = (37 * hash) + FINDHILICHURLINFO_FIELD_NUMBER; - hash = (53 * hash) + getFindHilichurlInfo().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ActivityInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ActivityInfo) - emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ActivityInfoOuterClass.internal_static_ActivityInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 18: - return internalGetActivityCoinMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 18: - return internalGetMutableActivityCoinMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ActivityInfoOuterClass.internal_static_ActivityInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo.class, emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getWatcherInfoListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - activityId_ = 0; - - scheduleId_ = 0; - - beginTime_ = 0; - - endTime_ = 0; - - activityType_ = 0; - - isPlayOpenAnim_ = false; - - isFinished_ = false; - - isStarting_ = false; - - if (watcherInfoListBuilder_ == null) { - watcherInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - watcherInfoListBuilder_.clear(); - } - meetCondList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - expireCondList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000004); - selectedAvatarRewardId_ = 0; - - internalGetMutableActivityCoinMap().clear(); - scoreLimit_ = 0; - - curScore_ = 0; - - takenRewardList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000010); - detailCase_ = 0; - detail_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ActivityInfoOuterClass.internal_static_ActivityInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo build() { - emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo buildPartial() { - emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo result = new emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo(this); - int from_bitField0_ = bitField0_; - result.activityId_ = activityId_; - result.scheduleId_ = scheduleId_; - result.beginTime_ = beginTime_; - result.endTime_ = endTime_; - result.activityType_ = activityType_; - result.isPlayOpenAnim_ = isPlayOpenAnim_; - result.isFinished_ = isFinished_; - result.isStarting_ = isStarting_; - if (watcherInfoListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - watcherInfoList_ = java.util.Collections.unmodifiableList(watcherInfoList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.watcherInfoList_ = watcherInfoList_; - } else { - result.watcherInfoList_ = watcherInfoListBuilder_.build(); - } - if (((bitField0_ & 0x00000002) != 0)) { - meetCondList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.meetCondList_ = meetCondList_; - if (((bitField0_ & 0x00000004) != 0)) { - expireCondList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.expireCondList_ = expireCondList_; - result.selectedAvatarRewardId_ = selectedAvatarRewardId_; - result.activityCoinMap_ = internalGetActivityCoinMap(); - result.activityCoinMap_.makeImmutable(); - result.scoreLimit_ = scoreLimit_; - result.curScore_ = curScore_; - if (((bitField0_ & 0x00000010) != 0)) { - takenRewardList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.takenRewardList_ = takenRewardList_; - if (detailCase_ == 11) { - if (samLampInfoBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = samLampInfoBuilder_.build(); - } - } - if (detailCase_ == 12) { - if (crucibleInfoBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = crucibleInfoBuilder_.build(); - } - } - if (detailCase_ == 13) { - if (salesmanInfoBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = salesmanInfoBuilder_.build(); - } - } - if (detailCase_ == 14) { - if (trialAvatarInfoBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = trialAvatarInfoBuilder_.build(); - } - } - if (detailCase_ == 16) { - if (deliveryInfoBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = deliveryInfoBuilder_.build(); - } - } - if (detailCase_ == 21) { - if (asterInfoBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = asterInfoBuilder_.build(); - } - } - if (detailCase_ == 25) { - if (flightInfoBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = flightInfoBuilder_.build(); - } - } - if (detailCase_ == 31) { - if (dragonSpineInfoBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = dragonSpineInfoBuilder_.build(); - } - } - if (detailCase_ == 32) { - if (effigyInfoBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = effigyInfoBuilder_.build(); - } - } - if (detailCase_ == 35) { - if (treasureMapInfoBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = treasureMapInfoBuilder_.build(); - } - } - if (detailCase_ == 41) { - if (blessingInfoBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = blessingInfoBuilder_.build(); - } - } - if (detailCase_ == 42) { - if (seaLampInfoBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = seaLampInfoBuilder_.build(); - } - } - if (detailCase_ == 43) { - if (expeditionInfoBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = expeditionInfoBuilder_.build(); - } - } - if (detailCase_ == 44) { - if (arenaChallengeInfoBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = arenaChallengeInfoBuilder_.build(); - } - } - if (detailCase_ == 51) { - if (fleurFairInfoBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = fleurFairInfoBuilder_.build(); - } - } - if (detailCase_ == 52) { - if (waterSpiritInfoBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = waterSpiritInfoBuilder_.build(); - } - } - if (detailCase_ == 61) { - if (challnelerSlabInfoBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = challnelerSlabInfoBuilder_.build(); - } - } - if (detailCase_ == 62) { - if (mistTrialActivityInfoBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = mistTrialActivityInfoBuilder_.build(); - } - } - if (detailCase_ == 63) { - if (hideAndSeekInfoBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = hideAndSeekInfoBuilder_.build(); - } - } - if (detailCase_ == 64) { - if (findHilichurlInfoBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = findHilichurlInfoBuilder_.build(); - } - } - result.detailCase_ = detailCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo) { - return mergeFrom((emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo other) { - if (other == emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo.getDefaultInstance()) return this; - if (other.getActivityId() != 0) { - setActivityId(other.getActivityId()); - } - if (other.getScheduleId() != 0) { - setScheduleId(other.getScheduleId()); - } - if (other.getBeginTime() != 0) { - setBeginTime(other.getBeginTime()); - } - if (other.getEndTime() != 0) { - setEndTime(other.getEndTime()); - } - if (other.getActivityType() != 0) { - setActivityType(other.getActivityType()); - } - if (other.getIsPlayOpenAnim() != false) { - setIsPlayOpenAnim(other.getIsPlayOpenAnim()); - } - if (other.getIsFinished() != false) { - setIsFinished(other.getIsFinished()); - } - if (other.getIsStarting() != false) { - setIsStarting(other.getIsStarting()); - } - if (watcherInfoListBuilder_ == null) { - if (!other.watcherInfoList_.isEmpty()) { - if (watcherInfoList_.isEmpty()) { - watcherInfoList_ = other.watcherInfoList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureWatcherInfoListIsMutable(); - watcherInfoList_.addAll(other.watcherInfoList_); - } - onChanged(); - } - } else { - if (!other.watcherInfoList_.isEmpty()) { - if (watcherInfoListBuilder_.isEmpty()) { - watcherInfoListBuilder_.dispose(); - watcherInfoListBuilder_ = null; - watcherInfoList_ = other.watcherInfoList_; - bitField0_ = (bitField0_ & ~0x00000001); - watcherInfoListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWatcherInfoListFieldBuilder() : null; - } else { - watcherInfoListBuilder_.addAllMessages(other.watcherInfoList_); - } - } - } - if (!other.meetCondList_.isEmpty()) { - if (meetCondList_.isEmpty()) { - meetCondList_ = other.meetCondList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMeetCondListIsMutable(); - meetCondList_.addAll(other.meetCondList_); - } - onChanged(); - } - if (!other.expireCondList_.isEmpty()) { - if (expireCondList_.isEmpty()) { - expireCondList_ = other.expireCondList_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureExpireCondListIsMutable(); - expireCondList_.addAll(other.expireCondList_); - } - onChanged(); - } - if (other.getSelectedAvatarRewardId() != 0) { - setSelectedAvatarRewardId(other.getSelectedAvatarRewardId()); - } - internalGetMutableActivityCoinMap().mergeFrom( - other.internalGetActivityCoinMap()); - if (other.getScoreLimit() != 0) { - setScoreLimit(other.getScoreLimit()); - } - if (other.getCurScore() != 0) { - setCurScore(other.getCurScore()); - } - if (!other.takenRewardList_.isEmpty()) { - if (takenRewardList_.isEmpty()) { - takenRewardList_ = other.takenRewardList_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureTakenRewardListIsMutable(); - takenRewardList_.addAll(other.takenRewardList_); - } - onChanged(); - } - switch (other.getDetailCase()) { - case SAMLAMPINFO: { - mergeSamLampInfo(other.getSamLampInfo()); - break; - } - case CRUCIBLEINFO: { - mergeCrucibleInfo(other.getCrucibleInfo()); - break; - } - case SALESMANINFO: { - mergeSalesmanInfo(other.getSalesmanInfo()); - break; - } - case TRIALAVATARINFO: { - mergeTrialAvatarInfo(other.getTrialAvatarInfo()); - break; - } - case DELIVERYINFO: { - mergeDeliveryInfo(other.getDeliveryInfo()); - break; - } - case ASTERINFO: { - mergeAsterInfo(other.getAsterInfo()); - break; - } - case FLIGHTINFO: { - mergeFlightInfo(other.getFlightInfo()); - break; - } - case DRAGONSPINEINFO: { - mergeDragonSpineInfo(other.getDragonSpineInfo()); - break; - } - case EFFIGYINFO: { - mergeEffigyInfo(other.getEffigyInfo()); - break; - } - case TREASUREMAPINFO: { - mergeTreasureMapInfo(other.getTreasureMapInfo()); - break; - } - case BLESSINGINFO: { - mergeBlessingInfo(other.getBlessingInfo()); - break; - } - case SEALAMPINFO: { - mergeSeaLampInfo(other.getSeaLampInfo()); - break; - } - case EXPEDITIONINFO: { - mergeExpeditionInfo(other.getExpeditionInfo()); - break; - } - case ARENACHALLENGEINFO: { - mergeArenaChallengeInfo(other.getArenaChallengeInfo()); - break; - } - case FLEURFAIRINFO: { - mergeFleurFairInfo(other.getFleurFairInfo()); - break; - } - case WATERSPIRITINFO: { - mergeWaterSpiritInfo(other.getWaterSpiritInfo()); - break; - } - case CHALLNELERSLABINFO: { - mergeChallnelerSlabInfo(other.getChallnelerSlabInfo()); - break; - } - case MISTTRIALACTIVITYINFO: { - mergeMistTrialActivityInfo(other.getMistTrialActivityInfo()); - break; - } - case HIDEANDSEEKINFO: { - mergeHideAndSeekInfo(other.getHideAndSeekInfo()); - break; - } - case FINDHILICHURLINFO: { - mergeFindHilichurlInfo(other.getFindHilichurlInfo()); - break; - } - case DETAIL_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int detailCase_ = 0; - private java.lang.Object detail_; - public DetailCase - getDetailCase() { - return DetailCase.forNumber( - detailCase_); - } - - public Builder clearDetail() { - detailCase_ = 0; - detail_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private int activityId_ ; - /** - * <code>uint32 activityId = 1;</code> - * @return The activityId. - */ - @java.lang.Override - public int getActivityId() { - return activityId_; - } - /** - * <code>uint32 activityId = 1;</code> - * @param value The activityId to set. - * @return This builder for chaining. - */ - public Builder setActivityId(int value) { - - activityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 activityId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearActivityId() { - - activityId_ = 0; - onChanged(); - return this; - } - - private int scheduleId_ ; - /** - * <code>uint32 scheduleId = 2;</code> - * @return The scheduleId. - */ - @java.lang.Override - public int getScheduleId() { - return scheduleId_; - } - /** - * <code>uint32 scheduleId = 2;</code> - * @param value The scheduleId to set. - * @return This builder for chaining. - */ - public Builder setScheduleId(int value) { - - scheduleId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 scheduleId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearScheduleId() { - - scheduleId_ = 0; - onChanged(); - return this; - } - - private int beginTime_ ; - /** - * <code>uint32 beginTime = 3;</code> - * @return The beginTime. - */ - @java.lang.Override - public int getBeginTime() { - return beginTime_; - } - /** - * <code>uint32 beginTime = 3;</code> - * @param value The beginTime to set. - * @return This builder for chaining. - */ - public Builder setBeginTime(int value) { - - beginTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 beginTime = 3;</code> - * @return This builder for chaining. - */ - public Builder clearBeginTime() { - - beginTime_ = 0; - onChanged(); - return this; - } - - private int endTime_ ; - /** - * <code>uint32 endTime = 4;</code> - * @return The endTime. - */ - @java.lang.Override - public int getEndTime() { - return endTime_; - } - /** - * <code>uint32 endTime = 4;</code> - * @param value The endTime to set. - * @return This builder for chaining. - */ - public Builder setEndTime(int value) { - - endTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 endTime = 4;</code> - * @return This builder for chaining. - */ - public Builder clearEndTime() { - - endTime_ = 0; - onChanged(); - return this; - } - - private int activityType_ ; - /** - * <code>uint32 activityType = 5;</code> - * @return The activityType. - */ - @java.lang.Override - public int getActivityType() { - return activityType_; - } - /** - * <code>uint32 activityType = 5;</code> - * @param value The activityType to set. - * @return This builder for chaining. - */ - public Builder setActivityType(int value) { - - activityType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 activityType = 5;</code> - * @return This builder for chaining. - */ - public Builder clearActivityType() { - - activityType_ = 0; - onChanged(); - return this; - } - - private boolean isPlayOpenAnim_ ; - /** - * <code>bool isPlayOpenAnim = 6;</code> - * @return The isPlayOpenAnim. - */ - @java.lang.Override - public boolean getIsPlayOpenAnim() { - return isPlayOpenAnim_; - } - /** - * <code>bool isPlayOpenAnim = 6;</code> - * @param value The isPlayOpenAnim to set. - * @return This builder for chaining. - */ - public Builder setIsPlayOpenAnim(boolean value) { - - isPlayOpenAnim_ = value; - onChanged(); - return this; - } - /** - * <code>bool isPlayOpenAnim = 6;</code> - * @return This builder for chaining. - */ - public Builder clearIsPlayOpenAnim() { - - isPlayOpenAnim_ = false; - onChanged(); - return this; - } - - private boolean isFinished_ ; - /** - * <code>bool isFinished = 7;</code> - * @return The isFinished. - */ - @java.lang.Override - public boolean getIsFinished() { - return isFinished_; - } - /** - * <code>bool isFinished = 7;</code> - * @param value The isFinished to set. - * @return This builder for chaining. - */ - public Builder setIsFinished(boolean value) { - - isFinished_ = value; - onChanged(); - return this; - } - /** - * <code>bool isFinished = 7;</code> - * @return This builder for chaining. - */ - public Builder clearIsFinished() { - - isFinished_ = false; - onChanged(); - return this; - } - - private boolean isStarting_ ; - /** - * <code>bool isStarting = 8;</code> - * @return The isStarting. - */ - @java.lang.Override - public boolean getIsStarting() { - return isStarting_; - } - /** - * <code>bool isStarting = 8;</code> - * @param value The isStarting to set. - * @return This builder for chaining. - */ - public Builder setIsStarting(boolean value) { - - isStarting_ = value; - onChanged(); - return this; - } - /** - * <code>bool isStarting = 8;</code> - * @return This builder for chaining. - */ - public Builder clearIsStarting() { - - isStarting_ = false; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo> watcherInfoList_ = - java.util.Collections.emptyList(); - private void ensureWatcherInfoListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - watcherInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo>(watcherInfoList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo, emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo.Builder, emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfoOrBuilder> watcherInfoListBuilder_; - - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo> getWatcherInfoListList() { - if (watcherInfoListBuilder_ == null) { - return java.util.Collections.unmodifiableList(watcherInfoList_); - } else { - return watcherInfoListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - public int getWatcherInfoListCount() { - if (watcherInfoListBuilder_ == null) { - return watcherInfoList_.size(); - } else { - return watcherInfoListBuilder_.getCount(); - } - } - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - public emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo getWatcherInfoList(int index) { - if (watcherInfoListBuilder_ == null) { - return watcherInfoList_.get(index); - } else { - return watcherInfoListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - public Builder setWatcherInfoList( - int index, emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo value) { - if (watcherInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWatcherInfoListIsMutable(); - watcherInfoList_.set(index, value); - onChanged(); - } else { - watcherInfoListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - public Builder setWatcherInfoList( - int index, emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo.Builder builderForValue) { - if (watcherInfoListBuilder_ == null) { - ensureWatcherInfoListIsMutable(); - watcherInfoList_.set(index, builderForValue.build()); - onChanged(); - } else { - watcherInfoListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - public Builder addWatcherInfoList(emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo value) { - if (watcherInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWatcherInfoListIsMutable(); - watcherInfoList_.add(value); - onChanged(); - } else { - watcherInfoListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - public Builder addWatcherInfoList( - int index, emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo value) { - if (watcherInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWatcherInfoListIsMutable(); - watcherInfoList_.add(index, value); - onChanged(); - } else { - watcherInfoListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - public Builder addWatcherInfoList( - emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo.Builder builderForValue) { - if (watcherInfoListBuilder_ == null) { - ensureWatcherInfoListIsMutable(); - watcherInfoList_.add(builderForValue.build()); - onChanged(); - } else { - watcherInfoListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - public Builder addWatcherInfoList( - int index, emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo.Builder builderForValue) { - if (watcherInfoListBuilder_ == null) { - ensureWatcherInfoListIsMutable(); - watcherInfoList_.add(index, builderForValue.build()); - onChanged(); - } else { - watcherInfoListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - public Builder addAllWatcherInfoList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo> values) { - if (watcherInfoListBuilder_ == null) { - ensureWatcherInfoListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, watcherInfoList_); - onChanged(); - } else { - watcherInfoListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - public Builder clearWatcherInfoList() { - if (watcherInfoListBuilder_ == null) { - watcherInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - watcherInfoListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - public Builder removeWatcherInfoList(int index) { - if (watcherInfoListBuilder_ == null) { - ensureWatcherInfoListIsMutable(); - watcherInfoList_.remove(index); - onChanged(); - } else { - watcherInfoListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - public emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo.Builder getWatcherInfoListBuilder( - int index) { - return getWatcherInfoListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - public emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfoOrBuilder getWatcherInfoListOrBuilder( - int index) { - if (watcherInfoListBuilder_ == null) { - return watcherInfoList_.get(index); } else { - return watcherInfoListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfoOrBuilder> - getWatcherInfoListOrBuilderList() { - if (watcherInfoListBuilder_ != null) { - return watcherInfoListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(watcherInfoList_); - } - } - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - public emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo.Builder addWatcherInfoListBuilder() { - return getWatcherInfoListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo.getDefaultInstance()); - } - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - public emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo.Builder addWatcherInfoListBuilder( - int index) { - return getWatcherInfoListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo.getDefaultInstance()); - } - /** - * <code>repeated .ActivityWatcherInfo watcherInfoList = 9;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo.Builder> - getWatcherInfoListBuilderList() { - return getWatcherInfoListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo, emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo.Builder, emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfoOrBuilder> - getWatcherInfoListFieldBuilder() { - if (watcherInfoListBuilder_ == null) { - watcherInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo, emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo.Builder, emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfoOrBuilder>( - watcherInfoList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - watcherInfoList_ = null; - } - return watcherInfoListBuilder_; - } - - private com.google.protobuf.Internal.IntList meetCondList_ = emptyIntList(); - private void ensureMeetCondListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - meetCondList_ = mutableCopy(meetCondList_); - bitField0_ |= 0x00000002; - } - } - /** - * <code>repeated uint32 meetCondList = 10;</code> - * @return A list containing the meetCondList. - */ - public java.util.List<java.lang.Integer> - getMeetCondListList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(meetCondList_) : meetCondList_; - } - /** - * <code>repeated uint32 meetCondList = 10;</code> - * @return The count of meetCondList. - */ - public int getMeetCondListCount() { - return meetCondList_.size(); - } - /** - * <code>repeated uint32 meetCondList = 10;</code> - * @param index The index of the element to return. - * @return The meetCondList at the given index. - */ - public int getMeetCondList(int index) { - return meetCondList_.getInt(index); - } - /** - * <code>repeated uint32 meetCondList = 10;</code> - * @param index The index to set the value at. - * @param value The meetCondList to set. - * @return This builder for chaining. - */ - public Builder setMeetCondList( - int index, int value) { - ensureMeetCondListIsMutable(); - meetCondList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 meetCondList = 10;</code> - * @param value The meetCondList to add. - * @return This builder for chaining. - */ - public Builder addMeetCondList(int value) { - ensureMeetCondListIsMutable(); - meetCondList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 meetCondList = 10;</code> - * @param values The meetCondList to add. - * @return This builder for chaining. - */ - public Builder addAllMeetCondList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureMeetCondListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, meetCondList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 meetCondList = 10;</code> - * @return This builder for chaining. - */ - public Builder clearMeetCondList() { - meetCondList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList expireCondList_ = emptyIntList(); - private void ensureExpireCondListIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - expireCondList_ = mutableCopy(expireCondList_); - bitField0_ |= 0x00000004; - } - } - /** - * <code>repeated uint32 expireCondList = 15;</code> - * @return A list containing the expireCondList. - */ - public java.util.List<java.lang.Integer> - getExpireCondListList() { - return ((bitField0_ & 0x00000004) != 0) ? - java.util.Collections.unmodifiableList(expireCondList_) : expireCondList_; - } - /** - * <code>repeated uint32 expireCondList = 15;</code> - * @return The count of expireCondList. - */ - public int getExpireCondListCount() { - return expireCondList_.size(); - } - /** - * <code>repeated uint32 expireCondList = 15;</code> - * @param index The index of the element to return. - * @return The expireCondList at the given index. - */ - public int getExpireCondList(int index) { - return expireCondList_.getInt(index); - } - /** - * <code>repeated uint32 expireCondList = 15;</code> - * @param index The index to set the value at. - * @param value The expireCondList to set. - * @return This builder for chaining. - */ - public Builder setExpireCondList( - int index, int value) { - ensureExpireCondListIsMutable(); - expireCondList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 expireCondList = 15;</code> - * @param value The expireCondList to add. - * @return This builder for chaining. - */ - public Builder addExpireCondList(int value) { - ensureExpireCondListIsMutable(); - expireCondList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 expireCondList = 15;</code> - * @param values The expireCondList to add. - * @return This builder for chaining. - */ - public Builder addAllExpireCondList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureExpireCondListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, expireCondList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 expireCondList = 15;</code> - * @return This builder for chaining. - */ - public Builder clearExpireCondList() { - expireCondList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - private int selectedAvatarRewardId_ ; - /** - * <code>uint32 selectedAvatarRewardId = 17;</code> - * @return The selectedAvatarRewardId. - */ - @java.lang.Override - public int getSelectedAvatarRewardId() { - return selectedAvatarRewardId_; - } - /** - * <code>uint32 selectedAvatarRewardId = 17;</code> - * @param value The selectedAvatarRewardId to set. - * @return This builder for chaining. - */ - public Builder setSelectedAvatarRewardId(int value) { - - selectedAvatarRewardId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 selectedAvatarRewardId = 17;</code> - * @return This builder for chaining. - */ - public Builder clearSelectedAvatarRewardId() { - - selectedAvatarRewardId_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> activityCoinMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetActivityCoinMap() { - if (activityCoinMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ActivityCoinMapDefaultEntryHolder.defaultEntry); - } - return activityCoinMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetMutableActivityCoinMap() { - onChanged();; - if (activityCoinMap_ == null) { - activityCoinMap_ = com.google.protobuf.MapField.newMapField( - ActivityCoinMapDefaultEntryHolder.defaultEntry); - } - if (!activityCoinMap_.isMutable()) { - activityCoinMap_ = activityCoinMap_.copy(); - } - return activityCoinMap_; - } - - public int getActivityCoinMapCount() { - return internalGetActivityCoinMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> activityCoinMap = 18;</code> - */ - - @java.lang.Override - public boolean containsActivityCoinMap( - int key) { - - return internalGetActivityCoinMap().getMap().containsKey(key); - } - /** - * Use {@link #getActivityCoinMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getActivityCoinMap() { - return getActivityCoinMapMap(); - } - /** - * <code>map<uint32, uint32> activityCoinMap = 18;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getActivityCoinMapMap() { - return internalGetActivityCoinMap().getMap(); - } - /** - * <code>map<uint32, uint32> activityCoinMap = 18;</code> - */ - @java.lang.Override - - public int getActivityCoinMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetActivityCoinMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> activityCoinMap = 18;</code> - */ - @java.lang.Override - - public int getActivityCoinMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetActivityCoinMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearActivityCoinMap() { - internalGetMutableActivityCoinMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, uint32> activityCoinMap = 18;</code> - */ - - public Builder removeActivityCoinMap( - int key) { - - internalGetMutableActivityCoinMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> - getMutableActivityCoinMap() { - return internalGetMutableActivityCoinMap().getMutableMap(); - } - /** - * <code>map<uint32, uint32> activityCoinMap = 18;</code> - */ - public Builder putActivityCoinMap( - int key, - int value) { - - - internalGetMutableActivityCoinMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, uint32> activityCoinMap = 18;</code> - */ - - public Builder putAllActivityCoinMap( - java.util.Map<java.lang.Integer, java.lang.Integer> values) { - internalGetMutableActivityCoinMap().getMutableMap() - .putAll(values); - return this; - } - - private int scoreLimit_ ; - /** - * <code>uint32 scoreLimit = 19;</code> - * @return The scoreLimit. - */ - @java.lang.Override - public int getScoreLimit() { - return scoreLimit_; - } - /** - * <code>uint32 scoreLimit = 19;</code> - * @param value The scoreLimit to set. - * @return This builder for chaining. - */ - public Builder setScoreLimit(int value) { - - scoreLimit_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 scoreLimit = 19;</code> - * @return This builder for chaining. - */ - public Builder clearScoreLimit() { - - scoreLimit_ = 0; - onChanged(); - return this; - } - - private int curScore_ ; - /** - * <code>uint32 curScore = 20;</code> - * @return The curScore. - */ - @java.lang.Override - public int getCurScore() { - return curScore_; - } - /** - * <code>uint32 curScore = 20;</code> - * @param value The curScore to set. - * @return This builder for chaining. - */ - public Builder setCurScore(int value) { - - curScore_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 curScore = 20;</code> - * @return This builder for chaining. - */ - public Builder clearCurScore() { - - curScore_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList takenRewardList_ = emptyIntList(); - private void ensureTakenRewardListIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - takenRewardList_ = mutableCopy(takenRewardList_); - bitField0_ |= 0x00000010; - } - } - /** - * <code>repeated uint32 takenRewardList = 24;</code> - * @return A list containing the takenRewardList. - */ - public java.util.List<java.lang.Integer> - getTakenRewardListList() { - return ((bitField0_ & 0x00000010) != 0) ? - java.util.Collections.unmodifiableList(takenRewardList_) : takenRewardList_; - } - /** - * <code>repeated uint32 takenRewardList = 24;</code> - * @return The count of takenRewardList. - */ - public int getTakenRewardListCount() { - return takenRewardList_.size(); - } - /** - * <code>repeated uint32 takenRewardList = 24;</code> - * @param index The index of the element to return. - * @return The takenRewardList at the given index. - */ - public int getTakenRewardList(int index) { - return takenRewardList_.getInt(index); - } - /** - * <code>repeated uint32 takenRewardList = 24;</code> - * @param index The index to set the value at. - * @param value The takenRewardList to set. - * @return This builder for chaining. - */ - public Builder setTakenRewardList( - int index, int value) { - ensureTakenRewardListIsMutable(); - takenRewardList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 takenRewardList = 24;</code> - * @param value The takenRewardList to add. - * @return This builder for chaining. - */ - public Builder addTakenRewardList(int value) { - ensureTakenRewardListIsMutable(); - takenRewardList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 takenRewardList = 24;</code> - * @param values The takenRewardList to add. - * @return This builder for chaining. - */ - public Builder addAllTakenRewardList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureTakenRewardListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, takenRewardList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 takenRewardList = 24;</code> - * @return This builder for chaining. - */ - public Builder clearTakenRewardList() { - takenRewardList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> samLampInfoBuilder_; - /** - * <code>.ActivityNullDetailInfo samLampInfo = 11;</code> - * @return Whether the samLampInfo field is set. - */ - @java.lang.Override - public boolean hasSamLampInfo() { - return detailCase_ == 11; - } - /** - * <code>.ActivityNullDetailInfo samLampInfo = 11;</code> - * @return The samLampInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getSamLampInfo() { - if (samLampInfoBuilder_ == null) { - if (detailCase_ == 11) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } else { - if (detailCase_ == 11) { - return samLampInfoBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo samLampInfo = 11;</code> - */ - public Builder setSamLampInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (samLampInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - detail_ = value; - onChanged(); - } else { - samLampInfoBuilder_.setMessage(value); - } - detailCase_ = 11; - return this; - } - /** - * <code>.ActivityNullDetailInfo samLampInfo = 11;</code> - */ - public Builder setSamLampInfo( - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder builderForValue) { - if (samLampInfoBuilder_ == null) { - detail_ = builderForValue.build(); - onChanged(); - } else { - samLampInfoBuilder_.setMessage(builderForValue.build()); - } - detailCase_ = 11; - return this; - } - /** - * <code>.ActivityNullDetailInfo samLampInfo = 11;</code> - */ - public Builder mergeSamLampInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (samLampInfoBuilder_ == null) { - if (detailCase_ == 11 && - detail_ != emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance()) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.newBuilder((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_) - .mergeFrom(value).buildPartial(); - } else { - detail_ = value; - } - onChanged(); - } else { - if (detailCase_ == 11) { - samLampInfoBuilder_.mergeFrom(value); - } - samLampInfoBuilder_.setMessage(value); - } - detailCase_ = 11; - return this; - } - /** - * <code>.ActivityNullDetailInfo samLampInfo = 11;</code> - */ - public Builder clearSamLampInfo() { - if (samLampInfoBuilder_ == null) { - if (detailCase_ == 11) { - detailCase_ = 0; - detail_ = null; - onChanged(); - } - } else { - if (detailCase_ == 11) { - detailCase_ = 0; - detail_ = null; - } - samLampInfoBuilder_.clear(); - } - return this; - } - /** - * <code>.ActivityNullDetailInfo samLampInfo = 11;</code> - */ - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getSamLampInfoBuilder() { - return getSamLampInfoFieldBuilder().getBuilder(); - } - /** - * <code>.ActivityNullDetailInfo samLampInfo = 11;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getSamLampInfoOrBuilder() { - if ((detailCase_ == 11) && (samLampInfoBuilder_ != null)) { - return samLampInfoBuilder_.getMessageOrBuilder(); - } else { - if (detailCase_ == 11) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo samLampInfo = 11;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> - getSamLampInfoFieldBuilder() { - if (samLampInfoBuilder_ == null) { - if (!(detailCase_ == 11)) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - samLampInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder>( - (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_, - getParentForChildren(), - isClean()); - detail_ = null; - } - detailCase_ = 11; - onChanged();; - return samLampInfoBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> crucibleInfoBuilder_; - /** - * <code>.ActivityNullDetailInfo crucibleInfo = 12;</code> - * @return Whether the crucibleInfo field is set. - */ - @java.lang.Override - public boolean hasCrucibleInfo() { - return detailCase_ == 12; - } - /** - * <code>.ActivityNullDetailInfo crucibleInfo = 12;</code> - * @return The crucibleInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getCrucibleInfo() { - if (crucibleInfoBuilder_ == null) { - if (detailCase_ == 12) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } else { - if (detailCase_ == 12) { - return crucibleInfoBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo crucibleInfo = 12;</code> - */ - public Builder setCrucibleInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (crucibleInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - detail_ = value; - onChanged(); - } else { - crucibleInfoBuilder_.setMessage(value); - } - detailCase_ = 12; - return this; - } - /** - * <code>.ActivityNullDetailInfo crucibleInfo = 12;</code> - */ - public Builder setCrucibleInfo( - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder builderForValue) { - if (crucibleInfoBuilder_ == null) { - detail_ = builderForValue.build(); - onChanged(); - } else { - crucibleInfoBuilder_.setMessage(builderForValue.build()); - } - detailCase_ = 12; - return this; - } - /** - * <code>.ActivityNullDetailInfo crucibleInfo = 12;</code> - */ - public Builder mergeCrucibleInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (crucibleInfoBuilder_ == null) { - if (detailCase_ == 12 && - detail_ != emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance()) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.newBuilder((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_) - .mergeFrom(value).buildPartial(); - } else { - detail_ = value; - } - onChanged(); - } else { - if (detailCase_ == 12) { - crucibleInfoBuilder_.mergeFrom(value); - } - crucibleInfoBuilder_.setMessage(value); - } - detailCase_ = 12; - return this; - } - /** - * <code>.ActivityNullDetailInfo crucibleInfo = 12;</code> - */ - public Builder clearCrucibleInfo() { - if (crucibleInfoBuilder_ == null) { - if (detailCase_ == 12) { - detailCase_ = 0; - detail_ = null; - onChanged(); - } - } else { - if (detailCase_ == 12) { - detailCase_ = 0; - detail_ = null; - } - crucibleInfoBuilder_.clear(); - } - return this; - } - /** - * <code>.ActivityNullDetailInfo crucibleInfo = 12;</code> - */ - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getCrucibleInfoBuilder() { - return getCrucibleInfoFieldBuilder().getBuilder(); - } - /** - * <code>.ActivityNullDetailInfo crucibleInfo = 12;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getCrucibleInfoOrBuilder() { - if ((detailCase_ == 12) && (crucibleInfoBuilder_ != null)) { - return crucibleInfoBuilder_.getMessageOrBuilder(); - } else { - if (detailCase_ == 12) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo crucibleInfo = 12;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> - getCrucibleInfoFieldBuilder() { - if (crucibleInfoBuilder_ == null) { - if (!(detailCase_ == 12)) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - crucibleInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder>( - (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_, - getParentForChildren(), - isClean()); - detail_ = null; - } - detailCase_ = 12; - onChanged();; - return crucibleInfoBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> salesmanInfoBuilder_; - /** - * <code>.ActivityNullDetailInfo salesmanInfo = 13;</code> - * @return Whether the salesmanInfo field is set. - */ - @java.lang.Override - public boolean hasSalesmanInfo() { - return detailCase_ == 13; - } - /** - * <code>.ActivityNullDetailInfo salesmanInfo = 13;</code> - * @return The salesmanInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getSalesmanInfo() { - if (salesmanInfoBuilder_ == null) { - if (detailCase_ == 13) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } else { - if (detailCase_ == 13) { - return salesmanInfoBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo salesmanInfo = 13;</code> - */ - public Builder setSalesmanInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (salesmanInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - detail_ = value; - onChanged(); - } else { - salesmanInfoBuilder_.setMessage(value); - } - detailCase_ = 13; - return this; - } - /** - * <code>.ActivityNullDetailInfo salesmanInfo = 13;</code> - */ - public Builder setSalesmanInfo( - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder builderForValue) { - if (salesmanInfoBuilder_ == null) { - detail_ = builderForValue.build(); - onChanged(); - } else { - salesmanInfoBuilder_.setMessage(builderForValue.build()); - } - detailCase_ = 13; - return this; - } - /** - * <code>.ActivityNullDetailInfo salesmanInfo = 13;</code> - */ - public Builder mergeSalesmanInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (salesmanInfoBuilder_ == null) { - if (detailCase_ == 13 && - detail_ != emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance()) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.newBuilder((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_) - .mergeFrom(value).buildPartial(); - } else { - detail_ = value; - } - onChanged(); - } else { - if (detailCase_ == 13) { - salesmanInfoBuilder_.mergeFrom(value); - } - salesmanInfoBuilder_.setMessage(value); - } - detailCase_ = 13; - return this; - } - /** - * <code>.ActivityNullDetailInfo salesmanInfo = 13;</code> - */ - public Builder clearSalesmanInfo() { - if (salesmanInfoBuilder_ == null) { - if (detailCase_ == 13) { - detailCase_ = 0; - detail_ = null; - onChanged(); - } - } else { - if (detailCase_ == 13) { - detailCase_ = 0; - detail_ = null; - } - salesmanInfoBuilder_.clear(); - } - return this; - } - /** - * <code>.ActivityNullDetailInfo salesmanInfo = 13;</code> - */ - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getSalesmanInfoBuilder() { - return getSalesmanInfoFieldBuilder().getBuilder(); - } - /** - * <code>.ActivityNullDetailInfo salesmanInfo = 13;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getSalesmanInfoOrBuilder() { - if ((detailCase_ == 13) && (salesmanInfoBuilder_ != null)) { - return salesmanInfoBuilder_.getMessageOrBuilder(); - } else { - if (detailCase_ == 13) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo salesmanInfo = 13;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> - getSalesmanInfoFieldBuilder() { - if (salesmanInfoBuilder_ == null) { - if (!(detailCase_ == 13)) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - salesmanInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder>( - (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_, - getParentForChildren(), - isClean()); - detail_ = null; - } - detailCase_ = 13; - onChanged();; - return salesmanInfoBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> trialAvatarInfoBuilder_; - /** - * <code>.ActivityNullDetailInfo trialAvatarInfo = 14;</code> - * @return Whether the trialAvatarInfo field is set. - */ - @java.lang.Override - public boolean hasTrialAvatarInfo() { - return detailCase_ == 14; - } - /** - * <code>.ActivityNullDetailInfo trialAvatarInfo = 14;</code> - * @return The trialAvatarInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getTrialAvatarInfo() { - if (trialAvatarInfoBuilder_ == null) { - if (detailCase_ == 14) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } else { - if (detailCase_ == 14) { - return trialAvatarInfoBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo trialAvatarInfo = 14;</code> - */ - public Builder setTrialAvatarInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (trialAvatarInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - detail_ = value; - onChanged(); - } else { - trialAvatarInfoBuilder_.setMessage(value); - } - detailCase_ = 14; - return this; - } - /** - * <code>.ActivityNullDetailInfo trialAvatarInfo = 14;</code> - */ - public Builder setTrialAvatarInfo( - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder builderForValue) { - if (trialAvatarInfoBuilder_ == null) { - detail_ = builderForValue.build(); - onChanged(); - } else { - trialAvatarInfoBuilder_.setMessage(builderForValue.build()); - } - detailCase_ = 14; - return this; - } - /** - * <code>.ActivityNullDetailInfo trialAvatarInfo = 14;</code> - */ - public Builder mergeTrialAvatarInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (trialAvatarInfoBuilder_ == null) { - if (detailCase_ == 14 && - detail_ != emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance()) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.newBuilder((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_) - .mergeFrom(value).buildPartial(); - } else { - detail_ = value; - } - onChanged(); - } else { - if (detailCase_ == 14) { - trialAvatarInfoBuilder_.mergeFrom(value); - } - trialAvatarInfoBuilder_.setMessage(value); - } - detailCase_ = 14; - return this; - } - /** - * <code>.ActivityNullDetailInfo trialAvatarInfo = 14;</code> - */ - public Builder clearTrialAvatarInfo() { - if (trialAvatarInfoBuilder_ == null) { - if (detailCase_ == 14) { - detailCase_ = 0; - detail_ = null; - onChanged(); - } - } else { - if (detailCase_ == 14) { - detailCase_ = 0; - detail_ = null; - } - trialAvatarInfoBuilder_.clear(); - } - return this; - } - /** - * <code>.ActivityNullDetailInfo trialAvatarInfo = 14;</code> - */ - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getTrialAvatarInfoBuilder() { - return getTrialAvatarInfoFieldBuilder().getBuilder(); - } - /** - * <code>.ActivityNullDetailInfo trialAvatarInfo = 14;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getTrialAvatarInfoOrBuilder() { - if ((detailCase_ == 14) && (trialAvatarInfoBuilder_ != null)) { - return trialAvatarInfoBuilder_.getMessageOrBuilder(); - } else { - if (detailCase_ == 14) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo trialAvatarInfo = 14;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> - getTrialAvatarInfoFieldBuilder() { - if (trialAvatarInfoBuilder_ == null) { - if (!(detailCase_ == 14)) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - trialAvatarInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder>( - (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_, - getParentForChildren(), - isClean()); - detail_ = null; - } - detailCase_ = 14; - onChanged();; - return trialAvatarInfoBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> deliveryInfoBuilder_; - /** - * <code>.ActivityNullDetailInfo deliveryInfo = 16;</code> - * @return Whether the deliveryInfo field is set. - */ - @java.lang.Override - public boolean hasDeliveryInfo() { - return detailCase_ == 16; - } - /** - * <code>.ActivityNullDetailInfo deliveryInfo = 16;</code> - * @return The deliveryInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getDeliveryInfo() { - if (deliveryInfoBuilder_ == null) { - if (detailCase_ == 16) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } else { - if (detailCase_ == 16) { - return deliveryInfoBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo deliveryInfo = 16;</code> - */ - public Builder setDeliveryInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (deliveryInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - detail_ = value; - onChanged(); - } else { - deliveryInfoBuilder_.setMessage(value); - } - detailCase_ = 16; - return this; - } - /** - * <code>.ActivityNullDetailInfo deliveryInfo = 16;</code> - */ - public Builder setDeliveryInfo( - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder builderForValue) { - if (deliveryInfoBuilder_ == null) { - detail_ = builderForValue.build(); - onChanged(); - } else { - deliveryInfoBuilder_.setMessage(builderForValue.build()); - } - detailCase_ = 16; - return this; - } - /** - * <code>.ActivityNullDetailInfo deliveryInfo = 16;</code> - */ - public Builder mergeDeliveryInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (deliveryInfoBuilder_ == null) { - if (detailCase_ == 16 && - detail_ != emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance()) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.newBuilder((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_) - .mergeFrom(value).buildPartial(); - } else { - detail_ = value; - } - onChanged(); - } else { - if (detailCase_ == 16) { - deliveryInfoBuilder_.mergeFrom(value); - } - deliveryInfoBuilder_.setMessage(value); - } - detailCase_ = 16; - return this; - } - /** - * <code>.ActivityNullDetailInfo deliveryInfo = 16;</code> - */ - public Builder clearDeliveryInfo() { - if (deliveryInfoBuilder_ == null) { - if (detailCase_ == 16) { - detailCase_ = 0; - detail_ = null; - onChanged(); - } - } else { - if (detailCase_ == 16) { - detailCase_ = 0; - detail_ = null; - } - deliveryInfoBuilder_.clear(); - } - return this; - } - /** - * <code>.ActivityNullDetailInfo deliveryInfo = 16;</code> - */ - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getDeliveryInfoBuilder() { - return getDeliveryInfoFieldBuilder().getBuilder(); - } - /** - * <code>.ActivityNullDetailInfo deliveryInfo = 16;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getDeliveryInfoOrBuilder() { - if ((detailCase_ == 16) && (deliveryInfoBuilder_ != null)) { - return deliveryInfoBuilder_.getMessageOrBuilder(); - } else { - if (detailCase_ == 16) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo deliveryInfo = 16;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> - getDeliveryInfoFieldBuilder() { - if (deliveryInfoBuilder_ == null) { - if (!(detailCase_ == 16)) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - deliveryInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder>( - (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_, - getParentForChildren(), - isClean()); - detail_ = null; - } - detailCase_ = 16; - onChanged();; - return deliveryInfoBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> asterInfoBuilder_; - /** - * <code>.ActivityNullDetailInfo asterInfo = 21;</code> - * @return Whether the asterInfo field is set. - */ - @java.lang.Override - public boolean hasAsterInfo() { - return detailCase_ == 21; - } - /** - * <code>.ActivityNullDetailInfo asterInfo = 21;</code> - * @return The asterInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getAsterInfo() { - if (asterInfoBuilder_ == null) { - if (detailCase_ == 21) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } else { - if (detailCase_ == 21) { - return asterInfoBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo asterInfo = 21;</code> - */ - public Builder setAsterInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (asterInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - detail_ = value; - onChanged(); - } else { - asterInfoBuilder_.setMessage(value); - } - detailCase_ = 21; - return this; - } - /** - * <code>.ActivityNullDetailInfo asterInfo = 21;</code> - */ - public Builder setAsterInfo( - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder builderForValue) { - if (asterInfoBuilder_ == null) { - detail_ = builderForValue.build(); - onChanged(); - } else { - asterInfoBuilder_.setMessage(builderForValue.build()); - } - detailCase_ = 21; - return this; - } - /** - * <code>.ActivityNullDetailInfo asterInfo = 21;</code> - */ - public Builder mergeAsterInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (asterInfoBuilder_ == null) { - if (detailCase_ == 21 && - detail_ != emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance()) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.newBuilder((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_) - .mergeFrom(value).buildPartial(); - } else { - detail_ = value; - } - onChanged(); - } else { - if (detailCase_ == 21) { - asterInfoBuilder_.mergeFrom(value); - } - asterInfoBuilder_.setMessage(value); - } - detailCase_ = 21; - return this; - } - /** - * <code>.ActivityNullDetailInfo asterInfo = 21;</code> - */ - public Builder clearAsterInfo() { - if (asterInfoBuilder_ == null) { - if (detailCase_ == 21) { - detailCase_ = 0; - detail_ = null; - onChanged(); - } - } else { - if (detailCase_ == 21) { - detailCase_ = 0; - detail_ = null; - } - asterInfoBuilder_.clear(); - } - return this; - } - /** - * <code>.ActivityNullDetailInfo asterInfo = 21;</code> - */ - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getAsterInfoBuilder() { - return getAsterInfoFieldBuilder().getBuilder(); - } - /** - * <code>.ActivityNullDetailInfo asterInfo = 21;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getAsterInfoOrBuilder() { - if ((detailCase_ == 21) && (asterInfoBuilder_ != null)) { - return asterInfoBuilder_.getMessageOrBuilder(); - } else { - if (detailCase_ == 21) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo asterInfo = 21;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> - getAsterInfoFieldBuilder() { - if (asterInfoBuilder_ == null) { - if (!(detailCase_ == 21)) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - asterInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder>( - (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_, - getParentForChildren(), - isClean()); - detail_ = null; - } - detailCase_ = 21; - onChanged();; - return asterInfoBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> flightInfoBuilder_; - /** - * <code>.ActivityNullDetailInfo flightInfo = 25;</code> - * @return Whether the flightInfo field is set. - */ - @java.lang.Override - public boolean hasFlightInfo() { - return detailCase_ == 25; - } - /** - * <code>.ActivityNullDetailInfo flightInfo = 25;</code> - * @return The flightInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getFlightInfo() { - if (flightInfoBuilder_ == null) { - if (detailCase_ == 25) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } else { - if (detailCase_ == 25) { - return flightInfoBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo flightInfo = 25;</code> - */ - public Builder setFlightInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (flightInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - detail_ = value; - onChanged(); - } else { - flightInfoBuilder_.setMessage(value); - } - detailCase_ = 25; - return this; - } - /** - * <code>.ActivityNullDetailInfo flightInfo = 25;</code> - */ - public Builder setFlightInfo( - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder builderForValue) { - if (flightInfoBuilder_ == null) { - detail_ = builderForValue.build(); - onChanged(); - } else { - flightInfoBuilder_.setMessage(builderForValue.build()); - } - detailCase_ = 25; - return this; - } - /** - * <code>.ActivityNullDetailInfo flightInfo = 25;</code> - */ - public Builder mergeFlightInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (flightInfoBuilder_ == null) { - if (detailCase_ == 25 && - detail_ != emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance()) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.newBuilder((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_) - .mergeFrom(value).buildPartial(); - } else { - detail_ = value; - } - onChanged(); - } else { - if (detailCase_ == 25) { - flightInfoBuilder_.mergeFrom(value); - } - flightInfoBuilder_.setMessage(value); - } - detailCase_ = 25; - return this; - } - /** - * <code>.ActivityNullDetailInfo flightInfo = 25;</code> - */ - public Builder clearFlightInfo() { - if (flightInfoBuilder_ == null) { - if (detailCase_ == 25) { - detailCase_ = 0; - detail_ = null; - onChanged(); - } - } else { - if (detailCase_ == 25) { - detailCase_ = 0; - detail_ = null; - } - flightInfoBuilder_.clear(); - } - return this; - } - /** - * <code>.ActivityNullDetailInfo flightInfo = 25;</code> - */ - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getFlightInfoBuilder() { - return getFlightInfoFieldBuilder().getBuilder(); - } - /** - * <code>.ActivityNullDetailInfo flightInfo = 25;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getFlightInfoOrBuilder() { - if ((detailCase_ == 25) && (flightInfoBuilder_ != null)) { - return flightInfoBuilder_.getMessageOrBuilder(); - } else { - if (detailCase_ == 25) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo flightInfo = 25;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> - getFlightInfoFieldBuilder() { - if (flightInfoBuilder_ == null) { - if (!(detailCase_ == 25)) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - flightInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder>( - (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_, - getParentForChildren(), - isClean()); - detail_ = null; - } - detailCase_ = 25; - onChanged();; - return flightInfoBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> dragonSpineInfoBuilder_; - /** - * <code>.ActivityNullDetailInfo dragonSpineInfo = 31;</code> - * @return Whether the dragonSpineInfo field is set. - */ - @java.lang.Override - public boolean hasDragonSpineInfo() { - return detailCase_ == 31; - } - /** - * <code>.ActivityNullDetailInfo dragonSpineInfo = 31;</code> - * @return The dragonSpineInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getDragonSpineInfo() { - if (dragonSpineInfoBuilder_ == null) { - if (detailCase_ == 31) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } else { - if (detailCase_ == 31) { - return dragonSpineInfoBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo dragonSpineInfo = 31;</code> - */ - public Builder setDragonSpineInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (dragonSpineInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - detail_ = value; - onChanged(); - } else { - dragonSpineInfoBuilder_.setMessage(value); - } - detailCase_ = 31; - return this; - } - /** - * <code>.ActivityNullDetailInfo dragonSpineInfo = 31;</code> - */ - public Builder setDragonSpineInfo( - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder builderForValue) { - if (dragonSpineInfoBuilder_ == null) { - detail_ = builderForValue.build(); - onChanged(); - } else { - dragonSpineInfoBuilder_.setMessage(builderForValue.build()); - } - detailCase_ = 31; - return this; - } - /** - * <code>.ActivityNullDetailInfo dragonSpineInfo = 31;</code> - */ - public Builder mergeDragonSpineInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (dragonSpineInfoBuilder_ == null) { - if (detailCase_ == 31 && - detail_ != emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance()) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.newBuilder((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_) - .mergeFrom(value).buildPartial(); - } else { - detail_ = value; - } - onChanged(); - } else { - if (detailCase_ == 31) { - dragonSpineInfoBuilder_.mergeFrom(value); - } - dragonSpineInfoBuilder_.setMessage(value); - } - detailCase_ = 31; - return this; - } - /** - * <code>.ActivityNullDetailInfo dragonSpineInfo = 31;</code> - */ - public Builder clearDragonSpineInfo() { - if (dragonSpineInfoBuilder_ == null) { - if (detailCase_ == 31) { - detailCase_ = 0; - detail_ = null; - onChanged(); - } - } else { - if (detailCase_ == 31) { - detailCase_ = 0; - detail_ = null; - } - dragonSpineInfoBuilder_.clear(); - } - return this; - } - /** - * <code>.ActivityNullDetailInfo dragonSpineInfo = 31;</code> - */ - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getDragonSpineInfoBuilder() { - return getDragonSpineInfoFieldBuilder().getBuilder(); - } - /** - * <code>.ActivityNullDetailInfo dragonSpineInfo = 31;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getDragonSpineInfoOrBuilder() { - if ((detailCase_ == 31) && (dragonSpineInfoBuilder_ != null)) { - return dragonSpineInfoBuilder_.getMessageOrBuilder(); - } else { - if (detailCase_ == 31) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo dragonSpineInfo = 31;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> - getDragonSpineInfoFieldBuilder() { - if (dragonSpineInfoBuilder_ == null) { - if (!(detailCase_ == 31)) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - dragonSpineInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder>( - (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_, - getParentForChildren(), - isClean()); - detail_ = null; - } - detailCase_ = 31; - onChanged();; - return dragonSpineInfoBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> effigyInfoBuilder_; - /** - * <code>.ActivityNullDetailInfo effigyInfo = 32;</code> - * @return Whether the effigyInfo field is set. - */ - @java.lang.Override - public boolean hasEffigyInfo() { - return detailCase_ == 32; - } - /** - * <code>.ActivityNullDetailInfo effigyInfo = 32;</code> - * @return The effigyInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getEffigyInfo() { - if (effigyInfoBuilder_ == null) { - if (detailCase_ == 32) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } else { - if (detailCase_ == 32) { - return effigyInfoBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo effigyInfo = 32;</code> - */ - public Builder setEffigyInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (effigyInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - detail_ = value; - onChanged(); - } else { - effigyInfoBuilder_.setMessage(value); - } - detailCase_ = 32; - return this; - } - /** - * <code>.ActivityNullDetailInfo effigyInfo = 32;</code> - */ - public Builder setEffigyInfo( - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder builderForValue) { - if (effigyInfoBuilder_ == null) { - detail_ = builderForValue.build(); - onChanged(); - } else { - effigyInfoBuilder_.setMessage(builderForValue.build()); - } - detailCase_ = 32; - return this; - } - /** - * <code>.ActivityNullDetailInfo effigyInfo = 32;</code> - */ - public Builder mergeEffigyInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (effigyInfoBuilder_ == null) { - if (detailCase_ == 32 && - detail_ != emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance()) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.newBuilder((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_) - .mergeFrom(value).buildPartial(); - } else { - detail_ = value; - } - onChanged(); - } else { - if (detailCase_ == 32) { - effigyInfoBuilder_.mergeFrom(value); - } - effigyInfoBuilder_.setMessage(value); - } - detailCase_ = 32; - return this; - } - /** - * <code>.ActivityNullDetailInfo effigyInfo = 32;</code> - */ - public Builder clearEffigyInfo() { - if (effigyInfoBuilder_ == null) { - if (detailCase_ == 32) { - detailCase_ = 0; - detail_ = null; - onChanged(); - } - } else { - if (detailCase_ == 32) { - detailCase_ = 0; - detail_ = null; - } - effigyInfoBuilder_.clear(); - } - return this; - } - /** - * <code>.ActivityNullDetailInfo effigyInfo = 32;</code> - */ - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getEffigyInfoBuilder() { - return getEffigyInfoFieldBuilder().getBuilder(); - } - /** - * <code>.ActivityNullDetailInfo effigyInfo = 32;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getEffigyInfoOrBuilder() { - if ((detailCase_ == 32) && (effigyInfoBuilder_ != null)) { - return effigyInfoBuilder_.getMessageOrBuilder(); - } else { - if (detailCase_ == 32) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo effigyInfo = 32;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> - getEffigyInfoFieldBuilder() { - if (effigyInfoBuilder_ == null) { - if (!(detailCase_ == 32)) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - effigyInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder>( - (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_, - getParentForChildren(), - isClean()); - detail_ = null; - } - detailCase_ = 32; - onChanged();; - return effigyInfoBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> treasureMapInfoBuilder_; - /** - * <code>.ActivityNullDetailInfo treasureMapInfo = 35;</code> - * @return Whether the treasureMapInfo field is set. - */ - @java.lang.Override - public boolean hasTreasureMapInfo() { - return detailCase_ == 35; - } - /** - * <code>.ActivityNullDetailInfo treasureMapInfo = 35;</code> - * @return The treasureMapInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getTreasureMapInfo() { - if (treasureMapInfoBuilder_ == null) { - if (detailCase_ == 35) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } else { - if (detailCase_ == 35) { - return treasureMapInfoBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo treasureMapInfo = 35;</code> - */ - public Builder setTreasureMapInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (treasureMapInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - detail_ = value; - onChanged(); - } else { - treasureMapInfoBuilder_.setMessage(value); - } - detailCase_ = 35; - return this; - } - /** - * <code>.ActivityNullDetailInfo treasureMapInfo = 35;</code> - */ - public Builder setTreasureMapInfo( - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder builderForValue) { - if (treasureMapInfoBuilder_ == null) { - detail_ = builderForValue.build(); - onChanged(); - } else { - treasureMapInfoBuilder_.setMessage(builderForValue.build()); - } - detailCase_ = 35; - return this; - } - /** - * <code>.ActivityNullDetailInfo treasureMapInfo = 35;</code> - */ - public Builder mergeTreasureMapInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (treasureMapInfoBuilder_ == null) { - if (detailCase_ == 35 && - detail_ != emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance()) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.newBuilder((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_) - .mergeFrom(value).buildPartial(); - } else { - detail_ = value; - } - onChanged(); - } else { - if (detailCase_ == 35) { - treasureMapInfoBuilder_.mergeFrom(value); - } - treasureMapInfoBuilder_.setMessage(value); - } - detailCase_ = 35; - return this; - } - /** - * <code>.ActivityNullDetailInfo treasureMapInfo = 35;</code> - */ - public Builder clearTreasureMapInfo() { - if (treasureMapInfoBuilder_ == null) { - if (detailCase_ == 35) { - detailCase_ = 0; - detail_ = null; - onChanged(); - } - } else { - if (detailCase_ == 35) { - detailCase_ = 0; - detail_ = null; - } - treasureMapInfoBuilder_.clear(); - } - return this; - } - /** - * <code>.ActivityNullDetailInfo treasureMapInfo = 35;</code> - */ - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getTreasureMapInfoBuilder() { - return getTreasureMapInfoFieldBuilder().getBuilder(); - } - /** - * <code>.ActivityNullDetailInfo treasureMapInfo = 35;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getTreasureMapInfoOrBuilder() { - if ((detailCase_ == 35) && (treasureMapInfoBuilder_ != null)) { - return treasureMapInfoBuilder_.getMessageOrBuilder(); - } else { - if (detailCase_ == 35) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo treasureMapInfo = 35;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> - getTreasureMapInfoFieldBuilder() { - if (treasureMapInfoBuilder_ == null) { - if (!(detailCase_ == 35)) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - treasureMapInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder>( - (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_, - getParentForChildren(), - isClean()); - detail_ = null; - } - detailCase_ = 35; - onChanged();; - return treasureMapInfoBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> blessingInfoBuilder_; - /** - * <code>.ActivityNullDetailInfo blessingInfo = 41;</code> - * @return Whether the blessingInfo field is set. - */ - @java.lang.Override - public boolean hasBlessingInfo() { - return detailCase_ == 41; - } - /** - * <code>.ActivityNullDetailInfo blessingInfo = 41;</code> - * @return The blessingInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getBlessingInfo() { - if (blessingInfoBuilder_ == null) { - if (detailCase_ == 41) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } else { - if (detailCase_ == 41) { - return blessingInfoBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo blessingInfo = 41;</code> - */ - public Builder setBlessingInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (blessingInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - detail_ = value; - onChanged(); - } else { - blessingInfoBuilder_.setMessage(value); - } - detailCase_ = 41; - return this; - } - /** - * <code>.ActivityNullDetailInfo blessingInfo = 41;</code> - */ - public Builder setBlessingInfo( - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder builderForValue) { - if (blessingInfoBuilder_ == null) { - detail_ = builderForValue.build(); - onChanged(); - } else { - blessingInfoBuilder_.setMessage(builderForValue.build()); - } - detailCase_ = 41; - return this; - } - /** - * <code>.ActivityNullDetailInfo blessingInfo = 41;</code> - */ - public Builder mergeBlessingInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (blessingInfoBuilder_ == null) { - if (detailCase_ == 41 && - detail_ != emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance()) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.newBuilder((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_) - .mergeFrom(value).buildPartial(); - } else { - detail_ = value; - } - onChanged(); - } else { - if (detailCase_ == 41) { - blessingInfoBuilder_.mergeFrom(value); - } - blessingInfoBuilder_.setMessage(value); - } - detailCase_ = 41; - return this; - } - /** - * <code>.ActivityNullDetailInfo blessingInfo = 41;</code> - */ - public Builder clearBlessingInfo() { - if (blessingInfoBuilder_ == null) { - if (detailCase_ == 41) { - detailCase_ = 0; - detail_ = null; - onChanged(); - } - } else { - if (detailCase_ == 41) { - detailCase_ = 0; - detail_ = null; - } - blessingInfoBuilder_.clear(); - } - return this; - } - /** - * <code>.ActivityNullDetailInfo blessingInfo = 41;</code> - */ - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getBlessingInfoBuilder() { - return getBlessingInfoFieldBuilder().getBuilder(); - } - /** - * <code>.ActivityNullDetailInfo blessingInfo = 41;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getBlessingInfoOrBuilder() { - if ((detailCase_ == 41) && (blessingInfoBuilder_ != null)) { - return blessingInfoBuilder_.getMessageOrBuilder(); - } else { - if (detailCase_ == 41) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo blessingInfo = 41;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> - getBlessingInfoFieldBuilder() { - if (blessingInfoBuilder_ == null) { - if (!(detailCase_ == 41)) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - blessingInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder>( - (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_, - getParentForChildren(), - isClean()); - detail_ = null; - } - detailCase_ = 41; - onChanged();; - return blessingInfoBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> seaLampInfoBuilder_; - /** - * <code>.ActivityNullDetailInfo seaLampInfo = 42;</code> - * @return Whether the seaLampInfo field is set. - */ - @java.lang.Override - public boolean hasSeaLampInfo() { - return detailCase_ == 42; - } - /** - * <code>.ActivityNullDetailInfo seaLampInfo = 42;</code> - * @return The seaLampInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getSeaLampInfo() { - if (seaLampInfoBuilder_ == null) { - if (detailCase_ == 42) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } else { - if (detailCase_ == 42) { - return seaLampInfoBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo seaLampInfo = 42;</code> - */ - public Builder setSeaLampInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (seaLampInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - detail_ = value; - onChanged(); - } else { - seaLampInfoBuilder_.setMessage(value); - } - detailCase_ = 42; - return this; - } - /** - * <code>.ActivityNullDetailInfo seaLampInfo = 42;</code> - */ - public Builder setSeaLampInfo( - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder builderForValue) { - if (seaLampInfoBuilder_ == null) { - detail_ = builderForValue.build(); - onChanged(); - } else { - seaLampInfoBuilder_.setMessage(builderForValue.build()); - } - detailCase_ = 42; - return this; - } - /** - * <code>.ActivityNullDetailInfo seaLampInfo = 42;</code> - */ - public Builder mergeSeaLampInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (seaLampInfoBuilder_ == null) { - if (detailCase_ == 42 && - detail_ != emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance()) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.newBuilder((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_) - .mergeFrom(value).buildPartial(); - } else { - detail_ = value; - } - onChanged(); - } else { - if (detailCase_ == 42) { - seaLampInfoBuilder_.mergeFrom(value); - } - seaLampInfoBuilder_.setMessage(value); - } - detailCase_ = 42; - return this; - } - /** - * <code>.ActivityNullDetailInfo seaLampInfo = 42;</code> - */ - public Builder clearSeaLampInfo() { - if (seaLampInfoBuilder_ == null) { - if (detailCase_ == 42) { - detailCase_ = 0; - detail_ = null; - onChanged(); - } - } else { - if (detailCase_ == 42) { - detailCase_ = 0; - detail_ = null; - } - seaLampInfoBuilder_.clear(); - } - return this; - } - /** - * <code>.ActivityNullDetailInfo seaLampInfo = 42;</code> - */ - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getSeaLampInfoBuilder() { - return getSeaLampInfoFieldBuilder().getBuilder(); - } - /** - * <code>.ActivityNullDetailInfo seaLampInfo = 42;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getSeaLampInfoOrBuilder() { - if ((detailCase_ == 42) && (seaLampInfoBuilder_ != null)) { - return seaLampInfoBuilder_.getMessageOrBuilder(); - } else { - if (detailCase_ == 42) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo seaLampInfo = 42;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> - getSeaLampInfoFieldBuilder() { - if (seaLampInfoBuilder_ == null) { - if (!(detailCase_ == 42)) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - seaLampInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder>( - (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_, - getParentForChildren(), - isClean()); - detail_ = null; - } - detailCase_ = 42; - onChanged();; - return seaLampInfoBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> expeditionInfoBuilder_; - /** - * <code>.ActivityNullDetailInfo expeditionInfo = 43;</code> - * @return Whether the expeditionInfo field is set. - */ - @java.lang.Override - public boolean hasExpeditionInfo() { - return detailCase_ == 43; - } - /** - * <code>.ActivityNullDetailInfo expeditionInfo = 43;</code> - * @return The expeditionInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getExpeditionInfo() { - if (expeditionInfoBuilder_ == null) { - if (detailCase_ == 43) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } else { - if (detailCase_ == 43) { - return expeditionInfoBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo expeditionInfo = 43;</code> - */ - public Builder setExpeditionInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (expeditionInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - detail_ = value; - onChanged(); - } else { - expeditionInfoBuilder_.setMessage(value); - } - detailCase_ = 43; - return this; - } - /** - * <code>.ActivityNullDetailInfo expeditionInfo = 43;</code> - */ - public Builder setExpeditionInfo( - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder builderForValue) { - if (expeditionInfoBuilder_ == null) { - detail_ = builderForValue.build(); - onChanged(); - } else { - expeditionInfoBuilder_.setMessage(builderForValue.build()); - } - detailCase_ = 43; - return this; - } - /** - * <code>.ActivityNullDetailInfo expeditionInfo = 43;</code> - */ - public Builder mergeExpeditionInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (expeditionInfoBuilder_ == null) { - if (detailCase_ == 43 && - detail_ != emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance()) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.newBuilder((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_) - .mergeFrom(value).buildPartial(); - } else { - detail_ = value; - } - onChanged(); - } else { - if (detailCase_ == 43) { - expeditionInfoBuilder_.mergeFrom(value); - } - expeditionInfoBuilder_.setMessage(value); - } - detailCase_ = 43; - return this; - } - /** - * <code>.ActivityNullDetailInfo expeditionInfo = 43;</code> - */ - public Builder clearExpeditionInfo() { - if (expeditionInfoBuilder_ == null) { - if (detailCase_ == 43) { - detailCase_ = 0; - detail_ = null; - onChanged(); - } - } else { - if (detailCase_ == 43) { - detailCase_ = 0; - detail_ = null; - } - expeditionInfoBuilder_.clear(); - } - return this; - } - /** - * <code>.ActivityNullDetailInfo expeditionInfo = 43;</code> - */ - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getExpeditionInfoBuilder() { - return getExpeditionInfoFieldBuilder().getBuilder(); - } - /** - * <code>.ActivityNullDetailInfo expeditionInfo = 43;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getExpeditionInfoOrBuilder() { - if ((detailCase_ == 43) && (expeditionInfoBuilder_ != null)) { - return expeditionInfoBuilder_.getMessageOrBuilder(); - } else { - if (detailCase_ == 43) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo expeditionInfo = 43;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> - getExpeditionInfoFieldBuilder() { - if (expeditionInfoBuilder_ == null) { - if (!(detailCase_ == 43)) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - expeditionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder>( - (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_, - getParentForChildren(), - isClean()); - detail_ = null; - } - detailCase_ = 43; - onChanged();; - return expeditionInfoBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> arenaChallengeInfoBuilder_; - /** - * <code>.ActivityNullDetailInfo arenaChallengeInfo = 44;</code> - * @return Whether the arenaChallengeInfo field is set. - */ - @java.lang.Override - public boolean hasArenaChallengeInfo() { - return detailCase_ == 44; - } - /** - * <code>.ActivityNullDetailInfo arenaChallengeInfo = 44;</code> - * @return The arenaChallengeInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getArenaChallengeInfo() { - if (arenaChallengeInfoBuilder_ == null) { - if (detailCase_ == 44) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } else { - if (detailCase_ == 44) { - return arenaChallengeInfoBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo arenaChallengeInfo = 44;</code> - */ - public Builder setArenaChallengeInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (arenaChallengeInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - detail_ = value; - onChanged(); - } else { - arenaChallengeInfoBuilder_.setMessage(value); - } - detailCase_ = 44; - return this; - } - /** - * <code>.ActivityNullDetailInfo arenaChallengeInfo = 44;</code> - */ - public Builder setArenaChallengeInfo( - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder builderForValue) { - if (arenaChallengeInfoBuilder_ == null) { - detail_ = builderForValue.build(); - onChanged(); - } else { - arenaChallengeInfoBuilder_.setMessage(builderForValue.build()); - } - detailCase_ = 44; - return this; - } - /** - * <code>.ActivityNullDetailInfo arenaChallengeInfo = 44;</code> - */ - public Builder mergeArenaChallengeInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (arenaChallengeInfoBuilder_ == null) { - if (detailCase_ == 44 && - detail_ != emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance()) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.newBuilder((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_) - .mergeFrom(value).buildPartial(); - } else { - detail_ = value; - } - onChanged(); - } else { - if (detailCase_ == 44) { - arenaChallengeInfoBuilder_.mergeFrom(value); - } - arenaChallengeInfoBuilder_.setMessage(value); - } - detailCase_ = 44; - return this; - } - /** - * <code>.ActivityNullDetailInfo arenaChallengeInfo = 44;</code> - */ - public Builder clearArenaChallengeInfo() { - if (arenaChallengeInfoBuilder_ == null) { - if (detailCase_ == 44) { - detailCase_ = 0; - detail_ = null; - onChanged(); - } - } else { - if (detailCase_ == 44) { - detailCase_ = 0; - detail_ = null; - } - arenaChallengeInfoBuilder_.clear(); - } - return this; - } - /** - * <code>.ActivityNullDetailInfo arenaChallengeInfo = 44;</code> - */ - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getArenaChallengeInfoBuilder() { - return getArenaChallengeInfoFieldBuilder().getBuilder(); - } - /** - * <code>.ActivityNullDetailInfo arenaChallengeInfo = 44;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getArenaChallengeInfoOrBuilder() { - if ((detailCase_ == 44) && (arenaChallengeInfoBuilder_ != null)) { - return arenaChallengeInfoBuilder_.getMessageOrBuilder(); - } else { - if (detailCase_ == 44) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo arenaChallengeInfo = 44;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> - getArenaChallengeInfoFieldBuilder() { - if (arenaChallengeInfoBuilder_ == null) { - if (!(detailCase_ == 44)) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - arenaChallengeInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder>( - (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_, - getParentForChildren(), - isClean()); - detail_ = null; - } - detailCase_ = 44; - onChanged();; - return arenaChallengeInfoBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> fleurFairInfoBuilder_; - /** - * <code>.ActivityNullDetailInfo fleurFairInfo = 51;</code> - * @return Whether the fleurFairInfo field is set. - */ - @java.lang.Override - public boolean hasFleurFairInfo() { - return detailCase_ == 51; - } - /** - * <code>.ActivityNullDetailInfo fleurFairInfo = 51;</code> - * @return The fleurFairInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getFleurFairInfo() { - if (fleurFairInfoBuilder_ == null) { - if (detailCase_ == 51) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } else { - if (detailCase_ == 51) { - return fleurFairInfoBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo fleurFairInfo = 51;</code> - */ - public Builder setFleurFairInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (fleurFairInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - detail_ = value; - onChanged(); - } else { - fleurFairInfoBuilder_.setMessage(value); - } - detailCase_ = 51; - return this; - } - /** - * <code>.ActivityNullDetailInfo fleurFairInfo = 51;</code> - */ - public Builder setFleurFairInfo( - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder builderForValue) { - if (fleurFairInfoBuilder_ == null) { - detail_ = builderForValue.build(); - onChanged(); - } else { - fleurFairInfoBuilder_.setMessage(builderForValue.build()); - } - detailCase_ = 51; - return this; - } - /** - * <code>.ActivityNullDetailInfo fleurFairInfo = 51;</code> - */ - public Builder mergeFleurFairInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (fleurFairInfoBuilder_ == null) { - if (detailCase_ == 51 && - detail_ != emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance()) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.newBuilder((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_) - .mergeFrom(value).buildPartial(); - } else { - detail_ = value; - } - onChanged(); - } else { - if (detailCase_ == 51) { - fleurFairInfoBuilder_.mergeFrom(value); - } - fleurFairInfoBuilder_.setMessage(value); - } - detailCase_ = 51; - return this; - } - /** - * <code>.ActivityNullDetailInfo fleurFairInfo = 51;</code> - */ - public Builder clearFleurFairInfo() { - if (fleurFairInfoBuilder_ == null) { - if (detailCase_ == 51) { - detailCase_ = 0; - detail_ = null; - onChanged(); - } - } else { - if (detailCase_ == 51) { - detailCase_ = 0; - detail_ = null; - } - fleurFairInfoBuilder_.clear(); - } - return this; - } - /** - * <code>.ActivityNullDetailInfo fleurFairInfo = 51;</code> - */ - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getFleurFairInfoBuilder() { - return getFleurFairInfoFieldBuilder().getBuilder(); - } - /** - * <code>.ActivityNullDetailInfo fleurFairInfo = 51;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getFleurFairInfoOrBuilder() { - if ((detailCase_ == 51) && (fleurFairInfoBuilder_ != null)) { - return fleurFairInfoBuilder_.getMessageOrBuilder(); - } else { - if (detailCase_ == 51) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo fleurFairInfo = 51;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> - getFleurFairInfoFieldBuilder() { - if (fleurFairInfoBuilder_ == null) { - if (!(detailCase_ == 51)) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - fleurFairInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder>( - (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_, - getParentForChildren(), - isClean()); - detail_ = null; - } - detailCase_ = 51; - onChanged();; - return fleurFairInfoBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> waterSpiritInfoBuilder_; - /** - * <code>.ActivityNullDetailInfo waterSpiritInfo = 52;</code> - * @return Whether the waterSpiritInfo field is set. - */ - @java.lang.Override - public boolean hasWaterSpiritInfo() { - return detailCase_ == 52; - } - /** - * <code>.ActivityNullDetailInfo waterSpiritInfo = 52;</code> - * @return The waterSpiritInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getWaterSpiritInfo() { - if (waterSpiritInfoBuilder_ == null) { - if (detailCase_ == 52) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } else { - if (detailCase_ == 52) { - return waterSpiritInfoBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo waterSpiritInfo = 52;</code> - */ - public Builder setWaterSpiritInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (waterSpiritInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - detail_ = value; - onChanged(); - } else { - waterSpiritInfoBuilder_.setMessage(value); - } - detailCase_ = 52; - return this; - } - /** - * <code>.ActivityNullDetailInfo waterSpiritInfo = 52;</code> - */ - public Builder setWaterSpiritInfo( - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder builderForValue) { - if (waterSpiritInfoBuilder_ == null) { - detail_ = builderForValue.build(); - onChanged(); - } else { - waterSpiritInfoBuilder_.setMessage(builderForValue.build()); - } - detailCase_ = 52; - return this; - } - /** - * <code>.ActivityNullDetailInfo waterSpiritInfo = 52;</code> - */ - public Builder mergeWaterSpiritInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (waterSpiritInfoBuilder_ == null) { - if (detailCase_ == 52 && - detail_ != emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance()) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.newBuilder((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_) - .mergeFrom(value).buildPartial(); - } else { - detail_ = value; - } - onChanged(); - } else { - if (detailCase_ == 52) { - waterSpiritInfoBuilder_.mergeFrom(value); - } - waterSpiritInfoBuilder_.setMessage(value); - } - detailCase_ = 52; - return this; - } - /** - * <code>.ActivityNullDetailInfo waterSpiritInfo = 52;</code> - */ - public Builder clearWaterSpiritInfo() { - if (waterSpiritInfoBuilder_ == null) { - if (detailCase_ == 52) { - detailCase_ = 0; - detail_ = null; - onChanged(); - } - } else { - if (detailCase_ == 52) { - detailCase_ = 0; - detail_ = null; - } - waterSpiritInfoBuilder_.clear(); - } - return this; - } - /** - * <code>.ActivityNullDetailInfo waterSpiritInfo = 52;</code> - */ - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getWaterSpiritInfoBuilder() { - return getWaterSpiritInfoFieldBuilder().getBuilder(); - } - /** - * <code>.ActivityNullDetailInfo waterSpiritInfo = 52;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getWaterSpiritInfoOrBuilder() { - if ((detailCase_ == 52) && (waterSpiritInfoBuilder_ != null)) { - return waterSpiritInfoBuilder_.getMessageOrBuilder(); - } else { - if (detailCase_ == 52) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo waterSpiritInfo = 52;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> - getWaterSpiritInfoFieldBuilder() { - if (waterSpiritInfoBuilder_ == null) { - if (!(detailCase_ == 52)) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - waterSpiritInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder>( - (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_, - getParentForChildren(), - isClean()); - detail_ = null; - } - detailCase_ = 52; - onChanged();; - return waterSpiritInfoBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> challnelerSlabInfoBuilder_; - /** - * <code>.ActivityNullDetailInfo challnelerSlabInfo = 61;</code> - * @return Whether the challnelerSlabInfo field is set. - */ - @java.lang.Override - public boolean hasChallnelerSlabInfo() { - return detailCase_ == 61; - } - /** - * <code>.ActivityNullDetailInfo challnelerSlabInfo = 61;</code> - * @return The challnelerSlabInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getChallnelerSlabInfo() { - if (challnelerSlabInfoBuilder_ == null) { - if (detailCase_ == 61) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } else { - if (detailCase_ == 61) { - return challnelerSlabInfoBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo challnelerSlabInfo = 61;</code> - */ - public Builder setChallnelerSlabInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (challnelerSlabInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - detail_ = value; - onChanged(); - } else { - challnelerSlabInfoBuilder_.setMessage(value); - } - detailCase_ = 61; - return this; - } - /** - * <code>.ActivityNullDetailInfo challnelerSlabInfo = 61;</code> - */ - public Builder setChallnelerSlabInfo( - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder builderForValue) { - if (challnelerSlabInfoBuilder_ == null) { - detail_ = builderForValue.build(); - onChanged(); - } else { - challnelerSlabInfoBuilder_.setMessage(builderForValue.build()); - } - detailCase_ = 61; - return this; - } - /** - * <code>.ActivityNullDetailInfo challnelerSlabInfo = 61;</code> - */ - public Builder mergeChallnelerSlabInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (challnelerSlabInfoBuilder_ == null) { - if (detailCase_ == 61 && - detail_ != emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance()) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.newBuilder((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_) - .mergeFrom(value).buildPartial(); - } else { - detail_ = value; - } - onChanged(); - } else { - if (detailCase_ == 61) { - challnelerSlabInfoBuilder_.mergeFrom(value); - } - challnelerSlabInfoBuilder_.setMessage(value); - } - detailCase_ = 61; - return this; - } - /** - * <code>.ActivityNullDetailInfo challnelerSlabInfo = 61;</code> - */ - public Builder clearChallnelerSlabInfo() { - if (challnelerSlabInfoBuilder_ == null) { - if (detailCase_ == 61) { - detailCase_ = 0; - detail_ = null; - onChanged(); - } - } else { - if (detailCase_ == 61) { - detailCase_ = 0; - detail_ = null; - } - challnelerSlabInfoBuilder_.clear(); - } - return this; - } - /** - * <code>.ActivityNullDetailInfo challnelerSlabInfo = 61;</code> - */ - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getChallnelerSlabInfoBuilder() { - return getChallnelerSlabInfoFieldBuilder().getBuilder(); - } - /** - * <code>.ActivityNullDetailInfo challnelerSlabInfo = 61;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getChallnelerSlabInfoOrBuilder() { - if ((detailCase_ == 61) && (challnelerSlabInfoBuilder_ != null)) { - return challnelerSlabInfoBuilder_.getMessageOrBuilder(); - } else { - if (detailCase_ == 61) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo challnelerSlabInfo = 61;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> - getChallnelerSlabInfoFieldBuilder() { - if (challnelerSlabInfoBuilder_ == null) { - if (!(detailCase_ == 61)) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - challnelerSlabInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder>( - (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_, - getParentForChildren(), - isClean()); - detail_ = null; - } - detailCase_ = 61; - onChanged();; - return challnelerSlabInfoBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> mistTrialActivityInfoBuilder_; - /** - * <code>.ActivityNullDetailInfo mistTrialActivityInfo = 62;</code> - * @return Whether the mistTrialActivityInfo field is set. - */ - @java.lang.Override - public boolean hasMistTrialActivityInfo() { - return detailCase_ == 62; - } - /** - * <code>.ActivityNullDetailInfo mistTrialActivityInfo = 62;</code> - * @return The mistTrialActivityInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getMistTrialActivityInfo() { - if (mistTrialActivityInfoBuilder_ == null) { - if (detailCase_ == 62) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } else { - if (detailCase_ == 62) { - return mistTrialActivityInfoBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo mistTrialActivityInfo = 62;</code> - */ - public Builder setMistTrialActivityInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (mistTrialActivityInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - detail_ = value; - onChanged(); - } else { - mistTrialActivityInfoBuilder_.setMessage(value); - } - detailCase_ = 62; - return this; - } - /** - * <code>.ActivityNullDetailInfo mistTrialActivityInfo = 62;</code> - */ - public Builder setMistTrialActivityInfo( - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder builderForValue) { - if (mistTrialActivityInfoBuilder_ == null) { - detail_ = builderForValue.build(); - onChanged(); - } else { - mistTrialActivityInfoBuilder_.setMessage(builderForValue.build()); - } - detailCase_ = 62; - return this; - } - /** - * <code>.ActivityNullDetailInfo mistTrialActivityInfo = 62;</code> - */ - public Builder mergeMistTrialActivityInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (mistTrialActivityInfoBuilder_ == null) { - if (detailCase_ == 62 && - detail_ != emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance()) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.newBuilder((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_) - .mergeFrom(value).buildPartial(); - } else { - detail_ = value; - } - onChanged(); - } else { - if (detailCase_ == 62) { - mistTrialActivityInfoBuilder_.mergeFrom(value); - } - mistTrialActivityInfoBuilder_.setMessage(value); - } - detailCase_ = 62; - return this; - } - /** - * <code>.ActivityNullDetailInfo mistTrialActivityInfo = 62;</code> - */ - public Builder clearMistTrialActivityInfo() { - if (mistTrialActivityInfoBuilder_ == null) { - if (detailCase_ == 62) { - detailCase_ = 0; - detail_ = null; - onChanged(); - } - } else { - if (detailCase_ == 62) { - detailCase_ = 0; - detail_ = null; - } - mistTrialActivityInfoBuilder_.clear(); - } - return this; - } - /** - * <code>.ActivityNullDetailInfo mistTrialActivityInfo = 62;</code> - */ - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getMistTrialActivityInfoBuilder() { - return getMistTrialActivityInfoFieldBuilder().getBuilder(); - } - /** - * <code>.ActivityNullDetailInfo mistTrialActivityInfo = 62;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getMistTrialActivityInfoOrBuilder() { - if ((detailCase_ == 62) && (mistTrialActivityInfoBuilder_ != null)) { - return mistTrialActivityInfoBuilder_.getMessageOrBuilder(); - } else { - if (detailCase_ == 62) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo mistTrialActivityInfo = 62;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> - getMistTrialActivityInfoFieldBuilder() { - if (mistTrialActivityInfoBuilder_ == null) { - if (!(detailCase_ == 62)) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - mistTrialActivityInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder>( - (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_, - getParentForChildren(), - isClean()); - detail_ = null; - } - detailCase_ = 62; - onChanged();; - return mistTrialActivityInfoBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> hideAndSeekInfoBuilder_; - /** - * <code>.ActivityNullDetailInfo hideAndSeekInfo = 63;</code> - * @return Whether the hideAndSeekInfo field is set. - */ - @java.lang.Override - public boolean hasHideAndSeekInfo() { - return detailCase_ == 63; - } - /** - * <code>.ActivityNullDetailInfo hideAndSeekInfo = 63;</code> - * @return The hideAndSeekInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getHideAndSeekInfo() { - if (hideAndSeekInfoBuilder_ == null) { - if (detailCase_ == 63) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } else { - if (detailCase_ == 63) { - return hideAndSeekInfoBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo hideAndSeekInfo = 63;</code> - */ - public Builder setHideAndSeekInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (hideAndSeekInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - detail_ = value; - onChanged(); - } else { - hideAndSeekInfoBuilder_.setMessage(value); - } - detailCase_ = 63; - return this; - } - /** - * <code>.ActivityNullDetailInfo hideAndSeekInfo = 63;</code> - */ - public Builder setHideAndSeekInfo( - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder builderForValue) { - if (hideAndSeekInfoBuilder_ == null) { - detail_ = builderForValue.build(); - onChanged(); - } else { - hideAndSeekInfoBuilder_.setMessage(builderForValue.build()); - } - detailCase_ = 63; - return this; - } - /** - * <code>.ActivityNullDetailInfo hideAndSeekInfo = 63;</code> - */ - public Builder mergeHideAndSeekInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (hideAndSeekInfoBuilder_ == null) { - if (detailCase_ == 63 && - detail_ != emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance()) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.newBuilder((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_) - .mergeFrom(value).buildPartial(); - } else { - detail_ = value; - } - onChanged(); - } else { - if (detailCase_ == 63) { - hideAndSeekInfoBuilder_.mergeFrom(value); - } - hideAndSeekInfoBuilder_.setMessage(value); - } - detailCase_ = 63; - return this; - } - /** - * <code>.ActivityNullDetailInfo hideAndSeekInfo = 63;</code> - */ - public Builder clearHideAndSeekInfo() { - if (hideAndSeekInfoBuilder_ == null) { - if (detailCase_ == 63) { - detailCase_ = 0; - detail_ = null; - onChanged(); - } - } else { - if (detailCase_ == 63) { - detailCase_ = 0; - detail_ = null; - } - hideAndSeekInfoBuilder_.clear(); - } - return this; - } - /** - * <code>.ActivityNullDetailInfo hideAndSeekInfo = 63;</code> - */ - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getHideAndSeekInfoBuilder() { - return getHideAndSeekInfoFieldBuilder().getBuilder(); - } - /** - * <code>.ActivityNullDetailInfo hideAndSeekInfo = 63;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getHideAndSeekInfoOrBuilder() { - if ((detailCase_ == 63) && (hideAndSeekInfoBuilder_ != null)) { - return hideAndSeekInfoBuilder_.getMessageOrBuilder(); - } else { - if (detailCase_ == 63) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo hideAndSeekInfo = 63;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> - getHideAndSeekInfoFieldBuilder() { - if (hideAndSeekInfoBuilder_ == null) { - if (!(detailCase_ == 63)) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - hideAndSeekInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder>( - (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_, - getParentForChildren(), - isClean()); - detail_ = null; - } - detailCase_ = 63; - onChanged();; - return hideAndSeekInfoBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> findHilichurlInfoBuilder_; - /** - * <code>.ActivityNullDetailInfo findHilichurlInfo = 64;</code> - * @return Whether the findHilichurlInfo field is set. - */ - @java.lang.Override - public boolean hasFindHilichurlInfo() { - return detailCase_ == 64; - } - /** - * <code>.ActivityNullDetailInfo findHilichurlInfo = 64;</code> - * @return The findHilichurlInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getFindHilichurlInfo() { - if (findHilichurlInfoBuilder_ == null) { - if (detailCase_ == 64) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } else { - if (detailCase_ == 64) { - return findHilichurlInfoBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo findHilichurlInfo = 64;</code> - */ - public Builder setFindHilichurlInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (findHilichurlInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - detail_ = value; - onChanged(); - } else { - findHilichurlInfoBuilder_.setMessage(value); - } - detailCase_ = 64; - return this; - } - /** - * <code>.ActivityNullDetailInfo findHilichurlInfo = 64;</code> - */ - public Builder setFindHilichurlInfo( - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder builderForValue) { - if (findHilichurlInfoBuilder_ == null) { - detail_ = builderForValue.build(); - onChanged(); - } else { - findHilichurlInfoBuilder_.setMessage(builderForValue.build()); - } - detailCase_ = 64; - return this; - } - /** - * <code>.ActivityNullDetailInfo findHilichurlInfo = 64;</code> - */ - public Builder mergeFindHilichurlInfo(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo value) { - if (findHilichurlInfoBuilder_ == null) { - if (detailCase_ == 64 && - detail_ != emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance()) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.newBuilder((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_) - .mergeFrom(value).buildPartial(); - } else { - detail_ = value; - } - onChanged(); - } else { - if (detailCase_ == 64) { - findHilichurlInfoBuilder_.mergeFrom(value); - } - findHilichurlInfoBuilder_.setMessage(value); - } - detailCase_ = 64; - return this; - } - /** - * <code>.ActivityNullDetailInfo findHilichurlInfo = 64;</code> - */ - public Builder clearFindHilichurlInfo() { - if (findHilichurlInfoBuilder_ == null) { - if (detailCase_ == 64) { - detailCase_ = 0; - detail_ = null; - onChanged(); - } - } else { - if (detailCase_ == 64) { - detailCase_ = 0; - detail_ = null; - } - findHilichurlInfoBuilder_.clear(); - } - return this; - } - /** - * <code>.ActivityNullDetailInfo findHilichurlInfo = 64;</code> - */ - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getFindHilichurlInfoBuilder() { - return getFindHilichurlInfoFieldBuilder().getBuilder(); - } - /** - * <code>.ActivityNullDetailInfo findHilichurlInfo = 64;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getFindHilichurlInfoOrBuilder() { - if ((detailCase_ == 64) && (findHilichurlInfoBuilder_ != null)) { - return findHilichurlInfoBuilder_.getMessageOrBuilder(); - } else { - if (detailCase_ == 64) { - return (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_; - } - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - } - /** - * <code>.ActivityNullDetailInfo findHilichurlInfo = 64;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder> - getFindHilichurlInfoFieldBuilder() { - if (findHilichurlInfoBuilder_ == null) { - if (!(detailCase_ == 64)) { - detail_ = emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - findHilichurlInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder>( - (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) detail_, - getParentForChildren(), - isClean()); - detail_ = null; - } - detailCase_ = 64; - onChanged();; - return findHilichurlInfoBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ActivityInfo) - } - - // @@protoc_insertion_point(class_scope:ActivityInfo) - private static final emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo(); - } - - public static emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ActivityInfo> - PARSER = new com.google.protobuf.AbstractParser<ActivityInfo>() { - @java.lang.Override - public ActivityInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ActivityInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ActivityInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ActivityInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ActivityInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ActivityInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ActivityInfo_ActivityCoinMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ActivityInfo_ActivityCoinMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\022ActivityInfo.proto\032\034ActivityNullDetail" + - "Info.proto\032\031ActivityWatcherInfo.proto\"\342\013" + - "\n\014ActivityInfo\022\022\n\nactivityId\030\001 \001(\r\022\022\n\nsc" + - "heduleId\030\002 \001(\r\022\021\n\tbeginTime\030\003 \001(\r\022\017\n\007end" + - "Time\030\004 \001(\r\022\024\n\014activityType\030\005 \001(\r\022\026\n\016isPl" + - "ayOpenAnim\030\006 \001(\010\022\022\n\nisFinished\030\007 \001(\010\022\022\n\n" + - "isStarting\030\010 \001(\010\022-\n\017watcherInfoList\030\t \003(" + - "\0132\024.ActivityWatcherInfo\022\024\n\014meetCondList\030" + - "\n \003(\r\022\026\n\016expireCondList\030\017 \003(\r\022\036\n\026selecte" + - "dAvatarRewardId\030\021 \001(\r\022;\n\017activityCoinMap" + - "\030\022 \003(\0132\".ActivityInfo.ActivityCoinMapEnt" + - "ry\022\022\n\nscoreLimit\030\023 \001(\r\022\020\n\010curScore\030\024 \001(\r" + - "\022\027\n\017takenRewardList\030\030 \003(\r\022.\n\013samLampInfo" + - "\030\013 \001(\0132\027.ActivityNullDetailInfoH\000\022/\n\014cru" + - "cibleInfo\030\014 \001(\0132\027.ActivityNullDetailInfo" + - "H\000\022/\n\014salesmanInfo\030\r \001(\0132\027.ActivityNullD" + - "etailInfoH\000\0222\n\017trialAvatarInfo\030\016 \001(\0132\027.A" + - "ctivityNullDetailInfoH\000\022/\n\014deliveryInfo\030" + - "\020 \001(\0132\027.ActivityNullDetailInfoH\000\022,\n\taste" + - "rInfo\030\025 \001(\0132\027.ActivityNullDetailInfoH\000\022-" + - "\n\nflightInfo\030\031 \001(\0132\027.ActivityNullDetailI" + - "nfoH\000\0222\n\017dragonSpineInfo\030\037 \001(\0132\027.Activit" + - "yNullDetailInfoH\000\022-\n\neffigyInfo\030 \001(\0132\027." + - "ActivityNullDetailInfoH\000\0222\n\017treasureMapI" + - "nfo\030# \001(\0132\027.ActivityNullDetailInfoH\000\022/\n\014" + - "blessingInfo\030) \001(\0132\027.ActivityNullDetailI" + - "nfoH\000\022.\n\013seaLampInfo\030* \001(\0132\027.ActivityNul" + - "lDetailInfoH\000\0221\n\016expeditionInfo\030+ \001(\0132\027." + - "ActivityNullDetailInfoH\000\0225\n\022arenaChallen" + - "geInfo\030, \001(\0132\027.ActivityNullDetailInfoH\000\022" + - "0\n\rfleurFairInfo\0303 \001(\0132\027.ActivityNullDet" + - "ailInfoH\000\0222\n\017waterSpiritInfo\0304 \001(\0132\027.Act" + - "ivityNullDetailInfoH\000\0225\n\022challnelerSlabI" + - "nfo\030= \001(\0132\027.ActivityNullDetailInfoH\000\0228\n\025" + - "mistTrialActivityInfo\030> \001(\0132\027.ActivityNu" + - "llDetailInfoH\000\0222\n\017hideAndSeekInfo\030? \001(\0132" + - "\027.ActivityNullDetailInfoH\000\0224\n\021findHilich" + - "urlInfo\030@ \001(\0132\027.ActivityNullDetailInfoH\000" + - "\0326\n\024ActivityCoinMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n" + - "\005value\030\002 \001(\r:\0028\001B\010\n\006detailB\033\n\031emu.grassc" + - "utter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.getDescriptor(), - }); - internal_static_ActivityInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ActivityInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ActivityInfo_descriptor, - new java.lang.String[] { "ActivityId", "ScheduleId", "BeginTime", "EndTime", "ActivityType", "IsPlayOpenAnim", "IsFinished", "IsStarting", "WatcherInfoList", "MeetCondList", "ExpireCondList", "SelectedAvatarRewardId", "ActivityCoinMap", "ScoreLimit", "CurScore", "TakenRewardList", "SamLampInfo", "CrucibleInfo", "SalesmanInfo", "TrialAvatarInfo", "DeliveryInfo", "AsterInfo", "FlightInfo", "DragonSpineInfo", "EffigyInfo", "TreasureMapInfo", "BlessingInfo", "SeaLampInfo", "ExpeditionInfo", "ArenaChallengeInfo", "FleurFairInfo", "WaterSpiritInfo", "ChallnelerSlabInfo", "MistTrialActivityInfo", "HideAndSeekInfo", "FindHilichurlInfo", "Detail", }); - internal_static_ActivityInfo_ActivityCoinMapEntry_descriptor = - internal_static_ActivityInfo_descriptor.getNestedTypes().get(0); - internal_static_ActivityInfo_ActivityCoinMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ActivityInfo_ActivityCoinMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ActivityNullDetailInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ActivityNullDetailInfoOuterClass.java deleted file mode 100644 index eec32dfb6..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ActivityNullDetailInfoOuterClass.java +++ /dev/null @@ -1,466 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ActivityNullDetailInfo.proto - -package emu.grasscutter.net.proto; - -public final class ActivityNullDetailInfoOuterClass { - private ActivityNullDetailInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ActivityNullDetailInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:ActivityNullDetailInfo) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code ActivityNullDetailInfo} - */ - public static final class ActivityNullDetailInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ActivityNullDetailInfo) - ActivityNullDetailInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use ActivityNullDetailInfo.newBuilder() to construct. - private ActivityNullDetailInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ActivityNullDetailInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ActivityNullDetailInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ActivityNullDetailInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.internal_static_ActivityNullDetailInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.internal_static_ActivityNullDetailInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.class, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo other = (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ActivityNullDetailInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ActivityNullDetailInfo) - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.internal_static_ActivityNullDetailInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.internal_static_ActivityNullDetailInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.class, emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.internal_static_ActivityNullDetailInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo build() { - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo buildPartial() { - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo result = new emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) { - return mergeFrom((emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo other) { - if (other == emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ActivityNullDetailInfo) - } - - // @@protoc_insertion_point(class_scope:ActivityNullDetailInfo) - private static final emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo(); - } - - public static emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ActivityNullDetailInfo> - PARSER = new com.google.protobuf.AbstractParser<ActivityNullDetailInfo>() { - @java.lang.Override - public ActivityNullDetailInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ActivityNullDetailInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ActivityNullDetailInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ActivityNullDetailInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ActivityNullDetailInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ActivityNullDetailInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034ActivityNullDetailInfo.proto\"\030\n\026Activi" + - "tyNullDetailInfoB\033\n\031emu.grasscutter.net." + - "protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ActivityNullDetailInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ActivityNullDetailInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ActivityNullDetailInfo_descriptor, - new java.lang.String[] { }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ActivityWatcherInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ActivityWatcherInfoOuterClass.java deleted file mode 100644 index 55f601dc5..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ActivityWatcherInfoOuterClass.java +++ /dev/null @@ -1,749 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ActivityWatcherInfo.proto - -package emu.grasscutter.net.proto; - -public final class ActivityWatcherInfoOuterClass { - private ActivityWatcherInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ActivityWatcherInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:ActivityWatcherInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 watcherId = 1;</code> - * @return The watcherId. - */ - int getWatcherId(); - - /** - * <code>uint32 curProgress = 2;</code> - * @return The curProgress. - */ - int getCurProgress(); - - /** - * <code>uint32 totalProgress = 3;</code> - * @return The totalProgress. - */ - int getTotalProgress(); - - /** - * <code>bool isTakenReward = 4;</code> - * @return The isTakenReward. - */ - boolean getIsTakenReward(); - } - /** - * Protobuf type {@code ActivityWatcherInfo} - */ - public static final class ActivityWatcherInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ActivityWatcherInfo) - ActivityWatcherInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use ActivityWatcherInfo.newBuilder() to construct. - private ActivityWatcherInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ActivityWatcherInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ActivityWatcherInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ActivityWatcherInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - watcherId_ = input.readUInt32(); - break; - } - case 16: { - - curProgress_ = input.readUInt32(); - break; - } - case 24: { - - totalProgress_ = input.readUInt32(); - break; - } - case 32: { - - isTakenReward_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.internal_static_ActivityWatcherInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.internal_static_ActivityWatcherInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo.class, emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo.Builder.class); - } - - public static final int WATCHERID_FIELD_NUMBER = 1; - private int watcherId_; - /** - * <code>uint32 watcherId = 1;</code> - * @return The watcherId. - */ - @java.lang.Override - public int getWatcherId() { - return watcherId_; - } - - public static final int CURPROGRESS_FIELD_NUMBER = 2; - private int curProgress_; - /** - * <code>uint32 curProgress = 2;</code> - * @return The curProgress. - */ - @java.lang.Override - public int getCurProgress() { - return curProgress_; - } - - public static final int TOTALPROGRESS_FIELD_NUMBER = 3; - private int totalProgress_; - /** - * <code>uint32 totalProgress = 3;</code> - * @return The totalProgress. - */ - @java.lang.Override - public int getTotalProgress() { - return totalProgress_; - } - - public static final int ISTAKENREWARD_FIELD_NUMBER = 4; - private boolean isTakenReward_; - /** - * <code>bool isTakenReward = 4;</code> - * @return The isTakenReward. - */ - @java.lang.Override - public boolean getIsTakenReward() { - return isTakenReward_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (watcherId_ != 0) { - output.writeUInt32(1, watcherId_); - } - if (curProgress_ != 0) { - output.writeUInt32(2, curProgress_); - } - if (totalProgress_ != 0) { - output.writeUInt32(3, totalProgress_); - } - if (isTakenReward_ != false) { - output.writeBool(4, isTakenReward_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (watcherId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, watcherId_); - } - if (curProgress_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, curProgress_); - } - if (totalProgress_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, totalProgress_); - } - if (isTakenReward_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, isTakenReward_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo other = (emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo) obj; - - if (getWatcherId() - != other.getWatcherId()) return false; - if (getCurProgress() - != other.getCurProgress()) return false; - if (getTotalProgress() - != other.getTotalProgress()) return false; - if (getIsTakenReward() - != other.getIsTakenReward()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + WATCHERID_FIELD_NUMBER; - hash = (53 * hash) + getWatcherId(); - hash = (37 * hash) + CURPROGRESS_FIELD_NUMBER; - hash = (53 * hash) + getCurProgress(); - hash = (37 * hash) + TOTALPROGRESS_FIELD_NUMBER; - hash = (53 * hash) + getTotalProgress(); - hash = (37 * hash) + ISTAKENREWARD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsTakenReward()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ActivityWatcherInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ActivityWatcherInfo) - emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.internal_static_ActivityWatcherInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.internal_static_ActivityWatcherInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo.class, emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - watcherId_ = 0; - - curProgress_ = 0; - - totalProgress_ = 0; - - isTakenReward_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.internal_static_ActivityWatcherInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo build() { - emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo buildPartial() { - emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo result = new emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo(this); - result.watcherId_ = watcherId_; - result.curProgress_ = curProgress_; - result.totalProgress_ = totalProgress_; - result.isTakenReward_ = isTakenReward_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo) { - return mergeFrom((emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo other) { - if (other == emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo.getDefaultInstance()) return this; - if (other.getWatcherId() != 0) { - setWatcherId(other.getWatcherId()); - } - if (other.getCurProgress() != 0) { - setCurProgress(other.getCurProgress()); - } - if (other.getTotalProgress() != 0) { - setTotalProgress(other.getTotalProgress()); - } - if (other.getIsTakenReward() != false) { - setIsTakenReward(other.getIsTakenReward()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int watcherId_ ; - /** - * <code>uint32 watcherId = 1;</code> - * @return The watcherId. - */ - @java.lang.Override - public int getWatcherId() { - return watcherId_; - } - /** - * <code>uint32 watcherId = 1;</code> - * @param value The watcherId to set. - * @return This builder for chaining. - */ - public Builder setWatcherId(int value) { - - watcherId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 watcherId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearWatcherId() { - - watcherId_ = 0; - onChanged(); - return this; - } - - private int curProgress_ ; - /** - * <code>uint32 curProgress = 2;</code> - * @return The curProgress. - */ - @java.lang.Override - public int getCurProgress() { - return curProgress_; - } - /** - * <code>uint32 curProgress = 2;</code> - * @param value The curProgress to set. - * @return This builder for chaining. - */ - public Builder setCurProgress(int value) { - - curProgress_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 curProgress = 2;</code> - * @return This builder for chaining. - */ - public Builder clearCurProgress() { - - curProgress_ = 0; - onChanged(); - return this; - } - - private int totalProgress_ ; - /** - * <code>uint32 totalProgress = 3;</code> - * @return The totalProgress. - */ - @java.lang.Override - public int getTotalProgress() { - return totalProgress_; - } - /** - * <code>uint32 totalProgress = 3;</code> - * @param value The totalProgress to set. - * @return This builder for chaining. - */ - public Builder setTotalProgress(int value) { - - totalProgress_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 totalProgress = 3;</code> - * @return This builder for chaining. - */ - public Builder clearTotalProgress() { - - totalProgress_ = 0; - onChanged(); - return this; - } - - private boolean isTakenReward_ ; - /** - * <code>bool isTakenReward = 4;</code> - * @return The isTakenReward. - */ - @java.lang.Override - public boolean getIsTakenReward() { - return isTakenReward_; - } - /** - * <code>bool isTakenReward = 4;</code> - * @param value The isTakenReward to set. - * @return This builder for chaining. - */ - public Builder setIsTakenReward(boolean value) { - - isTakenReward_ = value; - onChanged(); - return this; - } - /** - * <code>bool isTakenReward = 4;</code> - * @return This builder for chaining. - */ - public Builder clearIsTakenReward() { - - isTakenReward_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ActivityWatcherInfo) - } - - // @@protoc_insertion_point(class_scope:ActivityWatcherInfo) - private static final emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo(); - } - - public static emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ActivityWatcherInfo> - PARSER = new com.google.protobuf.AbstractParser<ActivityWatcherInfo>() { - @java.lang.Override - public ActivityWatcherInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ActivityWatcherInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ActivityWatcherInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ActivityWatcherInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ActivityWatcherInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ActivityWatcherInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031ActivityWatcherInfo.proto\"k\n\023ActivityW" + - "atcherInfo\022\021\n\twatcherId\030\001 \001(\r\022\023\n\013curProg" + - "ress\030\002 \001(\r\022\025\n\rtotalProgress\030\003 \001(\r\022\025\n\risT" + - "akenReward\030\004 \001(\010B\033\n\031emu.grasscutter.net." + - "protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ActivityWatcherInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ActivityWatcherInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ActivityWatcherInfo_descriptor, - new java.lang.String[] { "WatcherId", "CurProgress", "TotalProgress", "IsTakenReward", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AiSkillCdInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AiSkillCdInfoOuterClass.java deleted file mode 100644 index 32dc1ab22..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AiSkillCdInfoOuterClass.java +++ /dev/null @@ -1,1102 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AiSkillCdInfo.proto - -package emu.grasscutter.net.proto; - -public final class AiSkillCdInfoOuterClass { - private AiSkillCdInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AiSkillCdInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:AiSkillCdInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>map<uint32, uint32> skillCdMap = 1;</code> - */ - int getSkillCdMapCount(); - /** - * <code>map<uint32, uint32> skillCdMap = 1;</code> - */ - boolean containsSkillCdMap( - int key); - /** - * Use {@link #getSkillCdMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Integer> - getSkillCdMap(); - /** - * <code>map<uint32, uint32> skillCdMap = 1;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Integer> - getSkillCdMapMap(); - /** - * <code>map<uint32, uint32> skillCdMap = 1;</code> - */ - - int getSkillCdMapOrDefault( - int key, - int defaultValue); - /** - * <code>map<uint32, uint32> skillCdMap = 1;</code> - */ - - int getSkillCdMapOrThrow( - int key); - - /** - * <code>map<uint32, uint32> skillGroupCdMap = 2;</code> - */ - int getSkillGroupCdMapCount(); - /** - * <code>map<uint32, uint32> skillGroupCdMap = 2;</code> - */ - boolean containsSkillGroupCdMap( - int key); - /** - * Use {@link #getSkillGroupCdMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Integer> - getSkillGroupCdMap(); - /** - * <code>map<uint32, uint32> skillGroupCdMap = 2;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Integer> - getSkillGroupCdMapMap(); - /** - * <code>map<uint32, uint32> skillGroupCdMap = 2;</code> - */ - - int getSkillGroupCdMapOrDefault( - int key, - int defaultValue); - /** - * <code>map<uint32, uint32> skillGroupCdMap = 2;</code> - */ - - int getSkillGroupCdMapOrThrow( - int key); - } - /** - * Protobuf type {@code AiSkillCdInfo} - */ - public static final class AiSkillCdInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AiSkillCdInfo) - AiSkillCdInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use AiSkillCdInfo.newBuilder() to construct. - private AiSkillCdInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AiSkillCdInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AiSkillCdInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AiSkillCdInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - skillCdMap_ = com.google.protobuf.MapField.newMapField( - SkillCdMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - skillCdMap__ = input.readMessage( - SkillCdMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - skillCdMap_.getMutableMap().put( - skillCdMap__.getKey(), skillCdMap__.getValue()); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - skillGroupCdMap_ = com.google.protobuf.MapField.newMapField( - SkillGroupCdMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - skillGroupCdMap__ = input.readMessage( - SkillGroupCdMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - skillGroupCdMap_.getMutableMap().put( - skillGroupCdMap__.getKey(), skillGroupCdMap__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.internal_static_AiSkillCdInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetSkillCdMap(); - case 2: - return internalGetSkillGroupCdMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.internal_static_AiSkillCdInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo.class, emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo.Builder.class); - } - - public static final int SKILLCDMAP_FIELD_NUMBER = 1; - private static final class SkillCdMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Integer>newDefaultInstance( - emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.internal_static_AiSkillCdInfo_SkillCdMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> skillCdMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetSkillCdMap() { - if (skillCdMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SkillCdMapDefaultEntryHolder.defaultEntry); - } - return skillCdMap_; - } - - public int getSkillCdMapCount() { - return internalGetSkillCdMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> skillCdMap = 1;</code> - */ - - @java.lang.Override - public boolean containsSkillCdMap( - int key) { - - return internalGetSkillCdMap().getMap().containsKey(key); - } - /** - * Use {@link #getSkillCdMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillCdMap() { - return getSkillCdMapMap(); - } - /** - * <code>map<uint32, uint32> skillCdMap = 1;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillCdMapMap() { - return internalGetSkillCdMap().getMap(); - } - /** - * <code>map<uint32, uint32> skillCdMap = 1;</code> - */ - @java.lang.Override - - public int getSkillCdMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkillCdMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> skillCdMap = 1;</code> - */ - @java.lang.Override - - public int getSkillCdMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkillCdMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int SKILLGROUPCDMAP_FIELD_NUMBER = 2; - private static final class SkillGroupCdMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Integer>newDefaultInstance( - emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.internal_static_AiSkillCdInfo_SkillGroupCdMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> skillGroupCdMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetSkillGroupCdMap() { - if (skillGroupCdMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SkillGroupCdMapDefaultEntryHolder.defaultEntry); - } - return skillGroupCdMap_; - } - - public int getSkillGroupCdMapCount() { - return internalGetSkillGroupCdMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> skillGroupCdMap = 2;</code> - */ - - @java.lang.Override - public boolean containsSkillGroupCdMap( - int key) { - - return internalGetSkillGroupCdMap().getMap().containsKey(key); - } - /** - * Use {@link #getSkillGroupCdMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillGroupCdMap() { - return getSkillGroupCdMapMap(); - } - /** - * <code>map<uint32, uint32> skillGroupCdMap = 2;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillGroupCdMapMap() { - return internalGetSkillGroupCdMap().getMap(); - } - /** - * <code>map<uint32, uint32> skillGroupCdMap = 2;</code> - */ - @java.lang.Override - - public int getSkillGroupCdMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkillGroupCdMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> skillGroupCdMap = 2;</code> - */ - @java.lang.Override - - public int getSkillGroupCdMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkillGroupCdMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetSkillCdMap(), - SkillCdMapDefaultEntryHolder.defaultEntry, - 1); - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetSkillGroupCdMap(), - SkillGroupCdMapDefaultEntryHolder.defaultEntry, - 2); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry - : internalGetSkillCdMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - skillCdMap__ = SkillCdMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, skillCdMap__); - } - for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry - : internalGetSkillGroupCdMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - skillGroupCdMap__ = SkillGroupCdMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, skillGroupCdMap__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo other = (emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo) obj; - - if (!internalGetSkillCdMap().equals( - other.internalGetSkillCdMap())) return false; - if (!internalGetSkillGroupCdMap().equals( - other.internalGetSkillGroupCdMap())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetSkillCdMap().getMap().isEmpty()) { - hash = (37 * hash) + SKILLCDMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetSkillCdMap().hashCode(); - } - if (!internalGetSkillGroupCdMap().getMap().isEmpty()) { - hash = (37 * hash) + SKILLGROUPCDMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetSkillGroupCdMap().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AiSkillCdInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AiSkillCdInfo) - emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.internal_static_AiSkillCdInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetSkillCdMap(); - case 2: - return internalGetSkillGroupCdMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableSkillCdMap(); - case 2: - return internalGetMutableSkillGroupCdMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.internal_static_AiSkillCdInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo.class, emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableSkillCdMap().clear(); - internalGetMutableSkillGroupCdMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.internal_static_AiSkillCdInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo build() { - emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo buildPartial() { - emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo result = new emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo(this); - int from_bitField0_ = bitField0_; - result.skillCdMap_ = internalGetSkillCdMap(); - result.skillCdMap_.makeImmutable(); - result.skillGroupCdMap_ = internalGetSkillGroupCdMap(); - result.skillGroupCdMap_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo) { - return mergeFrom((emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo other) { - if (other == emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo.getDefaultInstance()) return this; - internalGetMutableSkillCdMap().mergeFrom( - other.internalGetSkillCdMap()); - internalGetMutableSkillGroupCdMap().mergeFrom( - other.internalGetSkillGroupCdMap()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> skillCdMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetSkillCdMap() { - if (skillCdMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SkillCdMapDefaultEntryHolder.defaultEntry); - } - return skillCdMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetMutableSkillCdMap() { - onChanged();; - if (skillCdMap_ == null) { - skillCdMap_ = com.google.protobuf.MapField.newMapField( - SkillCdMapDefaultEntryHolder.defaultEntry); - } - if (!skillCdMap_.isMutable()) { - skillCdMap_ = skillCdMap_.copy(); - } - return skillCdMap_; - } - - public int getSkillCdMapCount() { - return internalGetSkillCdMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> skillCdMap = 1;</code> - */ - - @java.lang.Override - public boolean containsSkillCdMap( - int key) { - - return internalGetSkillCdMap().getMap().containsKey(key); - } - /** - * Use {@link #getSkillCdMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillCdMap() { - return getSkillCdMapMap(); - } - /** - * <code>map<uint32, uint32> skillCdMap = 1;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillCdMapMap() { - return internalGetSkillCdMap().getMap(); - } - /** - * <code>map<uint32, uint32> skillCdMap = 1;</code> - */ - @java.lang.Override - - public int getSkillCdMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkillCdMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> skillCdMap = 1;</code> - */ - @java.lang.Override - - public int getSkillCdMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkillCdMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearSkillCdMap() { - internalGetMutableSkillCdMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, uint32> skillCdMap = 1;</code> - */ - - public Builder removeSkillCdMap( - int key) { - - internalGetMutableSkillCdMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> - getMutableSkillCdMap() { - return internalGetMutableSkillCdMap().getMutableMap(); - } - /** - * <code>map<uint32, uint32> skillCdMap = 1;</code> - */ - public Builder putSkillCdMap( - int key, - int value) { - - - internalGetMutableSkillCdMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, uint32> skillCdMap = 1;</code> - */ - - public Builder putAllSkillCdMap( - java.util.Map<java.lang.Integer, java.lang.Integer> values) { - internalGetMutableSkillCdMap().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> skillGroupCdMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetSkillGroupCdMap() { - if (skillGroupCdMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SkillGroupCdMapDefaultEntryHolder.defaultEntry); - } - return skillGroupCdMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetMutableSkillGroupCdMap() { - onChanged();; - if (skillGroupCdMap_ == null) { - skillGroupCdMap_ = com.google.protobuf.MapField.newMapField( - SkillGroupCdMapDefaultEntryHolder.defaultEntry); - } - if (!skillGroupCdMap_.isMutable()) { - skillGroupCdMap_ = skillGroupCdMap_.copy(); - } - return skillGroupCdMap_; - } - - public int getSkillGroupCdMapCount() { - return internalGetSkillGroupCdMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> skillGroupCdMap = 2;</code> - */ - - @java.lang.Override - public boolean containsSkillGroupCdMap( - int key) { - - return internalGetSkillGroupCdMap().getMap().containsKey(key); - } - /** - * Use {@link #getSkillGroupCdMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillGroupCdMap() { - return getSkillGroupCdMapMap(); - } - /** - * <code>map<uint32, uint32> skillGroupCdMap = 2;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillGroupCdMapMap() { - return internalGetSkillGroupCdMap().getMap(); - } - /** - * <code>map<uint32, uint32> skillGroupCdMap = 2;</code> - */ - @java.lang.Override - - public int getSkillGroupCdMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkillGroupCdMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> skillGroupCdMap = 2;</code> - */ - @java.lang.Override - - public int getSkillGroupCdMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkillGroupCdMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearSkillGroupCdMap() { - internalGetMutableSkillGroupCdMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, uint32> skillGroupCdMap = 2;</code> - */ - - public Builder removeSkillGroupCdMap( - int key) { - - internalGetMutableSkillGroupCdMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> - getMutableSkillGroupCdMap() { - return internalGetMutableSkillGroupCdMap().getMutableMap(); - } - /** - * <code>map<uint32, uint32> skillGroupCdMap = 2;</code> - */ - public Builder putSkillGroupCdMap( - int key, - int value) { - - - internalGetMutableSkillGroupCdMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, uint32> skillGroupCdMap = 2;</code> - */ - - public Builder putAllSkillGroupCdMap( - java.util.Map<java.lang.Integer, java.lang.Integer> values) { - internalGetMutableSkillGroupCdMap().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AiSkillCdInfo) - } - - // @@protoc_insertion_point(class_scope:AiSkillCdInfo) - private static final emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo(); - } - - public static emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AiSkillCdInfo> - PARSER = new com.google.protobuf.AbstractParser<AiSkillCdInfo>() { - @java.lang.Override - public AiSkillCdInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AiSkillCdInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AiSkillCdInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AiSkillCdInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AiSkillCdInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AiSkillCdInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AiSkillCdInfo_SkillCdMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AiSkillCdInfo_SkillCdMapEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AiSkillCdInfo_SkillGroupCdMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AiSkillCdInfo_SkillGroupCdMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023AiSkillCdInfo.proto\"\354\001\n\rAiSkillCdInfo\022" + - "2\n\nskillCdMap\030\001 \003(\0132\036.AiSkillCdInfo.Skil" + - "lCdMapEntry\022<\n\017skillGroupCdMap\030\002 \003(\0132#.A" + - "iSkillCdInfo.SkillGroupCdMapEntry\0321\n\017Ski" + - "llCdMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\r" + - ":\0028\001\0326\n\024SkillGroupCdMapEntry\022\013\n\003key\030\001 \001(" + - "\r\022\r\n\005value\030\002 \001(\r:\0028\001B\033\n\031emu.grasscutter." + - "net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AiSkillCdInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AiSkillCdInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AiSkillCdInfo_descriptor, - new java.lang.String[] { "SkillCdMap", "SkillGroupCdMap", }); - internal_static_AiSkillCdInfo_SkillCdMapEntry_descriptor = - internal_static_AiSkillCdInfo_descriptor.getNestedTypes().get(0); - internal_static_AiSkillCdInfo_SkillCdMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AiSkillCdInfo_SkillCdMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_AiSkillCdInfo_SkillGroupCdMapEntry_descriptor = - internal_static_AiSkillCdInfo_descriptor.getNestedTypes().get(1); - internal_static_AiSkillCdInfo_SkillGroupCdMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AiSkillCdInfo_SkillGroupCdMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AiSyncInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AiSyncInfoOuterClass.java deleted file mode 100644 index 38e4d042f..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AiSyncInfoOuterClass.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AiSyncInfo.proto - -package emu.grasscutter.net.proto; - -public final class AiSyncInfoOuterClass { - private AiSyncInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AiSyncInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:AiSyncInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - int getEntityId(); - - /** - * <code>bool hasPathToTarget = 2;</code> - * @return The hasPathToTarget. - */ - boolean getHasPathToTarget(); - } - /** - * Protobuf type {@code AiSyncInfo} - */ - public static final class AiSyncInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AiSyncInfo) - AiSyncInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use AiSyncInfo.newBuilder() to construct. - private AiSyncInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AiSyncInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AiSyncInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AiSyncInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - entityId_ = input.readUInt32(); - break; - } - case 16: { - - hasPathToTarget_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AiSyncInfoOuterClass.internal_static_AiSyncInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AiSyncInfoOuterClass.internal_static_AiSyncInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo.class, emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo.Builder.class); - } - - public static final int ENTITYID_FIELD_NUMBER = 1; - private int entityId_; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - - public static final int HASPATHTOTARGET_FIELD_NUMBER = 2; - private boolean hasPathToTarget_; - /** - * <code>bool hasPathToTarget = 2;</code> - * @return The hasPathToTarget. - */ - @java.lang.Override - public boolean getHasPathToTarget() { - return hasPathToTarget_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (entityId_ != 0) { - output.writeUInt32(1, entityId_); - } - if (hasPathToTarget_ != false) { - output.writeBool(2, hasPathToTarget_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, entityId_); - } - if (hasPathToTarget_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, hasPathToTarget_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo other = (emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo) obj; - - if (getEntityId() - != other.getEntityId()) return false; - if (getHasPathToTarget() - != other.getHasPathToTarget()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId(); - hash = (37 * hash) + HASPATHTOTARGET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getHasPathToTarget()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AiSyncInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AiSyncInfo) - emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AiSyncInfoOuterClass.internal_static_AiSyncInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AiSyncInfoOuterClass.internal_static_AiSyncInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo.class, emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - entityId_ = 0; - - hasPathToTarget_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AiSyncInfoOuterClass.internal_static_AiSyncInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo build() { - emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo buildPartial() { - emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo result = new emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo(this); - result.entityId_ = entityId_; - result.hasPathToTarget_ = hasPathToTarget_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo) { - return mergeFrom((emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo other) { - if (other == emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo.getDefaultInstance()) return this; - if (other.getEntityId() != 0) { - setEntityId(other.getEntityId()); - } - if (other.getHasPathToTarget() != false) { - setHasPathToTarget(other.getHasPathToTarget()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int entityId_ ; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - /** - * <code>uint32 entityId = 1;</code> - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId(int value) { - - entityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 entityId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearEntityId() { - - entityId_ = 0; - onChanged(); - return this; - } - - private boolean hasPathToTarget_ ; - /** - * <code>bool hasPathToTarget = 2;</code> - * @return The hasPathToTarget. - */ - @java.lang.Override - public boolean getHasPathToTarget() { - return hasPathToTarget_; - } - /** - * <code>bool hasPathToTarget = 2;</code> - * @param value The hasPathToTarget to set. - * @return This builder for chaining. - */ - public Builder setHasPathToTarget(boolean value) { - - hasPathToTarget_ = value; - onChanged(); - return this; - } - /** - * <code>bool hasPathToTarget = 2;</code> - * @return This builder for chaining. - */ - public Builder clearHasPathToTarget() { - - hasPathToTarget_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AiSyncInfo) - } - - // @@protoc_insertion_point(class_scope:AiSyncInfo) - private static final emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo(); - } - - public static emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AiSyncInfo> - PARSER = new com.google.protobuf.AbstractParser<AiSyncInfo>() { - @java.lang.Override - public AiSyncInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AiSyncInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AiSyncInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AiSyncInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AiSyncInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AiSyncInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020AiSyncInfo.proto\"7\n\nAiSyncInfo\022\020\n\010enti" + - "tyId\030\001 \001(\r\022\027\n\017hasPathToTarget\030\002 \001(\010B\033\n\031e" + - "mu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AiSyncInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AiSyncInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AiSyncInfo_descriptor, - new java.lang.String[] { "EntityId", "HasPathToTarget", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AiThreatInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AiThreatInfoOuterClass.java deleted file mode 100644 index f62aa6547..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AiThreatInfoOuterClass.java +++ /dev/null @@ -1,799 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AiThreatInfo.proto - -package emu.grasscutter.net.proto; - -public final class AiThreatInfoOuterClass { - private AiThreatInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AiThreatInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:AiThreatInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>map<uint32, uint32> aiThreatMap = 1;</code> - */ - int getAiThreatMapCount(); - /** - * <code>map<uint32, uint32> aiThreatMap = 1;</code> - */ - boolean containsAiThreatMap( - int key); - /** - * Use {@link #getAiThreatMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Integer> - getAiThreatMap(); - /** - * <code>map<uint32, uint32> aiThreatMap = 1;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Integer> - getAiThreatMapMap(); - /** - * <code>map<uint32, uint32> aiThreatMap = 1;</code> - */ - - int getAiThreatMapOrDefault( - int key, - int defaultValue); - /** - * <code>map<uint32, uint32> aiThreatMap = 1;</code> - */ - - int getAiThreatMapOrThrow( - int key); - } - /** - * Protobuf type {@code AiThreatInfo} - */ - public static final class AiThreatInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AiThreatInfo) - AiThreatInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use AiThreatInfo.newBuilder() to construct. - private AiThreatInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AiThreatInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AiThreatInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AiThreatInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - aiThreatMap_ = com.google.protobuf.MapField.newMapField( - AiThreatMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - aiThreatMap__ = input.readMessage( - AiThreatMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - aiThreatMap_.getMutableMap().put( - aiThreatMap__.getKey(), aiThreatMap__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AiThreatInfoOuterClass.internal_static_AiThreatInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetAiThreatMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AiThreatInfoOuterClass.internal_static_AiThreatInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo.class, emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo.Builder.class); - } - - public static final int AITHREATMAP_FIELD_NUMBER = 1; - private static final class AiThreatMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Integer>newDefaultInstance( - emu.grasscutter.net.proto.AiThreatInfoOuterClass.internal_static_AiThreatInfo_AiThreatMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> aiThreatMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetAiThreatMap() { - if (aiThreatMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AiThreatMapDefaultEntryHolder.defaultEntry); - } - return aiThreatMap_; - } - - public int getAiThreatMapCount() { - return internalGetAiThreatMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> aiThreatMap = 1;</code> - */ - - @java.lang.Override - public boolean containsAiThreatMap( - int key) { - - return internalGetAiThreatMap().getMap().containsKey(key); - } - /** - * Use {@link #getAiThreatMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getAiThreatMap() { - return getAiThreatMapMap(); - } - /** - * <code>map<uint32, uint32> aiThreatMap = 1;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getAiThreatMapMap() { - return internalGetAiThreatMap().getMap(); - } - /** - * <code>map<uint32, uint32> aiThreatMap = 1;</code> - */ - @java.lang.Override - - public int getAiThreatMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetAiThreatMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> aiThreatMap = 1;</code> - */ - @java.lang.Override - - public int getAiThreatMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetAiThreatMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetAiThreatMap(), - AiThreatMapDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry - : internalGetAiThreatMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - aiThreatMap__ = AiThreatMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, aiThreatMap__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo other = (emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo) obj; - - if (!internalGetAiThreatMap().equals( - other.internalGetAiThreatMap())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetAiThreatMap().getMap().isEmpty()) { - hash = (37 * hash) + AITHREATMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetAiThreatMap().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AiThreatInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AiThreatInfo) - emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AiThreatInfoOuterClass.internal_static_AiThreatInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetAiThreatMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableAiThreatMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AiThreatInfoOuterClass.internal_static_AiThreatInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo.class, emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableAiThreatMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AiThreatInfoOuterClass.internal_static_AiThreatInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo build() { - emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo buildPartial() { - emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo result = new emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo(this); - int from_bitField0_ = bitField0_; - result.aiThreatMap_ = internalGetAiThreatMap(); - result.aiThreatMap_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo) { - return mergeFrom((emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo other) { - if (other == emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo.getDefaultInstance()) return this; - internalGetMutableAiThreatMap().mergeFrom( - other.internalGetAiThreatMap()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> aiThreatMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetAiThreatMap() { - if (aiThreatMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AiThreatMapDefaultEntryHolder.defaultEntry); - } - return aiThreatMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetMutableAiThreatMap() { - onChanged();; - if (aiThreatMap_ == null) { - aiThreatMap_ = com.google.protobuf.MapField.newMapField( - AiThreatMapDefaultEntryHolder.defaultEntry); - } - if (!aiThreatMap_.isMutable()) { - aiThreatMap_ = aiThreatMap_.copy(); - } - return aiThreatMap_; - } - - public int getAiThreatMapCount() { - return internalGetAiThreatMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> aiThreatMap = 1;</code> - */ - - @java.lang.Override - public boolean containsAiThreatMap( - int key) { - - return internalGetAiThreatMap().getMap().containsKey(key); - } - /** - * Use {@link #getAiThreatMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getAiThreatMap() { - return getAiThreatMapMap(); - } - /** - * <code>map<uint32, uint32> aiThreatMap = 1;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getAiThreatMapMap() { - return internalGetAiThreatMap().getMap(); - } - /** - * <code>map<uint32, uint32> aiThreatMap = 1;</code> - */ - @java.lang.Override - - public int getAiThreatMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetAiThreatMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> aiThreatMap = 1;</code> - */ - @java.lang.Override - - public int getAiThreatMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetAiThreatMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearAiThreatMap() { - internalGetMutableAiThreatMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, uint32> aiThreatMap = 1;</code> - */ - - public Builder removeAiThreatMap( - int key) { - - internalGetMutableAiThreatMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> - getMutableAiThreatMap() { - return internalGetMutableAiThreatMap().getMutableMap(); - } - /** - * <code>map<uint32, uint32> aiThreatMap = 1;</code> - */ - public Builder putAiThreatMap( - int key, - int value) { - - - internalGetMutableAiThreatMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, uint32> aiThreatMap = 1;</code> - */ - - public Builder putAllAiThreatMap( - java.util.Map<java.lang.Integer, java.lang.Integer> values) { - internalGetMutableAiThreatMap().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AiThreatInfo) - } - - // @@protoc_insertion_point(class_scope:AiThreatInfo) - private static final emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo(); - } - - public static emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AiThreatInfo> - PARSER = new com.google.protobuf.AbstractParser<AiThreatInfo>() { - @java.lang.Override - public AiThreatInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AiThreatInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AiThreatInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AiThreatInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AiThreatInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AiThreatInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AiThreatInfo_AiThreatMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AiThreatInfo_AiThreatMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\022AiThreatInfo.proto\"w\n\014AiThreatInfo\0223\n\013" + - "aiThreatMap\030\001 \003(\0132\036.AiThreatInfo.AiThrea" + - "tMapEntry\0322\n\020AiThreatMapEntry\022\013\n\003key\030\001 \001" + - "(\r\022\r\n\005value\030\002 \001(\r:\0028\001B\033\n\031emu.grasscutter" + - ".net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AiThreatInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AiThreatInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AiThreatInfo_descriptor, - new java.lang.String[] { "AiThreatMap", }); - internal_static_AiThreatInfo_AiThreatMapEntry_descriptor = - internal_static_AiThreatInfo_descriptor.getNestedTypes().get(0); - internal_static_AiThreatInfo_AiThreatMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AiThreatInfo_AiThreatMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AnimatorParameterValueInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AnimatorParameterValueInfoOuterClass.java deleted file mode 100644 index ceef40679..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AnimatorParameterValueInfoOuterClass.java +++ /dev/null @@ -1,751 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AnimatorParameterValueInfo.proto - -package emu.grasscutter.net.proto; - -public final class AnimatorParameterValueInfoOuterClass { - private AnimatorParameterValueInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AnimatorParameterValueInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:AnimatorParameterValueInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 paraType = 1;</code> - * @return The paraType. - */ - int getParaType(); - - /** - * <code>int32 intVal = 2;</code> - * @return The intVal. - */ - int getIntVal(); - - /** - * <code>float floatVal = 3;</code> - * @return The floatVal. - */ - float getFloatVal(); - - /** - * <code>bool boolVal = 4;</code> - * @return The boolVal. - */ - boolean getBoolVal(); - } - /** - * Protobuf type {@code AnimatorParameterValueInfo} - */ - public static final class AnimatorParameterValueInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AnimatorParameterValueInfo) - AnimatorParameterValueInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use AnimatorParameterValueInfo.newBuilder() to construct. - private AnimatorParameterValueInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AnimatorParameterValueInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AnimatorParameterValueInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AnimatorParameterValueInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - paraType_ = input.readUInt32(); - break; - } - case 16: { - - intVal_ = input.readInt32(); - break; - } - case 29: { - - floatVal_ = input.readFloat(); - break; - } - case 32: { - - boolVal_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.internal_static_AnimatorParameterValueInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.internal_static_AnimatorParameterValueInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo.class, emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo.Builder.class); - } - - public static final int PARATYPE_FIELD_NUMBER = 1; - private int paraType_; - /** - * <code>uint32 paraType = 1;</code> - * @return The paraType. - */ - @java.lang.Override - public int getParaType() { - return paraType_; - } - - public static final int INTVAL_FIELD_NUMBER = 2; - private int intVal_; - /** - * <code>int32 intVal = 2;</code> - * @return The intVal. - */ - @java.lang.Override - public int getIntVal() { - return intVal_; - } - - public static final int FLOATVAL_FIELD_NUMBER = 3; - private float floatVal_; - /** - * <code>float floatVal = 3;</code> - * @return The floatVal. - */ - @java.lang.Override - public float getFloatVal() { - return floatVal_; - } - - public static final int BOOLVAL_FIELD_NUMBER = 4; - private boolean boolVal_; - /** - * <code>bool boolVal = 4;</code> - * @return The boolVal. - */ - @java.lang.Override - public boolean getBoolVal() { - return boolVal_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (paraType_ != 0) { - output.writeUInt32(1, paraType_); - } - if (intVal_ != 0) { - output.writeInt32(2, intVal_); - } - if (floatVal_ != 0F) { - output.writeFloat(3, floatVal_); - } - if (boolVal_ != false) { - output.writeBool(4, boolVal_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (paraType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, paraType_); - } - if (intVal_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, intVal_); - } - if (floatVal_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, floatVal_); - } - if (boolVal_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, boolVal_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo other = (emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo) obj; - - if (getParaType() - != other.getParaType()) return false; - if (getIntVal() - != other.getIntVal()) return false; - if (java.lang.Float.floatToIntBits(getFloatVal()) - != java.lang.Float.floatToIntBits( - other.getFloatVal())) return false; - if (getBoolVal() - != other.getBoolVal()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARATYPE_FIELD_NUMBER; - hash = (53 * hash) + getParaType(); - hash = (37 * hash) + INTVAL_FIELD_NUMBER; - hash = (53 * hash) + getIntVal(); - hash = (37 * hash) + FLOATVAL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getFloatVal()); - hash = (37 * hash) + BOOLVAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBoolVal()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AnimatorParameterValueInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AnimatorParameterValueInfo) - emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.internal_static_AnimatorParameterValueInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.internal_static_AnimatorParameterValueInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo.class, emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - paraType_ = 0; - - intVal_ = 0; - - floatVal_ = 0F; - - boolVal_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.internal_static_AnimatorParameterValueInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo build() { - emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo buildPartial() { - emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo result = new emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo(this); - result.paraType_ = paraType_; - result.intVal_ = intVal_; - result.floatVal_ = floatVal_; - result.boolVal_ = boolVal_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo) { - return mergeFrom((emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo other) { - if (other == emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo.getDefaultInstance()) return this; - if (other.getParaType() != 0) { - setParaType(other.getParaType()); - } - if (other.getIntVal() != 0) { - setIntVal(other.getIntVal()); - } - if (other.getFloatVal() != 0F) { - setFloatVal(other.getFloatVal()); - } - if (other.getBoolVal() != false) { - setBoolVal(other.getBoolVal()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int paraType_ ; - /** - * <code>uint32 paraType = 1;</code> - * @return The paraType. - */ - @java.lang.Override - public int getParaType() { - return paraType_; - } - /** - * <code>uint32 paraType = 1;</code> - * @param value The paraType to set. - * @return This builder for chaining. - */ - public Builder setParaType(int value) { - - paraType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 paraType = 1;</code> - * @return This builder for chaining. - */ - public Builder clearParaType() { - - paraType_ = 0; - onChanged(); - return this; - } - - private int intVal_ ; - /** - * <code>int32 intVal = 2;</code> - * @return The intVal. - */ - @java.lang.Override - public int getIntVal() { - return intVal_; - } - /** - * <code>int32 intVal = 2;</code> - * @param value The intVal to set. - * @return This builder for chaining. - */ - public Builder setIntVal(int value) { - - intVal_ = value; - onChanged(); - return this; - } - /** - * <code>int32 intVal = 2;</code> - * @return This builder for chaining. - */ - public Builder clearIntVal() { - - intVal_ = 0; - onChanged(); - return this; - } - - private float floatVal_ ; - /** - * <code>float floatVal = 3;</code> - * @return The floatVal. - */ - @java.lang.Override - public float getFloatVal() { - return floatVal_; - } - /** - * <code>float floatVal = 3;</code> - * @param value The floatVal to set. - * @return This builder for chaining. - */ - public Builder setFloatVal(float value) { - - floatVal_ = value; - onChanged(); - return this; - } - /** - * <code>float floatVal = 3;</code> - * @return This builder for chaining. - */ - public Builder clearFloatVal() { - - floatVal_ = 0F; - onChanged(); - return this; - } - - private boolean boolVal_ ; - /** - * <code>bool boolVal = 4;</code> - * @return The boolVal. - */ - @java.lang.Override - public boolean getBoolVal() { - return boolVal_; - } - /** - * <code>bool boolVal = 4;</code> - * @param value The boolVal to set. - * @return This builder for chaining. - */ - public Builder setBoolVal(boolean value) { - - boolVal_ = value; - onChanged(); - return this; - } - /** - * <code>bool boolVal = 4;</code> - * @return This builder for chaining. - */ - public Builder clearBoolVal() { - - boolVal_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AnimatorParameterValueInfo) - } - - // @@protoc_insertion_point(class_scope:AnimatorParameterValueInfo) - private static final emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo(); - } - - public static emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AnimatorParameterValueInfo> - PARSER = new com.google.protobuf.AbstractParser<AnimatorParameterValueInfo>() { - @java.lang.Override - public AnimatorParameterValueInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnimatorParameterValueInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AnimatorParameterValueInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AnimatorParameterValueInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AnimatorParameterValueInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AnimatorParameterValueInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n AnimatorParameterValueInfo.proto\"a\n\032An" + - "imatorParameterValueInfo\022\020\n\010paraType\030\001 \001" + - "(\r\022\016\n\006intVal\030\002 \001(\005\022\020\n\010floatVal\030\003 \001(\002\022\017\n\007" + - "boolVal\030\004 \001(\010B\033\n\031emu.grasscutter.net.pro" + - "tob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AnimatorParameterValueInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AnimatorParameterValueInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AnimatorParameterValueInfo_descriptor, - new java.lang.String[] { "ParaType", "IntVal", "FloatVal", "BoolVal", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AnimatorParameterValueInfoPairOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AnimatorParameterValueInfoPairOuterClass.java deleted file mode 100644 index 2ddcd30dd..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AnimatorParameterValueInfoPairOuterClass.java +++ /dev/null @@ -1,744 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AnimatorParameterValueInfoPair.proto - -package emu.grasscutter.net.proto; - -public final class AnimatorParameterValueInfoPairOuterClass { - private AnimatorParameterValueInfoPairOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AnimatorParameterValueInfoPairOrBuilder extends - // @@protoc_insertion_point(interface_extends:AnimatorParameterValueInfoPair) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 name = 1;</code> - * @return The name. - */ - int getName(); - - /** - * <code>.AnimatorParameterValueInfo animatorPara = 2;</code> - * @return Whether the animatorPara field is set. - */ - boolean hasAnimatorPara(); - /** - * <code>.AnimatorParameterValueInfo animatorPara = 2;</code> - * @return The animatorPara. - */ - emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo getAnimatorPara(); - /** - * <code>.AnimatorParameterValueInfo animatorPara = 2;</code> - */ - emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfoOrBuilder getAnimatorParaOrBuilder(); - } - /** - * Protobuf type {@code AnimatorParameterValueInfoPair} - */ - public static final class AnimatorParameterValueInfoPair extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AnimatorParameterValueInfoPair) - AnimatorParameterValueInfoPairOrBuilder { - private static final long serialVersionUID = 0L; - // Use AnimatorParameterValueInfoPair.newBuilder() to construct. - private AnimatorParameterValueInfoPair(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AnimatorParameterValueInfoPair() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AnimatorParameterValueInfoPair(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AnimatorParameterValueInfoPair( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - name_ = input.readInt32(); - break; - } - case 18: { - emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo.Builder subBuilder = null; - if (animatorPara_ != null) { - subBuilder = animatorPara_.toBuilder(); - } - animatorPara_ = input.readMessage(emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(animatorPara_); - animatorPara_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.internal_static_AnimatorParameterValueInfoPair_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.internal_static_AnimatorParameterValueInfoPair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.class, emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private int name_; - /** - * <code>int32 name = 1;</code> - * @return The name. - */ - @java.lang.Override - public int getName() { - return name_; - } - - public static final int ANIMATORPARA_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo animatorPara_; - /** - * <code>.AnimatorParameterValueInfo animatorPara = 2;</code> - * @return Whether the animatorPara field is set. - */ - @java.lang.Override - public boolean hasAnimatorPara() { - return animatorPara_ != null; - } - /** - * <code>.AnimatorParameterValueInfo animatorPara = 2;</code> - * @return The animatorPara. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo getAnimatorPara() { - return animatorPara_ == null ? emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo.getDefaultInstance() : animatorPara_; - } - /** - * <code>.AnimatorParameterValueInfo animatorPara = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfoOrBuilder getAnimatorParaOrBuilder() { - return getAnimatorPara(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (name_ != 0) { - output.writeInt32(1, name_); - } - if (animatorPara_ != null) { - output.writeMessage(2, getAnimatorPara()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (name_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, name_); - } - if (animatorPara_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAnimatorPara()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair other = (emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair) obj; - - if (getName() - != other.getName()) return false; - if (hasAnimatorPara() != other.hasAnimatorPara()) return false; - if (hasAnimatorPara()) { - if (!getAnimatorPara() - .equals(other.getAnimatorPara())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName(); - if (hasAnimatorPara()) { - hash = (37 * hash) + ANIMATORPARA_FIELD_NUMBER; - hash = (53 * hash) + getAnimatorPara().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AnimatorParameterValueInfoPair} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AnimatorParameterValueInfoPair) - emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPairOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.internal_static_AnimatorParameterValueInfoPair_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.internal_static_AnimatorParameterValueInfoPair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.class, emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = 0; - - if (animatorParaBuilder_ == null) { - animatorPara_ = null; - } else { - animatorPara_ = null; - animatorParaBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.internal_static_AnimatorParameterValueInfoPair_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair build() { - emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair buildPartial() { - emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair result = new emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair(this); - result.name_ = name_; - if (animatorParaBuilder_ == null) { - result.animatorPara_ = animatorPara_; - } else { - result.animatorPara_ = animatorParaBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair) { - return mergeFrom((emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair other) { - if (other == emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.getDefaultInstance()) return this; - if (other.getName() != 0) { - setName(other.getName()); - } - if (other.hasAnimatorPara()) { - mergeAnimatorPara(other.getAnimatorPara()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int name_ ; - /** - * <code>int32 name = 1;</code> - * @return The name. - */ - @java.lang.Override - public int getName() { - return name_; - } - /** - * <code>int32 name = 1;</code> - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(int value) { - - name_ = value; - onChanged(); - return this; - } - /** - * <code>int32 name = 1;</code> - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo animatorPara_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo, emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo.Builder, emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfoOrBuilder> animatorParaBuilder_; - /** - * <code>.AnimatorParameterValueInfo animatorPara = 2;</code> - * @return Whether the animatorPara field is set. - */ - public boolean hasAnimatorPara() { - return animatorParaBuilder_ != null || animatorPara_ != null; - } - /** - * <code>.AnimatorParameterValueInfo animatorPara = 2;</code> - * @return The animatorPara. - */ - public emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo getAnimatorPara() { - if (animatorParaBuilder_ == null) { - return animatorPara_ == null ? emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo.getDefaultInstance() : animatorPara_; - } else { - return animatorParaBuilder_.getMessage(); - } - } - /** - * <code>.AnimatorParameterValueInfo animatorPara = 2;</code> - */ - public Builder setAnimatorPara(emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo value) { - if (animatorParaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - animatorPara_ = value; - onChanged(); - } else { - animatorParaBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.AnimatorParameterValueInfo animatorPara = 2;</code> - */ - public Builder setAnimatorPara( - emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo.Builder builderForValue) { - if (animatorParaBuilder_ == null) { - animatorPara_ = builderForValue.build(); - onChanged(); - } else { - animatorParaBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.AnimatorParameterValueInfo animatorPara = 2;</code> - */ - public Builder mergeAnimatorPara(emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo value) { - if (animatorParaBuilder_ == null) { - if (animatorPara_ != null) { - animatorPara_ = - emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo.newBuilder(animatorPara_).mergeFrom(value).buildPartial(); - } else { - animatorPara_ = value; - } - onChanged(); - } else { - animatorParaBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.AnimatorParameterValueInfo animatorPara = 2;</code> - */ - public Builder clearAnimatorPara() { - if (animatorParaBuilder_ == null) { - animatorPara_ = null; - onChanged(); - } else { - animatorPara_ = null; - animatorParaBuilder_ = null; - } - - return this; - } - /** - * <code>.AnimatorParameterValueInfo animatorPara = 2;</code> - */ - public emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo.Builder getAnimatorParaBuilder() { - - onChanged(); - return getAnimatorParaFieldBuilder().getBuilder(); - } - /** - * <code>.AnimatorParameterValueInfo animatorPara = 2;</code> - */ - public emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfoOrBuilder getAnimatorParaOrBuilder() { - if (animatorParaBuilder_ != null) { - return animatorParaBuilder_.getMessageOrBuilder(); - } else { - return animatorPara_ == null ? - emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo.getDefaultInstance() : animatorPara_; - } - } - /** - * <code>.AnimatorParameterValueInfo animatorPara = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo, emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo.Builder, emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfoOrBuilder> - getAnimatorParaFieldBuilder() { - if (animatorParaBuilder_ == null) { - animatorParaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo, emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo.Builder, emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfoOrBuilder>( - getAnimatorPara(), - getParentForChildren(), - isClean()); - animatorPara_ = null; - } - return animatorParaBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AnimatorParameterValueInfoPair) - } - - // @@protoc_insertion_point(class_scope:AnimatorParameterValueInfoPair) - private static final emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair(); - } - - public static emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AnimatorParameterValueInfoPair> - PARSER = new com.google.protobuf.AbstractParser<AnimatorParameterValueInfoPair>() { - @java.lang.Override - public AnimatorParameterValueInfoPair parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnimatorParameterValueInfoPair(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AnimatorParameterValueInfoPair> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AnimatorParameterValueInfoPair> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AnimatorParameterValueInfoPair_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AnimatorParameterValueInfoPair_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n$AnimatorParameterValueInfoPair.proto\032 " + - "AnimatorParameterValueInfo.proto\"a\n\036Anim" + - "atorParameterValueInfoPair\022\014\n\004name\030\001 \001(\005" + - "\0221\n\014animatorPara\030\002 \001(\0132\033.AnimatorParamet" + - "erValueInfoB\033\n\031emu.grasscutter.net.proto" + - "b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.getDescriptor(), - }); - internal_static_AnimatorParameterValueInfoPair_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AnimatorParameterValueInfoPair_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AnimatorParameterValueInfoPair_descriptor, - new java.lang.String[] { "Name", "AnimatorPara", }); - emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AskAddFriendNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AskAddFriendNotifyOuterClass.java deleted file mode 100644 index 115f7372b..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AskAddFriendNotifyOuterClass.java +++ /dev/null @@ -1,743 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AskAddFriendNotify.proto - -package emu.grasscutter.net.proto; - -public final class AskAddFriendNotifyOuterClass { - private AskAddFriendNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AskAddFriendNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:AskAddFriendNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - int getTargetUid(); - - /** - * <code>.FriendBrief targetFriendBrief = 2;</code> - * @return Whether the targetFriendBrief field is set. - */ - boolean hasTargetFriendBrief(); - /** - * <code>.FriendBrief targetFriendBrief = 2;</code> - * @return The targetFriendBrief. - */ - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getTargetFriendBrief(); - /** - * <code>.FriendBrief targetFriendBrief = 2;</code> - */ - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder getTargetFriendBriefOrBuilder(); - } - /** - * Protobuf type {@code AskAddFriendNotify} - */ - public static final class AskAddFriendNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AskAddFriendNotify) - AskAddFriendNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use AskAddFriendNotify.newBuilder() to construct. - private AskAddFriendNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AskAddFriendNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AskAddFriendNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AskAddFriendNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - targetUid_ = input.readUInt32(); - break; - } - case 18: { - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder subBuilder = null; - if (targetFriendBrief_ != null) { - subBuilder = targetFriendBrief_.toBuilder(); - } - targetFriendBrief_ = input.readMessage(emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(targetFriendBrief_); - targetFriendBrief_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.internal_static_AskAddFriendNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.internal_static_AskAddFriendNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify.class, emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify.Builder.class); - } - - public static final int TARGETUID_FIELD_NUMBER = 1; - private int targetUid_; - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - - public static final int TARGETFRIENDBRIEF_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief targetFriendBrief_; - /** - * <code>.FriendBrief targetFriendBrief = 2;</code> - * @return Whether the targetFriendBrief field is set. - */ - @java.lang.Override - public boolean hasTargetFriendBrief() { - return targetFriendBrief_ != null; - } - /** - * <code>.FriendBrief targetFriendBrief = 2;</code> - * @return The targetFriendBrief. - */ - @java.lang.Override - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getTargetFriendBrief() { - return targetFriendBrief_ == null ? emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.getDefaultInstance() : targetFriendBrief_; - } - /** - * <code>.FriendBrief targetFriendBrief = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder getTargetFriendBriefOrBuilder() { - return getTargetFriendBrief(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (targetUid_ != 0) { - output.writeUInt32(1, targetUid_); - } - if (targetFriendBrief_ != null) { - output.writeMessage(2, getTargetFriendBrief()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (targetUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, targetUid_); - } - if (targetFriendBrief_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTargetFriendBrief()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify other = (emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify) obj; - - if (getTargetUid() - != other.getTargetUid()) return false; - if (hasTargetFriendBrief() != other.hasTargetFriendBrief()) return false; - if (hasTargetFriendBrief()) { - if (!getTargetFriendBrief() - .equals(other.getTargetFriendBrief())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TARGETUID_FIELD_NUMBER; - hash = (53 * hash) + getTargetUid(); - if (hasTargetFriendBrief()) { - hash = (37 * hash) + TARGETFRIENDBRIEF_FIELD_NUMBER; - hash = (53 * hash) + getTargetFriendBrief().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AskAddFriendNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AskAddFriendNotify) - emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.internal_static_AskAddFriendNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.internal_static_AskAddFriendNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify.class, emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - targetUid_ = 0; - - if (targetFriendBriefBuilder_ == null) { - targetFriendBrief_ = null; - } else { - targetFriendBrief_ = null; - targetFriendBriefBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.internal_static_AskAddFriendNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify build() { - emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify buildPartial() { - emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify result = new emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify(this); - result.targetUid_ = targetUid_; - if (targetFriendBriefBuilder_ == null) { - result.targetFriendBrief_ = targetFriendBrief_; - } else { - result.targetFriendBrief_ = targetFriendBriefBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify) { - return mergeFrom((emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify other) { - if (other == emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify.getDefaultInstance()) return this; - if (other.getTargetUid() != 0) { - setTargetUid(other.getTargetUid()); - } - if (other.hasTargetFriendBrief()) { - mergeTargetFriendBrief(other.getTargetFriendBrief()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int targetUid_ ; - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - /** - * <code>uint32 targetUid = 1;</code> - * @param value The targetUid to set. - * @return This builder for chaining. - */ - public Builder setTargetUid(int value) { - - targetUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 targetUid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTargetUid() { - - targetUid_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief targetFriendBrief_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder> targetFriendBriefBuilder_; - /** - * <code>.FriendBrief targetFriendBrief = 2;</code> - * @return Whether the targetFriendBrief field is set. - */ - public boolean hasTargetFriendBrief() { - return targetFriendBriefBuilder_ != null || targetFriendBrief_ != null; - } - /** - * <code>.FriendBrief targetFriendBrief = 2;</code> - * @return The targetFriendBrief. - */ - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getTargetFriendBrief() { - if (targetFriendBriefBuilder_ == null) { - return targetFriendBrief_ == null ? emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.getDefaultInstance() : targetFriendBrief_; - } else { - return targetFriendBriefBuilder_.getMessage(); - } - } - /** - * <code>.FriendBrief targetFriendBrief = 2;</code> - */ - public Builder setTargetFriendBrief(emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief value) { - if (targetFriendBriefBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - targetFriendBrief_ = value; - onChanged(); - } else { - targetFriendBriefBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.FriendBrief targetFriendBrief = 2;</code> - */ - public Builder setTargetFriendBrief( - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder builderForValue) { - if (targetFriendBriefBuilder_ == null) { - targetFriendBrief_ = builderForValue.build(); - onChanged(); - } else { - targetFriendBriefBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.FriendBrief targetFriendBrief = 2;</code> - */ - public Builder mergeTargetFriendBrief(emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief value) { - if (targetFriendBriefBuilder_ == null) { - if (targetFriendBrief_ != null) { - targetFriendBrief_ = - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.newBuilder(targetFriendBrief_).mergeFrom(value).buildPartial(); - } else { - targetFriendBrief_ = value; - } - onChanged(); - } else { - targetFriendBriefBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.FriendBrief targetFriendBrief = 2;</code> - */ - public Builder clearTargetFriendBrief() { - if (targetFriendBriefBuilder_ == null) { - targetFriendBrief_ = null; - onChanged(); - } else { - targetFriendBrief_ = null; - targetFriendBriefBuilder_ = null; - } - - return this; - } - /** - * <code>.FriendBrief targetFriendBrief = 2;</code> - */ - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder getTargetFriendBriefBuilder() { - - onChanged(); - return getTargetFriendBriefFieldBuilder().getBuilder(); - } - /** - * <code>.FriendBrief targetFriendBrief = 2;</code> - */ - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder getTargetFriendBriefOrBuilder() { - if (targetFriendBriefBuilder_ != null) { - return targetFriendBriefBuilder_.getMessageOrBuilder(); - } else { - return targetFriendBrief_ == null ? - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.getDefaultInstance() : targetFriendBrief_; - } - } - /** - * <code>.FriendBrief targetFriendBrief = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder> - getTargetFriendBriefFieldBuilder() { - if (targetFriendBriefBuilder_ == null) { - targetFriendBriefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder>( - getTargetFriendBrief(), - getParentForChildren(), - isClean()); - targetFriendBrief_ = null; - } - return targetFriendBriefBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AskAddFriendNotify) - } - - // @@protoc_insertion_point(class_scope:AskAddFriendNotify) - private static final emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify(); - } - - public static emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AskAddFriendNotify> - PARSER = new com.google.protobuf.AbstractParser<AskAddFriendNotify>() { - @java.lang.Override - public AskAddFriendNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AskAddFriendNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AskAddFriendNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AskAddFriendNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AskAddFriendNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AskAddFriendNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030AskAddFriendNotify.proto\032\021FriendBrief." + - "proto\"P\n\022AskAddFriendNotify\022\021\n\ttargetUid" + - "\030\001 \001(\r\022\'\n\021targetFriendBrief\030\002 \001(\0132\014.Frie" + - "ndBriefB\033\n\031emu.grasscutter.net.protob\006pr" + - "oto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.FriendBriefOuterClass.getDescriptor(), - }); - internal_static_AskAddFriendNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AskAddFriendNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AskAddFriendNotify_descriptor, - new java.lang.String[] { "TargetUid", "TargetFriendBrief", }); - emu.grasscutter.net.proto.FriendBriefOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AskAddFriendReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AskAddFriendReqOuterClass.java deleted file mode 100644 index edc2e694b..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AskAddFriendReqOuterClass.java +++ /dev/null @@ -1,536 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AskAddFriendReq.proto - -package emu.grasscutter.net.proto; - -public final class AskAddFriendReqOuterClass { - private AskAddFriendReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AskAddFriendReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:AskAddFriendReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - int getTargetUid(); - } - /** - * Protobuf type {@code AskAddFriendReq} - */ - public static final class AskAddFriendReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AskAddFriendReq) - AskAddFriendReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use AskAddFriendReq.newBuilder() to construct. - private AskAddFriendReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AskAddFriendReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AskAddFriendReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AskAddFriendReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - targetUid_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AskAddFriendReqOuterClass.internal_static_AskAddFriendReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AskAddFriendReqOuterClass.internal_static_AskAddFriendReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq.class, emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq.Builder.class); - } - - public static final int TARGETUID_FIELD_NUMBER = 1; - private int targetUid_; - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (targetUid_ != 0) { - output.writeUInt32(1, targetUid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (targetUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, targetUid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq other = (emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq) obj; - - if (getTargetUid() - != other.getTargetUid()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TARGETUID_FIELD_NUMBER; - hash = (53 * hash) + getTargetUid(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AskAddFriendReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AskAddFriendReq) - emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AskAddFriendReqOuterClass.internal_static_AskAddFriendReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AskAddFriendReqOuterClass.internal_static_AskAddFriendReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq.class, emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - targetUid_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AskAddFriendReqOuterClass.internal_static_AskAddFriendReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq build() { - emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq buildPartial() { - emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq result = new emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq(this); - result.targetUid_ = targetUid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq) { - return mergeFrom((emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq other) { - if (other == emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq.getDefaultInstance()) return this; - if (other.getTargetUid() != 0) { - setTargetUid(other.getTargetUid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int targetUid_ ; - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - /** - * <code>uint32 targetUid = 1;</code> - * @param value The targetUid to set. - * @return This builder for chaining. - */ - public Builder setTargetUid(int value) { - - targetUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 targetUid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTargetUid() { - - targetUid_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AskAddFriendReq) - } - - // @@protoc_insertion_point(class_scope:AskAddFriendReq) - private static final emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq(); - } - - public static emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AskAddFriendReq> - PARSER = new com.google.protobuf.AbstractParser<AskAddFriendReq>() { - @java.lang.Override - public AskAddFriendReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AskAddFriendReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AskAddFriendReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AskAddFriendReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AskAddFriendReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AskAddFriendReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025AskAddFriendReq.proto\"$\n\017AskAddFriendR" + - "eq\022\021\n\ttargetUid\030\001 \001(\rB\033\n\031emu.grasscutter" + - ".net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AskAddFriendReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AskAddFriendReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AskAddFriendReq_descriptor, - new java.lang.String[] { "TargetUid", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AskAddFriendRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AskAddFriendRspOuterClass.java deleted file mode 100644 index 40fb8d056..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AskAddFriendRspOuterClass.java +++ /dev/null @@ -1,677 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AskAddFriendRsp.proto - -package emu.grasscutter.net.proto; - -public final class AskAddFriendRspOuterClass { - private AskAddFriendRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AskAddFriendRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:AskAddFriendRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint32 targetUid = 2;</code> - * @return The targetUid. - */ - int getTargetUid(); - - /** - * <code>uint32 param = 3;</code> - * @return The param. - */ - int getParam(); - } - /** - * Protobuf type {@code AskAddFriendRsp} - */ - public static final class AskAddFriendRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AskAddFriendRsp) - AskAddFriendRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use AskAddFriendRsp.newBuilder() to construct. - private AskAddFriendRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AskAddFriendRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AskAddFriendRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AskAddFriendRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - targetUid_ = input.readUInt32(); - break; - } - case 24: { - - param_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AskAddFriendRspOuterClass.internal_static_AskAddFriendRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AskAddFriendRspOuterClass.internal_static_AskAddFriendRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp.class, emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int TARGETUID_FIELD_NUMBER = 2; - private int targetUid_; - /** - * <code>uint32 targetUid = 2;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - - public static final int PARAM_FIELD_NUMBER = 3; - private int param_; - /** - * <code>uint32 param = 3;</code> - * @return The param. - */ - @java.lang.Override - public int getParam() { - return param_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (targetUid_ != 0) { - output.writeUInt32(2, targetUid_); - } - if (param_ != 0) { - output.writeUInt32(3, param_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (targetUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, targetUid_); - } - if (param_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, param_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp other = (emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getTargetUid() - != other.getTargetUid()) return false; - if (getParam() - != other.getParam()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + TARGETUID_FIELD_NUMBER; - hash = (53 * hash) + getTargetUid(); - hash = (37 * hash) + PARAM_FIELD_NUMBER; - hash = (53 * hash) + getParam(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AskAddFriendRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AskAddFriendRsp) - emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AskAddFriendRspOuterClass.internal_static_AskAddFriendRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AskAddFriendRspOuterClass.internal_static_AskAddFriendRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp.class, emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - targetUid_ = 0; - - param_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AskAddFriendRspOuterClass.internal_static_AskAddFriendRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp build() { - emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp buildPartial() { - emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp result = new emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp(this); - result.retcode_ = retcode_; - result.targetUid_ = targetUid_; - result.param_ = param_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp) { - return mergeFrom((emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp other) { - if (other == emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getTargetUid() != 0) { - setTargetUid(other.getTargetUid()); - } - if (other.getParam() != 0) { - setParam(other.getParam()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int targetUid_ ; - /** - * <code>uint32 targetUid = 2;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - /** - * <code>uint32 targetUid = 2;</code> - * @param value The targetUid to set. - * @return This builder for chaining. - */ - public Builder setTargetUid(int value) { - - targetUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 targetUid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearTargetUid() { - - targetUid_ = 0; - onChanged(); - return this; - } - - private int param_ ; - /** - * <code>uint32 param = 3;</code> - * @return The param. - */ - @java.lang.Override - public int getParam() { - return param_; - } - /** - * <code>uint32 param = 3;</code> - * @param value The param to set. - * @return This builder for chaining. - */ - public Builder setParam(int value) { - - param_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 param = 3;</code> - * @return This builder for chaining. - */ - public Builder clearParam() { - - param_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AskAddFriendRsp) - } - - // @@protoc_insertion_point(class_scope:AskAddFriendRsp) - private static final emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp(); - } - - public static emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AskAddFriendRsp> - PARSER = new com.google.protobuf.AbstractParser<AskAddFriendRsp>() { - @java.lang.Override - public AskAddFriendRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AskAddFriendRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AskAddFriendRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AskAddFriendRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AskAddFriendRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AskAddFriendRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025AskAddFriendRsp.proto\"D\n\017AskAddFriendR" + - "sp\022\017\n\007retcode\030\001 \001(\005\022\021\n\ttargetUid\030\002 \001(\r\022\r" + - "\n\005param\030\003 \001(\rB\033\n\031emu.grasscutter.net.pro" + - "tob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AskAddFriendRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AskAddFriendRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AskAddFriendRsp_descriptor, - new java.lang.String[] { "Retcode", "TargetUid", "Param", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AttackHitEffectResultOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AttackHitEffectResultOuterClass.java deleted file mode 100644 index 3d696604b..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AttackHitEffectResultOuterClass.java +++ /dev/null @@ -1,897 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AttackHitEffectResult.proto - -package emu.grasscutter.net.proto; - -public final class AttackHitEffectResultOuterClass { - private AttackHitEffectResultOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AttackHitEffectResultOrBuilder extends - // @@protoc_insertion_point(interface_extends:AttackHitEffectResult) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 hitEffLevel = 1;</code> - * @return The hitEffLevel. - */ - int getHitEffLevel(); - - /** - * <code>float retreatStrength = 2;</code> - * @return The retreatStrength. - */ - float getRetreatStrength(); - - /** - * <code>float airStrength = 3;</code> - * @return The airStrength. - */ - float getAirStrength(); - - /** - * <code>float hitHaltTime = 4;</code> - * @return The hitHaltTime. - */ - float getHitHaltTime(); - - /** - * <code>float hitHaltTimeScale = 5;</code> - * @return The hitHaltTimeScale. - */ - float getHitHaltTimeScale(); - - /** - * <code>uint32 originalHitEffLevel = 6;</code> - * @return The originalHitEffLevel. - */ - int getOriginalHitEffLevel(); - } - /** - * Protobuf type {@code AttackHitEffectResult} - */ - public static final class AttackHitEffectResult extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AttackHitEffectResult) - AttackHitEffectResultOrBuilder { - private static final long serialVersionUID = 0L; - // Use AttackHitEffectResult.newBuilder() to construct. - private AttackHitEffectResult(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AttackHitEffectResult() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AttackHitEffectResult(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AttackHitEffectResult( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - hitEffLevel_ = input.readUInt32(); - break; - } - case 21: { - - retreatStrength_ = input.readFloat(); - break; - } - case 29: { - - airStrength_ = input.readFloat(); - break; - } - case 37: { - - hitHaltTime_ = input.readFloat(); - break; - } - case 45: { - - hitHaltTimeScale_ = input.readFloat(); - break; - } - case 48: { - - originalHitEffLevel_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.internal_static_AttackHitEffectResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.internal_static_AttackHitEffectResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult.class, emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult.Builder.class); - } - - public static final int HITEFFLEVEL_FIELD_NUMBER = 1; - private int hitEffLevel_; - /** - * <code>uint32 hitEffLevel = 1;</code> - * @return The hitEffLevel. - */ - @java.lang.Override - public int getHitEffLevel() { - return hitEffLevel_; - } - - public static final int RETREATSTRENGTH_FIELD_NUMBER = 2; - private float retreatStrength_; - /** - * <code>float retreatStrength = 2;</code> - * @return The retreatStrength. - */ - @java.lang.Override - public float getRetreatStrength() { - return retreatStrength_; - } - - public static final int AIRSTRENGTH_FIELD_NUMBER = 3; - private float airStrength_; - /** - * <code>float airStrength = 3;</code> - * @return The airStrength. - */ - @java.lang.Override - public float getAirStrength() { - return airStrength_; - } - - public static final int HITHALTTIME_FIELD_NUMBER = 4; - private float hitHaltTime_; - /** - * <code>float hitHaltTime = 4;</code> - * @return The hitHaltTime. - */ - @java.lang.Override - public float getHitHaltTime() { - return hitHaltTime_; - } - - public static final int HITHALTTIMESCALE_FIELD_NUMBER = 5; - private float hitHaltTimeScale_; - /** - * <code>float hitHaltTimeScale = 5;</code> - * @return The hitHaltTimeScale. - */ - @java.lang.Override - public float getHitHaltTimeScale() { - return hitHaltTimeScale_; - } - - public static final int ORIGINALHITEFFLEVEL_FIELD_NUMBER = 6; - private int originalHitEffLevel_; - /** - * <code>uint32 originalHitEffLevel = 6;</code> - * @return The originalHitEffLevel. - */ - @java.lang.Override - public int getOriginalHitEffLevel() { - return originalHitEffLevel_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (hitEffLevel_ != 0) { - output.writeUInt32(1, hitEffLevel_); - } - if (retreatStrength_ != 0F) { - output.writeFloat(2, retreatStrength_); - } - if (airStrength_ != 0F) { - output.writeFloat(3, airStrength_); - } - if (hitHaltTime_ != 0F) { - output.writeFloat(4, hitHaltTime_); - } - if (hitHaltTimeScale_ != 0F) { - output.writeFloat(5, hitHaltTimeScale_); - } - if (originalHitEffLevel_ != 0) { - output.writeUInt32(6, originalHitEffLevel_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (hitEffLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, hitEffLevel_); - } - if (retreatStrength_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, retreatStrength_); - } - if (airStrength_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, airStrength_); - } - if (hitHaltTime_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, hitHaltTime_); - } - if (hitHaltTimeScale_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, hitHaltTimeScale_); - } - if (originalHitEffLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, originalHitEffLevel_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult other = (emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult) obj; - - if (getHitEffLevel() - != other.getHitEffLevel()) return false; - if (java.lang.Float.floatToIntBits(getRetreatStrength()) - != java.lang.Float.floatToIntBits( - other.getRetreatStrength())) return false; - if (java.lang.Float.floatToIntBits(getAirStrength()) - != java.lang.Float.floatToIntBits( - other.getAirStrength())) return false; - if (java.lang.Float.floatToIntBits(getHitHaltTime()) - != java.lang.Float.floatToIntBits( - other.getHitHaltTime())) return false; - if (java.lang.Float.floatToIntBits(getHitHaltTimeScale()) - != java.lang.Float.floatToIntBits( - other.getHitHaltTimeScale())) return false; - if (getOriginalHitEffLevel() - != other.getOriginalHitEffLevel()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HITEFFLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getHitEffLevel(); - hash = (37 * hash) + RETREATSTRENGTH_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getRetreatStrength()); - hash = (37 * hash) + AIRSTRENGTH_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getAirStrength()); - hash = (37 * hash) + HITHALTTIME_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getHitHaltTime()); - hash = (37 * hash) + HITHALTTIMESCALE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getHitHaltTimeScale()); - hash = (37 * hash) + ORIGINALHITEFFLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getOriginalHitEffLevel(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AttackHitEffectResult} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AttackHitEffectResult) - emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.internal_static_AttackHitEffectResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.internal_static_AttackHitEffectResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult.class, emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - hitEffLevel_ = 0; - - retreatStrength_ = 0F; - - airStrength_ = 0F; - - hitHaltTime_ = 0F; - - hitHaltTimeScale_ = 0F; - - originalHitEffLevel_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.internal_static_AttackHitEffectResult_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult build() { - emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult buildPartial() { - emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult result = new emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult(this); - result.hitEffLevel_ = hitEffLevel_; - result.retreatStrength_ = retreatStrength_; - result.airStrength_ = airStrength_; - result.hitHaltTime_ = hitHaltTime_; - result.hitHaltTimeScale_ = hitHaltTimeScale_; - result.originalHitEffLevel_ = originalHitEffLevel_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult) { - return mergeFrom((emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult other) { - if (other == emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult.getDefaultInstance()) return this; - if (other.getHitEffLevel() != 0) { - setHitEffLevel(other.getHitEffLevel()); - } - if (other.getRetreatStrength() != 0F) { - setRetreatStrength(other.getRetreatStrength()); - } - if (other.getAirStrength() != 0F) { - setAirStrength(other.getAirStrength()); - } - if (other.getHitHaltTime() != 0F) { - setHitHaltTime(other.getHitHaltTime()); - } - if (other.getHitHaltTimeScale() != 0F) { - setHitHaltTimeScale(other.getHitHaltTimeScale()); - } - if (other.getOriginalHitEffLevel() != 0) { - setOriginalHitEffLevel(other.getOriginalHitEffLevel()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int hitEffLevel_ ; - /** - * <code>uint32 hitEffLevel = 1;</code> - * @return The hitEffLevel. - */ - @java.lang.Override - public int getHitEffLevel() { - return hitEffLevel_; - } - /** - * <code>uint32 hitEffLevel = 1;</code> - * @param value The hitEffLevel to set. - * @return This builder for chaining. - */ - public Builder setHitEffLevel(int value) { - - hitEffLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 hitEffLevel = 1;</code> - * @return This builder for chaining. - */ - public Builder clearHitEffLevel() { - - hitEffLevel_ = 0; - onChanged(); - return this; - } - - private float retreatStrength_ ; - /** - * <code>float retreatStrength = 2;</code> - * @return The retreatStrength. - */ - @java.lang.Override - public float getRetreatStrength() { - return retreatStrength_; - } - /** - * <code>float retreatStrength = 2;</code> - * @param value The retreatStrength to set. - * @return This builder for chaining. - */ - public Builder setRetreatStrength(float value) { - - retreatStrength_ = value; - onChanged(); - return this; - } - /** - * <code>float retreatStrength = 2;</code> - * @return This builder for chaining. - */ - public Builder clearRetreatStrength() { - - retreatStrength_ = 0F; - onChanged(); - return this; - } - - private float airStrength_ ; - /** - * <code>float airStrength = 3;</code> - * @return The airStrength. - */ - @java.lang.Override - public float getAirStrength() { - return airStrength_; - } - /** - * <code>float airStrength = 3;</code> - * @param value The airStrength to set. - * @return This builder for chaining. - */ - public Builder setAirStrength(float value) { - - airStrength_ = value; - onChanged(); - return this; - } - /** - * <code>float airStrength = 3;</code> - * @return This builder for chaining. - */ - public Builder clearAirStrength() { - - airStrength_ = 0F; - onChanged(); - return this; - } - - private float hitHaltTime_ ; - /** - * <code>float hitHaltTime = 4;</code> - * @return The hitHaltTime. - */ - @java.lang.Override - public float getHitHaltTime() { - return hitHaltTime_; - } - /** - * <code>float hitHaltTime = 4;</code> - * @param value The hitHaltTime to set. - * @return This builder for chaining. - */ - public Builder setHitHaltTime(float value) { - - hitHaltTime_ = value; - onChanged(); - return this; - } - /** - * <code>float hitHaltTime = 4;</code> - * @return This builder for chaining. - */ - public Builder clearHitHaltTime() { - - hitHaltTime_ = 0F; - onChanged(); - return this; - } - - private float hitHaltTimeScale_ ; - /** - * <code>float hitHaltTimeScale = 5;</code> - * @return The hitHaltTimeScale. - */ - @java.lang.Override - public float getHitHaltTimeScale() { - return hitHaltTimeScale_; - } - /** - * <code>float hitHaltTimeScale = 5;</code> - * @param value The hitHaltTimeScale to set. - * @return This builder for chaining. - */ - public Builder setHitHaltTimeScale(float value) { - - hitHaltTimeScale_ = value; - onChanged(); - return this; - } - /** - * <code>float hitHaltTimeScale = 5;</code> - * @return This builder for chaining. - */ - public Builder clearHitHaltTimeScale() { - - hitHaltTimeScale_ = 0F; - onChanged(); - return this; - } - - private int originalHitEffLevel_ ; - /** - * <code>uint32 originalHitEffLevel = 6;</code> - * @return The originalHitEffLevel. - */ - @java.lang.Override - public int getOriginalHitEffLevel() { - return originalHitEffLevel_; - } - /** - * <code>uint32 originalHitEffLevel = 6;</code> - * @param value The originalHitEffLevel to set. - * @return This builder for chaining. - */ - public Builder setOriginalHitEffLevel(int value) { - - originalHitEffLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 originalHitEffLevel = 6;</code> - * @return This builder for chaining. - */ - public Builder clearOriginalHitEffLevel() { - - originalHitEffLevel_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AttackHitEffectResult) - } - - // @@protoc_insertion_point(class_scope:AttackHitEffectResult) - private static final emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult(); - } - - public static emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AttackHitEffectResult> - PARSER = new com.google.protobuf.AbstractParser<AttackHitEffectResult>() { - @java.lang.Override - public AttackHitEffectResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AttackHitEffectResult(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AttackHitEffectResult> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AttackHitEffectResult> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AttackHitEffectResult_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AttackHitEffectResult_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033AttackHitEffectResult.proto\"\246\001\n\025Attack" + - "HitEffectResult\022\023\n\013hitEffLevel\030\001 \001(\r\022\027\n\017" + - "retreatStrength\030\002 \001(\002\022\023\n\013airStrength\030\003 \001" + - "(\002\022\023\n\013hitHaltTime\030\004 \001(\002\022\030\n\020hitHaltTimeSc" + - "ale\030\005 \001(\002\022\033\n\023originalHitEffLevel\030\006 \001(\rB\033" + - "\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AttackHitEffectResult_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AttackHitEffectResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AttackHitEffectResult_descriptor, - new java.lang.String[] { "HitEffLevel", "RetreatStrength", "AirStrength", "HitHaltTime", "HitHaltTimeScale", "OriginalHitEffLevel", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AttackResultOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AttackResultOuterClass.java deleted file mode 100644 index c8e8ae365..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AttackResultOuterClass.java +++ /dev/null @@ -1,3151 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AttackResult.proto - -package emu.grasscutter.net.proto; - -public final class AttackResultOuterClass { - private AttackResultOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AttackResultOrBuilder extends - // @@protoc_insertion_point(interface_extends:AttackResult) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 attackerId = 1;</code> - * @return The attackerId. - */ - int getAttackerId(); - - /** - * <code>uint32 defenseId = 2;</code> - * @return The defenseId. - */ - int getDefenseId(); - - /** - * <code>string animEventId = 3;</code> - * @return The animEventId. - */ - java.lang.String getAnimEventId(); - /** - * <code>string animEventId = 3;</code> - * @return The bytes for animEventId. - */ - com.google.protobuf.ByteString - getAnimEventIdBytes(); - - /** - * <code>.AbilityIdentifier abilityIdentifier = 4;</code> - * @return Whether the abilityIdentifier field is set. - */ - boolean hasAbilityIdentifier(); - /** - * <code>.AbilityIdentifier abilityIdentifier = 4;</code> - * @return The abilityIdentifier. - */ - emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier getAbilityIdentifier(); - /** - * <code>.AbilityIdentifier abilityIdentifier = 4;</code> - */ - emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifierOrBuilder getAbilityIdentifierOrBuilder(); - - /** - * <code>float damage = 6;</code> - * @return The damage. - */ - float getDamage(); - - /** - * <code>bool isCrit = 7;</code> - * @return The isCrit. - */ - boolean getIsCrit(); - - /** - * <code>.HitCollision hitCollision = 8;</code> - * @return Whether the hitCollision field is set. - */ - boolean hasHitCollision(); - /** - * <code>.HitCollision hitCollision = 8;</code> - * @return The hitCollision. - */ - emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision getHitCollision(); - /** - * <code>.HitCollision hitCollision = 8;</code> - */ - emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollisionOrBuilder getHitCollisionOrBuilder(); - - /** - * <code>uint32 hitPosType = 9;</code> - * @return The hitPosType. - */ - int getHitPosType(); - - /** - * <code>uint32 endureBreak = 10;</code> - * @return The endureBreak. - */ - int getEndureBreak(); - - /** - * <code>.Vector resolvedDir = 11;</code> - * @return Whether the resolvedDir field is set. - */ - boolean hasResolvedDir(); - /** - * <code>.Vector resolvedDir = 11;</code> - * @return The resolvedDir. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getResolvedDir(); - /** - * <code>.Vector resolvedDir = 11;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getResolvedDirOrBuilder(); - - /** - * <code>int32 hitRetreatAngleCompat = 12;</code> - * @return The hitRetreatAngleCompat. - */ - int getHitRetreatAngleCompat(); - - /** - * <code>.AttackHitEffectResult hitEffResult = 13;</code> - * @return Whether the hitEffResult field is set. - */ - boolean hasHitEffResult(); - /** - * <code>.AttackHitEffectResult hitEffResult = 13;</code> - * @return The hitEffResult. - */ - emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult getHitEffResult(); - /** - * <code>.AttackHitEffectResult hitEffResult = 13;</code> - */ - emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResultOrBuilder getHitEffResultOrBuilder(); - - /** - * <code>uint32 elementType = 14;</code> - * @return The elementType. - */ - int getElementType(); - - /** - * <code>bool useGadgetDamageAction = 19;</code> - * @return The useGadgetDamageAction. - */ - boolean getUseGadgetDamageAction(); - - /** - * <code>uint32 gadgetDamageActionIdx = 20;</code> - * @return The gadgetDamageActionIdx. - */ - int getGadgetDamageActionIdx(); - - /** - * <code>bool isResistText = 22;</code> - * @return The isResistText. - */ - boolean getIsResistText(); - - /** - * <code>uint32 criticalRand = 23;</code> - * @return The criticalRand. - */ - int getCriticalRand(); - - /** - * <code>float elementAmplifyRate = 24;</code> - * @return The elementAmplifyRate. - */ - float getElementAmplifyRate(); - - /** - * <code>float damageShield = 26;</code> - * @return The damageShield. - */ - float getDamageShield(); - - /** - * <code>bool muteElementHurt = 27;</code> - * @return The muteElementHurt. - */ - boolean getMuteElementHurt(); - - /** - * <code>uint32 amplifyReactionType = 30;</code> - * @return The amplifyReactionType. - */ - int getAmplifyReactionType(); - - /** - * <code>uint32 addhurtReactionType = 31;</code> - * @return The addhurtReactionType. - */ - int getAddhurtReactionType(); - - /** - * <code>uint32 bulletFlyTimeMs = 32;</code> - * @return The bulletFlyTimeMs. - */ - int getBulletFlyTimeMs(); - - /** - * <code>uint32 attackCount = 33;</code> - * @return The attackCount. - */ - int getAttackCount(); - - /** - * <code>uint32 hashedAnimEventId = 34;</code> - * @return The hashedAnimEventId. - */ - int getHashedAnimEventId(); - - /** - * <code>uint32 attackTimestampMs = 36;</code> - * @return The attackTimestampMs. - */ - int getAttackTimestampMs(); - - /** - * <code>float endureDelta = 37;</code> - * @return The endureDelta. - */ - float getEndureDelta(); - - /** - * <code>uint32 targetType = 38;</code> - * @return The targetType. - */ - int getTargetType(); - - /** - * <code>float elementDurabilityAttenuation = 39;</code> - * @return The elementDurabilityAttenuation. - */ - float getElementDurabilityAttenuation(); - } - /** - * Protobuf type {@code AttackResult} - */ - public static final class AttackResult extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AttackResult) - AttackResultOrBuilder { - private static final long serialVersionUID = 0L; - // Use AttackResult.newBuilder() to construct. - private AttackResult(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AttackResult() { - animEventId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AttackResult(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AttackResult( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - attackerId_ = input.readUInt32(); - break; - } - case 16: { - - defenseId_ = input.readUInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - animEventId_ = s; - break; - } - case 34: { - emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier.Builder subBuilder = null; - if (abilityIdentifier_ != null) { - subBuilder = abilityIdentifier_.toBuilder(); - } - abilityIdentifier_ = input.readMessage(emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abilityIdentifier_); - abilityIdentifier_ = subBuilder.buildPartial(); - } - - break; - } - case 53: { - - damage_ = input.readFloat(); - break; - } - case 56: { - - isCrit_ = input.readBool(); - break; - } - case 66: { - emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision.Builder subBuilder = null; - if (hitCollision_ != null) { - subBuilder = hitCollision_.toBuilder(); - } - hitCollision_ = input.readMessage(emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(hitCollision_); - hitCollision_ = subBuilder.buildPartial(); - } - - break; - } - case 72: { - - hitPosType_ = input.readUInt32(); - break; - } - case 80: { - - endureBreak_ = input.readUInt32(); - break; - } - case 90: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (resolvedDir_ != null) { - subBuilder = resolvedDir_.toBuilder(); - } - resolvedDir_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resolvedDir_); - resolvedDir_ = subBuilder.buildPartial(); - } - - break; - } - case 96: { - - hitRetreatAngleCompat_ = input.readInt32(); - break; - } - case 106: { - emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult.Builder subBuilder = null; - if (hitEffResult_ != null) { - subBuilder = hitEffResult_.toBuilder(); - } - hitEffResult_ = input.readMessage(emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(hitEffResult_); - hitEffResult_ = subBuilder.buildPartial(); - } - - break; - } - case 112: { - - elementType_ = input.readUInt32(); - break; - } - case 152: { - - useGadgetDamageAction_ = input.readBool(); - break; - } - case 160: { - - gadgetDamageActionIdx_ = input.readUInt32(); - break; - } - case 176: { - - isResistText_ = input.readBool(); - break; - } - case 184: { - - criticalRand_ = input.readUInt32(); - break; - } - case 197: { - - elementAmplifyRate_ = input.readFloat(); - break; - } - case 213: { - - damageShield_ = input.readFloat(); - break; - } - case 216: { - - muteElementHurt_ = input.readBool(); - break; - } - case 240: { - - amplifyReactionType_ = input.readUInt32(); - break; - } - case 248: { - - addhurtReactionType_ = input.readUInt32(); - break; - } - case 256: { - - bulletFlyTimeMs_ = input.readUInt32(); - break; - } - case 264: { - - attackCount_ = input.readUInt32(); - break; - } - case 272: { - - hashedAnimEventId_ = input.readUInt32(); - break; - } - case 288: { - - attackTimestampMs_ = input.readUInt32(); - break; - } - case 301: { - - endureDelta_ = input.readFloat(); - break; - } - case 304: { - - targetType_ = input.readUInt32(); - break; - } - case 317: { - - elementDurabilityAttenuation_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AttackResultOuterClass.internal_static_AttackResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AttackResultOuterClass.internal_static_AttackResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.class, emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.Builder.class); - } - - public static final int ATTACKERID_FIELD_NUMBER = 1; - private int attackerId_; - /** - * <code>uint32 attackerId = 1;</code> - * @return The attackerId. - */ - @java.lang.Override - public int getAttackerId() { - return attackerId_; - } - - public static final int DEFENSEID_FIELD_NUMBER = 2; - private int defenseId_; - /** - * <code>uint32 defenseId = 2;</code> - * @return The defenseId. - */ - @java.lang.Override - public int getDefenseId() { - return defenseId_; - } - - public static final int ANIMEVENTID_FIELD_NUMBER = 3; - private volatile java.lang.Object animEventId_; - /** - * <code>string animEventId = 3;</code> - * @return The animEventId. - */ - @java.lang.Override - public java.lang.String getAnimEventId() { - java.lang.Object ref = animEventId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - animEventId_ = s; - return s; - } - } - /** - * <code>string animEventId = 3;</code> - * @return The bytes for animEventId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAnimEventIdBytes() { - java.lang.Object ref = animEventId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - animEventId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ABILITYIDENTIFIER_FIELD_NUMBER = 4; - private emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier abilityIdentifier_; - /** - * <code>.AbilityIdentifier abilityIdentifier = 4;</code> - * @return Whether the abilityIdentifier field is set. - */ - @java.lang.Override - public boolean hasAbilityIdentifier() { - return abilityIdentifier_ != null; - } - /** - * <code>.AbilityIdentifier abilityIdentifier = 4;</code> - * @return The abilityIdentifier. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier getAbilityIdentifier() { - return abilityIdentifier_ == null ? emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier.getDefaultInstance() : abilityIdentifier_; - } - /** - * <code>.AbilityIdentifier abilityIdentifier = 4;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifierOrBuilder getAbilityIdentifierOrBuilder() { - return getAbilityIdentifier(); - } - - public static final int DAMAGE_FIELD_NUMBER = 6; - private float damage_; - /** - * <code>float damage = 6;</code> - * @return The damage. - */ - @java.lang.Override - public float getDamage() { - return damage_; - } - - public static final int ISCRIT_FIELD_NUMBER = 7; - private boolean isCrit_; - /** - * <code>bool isCrit = 7;</code> - * @return The isCrit. - */ - @java.lang.Override - public boolean getIsCrit() { - return isCrit_; - } - - public static final int HITCOLLISION_FIELD_NUMBER = 8; - private emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision hitCollision_; - /** - * <code>.HitCollision hitCollision = 8;</code> - * @return Whether the hitCollision field is set. - */ - @java.lang.Override - public boolean hasHitCollision() { - return hitCollision_ != null; - } - /** - * <code>.HitCollision hitCollision = 8;</code> - * @return The hitCollision. - */ - @java.lang.Override - public emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision getHitCollision() { - return hitCollision_ == null ? emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision.getDefaultInstance() : hitCollision_; - } - /** - * <code>.HitCollision hitCollision = 8;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollisionOrBuilder getHitCollisionOrBuilder() { - return getHitCollision(); - } - - public static final int HITPOSTYPE_FIELD_NUMBER = 9; - private int hitPosType_; - /** - * <code>uint32 hitPosType = 9;</code> - * @return The hitPosType. - */ - @java.lang.Override - public int getHitPosType() { - return hitPosType_; - } - - public static final int ENDUREBREAK_FIELD_NUMBER = 10; - private int endureBreak_; - /** - * <code>uint32 endureBreak = 10;</code> - * @return The endureBreak. - */ - @java.lang.Override - public int getEndureBreak() { - return endureBreak_; - } - - public static final int RESOLVEDDIR_FIELD_NUMBER = 11; - private emu.grasscutter.net.proto.VectorOuterClass.Vector resolvedDir_; - /** - * <code>.Vector resolvedDir = 11;</code> - * @return Whether the resolvedDir field is set. - */ - @java.lang.Override - public boolean hasResolvedDir() { - return resolvedDir_ != null; - } - /** - * <code>.Vector resolvedDir = 11;</code> - * @return The resolvedDir. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getResolvedDir() { - return resolvedDir_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : resolvedDir_; - } - /** - * <code>.Vector resolvedDir = 11;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getResolvedDirOrBuilder() { - return getResolvedDir(); - } - - public static final int HITRETREATANGLECOMPAT_FIELD_NUMBER = 12; - private int hitRetreatAngleCompat_; - /** - * <code>int32 hitRetreatAngleCompat = 12;</code> - * @return The hitRetreatAngleCompat. - */ - @java.lang.Override - public int getHitRetreatAngleCompat() { - return hitRetreatAngleCompat_; - } - - public static final int HITEFFRESULT_FIELD_NUMBER = 13; - private emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult hitEffResult_; - /** - * <code>.AttackHitEffectResult hitEffResult = 13;</code> - * @return Whether the hitEffResult field is set. - */ - @java.lang.Override - public boolean hasHitEffResult() { - return hitEffResult_ != null; - } - /** - * <code>.AttackHitEffectResult hitEffResult = 13;</code> - * @return The hitEffResult. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult getHitEffResult() { - return hitEffResult_ == null ? emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult.getDefaultInstance() : hitEffResult_; - } - /** - * <code>.AttackHitEffectResult hitEffResult = 13;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResultOrBuilder getHitEffResultOrBuilder() { - return getHitEffResult(); - } - - public static final int ELEMENTTYPE_FIELD_NUMBER = 14; - private int elementType_; - /** - * <code>uint32 elementType = 14;</code> - * @return The elementType. - */ - @java.lang.Override - public int getElementType() { - return elementType_; - } - - public static final int USEGADGETDAMAGEACTION_FIELD_NUMBER = 19; - private boolean useGadgetDamageAction_; - /** - * <code>bool useGadgetDamageAction = 19;</code> - * @return The useGadgetDamageAction. - */ - @java.lang.Override - public boolean getUseGadgetDamageAction() { - return useGadgetDamageAction_; - } - - public static final int GADGETDAMAGEACTIONIDX_FIELD_NUMBER = 20; - private int gadgetDamageActionIdx_; - /** - * <code>uint32 gadgetDamageActionIdx = 20;</code> - * @return The gadgetDamageActionIdx. - */ - @java.lang.Override - public int getGadgetDamageActionIdx() { - return gadgetDamageActionIdx_; - } - - public static final int ISRESISTTEXT_FIELD_NUMBER = 22; - private boolean isResistText_; - /** - * <code>bool isResistText = 22;</code> - * @return The isResistText. - */ - @java.lang.Override - public boolean getIsResistText() { - return isResistText_; - } - - public static final int CRITICALRAND_FIELD_NUMBER = 23; - private int criticalRand_; - /** - * <code>uint32 criticalRand = 23;</code> - * @return The criticalRand. - */ - @java.lang.Override - public int getCriticalRand() { - return criticalRand_; - } - - public static final int ELEMENTAMPLIFYRATE_FIELD_NUMBER = 24; - private float elementAmplifyRate_; - /** - * <code>float elementAmplifyRate = 24;</code> - * @return The elementAmplifyRate. - */ - @java.lang.Override - public float getElementAmplifyRate() { - return elementAmplifyRate_; - } - - public static final int DAMAGESHIELD_FIELD_NUMBER = 26; - private float damageShield_; - /** - * <code>float damageShield = 26;</code> - * @return The damageShield. - */ - @java.lang.Override - public float getDamageShield() { - return damageShield_; - } - - public static final int MUTEELEMENTHURT_FIELD_NUMBER = 27; - private boolean muteElementHurt_; - /** - * <code>bool muteElementHurt = 27;</code> - * @return The muteElementHurt. - */ - @java.lang.Override - public boolean getMuteElementHurt() { - return muteElementHurt_; - } - - public static final int AMPLIFYREACTIONTYPE_FIELD_NUMBER = 30; - private int amplifyReactionType_; - /** - * <code>uint32 amplifyReactionType = 30;</code> - * @return The amplifyReactionType. - */ - @java.lang.Override - public int getAmplifyReactionType() { - return amplifyReactionType_; - } - - public static final int ADDHURTREACTIONTYPE_FIELD_NUMBER = 31; - private int addhurtReactionType_; - /** - * <code>uint32 addhurtReactionType = 31;</code> - * @return The addhurtReactionType. - */ - @java.lang.Override - public int getAddhurtReactionType() { - return addhurtReactionType_; - } - - public static final int BULLETFLYTIMEMS_FIELD_NUMBER = 32; - private int bulletFlyTimeMs_; - /** - * <code>uint32 bulletFlyTimeMs = 32;</code> - * @return The bulletFlyTimeMs. - */ - @java.lang.Override - public int getBulletFlyTimeMs() { - return bulletFlyTimeMs_; - } - - public static final int ATTACKCOUNT_FIELD_NUMBER = 33; - private int attackCount_; - /** - * <code>uint32 attackCount = 33;</code> - * @return The attackCount. - */ - @java.lang.Override - public int getAttackCount() { - return attackCount_; - } - - public static final int HASHEDANIMEVENTID_FIELD_NUMBER = 34; - private int hashedAnimEventId_; - /** - * <code>uint32 hashedAnimEventId = 34;</code> - * @return The hashedAnimEventId. - */ - @java.lang.Override - public int getHashedAnimEventId() { - return hashedAnimEventId_; - } - - public static final int ATTACKTIMESTAMPMS_FIELD_NUMBER = 36; - private int attackTimestampMs_; - /** - * <code>uint32 attackTimestampMs = 36;</code> - * @return The attackTimestampMs. - */ - @java.lang.Override - public int getAttackTimestampMs() { - return attackTimestampMs_; - } - - public static final int ENDUREDELTA_FIELD_NUMBER = 37; - private float endureDelta_; - /** - * <code>float endureDelta = 37;</code> - * @return The endureDelta. - */ - @java.lang.Override - public float getEndureDelta() { - return endureDelta_; - } - - public static final int TARGETTYPE_FIELD_NUMBER = 38; - private int targetType_; - /** - * <code>uint32 targetType = 38;</code> - * @return The targetType. - */ - @java.lang.Override - public int getTargetType() { - return targetType_; - } - - public static final int ELEMENTDURABILITYATTENUATION_FIELD_NUMBER = 39; - private float elementDurabilityAttenuation_; - /** - * <code>float elementDurabilityAttenuation = 39;</code> - * @return The elementDurabilityAttenuation. - */ - @java.lang.Override - public float getElementDurabilityAttenuation() { - return elementDurabilityAttenuation_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (attackerId_ != 0) { - output.writeUInt32(1, attackerId_); - } - if (defenseId_ != 0) { - output.writeUInt32(2, defenseId_); - } - if (!getAnimEventIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, animEventId_); - } - if (abilityIdentifier_ != null) { - output.writeMessage(4, getAbilityIdentifier()); - } - if (damage_ != 0F) { - output.writeFloat(6, damage_); - } - if (isCrit_ != false) { - output.writeBool(7, isCrit_); - } - if (hitCollision_ != null) { - output.writeMessage(8, getHitCollision()); - } - if (hitPosType_ != 0) { - output.writeUInt32(9, hitPosType_); - } - if (endureBreak_ != 0) { - output.writeUInt32(10, endureBreak_); - } - if (resolvedDir_ != null) { - output.writeMessage(11, getResolvedDir()); - } - if (hitRetreatAngleCompat_ != 0) { - output.writeInt32(12, hitRetreatAngleCompat_); - } - if (hitEffResult_ != null) { - output.writeMessage(13, getHitEffResult()); - } - if (elementType_ != 0) { - output.writeUInt32(14, elementType_); - } - if (useGadgetDamageAction_ != false) { - output.writeBool(19, useGadgetDamageAction_); - } - if (gadgetDamageActionIdx_ != 0) { - output.writeUInt32(20, gadgetDamageActionIdx_); - } - if (isResistText_ != false) { - output.writeBool(22, isResistText_); - } - if (criticalRand_ != 0) { - output.writeUInt32(23, criticalRand_); - } - if (elementAmplifyRate_ != 0F) { - output.writeFloat(24, elementAmplifyRate_); - } - if (damageShield_ != 0F) { - output.writeFloat(26, damageShield_); - } - if (muteElementHurt_ != false) { - output.writeBool(27, muteElementHurt_); - } - if (amplifyReactionType_ != 0) { - output.writeUInt32(30, amplifyReactionType_); - } - if (addhurtReactionType_ != 0) { - output.writeUInt32(31, addhurtReactionType_); - } - if (bulletFlyTimeMs_ != 0) { - output.writeUInt32(32, bulletFlyTimeMs_); - } - if (attackCount_ != 0) { - output.writeUInt32(33, attackCount_); - } - if (hashedAnimEventId_ != 0) { - output.writeUInt32(34, hashedAnimEventId_); - } - if (attackTimestampMs_ != 0) { - output.writeUInt32(36, attackTimestampMs_); - } - if (endureDelta_ != 0F) { - output.writeFloat(37, endureDelta_); - } - if (targetType_ != 0) { - output.writeUInt32(38, targetType_); - } - if (elementDurabilityAttenuation_ != 0F) { - output.writeFloat(39, elementDurabilityAttenuation_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (attackerId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, attackerId_); - } - if (defenseId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, defenseId_); - } - if (!getAnimEventIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, animEventId_); - } - if (abilityIdentifier_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getAbilityIdentifier()); - } - if (damage_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(6, damage_); - } - if (isCrit_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, isCrit_); - } - if (hitCollision_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getHitCollision()); - } - if (hitPosType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(9, hitPosType_); - } - if (endureBreak_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(10, endureBreak_); - } - if (resolvedDir_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getResolvedDir()); - } - if (hitRetreatAngleCompat_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(12, hitRetreatAngleCompat_); - } - if (hitEffResult_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getHitEffResult()); - } - if (elementType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(14, elementType_); - } - if (useGadgetDamageAction_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(19, useGadgetDamageAction_); - } - if (gadgetDamageActionIdx_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(20, gadgetDamageActionIdx_); - } - if (isResistText_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(22, isResistText_); - } - if (criticalRand_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(23, criticalRand_); - } - if (elementAmplifyRate_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(24, elementAmplifyRate_); - } - if (damageShield_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(26, damageShield_); - } - if (muteElementHurt_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(27, muteElementHurt_); - } - if (amplifyReactionType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(30, amplifyReactionType_); - } - if (addhurtReactionType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(31, addhurtReactionType_); - } - if (bulletFlyTimeMs_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(32, bulletFlyTimeMs_); - } - if (attackCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(33, attackCount_); - } - if (hashedAnimEventId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(34, hashedAnimEventId_); - } - if (attackTimestampMs_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(36, attackTimestampMs_); - } - if (endureDelta_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(37, endureDelta_); - } - if (targetType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(38, targetType_); - } - if (elementDurabilityAttenuation_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(39, elementDurabilityAttenuation_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult other = (emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult) obj; - - if (getAttackerId() - != other.getAttackerId()) return false; - if (getDefenseId() - != other.getDefenseId()) return false; - if (!getAnimEventId() - .equals(other.getAnimEventId())) return false; - if (hasAbilityIdentifier() != other.hasAbilityIdentifier()) return false; - if (hasAbilityIdentifier()) { - if (!getAbilityIdentifier() - .equals(other.getAbilityIdentifier())) return false; - } - if (java.lang.Float.floatToIntBits(getDamage()) - != java.lang.Float.floatToIntBits( - other.getDamage())) return false; - if (getIsCrit() - != other.getIsCrit()) return false; - if (hasHitCollision() != other.hasHitCollision()) return false; - if (hasHitCollision()) { - if (!getHitCollision() - .equals(other.getHitCollision())) return false; - } - if (getHitPosType() - != other.getHitPosType()) return false; - if (getEndureBreak() - != other.getEndureBreak()) return false; - if (hasResolvedDir() != other.hasResolvedDir()) return false; - if (hasResolvedDir()) { - if (!getResolvedDir() - .equals(other.getResolvedDir())) return false; - } - if (getHitRetreatAngleCompat() - != other.getHitRetreatAngleCompat()) return false; - if (hasHitEffResult() != other.hasHitEffResult()) return false; - if (hasHitEffResult()) { - if (!getHitEffResult() - .equals(other.getHitEffResult())) return false; - } - if (getElementType() - != other.getElementType()) return false; - if (getUseGadgetDamageAction() - != other.getUseGadgetDamageAction()) return false; - if (getGadgetDamageActionIdx() - != other.getGadgetDamageActionIdx()) return false; - if (getIsResistText() - != other.getIsResistText()) return false; - if (getCriticalRand() - != other.getCriticalRand()) return false; - if (java.lang.Float.floatToIntBits(getElementAmplifyRate()) - != java.lang.Float.floatToIntBits( - other.getElementAmplifyRate())) return false; - if (java.lang.Float.floatToIntBits(getDamageShield()) - != java.lang.Float.floatToIntBits( - other.getDamageShield())) return false; - if (getMuteElementHurt() - != other.getMuteElementHurt()) return false; - if (getAmplifyReactionType() - != other.getAmplifyReactionType()) return false; - if (getAddhurtReactionType() - != other.getAddhurtReactionType()) return false; - if (getBulletFlyTimeMs() - != other.getBulletFlyTimeMs()) return false; - if (getAttackCount() - != other.getAttackCount()) return false; - if (getHashedAnimEventId() - != other.getHashedAnimEventId()) return false; - if (getAttackTimestampMs() - != other.getAttackTimestampMs()) return false; - if (java.lang.Float.floatToIntBits(getEndureDelta()) - != java.lang.Float.floatToIntBits( - other.getEndureDelta())) return false; - if (getTargetType() - != other.getTargetType()) return false; - if (java.lang.Float.floatToIntBits(getElementDurabilityAttenuation()) - != java.lang.Float.floatToIntBits( - other.getElementDurabilityAttenuation())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ATTACKERID_FIELD_NUMBER; - hash = (53 * hash) + getAttackerId(); - hash = (37 * hash) + DEFENSEID_FIELD_NUMBER; - hash = (53 * hash) + getDefenseId(); - hash = (37 * hash) + ANIMEVENTID_FIELD_NUMBER; - hash = (53 * hash) + getAnimEventId().hashCode(); - if (hasAbilityIdentifier()) { - hash = (37 * hash) + ABILITYIDENTIFIER_FIELD_NUMBER; - hash = (53 * hash) + getAbilityIdentifier().hashCode(); - } - hash = (37 * hash) + DAMAGE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getDamage()); - hash = (37 * hash) + ISCRIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsCrit()); - if (hasHitCollision()) { - hash = (37 * hash) + HITCOLLISION_FIELD_NUMBER; - hash = (53 * hash) + getHitCollision().hashCode(); - } - hash = (37 * hash) + HITPOSTYPE_FIELD_NUMBER; - hash = (53 * hash) + getHitPosType(); - hash = (37 * hash) + ENDUREBREAK_FIELD_NUMBER; - hash = (53 * hash) + getEndureBreak(); - if (hasResolvedDir()) { - hash = (37 * hash) + RESOLVEDDIR_FIELD_NUMBER; - hash = (53 * hash) + getResolvedDir().hashCode(); - } - hash = (37 * hash) + HITRETREATANGLECOMPAT_FIELD_NUMBER; - hash = (53 * hash) + getHitRetreatAngleCompat(); - if (hasHitEffResult()) { - hash = (37 * hash) + HITEFFRESULT_FIELD_NUMBER; - hash = (53 * hash) + getHitEffResult().hashCode(); - } - hash = (37 * hash) + ELEMENTTYPE_FIELD_NUMBER; - hash = (53 * hash) + getElementType(); - hash = (37 * hash) + USEGADGETDAMAGEACTION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUseGadgetDamageAction()); - hash = (37 * hash) + GADGETDAMAGEACTIONIDX_FIELD_NUMBER; - hash = (53 * hash) + getGadgetDamageActionIdx(); - hash = (37 * hash) + ISRESISTTEXT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsResistText()); - hash = (37 * hash) + CRITICALRAND_FIELD_NUMBER; - hash = (53 * hash) + getCriticalRand(); - hash = (37 * hash) + ELEMENTAMPLIFYRATE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getElementAmplifyRate()); - hash = (37 * hash) + DAMAGESHIELD_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getDamageShield()); - hash = (37 * hash) + MUTEELEMENTHURT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getMuteElementHurt()); - hash = (37 * hash) + AMPLIFYREACTIONTYPE_FIELD_NUMBER; - hash = (53 * hash) + getAmplifyReactionType(); - hash = (37 * hash) + ADDHURTREACTIONTYPE_FIELD_NUMBER; - hash = (53 * hash) + getAddhurtReactionType(); - hash = (37 * hash) + BULLETFLYTIMEMS_FIELD_NUMBER; - hash = (53 * hash) + getBulletFlyTimeMs(); - hash = (37 * hash) + ATTACKCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAttackCount(); - hash = (37 * hash) + HASHEDANIMEVENTID_FIELD_NUMBER; - hash = (53 * hash) + getHashedAnimEventId(); - hash = (37 * hash) + ATTACKTIMESTAMPMS_FIELD_NUMBER; - hash = (53 * hash) + getAttackTimestampMs(); - hash = (37 * hash) + ENDUREDELTA_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getEndureDelta()); - hash = (37 * hash) + TARGETTYPE_FIELD_NUMBER; - hash = (53 * hash) + getTargetType(); - hash = (37 * hash) + ELEMENTDURABILITYATTENUATION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getElementDurabilityAttenuation()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AttackResult} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AttackResult) - emu.grasscutter.net.proto.AttackResultOuterClass.AttackResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AttackResultOuterClass.internal_static_AttackResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AttackResultOuterClass.internal_static_AttackResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.class, emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - attackerId_ = 0; - - defenseId_ = 0; - - animEventId_ = ""; - - if (abilityIdentifierBuilder_ == null) { - abilityIdentifier_ = null; - } else { - abilityIdentifier_ = null; - abilityIdentifierBuilder_ = null; - } - damage_ = 0F; - - isCrit_ = false; - - if (hitCollisionBuilder_ == null) { - hitCollision_ = null; - } else { - hitCollision_ = null; - hitCollisionBuilder_ = null; - } - hitPosType_ = 0; - - endureBreak_ = 0; - - if (resolvedDirBuilder_ == null) { - resolvedDir_ = null; - } else { - resolvedDir_ = null; - resolvedDirBuilder_ = null; - } - hitRetreatAngleCompat_ = 0; - - if (hitEffResultBuilder_ == null) { - hitEffResult_ = null; - } else { - hitEffResult_ = null; - hitEffResultBuilder_ = null; - } - elementType_ = 0; - - useGadgetDamageAction_ = false; - - gadgetDamageActionIdx_ = 0; - - isResistText_ = false; - - criticalRand_ = 0; - - elementAmplifyRate_ = 0F; - - damageShield_ = 0F; - - muteElementHurt_ = false; - - amplifyReactionType_ = 0; - - addhurtReactionType_ = 0; - - bulletFlyTimeMs_ = 0; - - attackCount_ = 0; - - hashedAnimEventId_ = 0; - - attackTimestampMs_ = 0; - - endureDelta_ = 0F; - - targetType_ = 0; - - elementDurabilityAttenuation_ = 0F; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AttackResultOuterClass.internal_static_AttackResult_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult build() { - emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult buildPartial() { - emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult result = new emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult(this); - result.attackerId_ = attackerId_; - result.defenseId_ = defenseId_; - result.animEventId_ = animEventId_; - if (abilityIdentifierBuilder_ == null) { - result.abilityIdentifier_ = abilityIdentifier_; - } else { - result.abilityIdentifier_ = abilityIdentifierBuilder_.build(); - } - result.damage_ = damage_; - result.isCrit_ = isCrit_; - if (hitCollisionBuilder_ == null) { - result.hitCollision_ = hitCollision_; - } else { - result.hitCollision_ = hitCollisionBuilder_.build(); - } - result.hitPosType_ = hitPosType_; - result.endureBreak_ = endureBreak_; - if (resolvedDirBuilder_ == null) { - result.resolvedDir_ = resolvedDir_; - } else { - result.resolvedDir_ = resolvedDirBuilder_.build(); - } - result.hitRetreatAngleCompat_ = hitRetreatAngleCompat_; - if (hitEffResultBuilder_ == null) { - result.hitEffResult_ = hitEffResult_; - } else { - result.hitEffResult_ = hitEffResultBuilder_.build(); - } - result.elementType_ = elementType_; - result.useGadgetDamageAction_ = useGadgetDamageAction_; - result.gadgetDamageActionIdx_ = gadgetDamageActionIdx_; - result.isResistText_ = isResistText_; - result.criticalRand_ = criticalRand_; - result.elementAmplifyRate_ = elementAmplifyRate_; - result.damageShield_ = damageShield_; - result.muteElementHurt_ = muteElementHurt_; - result.amplifyReactionType_ = amplifyReactionType_; - result.addhurtReactionType_ = addhurtReactionType_; - result.bulletFlyTimeMs_ = bulletFlyTimeMs_; - result.attackCount_ = attackCount_; - result.hashedAnimEventId_ = hashedAnimEventId_; - result.attackTimestampMs_ = attackTimestampMs_; - result.endureDelta_ = endureDelta_; - result.targetType_ = targetType_; - result.elementDurabilityAttenuation_ = elementDurabilityAttenuation_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult) { - return mergeFrom((emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult other) { - if (other == emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.getDefaultInstance()) return this; - if (other.getAttackerId() != 0) { - setAttackerId(other.getAttackerId()); - } - if (other.getDefenseId() != 0) { - setDefenseId(other.getDefenseId()); - } - if (!other.getAnimEventId().isEmpty()) { - animEventId_ = other.animEventId_; - onChanged(); - } - if (other.hasAbilityIdentifier()) { - mergeAbilityIdentifier(other.getAbilityIdentifier()); - } - if (other.getDamage() != 0F) { - setDamage(other.getDamage()); - } - if (other.getIsCrit() != false) { - setIsCrit(other.getIsCrit()); - } - if (other.hasHitCollision()) { - mergeHitCollision(other.getHitCollision()); - } - if (other.getHitPosType() != 0) { - setHitPosType(other.getHitPosType()); - } - if (other.getEndureBreak() != 0) { - setEndureBreak(other.getEndureBreak()); - } - if (other.hasResolvedDir()) { - mergeResolvedDir(other.getResolvedDir()); - } - if (other.getHitRetreatAngleCompat() != 0) { - setHitRetreatAngleCompat(other.getHitRetreatAngleCompat()); - } - if (other.hasHitEffResult()) { - mergeHitEffResult(other.getHitEffResult()); - } - if (other.getElementType() != 0) { - setElementType(other.getElementType()); - } - if (other.getUseGadgetDamageAction() != false) { - setUseGadgetDamageAction(other.getUseGadgetDamageAction()); - } - if (other.getGadgetDamageActionIdx() != 0) { - setGadgetDamageActionIdx(other.getGadgetDamageActionIdx()); - } - if (other.getIsResistText() != false) { - setIsResistText(other.getIsResistText()); - } - if (other.getCriticalRand() != 0) { - setCriticalRand(other.getCriticalRand()); - } - if (other.getElementAmplifyRate() != 0F) { - setElementAmplifyRate(other.getElementAmplifyRate()); - } - if (other.getDamageShield() != 0F) { - setDamageShield(other.getDamageShield()); - } - if (other.getMuteElementHurt() != false) { - setMuteElementHurt(other.getMuteElementHurt()); - } - if (other.getAmplifyReactionType() != 0) { - setAmplifyReactionType(other.getAmplifyReactionType()); - } - if (other.getAddhurtReactionType() != 0) { - setAddhurtReactionType(other.getAddhurtReactionType()); - } - if (other.getBulletFlyTimeMs() != 0) { - setBulletFlyTimeMs(other.getBulletFlyTimeMs()); - } - if (other.getAttackCount() != 0) { - setAttackCount(other.getAttackCount()); - } - if (other.getHashedAnimEventId() != 0) { - setHashedAnimEventId(other.getHashedAnimEventId()); - } - if (other.getAttackTimestampMs() != 0) { - setAttackTimestampMs(other.getAttackTimestampMs()); - } - if (other.getEndureDelta() != 0F) { - setEndureDelta(other.getEndureDelta()); - } - if (other.getTargetType() != 0) { - setTargetType(other.getTargetType()); - } - if (other.getElementDurabilityAttenuation() != 0F) { - setElementDurabilityAttenuation(other.getElementDurabilityAttenuation()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int attackerId_ ; - /** - * <code>uint32 attackerId = 1;</code> - * @return The attackerId. - */ - @java.lang.Override - public int getAttackerId() { - return attackerId_; - } - /** - * <code>uint32 attackerId = 1;</code> - * @param value The attackerId to set. - * @return This builder for chaining. - */ - public Builder setAttackerId(int value) { - - attackerId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 attackerId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAttackerId() { - - attackerId_ = 0; - onChanged(); - return this; - } - - private int defenseId_ ; - /** - * <code>uint32 defenseId = 2;</code> - * @return The defenseId. - */ - @java.lang.Override - public int getDefenseId() { - return defenseId_; - } - /** - * <code>uint32 defenseId = 2;</code> - * @param value The defenseId to set. - * @return This builder for chaining. - */ - public Builder setDefenseId(int value) { - - defenseId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 defenseId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearDefenseId() { - - defenseId_ = 0; - onChanged(); - return this; - } - - private java.lang.Object animEventId_ = ""; - /** - * <code>string animEventId = 3;</code> - * @return The animEventId. - */ - public java.lang.String getAnimEventId() { - java.lang.Object ref = animEventId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - animEventId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string animEventId = 3;</code> - * @return The bytes for animEventId. - */ - public com.google.protobuf.ByteString - getAnimEventIdBytes() { - java.lang.Object ref = animEventId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - animEventId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string animEventId = 3;</code> - * @param value The animEventId to set. - * @return This builder for chaining. - */ - public Builder setAnimEventId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - animEventId_ = value; - onChanged(); - return this; - } - /** - * <code>string animEventId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearAnimEventId() { - - animEventId_ = getDefaultInstance().getAnimEventId(); - onChanged(); - return this; - } - /** - * <code>string animEventId = 3;</code> - * @param value The bytes for animEventId to set. - * @return This builder for chaining. - */ - public Builder setAnimEventIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - animEventId_ = value; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier abilityIdentifier_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier, emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier.Builder, emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifierOrBuilder> abilityIdentifierBuilder_; - /** - * <code>.AbilityIdentifier abilityIdentifier = 4;</code> - * @return Whether the abilityIdentifier field is set. - */ - public boolean hasAbilityIdentifier() { - return abilityIdentifierBuilder_ != null || abilityIdentifier_ != null; - } - /** - * <code>.AbilityIdentifier abilityIdentifier = 4;</code> - * @return The abilityIdentifier. - */ - public emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier getAbilityIdentifier() { - if (abilityIdentifierBuilder_ == null) { - return abilityIdentifier_ == null ? emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier.getDefaultInstance() : abilityIdentifier_; - } else { - return abilityIdentifierBuilder_.getMessage(); - } - } - /** - * <code>.AbilityIdentifier abilityIdentifier = 4;</code> - */ - public Builder setAbilityIdentifier(emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier value) { - if (abilityIdentifierBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - abilityIdentifier_ = value; - onChanged(); - } else { - abilityIdentifierBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.AbilityIdentifier abilityIdentifier = 4;</code> - */ - public Builder setAbilityIdentifier( - emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier.Builder builderForValue) { - if (abilityIdentifierBuilder_ == null) { - abilityIdentifier_ = builderForValue.build(); - onChanged(); - } else { - abilityIdentifierBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.AbilityIdentifier abilityIdentifier = 4;</code> - */ - public Builder mergeAbilityIdentifier(emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier value) { - if (abilityIdentifierBuilder_ == null) { - if (abilityIdentifier_ != null) { - abilityIdentifier_ = - emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier.newBuilder(abilityIdentifier_).mergeFrom(value).buildPartial(); - } else { - abilityIdentifier_ = value; - } - onChanged(); - } else { - abilityIdentifierBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.AbilityIdentifier abilityIdentifier = 4;</code> - */ - public Builder clearAbilityIdentifier() { - if (abilityIdentifierBuilder_ == null) { - abilityIdentifier_ = null; - onChanged(); - } else { - abilityIdentifier_ = null; - abilityIdentifierBuilder_ = null; - } - - return this; - } - /** - * <code>.AbilityIdentifier abilityIdentifier = 4;</code> - */ - public emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier.Builder getAbilityIdentifierBuilder() { - - onChanged(); - return getAbilityIdentifierFieldBuilder().getBuilder(); - } - /** - * <code>.AbilityIdentifier abilityIdentifier = 4;</code> - */ - public emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifierOrBuilder getAbilityIdentifierOrBuilder() { - if (abilityIdentifierBuilder_ != null) { - return abilityIdentifierBuilder_.getMessageOrBuilder(); - } else { - return abilityIdentifier_ == null ? - emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier.getDefaultInstance() : abilityIdentifier_; - } - } - /** - * <code>.AbilityIdentifier abilityIdentifier = 4;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier, emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier.Builder, emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifierOrBuilder> - getAbilityIdentifierFieldBuilder() { - if (abilityIdentifierBuilder_ == null) { - abilityIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier, emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier.Builder, emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifierOrBuilder>( - getAbilityIdentifier(), - getParentForChildren(), - isClean()); - abilityIdentifier_ = null; - } - return abilityIdentifierBuilder_; - } - - private float damage_ ; - /** - * <code>float damage = 6;</code> - * @return The damage. - */ - @java.lang.Override - public float getDamage() { - return damage_; - } - /** - * <code>float damage = 6;</code> - * @param value The damage to set. - * @return This builder for chaining. - */ - public Builder setDamage(float value) { - - damage_ = value; - onChanged(); - return this; - } - /** - * <code>float damage = 6;</code> - * @return This builder for chaining. - */ - public Builder clearDamage() { - - damage_ = 0F; - onChanged(); - return this; - } - - private boolean isCrit_ ; - /** - * <code>bool isCrit = 7;</code> - * @return The isCrit. - */ - @java.lang.Override - public boolean getIsCrit() { - return isCrit_; - } - /** - * <code>bool isCrit = 7;</code> - * @param value The isCrit to set. - * @return This builder for chaining. - */ - public Builder setIsCrit(boolean value) { - - isCrit_ = value; - onChanged(); - return this; - } - /** - * <code>bool isCrit = 7;</code> - * @return This builder for chaining. - */ - public Builder clearIsCrit() { - - isCrit_ = false; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision hitCollision_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision, emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision.Builder, emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollisionOrBuilder> hitCollisionBuilder_; - /** - * <code>.HitCollision hitCollision = 8;</code> - * @return Whether the hitCollision field is set. - */ - public boolean hasHitCollision() { - return hitCollisionBuilder_ != null || hitCollision_ != null; - } - /** - * <code>.HitCollision hitCollision = 8;</code> - * @return The hitCollision. - */ - public emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision getHitCollision() { - if (hitCollisionBuilder_ == null) { - return hitCollision_ == null ? emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision.getDefaultInstance() : hitCollision_; - } else { - return hitCollisionBuilder_.getMessage(); - } - } - /** - * <code>.HitCollision hitCollision = 8;</code> - */ - public Builder setHitCollision(emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision value) { - if (hitCollisionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - hitCollision_ = value; - onChanged(); - } else { - hitCollisionBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.HitCollision hitCollision = 8;</code> - */ - public Builder setHitCollision( - emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision.Builder builderForValue) { - if (hitCollisionBuilder_ == null) { - hitCollision_ = builderForValue.build(); - onChanged(); - } else { - hitCollisionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.HitCollision hitCollision = 8;</code> - */ - public Builder mergeHitCollision(emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision value) { - if (hitCollisionBuilder_ == null) { - if (hitCollision_ != null) { - hitCollision_ = - emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision.newBuilder(hitCollision_).mergeFrom(value).buildPartial(); - } else { - hitCollision_ = value; - } - onChanged(); - } else { - hitCollisionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.HitCollision hitCollision = 8;</code> - */ - public Builder clearHitCollision() { - if (hitCollisionBuilder_ == null) { - hitCollision_ = null; - onChanged(); - } else { - hitCollision_ = null; - hitCollisionBuilder_ = null; - } - - return this; - } - /** - * <code>.HitCollision hitCollision = 8;</code> - */ - public emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision.Builder getHitCollisionBuilder() { - - onChanged(); - return getHitCollisionFieldBuilder().getBuilder(); - } - /** - * <code>.HitCollision hitCollision = 8;</code> - */ - public emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollisionOrBuilder getHitCollisionOrBuilder() { - if (hitCollisionBuilder_ != null) { - return hitCollisionBuilder_.getMessageOrBuilder(); - } else { - return hitCollision_ == null ? - emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision.getDefaultInstance() : hitCollision_; - } - } - /** - * <code>.HitCollision hitCollision = 8;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision, emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision.Builder, emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollisionOrBuilder> - getHitCollisionFieldBuilder() { - if (hitCollisionBuilder_ == null) { - hitCollisionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision, emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision.Builder, emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollisionOrBuilder>( - getHitCollision(), - getParentForChildren(), - isClean()); - hitCollision_ = null; - } - return hitCollisionBuilder_; - } - - private int hitPosType_ ; - /** - * <code>uint32 hitPosType = 9;</code> - * @return The hitPosType. - */ - @java.lang.Override - public int getHitPosType() { - return hitPosType_; - } - /** - * <code>uint32 hitPosType = 9;</code> - * @param value The hitPosType to set. - * @return This builder for chaining. - */ - public Builder setHitPosType(int value) { - - hitPosType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 hitPosType = 9;</code> - * @return This builder for chaining. - */ - public Builder clearHitPosType() { - - hitPosType_ = 0; - onChanged(); - return this; - } - - private int endureBreak_ ; - /** - * <code>uint32 endureBreak = 10;</code> - * @return The endureBreak. - */ - @java.lang.Override - public int getEndureBreak() { - return endureBreak_; - } - /** - * <code>uint32 endureBreak = 10;</code> - * @param value The endureBreak to set. - * @return This builder for chaining. - */ - public Builder setEndureBreak(int value) { - - endureBreak_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 endureBreak = 10;</code> - * @return This builder for chaining. - */ - public Builder clearEndureBreak() { - - endureBreak_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.VectorOuterClass.Vector resolvedDir_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> resolvedDirBuilder_; - /** - * <code>.Vector resolvedDir = 11;</code> - * @return Whether the resolvedDir field is set. - */ - public boolean hasResolvedDir() { - return resolvedDirBuilder_ != null || resolvedDir_ != null; - } - /** - * <code>.Vector resolvedDir = 11;</code> - * @return The resolvedDir. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getResolvedDir() { - if (resolvedDirBuilder_ == null) { - return resolvedDir_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : resolvedDir_; - } else { - return resolvedDirBuilder_.getMessage(); - } - } - /** - * <code>.Vector resolvedDir = 11;</code> - */ - public Builder setResolvedDir(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (resolvedDirBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resolvedDir_ = value; - onChanged(); - } else { - resolvedDirBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Vector resolvedDir = 11;</code> - */ - public Builder setResolvedDir( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (resolvedDirBuilder_ == null) { - resolvedDir_ = builderForValue.build(); - onChanged(); - } else { - resolvedDirBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Vector resolvedDir = 11;</code> - */ - public Builder mergeResolvedDir(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (resolvedDirBuilder_ == null) { - if (resolvedDir_ != null) { - resolvedDir_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(resolvedDir_).mergeFrom(value).buildPartial(); - } else { - resolvedDir_ = value; - } - onChanged(); - } else { - resolvedDirBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Vector resolvedDir = 11;</code> - */ - public Builder clearResolvedDir() { - if (resolvedDirBuilder_ == null) { - resolvedDir_ = null; - onChanged(); - } else { - resolvedDir_ = null; - resolvedDirBuilder_ = null; - } - - return this; - } - /** - * <code>.Vector resolvedDir = 11;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getResolvedDirBuilder() { - - onChanged(); - return getResolvedDirFieldBuilder().getBuilder(); - } - /** - * <code>.Vector resolvedDir = 11;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getResolvedDirOrBuilder() { - if (resolvedDirBuilder_ != null) { - return resolvedDirBuilder_.getMessageOrBuilder(); - } else { - return resolvedDir_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : resolvedDir_; - } - } - /** - * <code>.Vector resolvedDir = 11;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getResolvedDirFieldBuilder() { - if (resolvedDirBuilder_ == null) { - resolvedDirBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getResolvedDir(), - getParentForChildren(), - isClean()); - resolvedDir_ = null; - } - return resolvedDirBuilder_; - } - - private int hitRetreatAngleCompat_ ; - /** - * <code>int32 hitRetreatAngleCompat = 12;</code> - * @return The hitRetreatAngleCompat. - */ - @java.lang.Override - public int getHitRetreatAngleCompat() { - return hitRetreatAngleCompat_; - } - /** - * <code>int32 hitRetreatAngleCompat = 12;</code> - * @param value The hitRetreatAngleCompat to set. - * @return This builder for chaining. - */ - public Builder setHitRetreatAngleCompat(int value) { - - hitRetreatAngleCompat_ = value; - onChanged(); - return this; - } - /** - * <code>int32 hitRetreatAngleCompat = 12;</code> - * @return This builder for chaining. - */ - public Builder clearHitRetreatAngleCompat() { - - hitRetreatAngleCompat_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult hitEffResult_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult, emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult.Builder, emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResultOrBuilder> hitEffResultBuilder_; - /** - * <code>.AttackHitEffectResult hitEffResult = 13;</code> - * @return Whether the hitEffResult field is set. - */ - public boolean hasHitEffResult() { - return hitEffResultBuilder_ != null || hitEffResult_ != null; - } - /** - * <code>.AttackHitEffectResult hitEffResult = 13;</code> - * @return The hitEffResult. - */ - public emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult getHitEffResult() { - if (hitEffResultBuilder_ == null) { - return hitEffResult_ == null ? emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult.getDefaultInstance() : hitEffResult_; - } else { - return hitEffResultBuilder_.getMessage(); - } - } - /** - * <code>.AttackHitEffectResult hitEffResult = 13;</code> - */ - public Builder setHitEffResult(emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult value) { - if (hitEffResultBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - hitEffResult_ = value; - onChanged(); - } else { - hitEffResultBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.AttackHitEffectResult hitEffResult = 13;</code> - */ - public Builder setHitEffResult( - emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult.Builder builderForValue) { - if (hitEffResultBuilder_ == null) { - hitEffResult_ = builderForValue.build(); - onChanged(); - } else { - hitEffResultBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.AttackHitEffectResult hitEffResult = 13;</code> - */ - public Builder mergeHitEffResult(emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult value) { - if (hitEffResultBuilder_ == null) { - if (hitEffResult_ != null) { - hitEffResult_ = - emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult.newBuilder(hitEffResult_).mergeFrom(value).buildPartial(); - } else { - hitEffResult_ = value; - } - onChanged(); - } else { - hitEffResultBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.AttackHitEffectResult hitEffResult = 13;</code> - */ - public Builder clearHitEffResult() { - if (hitEffResultBuilder_ == null) { - hitEffResult_ = null; - onChanged(); - } else { - hitEffResult_ = null; - hitEffResultBuilder_ = null; - } - - return this; - } - /** - * <code>.AttackHitEffectResult hitEffResult = 13;</code> - */ - public emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult.Builder getHitEffResultBuilder() { - - onChanged(); - return getHitEffResultFieldBuilder().getBuilder(); - } - /** - * <code>.AttackHitEffectResult hitEffResult = 13;</code> - */ - public emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResultOrBuilder getHitEffResultOrBuilder() { - if (hitEffResultBuilder_ != null) { - return hitEffResultBuilder_.getMessageOrBuilder(); - } else { - return hitEffResult_ == null ? - emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult.getDefaultInstance() : hitEffResult_; - } - } - /** - * <code>.AttackHitEffectResult hitEffResult = 13;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult, emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult.Builder, emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResultOrBuilder> - getHitEffResultFieldBuilder() { - if (hitEffResultBuilder_ == null) { - hitEffResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult, emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult.Builder, emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResultOrBuilder>( - getHitEffResult(), - getParentForChildren(), - isClean()); - hitEffResult_ = null; - } - return hitEffResultBuilder_; - } - - private int elementType_ ; - /** - * <code>uint32 elementType = 14;</code> - * @return The elementType. - */ - @java.lang.Override - public int getElementType() { - return elementType_; - } - /** - * <code>uint32 elementType = 14;</code> - * @param value The elementType to set. - * @return This builder for chaining. - */ - public Builder setElementType(int value) { - - elementType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 elementType = 14;</code> - * @return This builder for chaining. - */ - public Builder clearElementType() { - - elementType_ = 0; - onChanged(); - return this; - } - - private boolean useGadgetDamageAction_ ; - /** - * <code>bool useGadgetDamageAction = 19;</code> - * @return The useGadgetDamageAction. - */ - @java.lang.Override - public boolean getUseGadgetDamageAction() { - return useGadgetDamageAction_; - } - /** - * <code>bool useGadgetDamageAction = 19;</code> - * @param value The useGadgetDamageAction to set. - * @return This builder for chaining. - */ - public Builder setUseGadgetDamageAction(boolean value) { - - useGadgetDamageAction_ = value; - onChanged(); - return this; - } - /** - * <code>bool useGadgetDamageAction = 19;</code> - * @return This builder for chaining. - */ - public Builder clearUseGadgetDamageAction() { - - useGadgetDamageAction_ = false; - onChanged(); - return this; - } - - private int gadgetDamageActionIdx_ ; - /** - * <code>uint32 gadgetDamageActionIdx = 20;</code> - * @return The gadgetDamageActionIdx. - */ - @java.lang.Override - public int getGadgetDamageActionIdx() { - return gadgetDamageActionIdx_; - } - /** - * <code>uint32 gadgetDamageActionIdx = 20;</code> - * @param value The gadgetDamageActionIdx to set. - * @return This builder for chaining. - */ - public Builder setGadgetDamageActionIdx(int value) { - - gadgetDamageActionIdx_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gadgetDamageActionIdx = 20;</code> - * @return This builder for chaining. - */ - public Builder clearGadgetDamageActionIdx() { - - gadgetDamageActionIdx_ = 0; - onChanged(); - return this; - } - - private boolean isResistText_ ; - /** - * <code>bool isResistText = 22;</code> - * @return The isResistText. - */ - @java.lang.Override - public boolean getIsResistText() { - return isResistText_; - } - /** - * <code>bool isResistText = 22;</code> - * @param value The isResistText to set. - * @return This builder for chaining. - */ - public Builder setIsResistText(boolean value) { - - isResistText_ = value; - onChanged(); - return this; - } - /** - * <code>bool isResistText = 22;</code> - * @return This builder for chaining. - */ - public Builder clearIsResistText() { - - isResistText_ = false; - onChanged(); - return this; - } - - private int criticalRand_ ; - /** - * <code>uint32 criticalRand = 23;</code> - * @return The criticalRand. - */ - @java.lang.Override - public int getCriticalRand() { - return criticalRand_; - } - /** - * <code>uint32 criticalRand = 23;</code> - * @param value The criticalRand to set. - * @return This builder for chaining. - */ - public Builder setCriticalRand(int value) { - - criticalRand_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 criticalRand = 23;</code> - * @return This builder for chaining. - */ - public Builder clearCriticalRand() { - - criticalRand_ = 0; - onChanged(); - return this; - } - - private float elementAmplifyRate_ ; - /** - * <code>float elementAmplifyRate = 24;</code> - * @return The elementAmplifyRate. - */ - @java.lang.Override - public float getElementAmplifyRate() { - return elementAmplifyRate_; - } - /** - * <code>float elementAmplifyRate = 24;</code> - * @param value The elementAmplifyRate to set. - * @return This builder for chaining. - */ - public Builder setElementAmplifyRate(float value) { - - elementAmplifyRate_ = value; - onChanged(); - return this; - } - /** - * <code>float elementAmplifyRate = 24;</code> - * @return This builder for chaining. - */ - public Builder clearElementAmplifyRate() { - - elementAmplifyRate_ = 0F; - onChanged(); - return this; - } - - private float damageShield_ ; - /** - * <code>float damageShield = 26;</code> - * @return The damageShield. - */ - @java.lang.Override - public float getDamageShield() { - return damageShield_; - } - /** - * <code>float damageShield = 26;</code> - * @param value The damageShield to set. - * @return This builder for chaining. - */ - public Builder setDamageShield(float value) { - - damageShield_ = value; - onChanged(); - return this; - } - /** - * <code>float damageShield = 26;</code> - * @return This builder for chaining. - */ - public Builder clearDamageShield() { - - damageShield_ = 0F; - onChanged(); - return this; - } - - private boolean muteElementHurt_ ; - /** - * <code>bool muteElementHurt = 27;</code> - * @return The muteElementHurt. - */ - @java.lang.Override - public boolean getMuteElementHurt() { - return muteElementHurt_; - } - /** - * <code>bool muteElementHurt = 27;</code> - * @param value The muteElementHurt to set. - * @return This builder for chaining. - */ - public Builder setMuteElementHurt(boolean value) { - - muteElementHurt_ = value; - onChanged(); - return this; - } - /** - * <code>bool muteElementHurt = 27;</code> - * @return This builder for chaining. - */ - public Builder clearMuteElementHurt() { - - muteElementHurt_ = false; - onChanged(); - return this; - } - - private int amplifyReactionType_ ; - /** - * <code>uint32 amplifyReactionType = 30;</code> - * @return The amplifyReactionType. - */ - @java.lang.Override - public int getAmplifyReactionType() { - return amplifyReactionType_; - } - /** - * <code>uint32 amplifyReactionType = 30;</code> - * @param value The amplifyReactionType to set. - * @return This builder for chaining. - */ - public Builder setAmplifyReactionType(int value) { - - amplifyReactionType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 amplifyReactionType = 30;</code> - * @return This builder for chaining. - */ - public Builder clearAmplifyReactionType() { - - amplifyReactionType_ = 0; - onChanged(); - return this; - } - - private int addhurtReactionType_ ; - /** - * <code>uint32 addhurtReactionType = 31;</code> - * @return The addhurtReactionType. - */ - @java.lang.Override - public int getAddhurtReactionType() { - return addhurtReactionType_; - } - /** - * <code>uint32 addhurtReactionType = 31;</code> - * @param value The addhurtReactionType to set. - * @return This builder for chaining. - */ - public Builder setAddhurtReactionType(int value) { - - addhurtReactionType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 addhurtReactionType = 31;</code> - * @return This builder for chaining. - */ - public Builder clearAddhurtReactionType() { - - addhurtReactionType_ = 0; - onChanged(); - return this; - } - - private int bulletFlyTimeMs_ ; - /** - * <code>uint32 bulletFlyTimeMs = 32;</code> - * @return The bulletFlyTimeMs. - */ - @java.lang.Override - public int getBulletFlyTimeMs() { - return bulletFlyTimeMs_; - } - /** - * <code>uint32 bulletFlyTimeMs = 32;</code> - * @param value The bulletFlyTimeMs to set. - * @return This builder for chaining. - */ - public Builder setBulletFlyTimeMs(int value) { - - bulletFlyTimeMs_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 bulletFlyTimeMs = 32;</code> - * @return This builder for chaining. - */ - public Builder clearBulletFlyTimeMs() { - - bulletFlyTimeMs_ = 0; - onChanged(); - return this; - } - - private int attackCount_ ; - /** - * <code>uint32 attackCount = 33;</code> - * @return The attackCount. - */ - @java.lang.Override - public int getAttackCount() { - return attackCount_; - } - /** - * <code>uint32 attackCount = 33;</code> - * @param value The attackCount to set. - * @return This builder for chaining. - */ - public Builder setAttackCount(int value) { - - attackCount_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 attackCount = 33;</code> - * @return This builder for chaining. - */ - public Builder clearAttackCount() { - - attackCount_ = 0; - onChanged(); - return this; - } - - private int hashedAnimEventId_ ; - /** - * <code>uint32 hashedAnimEventId = 34;</code> - * @return The hashedAnimEventId. - */ - @java.lang.Override - public int getHashedAnimEventId() { - return hashedAnimEventId_; - } - /** - * <code>uint32 hashedAnimEventId = 34;</code> - * @param value The hashedAnimEventId to set. - * @return This builder for chaining. - */ - public Builder setHashedAnimEventId(int value) { - - hashedAnimEventId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 hashedAnimEventId = 34;</code> - * @return This builder for chaining. - */ - public Builder clearHashedAnimEventId() { - - hashedAnimEventId_ = 0; - onChanged(); - return this; - } - - private int attackTimestampMs_ ; - /** - * <code>uint32 attackTimestampMs = 36;</code> - * @return The attackTimestampMs. - */ - @java.lang.Override - public int getAttackTimestampMs() { - return attackTimestampMs_; - } - /** - * <code>uint32 attackTimestampMs = 36;</code> - * @param value The attackTimestampMs to set. - * @return This builder for chaining. - */ - public Builder setAttackTimestampMs(int value) { - - attackTimestampMs_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 attackTimestampMs = 36;</code> - * @return This builder for chaining. - */ - public Builder clearAttackTimestampMs() { - - attackTimestampMs_ = 0; - onChanged(); - return this; - } - - private float endureDelta_ ; - /** - * <code>float endureDelta = 37;</code> - * @return The endureDelta. - */ - @java.lang.Override - public float getEndureDelta() { - return endureDelta_; - } - /** - * <code>float endureDelta = 37;</code> - * @param value The endureDelta to set. - * @return This builder for chaining. - */ - public Builder setEndureDelta(float value) { - - endureDelta_ = value; - onChanged(); - return this; - } - /** - * <code>float endureDelta = 37;</code> - * @return This builder for chaining. - */ - public Builder clearEndureDelta() { - - endureDelta_ = 0F; - onChanged(); - return this; - } - - private int targetType_ ; - /** - * <code>uint32 targetType = 38;</code> - * @return The targetType. - */ - @java.lang.Override - public int getTargetType() { - return targetType_; - } - /** - * <code>uint32 targetType = 38;</code> - * @param value The targetType to set. - * @return This builder for chaining. - */ - public Builder setTargetType(int value) { - - targetType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 targetType = 38;</code> - * @return This builder for chaining. - */ - public Builder clearTargetType() { - - targetType_ = 0; - onChanged(); - return this; - } - - private float elementDurabilityAttenuation_ ; - /** - * <code>float elementDurabilityAttenuation = 39;</code> - * @return The elementDurabilityAttenuation. - */ - @java.lang.Override - public float getElementDurabilityAttenuation() { - return elementDurabilityAttenuation_; - } - /** - * <code>float elementDurabilityAttenuation = 39;</code> - * @param value The elementDurabilityAttenuation to set. - * @return This builder for chaining. - */ - public Builder setElementDurabilityAttenuation(float value) { - - elementDurabilityAttenuation_ = value; - onChanged(); - return this; - } - /** - * <code>float elementDurabilityAttenuation = 39;</code> - * @return This builder for chaining. - */ - public Builder clearElementDurabilityAttenuation() { - - elementDurabilityAttenuation_ = 0F; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AttackResult) - } - - // @@protoc_insertion_point(class_scope:AttackResult) - private static final emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult(); - } - - public static emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AttackResult> - PARSER = new com.google.protobuf.AbstractParser<AttackResult>() { - @java.lang.Override - public AttackResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AttackResult(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AttackResult> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AttackResult> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AttackResult_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AttackResult_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\022AttackResult.proto\032\027AbilityIdentifier." + - "proto\032\033AttackHitEffectResult.proto\032\022HitC" + - "ollision.proto\032\014Vector.proto\"\211\006\n\014AttackR" + - "esult\022\022\n\nattackerId\030\001 \001(\r\022\021\n\tdefenseId\030\002" + - " \001(\r\022\023\n\013animEventId\030\003 \001(\t\022-\n\021abilityIden" + - "tifier\030\004 \001(\0132\022.AbilityIdentifier\022\016\n\006dama" + - "ge\030\006 \001(\002\022\016\n\006isCrit\030\007 \001(\010\022#\n\014hitCollision" + - "\030\010 \001(\0132\r.HitCollision\022\022\n\nhitPosType\030\t \001(" + - "\r\022\023\n\013endureBreak\030\n \001(\r\022\034\n\013resolvedDir\030\013 " + - "\001(\0132\007.Vector\022\035\n\025hitRetreatAngleCompat\030\014 " + - "\001(\005\022,\n\014hitEffResult\030\r \001(\0132\026.AttackHitEff" + - "ectResult\022\023\n\013elementType\030\016 \001(\r\022\035\n\025useGad" + - "getDamageAction\030\023 \001(\010\022\035\n\025gadgetDamageAct" + - "ionIdx\030\024 \001(\r\022\024\n\014isResistText\030\026 \001(\010\022\024\n\014cr" + - "iticalRand\030\027 \001(\r\022\032\n\022elementAmplifyRate\030\030" + - " \001(\002\022\024\n\014damageShield\030\032 \001(\002\022\027\n\017muteElemen" + - "tHurt\030\033 \001(\010\022\033\n\023amplifyReactionType\030\036 \001(\r" + - "\022\033\n\023addhurtReactionType\030\037 \001(\r\022\027\n\017bulletF" + - "lyTimeMs\030 \001(\r\022\023\n\013attackCount\030! \001(\r\022\031\n\021h" + - "ashedAnimEventId\030\" \001(\r\022\031\n\021attackTimestam" + - "pMs\030$ \001(\r\022\023\n\013endureDelta\030% \001(\002\022\022\n\ntarget" + - "Type\030& \001(\r\022$\n\034elementDurabilityAttenuati" + - "on\030\' \001(\002B\033\n\031emu.grasscutter.net.protob\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AbilityIdentifierOuterClass.getDescriptor(), - emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.getDescriptor(), - emu.grasscutter.net.proto.HitCollisionOuterClass.getDescriptor(), - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(), - }); - internal_static_AttackResult_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AttackResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AttackResult_descriptor, - new java.lang.String[] { "AttackerId", "DefenseId", "AnimEventId", "AbilityIdentifier", "Damage", "IsCrit", "HitCollision", "HitPosType", "EndureBreak", "ResolvedDir", "HitRetreatAngleCompat", "HitEffResult", "ElementType", "UseGadgetDamageAction", "GadgetDamageActionIdx", "IsResistText", "CriticalRand", "ElementAmplifyRate", "DamageShield", "MuteElementHurt", "AmplifyReactionType", "AddhurtReactionType", "BulletFlyTimeMs", "AttackCount", "HashedAnimEventId", "AttackTimestampMs", "EndureDelta", "TargetType", "ElementDurabilityAttenuation", }); - emu.grasscutter.net.proto.AbilityIdentifierOuterClass.getDescriptor(); - emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.getDescriptor(); - emu.grasscutter.net.proto.HitCollisionOuterClass.getDescriptor(); - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarAddNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarAddNotifyOuterClass.java deleted file mode 100644 index 0387ec73a..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarAddNotifyOuterClass.java +++ /dev/null @@ -1,743 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarAddNotify.proto - -package emu.grasscutter.net.proto; - -public final class AvatarAddNotifyOuterClass { - private AvatarAddNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarAddNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarAddNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.AvatarInfo avatar = 1;</code> - * @return Whether the avatar field is set. - */ - boolean hasAvatar(); - /** - * <code>.AvatarInfo avatar = 1;</code> - * @return The avatar. - */ - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo getAvatar(); - /** - * <code>.AvatarInfo avatar = 1;</code> - */ - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder getAvatarOrBuilder(); - - /** - * <code>bool isInTeam = 2;</code> - * @return The isInTeam. - */ - boolean getIsInTeam(); - } - /** - * Protobuf type {@code AvatarAddNotify} - */ - public static final class AvatarAddNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarAddNotify) - AvatarAddNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarAddNotify.newBuilder() to construct. - private AvatarAddNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarAddNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarAddNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarAddNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder subBuilder = null; - if (avatar_ != null) { - subBuilder = avatar_.toBuilder(); - } - avatar_ = input.readMessage(emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(avatar_); - avatar_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - isInTeam_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.internal_static_AvatarAddNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.internal_static_AvatarAddNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify.class, emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify.Builder.class); - } - - public static final int AVATAR_FIELD_NUMBER = 1; - private emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo avatar_; - /** - * <code>.AvatarInfo avatar = 1;</code> - * @return Whether the avatar field is set. - */ - @java.lang.Override - public boolean hasAvatar() { - return avatar_ != null; - } - /** - * <code>.AvatarInfo avatar = 1;</code> - * @return The avatar. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo getAvatar() { - return avatar_ == null ? emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.getDefaultInstance() : avatar_; - } - /** - * <code>.AvatarInfo avatar = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder getAvatarOrBuilder() { - return getAvatar(); - } - - public static final int ISINTEAM_FIELD_NUMBER = 2; - private boolean isInTeam_; - /** - * <code>bool isInTeam = 2;</code> - * @return The isInTeam. - */ - @java.lang.Override - public boolean getIsInTeam() { - return isInTeam_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (avatar_ != null) { - output.writeMessage(1, getAvatar()); - } - if (isInTeam_ != false) { - output.writeBool(2, isInTeam_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (avatar_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAvatar()); - } - if (isInTeam_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isInTeam_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify other = (emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify) obj; - - if (hasAvatar() != other.hasAvatar()) return false; - if (hasAvatar()) { - if (!getAvatar() - .equals(other.getAvatar())) return false; - } - if (getIsInTeam() - != other.getIsInTeam()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasAvatar()) { - hash = (37 * hash) + AVATAR_FIELD_NUMBER; - hash = (53 * hash) + getAvatar().hashCode(); - } - hash = (37 * hash) + ISINTEAM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsInTeam()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarAddNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarAddNotify) - emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.internal_static_AvatarAddNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.internal_static_AvatarAddNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify.class, emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (avatarBuilder_ == null) { - avatar_ = null; - } else { - avatar_ = null; - avatarBuilder_ = null; - } - isInTeam_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.internal_static_AvatarAddNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify build() { - emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify buildPartial() { - emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify result = new emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify(this); - if (avatarBuilder_ == null) { - result.avatar_ = avatar_; - } else { - result.avatar_ = avatarBuilder_.build(); - } - result.isInTeam_ = isInTeam_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify) { - return mergeFrom((emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify other) { - if (other == emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify.getDefaultInstance()) return this; - if (other.hasAvatar()) { - mergeAvatar(other.getAvatar()); - } - if (other.getIsInTeam() != false) { - setIsInTeam(other.getIsInTeam()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo avatar_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder> avatarBuilder_; - /** - * <code>.AvatarInfo avatar = 1;</code> - * @return Whether the avatar field is set. - */ - public boolean hasAvatar() { - return avatarBuilder_ != null || avatar_ != null; - } - /** - * <code>.AvatarInfo avatar = 1;</code> - * @return The avatar. - */ - public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo getAvatar() { - if (avatarBuilder_ == null) { - return avatar_ == null ? emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.getDefaultInstance() : avatar_; - } else { - return avatarBuilder_.getMessage(); - } - } - /** - * <code>.AvatarInfo avatar = 1;</code> - */ - public Builder setAvatar(emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo value) { - if (avatarBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - avatar_ = value; - onChanged(); - } else { - avatarBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.AvatarInfo avatar = 1;</code> - */ - public Builder setAvatar( - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder builderForValue) { - if (avatarBuilder_ == null) { - avatar_ = builderForValue.build(); - onChanged(); - } else { - avatarBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.AvatarInfo avatar = 1;</code> - */ - public Builder mergeAvatar(emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo value) { - if (avatarBuilder_ == null) { - if (avatar_ != null) { - avatar_ = - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.newBuilder(avatar_).mergeFrom(value).buildPartial(); - } else { - avatar_ = value; - } - onChanged(); - } else { - avatarBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.AvatarInfo avatar = 1;</code> - */ - public Builder clearAvatar() { - if (avatarBuilder_ == null) { - avatar_ = null; - onChanged(); - } else { - avatar_ = null; - avatarBuilder_ = null; - } - - return this; - } - /** - * <code>.AvatarInfo avatar = 1;</code> - */ - public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder getAvatarBuilder() { - - onChanged(); - return getAvatarFieldBuilder().getBuilder(); - } - /** - * <code>.AvatarInfo avatar = 1;</code> - */ - public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder getAvatarOrBuilder() { - if (avatarBuilder_ != null) { - return avatarBuilder_.getMessageOrBuilder(); - } else { - return avatar_ == null ? - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.getDefaultInstance() : avatar_; - } - } - /** - * <code>.AvatarInfo avatar = 1;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder> - getAvatarFieldBuilder() { - if (avatarBuilder_ == null) { - avatarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder>( - getAvatar(), - getParentForChildren(), - isClean()); - avatar_ = null; - } - return avatarBuilder_; - } - - private boolean isInTeam_ ; - /** - * <code>bool isInTeam = 2;</code> - * @return The isInTeam. - */ - @java.lang.Override - public boolean getIsInTeam() { - return isInTeam_; - } - /** - * <code>bool isInTeam = 2;</code> - * @param value The isInTeam to set. - * @return This builder for chaining. - */ - public Builder setIsInTeam(boolean value) { - - isInTeam_ = value; - onChanged(); - return this; - } - /** - * <code>bool isInTeam = 2;</code> - * @return This builder for chaining. - */ - public Builder clearIsInTeam() { - - isInTeam_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarAddNotify) - } - - // @@protoc_insertion_point(class_scope:AvatarAddNotify) - private static final emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify(); - } - - public static emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarAddNotify> - PARSER = new com.google.protobuf.AbstractParser<AvatarAddNotify>() { - @java.lang.Override - public AvatarAddNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarAddNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarAddNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarAddNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarAddNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarAddNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025AvatarAddNotify.proto\032\020AvatarInfo.prot" + - "o\"@\n\017AvatarAddNotify\022\033\n\006avatar\030\001 \001(\0132\013.A" + - "vatarInfo\022\020\n\010isInTeam\030\002 \001(\010B\033\n\031emu.grass" + - "cutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AvatarInfoOuterClass.getDescriptor(), - }); - internal_static_AvatarAddNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarAddNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarAddNotify_descriptor, - new java.lang.String[] { "Avatar", "IsInTeam", }); - emu.grasscutter.net.proto.AvatarInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarChangeCostumeNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarChangeCostumeNotifyOuterClass.java deleted file mode 100644 index 771387849..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarChangeCostumeNotifyOuterClass.java +++ /dev/null @@ -1,672 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarChangeCostumeNotify.proto - -package emu.grasscutter.net.proto; - -public final class AvatarChangeCostumeNotifyOuterClass { - private AvatarChangeCostumeNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarChangeCostumeNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarChangeCostumeNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.SceneEntityInfo entity = 1;</code> - * @return Whether the entity field is set. - */ - boolean hasEntity(); - /** - * <code>.SceneEntityInfo entity = 1;</code> - * @return The entity. - */ - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo getEntity(); - /** - * <code>.SceneEntityInfo entity = 1;</code> - */ - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfoOrBuilder getEntityOrBuilder(); - } - /** - * Protobuf type {@code AvatarChangeCostumeNotify} - */ - public static final class AvatarChangeCostumeNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarChangeCostumeNotify) - AvatarChangeCostumeNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarChangeCostumeNotify.newBuilder() to construct. - private AvatarChangeCostumeNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarChangeCostumeNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarChangeCostumeNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarChangeCostumeNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder subBuilder = null; - if (entity_ != null) { - subBuilder = entity_.toBuilder(); - } - entity_ = input.readMessage(emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entity_); - entity_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.internal_static_AvatarChangeCostumeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.internal_static_AvatarChangeCostumeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify.class, emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify.Builder.class); - } - - public static final int ENTITY_FIELD_NUMBER = 1; - private emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo entity_; - /** - * <code>.SceneEntityInfo entity = 1;</code> - * @return Whether the entity field is set. - */ - @java.lang.Override - public boolean hasEntity() { - return entity_ != null; - } - /** - * <code>.SceneEntityInfo entity = 1;</code> - * @return The entity. - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo getEntity() { - return entity_ == null ? emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.getDefaultInstance() : entity_; - } - /** - * <code>.SceneEntityInfo entity = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfoOrBuilder getEntityOrBuilder() { - return getEntity(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (entity_ != null) { - output.writeMessage(1, getEntity()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entity_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getEntity()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify other = (emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify) obj; - - if (hasEntity() != other.hasEntity()) return false; - if (hasEntity()) { - if (!getEntity() - .equals(other.getEntity())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasEntity()) { - hash = (37 * hash) + ENTITY_FIELD_NUMBER; - hash = (53 * hash) + getEntity().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarChangeCostumeNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarChangeCostumeNotify) - emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.internal_static_AvatarChangeCostumeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.internal_static_AvatarChangeCostumeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify.class, emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (entityBuilder_ == null) { - entity_ = null; - } else { - entity_ = null; - entityBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.internal_static_AvatarChangeCostumeNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify build() { - emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify buildPartial() { - emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify result = new emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify(this); - if (entityBuilder_ == null) { - result.entity_ = entity_; - } else { - result.entity_ = entityBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify) { - return mergeFrom((emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify other) { - if (other == emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify.getDefaultInstance()) return this; - if (other.hasEntity()) { - mergeEntity(other.getEntity()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo entity_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo, emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder, emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfoOrBuilder> entityBuilder_; - /** - * <code>.SceneEntityInfo entity = 1;</code> - * @return Whether the entity field is set. - */ - public boolean hasEntity() { - return entityBuilder_ != null || entity_ != null; - } - /** - * <code>.SceneEntityInfo entity = 1;</code> - * @return The entity. - */ - public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo getEntity() { - if (entityBuilder_ == null) { - return entity_ == null ? emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.getDefaultInstance() : entity_; - } else { - return entityBuilder_.getMessage(); - } - } - /** - * <code>.SceneEntityInfo entity = 1;</code> - */ - public Builder setEntity(emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo value) { - if (entityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entity_ = value; - onChanged(); - } else { - entityBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.SceneEntityInfo entity = 1;</code> - */ - public Builder setEntity( - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder builderForValue) { - if (entityBuilder_ == null) { - entity_ = builderForValue.build(); - onChanged(); - } else { - entityBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.SceneEntityInfo entity = 1;</code> - */ - public Builder mergeEntity(emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo value) { - if (entityBuilder_ == null) { - if (entity_ != null) { - entity_ = - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.newBuilder(entity_).mergeFrom(value).buildPartial(); - } else { - entity_ = value; - } - onChanged(); - } else { - entityBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.SceneEntityInfo entity = 1;</code> - */ - public Builder clearEntity() { - if (entityBuilder_ == null) { - entity_ = null; - onChanged(); - } else { - entity_ = null; - entityBuilder_ = null; - } - - return this; - } - /** - * <code>.SceneEntityInfo entity = 1;</code> - */ - public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder getEntityBuilder() { - - onChanged(); - return getEntityFieldBuilder().getBuilder(); - } - /** - * <code>.SceneEntityInfo entity = 1;</code> - */ - public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfoOrBuilder getEntityOrBuilder() { - if (entityBuilder_ != null) { - return entityBuilder_.getMessageOrBuilder(); - } else { - return entity_ == null ? - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.getDefaultInstance() : entity_; - } - } - /** - * <code>.SceneEntityInfo entity = 1;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo, emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder, emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfoOrBuilder> - getEntityFieldBuilder() { - if (entityBuilder_ == null) { - entityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo, emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder, emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfoOrBuilder>( - getEntity(), - getParentForChildren(), - isClean()); - entity_ = null; - } - return entityBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarChangeCostumeNotify) - } - - // @@protoc_insertion_point(class_scope:AvatarChangeCostumeNotify) - private static final emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify(); - } - - public static emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarChangeCostumeNotify> - PARSER = new com.google.protobuf.AbstractParser<AvatarChangeCostumeNotify>() { - @java.lang.Override - public AvatarChangeCostumeNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarChangeCostumeNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarChangeCostumeNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarChangeCostumeNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarChangeCostumeNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarChangeCostumeNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037AvatarChangeCostumeNotify.proto\032\025Scene" + - "EntityInfo.proto\"=\n\031AvatarChangeCostumeN" + - "otify\022 \n\006entity\030\001 \001(\0132\020.SceneEntityInfoB" + - "\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.getDescriptor(), - }); - internal_static_AvatarChangeCostumeNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarChangeCostumeNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarChangeCostumeNotify_descriptor, - new java.lang.String[] { "Entity", }); - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarChangeCostumeReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarChangeCostumeReqOuterClass.java deleted file mode 100644 index 170cf04e0..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarChangeCostumeReqOuterClass.java +++ /dev/null @@ -1,608 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarChangeCostumeReq.proto - -package emu.grasscutter.net.proto; - -public final class AvatarChangeCostumeReqOuterClass { - private AvatarChangeCostumeReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarChangeCostumeReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarChangeCostumeReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>uint32 costumeId = 2;</code> - * @return The costumeId. - */ - int getCostumeId(); - } - /** - * Protobuf type {@code AvatarChangeCostumeReq} - */ - public static final class AvatarChangeCostumeReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarChangeCostumeReq) - AvatarChangeCostumeReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarChangeCostumeReq.newBuilder() to construct. - private AvatarChangeCostumeReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarChangeCostumeReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarChangeCostumeReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarChangeCostumeReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 16: { - - costumeId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.internal_static_AvatarChangeCostumeReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.internal_static_AvatarChangeCostumeReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq.class, emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq.Builder.class); - } - - public static final int AVATARGUID_FIELD_NUMBER = 1; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int COSTUMEID_FIELD_NUMBER = 2; - private int costumeId_; - /** - * <code>uint32 costumeId = 2;</code> - * @return The costumeId. - */ - @java.lang.Override - public int getCostumeId() { - return costumeId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (avatarGuid_ != 0L) { - output.writeUInt64(1, avatarGuid_); - } - if (costumeId_ != 0) { - output.writeUInt32(2, costumeId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, avatarGuid_); - } - if (costumeId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, costumeId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq other = (emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq) obj; - - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (getCostumeId() - != other.getCostumeId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - hash = (37 * hash) + COSTUMEID_FIELD_NUMBER; - hash = (53 * hash) + getCostumeId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarChangeCostumeReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarChangeCostumeReq) - emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.internal_static_AvatarChangeCostumeReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.internal_static_AvatarChangeCostumeReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq.class, emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - avatarGuid_ = 0L; - - costumeId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.internal_static_AvatarChangeCostumeReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq build() { - emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq buildPartial() { - emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq result = new emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq(this); - result.avatarGuid_ = avatarGuid_; - result.costumeId_ = costumeId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq) { - return mergeFrom((emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq other) { - if (other == emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq.getDefaultInstance()) return this; - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - if (other.getCostumeId() != 0) { - setCostumeId(other.getCostumeId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private int costumeId_ ; - /** - * <code>uint32 costumeId = 2;</code> - * @return The costumeId. - */ - @java.lang.Override - public int getCostumeId() { - return costumeId_; - } - /** - * <code>uint32 costumeId = 2;</code> - * @param value The costumeId to set. - * @return This builder for chaining. - */ - public Builder setCostumeId(int value) { - - costumeId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 costumeId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearCostumeId() { - - costumeId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarChangeCostumeReq) - } - - // @@protoc_insertion_point(class_scope:AvatarChangeCostumeReq) - private static final emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq(); - } - - public static emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarChangeCostumeReq> - PARSER = new com.google.protobuf.AbstractParser<AvatarChangeCostumeReq>() { - @java.lang.Override - public AvatarChangeCostumeReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarChangeCostumeReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarChangeCostumeReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarChangeCostumeReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarChangeCostumeReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarChangeCostumeReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034AvatarChangeCostumeReq.proto\"?\n\026Avatar" + - "ChangeCostumeReq\022\022\n\navatarGuid\030\001 \001(\004\022\021\n\t" + - "costumeId\030\002 \001(\rB\033\n\031emu.grasscutter.net.p" + - "rotob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AvatarChangeCostumeReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarChangeCostumeReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarChangeCostumeReq_descriptor, - new java.lang.String[] { "AvatarGuid", "CostumeId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarChangeCostumeRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarChangeCostumeRspOuterClass.java deleted file mode 100644 index 5b465a5b1..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarChangeCostumeRspOuterClass.java +++ /dev/null @@ -1,678 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarChangeCostumeRsp.proto - -package emu.grasscutter.net.proto; - -public final class AvatarChangeCostumeRspOuterClass { - private AvatarChangeCostumeRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarChangeCostumeRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarChangeCostumeRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>uint32 costumeId = 3;</code> - * @return The costumeId. - */ - int getCostumeId(); - } - /** - * Protobuf type {@code AvatarChangeCostumeRsp} - */ - public static final class AvatarChangeCostumeRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarChangeCostumeRsp) - AvatarChangeCostumeRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarChangeCostumeRsp.newBuilder() to construct. - private AvatarChangeCostumeRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarChangeCostumeRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarChangeCostumeRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarChangeCostumeRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readUInt32(); - break; - } - case 16: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 24: { - - costumeId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.internal_static_AvatarChangeCostumeRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.internal_static_AvatarChangeCostumeRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp.class, emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>uint32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int AVATARGUID_FIELD_NUMBER = 2; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int COSTUMEID_FIELD_NUMBER = 3; - private int costumeId_; - /** - * <code>uint32 costumeId = 3;</code> - * @return The costumeId. - */ - @java.lang.Override - public int getCostumeId() { - return costumeId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeUInt32(1, retcode_); - } - if (avatarGuid_ != 0L) { - output.writeUInt64(2, avatarGuid_); - } - if (costumeId_ != 0) { - output.writeUInt32(3, costumeId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, retcode_); - } - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, avatarGuid_); - } - if (costumeId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, costumeId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp other = (emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (getCostumeId() - != other.getCostumeId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - hash = (37 * hash) + COSTUMEID_FIELD_NUMBER; - hash = (53 * hash) + getCostumeId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarChangeCostumeRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarChangeCostumeRsp) - emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.internal_static_AvatarChangeCostumeRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.internal_static_AvatarChangeCostumeRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp.class, emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - avatarGuid_ = 0L; - - costumeId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.internal_static_AvatarChangeCostumeRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp build() { - emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp buildPartial() { - emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp result = new emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp(this); - result.retcode_ = retcode_; - result.avatarGuid_ = avatarGuid_; - result.costumeId_ = costumeId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp) { - return mergeFrom((emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp other) { - if (other == emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - if (other.getCostumeId() != 0) { - setCostumeId(other.getCostumeId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>uint32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>uint32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 2;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private int costumeId_ ; - /** - * <code>uint32 costumeId = 3;</code> - * @return The costumeId. - */ - @java.lang.Override - public int getCostumeId() { - return costumeId_; - } - /** - * <code>uint32 costumeId = 3;</code> - * @param value The costumeId to set. - * @return This builder for chaining. - */ - public Builder setCostumeId(int value) { - - costumeId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 costumeId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearCostumeId() { - - costumeId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarChangeCostumeRsp) - } - - // @@protoc_insertion_point(class_scope:AvatarChangeCostumeRsp) - private static final emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp(); - } - - public static emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarChangeCostumeRsp> - PARSER = new com.google.protobuf.AbstractParser<AvatarChangeCostumeRsp>() { - @java.lang.Override - public AvatarChangeCostumeRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarChangeCostumeRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarChangeCostumeRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarChangeCostumeRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarChangeCostumeRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarChangeCostumeRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034AvatarChangeCostumeRsp.proto\"P\n\026Avatar" + - "ChangeCostumeRsp\022\017\n\007retcode\030\001 \001(\r\022\022\n\nava" + - "tarGuid\030\002 \001(\004\022\021\n\tcostumeId\030\003 \001(\rB\033\n\031emu." + - "grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AvatarChangeCostumeRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarChangeCostumeRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarChangeCostumeRsp_descriptor, - new java.lang.String[] { "Retcode", "AvatarGuid", "CostumeId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarDataNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarDataNotifyOuterClass.java deleted file mode 100644 index bce977f11..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarDataNotifyOuterClass.java +++ /dev/null @@ -1,1902 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarDataNotify.proto - -package emu.grasscutter.net.proto; - -public final class AvatarDataNotifyOuterClass { - private AvatarDataNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarDataNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarDataNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - java.util.List<emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo> - getAvatarListList(); - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo getAvatarList(int index); - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - int getAvatarListCount(); - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder> - getAvatarListOrBuilderList(); - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder getAvatarListOrBuilder( - int index); - - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 2;</code> - */ - int getAvatarTeamMapCount(); - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 2;</code> - */ - boolean containsAvatarTeamMap( - int key); - /** - * Use {@link #getAvatarTeamMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> - getAvatarTeamMap(); - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 2;</code> - */ - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> - getAvatarTeamMapMap(); - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 2;</code> - */ - - emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrDefault( - int key, - emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam defaultValue); - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 2;</code> - */ - - emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrThrow( - int key); - - /** - * <code>uint32 curAvatarTeamId = 3;</code> - * @return The curAvatarTeamId. - */ - int getCurAvatarTeamId(); - - /** - * <code>fixed64 chooseAvatarGuid = 4;</code> - * @return The chooseAvatarGuid. - */ - long getChooseAvatarGuid(); - - /** - * <code>repeated uint64 tempAvatarGuidList = 5;</code> - * @return A list containing the tempAvatarGuidList. - */ - java.util.List<java.lang.Long> getTempAvatarGuidListList(); - /** - * <code>repeated uint64 tempAvatarGuidList = 5;</code> - * @return The count of tempAvatarGuidList. - */ - int getTempAvatarGuidListCount(); - /** - * <code>repeated uint64 tempAvatarGuidList = 5;</code> - * @param index The index of the element to return. - * @return The tempAvatarGuidList at the given index. - */ - long getTempAvatarGuidList(int index); - - /** - * <code>repeated uint32 ownedFlycloakList = 6;</code> - * @return A list containing the ownedFlycloakList. - */ - java.util.List<java.lang.Integer> getOwnedFlycloakListList(); - /** - * <code>repeated uint32 ownedFlycloakList = 6;</code> - * @return The count of ownedFlycloakList. - */ - int getOwnedFlycloakListCount(); - /** - * <code>repeated uint32 ownedFlycloakList = 6;</code> - * @param index The index of the element to return. - * @return The ownedFlycloakList at the given index. - */ - int getOwnedFlycloakList(int index); - - /** - * <code>repeated uint32 ownedCostumeList = 7;</code> - * @return A list containing the ownedCostumeList. - */ - java.util.List<java.lang.Integer> getOwnedCostumeListList(); - /** - * <code>repeated uint32 ownedCostumeList = 7;</code> - * @return The count of ownedCostumeList. - */ - int getOwnedCostumeListCount(); - /** - * <code>repeated uint32 ownedCostumeList = 7;</code> - * @param index The index of the element to return. - * @return The ownedCostumeList at the given index. - */ - int getOwnedCostumeList(int index); - } - /** - * Protobuf type {@code AvatarDataNotify} - */ - public static final class AvatarDataNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarDataNotify) - AvatarDataNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarDataNotify.newBuilder() to construct. - private AvatarDataNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarDataNotify() { - avatarList_ = java.util.Collections.emptyList(); - tempAvatarGuidList_ = emptyLongList(); - ownedFlycloakList_ = emptyIntList(); - ownedCostumeList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarDataNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarDataNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - avatarList_ = new java.util.ArrayList<emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo>(); - mutable_bitField0_ |= 0x00000001; - } - avatarList_.add( - input.readMessage(emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - avatarTeamMap_ = com.google.protobuf.MapField.newMapField( - AvatarTeamMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> - avatarTeamMap__ = input.readMessage( - AvatarTeamMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - avatarTeamMap_.getMutableMap().put( - avatarTeamMap__.getKey(), avatarTeamMap__.getValue()); - break; - } - case 24: { - - curAvatarTeamId_ = input.readUInt32(); - break; - } - case 33: { - - chooseAvatarGuid_ = input.readFixed64(); - break; - } - case 40: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - tempAvatarGuidList_ = newLongList(); - mutable_bitField0_ |= 0x00000004; - } - tempAvatarGuidList_.addLong(input.readUInt64()); - break; - } - case 42: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) { - tempAvatarGuidList_ = newLongList(); - mutable_bitField0_ |= 0x00000004; - } - while (input.getBytesUntilLimit() > 0) { - tempAvatarGuidList_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - case 48: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - ownedFlycloakList_ = newIntList(); - mutable_bitField0_ |= 0x00000008; - } - ownedFlycloakList_.addInt(input.readUInt32()); - break; - } - case 50: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000008) != 0) && input.getBytesUntilLimit() > 0) { - ownedFlycloakList_ = newIntList(); - mutable_bitField0_ |= 0x00000008; - } - while (input.getBytesUntilLimit() > 0) { - ownedFlycloakList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 56: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - ownedCostumeList_ = newIntList(); - mutable_bitField0_ |= 0x00000010; - } - ownedCostumeList_.addInt(input.readUInt32()); - break; - } - case 58: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000010) != 0) && input.getBytesUntilLimit() > 0) { - ownedCostumeList_ = newIntList(); - mutable_bitField0_ |= 0x00000010; - } - while (input.getBytesUntilLimit() > 0) { - ownedCostumeList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - avatarList_ = java.util.Collections.unmodifiableList(avatarList_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - tempAvatarGuidList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - ownedFlycloakList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - ownedCostumeList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.internal_static_AvatarDataNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetAvatarTeamMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.internal_static_AvatarDataNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify.class, emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify.Builder.class); - } - - public static final int AVATARLIST_FIELD_NUMBER = 1; - private java.util.List<emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo> avatarList_; - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo> getAvatarListList() { - return avatarList_; - } - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder> - getAvatarListOrBuilderList() { - return avatarList_; - } - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - @java.lang.Override - public int getAvatarListCount() { - return avatarList_.size(); - } - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo getAvatarList(int index) { - return avatarList_.get(index); - } - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder getAvatarListOrBuilder( - int index) { - return avatarList_.get(index); - } - - public static final int AVATARTEAMMAP_FIELD_NUMBER = 2; - private static final class AvatarTeamMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam>newDefaultInstance( - emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.internal_static_AvatarDataNotify_AvatarTeamMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> avatarTeamMap_; - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> - internalGetAvatarTeamMap() { - if (avatarTeamMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AvatarTeamMapDefaultEntryHolder.defaultEntry); - } - return avatarTeamMap_; - } - - public int getAvatarTeamMapCount() { - return internalGetAvatarTeamMap().getMap().size(); - } - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 2;</code> - */ - - @java.lang.Override - public boolean containsAvatarTeamMap( - int key) { - - return internalGetAvatarTeamMap().getMap().containsKey(key); - } - /** - * Use {@link #getAvatarTeamMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> getAvatarTeamMap() { - return getAvatarTeamMapMap(); - } - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 2;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> getAvatarTeamMapMap() { - return internalGetAvatarTeamMap().getMap(); - } - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 2;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrDefault( - int key, - emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam defaultValue) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> map = - internalGetAvatarTeamMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 2;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> map = - internalGetAvatarTeamMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int CURAVATARTEAMID_FIELD_NUMBER = 3; - private int curAvatarTeamId_; - /** - * <code>uint32 curAvatarTeamId = 3;</code> - * @return The curAvatarTeamId. - */ - @java.lang.Override - public int getCurAvatarTeamId() { - return curAvatarTeamId_; - } - - public static final int CHOOSEAVATARGUID_FIELD_NUMBER = 4; - private long chooseAvatarGuid_; - /** - * <code>fixed64 chooseAvatarGuid = 4;</code> - * @return The chooseAvatarGuid. - */ - @java.lang.Override - public long getChooseAvatarGuid() { - return chooseAvatarGuid_; - } - - public static final int TEMPAVATARGUIDLIST_FIELD_NUMBER = 5; - private com.google.protobuf.Internal.LongList tempAvatarGuidList_; - /** - * <code>repeated uint64 tempAvatarGuidList = 5;</code> - * @return A list containing the tempAvatarGuidList. - */ - @java.lang.Override - public java.util.List<java.lang.Long> - getTempAvatarGuidListList() { - return tempAvatarGuidList_; - } - /** - * <code>repeated uint64 tempAvatarGuidList = 5;</code> - * @return The count of tempAvatarGuidList. - */ - public int getTempAvatarGuidListCount() { - return tempAvatarGuidList_.size(); - } - /** - * <code>repeated uint64 tempAvatarGuidList = 5;</code> - * @param index The index of the element to return. - * @return The tempAvatarGuidList at the given index. - */ - public long getTempAvatarGuidList(int index) { - return tempAvatarGuidList_.getLong(index); - } - private int tempAvatarGuidListMemoizedSerializedSize = -1; - - public static final int OWNEDFLYCLOAKLIST_FIELD_NUMBER = 6; - private com.google.protobuf.Internal.IntList ownedFlycloakList_; - /** - * <code>repeated uint32 ownedFlycloakList = 6;</code> - * @return A list containing the ownedFlycloakList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getOwnedFlycloakListList() { - return ownedFlycloakList_; - } - /** - * <code>repeated uint32 ownedFlycloakList = 6;</code> - * @return The count of ownedFlycloakList. - */ - public int getOwnedFlycloakListCount() { - return ownedFlycloakList_.size(); - } - /** - * <code>repeated uint32 ownedFlycloakList = 6;</code> - * @param index The index of the element to return. - * @return The ownedFlycloakList at the given index. - */ - public int getOwnedFlycloakList(int index) { - return ownedFlycloakList_.getInt(index); - } - private int ownedFlycloakListMemoizedSerializedSize = -1; - - public static final int OWNEDCOSTUMELIST_FIELD_NUMBER = 7; - private com.google.protobuf.Internal.IntList ownedCostumeList_; - /** - * <code>repeated uint32 ownedCostumeList = 7;</code> - * @return A list containing the ownedCostumeList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getOwnedCostumeListList() { - return ownedCostumeList_; - } - /** - * <code>repeated uint32 ownedCostumeList = 7;</code> - * @return The count of ownedCostumeList. - */ - public int getOwnedCostumeListCount() { - return ownedCostumeList_.size(); - } - /** - * <code>repeated uint32 ownedCostumeList = 7;</code> - * @param index The index of the element to return. - * @return The ownedCostumeList at the given index. - */ - public int getOwnedCostumeList(int index) { - return ownedCostumeList_.getInt(index); - } - private int ownedCostumeListMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - for (int i = 0; i < avatarList_.size(); i++) { - output.writeMessage(1, avatarList_.get(i)); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetAvatarTeamMap(), - AvatarTeamMapDefaultEntryHolder.defaultEntry, - 2); - if (curAvatarTeamId_ != 0) { - output.writeUInt32(3, curAvatarTeamId_); - } - if (chooseAvatarGuid_ != 0L) { - output.writeFixed64(4, chooseAvatarGuid_); - } - if (getTempAvatarGuidListList().size() > 0) { - output.writeUInt32NoTag(42); - output.writeUInt32NoTag(tempAvatarGuidListMemoizedSerializedSize); - } - for (int i = 0; i < tempAvatarGuidList_.size(); i++) { - output.writeUInt64NoTag(tempAvatarGuidList_.getLong(i)); - } - if (getOwnedFlycloakListList().size() > 0) { - output.writeUInt32NoTag(50); - output.writeUInt32NoTag(ownedFlycloakListMemoizedSerializedSize); - } - for (int i = 0; i < ownedFlycloakList_.size(); i++) { - output.writeUInt32NoTag(ownedFlycloakList_.getInt(i)); - } - if (getOwnedCostumeListList().size() > 0) { - output.writeUInt32NoTag(58); - output.writeUInt32NoTag(ownedCostumeListMemoizedSerializedSize); - } - for (int i = 0; i < ownedCostumeList_.size(); i++) { - output.writeUInt32NoTag(ownedCostumeList_.getInt(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < avatarList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, avatarList_.get(i)); - } - for (java.util.Map.Entry<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> entry - : internalGetAvatarTeamMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> - avatarTeamMap__ = AvatarTeamMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, avatarTeamMap__); - } - if (curAvatarTeamId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, curAvatarTeamId_); - } - if (chooseAvatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size(4, chooseAvatarGuid_); - } - { - int dataSize = 0; - for (int i = 0; i < tempAvatarGuidList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(tempAvatarGuidList_.getLong(i)); - } - size += dataSize; - if (!getTempAvatarGuidListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - tempAvatarGuidListMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < ownedFlycloakList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(ownedFlycloakList_.getInt(i)); - } - size += dataSize; - if (!getOwnedFlycloakListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - ownedFlycloakListMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < ownedCostumeList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(ownedCostumeList_.getInt(i)); - } - size += dataSize; - if (!getOwnedCostumeListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - ownedCostumeListMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify other = (emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify) obj; - - if (!getAvatarListList() - .equals(other.getAvatarListList())) return false; - if (!internalGetAvatarTeamMap().equals( - other.internalGetAvatarTeamMap())) return false; - if (getCurAvatarTeamId() - != other.getCurAvatarTeamId()) return false; - if (getChooseAvatarGuid() - != other.getChooseAvatarGuid()) return false; - if (!getTempAvatarGuidListList() - .equals(other.getTempAvatarGuidListList())) return false; - if (!getOwnedFlycloakListList() - .equals(other.getOwnedFlycloakListList())) return false; - if (!getOwnedCostumeListList() - .equals(other.getOwnedCostumeListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAvatarListCount() > 0) { - hash = (37 * hash) + AVATARLIST_FIELD_NUMBER; - hash = (53 * hash) + getAvatarListList().hashCode(); - } - if (!internalGetAvatarTeamMap().getMap().isEmpty()) { - hash = (37 * hash) + AVATARTEAMMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetAvatarTeamMap().hashCode(); - } - hash = (37 * hash) + CURAVATARTEAMID_FIELD_NUMBER; - hash = (53 * hash) + getCurAvatarTeamId(); - hash = (37 * hash) + CHOOSEAVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getChooseAvatarGuid()); - if (getTempAvatarGuidListCount() > 0) { - hash = (37 * hash) + TEMPAVATARGUIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getTempAvatarGuidListList().hashCode(); - } - if (getOwnedFlycloakListCount() > 0) { - hash = (37 * hash) + OWNEDFLYCLOAKLIST_FIELD_NUMBER; - hash = (53 * hash) + getOwnedFlycloakListList().hashCode(); - } - if (getOwnedCostumeListCount() > 0) { - hash = (37 * hash) + OWNEDCOSTUMELIST_FIELD_NUMBER; - hash = (53 * hash) + getOwnedCostumeListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarDataNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarDataNotify) - emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.internal_static_AvatarDataNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetAvatarTeamMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutableAvatarTeamMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.internal_static_AvatarDataNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify.class, emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAvatarListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (avatarListBuilder_ == null) { - avatarList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - avatarListBuilder_.clear(); - } - internalGetMutableAvatarTeamMap().clear(); - curAvatarTeamId_ = 0; - - chooseAvatarGuid_ = 0L; - - tempAvatarGuidList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000004); - ownedFlycloakList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000008); - ownedCostumeList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.internal_static_AvatarDataNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify build() { - emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify buildPartial() { - emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify result = new emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify(this); - int from_bitField0_ = bitField0_; - if (avatarListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - avatarList_ = java.util.Collections.unmodifiableList(avatarList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.avatarList_ = avatarList_; - } else { - result.avatarList_ = avatarListBuilder_.build(); - } - result.avatarTeamMap_ = internalGetAvatarTeamMap(); - result.avatarTeamMap_.makeImmutable(); - result.curAvatarTeamId_ = curAvatarTeamId_; - result.chooseAvatarGuid_ = chooseAvatarGuid_; - if (((bitField0_ & 0x00000004) != 0)) { - tempAvatarGuidList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.tempAvatarGuidList_ = tempAvatarGuidList_; - if (((bitField0_ & 0x00000008) != 0)) { - ownedFlycloakList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.ownedFlycloakList_ = ownedFlycloakList_; - if (((bitField0_ & 0x00000010) != 0)) { - ownedCostumeList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.ownedCostumeList_ = ownedCostumeList_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify) { - return mergeFrom((emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify other) { - if (other == emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify.getDefaultInstance()) return this; - if (avatarListBuilder_ == null) { - if (!other.avatarList_.isEmpty()) { - if (avatarList_.isEmpty()) { - avatarList_ = other.avatarList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAvatarListIsMutable(); - avatarList_.addAll(other.avatarList_); - } - onChanged(); - } - } else { - if (!other.avatarList_.isEmpty()) { - if (avatarListBuilder_.isEmpty()) { - avatarListBuilder_.dispose(); - avatarListBuilder_ = null; - avatarList_ = other.avatarList_; - bitField0_ = (bitField0_ & ~0x00000001); - avatarListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAvatarListFieldBuilder() : null; - } else { - avatarListBuilder_.addAllMessages(other.avatarList_); - } - } - } - internalGetMutableAvatarTeamMap().mergeFrom( - other.internalGetAvatarTeamMap()); - if (other.getCurAvatarTeamId() != 0) { - setCurAvatarTeamId(other.getCurAvatarTeamId()); - } - if (other.getChooseAvatarGuid() != 0L) { - setChooseAvatarGuid(other.getChooseAvatarGuid()); - } - if (!other.tempAvatarGuidList_.isEmpty()) { - if (tempAvatarGuidList_.isEmpty()) { - tempAvatarGuidList_ = other.tempAvatarGuidList_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureTempAvatarGuidListIsMutable(); - tempAvatarGuidList_.addAll(other.tempAvatarGuidList_); - } - onChanged(); - } - if (!other.ownedFlycloakList_.isEmpty()) { - if (ownedFlycloakList_.isEmpty()) { - ownedFlycloakList_ = other.ownedFlycloakList_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureOwnedFlycloakListIsMutable(); - ownedFlycloakList_.addAll(other.ownedFlycloakList_); - } - onChanged(); - } - if (!other.ownedCostumeList_.isEmpty()) { - if (ownedCostumeList_.isEmpty()) { - ownedCostumeList_ = other.ownedCostumeList_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureOwnedCostumeListIsMutable(); - ownedCostumeList_.addAll(other.ownedCostumeList_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List<emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo> avatarList_ = - java.util.Collections.emptyList(); - private void ensureAvatarListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - avatarList_ = new java.util.ArrayList<emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo>(avatarList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder> avatarListBuilder_; - - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo> getAvatarListList() { - if (avatarListBuilder_ == null) { - return java.util.Collections.unmodifiableList(avatarList_); - } else { - return avatarListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - public int getAvatarListCount() { - if (avatarListBuilder_ == null) { - return avatarList_.size(); - } else { - return avatarListBuilder_.getCount(); - } - } - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo getAvatarList(int index) { - if (avatarListBuilder_ == null) { - return avatarList_.get(index); - } else { - return avatarListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - public Builder setAvatarList( - int index, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo value) { - if (avatarListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAvatarListIsMutable(); - avatarList_.set(index, value); - onChanged(); - } else { - avatarListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - public Builder setAvatarList( - int index, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder builderForValue) { - if (avatarListBuilder_ == null) { - ensureAvatarListIsMutable(); - avatarList_.set(index, builderForValue.build()); - onChanged(); - } else { - avatarListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - public Builder addAvatarList(emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo value) { - if (avatarListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAvatarListIsMutable(); - avatarList_.add(value); - onChanged(); - } else { - avatarListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - public Builder addAvatarList( - int index, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo value) { - if (avatarListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAvatarListIsMutable(); - avatarList_.add(index, value); - onChanged(); - } else { - avatarListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - public Builder addAvatarList( - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder builderForValue) { - if (avatarListBuilder_ == null) { - ensureAvatarListIsMutable(); - avatarList_.add(builderForValue.build()); - onChanged(); - } else { - avatarListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - public Builder addAvatarList( - int index, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder builderForValue) { - if (avatarListBuilder_ == null) { - ensureAvatarListIsMutable(); - avatarList_.add(index, builderForValue.build()); - onChanged(); - } else { - avatarListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - public Builder addAllAvatarList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo> values) { - if (avatarListBuilder_ == null) { - ensureAvatarListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, avatarList_); - onChanged(); - } else { - avatarListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - public Builder clearAvatarList() { - if (avatarListBuilder_ == null) { - avatarList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - avatarListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - public Builder removeAvatarList(int index) { - if (avatarListBuilder_ == null) { - ensureAvatarListIsMutable(); - avatarList_.remove(index); - onChanged(); - } else { - avatarListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder getAvatarListBuilder( - int index) { - return getAvatarListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder getAvatarListOrBuilder( - int index) { - if (avatarListBuilder_ == null) { - return avatarList_.get(index); } else { - return avatarListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder> - getAvatarListOrBuilderList() { - if (avatarListBuilder_ != null) { - return avatarListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(avatarList_); - } - } - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder addAvatarListBuilder() { - return getAvatarListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.getDefaultInstance()); - } - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder addAvatarListBuilder( - int index) { - return getAvatarListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.getDefaultInstance()); - } - /** - * <code>repeated .AvatarInfo avatarList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder> - getAvatarListBuilderList() { - return getAvatarListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder> - getAvatarListFieldBuilder() { - if (avatarListBuilder_ == null) { - avatarListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder>( - avatarList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - avatarList_ = null; - } - return avatarListBuilder_; - } - - private com.google.protobuf.MapField< - java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> avatarTeamMap_; - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> - internalGetAvatarTeamMap() { - if (avatarTeamMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AvatarTeamMapDefaultEntryHolder.defaultEntry); - } - return avatarTeamMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> - internalGetMutableAvatarTeamMap() { - onChanged();; - if (avatarTeamMap_ == null) { - avatarTeamMap_ = com.google.protobuf.MapField.newMapField( - AvatarTeamMapDefaultEntryHolder.defaultEntry); - } - if (!avatarTeamMap_.isMutable()) { - avatarTeamMap_ = avatarTeamMap_.copy(); - } - return avatarTeamMap_; - } - - public int getAvatarTeamMapCount() { - return internalGetAvatarTeamMap().getMap().size(); - } - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 2;</code> - */ - - @java.lang.Override - public boolean containsAvatarTeamMap( - int key) { - - return internalGetAvatarTeamMap().getMap().containsKey(key); - } - /** - * Use {@link #getAvatarTeamMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> getAvatarTeamMap() { - return getAvatarTeamMapMap(); - } - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 2;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> getAvatarTeamMapMap() { - return internalGetAvatarTeamMap().getMap(); - } - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 2;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrDefault( - int key, - emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam defaultValue) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> map = - internalGetAvatarTeamMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 2;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> map = - internalGetAvatarTeamMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearAvatarTeamMap() { - internalGetMutableAvatarTeamMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 2;</code> - */ - - public Builder removeAvatarTeamMap( - int key) { - - internalGetMutableAvatarTeamMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> - getMutableAvatarTeamMap() { - return internalGetMutableAvatarTeamMap().getMutableMap(); - } - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 2;</code> - */ - public Builder putAvatarTeamMap( - int key, - emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam value) { - - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAvatarTeamMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 2;</code> - */ - - public Builder putAllAvatarTeamMap( - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> values) { - internalGetMutableAvatarTeamMap().getMutableMap() - .putAll(values); - return this; - } - - private int curAvatarTeamId_ ; - /** - * <code>uint32 curAvatarTeamId = 3;</code> - * @return The curAvatarTeamId. - */ - @java.lang.Override - public int getCurAvatarTeamId() { - return curAvatarTeamId_; - } - /** - * <code>uint32 curAvatarTeamId = 3;</code> - * @param value The curAvatarTeamId to set. - * @return This builder for chaining. - */ - public Builder setCurAvatarTeamId(int value) { - - curAvatarTeamId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 curAvatarTeamId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearCurAvatarTeamId() { - - curAvatarTeamId_ = 0; - onChanged(); - return this; - } - - private long chooseAvatarGuid_ ; - /** - * <code>fixed64 chooseAvatarGuid = 4;</code> - * @return The chooseAvatarGuid. - */ - @java.lang.Override - public long getChooseAvatarGuid() { - return chooseAvatarGuid_; - } - /** - * <code>fixed64 chooseAvatarGuid = 4;</code> - * @param value The chooseAvatarGuid to set. - * @return This builder for chaining. - */ - public Builder setChooseAvatarGuid(long value) { - - chooseAvatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>fixed64 chooseAvatarGuid = 4;</code> - * @return This builder for chaining. - */ - public Builder clearChooseAvatarGuid() { - - chooseAvatarGuid_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList tempAvatarGuidList_ = emptyLongList(); - private void ensureTempAvatarGuidListIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - tempAvatarGuidList_ = mutableCopy(tempAvatarGuidList_); - bitField0_ |= 0x00000004; - } - } - /** - * <code>repeated uint64 tempAvatarGuidList = 5;</code> - * @return A list containing the tempAvatarGuidList. - */ - public java.util.List<java.lang.Long> - getTempAvatarGuidListList() { - return ((bitField0_ & 0x00000004) != 0) ? - java.util.Collections.unmodifiableList(tempAvatarGuidList_) : tempAvatarGuidList_; - } - /** - * <code>repeated uint64 tempAvatarGuidList = 5;</code> - * @return The count of tempAvatarGuidList. - */ - public int getTempAvatarGuidListCount() { - return tempAvatarGuidList_.size(); - } - /** - * <code>repeated uint64 tempAvatarGuidList = 5;</code> - * @param index The index of the element to return. - * @return The tempAvatarGuidList at the given index. - */ - public long getTempAvatarGuidList(int index) { - return tempAvatarGuidList_.getLong(index); - } - /** - * <code>repeated uint64 tempAvatarGuidList = 5;</code> - * @param index The index to set the value at. - * @param value The tempAvatarGuidList to set. - * @return This builder for chaining. - */ - public Builder setTempAvatarGuidList( - int index, long value) { - ensureTempAvatarGuidListIsMutable(); - tempAvatarGuidList_.setLong(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint64 tempAvatarGuidList = 5;</code> - * @param value The tempAvatarGuidList to add. - * @return This builder for chaining. - */ - public Builder addTempAvatarGuidList(long value) { - ensureTempAvatarGuidListIsMutable(); - tempAvatarGuidList_.addLong(value); - onChanged(); - return this; - } - /** - * <code>repeated uint64 tempAvatarGuidList = 5;</code> - * @param values The tempAvatarGuidList to add. - * @return This builder for chaining. - */ - public Builder addAllTempAvatarGuidList( - java.lang.Iterable<? extends java.lang.Long> values) { - ensureTempAvatarGuidListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tempAvatarGuidList_); - onChanged(); - return this; - } - /** - * <code>repeated uint64 tempAvatarGuidList = 5;</code> - * @return This builder for chaining. - */ - public Builder clearTempAvatarGuidList() { - tempAvatarGuidList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList ownedFlycloakList_ = emptyIntList(); - private void ensureOwnedFlycloakListIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - ownedFlycloakList_ = mutableCopy(ownedFlycloakList_); - bitField0_ |= 0x00000008; - } - } - /** - * <code>repeated uint32 ownedFlycloakList = 6;</code> - * @return A list containing the ownedFlycloakList. - */ - public java.util.List<java.lang.Integer> - getOwnedFlycloakListList() { - return ((bitField0_ & 0x00000008) != 0) ? - java.util.Collections.unmodifiableList(ownedFlycloakList_) : ownedFlycloakList_; - } - /** - * <code>repeated uint32 ownedFlycloakList = 6;</code> - * @return The count of ownedFlycloakList. - */ - public int getOwnedFlycloakListCount() { - return ownedFlycloakList_.size(); - } - /** - * <code>repeated uint32 ownedFlycloakList = 6;</code> - * @param index The index of the element to return. - * @return The ownedFlycloakList at the given index. - */ - public int getOwnedFlycloakList(int index) { - return ownedFlycloakList_.getInt(index); - } - /** - * <code>repeated uint32 ownedFlycloakList = 6;</code> - * @param index The index to set the value at. - * @param value The ownedFlycloakList to set. - * @return This builder for chaining. - */ - public Builder setOwnedFlycloakList( - int index, int value) { - ensureOwnedFlycloakListIsMutable(); - ownedFlycloakList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 ownedFlycloakList = 6;</code> - * @param value The ownedFlycloakList to add. - * @return This builder for chaining. - */ - public Builder addOwnedFlycloakList(int value) { - ensureOwnedFlycloakListIsMutable(); - ownedFlycloakList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 ownedFlycloakList = 6;</code> - * @param values The ownedFlycloakList to add. - * @return This builder for chaining. - */ - public Builder addAllOwnedFlycloakList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureOwnedFlycloakListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ownedFlycloakList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 ownedFlycloakList = 6;</code> - * @return This builder for chaining. - */ - public Builder clearOwnedFlycloakList() { - ownedFlycloakList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList ownedCostumeList_ = emptyIntList(); - private void ensureOwnedCostumeListIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - ownedCostumeList_ = mutableCopy(ownedCostumeList_); - bitField0_ |= 0x00000010; - } - } - /** - * <code>repeated uint32 ownedCostumeList = 7;</code> - * @return A list containing the ownedCostumeList. - */ - public java.util.List<java.lang.Integer> - getOwnedCostumeListList() { - return ((bitField0_ & 0x00000010) != 0) ? - java.util.Collections.unmodifiableList(ownedCostumeList_) : ownedCostumeList_; - } - /** - * <code>repeated uint32 ownedCostumeList = 7;</code> - * @return The count of ownedCostumeList. - */ - public int getOwnedCostumeListCount() { - return ownedCostumeList_.size(); - } - /** - * <code>repeated uint32 ownedCostumeList = 7;</code> - * @param index The index of the element to return. - * @return The ownedCostumeList at the given index. - */ - public int getOwnedCostumeList(int index) { - return ownedCostumeList_.getInt(index); - } - /** - * <code>repeated uint32 ownedCostumeList = 7;</code> - * @param index The index to set the value at. - * @param value The ownedCostumeList to set. - * @return This builder for chaining. - */ - public Builder setOwnedCostumeList( - int index, int value) { - ensureOwnedCostumeListIsMutable(); - ownedCostumeList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 ownedCostumeList = 7;</code> - * @param value The ownedCostumeList to add. - * @return This builder for chaining. - */ - public Builder addOwnedCostumeList(int value) { - ensureOwnedCostumeListIsMutable(); - ownedCostumeList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 ownedCostumeList = 7;</code> - * @param values The ownedCostumeList to add. - * @return This builder for chaining. - */ - public Builder addAllOwnedCostumeList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureOwnedCostumeListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ownedCostumeList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 ownedCostumeList = 7;</code> - * @return This builder for chaining. - */ - public Builder clearOwnedCostumeList() { - ownedCostumeList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarDataNotify) - } - - // @@protoc_insertion_point(class_scope:AvatarDataNotify) - private static final emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify(); - } - - public static emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarDataNotify> - PARSER = new com.google.protobuf.AbstractParser<AvatarDataNotify>() { - @java.lang.Override - public AvatarDataNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarDataNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarDataNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarDataNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarDataNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarDataNotify_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarDataNotify_AvatarTeamMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarDataNotify_AvatarTeamMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026AvatarDataNotify.proto\032\020AvatarInfo.pro" + - "to\032\020AvatarTeam.proto\"\267\002\n\020AvatarDataNotif" + - "y\022\037\n\navatarList\030\001 \003(\0132\013.AvatarInfo\022;\n\rav" + - "atarTeamMap\030\002 \003(\0132$.AvatarDataNotify.Ava" + - "tarTeamMapEntry\022\027\n\017curAvatarTeamId\030\003 \001(\r" + - "\022\030\n\020chooseAvatarGuid\030\004 \001(\006\022\032\n\022tempAvatar" + - "GuidList\030\005 \003(\004\022\031\n\021ownedFlycloakList\030\006 \003(" + - "\r\022\030\n\020ownedCostumeList\030\007 \003(\r\032A\n\022AvatarTea" + - "mMapEntry\022\013\n\003key\030\001 \001(\r\022\032\n\005value\030\002 \001(\0132\013." + - "AvatarTeam:\0028\001B\033\n\031emu.grasscutter.net.pr" + - "otob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AvatarInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.AvatarTeamOuterClass.getDescriptor(), - }); - internal_static_AvatarDataNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarDataNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarDataNotify_descriptor, - new java.lang.String[] { "AvatarList", "AvatarTeamMap", "CurAvatarTeamId", "ChooseAvatarGuid", "TempAvatarGuidList", "OwnedFlycloakList", "OwnedCostumeList", }); - internal_static_AvatarDataNotify_AvatarTeamMapEntry_descriptor = - internal_static_AvatarDataNotify_descriptor.getNestedTypes().get(0); - internal_static_AvatarDataNotify_AvatarTeamMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarDataNotify_AvatarTeamMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - emu.grasscutter.net.proto.AvatarInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.AvatarTeamOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarDieAnimationEndReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarDieAnimationEndReqOuterClass.java deleted file mode 100644 index 4f98ddd00..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarDieAnimationEndReqOuterClass.java +++ /dev/null @@ -1,814 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarDieAnimationEndReq.proto - -package emu.grasscutter.net.proto; - -public final class AvatarDieAnimationEndReqOuterClass { - private AvatarDieAnimationEndReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarDieAnimationEndReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarDieAnimationEndReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 dieGuid = 1;</code> - * @return The dieGuid. - */ - long getDieGuid(); - - /** - * <code>uint32 skillId = 2;</code> - * @return The skillId. - */ - int getSkillId(); - - /** - * <code>.Vector rebornPos = 3;</code> - * @return Whether the rebornPos field is set. - */ - boolean hasRebornPos(); - /** - * <code>.Vector rebornPos = 3;</code> - * @return The rebornPos. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getRebornPos(); - /** - * <code>.Vector rebornPos = 3;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRebornPosOrBuilder(); - } - /** - * Protobuf type {@code AvatarDieAnimationEndReq} - */ - public static final class AvatarDieAnimationEndReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarDieAnimationEndReq) - AvatarDieAnimationEndReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarDieAnimationEndReq.newBuilder() to construct. - private AvatarDieAnimationEndReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarDieAnimationEndReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarDieAnimationEndReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarDieAnimationEndReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - dieGuid_ = input.readUInt64(); - break; - } - case 16: { - - skillId_ = input.readUInt32(); - break; - } - case 26: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (rebornPos_ != null) { - subBuilder = rebornPos_.toBuilder(); - } - rebornPos_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rebornPos_); - rebornPos_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.internal_static_AvatarDieAnimationEndReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.internal_static_AvatarDieAnimationEndReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq.class, emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq.Builder.class); - } - - public static final int DIEGUID_FIELD_NUMBER = 1; - private long dieGuid_; - /** - * <code>uint64 dieGuid = 1;</code> - * @return The dieGuid. - */ - @java.lang.Override - public long getDieGuid() { - return dieGuid_; - } - - public static final int SKILLID_FIELD_NUMBER = 2; - private int skillId_; - /** - * <code>uint32 skillId = 2;</code> - * @return The skillId. - */ - @java.lang.Override - public int getSkillId() { - return skillId_; - } - - public static final int REBORNPOS_FIELD_NUMBER = 3; - private emu.grasscutter.net.proto.VectorOuterClass.Vector rebornPos_; - /** - * <code>.Vector rebornPos = 3;</code> - * @return Whether the rebornPos field is set. - */ - @java.lang.Override - public boolean hasRebornPos() { - return rebornPos_ != null; - } - /** - * <code>.Vector rebornPos = 3;</code> - * @return The rebornPos. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getRebornPos() { - return rebornPos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : rebornPos_; - } - /** - * <code>.Vector rebornPos = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRebornPosOrBuilder() { - return getRebornPos(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (dieGuid_ != 0L) { - output.writeUInt64(1, dieGuid_); - } - if (skillId_ != 0) { - output.writeUInt32(2, skillId_); - } - if (rebornPos_ != null) { - output.writeMessage(3, getRebornPos()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dieGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, dieGuid_); - } - if (skillId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, skillId_); - } - if (rebornPos_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRebornPos()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq other = (emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq) obj; - - if (getDieGuid() - != other.getDieGuid()) return false; - if (getSkillId() - != other.getSkillId()) return false; - if (hasRebornPos() != other.hasRebornPos()) return false; - if (hasRebornPos()) { - if (!getRebornPos() - .equals(other.getRebornPos())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DIEGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDieGuid()); - hash = (37 * hash) + SKILLID_FIELD_NUMBER; - hash = (53 * hash) + getSkillId(); - if (hasRebornPos()) { - hash = (37 * hash) + REBORNPOS_FIELD_NUMBER; - hash = (53 * hash) + getRebornPos().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarDieAnimationEndReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarDieAnimationEndReq) - emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.internal_static_AvatarDieAnimationEndReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.internal_static_AvatarDieAnimationEndReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq.class, emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - dieGuid_ = 0L; - - skillId_ = 0; - - if (rebornPosBuilder_ == null) { - rebornPos_ = null; - } else { - rebornPos_ = null; - rebornPosBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.internal_static_AvatarDieAnimationEndReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq build() { - emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq buildPartial() { - emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq result = new emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq(this); - result.dieGuid_ = dieGuid_; - result.skillId_ = skillId_; - if (rebornPosBuilder_ == null) { - result.rebornPos_ = rebornPos_; - } else { - result.rebornPos_ = rebornPosBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq) { - return mergeFrom((emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq other) { - if (other == emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq.getDefaultInstance()) return this; - if (other.getDieGuid() != 0L) { - setDieGuid(other.getDieGuid()); - } - if (other.getSkillId() != 0) { - setSkillId(other.getSkillId()); - } - if (other.hasRebornPos()) { - mergeRebornPos(other.getRebornPos()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long dieGuid_ ; - /** - * <code>uint64 dieGuid = 1;</code> - * @return The dieGuid. - */ - @java.lang.Override - public long getDieGuid() { - return dieGuid_; - } - /** - * <code>uint64 dieGuid = 1;</code> - * @param value The dieGuid to set. - * @return This builder for chaining. - */ - public Builder setDieGuid(long value) { - - dieGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 dieGuid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearDieGuid() { - - dieGuid_ = 0L; - onChanged(); - return this; - } - - private int skillId_ ; - /** - * <code>uint32 skillId = 2;</code> - * @return The skillId. - */ - @java.lang.Override - public int getSkillId() { - return skillId_; - } - /** - * <code>uint32 skillId = 2;</code> - * @param value The skillId to set. - * @return This builder for chaining. - */ - public Builder setSkillId(int value) { - - skillId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 skillId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearSkillId() { - - skillId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.VectorOuterClass.Vector rebornPos_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> rebornPosBuilder_; - /** - * <code>.Vector rebornPos = 3;</code> - * @return Whether the rebornPos field is set. - */ - public boolean hasRebornPos() { - return rebornPosBuilder_ != null || rebornPos_ != null; - } - /** - * <code>.Vector rebornPos = 3;</code> - * @return The rebornPos. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getRebornPos() { - if (rebornPosBuilder_ == null) { - return rebornPos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : rebornPos_; - } else { - return rebornPosBuilder_.getMessage(); - } - } - /** - * <code>.Vector rebornPos = 3;</code> - */ - public Builder setRebornPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (rebornPosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rebornPos_ = value; - onChanged(); - } else { - rebornPosBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Vector rebornPos = 3;</code> - */ - public Builder setRebornPos( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (rebornPosBuilder_ == null) { - rebornPos_ = builderForValue.build(); - onChanged(); - } else { - rebornPosBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Vector rebornPos = 3;</code> - */ - public Builder mergeRebornPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (rebornPosBuilder_ == null) { - if (rebornPos_ != null) { - rebornPos_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(rebornPos_).mergeFrom(value).buildPartial(); - } else { - rebornPos_ = value; - } - onChanged(); - } else { - rebornPosBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Vector rebornPos = 3;</code> - */ - public Builder clearRebornPos() { - if (rebornPosBuilder_ == null) { - rebornPos_ = null; - onChanged(); - } else { - rebornPos_ = null; - rebornPosBuilder_ = null; - } - - return this; - } - /** - * <code>.Vector rebornPos = 3;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getRebornPosBuilder() { - - onChanged(); - return getRebornPosFieldBuilder().getBuilder(); - } - /** - * <code>.Vector rebornPos = 3;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRebornPosOrBuilder() { - if (rebornPosBuilder_ != null) { - return rebornPosBuilder_.getMessageOrBuilder(); - } else { - return rebornPos_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : rebornPos_; - } - } - /** - * <code>.Vector rebornPos = 3;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getRebornPosFieldBuilder() { - if (rebornPosBuilder_ == null) { - rebornPosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getRebornPos(), - getParentForChildren(), - isClean()); - rebornPos_ = null; - } - return rebornPosBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarDieAnimationEndReq) - } - - // @@protoc_insertion_point(class_scope:AvatarDieAnimationEndReq) - private static final emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq(); - } - - public static emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarDieAnimationEndReq> - PARSER = new com.google.protobuf.AbstractParser<AvatarDieAnimationEndReq>() { - @java.lang.Override - public AvatarDieAnimationEndReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarDieAnimationEndReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarDieAnimationEndReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarDieAnimationEndReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarDieAnimationEndReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarDieAnimationEndReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\036AvatarDieAnimationEndReq.proto\032\014Vector" + - ".proto\"X\n\030AvatarDieAnimationEndReq\022\017\n\007di" + - "eGuid\030\001 \001(\004\022\017\n\007skillId\030\002 \001(\r\022\032\n\trebornPo" + - "s\030\003 \001(\0132\007.VectorB\033\n\031emu.grasscutter.net." + - "protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(), - }); - internal_static_AvatarDieAnimationEndReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarDieAnimationEndReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarDieAnimationEndReq_descriptor, - new java.lang.String[] { "DieGuid", "SkillId", "RebornPos", }); - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarDieAnimationEndRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarDieAnimationEndRspOuterClass.java deleted file mode 100644 index d34573dd0..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarDieAnimationEndRspOuterClass.java +++ /dev/null @@ -1,678 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarDieAnimationEndRsp.proto - -package emu.grasscutter.net.proto; - -public final class AvatarDieAnimationEndRspOuterClass { - private AvatarDieAnimationEndRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarDieAnimationEndRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarDieAnimationEndRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint64 dieGuid = 2;</code> - * @return The dieGuid. - */ - long getDieGuid(); - - /** - * <code>uint32 skillId = 3;</code> - * @return The skillId. - */ - int getSkillId(); - } - /** - * Protobuf type {@code AvatarDieAnimationEndRsp} - */ - public static final class AvatarDieAnimationEndRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarDieAnimationEndRsp) - AvatarDieAnimationEndRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarDieAnimationEndRsp.newBuilder() to construct. - private AvatarDieAnimationEndRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarDieAnimationEndRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarDieAnimationEndRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarDieAnimationEndRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - dieGuid_ = input.readUInt64(); - break; - } - case 24: { - - skillId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.internal_static_AvatarDieAnimationEndRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.internal_static_AvatarDieAnimationEndRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp.class, emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int DIEGUID_FIELD_NUMBER = 2; - private long dieGuid_; - /** - * <code>uint64 dieGuid = 2;</code> - * @return The dieGuid. - */ - @java.lang.Override - public long getDieGuid() { - return dieGuid_; - } - - public static final int SKILLID_FIELD_NUMBER = 3; - private int skillId_; - /** - * <code>uint32 skillId = 3;</code> - * @return The skillId. - */ - @java.lang.Override - public int getSkillId() { - return skillId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (dieGuid_ != 0L) { - output.writeUInt64(2, dieGuid_); - } - if (skillId_ != 0) { - output.writeUInt32(3, skillId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (dieGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, dieGuid_); - } - if (skillId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, skillId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp other = (emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getDieGuid() - != other.getDieGuid()) return false; - if (getSkillId() - != other.getSkillId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + DIEGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDieGuid()); - hash = (37 * hash) + SKILLID_FIELD_NUMBER; - hash = (53 * hash) + getSkillId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarDieAnimationEndRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarDieAnimationEndRsp) - emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.internal_static_AvatarDieAnimationEndRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.internal_static_AvatarDieAnimationEndRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp.class, emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - dieGuid_ = 0L; - - skillId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.internal_static_AvatarDieAnimationEndRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp build() { - emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp buildPartial() { - emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp result = new emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp(this); - result.retcode_ = retcode_; - result.dieGuid_ = dieGuid_; - result.skillId_ = skillId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp) { - return mergeFrom((emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp other) { - if (other == emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getDieGuid() != 0L) { - setDieGuid(other.getDieGuid()); - } - if (other.getSkillId() != 0) { - setSkillId(other.getSkillId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private long dieGuid_ ; - /** - * <code>uint64 dieGuid = 2;</code> - * @return The dieGuid. - */ - @java.lang.Override - public long getDieGuid() { - return dieGuid_; - } - /** - * <code>uint64 dieGuid = 2;</code> - * @param value The dieGuid to set. - * @return This builder for chaining. - */ - public Builder setDieGuid(long value) { - - dieGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 dieGuid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearDieGuid() { - - dieGuid_ = 0L; - onChanged(); - return this; - } - - private int skillId_ ; - /** - * <code>uint32 skillId = 3;</code> - * @return The skillId. - */ - @java.lang.Override - public int getSkillId() { - return skillId_; - } - /** - * <code>uint32 skillId = 3;</code> - * @param value The skillId to set. - * @return This builder for chaining. - */ - public Builder setSkillId(int value) { - - skillId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 skillId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearSkillId() { - - skillId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarDieAnimationEndRsp) - } - - // @@protoc_insertion_point(class_scope:AvatarDieAnimationEndRsp) - private static final emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp(); - } - - public static emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarDieAnimationEndRsp> - PARSER = new com.google.protobuf.AbstractParser<AvatarDieAnimationEndRsp>() { - @java.lang.Override - public AvatarDieAnimationEndRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarDieAnimationEndRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarDieAnimationEndRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarDieAnimationEndRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarDieAnimationEndRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarDieAnimationEndRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\036AvatarDieAnimationEndRsp.proto\"M\n\030Avat" + - "arDieAnimationEndRsp\022\017\n\007retcode\030\001 \001(\005\022\017\n" + - "\007dieGuid\030\002 \001(\004\022\017\n\007skillId\030\003 \001(\rB\033\n\031emu.g" + - "rasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AvatarDieAnimationEndRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarDieAnimationEndRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarDieAnimationEndRsp_descriptor, - new java.lang.String[] { "Retcode", "DieGuid", "SkillId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarEnterSceneInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarEnterSceneInfoOuterClass.java deleted file mode 100644 index da34654bd..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarEnterSceneInfoOuterClass.java +++ /dev/null @@ -1,1734 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarEnterSceneInfo.proto - -package emu.grasscutter.net.proto; - -public final class AvatarEnterSceneInfoOuterClass { - private AvatarEnterSceneInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarEnterSceneInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarEnterSceneInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>uint32 avatarEntityId = 2;</code> - * @return The avatarEntityId. - */ - int getAvatarEntityId(); - - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 3;</code> - * @return Whether the avatarAbilityInfo field is set. - */ - boolean hasAvatarAbilityInfo(); - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 3;</code> - * @return The avatarAbilityInfo. - */ - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getAvatarAbilityInfo(); - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 3;</code> - */ - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getAvatarAbilityInfoOrBuilder(); - - /** - * <code>repeated uint32 buffIdList = 4;</code> - * @return A list containing the buffIdList. - */ - java.util.List<java.lang.Integer> getBuffIdListList(); - /** - * <code>repeated uint32 buffIdList = 4;</code> - * @return The count of buffIdList. - */ - int getBuffIdListCount(); - /** - * <code>repeated uint32 buffIdList = 4;</code> - * @param index The index of the element to return. - * @return The buffIdList at the given index. - */ - int getBuffIdList(int index); - - /** - * <code>uint64 weaponGuid = 5;</code> - * @return The weaponGuid. - */ - long getWeaponGuid(); - - /** - * <code>uint32 weaponEntityId = 6;</code> - * @return The weaponEntityId. - */ - int getWeaponEntityId(); - - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 7;</code> - * @return Whether the weaponAbilityInfo field is set. - */ - boolean hasWeaponAbilityInfo(); - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 7;</code> - * @return The weaponAbilityInfo. - */ - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getWeaponAbilityInfo(); - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 7;</code> - */ - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getWeaponAbilityInfoOrBuilder(); - - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - java.util.List<emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff> - getServerBuffListList(); - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff getServerBuffList(int index); - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - int getServerBuffListCount(); - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder> - getServerBuffListOrBuilderList(); - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder getServerBuffListOrBuilder( - int index); - } - /** - * Protobuf type {@code AvatarEnterSceneInfo} - */ - public static final class AvatarEnterSceneInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarEnterSceneInfo) - AvatarEnterSceneInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarEnterSceneInfo.newBuilder() to construct. - private AvatarEnterSceneInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarEnterSceneInfo() { - buffIdList_ = emptyIntList(); - serverBuffList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarEnterSceneInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarEnterSceneInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 16: { - - avatarEntityId_ = input.readUInt32(); - break; - } - case 26: { - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder subBuilder = null; - if (avatarAbilityInfo_ != null) { - subBuilder = avatarAbilityInfo_.toBuilder(); - } - avatarAbilityInfo_ = input.readMessage(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(avatarAbilityInfo_); - avatarAbilityInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - buffIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - buffIdList_.addInt(input.readUInt32()); - break; - } - case 34: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - buffIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - buffIdList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 40: { - - weaponGuid_ = input.readUInt64(); - break; - } - case 48: { - - weaponEntityId_ = input.readUInt32(); - break; - } - case 58: { - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder subBuilder = null; - if (weaponAbilityInfo_ != null) { - subBuilder = weaponAbilityInfo_.toBuilder(); - } - weaponAbilityInfo_ = input.readMessage(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(weaponAbilityInfo_); - weaponAbilityInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - serverBuffList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff>(); - mutable_bitField0_ |= 0x00000002; - } - serverBuffList_.add( - input.readMessage(emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - buffIdList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - serverBuffList_ = java.util.Collections.unmodifiableList(serverBuffList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.internal_static_AvatarEnterSceneInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.internal_static_AvatarEnterSceneInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo.class, emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo.Builder.class); - } - - public static final int AVATARGUID_FIELD_NUMBER = 1; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int AVATARENTITYID_FIELD_NUMBER = 2; - private int avatarEntityId_; - /** - * <code>uint32 avatarEntityId = 2;</code> - * @return The avatarEntityId. - */ - @java.lang.Override - public int getAvatarEntityId() { - return avatarEntityId_; - } - - public static final int AVATARABILITYINFO_FIELD_NUMBER = 3; - private emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo avatarAbilityInfo_; - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 3;</code> - * @return Whether the avatarAbilityInfo field is set. - */ - @java.lang.Override - public boolean hasAvatarAbilityInfo() { - return avatarAbilityInfo_ != null; - } - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 3;</code> - * @return The avatarAbilityInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getAvatarAbilityInfo() { - return avatarAbilityInfo_ == null ? emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : avatarAbilityInfo_; - } - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getAvatarAbilityInfoOrBuilder() { - return getAvatarAbilityInfo(); - } - - public static final int BUFFIDLIST_FIELD_NUMBER = 4; - private com.google.protobuf.Internal.IntList buffIdList_; - /** - * <code>repeated uint32 buffIdList = 4;</code> - * @return A list containing the buffIdList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getBuffIdListList() { - return buffIdList_; - } - /** - * <code>repeated uint32 buffIdList = 4;</code> - * @return The count of buffIdList. - */ - public int getBuffIdListCount() { - return buffIdList_.size(); - } - /** - * <code>repeated uint32 buffIdList = 4;</code> - * @param index The index of the element to return. - * @return The buffIdList at the given index. - */ - public int getBuffIdList(int index) { - return buffIdList_.getInt(index); - } - private int buffIdListMemoizedSerializedSize = -1; - - public static final int WEAPONGUID_FIELD_NUMBER = 5; - private long weaponGuid_; - /** - * <code>uint64 weaponGuid = 5;</code> - * @return The weaponGuid. - */ - @java.lang.Override - public long getWeaponGuid() { - return weaponGuid_; - } - - public static final int WEAPONENTITYID_FIELD_NUMBER = 6; - private int weaponEntityId_; - /** - * <code>uint32 weaponEntityId = 6;</code> - * @return The weaponEntityId. - */ - @java.lang.Override - public int getWeaponEntityId() { - return weaponEntityId_; - } - - public static final int WEAPONABILITYINFO_FIELD_NUMBER = 7; - private emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo weaponAbilityInfo_; - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 7;</code> - * @return Whether the weaponAbilityInfo field is set. - */ - @java.lang.Override - public boolean hasWeaponAbilityInfo() { - return weaponAbilityInfo_ != null; - } - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 7;</code> - * @return The weaponAbilityInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getWeaponAbilityInfo() { - return weaponAbilityInfo_ == null ? emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : weaponAbilityInfo_; - } - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 7;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getWeaponAbilityInfoOrBuilder() { - return getWeaponAbilityInfo(); - } - - public static final int SERVERBUFFLIST_FIELD_NUMBER = 8; - private java.util.List<emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff> serverBuffList_; - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff> getServerBuffListList() { - return serverBuffList_; - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder> - getServerBuffListOrBuilderList() { - return serverBuffList_; - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - @java.lang.Override - public int getServerBuffListCount() { - return serverBuffList_.size(); - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff getServerBuffList(int index) { - return serverBuffList_.get(index); - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder getServerBuffListOrBuilder( - int index) { - return serverBuffList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (avatarGuid_ != 0L) { - output.writeUInt64(1, avatarGuid_); - } - if (avatarEntityId_ != 0) { - output.writeUInt32(2, avatarEntityId_); - } - if (avatarAbilityInfo_ != null) { - output.writeMessage(3, getAvatarAbilityInfo()); - } - if (getBuffIdListList().size() > 0) { - output.writeUInt32NoTag(34); - output.writeUInt32NoTag(buffIdListMemoizedSerializedSize); - } - for (int i = 0; i < buffIdList_.size(); i++) { - output.writeUInt32NoTag(buffIdList_.getInt(i)); - } - if (weaponGuid_ != 0L) { - output.writeUInt64(5, weaponGuid_); - } - if (weaponEntityId_ != 0) { - output.writeUInt32(6, weaponEntityId_); - } - if (weaponAbilityInfo_ != null) { - output.writeMessage(7, getWeaponAbilityInfo()); - } - for (int i = 0; i < serverBuffList_.size(); i++) { - output.writeMessage(8, serverBuffList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, avatarGuid_); - } - if (avatarEntityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, avatarEntityId_); - } - if (avatarAbilityInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getAvatarAbilityInfo()); - } - { - int dataSize = 0; - for (int i = 0; i < buffIdList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(buffIdList_.getInt(i)); - } - size += dataSize; - if (!getBuffIdListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - buffIdListMemoizedSerializedSize = dataSize; - } - if (weaponGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, weaponGuid_); - } - if (weaponEntityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, weaponEntityId_); - } - if (weaponAbilityInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getWeaponAbilityInfo()); - } - for (int i = 0; i < serverBuffList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, serverBuffList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo other = (emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo) obj; - - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (getAvatarEntityId() - != other.getAvatarEntityId()) return false; - if (hasAvatarAbilityInfo() != other.hasAvatarAbilityInfo()) return false; - if (hasAvatarAbilityInfo()) { - if (!getAvatarAbilityInfo() - .equals(other.getAvatarAbilityInfo())) return false; - } - if (!getBuffIdListList() - .equals(other.getBuffIdListList())) return false; - if (getWeaponGuid() - != other.getWeaponGuid()) return false; - if (getWeaponEntityId() - != other.getWeaponEntityId()) return false; - if (hasWeaponAbilityInfo() != other.hasWeaponAbilityInfo()) return false; - if (hasWeaponAbilityInfo()) { - if (!getWeaponAbilityInfo() - .equals(other.getWeaponAbilityInfo())) return false; - } - if (!getServerBuffListList() - .equals(other.getServerBuffListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - hash = (37 * hash) + AVATARENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getAvatarEntityId(); - if (hasAvatarAbilityInfo()) { - hash = (37 * hash) + AVATARABILITYINFO_FIELD_NUMBER; - hash = (53 * hash) + getAvatarAbilityInfo().hashCode(); - } - if (getBuffIdListCount() > 0) { - hash = (37 * hash) + BUFFIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getBuffIdListList().hashCode(); - } - hash = (37 * hash) + WEAPONGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getWeaponGuid()); - hash = (37 * hash) + WEAPONENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getWeaponEntityId(); - if (hasWeaponAbilityInfo()) { - hash = (37 * hash) + WEAPONABILITYINFO_FIELD_NUMBER; - hash = (53 * hash) + getWeaponAbilityInfo().hashCode(); - } - if (getServerBuffListCount() > 0) { - hash = (37 * hash) + SERVERBUFFLIST_FIELD_NUMBER; - hash = (53 * hash) + getServerBuffListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarEnterSceneInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarEnterSceneInfo) - emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.internal_static_AvatarEnterSceneInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.internal_static_AvatarEnterSceneInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo.class, emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getServerBuffListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - avatarGuid_ = 0L; - - avatarEntityId_ = 0; - - if (avatarAbilityInfoBuilder_ == null) { - avatarAbilityInfo_ = null; - } else { - avatarAbilityInfo_ = null; - avatarAbilityInfoBuilder_ = null; - } - buffIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - weaponGuid_ = 0L; - - weaponEntityId_ = 0; - - if (weaponAbilityInfoBuilder_ == null) { - weaponAbilityInfo_ = null; - } else { - weaponAbilityInfo_ = null; - weaponAbilityInfoBuilder_ = null; - } - if (serverBuffListBuilder_ == null) { - serverBuffList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - serverBuffListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.internal_static_AvatarEnterSceneInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo build() { - emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo buildPartial() { - emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo result = new emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo(this); - int from_bitField0_ = bitField0_; - result.avatarGuid_ = avatarGuid_; - result.avatarEntityId_ = avatarEntityId_; - if (avatarAbilityInfoBuilder_ == null) { - result.avatarAbilityInfo_ = avatarAbilityInfo_; - } else { - result.avatarAbilityInfo_ = avatarAbilityInfoBuilder_.build(); - } - if (((bitField0_ & 0x00000001) != 0)) { - buffIdList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.buffIdList_ = buffIdList_; - result.weaponGuid_ = weaponGuid_; - result.weaponEntityId_ = weaponEntityId_; - if (weaponAbilityInfoBuilder_ == null) { - result.weaponAbilityInfo_ = weaponAbilityInfo_; - } else { - result.weaponAbilityInfo_ = weaponAbilityInfoBuilder_.build(); - } - if (serverBuffListBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - serverBuffList_ = java.util.Collections.unmodifiableList(serverBuffList_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.serverBuffList_ = serverBuffList_; - } else { - result.serverBuffList_ = serverBuffListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo) { - return mergeFrom((emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo other) { - if (other == emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo.getDefaultInstance()) return this; - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - if (other.getAvatarEntityId() != 0) { - setAvatarEntityId(other.getAvatarEntityId()); - } - if (other.hasAvatarAbilityInfo()) { - mergeAvatarAbilityInfo(other.getAvatarAbilityInfo()); - } - if (!other.buffIdList_.isEmpty()) { - if (buffIdList_.isEmpty()) { - buffIdList_ = other.buffIdList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBuffIdListIsMutable(); - buffIdList_.addAll(other.buffIdList_); - } - onChanged(); - } - if (other.getWeaponGuid() != 0L) { - setWeaponGuid(other.getWeaponGuid()); - } - if (other.getWeaponEntityId() != 0) { - setWeaponEntityId(other.getWeaponEntityId()); - } - if (other.hasWeaponAbilityInfo()) { - mergeWeaponAbilityInfo(other.getWeaponAbilityInfo()); - } - if (serverBuffListBuilder_ == null) { - if (!other.serverBuffList_.isEmpty()) { - if (serverBuffList_.isEmpty()) { - serverBuffList_ = other.serverBuffList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureServerBuffListIsMutable(); - serverBuffList_.addAll(other.serverBuffList_); - } - onChanged(); - } - } else { - if (!other.serverBuffList_.isEmpty()) { - if (serverBuffListBuilder_.isEmpty()) { - serverBuffListBuilder_.dispose(); - serverBuffListBuilder_ = null; - serverBuffList_ = other.serverBuffList_; - bitField0_ = (bitField0_ & ~0x00000002); - serverBuffListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getServerBuffListFieldBuilder() : null; - } else { - serverBuffListBuilder_.addAllMessages(other.serverBuffList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private int avatarEntityId_ ; - /** - * <code>uint32 avatarEntityId = 2;</code> - * @return The avatarEntityId. - */ - @java.lang.Override - public int getAvatarEntityId() { - return avatarEntityId_; - } - /** - * <code>uint32 avatarEntityId = 2;</code> - * @param value The avatarEntityId to set. - * @return This builder for chaining. - */ - public Builder setAvatarEntityId(int value) { - - avatarEntityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 avatarEntityId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarEntityId() { - - avatarEntityId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo avatarAbilityInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder> avatarAbilityInfoBuilder_; - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 3;</code> - * @return Whether the avatarAbilityInfo field is set. - */ - public boolean hasAvatarAbilityInfo() { - return avatarAbilityInfoBuilder_ != null || avatarAbilityInfo_ != null; - } - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 3;</code> - * @return The avatarAbilityInfo. - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getAvatarAbilityInfo() { - if (avatarAbilityInfoBuilder_ == null) { - return avatarAbilityInfo_ == null ? emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : avatarAbilityInfo_; - } else { - return avatarAbilityInfoBuilder_.getMessage(); - } - } - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 3;</code> - */ - public Builder setAvatarAbilityInfo(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo value) { - if (avatarAbilityInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - avatarAbilityInfo_ = value; - onChanged(); - } else { - avatarAbilityInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 3;</code> - */ - public Builder setAvatarAbilityInfo( - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder builderForValue) { - if (avatarAbilityInfoBuilder_ == null) { - avatarAbilityInfo_ = builderForValue.build(); - onChanged(); - } else { - avatarAbilityInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 3;</code> - */ - public Builder mergeAvatarAbilityInfo(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo value) { - if (avatarAbilityInfoBuilder_ == null) { - if (avatarAbilityInfo_ != null) { - avatarAbilityInfo_ = - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.newBuilder(avatarAbilityInfo_).mergeFrom(value).buildPartial(); - } else { - avatarAbilityInfo_ = value; - } - onChanged(); - } else { - avatarAbilityInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 3;</code> - */ - public Builder clearAvatarAbilityInfo() { - if (avatarAbilityInfoBuilder_ == null) { - avatarAbilityInfo_ = null; - onChanged(); - } else { - avatarAbilityInfo_ = null; - avatarAbilityInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 3;</code> - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder getAvatarAbilityInfoBuilder() { - - onChanged(); - return getAvatarAbilityInfoFieldBuilder().getBuilder(); - } - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 3;</code> - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getAvatarAbilityInfoOrBuilder() { - if (avatarAbilityInfoBuilder_ != null) { - return avatarAbilityInfoBuilder_.getMessageOrBuilder(); - } else { - return avatarAbilityInfo_ == null ? - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : avatarAbilityInfo_; - } - } - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 3;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder> - getAvatarAbilityInfoFieldBuilder() { - if (avatarAbilityInfoBuilder_ == null) { - avatarAbilityInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder>( - getAvatarAbilityInfo(), - getParentForChildren(), - isClean()); - avatarAbilityInfo_ = null; - } - return avatarAbilityInfoBuilder_; - } - - private com.google.protobuf.Internal.IntList buffIdList_ = emptyIntList(); - private void ensureBuffIdListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - buffIdList_ = mutableCopy(buffIdList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 buffIdList = 4;</code> - * @return A list containing the buffIdList. - */ - public java.util.List<java.lang.Integer> - getBuffIdListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(buffIdList_) : buffIdList_; - } - /** - * <code>repeated uint32 buffIdList = 4;</code> - * @return The count of buffIdList. - */ - public int getBuffIdListCount() { - return buffIdList_.size(); - } - /** - * <code>repeated uint32 buffIdList = 4;</code> - * @param index The index of the element to return. - * @return The buffIdList at the given index. - */ - public int getBuffIdList(int index) { - return buffIdList_.getInt(index); - } - /** - * <code>repeated uint32 buffIdList = 4;</code> - * @param index The index to set the value at. - * @param value The buffIdList to set. - * @return This builder for chaining. - */ - public Builder setBuffIdList( - int index, int value) { - ensureBuffIdListIsMutable(); - buffIdList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 buffIdList = 4;</code> - * @param value The buffIdList to add. - * @return This builder for chaining. - */ - public Builder addBuffIdList(int value) { - ensureBuffIdListIsMutable(); - buffIdList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 buffIdList = 4;</code> - * @param values The buffIdList to add. - * @return This builder for chaining. - */ - public Builder addAllBuffIdList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureBuffIdListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, buffIdList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 buffIdList = 4;</code> - * @return This builder for chaining. - */ - public Builder clearBuffIdList() { - buffIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private long weaponGuid_ ; - /** - * <code>uint64 weaponGuid = 5;</code> - * @return The weaponGuid. - */ - @java.lang.Override - public long getWeaponGuid() { - return weaponGuid_; - } - /** - * <code>uint64 weaponGuid = 5;</code> - * @param value The weaponGuid to set. - * @return This builder for chaining. - */ - public Builder setWeaponGuid(long value) { - - weaponGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 weaponGuid = 5;</code> - * @return This builder for chaining. - */ - public Builder clearWeaponGuid() { - - weaponGuid_ = 0L; - onChanged(); - return this; - } - - private int weaponEntityId_ ; - /** - * <code>uint32 weaponEntityId = 6;</code> - * @return The weaponEntityId. - */ - @java.lang.Override - public int getWeaponEntityId() { - return weaponEntityId_; - } - /** - * <code>uint32 weaponEntityId = 6;</code> - * @param value The weaponEntityId to set. - * @return This builder for chaining. - */ - public Builder setWeaponEntityId(int value) { - - weaponEntityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 weaponEntityId = 6;</code> - * @return This builder for chaining. - */ - public Builder clearWeaponEntityId() { - - weaponEntityId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo weaponAbilityInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder> weaponAbilityInfoBuilder_; - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 7;</code> - * @return Whether the weaponAbilityInfo field is set. - */ - public boolean hasWeaponAbilityInfo() { - return weaponAbilityInfoBuilder_ != null || weaponAbilityInfo_ != null; - } - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 7;</code> - * @return The weaponAbilityInfo. - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getWeaponAbilityInfo() { - if (weaponAbilityInfoBuilder_ == null) { - return weaponAbilityInfo_ == null ? emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : weaponAbilityInfo_; - } else { - return weaponAbilityInfoBuilder_.getMessage(); - } - } - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 7;</code> - */ - public Builder setWeaponAbilityInfo(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo value) { - if (weaponAbilityInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - weaponAbilityInfo_ = value; - onChanged(); - } else { - weaponAbilityInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 7;</code> - */ - public Builder setWeaponAbilityInfo( - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder builderForValue) { - if (weaponAbilityInfoBuilder_ == null) { - weaponAbilityInfo_ = builderForValue.build(); - onChanged(); - } else { - weaponAbilityInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 7;</code> - */ - public Builder mergeWeaponAbilityInfo(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo value) { - if (weaponAbilityInfoBuilder_ == null) { - if (weaponAbilityInfo_ != null) { - weaponAbilityInfo_ = - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.newBuilder(weaponAbilityInfo_).mergeFrom(value).buildPartial(); - } else { - weaponAbilityInfo_ = value; - } - onChanged(); - } else { - weaponAbilityInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 7;</code> - */ - public Builder clearWeaponAbilityInfo() { - if (weaponAbilityInfoBuilder_ == null) { - weaponAbilityInfo_ = null; - onChanged(); - } else { - weaponAbilityInfo_ = null; - weaponAbilityInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 7;</code> - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder getWeaponAbilityInfoBuilder() { - - onChanged(); - return getWeaponAbilityInfoFieldBuilder().getBuilder(); - } - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 7;</code> - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getWeaponAbilityInfoOrBuilder() { - if (weaponAbilityInfoBuilder_ != null) { - return weaponAbilityInfoBuilder_.getMessageOrBuilder(); - } else { - return weaponAbilityInfo_ == null ? - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : weaponAbilityInfo_; - } - } - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 7;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder> - getWeaponAbilityInfoFieldBuilder() { - if (weaponAbilityInfoBuilder_ == null) { - weaponAbilityInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder>( - getWeaponAbilityInfo(), - getParentForChildren(), - isClean()); - weaponAbilityInfo_ = null; - } - return weaponAbilityInfoBuilder_; - } - - private java.util.List<emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff> serverBuffList_ = - java.util.Collections.emptyList(); - private void ensureServerBuffListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - serverBuffList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff>(serverBuffList_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder> serverBuffListBuilder_; - - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff> getServerBuffListList() { - if (serverBuffListBuilder_ == null) { - return java.util.Collections.unmodifiableList(serverBuffList_); - } else { - return serverBuffListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public int getServerBuffListCount() { - if (serverBuffListBuilder_ == null) { - return serverBuffList_.size(); - } else { - return serverBuffListBuilder_.getCount(); - } - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff getServerBuffList(int index) { - if (serverBuffListBuilder_ == null) { - return serverBuffList_.get(index); - } else { - return serverBuffListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public Builder setServerBuffList( - int index, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff value) { - if (serverBuffListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureServerBuffListIsMutable(); - serverBuffList_.set(index, value); - onChanged(); - } else { - serverBuffListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public Builder setServerBuffList( - int index, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder builderForValue) { - if (serverBuffListBuilder_ == null) { - ensureServerBuffListIsMutable(); - serverBuffList_.set(index, builderForValue.build()); - onChanged(); - } else { - serverBuffListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public Builder addServerBuffList(emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff value) { - if (serverBuffListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureServerBuffListIsMutable(); - serverBuffList_.add(value); - onChanged(); - } else { - serverBuffListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public Builder addServerBuffList( - int index, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff value) { - if (serverBuffListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureServerBuffListIsMutable(); - serverBuffList_.add(index, value); - onChanged(); - } else { - serverBuffListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public Builder addServerBuffList( - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder builderForValue) { - if (serverBuffListBuilder_ == null) { - ensureServerBuffListIsMutable(); - serverBuffList_.add(builderForValue.build()); - onChanged(); - } else { - serverBuffListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public Builder addServerBuffList( - int index, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder builderForValue) { - if (serverBuffListBuilder_ == null) { - ensureServerBuffListIsMutable(); - serverBuffList_.add(index, builderForValue.build()); - onChanged(); - } else { - serverBuffListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public Builder addAllServerBuffList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff> values) { - if (serverBuffListBuilder_ == null) { - ensureServerBuffListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, serverBuffList_); - onChanged(); - } else { - serverBuffListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public Builder clearServerBuffList() { - if (serverBuffListBuilder_ == null) { - serverBuffList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - serverBuffListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public Builder removeServerBuffList(int index) { - if (serverBuffListBuilder_ == null) { - ensureServerBuffListIsMutable(); - serverBuffList_.remove(index); - onChanged(); - } else { - serverBuffListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder getServerBuffListBuilder( - int index) { - return getServerBuffListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder getServerBuffListOrBuilder( - int index) { - if (serverBuffListBuilder_ == null) { - return serverBuffList_.get(index); } else { - return serverBuffListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder> - getServerBuffListOrBuilderList() { - if (serverBuffListBuilder_ != null) { - return serverBuffListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(serverBuffList_); - } - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder addServerBuffListBuilder() { - return getServerBuffListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.getDefaultInstance()); - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder addServerBuffListBuilder( - int index) { - return getServerBuffListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.getDefaultInstance()); - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder> - getServerBuffListBuilderList() { - return getServerBuffListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder> - getServerBuffListFieldBuilder() { - if (serverBuffListBuilder_ == null) { - serverBuffListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder>( - serverBuffList_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - serverBuffList_ = null; - } - return serverBuffListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarEnterSceneInfo) - } - - // @@protoc_insertion_point(class_scope:AvatarEnterSceneInfo) - private static final emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo(); - } - - public static emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarEnterSceneInfo> - PARSER = new com.google.protobuf.AbstractParser<AvatarEnterSceneInfo>() { - @java.lang.Override - public AvatarEnterSceneInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarEnterSceneInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarEnterSceneInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarEnterSceneInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarEnterSceneInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarEnterSceneInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032AvatarEnterSceneInfo.proto\032\032AbilitySyn" + - "cStateInfo.proto\032\020ServerBuff.proto\"\213\002\n\024A" + - "vatarEnterSceneInfo\022\022\n\navatarGuid\030\001 \001(\004\022" + - "\026\n\016avatarEntityId\030\002 \001(\r\0220\n\021avatarAbility" + - "Info\030\003 \001(\0132\025.AbilitySyncStateInfo\022\022\n\nbuf" + - "fIdList\030\004 \003(\r\022\022\n\nweaponGuid\030\005 \001(\004\022\026\n\016wea" + - "ponEntityId\030\006 \001(\r\0220\n\021weaponAbilityInfo\030\007" + - " \001(\0132\025.AbilitySyncStateInfo\022#\n\016serverBuf" + - "fList\030\010 \003(\0132\013.ServerBuffB\033\n\031emu.grasscut" + - "ter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.ServerBuffOuterClass.getDescriptor(), - }); - internal_static_AvatarEnterSceneInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarEnterSceneInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarEnterSceneInfo_descriptor, - new java.lang.String[] { "AvatarGuid", "AvatarEntityId", "AvatarAbilityInfo", "BuffIdList", "WeaponGuid", "WeaponEntityId", "WeaponAbilityInfo", "ServerBuffList", }); - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.ServerBuffOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarEquipAffixInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarEquipAffixInfoOuterClass.java deleted file mode 100644 index 0b9374071..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarEquipAffixInfoOuterClass.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarEquipAffixInfo.proto - -package emu.grasscutter.net.proto; - -public final class AvatarEquipAffixInfoOuterClass { - private AvatarEquipAffixInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarEquipAffixInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarEquipAffixInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 equipAffixId = 1;</code> - * @return The equipAffixId. - */ - int getEquipAffixId(); - - /** - * <code>uint32 leftCdTime = 2;</code> - * @return The leftCdTime. - */ - int getLeftCdTime(); - } - /** - * Protobuf type {@code AvatarEquipAffixInfo} - */ - public static final class AvatarEquipAffixInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarEquipAffixInfo) - AvatarEquipAffixInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarEquipAffixInfo.newBuilder() to construct. - private AvatarEquipAffixInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarEquipAffixInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarEquipAffixInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarEquipAffixInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - equipAffixId_ = input.readUInt32(); - break; - } - case 16: { - - leftCdTime_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.internal_static_AvatarEquipAffixInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.internal_static_AvatarEquipAffixInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo.class, emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo.Builder.class); - } - - public static final int EQUIPAFFIXID_FIELD_NUMBER = 1; - private int equipAffixId_; - /** - * <code>uint32 equipAffixId = 1;</code> - * @return The equipAffixId. - */ - @java.lang.Override - public int getEquipAffixId() { - return equipAffixId_; - } - - public static final int LEFTCDTIME_FIELD_NUMBER = 2; - private int leftCdTime_; - /** - * <code>uint32 leftCdTime = 2;</code> - * @return The leftCdTime. - */ - @java.lang.Override - public int getLeftCdTime() { - return leftCdTime_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (equipAffixId_ != 0) { - output.writeUInt32(1, equipAffixId_); - } - if (leftCdTime_ != 0) { - output.writeUInt32(2, leftCdTime_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (equipAffixId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, equipAffixId_); - } - if (leftCdTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, leftCdTime_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo other = (emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo) obj; - - if (getEquipAffixId() - != other.getEquipAffixId()) return false; - if (getLeftCdTime() - != other.getLeftCdTime()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + EQUIPAFFIXID_FIELD_NUMBER; - hash = (53 * hash) + getEquipAffixId(); - hash = (37 * hash) + LEFTCDTIME_FIELD_NUMBER; - hash = (53 * hash) + getLeftCdTime(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarEquipAffixInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarEquipAffixInfo) - emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.internal_static_AvatarEquipAffixInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.internal_static_AvatarEquipAffixInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo.class, emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - equipAffixId_ = 0; - - leftCdTime_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.internal_static_AvatarEquipAffixInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo build() { - emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo buildPartial() { - emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo result = new emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo(this); - result.equipAffixId_ = equipAffixId_; - result.leftCdTime_ = leftCdTime_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo) { - return mergeFrom((emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo other) { - if (other == emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo.getDefaultInstance()) return this; - if (other.getEquipAffixId() != 0) { - setEquipAffixId(other.getEquipAffixId()); - } - if (other.getLeftCdTime() != 0) { - setLeftCdTime(other.getLeftCdTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int equipAffixId_ ; - /** - * <code>uint32 equipAffixId = 1;</code> - * @return The equipAffixId. - */ - @java.lang.Override - public int getEquipAffixId() { - return equipAffixId_; - } - /** - * <code>uint32 equipAffixId = 1;</code> - * @param value The equipAffixId to set. - * @return This builder for chaining. - */ - public Builder setEquipAffixId(int value) { - - equipAffixId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 equipAffixId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearEquipAffixId() { - - equipAffixId_ = 0; - onChanged(); - return this; - } - - private int leftCdTime_ ; - /** - * <code>uint32 leftCdTime = 2;</code> - * @return The leftCdTime. - */ - @java.lang.Override - public int getLeftCdTime() { - return leftCdTime_; - } - /** - * <code>uint32 leftCdTime = 2;</code> - * @param value The leftCdTime to set. - * @return This builder for chaining. - */ - public Builder setLeftCdTime(int value) { - - leftCdTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 leftCdTime = 2;</code> - * @return This builder for chaining. - */ - public Builder clearLeftCdTime() { - - leftCdTime_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarEquipAffixInfo) - } - - // @@protoc_insertion_point(class_scope:AvatarEquipAffixInfo) - private static final emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo(); - } - - public static emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarEquipAffixInfo> - PARSER = new com.google.protobuf.AbstractParser<AvatarEquipAffixInfo>() { - @java.lang.Override - public AvatarEquipAffixInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarEquipAffixInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarEquipAffixInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarEquipAffixInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarEquipAffixInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarEquipAffixInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032AvatarEquipAffixInfo.proto\"@\n\024AvatarEq" + - "uipAffixInfo\022\024\n\014equipAffixId\030\001 \001(\r\022\022\n\nle" + - "ftCdTime\030\002 \001(\rB\033\n\031emu.grasscutter.net.pr" + - "otob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AvatarEquipAffixInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarEquipAffixInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarEquipAffixInfo_descriptor, - new java.lang.String[] { "EquipAffixId", "LeftCdTime", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarEquipChangeNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarEquipChangeNotifyOuterClass.java deleted file mode 100644 index 4ab0fab5e..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarEquipChangeNotifyOuterClass.java +++ /dev/null @@ -1,1163 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarEquipChangeNotify.proto - -package emu.grasscutter.net.proto; - -public final class AvatarEquipChangeNotifyOuterClass { - private AvatarEquipChangeNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarEquipChangeNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarEquipChangeNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>uint32 equipType = 2;</code> - * @return The equipType. - */ - int getEquipType(); - - /** - * <code>uint32 itemId = 3;</code> - * @return The itemId. - */ - int getItemId(); - - /** - * <code>uint64 equipGuid = 4;</code> - * @return The equipGuid. - */ - long getEquipGuid(); - - /** - * <code>.SceneWeaponInfo weapon = 5;</code> - * @return Whether the weapon field is set. - */ - boolean hasWeapon(); - /** - * <code>.SceneWeaponInfo weapon = 5;</code> - * @return The weapon. - */ - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo getWeapon(); - /** - * <code>.SceneWeaponInfo weapon = 5;</code> - */ - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfoOrBuilder getWeaponOrBuilder(); - - /** - * <code>.SceneReliquaryInfo reliquary = 6;</code> - * @return Whether the reliquary field is set. - */ - boolean hasReliquary(); - /** - * <code>.SceneReliquaryInfo reliquary = 6;</code> - * @return The reliquary. - */ - emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo getReliquary(); - /** - * <code>.SceneReliquaryInfo reliquary = 6;</code> - */ - emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfoOrBuilder getReliquaryOrBuilder(); - } - /** - * Protobuf type {@code AvatarEquipChangeNotify} - */ - public static final class AvatarEquipChangeNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarEquipChangeNotify) - AvatarEquipChangeNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarEquipChangeNotify.newBuilder() to construct. - private AvatarEquipChangeNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarEquipChangeNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarEquipChangeNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarEquipChangeNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 16: { - - equipType_ = input.readUInt32(); - break; - } - case 24: { - - itemId_ = input.readUInt32(); - break; - } - case 32: { - - equipGuid_ = input.readUInt64(); - break; - } - case 42: { - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.Builder subBuilder = null; - if (weapon_ != null) { - subBuilder = weapon_.toBuilder(); - } - weapon_ = input.readMessage(emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(weapon_); - weapon_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.Builder subBuilder = null; - if (reliquary_ != null) { - subBuilder = reliquary_.toBuilder(); - } - reliquary_ = input.readMessage(emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(reliquary_); - reliquary_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.internal_static_AvatarEquipChangeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.internal_static_AvatarEquipChangeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify.class, emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify.Builder.class); - } - - public static final int AVATARGUID_FIELD_NUMBER = 1; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int EQUIPTYPE_FIELD_NUMBER = 2; - private int equipType_; - /** - * <code>uint32 equipType = 2;</code> - * @return The equipType. - */ - @java.lang.Override - public int getEquipType() { - return equipType_; - } - - public static final int ITEMID_FIELD_NUMBER = 3; - private int itemId_; - /** - * <code>uint32 itemId = 3;</code> - * @return The itemId. - */ - @java.lang.Override - public int getItemId() { - return itemId_; - } - - public static final int EQUIPGUID_FIELD_NUMBER = 4; - private long equipGuid_; - /** - * <code>uint64 equipGuid = 4;</code> - * @return The equipGuid. - */ - @java.lang.Override - public long getEquipGuid() { - return equipGuid_; - } - - public static final int WEAPON_FIELD_NUMBER = 5; - private emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo weapon_; - /** - * <code>.SceneWeaponInfo weapon = 5;</code> - * @return Whether the weapon field is set. - */ - @java.lang.Override - public boolean hasWeapon() { - return weapon_ != null; - } - /** - * <code>.SceneWeaponInfo weapon = 5;</code> - * @return The weapon. - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo getWeapon() { - return weapon_ == null ? emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.getDefaultInstance() : weapon_; - } - /** - * <code>.SceneWeaponInfo weapon = 5;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfoOrBuilder getWeaponOrBuilder() { - return getWeapon(); - } - - public static final int RELIQUARY_FIELD_NUMBER = 6; - private emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo reliquary_; - /** - * <code>.SceneReliquaryInfo reliquary = 6;</code> - * @return Whether the reliquary field is set. - */ - @java.lang.Override - public boolean hasReliquary() { - return reliquary_ != null; - } - /** - * <code>.SceneReliquaryInfo reliquary = 6;</code> - * @return The reliquary. - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo getReliquary() { - return reliquary_ == null ? emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.getDefaultInstance() : reliquary_; - } - /** - * <code>.SceneReliquaryInfo reliquary = 6;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfoOrBuilder getReliquaryOrBuilder() { - return getReliquary(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (avatarGuid_ != 0L) { - output.writeUInt64(1, avatarGuid_); - } - if (equipType_ != 0) { - output.writeUInt32(2, equipType_); - } - if (itemId_ != 0) { - output.writeUInt32(3, itemId_); - } - if (equipGuid_ != 0L) { - output.writeUInt64(4, equipGuid_); - } - if (weapon_ != null) { - output.writeMessage(5, getWeapon()); - } - if (reliquary_ != null) { - output.writeMessage(6, getReliquary()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, avatarGuid_); - } - if (equipType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, equipType_); - } - if (itemId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, itemId_); - } - if (equipGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, equipGuid_); - } - if (weapon_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getWeapon()); - } - if (reliquary_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getReliquary()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify other = (emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify) obj; - - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (getEquipType() - != other.getEquipType()) return false; - if (getItemId() - != other.getItemId()) return false; - if (getEquipGuid() - != other.getEquipGuid()) return false; - if (hasWeapon() != other.hasWeapon()) return false; - if (hasWeapon()) { - if (!getWeapon() - .equals(other.getWeapon())) return false; - } - if (hasReliquary() != other.hasReliquary()) return false; - if (hasReliquary()) { - if (!getReliquary() - .equals(other.getReliquary())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - hash = (37 * hash) + EQUIPTYPE_FIELD_NUMBER; - hash = (53 * hash) + getEquipType(); - hash = (37 * hash) + ITEMID_FIELD_NUMBER; - hash = (53 * hash) + getItemId(); - hash = (37 * hash) + EQUIPGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEquipGuid()); - if (hasWeapon()) { - hash = (37 * hash) + WEAPON_FIELD_NUMBER; - hash = (53 * hash) + getWeapon().hashCode(); - } - if (hasReliquary()) { - hash = (37 * hash) + RELIQUARY_FIELD_NUMBER; - hash = (53 * hash) + getReliquary().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarEquipChangeNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarEquipChangeNotify) - emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.internal_static_AvatarEquipChangeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.internal_static_AvatarEquipChangeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify.class, emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - avatarGuid_ = 0L; - - equipType_ = 0; - - itemId_ = 0; - - equipGuid_ = 0L; - - if (weaponBuilder_ == null) { - weapon_ = null; - } else { - weapon_ = null; - weaponBuilder_ = null; - } - if (reliquaryBuilder_ == null) { - reliquary_ = null; - } else { - reliquary_ = null; - reliquaryBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.internal_static_AvatarEquipChangeNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify build() { - emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify buildPartial() { - emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify result = new emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify(this); - result.avatarGuid_ = avatarGuid_; - result.equipType_ = equipType_; - result.itemId_ = itemId_; - result.equipGuid_ = equipGuid_; - if (weaponBuilder_ == null) { - result.weapon_ = weapon_; - } else { - result.weapon_ = weaponBuilder_.build(); - } - if (reliquaryBuilder_ == null) { - result.reliquary_ = reliquary_; - } else { - result.reliquary_ = reliquaryBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify) { - return mergeFrom((emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify other) { - if (other == emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify.getDefaultInstance()) return this; - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - if (other.getEquipType() != 0) { - setEquipType(other.getEquipType()); - } - if (other.getItemId() != 0) { - setItemId(other.getItemId()); - } - if (other.getEquipGuid() != 0L) { - setEquipGuid(other.getEquipGuid()); - } - if (other.hasWeapon()) { - mergeWeapon(other.getWeapon()); - } - if (other.hasReliquary()) { - mergeReliquary(other.getReliquary()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private int equipType_ ; - /** - * <code>uint32 equipType = 2;</code> - * @return The equipType. - */ - @java.lang.Override - public int getEquipType() { - return equipType_; - } - /** - * <code>uint32 equipType = 2;</code> - * @param value The equipType to set. - * @return This builder for chaining. - */ - public Builder setEquipType(int value) { - - equipType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 equipType = 2;</code> - * @return This builder for chaining. - */ - public Builder clearEquipType() { - - equipType_ = 0; - onChanged(); - return this; - } - - private int itemId_ ; - /** - * <code>uint32 itemId = 3;</code> - * @return The itemId. - */ - @java.lang.Override - public int getItemId() { - return itemId_; - } - /** - * <code>uint32 itemId = 3;</code> - * @param value The itemId to set. - * @return This builder for chaining. - */ - public Builder setItemId(int value) { - - itemId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 itemId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearItemId() { - - itemId_ = 0; - onChanged(); - return this; - } - - private long equipGuid_ ; - /** - * <code>uint64 equipGuid = 4;</code> - * @return The equipGuid. - */ - @java.lang.Override - public long getEquipGuid() { - return equipGuid_; - } - /** - * <code>uint64 equipGuid = 4;</code> - * @param value The equipGuid to set. - * @return This builder for chaining. - */ - public Builder setEquipGuid(long value) { - - equipGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 equipGuid = 4;</code> - * @return This builder for chaining. - */ - public Builder clearEquipGuid() { - - equipGuid_ = 0L; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo weapon_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo, emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.Builder, emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfoOrBuilder> weaponBuilder_; - /** - * <code>.SceneWeaponInfo weapon = 5;</code> - * @return Whether the weapon field is set. - */ - public boolean hasWeapon() { - return weaponBuilder_ != null || weapon_ != null; - } - /** - * <code>.SceneWeaponInfo weapon = 5;</code> - * @return The weapon. - */ - public emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo getWeapon() { - if (weaponBuilder_ == null) { - return weapon_ == null ? emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.getDefaultInstance() : weapon_; - } else { - return weaponBuilder_.getMessage(); - } - } - /** - * <code>.SceneWeaponInfo weapon = 5;</code> - */ - public Builder setWeapon(emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo value) { - if (weaponBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - weapon_ = value; - onChanged(); - } else { - weaponBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.SceneWeaponInfo weapon = 5;</code> - */ - public Builder setWeapon( - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.Builder builderForValue) { - if (weaponBuilder_ == null) { - weapon_ = builderForValue.build(); - onChanged(); - } else { - weaponBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.SceneWeaponInfo weapon = 5;</code> - */ - public Builder mergeWeapon(emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo value) { - if (weaponBuilder_ == null) { - if (weapon_ != null) { - weapon_ = - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.newBuilder(weapon_).mergeFrom(value).buildPartial(); - } else { - weapon_ = value; - } - onChanged(); - } else { - weaponBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.SceneWeaponInfo weapon = 5;</code> - */ - public Builder clearWeapon() { - if (weaponBuilder_ == null) { - weapon_ = null; - onChanged(); - } else { - weapon_ = null; - weaponBuilder_ = null; - } - - return this; - } - /** - * <code>.SceneWeaponInfo weapon = 5;</code> - */ - public emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.Builder getWeaponBuilder() { - - onChanged(); - return getWeaponFieldBuilder().getBuilder(); - } - /** - * <code>.SceneWeaponInfo weapon = 5;</code> - */ - public emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfoOrBuilder getWeaponOrBuilder() { - if (weaponBuilder_ != null) { - return weaponBuilder_.getMessageOrBuilder(); - } else { - return weapon_ == null ? - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.getDefaultInstance() : weapon_; - } - } - /** - * <code>.SceneWeaponInfo weapon = 5;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo, emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.Builder, emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfoOrBuilder> - getWeaponFieldBuilder() { - if (weaponBuilder_ == null) { - weaponBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo, emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.Builder, emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfoOrBuilder>( - getWeapon(), - getParentForChildren(), - isClean()); - weapon_ = null; - } - return weaponBuilder_; - } - - private emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo reliquary_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo, emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.Builder, emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfoOrBuilder> reliquaryBuilder_; - /** - * <code>.SceneReliquaryInfo reliquary = 6;</code> - * @return Whether the reliquary field is set. - */ - public boolean hasReliquary() { - return reliquaryBuilder_ != null || reliquary_ != null; - } - /** - * <code>.SceneReliquaryInfo reliquary = 6;</code> - * @return The reliquary. - */ - public emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo getReliquary() { - if (reliquaryBuilder_ == null) { - return reliquary_ == null ? emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.getDefaultInstance() : reliquary_; - } else { - return reliquaryBuilder_.getMessage(); - } - } - /** - * <code>.SceneReliquaryInfo reliquary = 6;</code> - */ - public Builder setReliquary(emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo value) { - if (reliquaryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reliquary_ = value; - onChanged(); - } else { - reliquaryBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.SceneReliquaryInfo reliquary = 6;</code> - */ - public Builder setReliquary( - emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.Builder builderForValue) { - if (reliquaryBuilder_ == null) { - reliquary_ = builderForValue.build(); - onChanged(); - } else { - reliquaryBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.SceneReliquaryInfo reliquary = 6;</code> - */ - public Builder mergeReliquary(emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo value) { - if (reliquaryBuilder_ == null) { - if (reliquary_ != null) { - reliquary_ = - emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.newBuilder(reliquary_).mergeFrom(value).buildPartial(); - } else { - reliquary_ = value; - } - onChanged(); - } else { - reliquaryBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.SceneReliquaryInfo reliquary = 6;</code> - */ - public Builder clearReliquary() { - if (reliquaryBuilder_ == null) { - reliquary_ = null; - onChanged(); - } else { - reliquary_ = null; - reliquaryBuilder_ = null; - } - - return this; - } - /** - * <code>.SceneReliquaryInfo reliquary = 6;</code> - */ - public emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.Builder getReliquaryBuilder() { - - onChanged(); - return getReliquaryFieldBuilder().getBuilder(); - } - /** - * <code>.SceneReliquaryInfo reliquary = 6;</code> - */ - public emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfoOrBuilder getReliquaryOrBuilder() { - if (reliquaryBuilder_ != null) { - return reliquaryBuilder_.getMessageOrBuilder(); - } else { - return reliquary_ == null ? - emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.getDefaultInstance() : reliquary_; - } - } - /** - * <code>.SceneReliquaryInfo reliquary = 6;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo, emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.Builder, emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfoOrBuilder> - getReliquaryFieldBuilder() { - if (reliquaryBuilder_ == null) { - reliquaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo, emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.Builder, emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfoOrBuilder>( - getReliquary(), - getParentForChildren(), - isClean()); - reliquary_ = null; - } - return reliquaryBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarEquipChangeNotify) - } - - // @@protoc_insertion_point(class_scope:AvatarEquipChangeNotify) - private static final emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify(); - } - - public static emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarEquipChangeNotify> - PARSER = new com.google.protobuf.AbstractParser<AvatarEquipChangeNotify>() { - @java.lang.Override - public AvatarEquipChangeNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarEquipChangeNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarEquipChangeNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarEquipChangeNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarEquipChangeNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarEquipChangeNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035AvatarEquipChangeNotify.proto\032\030SceneRe" + - "liquaryInfo.proto\032\025SceneWeaponInfo.proto" + - "\"\255\001\n\027AvatarEquipChangeNotify\022\022\n\navatarGu" + - "id\030\001 \001(\004\022\021\n\tequipType\030\002 \001(\r\022\016\n\006itemId\030\003 " + - "\001(\r\022\021\n\tequipGuid\030\004 \001(\004\022 \n\006weapon\030\005 \001(\0132\020" + - ".SceneWeaponInfo\022&\n\treliquary\030\006 \001(\0132\023.Sc" + - "eneReliquaryInfoB\033\n\031emu.grasscutter.net." + - "protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.getDescriptor(), - }); - internal_static_AvatarEquipChangeNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarEquipChangeNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarEquipChangeNotify_descriptor, - new java.lang.String[] { "AvatarGuid", "EquipType", "ItemId", "EquipGuid", "Weapon", "Reliquary", }); - emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarExpeditionStateOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarExpeditionStateOuterClass.java deleted file mode 100644 index 29f6a3b19..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarExpeditionStateOuterClass.java +++ /dev/null @@ -1,166 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarExpeditionState.proto - -package emu.grasscutter.net.proto; - -public final class AvatarExpeditionStateOuterClass { - private AvatarExpeditionStateOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code AvatarExpeditionState} - */ - public enum AvatarExpeditionState - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>AvatarExpeditionNone = 0;</code> - */ - AvatarExpeditionNone(0), - /** - * <code>AvatarExpeditionDoing = 1;</code> - */ - AvatarExpeditionDoing(1), - /** - * <code>AvatarExpeditionFinishWaitReward = 2;</code> - */ - AvatarExpeditionFinishWaitReward(2), - /** - * <code>AvatarExpeditionCallbackWaitReward = 3;</code> - */ - AvatarExpeditionCallbackWaitReward(3), - UNRECOGNIZED(-1), - ; - - /** - * <code>AvatarExpeditionNone = 0;</code> - */ - public static final int AvatarExpeditionNone_VALUE = 0; - /** - * <code>AvatarExpeditionDoing = 1;</code> - */ - public static final int AvatarExpeditionDoing_VALUE = 1; - /** - * <code>AvatarExpeditionFinishWaitReward = 2;</code> - */ - public static final int AvatarExpeditionFinishWaitReward_VALUE = 2; - /** - * <code>AvatarExpeditionCallbackWaitReward = 3;</code> - */ - public static final int AvatarExpeditionCallbackWaitReward_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static AvatarExpeditionState valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static AvatarExpeditionState forNumber(int value) { - switch (value) { - case 0: return AvatarExpeditionNone; - case 1: return AvatarExpeditionDoing; - case 2: return AvatarExpeditionFinishWaitReward; - case 3: return AvatarExpeditionCallbackWaitReward; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<AvatarExpeditionState> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - AvatarExpeditionState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<AvatarExpeditionState>() { - public AvatarExpeditionState findValueByNumber(int number) { - return AvatarExpeditionState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarExpeditionStateOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final AvatarExpeditionState[] VALUES = values(); - - public static AvatarExpeditionState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private AvatarExpeditionState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:AvatarExpeditionState) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033AvatarExpeditionState.proto*\232\001\n\025Avatar" + - "ExpeditionState\022\030\n\024AvatarExpeditionNone\020" + - "\000\022\031\n\025AvatarExpeditionDoing\020\001\022$\n AvatarEx" + - "peditionFinishWaitReward\020\002\022&\n\"AvatarExpe" + - "ditionCallbackWaitReward\020\003B\033\n\031emu.grassc" + - "utter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarFetterDataNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarFetterDataNotifyOuterClass.java deleted file mode 100644 index 08eb7158d..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarFetterDataNotifyOuterClass.java +++ /dev/null @@ -1,810 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarFetterDataNotify.proto - -package emu.grasscutter.net.proto; - -public final class AvatarFetterDataNotifyOuterClass { - private AvatarFetterDataNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarFetterDataNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarFetterDataNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>map<uint64, .AvatarFetterInfo> fetterInfoMap = 1;</code> - */ - int getFetterInfoMapCount(); - /** - * <code>map<uint64, .AvatarFetterInfo> fetterInfoMap = 1;</code> - */ - boolean containsFetterInfoMap( - long key); - /** - * Use {@link #getFetterInfoMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Long, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo> - getFetterInfoMap(); - /** - * <code>map<uint64, .AvatarFetterInfo> fetterInfoMap = 1;</code> - */ - java.util.Map<java.lang.Long, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo> - getFetterInfoMapMap(); - /** - * <code>map<uint64, .AvatarFetterInfo> fetterInfoMap = 1;</code> - */ - - /* nullable */ -emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo getFetterInfoMapOrDefault( - long key, - /* nullable */ -emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo defaultValue); - /** - * <code>map<uint64, .AvatarFetterInfo> fetterInfoMap = 1;</code> - */ - - emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo getFetterInfoMapOrThrow( - long key); - } - /** - * Protobuf type {@code AvatarFetterDataNotify} - */ - public static final class AvatarFetterDataNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarFetterDataNotify) - AvatarFetterDataNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarFetterDataNotify.newBuilder() to construct. - private AvatarFetterDataNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarFetterDataNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarFetterDataNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarFetterDataNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fetterInfoMap_ = com.google.protobuf.MapField.newMapField( - FetterInfoMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.Long, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo> - fetterInfoMap__ = input.readMessage( - FetterInfoMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - fetterInfoMap_.getMutableMap().put( - fetterInfoMap__.getKey(), fetterInfoMap__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.internal_static_AvatarFetterDataNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetFetterInfoMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.internal_static_AvatarFetterDataNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify.class, emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify.Builder.class); - } - - public static final int FETTERINFOMAP_FIELD_NUMBER = 1; - private static final class FetterInfoMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Long, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Long, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo>newDefaultInstance( - emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.internal_static_AvatarFetterDataNotify_FetterInfoMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT64, - 0L, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.Long, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo> fetterInfoMap_; - private com.google.protobuf.MapField<java.lang.Long, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo> - internalGetFetterInfoMap() { - if (fetterInfoMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FetterInfoMapDefaultEntryHolder.defaultEntry); - } - return fetterInfoMap_; - } - - public int getFetterInfoMapCount() { - return internalGetFetterInfoMap().getMap().size(); - } - /** - * <code>map<uint64, .AvatarFetterInfo> fetterInfoMap = 1;</code> - */ - - @java.lang.Override - public boolean containsFetterInfoMap( - long key) { - - return internalGetFetterInfoMap().getMap().containsKey(key); - } - /** - * Use {@link #getFetterInfoMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Long, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo> getFetterInfoMap() { - return getFetterInfoMapMap(); - } - /** - * <code>map<uint64, .AvatarFetterInfo> fetterInfoMap = 1;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Long, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo> getFetterInfoMapMap() { - return internalGetFetterInfoMap().getMap(); - } - /** - * <code>map<uint64, .AvatarFetterInfo> fetterInfoMap = 1;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo getFetterInfoMapOrDefault( - long key, - emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo defaultValue) { - - java.util.Map<java.lang.Long, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo> map = - internalGetFetterInfoMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint64, .AvatarFetterInfo> fetterInfoMap = 1;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo getFetterInfoMapOrThrow( - long key) { - - java.util.Map<java.lang.Long, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo> map = - internalGetFetterInfoMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeLongMapTo( - output, - internalGetFetterInfoMap(), - FetterInfoMapDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry<java.lang.Long, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo> entry - : internalGetFetterInfoMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Long, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo> - fetterInfoMap__ = FetterInfoMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, fetterInfoMap__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify other = (emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify) obj; - - if (!internalGetFetterInfoMap().equals( - other.internalGetFetterInfoMap())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetFetterInfoMap().getMap().isEmpty()) { - hash = (37 * hash) + FETTERINFOMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetFetterInfoMap().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarFetterDataNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarFetterDataNotify) - emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.internal_static_AvatarFetterDataNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetFetterInfoMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableFetterInfoMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.internal_static_AvatarFetterDataNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify.class, emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableFetterInfoMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.internal_static_AvatarFetterDataNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify build() { - emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify buildPartial() { - emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify result = new emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify(this); - int from_bitField0_ = bitField0_; - result.fetterInfoMap_ = internalGetFetterInfoMap(); - result.fetterInfoMap_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify) { - return mergeFrom((emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify other) { - if (other == emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify.getDefaultInstance()) return this; - internalGetMutableFetterInfoMap().mergeFrom( - other.internalGetFetterInfoMap()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.Long, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo> fetterInfoMap_; - private com.google.protobuf.MapField<java.lang.Long, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo> - internalGetFetterInfoMap() { - if (fetterInfoMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FetterInfoMapDefaultEntryHolder.defaultEntry); - } - return fetterInfoMap_; - } - private com.google.protobuf.MapField<java.lang.Long, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo> - internalGetMutableFetterInfoMap() { - onChanged();; - if (fetterInfoMap_ == null) { - fetterInfoMap_ = com.google.protobuf.MapField.newMapField( - FetterInfoMapDefaultEntryHolder.defaultEntry); - } - if (!fetterInfoMap_.isMutable()) { - fetterInfoMap_ = fetterInfoMap_.copy(); - } - return fetterInfoMap_; - } - - public int getFetterInfoMapCount() { - return internalGetFetterInfoMap().getMap().size(); - } - /** - * <code>map<uint64, .AvatarFetterInfo> fetterInfoMap = 1;</code> - */ - - @java.lang.Override - public boolean containsFetterInfoMap( - long key) { - - return internalGetFetterInfoMap().getMap().containsKey(key); - } - /** - * Use {@link #getFetterInfoMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Long, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo> getFetterInfoMap() { - return getFetterInfoMapMap(); - } - /** - * <code>map<uint64, .AvatarFetterInfo> fetterInfoMap = 1;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Long, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo> getFetterInfoMapMap() { - return internalGetFetterInfoMap().getMap(); - } - /** - * <code>map<uint64, .AvatarFetterInfo> fetterInfoMap = 1;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo getFetterInfoMapOrDefault( - long key, - emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo defaultValue) { - - java.util.Map<java.lang.Long, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo> map = - internalGetFetterInfoMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint64, .AvatarFetterInfo> fetterInfoMap = 1;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo getFetterInfoMapOrThrow( - long key) { - - java.util.Map<java.lang.Long, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo> map = - internalGetFetterInfoMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearFetterInfoMap() { - internalGetMutableFetterInfoMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint64, .AvatarFetterInfo> fetterInfoMap = 1;</code> - */ - - public Builder removeFetterInfoMap( - long key) { - - internalGetMutableFetterInfoMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Long, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo> - getMutableFetterInfoMap() { - return internalGetMutableFetterInfoMap().getMutableMap(); - } - /** - * <code>map<uint64, .AvatarFetterInfo> fetterInfoMap = 1;</code> - */ - public Builder putFetterInfoMap( - long key, - emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo value) { - - if (value == null) { - throw new NullPointerException("map value"); -} - - internalGetMutableFetterInfoMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint64, .AvatarFetterInfo> fetterInfoMap = 1;</code> - */ - - public Builder putAllFetterInfoMap( - java.util.Map<java.lang.Long, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo> values) { - internalGetMutableFetterInfoMap().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarFetterDataNotify) - } - - // @@protoc_insertion_point(class_scope:AvatarFetterDataNotify) - private static final emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify(); - } - - public static emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarFetterDataNotify> - PARSER = new com.google.protobuf.AbstractParser<AvatarFetterDataNotify>() { - @java.lang.Override - public AvatarFetterDataNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarFetterDataNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarFetterDataNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarFetterDataNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarFetterDataNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarFetterDataNotify_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarFetterDataNotify_FetterInfoMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarFetterDataNotify_FetterInfoMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034AvatarFetterDataNotify.proto\032\026AvatarFe" + - "tterInfo.proto\"\244\001\n\026AvatarFetterDataNotif" + - "y\022A\n\rfetterInfoMap\030\001 \003(\0132*.AvatarFetterD" + - "ataNotify.FetterInfoMapEntry\032G\n\022FetterIn" + - "foMapEntry\022\013\n\003key\030\001 \001(\004\022 \n\005value\030\002 \001(\0132\021" + - ".AvatarFetterInfo:\0028\001B\033\n\031emu.grasscutter" + - ".net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.getDescriptor(), - }); - internal_static_AvatarFetterDataNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarFetterDataNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarFetterDataNotify_descriptor, - new java.lang.String[] { "FetterInfoMap", }); - internal_static_AvatarFetterDataNotify_FetterInfoMapEntry_descriptor = - internal_static_AvatarFetterDataNotify_descriptor.getNestedTypes().get(0); - internal_static_AvatarFetterDataNotify_FetterInfoMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarFetterDataNotify_FetterInfoMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarFetterInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarFetterInfoOuterClass.java deleted file mode 100644 index e02b54752..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarFetterInfoOuterClass.java +++ /dev/null @@ -1,1567 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarFetterInfo.proto - -package emu.grasscutter.net.proto; - -public final class AvatarFetterInfoOuterClass { - private AvatarFetterInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarFetterInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarFetterInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 expNumber = 1;</code> - * @return The expNumber. - */ - int getExpNumber(); - - /** - * <code>uint32 expLevel = 2;</code> - * @return The expLevel. - */ - int getExpLevel(); - - /** - * <code>repeated uint32 openIdList = 3;</code> - * @return A list containing the openIdList. - */ - java.util.List<java.lang.Integer> getOpenIdListList(); - /** - * <code>repeated uint32 openIdList = 3;</code> - * @return The count of openIdList. - */ - int getOpenIdListCount(); - /** - * <code>repeated uint32 openIdList = 3;</code> - * @param index The index of the element to return. - * @return The openIdList at the given index. - */ - int getOpenIdList(int index); - - /** - * <code>repeated uint32 finishIdList = 4;</code> - * @return A list containing the finishIdList. - */ - java.util.List<java.lang.Integer> getFinishIdListList(); - /** - * <code>repeated uint32 finishIdList = 4;</code> - * @return The count of finishIdList. - */ - int getFinishIdListCount(); - /** - * <code>repeated uint32 finishIdList = 4;</code> - * @param index The index of the element to return. - * @return The finishIdList at the given index. - */ - int getFinishIdList(int index); - - /** - * <code>repeated uint32 rewardedFetterLevelList = 5;</code> - * @return A list containing the rewardedFetterLevelList. - */ - java.util.List<java.lang.Integer> getRewardedFetterLevelListList(); - /** - * <code>repeated uint32 rewardedFetterLevelList = 5;</code> - * @return The count of rewardedFetterLevelList. - */ - int getRewardedFetterLevelListCount(); - /** - * <code>repeated uint32 rewardedFetterLevelList = 5;</code> - * @param index The index of the element to return. - * @return The rewardedFetterLevelList at the given index. - */ - int getRewardedFetterLevelList(int index); - - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - java.util.List<emu.grasscutter.net.proto.FetterDataOuterClass.FetterData> - getFetterListList(); - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - emu.grasscutter.net.proto.FetterDataOuterClass.FetterData getFetterList(int index); - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - int getFetterListCount(); - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.FetterDataOuterClass.FetterDataOrBuilder> - getFetterListOrBuilderList(); - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - emu.grasscutter.net.proto.FetterDataOuterClass.FetterDataOrBuilder getFetterListOrBuilder( - int index); - } - /** - * Protobuf type {@code AvatarFetterInfo} - */ - public static final class AvatarFetterInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarFetterInfo) - AvatarFetterInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarFetterInfo.newBuilder() to construct. - private AvatarFetterInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarFetterInfo() { - openIdList_ = emptyIntList(); - finishIdList_ = emptyIntList(); - rewardedFetterLevelList_ = emptyIntList(); - fetterList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarFetterInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarFetterInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - expNumber_ = input.readUInt32(); - break; - } - case 16: { - - expLevel_ = input.readUInt32(); - break; - } - case 24: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - openIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - openIdList_.addInt(input.readUInt32()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - openIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - openIdList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 32: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - finishIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - finishIdList_.addInt(input.readUInt32()); - break; - } - case 34: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - finishIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - finishIdList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 40: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - rewardedFetterLevelList_ = newIntList(); - mutable_bitField0_ |= 0x00000004; - } - rewardedFetterLevelList_.addInt(input.readUInt32()); - break; - } - case 42: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) { - rewardedFetterLevelList_ = newIntList(); - mutable_bitField0_ |= 0x00000004; - } - while (input.getBytesUntilLimit() > 0) { - rewardedFetterLevelList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - fetterList_ = new java.util.ArrayList<emu.grasscutter.net.proto.FetterDataOuterClass.FetterData>(); - mutable_bitField0_ |= 0x00000008; - } - fetterList_.add( - input.readMessage(emu.grasscutter.net.proto.FetterDataOuterClass.FetterData.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - openIdList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - finishIdList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - rewardedFetterLevelList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - fetterList_ = java.util.Collections.unmodifiableList(fetterList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.internal_static_AvatarFetterInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.internal_static_AvatarFetterInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo.class, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo.Builder.class); - } - - public static final int EXPNUMBER_FIELD_NUMBER = 1; - private int expNumber_; - /** - * <code>uint32 expNumber = 1;</code> - * @return The expNumber. - */ - @java.lang.Override - public int getExpNumber() { - return expNumber_; - } - - public static final int EXPLEVEL_FIELD_NUMBER = 2; - private int expLevel_; - /** - * <code>uint32 expLevel = 2;</code> - * @return The expLevel. - */ - @java.lang.Override - public int getExpLevel() { - return expLevel_; - } - - public static final int OPENIDLIST_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.IntList openIdList_; - /** - * <code>repeated uint32 openIdList = 3;</code> - * @return A list containing the openIdList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getOpenIdListList() { - return openIdList_; - } - /** - * <code>repeated uint32 openIdList = 3;</code> - * @return The count of openIdList. - */ - public int getOpenIdListCount() { - return openIdList_.size(); - } - /** - * <code>repeated uint32 openIdList = 3;</code> - * @param index The index of the element to return. - * @return The openIdList at the given index. - */ - public int getOpenIdList(int index) { - return openIdList_.getInt(index); - } - private int openIdListMemoizedSerializedSize = -1; - - public static final int FINISHIDLIST_FIELD_NUMBER = 4; - private com.google.protobuf.Internal.IntList finishIdList_; - /** - * <code>repeated uint32 finishIdList = 4;</code> - * @return A list containing the finishIdList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getFinishIdListList() { - return finishIdList_; - } - /** - * <code>repeated uint32 finishIdList = 4;</code> - * @return The count of finishIdList. - */ - public int getFinishIdListCount() { - return finishIdList_.size(); - } - /** - * <code>repeated uint32 finishIdList = 4;</code> - * @param index The index of the element to return. - * @return The finishIdList at the given index. - */ - public int getFinishIdList(int index) { - return finishIdList_.getInt(index); - } - private int finishIdListMemoizedSerializedSize = -1; - - public static final int REWARDEDFETTERLEVELLIST_FIELD_NUMBER = 5; - private com.google.protobuf.Internal.IntList rewardedFetterLevelList_; - /** - * <code>repeated uint32 rewardedFetterLevelList = 5;</code> - * @return A list containing the rewardedFetterLevelList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getRewardedFetterLevelListList() { - return rewardedFetterLevelList_; - } - /** - * <code>repeated uint32 rewardedFetterLevelList = 5;</code> - * @return The count of rewardedFetterLevelList. - */ - public int getRewardedFetterLevelListCount() { - return rewardedFetterLevelList_.size(); - } - /** - * <code>repeated uint32 rewardedFetterLevelList = 5;</code> - * @param index The index of the element to return. - * @return The rewardedFetterLevelList at the given index. - */ - public int getRewardedFetterLevelList(int index) { - return rewardedFetterLevelList_.getInt(index); - } - private int rewardedFetterLevelListMemoizedSerializedSize = -1; - - public static final int FETTERLIST_FIELD_NUMBER = 6; - private java.util.List<emu.grasscutter.net.proto.FetterDataOuterClass.FetterData> fetterList_; - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.FetterDataOuterClass.FetterData> getFetterListList() { - return fetterList_; - } - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.FetterDataOuterClass.FetterDataOrBuilder> - getFetterListOrBuilderList() { - return fetterList_; - } - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - @java.lang.Override - public int getFetterListCount() { - return fetterList_.size(); - } - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.FetterDataOuterClass.FetterData getFetterList(int index) { - return fetterList_.get(index); - } - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.FetterDataOuterClass.FetterDataOrBuilder getFetterListOrBuilder( - int index) { - return fetterList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (expNumber_ != 0) { - output.writeUInt32(1, expNumber_); - } - if (expLevel_ != 0) { - output.writeUInt32(2, expLevel_); - } - if (getOpenIdListList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(openIdListMemoizedSerializedSize); - } - for (int i = 0; i < openIdList_.size(); i++) { - output.writeUInt32NoTag(openIdList_.getInt(i)); - } - if (getFinishIdListList().size() > 0) { - output.writeUInt32NoTag(34); - output.writeUInt32NoTag(finishIdListMemoizedSerializedSize); - } - for (int i = 0; i < finishIdList_.size(); i++) { - output.writeUInt32NoTag(finishIdList_.getInt(i)); - } - if (getRewardedFetterLevelListList().size() > 0) { - output.writeUInt32NoTag(42); - output.writeUInt32NoTag(rewardedFetterLevelListMemoizedSerializedSize); - } - for (int i = 0; i < rewardedFetterLevelList_.size(); i++) { - output.writeUInt32NoTag(rewardedFetterLevelList_.getInt(i)); - } - for (int i = 0; i < fetterList_.size(); i++) { - output.writeMessage(6, fetterList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (expNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, expNumber_); - } - if (expLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, expLevel_); - } - { - int dataSize = 0; - for (int i = 0; i < openIdList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(openIdList_.getInt(i)); - } - size += dataSize; - if (!getOpenIdListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - openIdListMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < finishIdList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(finishIdList_.getInt(i)); - } - size += dataSize; - if (!getFinishIdListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - finishIdListMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < rewardedFetterLevelList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(rewardedFetterLevelList_.getInt(i)); - } - size += dataSize; - if (!getRewardedFetterLevelListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - rewardedFetterLevelListMemoizedSerializedSize = dataSize; - } - for (int i = 0; i < fetterList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, fetterList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo other = (emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo) obj; - - if (getExpNumber() - != other.getExpNumber()) return false; - if (getExpLevel() - != other.getExpLevel()) return false; - if (!getOpenIdListList() - .equals(other.getOpenIdListList())) return false; - if (!getFinishIdListList() - .equals(other.getFinishIdListList())) return false; - if (!getRewardedFetterLevelListList() - .equals(other.getRewardedFetterLevelListList())) return false; - if (!getFetterListList() - .equals(other.getFetterListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + EXPNUMBER_FIELD_NUMBER; - hash = (53 * hash) + getExpNumber(); - hash = (37 * hash) + EXPLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getExpLevel(); - if (getOpenIdListCount() > 0) { - hash = (37 * hash) + OPENIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getOpenIdListList().hashCode(); - } - if (getFinishIdListCount() > 0) { - hash = (37 * hash) + FINISHIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getFinishIdListList().hashCode(); - } - if (getRewardedFetterLevelListCount() > 0) { - hash = (37 * hash) + REWARDEDFETTERLEVELLIST_FIELD_NUMBER; - hash = (53 * hash) + getRewardedFetterLevelListList().hashCode(); - } - if (getFetterListCount() > 0) { - hash = (37 * hash) + FETTERLIST_FIELD_NUMBER; - hash = (53 * hash) + getFetterListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarFetterInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarFetterInfo) - emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.internal_static_AvatarFetterInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.internal_static_AvatarFetterInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo.class, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getFetterListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - expNumber_ = 0; - - expLevel_ = 0; - - openIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - finishIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - rewardedFetterLevelList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000004); - if (fetterListBuilder_ == null) { - fetterList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - fetterListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.internal_static_AvatarFetterInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo build() { - emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo buildPartial() { - emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo result = new emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo(this); - int from_bitField0_ = bitField0_; - result.expNumber_ = expNumber_; - result.expLevel_ = expLevel_; - if (((bitField0_ & 0x00000001) != 0)) { - openIdList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.openIdList_ = openIdList_; - if (((bitField0_ & 0x00000002) != 0)) { - finishIdList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.finishIdList_ = finishIdList_; - if (((bitField0_ & 0x00000004) != 0)) { - rewardedFetterLevelList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.rewardedFetterLevelList_ = rewardedFetterLevelList_; - if (fetterListBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - fetterList_ = java.util.Collections.unmodifiableList(fetterList_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.fetterList_ = fetterList_; - } else { - result.fetterList_ = fetterListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo) { - return mergeFrom((emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo other) { - if (other == emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo.getDefaultInstance()) return this; - if (other.getExpNumber() != 0) { - setExpNumber(other.getExpNumber()); - } - if (other.getExpLevel() != 0) { - setExpLevel(other.getExpLevel()); - } - if (!other.openIdList_.isEmpty()) { - if (openIdList_.isEmpty()) { - openIdList_ = other.openIdList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureOpenIdListIsMutable(); - openIdList_.addAll(other.openIdList_); - } - onChanged(); - } - if (!other.finishIdList_.isEmpty()) { - if (finishIdList_.isEmpty()) { - finishIdList_ = other.finishIdList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureFinishIdListIsMutable(); - finishIdList_.addAll(other.finishIdList_); - } - onChanged(); - } - if (!other.rewardedFetterLevelList_.isEmpty()) { - if (rewardedFetterLevelList_.isEmpty()) { - rewardedFetterLevelList_ = other.rewardedFetterLevelList_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureRewardedFetterLevelListIsMutable(); - rewardedFetterLevelList_.addAll(other.rewardedFetterLevelList_); - } - onChanged(); - } - if (fetterListBuilder_ == null) { - if (!other.fetterList_.isEmpty()) { - if (fetterList_.isEmpty()) { - fetterList_ = other.fetterList_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureFetterListIsMutable(); - fetterList_.addAll(other.fetterList_); - } - onChanged(); - } - } else { - if (!other.fetterList_.isEmpty()) { - if (fetterListBuilder_.isEmpty()) { - fetterListBuilder_.dispose(); - fetterListBuilder_ = null; - fetterList_ = other.fetterList_; - bitField0_ = (bitField0_ & ~0x00000008); - fetterListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFetterListFieldBuilder() : null; - } else { - fetterListBuilder_.addAllMessages(other.fetterList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int expNumber_ ; - /** - * <code>uint32 expNumber = 1;</code> - * @return The expNumber. - */ - @java.lang.Override - public int getExpNumber() { - return expNumber_; - } - /** - * <code>uint32 expNumber = 1;</code> - * @param value The expNumber to set. - * @return This builder for chaining. - */ - public Builder setExpNumber(int value) { - - expNumber_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 expNumber = 1;</code> - * @return This builder for chaining. - */ - public Builder clearExpNumber() { - - expNumber_ = 0; - onChanged(); - return this; - } - - private int expLevel_ ; - /** - * <code>uint32 expLevel = 2;</code> - * @return The expLevel. - */ - @java.lang.Override - public int getExpLevel() { - return expLevel_; - } - /** - * <code>uint32 expLevel = 2;</code> - * @param value The expLevel to set. - * @return This builder for chaining. - */ - public Builder setExpLevel(int value) { - - expLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 expLevel = 2;</code> - * @return This builder for chaining. - */ - public Builder clearExpLevel() { - - expLevel_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList openIdList_ = emptyIntList(); - private void ensureOpenIdListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - openIdList_ = mutableCopy(openIdList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 openIdList = 3;</code> - * @return A list containing the openIdList. - */ - public java.util.List<java.lang.Integer> - getOpenIdListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(openIdList_) : openIdList_; - } - /** - * <code>repeated uint32 openIdList = 3;</code> - * @return The count of openIdList. - */ - public int getOpenIdListCount() { - return openIdList_.size(); - } - /** - * <code>repeated uint32 openIdList = 3;</code> - * @param index The index of the element to return. - * @return The openIdList at the given index. - */ - public int getOpenIdList(int index) { - return openIdList_.getInt(index); - } - /** - * <code>repeated uint32 openIdList = 3;</code> - * @param index The index to set the value at. - * @param value The openIdList to set. - * @return This builder for chaining. - */ - public Builder setOpenIdList( - int index, int value) { - ensureOpenIdListIsMutable(); - openIdList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 openIdList = 3;</code> - * @param value The openIdList to add. - * @return This builder for chaining. - */ - public Builder addOpenIdList(int value) { - ensureOpenIdListIsMutable(); - openIdList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 openIdList = 3;</code> - * @param values The openIdList to add. - * @return This builder for chaining. - */ - public Builder addAllOpenIdList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureOpenIdListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, openIdList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 openIdList = 3;</code> - * @return This builder for chaining. - */ - public Builder clearOpenIdList() { - openIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList finishIdList_ = emptyIntList(); - private void ensureFinishIdListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - finishIdList_ = mutableCopy(finishIdList_); - bitField0_ |= 0x00000002; - } - } - /** - * <code>repeated uint32 finishIdList = 4;</code> - * @return A list containing the finishIdList. - */ - public java.util.List<java.lang.Integer> - getFinishIdListList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(finishIdList_) : finishIdList_; - } - /** - * <code>repeated uint32 finishIdList = 4;</code> - * @return The count of finishIdList. - */ - public int getFinishIdListCount() { - return finishIdList_.size(); - } - /** - * <code>repeated uint32 finishIdList = 4;</code> - * @param index The index of the element to return. - * @return The finishIdList at the given index. - */ - public int getFinishIdList(int index) { - return finishIdList_.getInt(index); - } - /** - * <code>repeated uint32 finishIdList = 4;</code> - * @param index The index to set the value at. - * @param value The finishIdList to set. - * @return This builder for chaining. - */ - public Builder setFinishIdList( - int index, int value) { - ensureFinishIdListIsMutable(); - finishIdList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 finishIdList = 4;</code> - * @param value The finishIdList to add. - * @return This builder for chaining. - */ - public Builder addFinishIdList(int value) { - ensureFinishIdListIsMutable(); - finishIdList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 finishIdList = 4;</code> - * @param values The finishIdList to add. - * @return This builder for chaining. - */ - public Builder addAllFinishIdList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureFinishIdListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, finishIdList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 finishIdList = 4;</code> - * @return This builder for chaining. - */ - public Builder clearFinishIdList() { - finishIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList rewardedFetterLevelList_ = emptyIntList(); - private void ensureRewardedFetterLevelListIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - rewardedFetterLevelList_ = mutableCopy(rewardedFetterLevelList_); - bitField0_ |= 0x00000004; - } - } - /** - * <code>repeated uint32 rewardedFetterLevelList = 5;</code> - * @return A list containing the rewardedFetterLevelList. - */ - public java.util.List<java.lang.Integer> - getRewardedFetterLevelListList() { - return ((bitField0_ & 0x00000004) != 0) ? - java.util.Collections.unmodifiableList(rewardedFetterLevelList_) : rewardedFetterLevelList_; - } - /** - * <code>repeated uint32 rewardedFetterLevelList = 5;</code> - * @return The count of rewardedFetterLevelList. - */ - public int getRewardedFetterLevelListCount() { - return rewardedFetterLevelList_.size(); - } - /** - * <code>repeated uint32 rewardedFetterLevelList = 5;</code> - * @param index The index of the element to return. - * @return The rewardedFetterLevelList at the given index. - */ - public int getRewardedFetterLevelList(int index) { - return rewardedFetterLevelList_.getInt(index); - } - /** - * <code>repeated uint32 rewardedFetterLevelList = 5;</code> - * @param index The index to set the value at. - * @param value The rewardedFetterLevelList to set. - * @return This builder for chaining. - */ - public Builder setRewardedFetterLevelList( - int index, int value) { - ensureRewardedFetterLevelListIsMutable(); - rewardedFetterLevelList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 rewardedFetterLevelList = 5;</code> - * @param value The rewardedFetterLevelList to add. - * @return This builder for chaining. - */ - public Builder addRewardedFetterLevelList(int value) { - ensureRewardedFetterLevelListIsMutable(); - rewardedFetterLevelList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 rewardedFetterLevelList = 5;</code> - * @param values The rewardedFetterLevelList to add. - * @return This builder for chaining. - */ - public Builder addAllRewardedFetterLevelList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureRewardedFetterLevelListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rewardedFetterLevelList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 rewardedFetterLevelList = 5;</code> - * @return This builder for chaining. - */ - public Builder clearRewardedFetterLevelList() { - rewardedFetterLevelList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.FetterDataOuterClass.FetterData> fetterList_ = - java.util.Collections.emptyList(); - private void ensureFetterListIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - fetterList_ = new java.util.ArrayList<emu.grasscutter.net.proto.FetterDataOuterClass.FetterData>(fetterList_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.FetterDataOuterClass.FetterData, emu.grasscutter.net.proto.FetterDataOuterClass.FetterData.Builder, emu.grasscutter.net.proto.FetterDataOuterClass.FetterDataOrBuilder> fetterListBuilder_; - - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - public java.util.List<emu.grasscutter.net.proto.FetterDataOuterClass.FetterData> getFetterListList() { - if (fetterListBuilder_ == null) { - return java.util.Collections.unmodifiableList(fetterList_); - } else { - return fetterListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - public int getFetterListCount() { - if (fetterListBuilder_ == null) { - return fetterList_.size(); - } else { - return fetterListBuilder_.getCount(); - } - } - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - public emu.grasscutter.net.proto.FetterDataOuterClass.FetterData getFetterList(int index) { - if (fetterListBuilder_ == null) { - return fetterList_.get(index); - } else { - return fetterListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - public Builder setFetterList( - int index, emu.grasscutter.net.proto.FetterDataOuterClass.FetterData value) { - if (fetterListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFetterListIsMutable(); - fetterList_.set(index, value); - onChanged(); - } else { - fetterListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - public Builder setFetterList( - int index, emu.grasscutter.net.proto.FetterDataOuterClass.FetterData.Builder builderForValue) { - if (fetterListBuilder_ == null) { - ensureFetterListIsMutable(); - fetterList_.set(index, builderForValue.build()); - onChanged(); - } else { - fetterListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - public Builder addFetterList(emu.grasscutter.net.proto.FetterDataOuterClass.FetterData value) { - if (fetterListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFetterListIsMutable(); - fetterList_.add(value); - onChanged(); - } else { - fetterListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - public Builder addFetterList( - int index, emu.grasscutter.net.proto.FetterDataOuterClass.FetterData value) { - if (fetterListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFetterListIsMutable(); - fetterList_.add(index, value); - onChanged(); - } else { - fetterListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - public Builder addFetterList( - emu.grasscutter.net.proto.FetterDataOuterClass.FetterData.Builder builderForValue) { - if (fetterListBuilder_ == null) { - ensureFetterListIsMutable(); - fetterList_.add(builderForValue.build()); - onChanged(); - } else { - fetterListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - public Builder addFetterList( - int index, emu.grasscutter.net.proto.FetterDataOuterClass.FetterData.Builder builderForValue) { - if (fetterListBuilder_ == null) { - ensureFetterListIsMutable(); - fetterList_.add(index, builderForValue.build()); - onChanged(); - } else { - fetterListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - public Builder addAllFetterList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.FetterDataOuterClass.FetterData> values) { - if (fetterListBuilder_ == null) { - ensureFetterListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fetterList_); - onChanged(); - } else { - fetterListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - public Builder clearFetterList() { - if (fetterListBuilder_ == null) { - fetterList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - fetterListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - public Builder removeFetterList(int index) { - if (fetterListBuilder_ == null) { - ensureFetterListIsMutable(); - fetterList_.remove(index); - onChanged(); - } else { - fetterListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - public emu.grasscutter.net.proto.FetterDataOuterClass.FetterData.Builder getFetterListBuilder( - int index) { - return getFetterListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - public emu.grasscutter.net.proto.FetterDataOuterClass.FetterDataOrBuilder getFetterListOrBuilder( - int index) { - if (fetterListBuilder_ == null) { - return fetterList_.get(index); } else { - return fetterListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.FetterDataOuterClass.FetterDataOrBuilder> - getFetterListOrBuilderList() { - if (fetterListBuilder_ != null) { - return fetterListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(fetterList_); - } - } - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - public emu.grasscutter.net.proto.FetterDataOuterClass.FetterData.Builder addFetterListBuilder() { - return getFetterListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.FetterDataOuterClass.FetterData.getDefaultInstance()); - } - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - public emu.grasscutter.net.proto.FetterDataOuterClass.FetterData.Builder addFetterListBuilder( - int index) { - return getFetterListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.FetterDataOuterClass.FetterData.getDefaultInstance()); - } - /** - * <code>repeated .FetterData fetterList = 6;</code> - */ - public java.util.List<emu.grasscutter.net.proto.FetterDataOuterClass.FetterData.Builder> - getFetterListBuilderList() { - return getFetterListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.FetterDataOuterClass.FetterData, emu.grasscutter.net.proto.FetterDataOuterClass.FetterData.Builder, emu.grasscutter.net.proto.FetterDataOuterClass.FetterDataOrBuilder> - getFetterListFieldBuilder() { - if (fetterListBuilder_ == null) { - fetterListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.FetterDataOuterClass.FetterData, emu.grasscutter.net.proto.FetterDataOuterClass.FetterData.Builder, emu.grasscutter.net.proto.FetterDataOuterClass.FetterDataOrBuilder>( - fetterList_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - fetterList_ = null; - } - return fetterListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarFetterInfo) - } - - // @@protoc_insertion_point(class_scope:AvatarFetterInfo) - private static final emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo(); - } - - public static emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarFetterInfo> - PARSER = new com.google.protobuf.AbstractParser<AvatarFetterInfo>() { - @java.lang.Override - public AvatarFetterInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarFetterInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarFetterInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarFetterInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarFetterInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarFetterInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026AvatarFetterInfo.proto\032\020FetterData.pro" + - "to\"\243\001\n\020AvatarFetterInfo\022\021\n\texpNumber\030\001 \001" + - "(\r\022\020\n\010expLevel\030\002 \001(\r\022\022\n\nopenIdList\030\003 \003(\r" + - "\022\024\n\014finishIdList\030\004 \003(\r\022\037\n\027rewardedFetter" + - "LevelList\030\005 \003(\r\022\037\n\nfetterList\030\006 \003(\0132\013.Fe" + - "tterDataB\033\n\031emu.grasscutter.net.protob\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.FetterDataOuterClass.getDescriptor(), - }); - internal_static_AvatarFetterInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarFetterInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarFetterInfo_descriptor, - new java.lang.String[] { "ExpNumber", "ExpLevel", "OpenIdList", "FinishIdList", "RewardedFetterLevelList", "FetterList", }); - emu.grasscutter.net.proto.FetterDataOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarFetterLevelRewardReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarFetterLevelRewardReqOuterClass.java deleted file mode 100644 index be66bde26..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarFetterLevelRewardReqOuterClass.java +++ /dev/null @@ -1,610 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarFetterLevelRewardReq.proto - -package emu.grasscutter.net.proto; - -public final class AvatarFetterLevelRewardReqOuterClass { - private AvatarFetterLevelRewardReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarFetterLevelRewardReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarFetterLevelRewardReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>uint32 fetterLevel = 2;</code> - * @return The fetterLevel. - */ - int getFetterLevel(); - } - /** - * Protobuf type {@code AvatarFetterLevelRewardReq} - */ - public static final class AvatarFetterLevelRewardReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarFetterLevelRewardReq) - AvatarFetterLevelRewardReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarFetterLevelRewardReq.newBuilder() to construct. - private AvatarFetterLevelRewardReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarFetterLevelRewardReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarFetterLevelRewardReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarFetterLevelRewardReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 16: { - - fetterLevel_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.internal_static_AvatarFetterLevelRewardReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.internal_static_AvatarFetterLevelRewardReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq.class, emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq.Builder.class); - } - - public static final int AVATARGUID_FIELD_NUMBER = 1; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int FETTERLEVEL_FIELD_NUMBER = 2; - private int fetterLevel_; - /** - * <code>uint32 fetterLevel = 2;</code> - * @return The fetterLevel. - */ - @java.lang.Override - public int getFetterLevel() { - return fetterLevel_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (avatarGuid_ != 0L) { - output.writeUInt64(1, avatarGuid_); - } - if (fetterLevel_ != 0) { - output.writeUInt32(2, fetterLevel_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, avatarGuid_); - } - if (fetterLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, fetterLevel_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq other = (emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq) obj; - - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (getFetterLevel() - != other.getFetterLevel()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - hash = (37 * hash) + FETTERLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getFetterLevel(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarFetterLevelRewardReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarFetterLevelRewardReq) - emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.internal_static_AvatarFetterLevelRewardReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.internal_static_AvatarFetterLevelRewardReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq.class, emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - avatarGuid_ = 0L; - - fetterLevel_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.internal_static_AvatarFetterLevelRewardReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq build() { - emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq buildPartial() { - emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq result = new emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq(this); - result.avatarGuid_ = avatarGuid_; - result.fetterLevel_ = fetterLevel_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq) { - return mergeFrom((emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq other) { - if (other == emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq.getDefaultInstance()) return this; - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - if (other.getFetterLevel() != 0) { - setFetterLevel(other.getFetterLevel()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private int fetterLevel_ ; - /** - * <code>uint32 fetterLevel = 2;</code> - * @return The fetterLevel. - */ - @java.lang.Override - public int getFetterLevel() { - return fetterLevel_; - } - /** - * <code>uint32 fetterLevel = 2;</code> - * @param value The fetterLevel to set. - * @return This builder for chaining. - */ - public Builder setFetterLevel(int value) { - - fetterLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 fetterLevel = 2;</code> - * @return This builder for chaining. - */ - public Builder clearFetterLevel() { - - fetterLevel_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarFetterLevelRewardReq) - } - - // @@protoc_insertion_point(class_scope:AvatarFetterLevelRewardReq) - private static final emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq(); - } - - public static emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarFetterLevelRewardReq> - PARSER = new com.google.protobuf.AbstractParser<AvatarFetterLevelRewardReq>() { - @java.lang.Override - public AvatarFetterLevelRewardReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarFetterLevelRewardReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarFetterLevelRewardReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarFetterLevelRewardReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFetterLevelRewardReqOuterClass.AvatarFetterLevelRewardReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarFetterLevelRewardReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarFetterLevelRewardReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n AvatarFetterLevelRewardReq.proto\"E\n\032Av" + - "atarFetterLevelRewardReq\022\022\n\navatarGuid\030\001" + - " \001(\004\022\023\n\013fetterLevel\030\002 \001(\rB\033\n\031emu.grasscu" + - "tter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AvatarFetterLevelRewardReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarFetterLevelRewardReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarFetterLevelRewardReq_descriptor, - new java.lang.String[] { "AvatarGuid", "FetterLevel", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarFetterLevelRewardRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarFetterLevelRewardRspOuterClass.java deleted file mode 100644 index 6801ce7ec..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarFetterLevelRewardRspOuterClass.java +++ /dev/null @@ -1,751 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarFetterLevelRewardRsp.proto - -package emu.grasscutter.net.proto; - -public final class AvatarFetterLevelRewardRspOuterClass { - private AvatarFetterLevelRewardRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarFetterLevelRewardRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarFetterLevelRewardRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>uint32 fetterLevel = 3;</code> - * @return The fetterLevel. - */ - int getFetterLevel(); - - /** - * <code>uint32 rewardId = 4;</code> - * @return The rewardId. - */ - int getRewardId(); - } - /** - * Protobuf type {@code AvatarFetterLevelRewardRsp} - */ - public static final class AvatarFetterLevelRewardRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarFetterLevelRewardRsp) - AvatarFetterLevelRewardRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarFetterLevelRewardRsp.newBuilder() to construct. - private AvatarFetterLevelRewardRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarFetterLevelRewardRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarFetterLevelRewardRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarFetterLevelRewardRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 24: { - - fetterLevel_ = input.readUInt32(); - break; - } - case 32: { - - rewardId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.internal_static_AvatarFetterLevelRewardRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.internal_static_AvatarFetterLevelRewardRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp.class, emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int AVATARGUID_FIELD_NUMBER = 2; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int FETTERLEVEL_FIELD_NUMBER = 3; - private int fetterLevel_; - /** - * <code>uint32 fetterLevel = 3;</code> - * @return The fetterLevel. - */ - @java.lang.Override - public int getFetterLevel() { - return fetterLevel_; - } - - public static final int REWARDID_FIELD_NUMBER = 4; - private int rewardId_; - /** - * <code>uint32 rewardId = 4;</code> - * @return The rewardId. - */ - @java.lang.Override - public int getRewardId() { - return rewardId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (avatarGuid_ != 0L) { - output.writeUInt64(2, avatarGuid_); - } - if (fetterLevel_ != 0) { - output.writeUInt32(3, fetterLevel_); - } - if (rewardId_ != 0) { - output.writeUInt32(4, rewardId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, avatarGuid_); - } - if (fetterLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, fetterLevel_); - } - if (rewardId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, rewardId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp other = (emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (getFetterLevel() - != other.getFetterLevel()) return false; - if (getRewardId() - != other.getRewardId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - hash = (37 * hash) + FETTERLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getFetterLevel(); - hash = (37 * hash) + REWARDID_FIELD_NUMBER; - hash = (53 * hash) + getRewardId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarFetterLevelRewardRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarFetterLevelRewardRsp) - emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.internal_static_AvatarFetterLevelRewardRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.internal_static_AvatarFetterLevelRewardRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp.class, emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - avatarGuid_ = 0L; - - fetterLevel_ = 0; - - rewardId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.internal_static_AvatarFetterLevelRewardRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp build() { - emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp buildPartial() { - emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp result = new emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp(this); - result.retcode_ = retcode_; - result.avatarGuid_ = avatarGuid_; - result.fetterLevel_ = fetterLevel_; - result.rewardId_ = rewardId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp) { - return mergeFrom((emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp other) { - if (other == emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - if (other.getFetterLevel() != 0) { - setFetterLevel(other.getFetterLevel()); - } - if (other.getRewardId() != 0) { - setRewardId(other.getRewardId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 2;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private int fetterLevel_ ; - /** - * <code>uint32 fetterLevel = 3;</code> - * @return The fetterLevel. - */ - @java.lang.Override - public int getFetterLevel() { - return fetterLevel_; - } - /** - * <code>uint32 fetterLevel = 3;</code> - * @param value The fetterLevel to set. - * @return This builder for chaining. - */ - public Builder setFetterLevel(int value) { - - fetterLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 fetterLevel = 3;</code> - * @return This builder for chaining. - */ - public Builder clearFetterLevel() { - - fetterLevel_ = 0; - onChanged(); - return this; - } - - private int rewardId_ ; - /** - * <code>uint32 rewardId = 4;</code> - * @return The rewardId. - */ - @java.lang.Override - public int getRewardId() { - return rewardId_; - } - /** - * <code>uint32 rewardId = 4;</code> - * @param value The rewardId to set. - * @return This builder for chaining. - */ - public Builder setRewardId(int value) { - - rewardId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 rewardId = 4;</code> - * @return This builder for chaining. - */ - public Builder clearRewardId() { - - rewardId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarFetterLevelRewardRsp) - } - - // @@protoc_insertion_point(class_scope:AvatarFetterLevelRewardRsp) - private static final emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp(); - } - - public static emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarFetterLevelRewardRsp> - PARSER = new com.google.protobuf.AbstractParser<AvatarFetterLevelRewardRsp>() { - @java.lang.Override - public AvatarFetterLevelRewardRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarFetterLevelRewardRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarFetterLevelRewardRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarFetterLevelRewardRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarFetterLevelRewardRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarFetterLevelRewardRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n AvatarFetterLevelRewardRsp.proto\"h\n\032Av" + - "atarFetterLevelRewardRsp\022\017\n\007retcode\030\001 \001(" + - "\005\022\022\n\navatarGuid\030\002 \001(\004\022\023\n\013fetterLevel\030\003 \001" + - "(\r\022\020\n\010rewardId\030\004 \001(\rB\033\n\031emu.grasscutter." + - "net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AvatarFetterLevelRewardRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarFetterLevelRewardRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarFetterLevelRewardRsp_descriptor, - new java.lang.String[] { "Retcode", "AvatarGuid", "FetterLevel", "RewardId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarFightPropNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarFightPropNotifyOuterClass.java deleted file mode 100644 index a6bb0857c..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarFightPropNotifyOuterClass.java +++ /dev/null @@ -1,871 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarFightPropNotify.proto - -package emu.grasscutter.net.proto; - -public final class AvatarFightPropNotifyOuterClass { - private AvatarFightPropNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarFightPropNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarFightPropNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - int getFightPropMapCount(); - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - boolean containsFightPropMap( - int key); - /** - * Use {@link #getFightPropMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Float> - getFightPropMap(); - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Float> - getFightPropMapMap(); - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - - float getFightPropMapOrDefault( - int key, - float defaultValue); - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - - float getFightPropMapOrThrow( - int key); - } - /** - * Protobuf type {@code AvatarFightPropNotify} - */ - public static final class AvatarFightPropNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarFightPropNotify) - AvatarFightPropNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarFightPropNotify.newBuilder() to construct. - private AvatarFightPropNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarFightPropNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarFightPropNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarFightPropNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fightPropMap_ = com.google.protobuf.MapField.newMapField( - FightPropMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Float> - fightPropMap__ = input.readMessage( - FightPropMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - fightPropMap_.getMutableMap().put( - fightPropMap__.getKey(), fightPropMap__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.internal_static_AvatarFightPropNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetFightPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.internal_static_AvatarFightPropNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify.class, emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify.Builder.class); - } - - public static final int AVATARGUID_FIELD_NUMBER = 1; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int FIGHTPROPMAP_FIELD_NUMBER = 2; - private static final class FightPropMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Float> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Float>newDefaultInstance( - emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.internal_static_AvatarFightPropNotify_FightPropMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.FLOAT, - 0F); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Float> fightPropMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Float> - internalGetFightPropMap() { - if (fightPropMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FightPropMapDefaultEntryHolder.defaultEntry); - } - return fightPropMap_; - } - - public int getFightPropMapCount() { - return internalGetFightPropMap().getMap().size(); - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - - @java.lang.Override - public boolean containsFightPropMap( - int key) { - - return internalGetFightPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getFightPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Float> getFightPropMap() { - return getFightPropMapMap(); - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Float> getFightPropMapMap() { - return internalGetFightPropMap().getMap(); - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - @java.lang.Override - - public float getFightPropMapOrDefault( - int key, - float defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Float> map = - internalGetFightPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - @java.lang.Override - - public float getFightPropMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Float> map = - internalGetFightPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (avatarGuid_ != 0L) { - output.writeUInt64(1, avatarGuid_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetFightPropMap(), - FightPropMapDefaultEntryHolder.defaultEntry, - 2); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, avatarGuid_); - } - for (java.util.Map.Entry<java.lang.Integer, java.lang.Float> entry - : internalGetFightPropMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Float> - fightPropMap__ = FightPropMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, fightPropMap__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify other = (emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify) obj; - - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (!internalGetFightPropMap().equals( - other.internalGetFightPropMap())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - if (!internalGetFightPropMap().getMap().isEmpty()) { - hash = (37 * hash) + FIGHTPROPMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetFightPropMap().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarFightPropNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarFightPropNotify) - emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.internal_static_AvatarFightPropNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetFightPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutableFightPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.internal_static_AvatarFightPropNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify.class, emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - avatarGuid_ = 0L; - - internalGetMutableFightPropMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.internal_static_AvatarFightPropNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify build() { - emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify buildPartial() { - emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify result = new emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify(this); - int from_bitField0_ = bitField0_; - result.avatarGuid_ = avatarGuid_; - result.fightPropMap_ = internalGetFightPropMap(); - result.fightPropMap_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify) { - return mergeFrom((emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify other) { - if (other == emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify.getDefaultInstance()) return this; - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - internalGetMutableFightPropMap().mergeFrom( - other.internalGetFightPropMap()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Float> fightPropMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Float> - internalGetFightPropMap() { - if (fightPropMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FightPropMapDefaultEntryHolder.defaultEntry); - } - return fightPropMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Float> - internalGetMutableFightPropMap() { - onChanged();; - if (fightPropMap_ == null) { - fightPropMap_ = com.google.protobuf.MapField.newMapField( - FightPropMapDefaultEntryHolder.defaultEntry); - } - if (!fightPropMap_.isMutable()) { - fightPropMap_ = fightPropMap_.copy(); - } - return fightPropMap_; - } - - public int getFightPropMapCount() { - return internalGetFightPropMap().getMap().size(); - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - - @java.lang.Override - public boolean containsFightPropMap( - int key) { - - return internalGetFightPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getFightPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Float> getFightPropMap() { - return getFightPropMapMap(); - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Float> getFightPropMapMap() { - return internalGetFightPropMap().getMap(); - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - @java.lang.Override - - public float getFightPropMapOrDefault( - int key, - float defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Float> map = - internalGetFightPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - @java.lang.Override - - public float getFightPropMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Float> map = - internalGetFightPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearFightPropMap() { - internalGetMutableFightPropMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - - public Builder removeFightPropMap( - int key) { - - internalGetMutableFightPropMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Float> - getMutableFightPropMap() { - return internalGetMutableFightPropMap().getMutableMap(); - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - public Builder putFightPropMap( - int key, - float value) { - - - internalGetMutableFightPropMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - - public Builder putAllFightPropMap( - java.util.Map<java.lang.Integer, java.lang.Float> values) { - internalGetMutableFightPropMap().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarFightPropNotify) - } - - // @@protoc_insertion_point(class_scope:AvatarFightPropNotify) - private static final emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify(); - } - - public static emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarFightPropNotify> - PARSER = new com.google.protobuf.AbstractParser<AvatarFightPropNotify>() { - @java.lang.Override - public AvatarFightPropNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarFightPropNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarFightPropNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarFightPropNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarFightPropNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarFightPropNotify_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarFightPropNotify_FightPropMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarFightPropNotify_FightPropMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033AvatarFightPropNotify.proto\"\240\001\n\025Avatar" + - "FightPropNotify\022\022\n\navatarGuid\030\001 \001(\004\022>\n\014f" + - "ightPropMap\030\002 \003(\0132(.AvatarFightPropNotif" + - "y.FightPropMapEntry\0323\n\021FightPropMapEntry" + - "\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\002:\0028\001B\033\n\031emu." + - "grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AvatarFightPropNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarFightPropNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarFightPropNotify_descriptor, - new java.lang.String[] { "AvatarGuid", "FightPropMap", }); - internal_static_AvatarFightPropNotify_FightPropMapEntry_descriptor = - internal_static_AvatarFightPropNotify_descriptor.getNestedTypes().get(0); - internal_static_AvatarFightPropNotify_FightPropMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarFightPropNotify_FightPropMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarFightPropUpdateNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarFightPropUpdateNotifyOuterClass.java deleted file mode 100644 index 88e79d2d8..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarFightPropUpdateNotifyOuterClass.java +++ /dev/null @@ -1,872 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarFightPropUpdateNotify.proto - -package emu.grasscutter.net.proto; - -public final class AvatarFightPropUpdateNotifyOuterClass { - private AvatarFightPropUpdateNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarFightPropUpdateNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarFightPropUpdateNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - int getFightPropMapCount(); - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - boolean containsFightPropMap( - int key); - /** - * Use {@link #getFightPropMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Float> - getFightPropMap(); - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Float> - getFightPropMapMap(); - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - - float getFightPropMapOrDefault( - int key, - float defaultValue); - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - - float getFightPropMapOrThrow( - int key); - } - /** - * Protobuf type {@code AvatarFightPropUpdateNotify} - */ - public static final class AvatarFightPropUpdateNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarFightPropUpdateNotify) - AvatarFightPropUpdateNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarFightPropUpdateNotify.newBuilder() to construct. - private AvatarFightPropUpdateNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarFightPropUpdateNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarFightPropUpdateNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarFightPropUpdateNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fightPropMap_ = com.google.protobuf.MapField.newMapField( - FightPropMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Float> - fightPropMap__ = input.readMessage( - FightPropMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - fightPropMap_.getMutableMap().put( - fightPropMap__.getKey(), fightPropMap__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.internal_static_AvatarFightPropUpdateNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetFightPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.internal_static_AvatarFightPropUpdateNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify.class, emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify.Builder.class); - } - - public static final int AVATARGUID_FIELD_NUMBER = 1; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int FIGHTPROPMAP_FIELD_NUMBER = 2; - private static final class FightPropMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Float> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Float>newDefaultInstance( - emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.internal_static_AvatarFightPropUpdateNotify_FightPropMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.FLOAT, - 0F); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Float> fightPropMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Float> - internalGetFightPropMap() { - if (fightPropMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FightPropMapDefaultEntryHolder.defaultEntry); - } - return fightPropMap_; - } - - public int getFightPropMapCount() { - return internalGetFightPropMap().getMap().size(); - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - - @java.lang.Override - public boolean containsFightPropMap( - int key) { - - return internalGetFightPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getFightPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Float> getFightPropMap() { - return getFightPropMapMap(); - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Float> getFightPropMapMap() { - return internalGetFightPropMap().getMap(); - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - @java.lang.Override - - public float getFightPropMapOrDefault( - int key, - float defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Float> map = - internalGetFightPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - @java.lang.Override - - public float getFightPropMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Float> map = - internalGetFightPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (avatarGuid_ != 0L) { - output.writeUInt64(1, avatarGuid_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetFightPropMap(), - FightPropMapDefaultEntryHolder.defaultEntry, - 2); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, avatarGuid_); - } - for (java.util.Map.Entry<java.lang.Integer, java.lang.Float> entry - : internalGetFightPropMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Float> - fightPropMap__ = FightPropMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, fightPropMap__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify other = (emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify) obj; - - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (!internalGetFightPropMap().equals( - other.internalGetFightPropMap())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - if (!internalGetFightPropMap().getMap().isEmpty()) { - hash = (37 * hash) + FIGHTPROPMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetFightPropMap().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarFightPropUpdateNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarFightPropUpdateNotify) - emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.internal_static_AvatarFightPropUpdateNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetFightPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutableFightPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.internal_static_AvatarFightPropUpdateNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify.class, emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - avatarGuid_ = 0L; - - internalGetMutableFightPropMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.internal_static_AvatarFightPropUpdateNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify build() { - emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify buildPartial() { - emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify result = new emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify(this); - int from_bitField0_ = bitField0_; - result.avatarGuid_ = avatarGuid_; - result.fightPropMap_ = internalGetFightPropMap(); - result.fightPropMap_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify) { - return mergeFrom((emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify other) { - if (other == emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify.getDefaultInstance()) return this; - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - internalGetMutableFightPropMap().mergeFrom( - other.internalGetFightPropMap()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Float> fightPropMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Float> - internalGetFightPropMap() { - if (fightPropMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FightPropMapDefaultEntryHolder.defaultEntry); - } - return fightPropMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Float> - internalGetMutableFightPropMap() { - onChanged();; - if (fightPropMap_ == null) { - fightPropMap_ = com.google.protobuf.MapField.newMapField( - FightPropMapDefaultEntryHolder.defaultEntry); - } - if (!fightPropMap_.isMutable()) { - fightPropMap_ = fightPropMap_.copy(); - } - return fightPropMap_; - } - - public int getFightPropMapCount() { - return internalGetFightPropMap().getMap().size(); - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - - @java.lang.Override - public boolean containsFightPropMap( - int key) { - - return internalGetFightPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getFightPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Float> getFightPropMap() { - return getFightPropMapMap(); - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Float> getFightPropMapMap() { - return internalGetFightPropMap().getMap(); - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - @java.lang.Override - - public float getFightPropMapOrDefault( - int key, - float defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Float> map = - internalGetFightPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - @java.lang.Override - - public float getFightPropMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Float> map = - internalGetFightPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearFightPropMap() { - internalGetMutableFightPropMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - - public Builder removeFightPropMap( - int key) { - - internalGetMutableFightPropMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Float> - getMutableFightPropMap() { - return internalGetMutableFightPropMap().getMutableMap(); - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - public Builder putFightPropMap( - int key, - float value) { - - - internalGetMutableFightPropMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - - public Builder putAllFightPropMap( - java.util.Map<java.lang.Integer, java.lang.Float> values) { - internalGetMutableFightPropMap().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarFightPropUpdateNotify) - } - - // @@protoc_insertion_point(class_scope:AvatarFightPropUpdateNotify) - private static final emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify(); - } - - public static emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarFightPropUpdateNotify> - PARSER = new com.google.protobuf.AbstractParser<AvatarFightPropUpdateNotify>() { - @java.lang.Override - public AvatarFightPropUpdateNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarFightPropUpdateNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarFightPropUpdateNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarFightPropUpdateNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarFightPropUpdateNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarFightPropUpdateNotify_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarFightPropUpdateNotify_FightPropMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarFightPropUpdateNotify_FightPropMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n!AvatarFightPropUpdateNotify.proto\"\254\001\n\033" + - "AvatarFightPropUpdateNotify\022\022\n\navatarGui" + - "d\030\001 \001(\004\022D\n\014fightPropMap\030\002 \003(\0132..AvatarFi" + - "ghtPropUpdateNotify.FightPropMapEntry\0323\n" + - "\021FightPropMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value" + - "\030\002 \001(\002:\0028\001B\033\n\031emu.grasscutter.net.protob" + - "\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AvatarFightPropUpdateNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarFightPropUpdateNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarFightPropUpdateNotify_descriptor, - new java.lang.String[] { "AvatarGuid", "FightPropMap", }); - internal_static_AvatarFightPropUpdateNotify_FightPropMapEntry_descriptor = - internal_static_AvatarFightPropUpdateNotify_descriptor.getNestedTypes().get(0); - internal_static_AvatarFightPropUpdateNotify_FightPropMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarFightPropUpdateNotify_FightPropMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarFlycloakChangeNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarFlycloakChangeNotifyOuterClass.java deleted file mode 100644 index 9dc1c46a2..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarFlycloakChangeNotifyOuterClass.java +++ /dev/null @@ -1,608 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarFlycloakChangeNotify.proto - -package emu.grasscutter.net.proto; - -public final class AvatarFlycloakChangeNotifyOuterClass { - private AvatarFlycloakChangeNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarFlycloakChangeNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarFlycloakChangeNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>uint32 flycloakId = 2;</code> - * @return The flycloakId. - */ - int getFlycloakId(); - } - /** - * Protobuf type {@code AvatarFlycloakChangeNotify} - */ - public static final class AvatarFlycloakChangeNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarFlycloakChangeNotify) - AvatarFlycloakChangeNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarFlycloakChangeNotify.newBuilder() to construct. - private AvatarFlycloakChangeNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarFlycloakChangeNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarFlycloakChangeNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarFlycloakChangeNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 16: { - - flycloakId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.internal_static_AvatarFlycloakChangeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.internal_static_AvatarFlycloakChangeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify.class, emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify.Builder.class); - } - - public static final int AVATARGUID_FIELD_NUMBER = 1; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int FLYCLOAKID_FIELD_NUMBER = 2; - private int flycloakId_; - /** - * <code>uint32 flycloakId = 2;</code> - * @return The flycloakId. - */ - @java.lang.Override - public int getFlycloakId() { - return flycloakId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (avatarGuid_ != 0L) { - output.writeUInt64(1, avatarGuid_); - } - if (flycloakId_ != 0) { - output.writeUInt32(2, flycloakId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, avatarGuid_); - } - if (flycloakId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, flycloakId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify other = (emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify) obj; - - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (getFlycloakId() - != other.getFlycloakId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - hash = (37 * hash) + FLYCLOAKID_FIELD_NUMBER; - hash = (53 * hash) + getFlycloakId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarFlycloakChangeNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarFlycloakChangeNotify) - emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.internal_static_AvatarFlycloakChangeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.internal_static_AvatarFlycloakChangeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify.class, emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - avatarGuid_ = 0L; - - flycloakId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.internal_static_AvatarFlycloakChangeNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify build() { - emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify buildPartial() { - emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify result = new emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify(this); - result.avatarGuid_ = avatarGuid_; - result.flycloakId_ = flycloakId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify) { - return mergeFrom((emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify other) { - if (other == emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify.getDefaultInstance()) return this; - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - if (other.getFlycloakId() != 0) { - setFlycloakId(other.getFlycloakId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private int flycloakId_ ; - /** - * <code>uint32 flycloakId = 2;</code> - * @return The flycloakId. - */ - @java.lang.Override - public int getFlycloakId() { - return flycloakId_; - } - /** - * <code>uint32 flycloakId = 2;</code> - * @param value The flycloakId to set. - * @return This builder for chaining. - */ - public Builder setFlycloakId(int value) { - - flycloakId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 flycloakId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearFlycloakId() { - - flycloakId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarFlycloakChangeNotify) - } - - // @@protoc_insertion_point(class_scope:AvatarFlycloakChangeNotify) - private static final emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify(); - } - - public static emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarFlycloakChangeNotify> - PARSER = new com.google.protobuf.AbstractParser<AvatarFlycloakChangeNotify>() { - @java.lang.Override - public AvatarFlycloakChangeNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarFlycloakChangeNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarFlycloakChangeNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarFlycloakChangeNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarFlycloakChangeNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarFlycloakChangeNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n AvatarFlycloakChangeNotify.proto\"D\n\032Av" + - "atarFlycloakChangeNotify\022\022\n\navatarGuid\030\001" + - " \001(\004\022\022\n\nflycloakId\030\002 \001(\rB\033\n\031emu.grasscut" + - "ter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AvatarFlycloakChangeNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarFlycloakChangeNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarFlycloakChangeNotify_descriptor, - new java.lang.String[] { "AvatarGuid", "FlycloakId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarGainCostumeNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarGainCostumeNotifyOuterClass.java deleted file mode 100644 index ea8e4496f..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarGainCostumeNotifyOuterClass.java +++ /dev/null @@ -1,536 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarGainCostumeNotify.proto - -package emu.grasscutter.net.proto; - -public final class AvatarGainCostumeNotifyOuterClass { - private AvatarGainCostumeNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarGainCostumeNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarGainCostumeNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 costumeId = 1;</code> - * @return The costumeId. - */ - int getCostumeId(); - } - /** - * Protobuf type {@code AvatarGainCostumeNotify} - */ - public static final class AvatarGainCostumeNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarGainCostumeNotify) - AvatarGainCostumeNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarGainCostumeNotify.newBuilder() to construct. - private AvatarGainCostumeNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarGainCostumeNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarGainCostumeNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarGainCostumeNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - costumeId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.internal_static_AvatarGainCostumeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.internal_static_AvatarGainCostumeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify.class, emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify.Builder.class); - } - - public static final int COSTUMEID_FIELD_NUMBER = 1; - private int costumeId_; - /** - * <code>uint32 costumeId = 1;</code> - * @return The costumeId. - */ - @java.lang.Override - public int getCostumeId() { - return costumeId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (costumeId_ != 0) { - output.writeUInt32(1, costumeId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (costumeId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, costumeId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify other = (emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify) obj; - - if (getCostumeId() - != other.getCostumeId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COSTUMEID_FIELD_NUMBER; - hash = (53 * hash) + getCostumeId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarGainCostumeNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarGainCostumeNotify) - emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.internal_static_AvatarGainCostumeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.internal_static_AvatarGainCostumeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify.class, emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - costumeId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.internal_static_AvatarGainCostumeNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify build() { - emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify buildPartial() { - emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify result = new emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify(this); - result.costumeId_ = costumeId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify) { - return mergeFrom((emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify other) { - if (other == emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify.getDefaultInstance()) return this; - if (other.getCostumeId() != 0) { - setCostumeId(other.getCostumeId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int costumeId_ ; - /** - * <code>uint32 costumeId = 1;</code> - * @return The costumeId. - */ - @java.lang.Override - public int getCostumeId() { - return costumeId_; - } - /** - * <code>uint32 costumeId = 1;</code> - * @param value The costumeId to set. - * @return This builder for chaining. - */ - public Builder setCostumeId(int value) { - - costumeId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 costumeId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearCostumeId() { - - costumeId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarGainCostumeNotify) - } - - // @@protoc_insertion_point(class_scope:AvatarGainCostumeNotify) - private static final emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify(); - } - - public static emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarGainCostumeNotify> - PARSER = new com.google.protobuf.AbstractParser<AvatarGainCostumeNotify>() { - @java.lang.Override - public AvatarGainCostumeNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarGainCostumeNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarGainCostumeNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarGainCostumeNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarGainCostumeNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarGainCostumeNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035AvatarGainCostumeNotify.proto\",\n\027Avata" + - "rGainCostumeNotify\022\021\n\tcostumeId\030\001 \001(\rB\033\n" + - "\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AvatarGainCostumeNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarGainCostumeNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarGainCostumeNotify_descriptor, - new java.lang.String[] { "CostumeId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarGainFlycloakNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarGainFlycloakNotifyOuterClass.java deleted file mode 100644 index 9b7302b63..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarGainFlycloakNotifyOuterClass.java +++ /dev/null @@ -1,536 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarGainFlycloakNotify.proto - -package emu.grasscutter.net.proto; - -public final class AvatarGainFlycloakNotifyOuterClass { - private AvatarGainFlycloakNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarGainFlycloakNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarGainFlycloakNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 flycloakId = 1;</code> - * @return The flycloakId. - */ - int getFlycloakId(); - } - /** - * Protobuf type {@code AvatarGainFlycloakNotify} - */ - public static final class AvatarGainFlycloakNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarGainFlycloakNotify) - AvatarGainFlycloakNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarGainFlycloakNotify.newBuilder() to construct. - private AvatarGainFlycloakNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarGainFlycloakNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarGainFlycloakNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarGainFlycloakNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - flycloakId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.internal_static_AvatarGainFlycloakNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.internal_static_AvatarGainFlycloakNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify.class, emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify.Builder.class); - } - - public static final int FLYCLOAKID_FIELD_NUMBER = 1; - private int flycloakId_; - /** - * <code>uint32 flycloakId = 1;</code> - * @return The flycloakId. - */ - @java.lang.Override - public int getFlycloakId() { - return flycloakId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (flycloakId_ != 0) { - output.writeUInt32(1, flycloakId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (flycloakId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, flycloakId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify other = (emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify) obj; - - if (getFlycloakId() - != other.getFlycloakId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FLYCLOAKID_FIELD_NUMBER; - hash = (53 * hash) + getFlycloakId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarGainFlycloakNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarGainFlycloakNotify) - emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.internal_static_AvatarGainFlycloakNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.internal_static_AvatarGainFlycloakNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify.class, emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - flycloakId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.internal_static_AvatarGainFlycloakNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify build() { - emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify buildPartial() { - emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify result = new emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify(this); - result.flycloakId_ = flycloakId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify) { - return mergeFrom((emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify other) { - if (other == emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify.getDefaultInstance()) return this; - if (other.getFlycloakId() != 0) { - setFlycloakId(other.getFlycloakId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int flycloakId_ ; - /** - * <code>uint32 flycloakId = 1;</code> - * @return The flycloakId. - */ - @java.lang.Override - public int getFlycloakId() { - return flycloakId_; - } - /** - * <code>uint32 flycloakId = 1;</code> - * @param value The flycloakId to set. - * @return This builder for chaining. - */ - public Builder setFlycloakId(int value) { - - flycloakId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 flycloakId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearFlycloakId() { - - flycloakId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarGainFlycloakNotify) - } - - // @@protoc_insertion_point(class_scope:AvatarGainFlycloakNotify) - private static final emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify(); - } - - public static emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarGainFlycloakNotify> - PARSER = new com.google.protobuf.AbstractParser<AvatarGainFlycloakNotify>() { - @java.lang.Override - public AvatarGainFlycloakNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarGainFlycloakNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarGainFlycloakNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarGainFlycloakNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarGainFlycloakNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarGainFlycloakNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\036AvatarGainFlycloakNotify.proto\".\n\030Avat" + - "arGainFlycloakNotify\022\022\n\nflycloakId\030\001 \001(\r" + - "B\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AvatarGainFlycloakNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarGainFlycloakNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarGainFlycloakNotify_descriptor, - new java.lang.String[] { "FlycloakId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarInfoOuterClass.java deleted file mode 100644 index 84338c8f5..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarInfoOuterClass.java +++ /dev/null @@ -1,4592 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarInfo.proto - -package emu.grasscutter.net.proto; - -public final class AvatarInfoOuterClass { - private AvatarInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 avatarId = 1;</code> - * @return The avatarId. - */ - int getAvatarId(); - - /** - * <code>uint64 guid = 2;</code> - * @return The guid. - */ - long getGuid(); - - /** - * <code>map<uint32, .PropValue> propMap = 3;</code> - */ - int getPropMapCount(); - /** - * <code>map<uint32, .PropValue> propMap = 3;</code> - */ - boolean containsPropMap( - int key); - /** - * Use {@link #getPropMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - getPropMap(); - /** - * <code>map<uint32, .PropValue> propMap = 3;</code> - */ - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - getPropMapMap(); - /** - * <code>map<uint32, .PropValue> propMap = 3;</code> - */ - - emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrDefault( - int key, - emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue); - /** - * <code>map<uint32, .PropValue> propMap = 3;</code> - */ - - emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrThrow( - int key); - - /** - * <code>uint32 lifeState = 4;</code> - * @return The lifeState. - */ - int getLifeState(); - - /** - * <code>repeated uint64 equipGuidList = 5;</code> - * @return A list containing the equipGuidList. - */ - java.util.List<java.lang.Long> getEquipGuidListList(); - /** - * <code>repeated uint64 equipGuidList = 5;</code> - * @return The count of equipGuidList. - */ - int getEquipGuidListCount(); - /** - * <code>repeated uint64 equipGuidList = 5;</code> - * @param index The index of the element to return. - * @return The equipGuidList at the given index. - */ - long getEquipGuidList(int index); - - /** - * <code>repeated uint32 talentIdList = 6;</code> - * @return A list containing the talentIdList. - */ - java.util.List<java.lang.Integer> getTalentIdListList(); - /** - * <code>repeated uint32 talentIdList = 6;</code> - * @return The count of talentIdList. - */ - int getTalentIdListCount(); - /** - * <code>repeated uint32 talentIdList = 6;</code> - * @param index The index of the element to return. - * @return The talentIdList at the given index. - */ - int getTalentIdList(int index); - - /** - * <code>map<uint32, float> fightPropMap = 7;</code> - */ - int getFightPropMapCount(); - /** - * <code>map<uint32, float> fightPropMap = 7;</code> - */ - boolean containsFightPropMap( - int key); - /** - * Use {@link #getFightPropMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Float> - getFightPropMap(); - /** - * <code>map<uint32, float> fightPropMap = 7;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Float> - getFightPropMapMap(); - /** - * <code>map<uint32, float> fightPropMap = 7;</code> - */ - - float getFightPropMapOrDefault( - int key, - float defaultValue); - /** - * <code>map<uint32, float> fightPropMap = 7;</code> - */ - - float getFightPropMapOrThrow( - int key); - - /** - * <code>.TrialAvatarInfo trialAvatarInfoField = 9;</code> - * @return Whether the trialAvatarInfoField field is set. - */ - boolean hasTrialAvatarInfoField(); - /** - * <code>.TrialAvatarInfo trialAvatarInfoField = 9;</code> - * @return The trialAvatarInfoField. - */ - emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo getTrialAvatarInfoField(); - /** - * <code>.TrialAvatarInfo trialAvatarInfoField = 9;</code> - */ - emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfoOrBuilder getTrialAvatarInfoFieldOrBuilder(); - - /** - * <code>map<uint32, .AvatarSkillInfo> skillMap = 10;</code> - */ - int getSkillMapCount(); - /** - * <code>map<uint32, .AvatarSkillInfo> skillMap = 10;</code> - */ - boolean containsSkillMap( - int key); - /** - * Use {@link #getSkillMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo> - getSkillMap(); - /** - * <code>map<uint32, .AvatarSkillInfo> skillMap = 10;</code> - */ - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo> - getSkillMapMap(); - /** - * <code>map<uint32, .AvatarSkillInfo> skillMap = 10;</code> - */ - - emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo getSkillMapOrDefault( - int key, - emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo defaultValue); - /** - * <code>map<uint32, .AvatarSkillInfo> skillMap = 10;</code> - */ - - emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo getSkillMapOrThrow( - int key); - - /** - * <code>uint32 skillDepotId = 11;</code> - * @return The skillDepotId. - */ - int getSkillDepotId(); - - /** - * <code>.AvatarFetterInfo fetterInfo = 12;</code> - * @return Whether the fetterInfo field is set. - */ - boolean hasFetterInfo(); - /** - * <code>.AvatarFetterInfo fetterInfo = 12;</code> - * @return The fetterInfo. - */ - emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo getFetterInfo(); - /** - * <code>.AvatarFetterInfo fetterInfo = 12;</code> - */ - emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfoOrBuilder getFetterInfoOrBuilder(); - - /** - * <code>uint32 coreProudSkillLevel = 13;</code> - * @return The coreProudSkillLevel. - */ - int getCoreProudSkillLevel(); - - /** - * <code>repeated uint32 inherentProudSkillList = 14;</code> - * @return A list containing the inherentProudSkillList. - */ - java.util.List<java.lang.Integer> getInherentProudSkillListList(); - /** - * <code>repeated uint32 inherentProudSkillList = 14;</code> - * @return The count of inherentProudSkillList. - */ - int getInherentProudSkillListCount(); - /** - * <code>repeated uint32 inherentProudSkillList = 14;</code> - * @param index The index of the element to return. - * @return The inherentProudSkillList at the given index. - */ - int getInherentProudSkillList(int index); - - /** - * <code>map<uint32, uint32> skillLevelMap = 15;</code> - */ - int getSkillLevelMapCount(); - /** - * <code>map<uint32, uint32> skillLevelMap = 15;</code> - */ - boolean containsSkillLevelMap( - int key); - /** - * Use {@link #getSkillLevelMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Integer> - getSkillLevelMap(); - /** - * <code>map<uint32, uint32> skillLevelMap = 15;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Integer> - getSkillLevelMapMap(); - /** - * <code>map<uint32, uint32> skillLevelMap = 15;</code> - */ - - int getSkillLevelMapOrDefault( - int key, - int defaultValue); - /** - * <code>map<uint32, uint32> skillLevelMap = 15;</code> - */ - - int getSkillLevelMapOrThrow( - int key); - - /** - * <code>.AvatarExpeditionState expeditionState = 16;</code> - * @return The enum numeric value on the wire for expeditionState. - */ - int getExpeditionStateValue(); - /** - * <code>.AvatarExpeditionState expeditionState = 16;</code> - * @return The expeditionState. - */ - emu.grasscutter.net.proto.AvatarExpeditionStateOuterClass.AvatarExpeditionState getExpeditionState(); - - /** - * <code>map<uint32, uint32> proudSkillExtraLevel = 17;</code> - */ - int getProudSkillExtraLevelCount(); - /** - * <code>map<uint32, uint32> proudSkillExtraLevel = 17;</code> - */ - boolean containsProudSkillExtraLevel( - int key); - /** - * Use {@link #getProudSkillExtraLevelMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Integer> - getProudSkillExtraLevel(); - /** - * <code>map<uint32, uint32> proudSkillExtraLevel = 17;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Integer> - getProudSkillExtraLevelMap(); - /** - * <code>map<uint32, uint32> proudSkillExtraLevel = 17;</code> - */ - - int getProudSkillExtraLevelOrDefault( - int key, - int defaultValue); - /** - * <code>map<uint32, uint32> proudSkillExtraLevel = 17;</code> - */ - - int getProudSkillExtraLevelOrThrow( - int key); - - /** - * <code>bool isFocusFieldNumber = 18;</code> - * @return The isFocusFieldNumber. - */ - boolean getIsFocusFieldNumber(); - - /** - * <code>uint32 avatarType = 19;</code> - * @return The avatarType. - */ - int getAvatarType(); - - /** - * <code>repeated uint32 teamResonanceList = 20;</code> - * @return A list containing the teamResonanceList. - */ - java.util.List<java.lang.Integer> getTeamResonanceListList(); - /** - * <code>repeated uint32 teamResonanceList = 20;</code> - * @return The count of teamResonanceList. - */ - int getTeamResonanceListCount(); - /** - * <code>repeated uint32 teamResonanceList = 20;</code> - * @param index The index of the element to return. - * @return The teamResonanceList at the given index. - */ - int getTeamResonanceList(int index); - - /** - * <code>uint32 wearingFlycloakId = 21;</code> - * @return The wearingFlycloakId. - */ - int getWearingFlycloakId(); - - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - java.util.List<emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo> - getEquipAffixListList(); - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo getEquipAffixList(int index); - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - int getEquipAffixListCount(); - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfoOrBuilder> - getEquipAffixListOrBuilderList(); - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfoOrBuilder getEquipAffixListOrBuilder( - int index); - - /** - * <code>uint32 bornTime = 23;</code> - * @return The bornTime. - */ - int getBornTime(); - - /** - * <code>repeated uint32 pendingPromoteRewardListFieldNumber = 24;</code> - * @return A list containing the pendingPromoteRewardListFieldNumber. - */ - java.util.List<java.lang.Integer> getPendingPromoteRewardListFieldNumberList(); - /** - * <code>repeated uint32 pendingPromoteRewardListFieldNumber = 24;</code> - * @return The count of pendingPromoteRewardListFieldNumber. - */ - int getPendingPromoteRewardListFieldNumberCount(); - /** - * <code>repeated uint32 pendingPromoteRewardListFieldNumber = 24;</code> - * @param index The index of the element to return. - * @return The pendingPromoteRewardListFieldNumber at the given index. - */ - int getPendingPromoteRewardListFieldNumber(int index); - - /** - * <code>uint32 costumeId = 25;</code> - * @return The costumeId. - */ - int getCostumeId(); - } - /** - * Protobuf type {@code AvatarInfo} - */ - public static final class AvatarInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarInfo) - AvatarInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarInfo.newBuilder() to construct. - private AvatarInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarInfo() { - equipGuidList_ = emptyLongList(); - talentIdList_ = emptyIntList(); - inherentProudSkillList_ = emptyIntList(); - expeditionState_ = 0; - teamResonanceList_ = emptyIntList(); - equipAffixList_ = java.util.Collections.emptyList(); - pendingPromoteRewardListFieldNumber_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - avatarId_ = input.readUInt32(); - break; - } - case 16: { - - guid_ = input.readUInt64(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - propMap_ = com.google.protobuf.MapField.newMapField( - PropMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - propMap__ = input.readMessage( - PropMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - propMap_.getMutableMap().put( - propMap__.getKey(), propMap__.getValue()); - break; - } - case 32: { - - lifeState_ = input.readUInt32(); - break; - } - case 40: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - equipGuidList_ = newLongList(); - mutable_bitField0_ |= 0x00000002; - } - equipGuidList_.addLong(input.readUInt64()); - break; - } - case 42: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - equipGuidList_ = newLongList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - equipGuidList_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - case 48: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - talentIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000004; - } - talentIdList_.addInt(input.readUInt32()); - break; - } - case 50: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) { - talentIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000004; - } - while (input.getBytesUntilLimit() > 0) { - talentIdList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - fightPropMap_ = com.google.protobuf.MapField.newMapField( - FightPropMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Float> - fightPropMap__ = input.readMessage( - FightPropMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - fightPropMap_.getMutableMap().put( - fightPropMap__.getKey(), fightPropMap__.getValue()); - break; - } - case 74: { - emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo.Builder subBuilder = null; - if (trialAvatarInfoField_ != null) { - subBuilder = trialAvatarInfoField_.toBuilder(); - } - trialAvatarInfoField_ = input.readMessage(emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(trialAvatarInfoField_); - trialAvatarInfoField_ = subBuilder.buildPartial(); - } - - break; - } - case 82: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - skillMap_ = com.google.protobuf.MapField.newMapField( - SkillMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; - } - com.google.protobuf.MapEntry<java.lang.Integer, emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo> - skillMap__ = input.readMessage( - SkillMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - skillMap_.getMutableMap().put( - skillMap__.getKey(), skillMap__.getValue()); - break; - } - case 88: { - - skillDepotId_ = input.readUInt32(); - break; - } - case 98: { - emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo.Builder subBuilder = null; - if (fetterInfo_ != null) { - subBuilder = fetterInfo_.toBuilder(); - } - fetterInfo_ = input.readMessage(emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fetterInfo_); - fetterInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 104: { - - coreProudSkillLevel_ = input.readUInt32(); - break; - } - case 112: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - inherentProudSkillList_ = newIntList(); - mutable_bitField0_ |= 0x00000020; - } - inherentProudSkillList_.addInt(input.readUInt32()); - break; - } - case 114: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000020) != 0) && input.getBytesUntilLimit() > 0) { - inherentProudSkillList_ = newIntList(); - mutable_bitField0_ |= 0x00000020; - } - while (input.getBytesUntilLimit() > 0) { - inherentProudSkillList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 122: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - skillLevelMap_ = com.google.protobuf.MapField.newMapField( - SkillLevelMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000040; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - skillLevelMap__ = input.readMessage( - SkillLevelMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - skillLevelMap_.getMutableMap().put( - skillLevelMap__.getKey(), skillLevelMap__.getValue()); - break; - } - case 128: { - int rawValue = input.readEnum(); - - expeditionState_ = rawValue; - break; - } - case 138: { - if (!((mutable_bitField0_ & 0x00000080) != 0)) { - proudSkillExtraLevel_ = com.google.protobuf.MapField.newMapField( - ProudSkillExtraLevelDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000080; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - proudSkillExtraLevel__ = input.readMessage( - ProudSkillExtraLevelDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - proudSkillExtraLevel_.getMutableMap().put( - proudSkillExtraLevel__.getKey(), proudSkillExtraLevel__.getValue()); - break; - } - case 144: { - - isFocusFieldNumber_ = input.readBool(); - break; - } - case 152: { - - avatarType_ = input.readUInt32(); - break; - } - case 160: { - if (!((mutable_bitField0_ & 0x00000100) != 0)) { - teamResonanceList_ = newIntList(); - mutable_bitField0_ |= 0x00000100; - } - teamResonanceList_.addInt(input.readUInt32()); - break; - } - case 162: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000100) != 0) && input.getBytesUntilLimit() > 0) { - teamResonanceList_ = newIntList(); - mutable_bitField0_ |= 0x00000100; - } - while (input.getBytesUntilLimit() > 0) { - teamResonanceList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 168: { - - wearingFlycloakId_ = input.readUInt32(); - break; - } - case 178: { - if (!((mutable_bitField0_ & 0x00000200) != 0)) { - equipAffixList_ = new java.util.ArrayList<emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo>(); - mutable_bitField0_ |= 0x00000200; - } - equipAffixList_.add( - input.readMessage(emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo.parser(), extensionRegistry)); - break; - } - case 184: { - - bornTime_ = input.readUInt32(); - break; - } - case 192: { - if (!((mutable_bitField0_ & 0x00000400) != 0)) { - pendingPromoteRewardListFieldNumber_ = newIntList(); - mutable_bitField0_ |= 0x00000400; - } - pendingPromoteRewardListFieldNumber_.addInt(input.readUInt32()); - break; - } - case 194: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000400) != 0) && input.getBytesUntilLimit() > 0) { - pendingPromoteRewardListFieldNumber_ = newIntList(); - mutable_bitField0_ |= 0x00000400; - } - while (input.getBytesUntilLimit() > 0) { - pendingPromoteRewardListFieldNumber_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 200: { - - costumeId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - equipGuidList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - talentIdList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000020) != 0)) { - inherentProudSkillList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000100) != 0)) { - teamResonanceList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000200) != 0)) { - equipAffixList_ = java.util.Collections.unmodifiableList(equipAffixList_); - } - if (((mutable_bitField0_ & 0x00000400) != 0)) { - pendingPromoteRewardListFieldNumber_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarInfoOuterClass.internal_static_AvatarInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetPropMap(); - case 7: - return internalGetFightPropMap(); - case 10: - return internalGetSkillMap(); - case 15: - return internalGetSkillLevelMap(); - case 17: - return internalGetProudSkillExtraLevel(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarInfoOuterClass.internal_static_AvatarInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.class, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder.class); - } - - public static final int AVATARID_FIELD_NUMBER = 1; - private int avatarId_; - /** - * <code>uint32 avatarId = 1;</code> - * @return The avatarId. - */ - @java.lang.Override - public int getAvatarId() { - return avatarId_; - } - - public static final int GUID_FIELD_NUMBER = 2; - private long guid_; - /** - * <code>uint64 guid = 2;</code> - * @return The guid. - */ - @java.lang.Override - public long getGuid() { - return guid_; - } - - public static final int PROPMAP_FIELD_NUMBER = 3; - private static final class PropMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue>newDefaultInstance( - emu.grasscutter.net.proto.AvatarInfoOuterClass.internal_static_AvatarInfo_PropMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - emu.grasscutter.net.proto.PropValueOuterClass.PropValue.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> propMap_; - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - internalGetPropMap() { - if (propMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropMapDefaultEntryHolder.defaultEntry); - } - return propMap_; - } - - public int getPropMapCount() { - return internalGetPropMap().getMap().size(); - } - /** - * <code>map<uint32, .PropValue> propMap = 3;</code> - */ - - @java.lang.Override - public boolean containsPropMap( - int key) { - - return internalGetPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> getPropMap() { - return getPropMapMap(); - } - /** - * <code>map<uint32, .PropValue> propMap = 3;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> getPropMapMap() { - return internalGetPropMap().getMap(); - } - /** - * <code>map<uint32, .PropValue> propMap = 3;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrDefault( - int key, - emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> map = - internalGetPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, .PropValue> propMap = 3;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> map = - internalGetPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int LIFESTATE_FIELD_NUMBER = 4; - private int lifeState_; - /** - * <code>uint32 lifeState = 4;</code> - * @return The lifeState. - */ - @java.lang.Override - public int getLifeState() { - return lifeState_; - } - - public static final int EQUIPGUIDLIST_FIELD_NUMBER = 5; - private com.google.protobuf.Internal.LongList equipGuidList_; - /** - * <code>repeated uint64 equipGuidList = 5;</code> - * @return A list containing the equipGuidList. - */ - @java.lang.Override - public java.util.List<java.lang.Long> - getEquipGuidListList() { - return equipGuidList_; - } - /** - * <code>repeated uint64 equipGuidList = 5;</code> - * @return The count of equipGuidList. - */ - public int getEquipGuidListCount() { - return equipGuidList_.size(); - } - /** - * <code>repeated uint64 equipGuidList = 5;</code> - * @param index The index of the element to return. - * @return The equipGuidList at the given index. - */ - public long getEquipGuidList(int index) { - return equipGuidList_.getLong(index); - } - private int equipGuidListMemoizedSerializedSize = -1; - - public static final int TALENTIDLIST_FIELD_NUMBER = 6; - private com.google.protobuf.Internal.IntList talentIdList_; - /** - * <code>repeated uint32 talentIdList = 6;</code> - * @return A list containing the talentIdList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getTalentIdListList() { - return talentIdList_; - } - /** - * <code>repeated uint32 talentIdList = 6;</code> - * @return The count of talentIdList. - */ - public int getTalentIdListCount() { - return talentIdList_.size(); - } - /** - * <code>repeated uint32 talentIdList = 6;</code> - * @param index The index of the element to return. - * @return The talentIdList at the given index. - */ - public int getTalentIdList(int index) { - return talentIdList_.getInt(index); - } - private int talentIdListMemoizedSerializedSize = -1; - - public static final int FIGHTPROPMAP_FIELD_NUMBER = 7; - private static final class FightPropMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Float> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Float>newDefaultInstance( - emu.grasscutter.net.proto.AvatarInfoOuterClass.internal_static_AvatarInfo_FightPropMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.FLOAT, - 0F); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Float> fightPropMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Float> - internalGetFightPropMap() { - if (fightPropMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FightPropMapDefaultEntryHolder.defaultEntry); - } - return fightPropMap_; - } - - public int getFightPropMapCount() { - return internalGetFightPropMap().getMap().size(); - } - /** - * <code>map<uint32, float> fightPropMap = 7;</code> - */ - - @java.lang.Override - public boolean containsFightPropMap( - int key) { - - return internalGetFightPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getFightPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Float> getFightPropMap() { - return getFightPropMapMap(); - } - /** - * <code>map<uint32, float> fightPropMap = 7;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Float> getFightPropMapMap() { - return internalGetFightPropMap().getMap(); - } - /** - * <code>map<uint32, float> fightPropMap = 7;</code> - */ - @java.lang.Override - - public float getFightPropMapOrDefault( - int key, - float defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Float> map = - internalGetFightPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, float> fightPropMap = 7;</code> - */ - @java.lang.Override - - public float getFightPropMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Float> map = - internalGetFightPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int TRIALAVATARINFOFIELD_FIELD_NUMBER = 9; - private emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo trialAvatarInfoField_; - /** - * <code>.TrialAvatarInfo trialAvatarInfoField = 9;</code> - * @return Whether the trialAvatarInfoField field is set. - */ - @java.lang.Override - public boolean hasTrialAvatarInfoField() { - return trialAvatarInfoField_ != null; - } - /** - * <code>.TrialAvatarInfo trialAvatarInfoField = 9;</code> - * @return The trialAvatarInfoField. - */ - @java.lang.Override - public emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo getTrialAvatarInfoField() { - return trialAvatarInfoField_ == null ? emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo.getDefaultInstance() : trialAvatarInfoField_; - } - /** - * <code>.TrialAvatarInfo trialAvatarInfoField = 9;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfoOrBuilder getTrialAvatarInfoFieldOrBuilder() { - return getTrialAvatarInfoField(); - } - - public static final int SKILLMAP_FIELD_NUMBER = 10; - private static final class SkillMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo>newDefaultInstance( - emu.grasscutter.net.proto.AvatarInfoOuterClass.internal_static_AvatarInfo_SkillMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.Integer, emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo> skillMap_; - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo> - internalGetSkillMap() { - if (skillMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SkillMapDefaultEntryHolder.defaultEntry); - } - return skillMap_; - } - - public int getSkillMapCount() { - return internalGetSkillMap().getMap().size(); - } - /** - * <code>map<uint32, .AvatarSkillInfo> skillMap = 10;</code> - */ - - @java.lang.Override - public boolean containsSkillMap( - int key) { - - return internalGetSkillMap().getMap().containsKey(key); - } - /** - * Use {@link #getSkillMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo> getSkillMap() { - return getSkillMapMap(); - } - /** - * <code>map<uint32, .AvatarSkillInfo> skillMap = 10;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo> getSkillMapMap() { - return internalGetSkillMap().getMap(); - } - /** - * <code>map<uint32, .AvatarSkillInfo> skillMap = 10;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo getSkillMapOrDefault( - int key, - emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo defaultValue) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo> map = - internalGetSkillMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, .AvatarSkillInfo> skillMap = 10;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo getSkillMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo> map = - internalGetSkillMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int SKILLDEPOTID_FIELD_NUMBER = 11; - private int skillDepotId_; - /** - * <code>uint32 skillDepotId = 11;</code> - * @return The skillDepotId. - */ - @java.lang.Override - public int getSkillDepotId() { - return skillDepotId_; - } - - public static final int FETTERINFO_FIELD_NUMBER = 12; - private emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo fetterInfo_; - /** - * <code>.AvatarFetterInfo fetterInfo = 12;</code> - * @return Whether the fetterInfo field is set. - */ - @java.lang.Override - public boolean hasFetterInfo() { - return fetterInfo_ != null; - } - /** - * <code>.AvatarFetterInfo fetterInfo = 12;</code> - * @return The fetterInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo getFetterInfo() { - return fetterInfo_ == null ? emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo.getDefaultInstance() : fetterInfo_; - } - /** - * <code>.AvatarFetterInfo fetterInfo = 12;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfoOrBuilder getFetterInfoOrBuilder() { - return getFetterInfo(); - } - - public static final int COREPROUDSKILLLEVEL_FIELD_NUMBER = 13; - private int coreProudSkillLevel_; - /** - * <code>uint32 coreProudSkillLevel = 13;</code> - * @return The coreProudSkillLevel. - */ - @java.lang.Override - public int getCoreProudSkillLevel() { - return coreProudSkillLevel_; - } - - public static final int INHERENTPROUDSKILLLIST_FIELD_NUMBER = 14; - private com.google.protobuf.Internal.IntList inherentProudSkillList_; - /** - * <code>repeated uint32 inherentProudSkillList = 14;</code> - * @return A list containing the inherentProudSkillList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getInherentProudSkillListList() { - return inherentProudSkillList_; - } - /** - * <code>repeated uint32 inherentProudSkillList = 14;</code> - * @return The count of inherentProudSkillList. - */ - public int getInherentProudSkillListCount() { - return inherentProudSkillList_.size(); - } - /** - * <code>repeated uint32 inherentProudSkillList = 14;</code> - * @param index The index of the element to return. - * @return The inherentProudSkillList at the given index. - */ - public int getInherentProudSkillList(int index) { - return inherentProudSkillList_.getInt(index); - } - private int inherentProudSkillListMemoizedSerializedSize = -1; - - public static final int SKILLLEVELMAP_FIELD_NUMBER = 15; - private static final class SkillLevelMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Integer>newDefaultInstance( - emu.grasscutter.net.proto.AvatarInfoOuterClass.internal_static_AvatarInfo_SkillLevelMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> skillLevelMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetSkillLevelMap() { - if (skillLevelMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SkillLevelMapDefaultEntryHolder.defaultEntry); - } - return skillLevelMap_; - } - - public int getSkillLevelMapCount() { - return internalGetSkillLevelMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> skillLevelMap = 15;</code> - */ - - @java.lang.Override - public boolean containsSkillLevelMap( - int key) { - - return internalGetSkillLevelMap().getMap().containsKey(key); - } - /** - * Use {@link #getSkillLevelMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillLevelMap() { - return getSkillLevelMapMap(); - } - /** - * <code>map<uint32, uint32> skillLevelMap = 15;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillLevelMapMap() { - return internalGetSkillLevelMap().getMap(); - } - /** - * <code>map<uint32, uint32> skillLevelMap = 15;</code> - */ - @java.lang.Override - - public int getSkillLevelMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkillLevelMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> skillLevelMap = 15;</code> - */ - @java.lang.Override - - public int getSkillLevelMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkillLevelMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int EXPEDITIONSTATE_FIELD_NUMBER = 16; - private int expeditionState_; - /** - * <code>.AvatarExpeditionState expeditionState = 16;</code> - * @return The enum numeric value on the wire for expeditionState. - */ - @java.lang.Override public int getExpeditionStateValue() { - return expeditionState_; - } - /** - * <code>.AvatarExpeditionState expeditionState = 16;</code> - * @return The expeditionState. - */ - @java.lang.Override public emu.grasscutter.net.proto.AvatarExpeditionStateOuterClass.AvatarExpeditionState getExpeditionState() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.AvatarExpeditionStateOuterClass.AvatarExpeditionState result = emu.grasscutter.net.proto.AvatarExpeditionStateOuterClass.AvatarExpeditionState.valueOf(expeditionState_); - return result == null ? emu.grasscutter.net.proto.AvatarExpeditionStateOuterClass.AvatarExpeditionState.UNRECOGNIZED : result; - } - - public static final int PROUDSKILLEXTRALEVEL_FIELD_NUMBER = 17; - private static final class ProudSkillExtraLevelDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Integer>newDefaultInstance( - emu.grasscutter.net.proto.AvatarInfoOuterClass.internal_static_AvatarInfo_ProudSkillExtraLevelEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> proudSkillExtraLevel_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetProudSkillExtraLevel() { - if (proudSkillExtraLevel_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ProudSkillExtraLevelDefaultEntryHolder.defaultEntry); - } - return proudSkillExtraLevel_; - } - - public int getProudSkillExtraLevelCount() { - return internalGetProudSkillExtraLevel().getMap().size(); - } - /** - * <code>map<uint32, uint32> proudSkillExtraLevel = 17;</code> - */ - - @java.lang.Override - public boolean containsProudSkillExtraLevel( - int key) { - - return internalGetProudSkillExtraLevel().getMap().containsKey(key); - } - /** - * Use {@link #getProudSkillExtraLevelMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getProudSkillExtraLevel() { - return getProudSkillExtraLevelMap(); - } - /** - * <code>map<uint32, uint32> proudSkillExtraLevel = 17;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getProudSkillExtraLevelMap() { - return internalGetProudSkillExtraLevel().getMap(); - } - /** - * <code>map<uint32, uint32> proudSkillExtraLevel = 17;</code> - */ - @java.lang.Override - - public int getProudSkillExtraLevelOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetProudSkillExtraLevel().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> proudSkillExtraLevel = 17;</code> - */ - @java.lang.Override - - public int getProudSkillExtraLevelOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetProudSkillExtraLevel().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int ISFOCUSFIELDNUMBER_FIELD_NUMBER = 18; - private boolean isFocusFieldNumber_; - /** - * <code>bool isFocusFieldNumber = 18;</code> - * @return The isFocusFieldNumber. - */ - @java.lang.Override - public boolean getIsFocusFieldNumber() { - return isFocusFieldNumber_; - } - - public static final int AVATARTYPE_FIELD_NUMBER = 19; - private int avatarType_; - /** - * <code>uint32 avatarType = 19;</code> - * @return The avatarType. - */ - @java.lang.Override - public int getAvatarType() { - return avatarType_; - } - - public static final int TEAMRESONANCELIST_FIELD_NUMBER = 20; - private com.google.protobuf.Internal.IntList teamResonanceList_; - /** - * <code>repeated uint32 teamResonanceList = 20;</code> - * @return A list containing the teamResonanceList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getTeamResonanceListList() { - return teamResonanceList_; - } - /** - * <code>repeated uint32 teamResonanceList = 20;</code> - * @return The count of teamResonanceList. - */ - public int getTeamResonanceListCount() { - return teamResonanceList_.size(); - } - /** - * <code>repeated uint32 teamResonanceList = 20;</code> - * @param index The index of the element to return. - * @return The teamResonanceList at the given index. - */ - public int getTeamResonanceList(int index) { - return teamResonanceList_.getInt(index); - } - private int teamResonanceListMemoizedSerializedSize = -1; - - public static final int WEARINGFLYCLOAKID_FIELD_NUMBER = 21; - private int wearingFlycloakId_; - /** - * <code>uint32 wearingFlycloakId = 21;</code> - * @return The wearingFlycloakId. - */ - @java.lang.Override - public int getWearingFlycloakId() { - return wearingFlycloakId_; - } - - public static final int EQUIPAFFIXLIST_FIELD_NUMBER = 22; - private java.util.List<emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo> equipAffixList_; - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo> getEquipAffixListList() { - return equipAffixList_; - } - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfoOrBuilder> - getEquipAffixListOrBuilderList() { - return equipAffixList_; - } - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - @java.lang.Override - public int getEquipAffixListCount() { - return equipAffixList_.size(); - } - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo getEquipAffixList(int index) { - return equipAffixList_.get(index); - } - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfoOrBuilder getEquipAffixListOrBuilder( - int index) { - return equipAffixList_.get(index); - } - - public static final int BORNTIME_FIELD_NUMBER = 23; - private int bornTime_; - /** - * <code>uint32 bornTime = 23;</code> - * @return The bornTime. - */ - @java.lang.Override - public int getBornTime() { - return bornTime_; - } - - public static final int PENDINGPROMOTEREWARDLISTFIELDNUMBER_FIELD_NUMBER = 24; - private com.google.protobuf.Internal.IntList pendingPromoteRewardListFieldNumber_; - /** - * <code>repeated uint32 pendingPromoteRewardListFieldNumber = 24;</code> - * @return A list containing the pendingPromoteRewardListFieldNumber. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getPendingPromoteRewardListFieldNumberList() { - return pendingPromoteRewardListFieldNumber_; - } - /** - * <code>repeated uint32 pendingPromoteRewardListFieldNumber = 24;</code> - * @return The count of pendingPromoteRewardListFieldNumber. - */ - public int getPendingPromoteRewardListFieldNumberCount() { - return pendingPromoteRewardListFieldNumber_.size(); - } - /** - * <code>repeated uint32 pendingPromoteRewardListFieldNumber = 24;</code> - * @param index The index of the element to return. - * @return The pendingPromoteRewardListFieldNumber at the given index. - */ - public int getPendingPromoteRewardListFieldNumber(int index) { - return pendingPromoteRewardListFieldNumber_.getInt(index); - } - private int pendingPromoteRewardListFieldNumberMemoizedSerializedSize = -1; - - public static final int COSTUMEID_FIELD_NUMBER = 25; - private int costumeId_; - /** - * <code>uint32 costumeId = 25;</code> - * @return The costumeId. - */ - @java.lang.Override - public int getCostumeId() { - return costumeId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (avatarId_ != 0) { - output.writeUInt32(1, avatarId_); - } - if (guid_ != 0L) { - output.writeUInt64(2, guid_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetPropMap(), - PropMapDefaultEntryHolder.defaultEntry, - 3); - if (lifeState_ != 0) { - output.writeUInt32(4, lifeState_); - } - if (getEquipGuidListList().size() > 0) { - output.writeUInt32NoTag(42); - output.writeUInt32NoTag(equipGuidListMemoizedSerializedSize); - } - for (int i = 0; i < equipGuidList_.size(); i++) { - output.writeUInt64NoTag(equipGuidList_.getLong(i)); - } - if (getTalentIdListList().size() > 0) { - output.writeUInt32NoTag(50); - output.writeUInt32NoTag(talentIdListMemoizedSerializedSize); - } - for (int i = 0; i < talentIdList_.size(); i++) { - output.writeUInt32NoTag(talentIdList_.getInt(i)); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetFightPropMap(), - FightPropMapDefaultEntryHolder.defaultEntry, - 7); - if (trialAvatarInfoField_ != null) { - output.writeMessage(9, getTrialAvatarInfoField()); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetSkillMap(), - SkillMapDefaultEntryHolder.defaultEntry, - 10); - if (skillDepotId_ != 0) { - output.writeUInt32(11, skillDepotId_); - } - if (fetterInfo_ != null) { - output.writeMessage(12, getFetterInfo()); - } - if (coreProudSkillLevel_ != 0) { - output.writeUInt32(13, coreProudSkillLevel_); - } - if (getInherentProudSkillListList().size() > 0) { - output.writeUInt32NoTag(114); - output.writeUInt32NoTag(inherentProudSkillListMemoizedSerializedSize); - } - for (int i = 0; i < inherentProudSkillList_.size(); i++) { - output.writeUInt32NoTag(inherentProudSkillList_.getInt(i)); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetSkillLevelMap(), - SkillLevelMapDefaultEntryHolder.defaultEntry, - 15); - if (expeditionState_ != emu.grasscutter.net.proto.AvatarExpeditionStateOuterClass.AvatarExpeditionState.AvatarExpeditionNone.getNumber()) { - output.writeEnum(16, expeditionState_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetProudSkillExtraLevel(), - ProudSkillExtraLevelDefaultEntryHolder.defaultEntry, - 17); - if (isFocusFieldNumber_ != false) { - output.writeBool(18, isFocusFieldNumber_); - } - if (avatarType_ != 0) { - output.writeUInt32(19, avatarType_); - } - if (getTeamResonanceListList().size() > 0) { - output.writeUInt32NoTag(162); - output.writeUInt32NoTag(teamResonanceListMemoizedSerializedSize); - } - for (int i = 0; i < teamResonanceList_.size(); i++) { - output.writeUInt32NoTag(teamResonanceList_.getInt(i)); - } - if (wearingFlycloakId_ != 0) { - output.writeUInt32(21, wearingFlycloakId_); - } - for (int i = 0; i < equipAffixList_.size(); i++) { - output.writeMessage(22, equipAffixList_.get(i)); - } - if (bornTime_ != 0) { - output.writeUInt32(23, bornTime_); - } - if (getPendingPromoteRewardListFieldNumberList().size() > 0) { - output.writeUInt32NoTag(194); - output.writeUInt32NoTag(pendingPromoteRewardListFieldNumberMemoizedSerializedSize); - } - for (int i = 0; i < pendingPromoteRewardListFieldNumber_.size(); i++) { - output.writeUInt32NoTag(pendingPromoteRewardListFieldNumber_.getInt(i)); - } - if (costumeId_ != 0) { - output.writeUInt32(25, costumeId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (avatarId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, avatarId_); - } - if (guid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, guid_); - } - for (java.util.Map.Entry<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> entry - : internalGetPropMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - propMap__ = PropMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, propMap__); - } - if (lifeState_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, lifeState_); - } - { - int dataSize = 0; - for (int i = 0; i < equipGuidList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(equipGuidList_.getLong(i)); - } - size += dataSize; - if (!getEquipGuidListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - equipGuidListMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < talentIdList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(talentIdList_.getInt(i)); - } - size += dataSize; - if (!getTalentIdListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - talentIdListMemoizedSerializedSize = dataSize; - } - for (java.util.Map.Entry<java.lang.Integer, java.lang.Float> entry - : internalGetFightPropMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Float> - fightPropMap__ = FightPropMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, fightPropMap__); - } - if (trialAvatarInfoField_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getTrialAvatarInfoField()); - } - for (java.util.Map.Entry<java.lang.Integer, emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo> entry - : internalGetSkillMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo> - skillMap__ = SkillMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, skillMap__); - } - if (skillDepotId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(11, skillDepotId_); - } - if (fetterInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getFetterInfo()); - } - if (coreProudSkillLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(13, coreProudSkillLevel_); - } - { - int dataSize = 0; - for (int i = 0; i < inherentProudSkillList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(inherentProudSkillList_.getInt(i)); - } - size += dataSize; - if (!getInherentProudSkillListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - inherentProudSkillListMemoizedSerializedSize = dataSize; - } - for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry - : internalGetSkillLevelMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - skillLevelMap__ = SkillLevelMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, skillLevelMap__); - } - if (expeditionState_ != emu.grasscutter.net.proto.AvatarExpeditionStateOuterClass.AvatarExpeditionState.AvatarExpeditionNone.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(16, expeditionState_); - } - for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry - : internalGetProudSkillExtraLevel().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - proudSkillExtraLevel__ = ProudSkillExtraLevelDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, proudSkillExtraLevel__); - } - if (isFocusFieldNumber_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(18, isFocusFieldNumber_); - } - if (avatarType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(19, avatarType_); - } - { - int dataSize = 0; - for (int i = 0; i < teamResonanceList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(teamResonanceList_.getInt(i)); - } - size += dataSize; - if (!getTeamResonanceListList().isEmpty()) { - size += 2; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - teamResonanceListMemoizedSerializedSize = dataSize; - } - if (wearingFlycloakId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(21, wearingFlycloakId_); - } - for (int i = 0; i < equipAffixList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, equipAffixList_.get(i)); - } - if (bornTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(23, bornTime_); - } - { - int dataSize = 0; - for (int i = 0; i < pendingPromoteRewardListFieldNumber_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(pendingPromoteRewardListFieldNumber_.getInt(i)); - } - size += dataSize; - if (!getPendingPromoteRewardListFieldNumberList().isEmpty()) { - size += 2; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - pendingPromoteRewardListFieldNumberMemoizedSerializedSize = dataSize; - } - if (costumeId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(25, costumeId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo other = (emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo) obj; - - if (getAvatarId() - != other.getAvatarId()) return false; - if (getGuid() - != other.getGuid()) return false; - if (!internalGetPropMap().equals( - other.internalGetPropMap())) return false; - if (getLifeState() - != other.getLifeState()) return false; - if (!getEquipGuidListList() - .equals(other.getEquipGuidListList())) return false; - if (!getTalentIdListList() - .equals(other.getTalentIdListList())) return false; - if (!internalGetFightPropMap().equals( - other.internalGetFightPropMap())) return false; - if (hasTrialAvatarInfoField() != other.hasTrialAvatarInfoField()) return false; - if (hasTrialAvatarInfoField()) { - if (!getTrialAvatarInfoField() - .equals(other.getTrialAvatarInfoField())) return false; - } - if (!internalGetSkillMap().equals( - other.internalGetSkillMap())) return false; - if (getSkillDepotId() - != other.getSkillDepotId()) return false; - if (hasFetterInfo() != other.hasFetterInfo()) return false; - if (hasFetterInfo()) { - if (!getFetterInfo() - .equals(other.getFetterInfo())) return false; - } - if (getCoreProudSkillLevel() - != other.getCoreProudSkillLevel()) return false; - if (!getInherentProudSkillListList() - .equals(other.getInherentProudSkillListList())) return false; - if (!internalGetSkillLevelMap().equals( - other.internalGetSkillLevelMap())) return false; - if (expeditionState_ != other.expeditionState_) return false; - if (!internalGetProudSkillExtraLevel().equals( - other.internalGetProudSkillExtraLevel())) return false; - if (getIsFocusFieldNumber() - != other.getIsFocusFieldNumber()) return false; - if (getAvatarType() - != other.getAvatarType()) return false; - if (!getTeamResonanceListList() - .equals(other.getTeamResonanceListList())) return false; - if (getWearingFlycloakId() - != other.getWearingFlycloakId()) return false; - if (!getEquipAffixListList() - .equals(other.getEquipAffixListList())) return false; - if (getBornTime() - != other.getBornTime()) return false; - if (!getPendingPromoteRewardListFieldNumberList() - .equals(other.getPendingPromoteRewardListFieldNumberList())) return false; - if (getCostumeId() - != other.getCostumeId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AVATARID_FIELD_NUMBER; - hash = (53 * hash) + getAvatarId(); - hash = (37 * hash) + GUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGuid()); - if (!internalGetPropMap().getMap().isEmpty()) { - hash = (37 * hash) + PROPMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetPropMap().hashCode(); - } - hash = (37 * hash) + LIFESTATE_FIELD_NUMBER; - hash = (53 * hash) + getLifeState(); - if (getEquipGuidListCount() > 0) { - hash = (37 * hash) + EQUIPGUIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getEquipGuidListList().hashCode(); - } - if (getTalentIdListCount() > 0) { - hash = (37 * hash) + TALENTIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getTalentIdListList().hashCode(); - } - if (!internalGetFightPropMap().getMap().isEmpty()) { - hash = (37 * hash) + FIGHTPROPMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetFightPropMap().hashCode(); - } - if (hasTrialAvatarInfoField()) { - hash = (37 * hash) + TRIALAVATARINFOFIELD_FIELD_NUMBER; - hash = (53 * hash) + getTrialAvatarInfoField().hashCode(); - } - if (!internalGetSkillMap().getMap().isEmpty()) { - hash = (37 * hash) + SKILLMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetSkillMap().hashCode(); - } - hash = (37 * hash) + SKILLDEPOTID_FIELD_NUMBER; - hash = (53 * hash) + getSkillDepotId(); - if (hasFetterInfo()) { - hash = (37 * hash) + FETTERINFO_FIELD_NUMBER; - hash = (53 * hash) + getFetterInfo().hashCode(); - } - hash = (37 * hash) + COREPROUDSKILLLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getCoreProudSkillLevel(); - if (getInherentProudSkillListCount() > 0) { - hash = (37 * hash) + INHERENTPROUDSKILLLIST_FIELD_NUMBER; - hash = (53 * hash) + getInherentProudSkillListList().hashCode(); - } - if (!internalGetSkillLevelMap().getMap().isEmpty()) { - hash = (37 * hash) + SKILLLEVELMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetSkillLevelMap().hashCode(); - } - hash = (37 * hash) + EXPEDITIONSTATE_FIELD_NUMBER; - hash = (53 * hash) + expeditionState_; - if (!internalGetProudSkillExtraLevel().getMap().isEmpty()) { - hash = (37 * hash) + PROUDSKILLEXTRALEVEL_FIELD_NUMBER; - hash = (53 * hash) + internalGetProudSkillExtraLevel().hashCode(); - } - hash = (37 * hash) + ISFOCUSFIELDNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsFocusFieldNumber()); - hash = (37 * hash) + AVATARTYPE_FIELD_NUMBER; - hash = (53 * hash) + getAvatarType(); - if (getTeamResonanceListCount() > 0) { - hash = (37 * hash) + TEAMRESONANCELIST_FIELD_NUMBER; - hash = (53 * hash) + getTeamResonanceListList().hashCode(); - } - hash = (37 * hash) + WEARINGFLYCLOAKID_FIELD_NUMBER; - hash = (53 * hash) + getWearingFlycloakId(); - if (getEquipAffixListCount() > 0) { - hash = (37 * hash) + EQUIPAFFIXLIST_FIELD_NUMBER; - hash = (53 * hash) + getEquipAffixListList().hashCode(); - } - hash = (37 * hash) + BORNTIME_FIELD_NUMBER; - hash = (53 * hash) + getBornTime(); - if (getPendingPromoteRewardListFieldNumberCount() > 0) { - hash = (37 * hash) + PENDINGPROMOTEREWARDLISTFIELDNUMBER_FIELD_NUMBER; - hash = (53 * hash) + getPendingPromoteRewardListFieldNumberList().hashCode(); - } - hash = (37 * hash) + COSTUMEID_FIELD_NUMBER; - hash = (53 * hash) + getCostumeId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarInfo) - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarInfoOuterClass.internal_static_AvatarInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetPropMap(); - case 7: - return internalGetFightPropMap(); - case 10: - return internalGetSkillMap(); - case 15: - return internalGetSkillLevelMap(); - case 17: - return internalGetProudSkillExtraLevel(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 3: - return internalGetMutablePropMap(); - case 7: - return internalGetMutableFightPropMap(); - case 10: - return internalGetMutableSkillMap(); - case 15: - return internalGetMutableSkillLevelMap(); - case 17: - return internalGetMutableProudSkillExtraLevel(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarInfoOuterClass.internal_static_AvatarInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.class, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEquipAffixListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - avatarId_ = 0; - - guid_ = 0L; - - internalGetMutablePropMap().clear(); - lifeState_ = 0; - - equipGuidList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000002); - talentIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000004); - internalGetMutableFightPropMap().clear(); - if (trialAvatarInfoFieldBuilder_ == null) { - trialAvatarInfoField_ = null; - } else { - trialAvatarInfoField_ = null; - trialAvatarInfoFieldBuilder_ = null; - } - internalGetMutableSkillMap().clear(); - skillDepotId_ = 0; - - if (fetterInfoBuilder_ == null) { - fetterInfo_ = null; - } else { - fetterInfo_ = null; - fetterInfoBuilder_ = null; - } - coreProudSkillLevel_ = 0; - - inherentProudSkillList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000020); - internalGetMutableSkillLevelMap().clear(); - expeditionState_ = 0; - - internalGetMutableProudSkillExtraLevel().clear(); - isFocusFieldNumber_ = false; - - avatarType_ = 0; - - teamResonanceList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000100); - wearingFlycloakId_ = 0; - - if (equipAffixListBuilder_ == null) { - equipAffixList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - } else { - equipAffixListBuilder_.clear(); - } - bornTime_ = 0; - - pendingPromoteRewardListFieldNumber_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000400); - costumeId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarInfoOuterClass.internal_static_AvatarInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo build() { - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo buildPartial() { - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo result = new emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo(this); - int from_bitField0_ = bitField0_; - result.avatarId_ = avatarId_; - result.guid_ = guid_; - result.propMap_ = internalGetPropMap(); - result.propMap_.makeImmutable(); - result.lifeState_ = lifeState_; - if (((bitField0_ & 0x00000002) != 0)) { - equipGuidList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.equipGuidList_ = equipGuidList_; - if (((bitField0_ & 0x00000004) != 0)) { - talentIdList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.talentIdList_ = talentIdList_; - result.fightPropMap_ = internalGetFightPropMap(); - result.fightPropMap_.makeImmutable(); - if (trialAvatarInfoFieldBuilder_ == null) { - result.trialAvatarInfoField_ = trialAvatarInfoField_; - } else { - result.trialAvatarInfoField_ = trialAvatarInfoFieldBuilder_.build(); - } - result.skillMap_ = internalGetSkillMap(); - result.skillMap_.makeImmutable(); - result.skillDepotId_ = skillDepotId_; - if (fetterInfoBuilder_ == null) { - result.fetterInfo_ = fetterInfo_; - } else { - result.fetterInfo_ = fetterInfoBuilder_.build(); - } - result.coreProudSkillLevel_ = coreProudSkillLevel_; - if (((bitField0_ & 0x00000020) != 0)) { - inherentProudSkillList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.inherentProudSkillList_ = inherentProudSkillList_; - result.skillLevelMap_ = internalGetSkillLevelMap(); - result.skillLevelMap_.makeImmutable(); - result.expeditionState_ = expeditionState_; - result.proudSkillExtraLevel_ = internalGetProudSkillExtraLevel(); - result.proudSkillExtraLevel_.makeImmutable(); - result.isFocusFieldNumber_ = isFocusFieldNumber_; - result.avatarType_ = avatarType_; - if (((bitField0_ & 0x00000100) != 0)) { - teamResonanceList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000100); - } - result.teamResonanceList_ = teamResonanceList_; - result.wearingFlycloakId_ = wearingFlycloakId_; - if (equipAffixListBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0)) { - equipAffixList_ = java.util.Collections.unmodifiableList(equipAffixList_); - bitField0_ = (bitField0_ & ~0x00000200); - } - result.equipAffixList_ = equipAffixList_; - } else { - result.equipAffixList_ = equipAffixListBuilder_.build(); - } - result.bornTime_ = bornTime_; - if (((bitField0_ & 0x00000400) != 0)) { - pendingPromoteRewardListFieldNumber_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000400); - } - result.pendingPromoteRewardListFieldNumber_ = pendingPromoteRewardListFieldNumber_; - result.costumeId_ = costumeId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo) { - return mergeFrom((emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo other) { - if (other == emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.getDefaultInstance()) return this; - if (other.getAvatarId() != 0) { - setAvatarId(other.getAvatarId()); - } - if (other.getGuid() != 0L) { - setGuid(other.getGuid()); - } - internalGetMutablePropMap().mergeFrom( - other.internalGetPropMap()); - if (other.getLifeState() != 0) { - setLifeState(other.getLifeState()); - } - if (!other.equipGuidList_.isEmpty()) { - if (equipGuidList_.isEmpty()) { - equipGuidList_ = other.equipGuidList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureEquipGuidListIsMutable(); - equipGuidList_.addAll(other.equipGuidList_); - } - onChanged(); - } - if (!other.talentIdList_.isEmpty()) { - if (talentIdList_.isEmpty()) { - talentIdList_ = other.talentIdList_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureTalentIdListIsMutable(); - talentIdList_.addAll(other.talentIdList_); - } - onChanged(); - } - internalGetMutableFightPropMap().mergeFrom( - other.internalGetFightPropMap()); - if (other.hasTrialAvatarInfoField()) { - mergeTrialAvatarInfoField(other.getTrialAvatarInfoField()); - } - internalGetMutableSkillMap().mergeFrom( - other.internalGetSkillMap()); - if (other.getSkillDepotId() != 0) { - setSkillDepotId(other.getSkillDepotId()); - } - if (other.hasFetterInfo()) { - mergeFetterInfo(other.getFetterInfo()); - } - if (other.getCoreProudSkillLevel() != 0) { - setCoreProudSkillLevel(other.getCoreProudSkillLevel()); - } - if (!other.inherentProudSkillList_.isEmpty()) { - if (inherentProudSkillList_.isEmpty()) { - inherentProudSkillList_ = other.inherentProudSkillList_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureInherentProudSkillListIsMutable(); - inherentProudSkillList_.addAll(other.inherentProudSkillList_); - } - onChanged(); - } - internalGetMutableSkillLevelMap().mergeFrom( - other.internalGetSkillLevelMap()); - if (other.expeditionState_ != 0) { - setExpeditionStateValue(other.getExpeditionStateValue()); - } - internalGetMutableProudSkillExtraLevel().mergeFrom( - other.internalGetProudSkillExtraLevel()); - if (other.getIsFocusFieldNumber() != false) { - setIsFocusFieldNumber(other.getIsFocusFieldNumber()); - } - if (other.getAvatarType() != 0) { - setAvatarType(other.getAvatarType()); - } - if (!other.teamResonanceList_.isEmpty()) { - if (teamResonanceList_.isEmpty()) { - teamResonanceList_ = other.teamResonanceList_; - bitField0_ = (bitField0_ & ~0x00000100); - } else { - ensureTeamResonanceListIsMutable(); - teamResonanceList_.addAll(other.teamResonanceList_); - } - onChanged(); - } - if (other.getWearingFlycloakId() != 0) { - setWearingFlycloakId(other.getWearingFlycloakId()); - } - if (equipAffixListBuilder_ == null) { - if (!other.equipAffixList_.isEmpty()) { - if (equipAffixList_.isEmpty()) { - equipAffixList_ = other.equipAffixList_; - bitField0_ = (bitField0_ & ~0x00000200); - } else { - ensureEquipAffixListIsMutable(); - equipAffixList_.addAll(other.equipAffixList_); - } - onChanged(); - } - } else { - if (!other.equipAffixList_.isEmpty()) { - if (equipAffixListBuilder_.isEmpty()) { - equipAffixListBuilder_.dispose(); - equipAffixListBuilder_ = null; - equipAffixList_ = other.equipAffixList_; - bitField0_ = (bitField0_ & ~0x00000200); - equipAffixListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEquipAffixListFieldBuilder() : null; - } else { - equipAffixListBuilder_.addAllMessages(other.equipAffixList_); - } - } - } - if (other.getBornTime() != 0) { - setBornTime(other.getBornTime()); - } - if (!other.pendingPromoteRewardListFieldNumber_.isEmpty()) { - if (pendingPromoteRewardListFieldNumber_.isEmpty()) { - pendingPromoteRewardListFieldNumber_ = other.pendingPromoteRewardListFieldNumber_; - bitField0_ = (bitField0_ & ~0x00000400); - } else { - ensurePendingPromoteRewardListFieldNumberIsMutable(); - pendingPromoteRewardListFieldNumber_.addAll(other.pendingPromoteRewardListFieldNumber_); - } - onChanged(); - } - if (other.getCostumeId() != 0) { - setCostumeId(other.getCostumeId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int avatarId_ ; - /** - * <code>uint32 avatarId = 1;</code> - * @return The avatarId. - */ - @java.lang.Override - public int getAvatarId() { - return avatarId_; - } - /** - * <code>uint32 avatarId = 1;</code> - * @param value The avatarId to set. - * @return This builder for chaining. - */ - public Builder setAvatarId(int value) { - - avatarId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 avatarId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarId() { - - avatarId_ = 0; - onChanged(); - return this; - } - - private long guid_ ; - /** - * <code>uint64 guid = 2;</code> - * @return The guid. - */ - @java.lang.Override - public long getGuid() { - return guid_; - } - /** - * <code>uint64 guid = 2;</code> - * @param value The guid to set. - * @return This builder for chaining. - */ - public Builder setGuid(long value) { - - guid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 guid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearGuid() { - - guid_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> propMap_; - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - internalGetPropMap() { - if (propMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropMapDefaultEntryHolder.defaultEntry); - } - return propMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - internalGetMutablePropMap() { - onChanged();; - if (propMap_ == null) { - propMap_ = com.google.protobuf.MapField.newMapField( - PropMapDefaultEntryHolder.defaultEntry); - } - if (!propMap_.isMutable()) { - propMap_ = propMap_.copy(); - } - return propMap_; - } - - public int getPropMapCount() { - return internalGetPropMap().getMap().size(); - } - /** - * <code>map<uint32, .PropValue> propMap = 3;</code> - */ - - @java.lang.Override - public boolean containsPropMap( - int key) { - - return internalGetPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> getPropMap() { - return getPropMapMap(); - } - /** - * <code>map<uint32, .PropValue> propMap = 3;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> getPropMapMap() { - return internalGetPropMap().getMap(); - } - /** - * <code>map<uint32, .PropValue> propMap = 3;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrDefault( - int key, - emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> map = - internalGetPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, .PropValue> propMap = 3;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> map = - internalGetPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearPropMap() { - internalGetMutablePropMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, .PropValue> propMap = 3;</code> - */ - - public Builder removePropMap( - int key) { - - internalGetMutablePropMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - getMutablePropMap() { - return internalGetMutablePropMap().getMutableMap(); - } - /** - * <code>map<uint32, .PropValue> propMap = 3;</code> - */ - public Builder putPropMap( - int key, - emu.grasscutter.net.proto.PropValueOuterClass.PropValue value) { - - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutablePropMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, .PropValue> propMap = 3;</code> - */ - - public Builder putAllPropMap( - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> values) { - internalGetMutablePropMap().getMutableMap() - .putAll(values); - return this; - } - - private int lifeState_ ; - /** - * <code>uint32 lifeState = 4;</code> - * @return The lifeState. - */ - @java.lang.Override - public int getLifeState() { - return lifeState_; - } - /** - * <code>uint32 lifeState = 4;</code> - * @param value The lifeState to set. - * @return This builder for chaining. - */ - public Builder setLifeState(int value) { - - lifeState_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 lifeState = 4;</code> - * @return This builder for chaining. - */ - public Builder clearLifeState() { - - lifeState_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList equipGuidList_ = emptyLongList(); - private void ensureEquipGuidListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - equipGuidList_ = mutableCopy(equipGuidList_); - bitField0_ |= 0x00000002; - } - } - /** - * <code>repeated uint64 equipGuidList = 5;</code> - * @return A list containing the equipGuidList. - */ - public java.util.List<java.lang.Long> - getEquipGuidListList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(equipGuidList_) : equipGuidList_; - } - /** - * <code>repeated uint64 equipGuidList = 5;</code> - * @return The count of equipGuidList. - */ - public int getEquipGuidListCount() { - return equipGuidList_.size(); - } - /** - * <code>repeated uint64 equipGuidList = 5;</code> - * @param index The index of the element to return. - * @return The equipGuidList at the given index. - */ - public long getEquipGuidList(int index) { - return equipGuidList_.getLong(index); - } - /** - * <code>repeated uint64 equipGuidList = 5;</code> - * @param index The index to set the value at. - * @param value The equipGuidList to set. - * @return This builder for chaining. - */ - public Builder setEquipGuidList( - int index, long value) { - ensureEquipGuidListIsMutable(); - equipGuidList_.setLong(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint64 equipGuidList = 5;</code> - * @param value The equipGuidList to add. - * @return This builder for chaining. - */ - public Builder addEquipGuidList(long value) { - ensureEquipGuidListIsMutable(); - equipGuidList_.addLong(value); - onChanged(); - return this; - } - /** - * <code>repeated uint64 equipGuidList = 5;</code> - * @param values The equipGuidList to add. - * @return This builder for chaining. - */ - public Builder addAllEquipGuidList( - java.lang.Iterable<? extends java.lang.Long> values) { - ensureEquipGuidListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, equipGuidList_); - onChanged(); - return this; - } - /** - * <code>repeated uint64 equipGuidList = 5;</code> - * @return This builder for chaining. - */ - public Builder clearEquipGuidList() { - equipGuidList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList talentIdList_ = emptyIntList(); - private void ensureTalentIdListIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - talentIdList_ = mutableCopy(talentIdList_); - bitField0_ |= 0x00000004; - } - } - /** - * <code>repeated uint32 talentIdList = 6;</code> - * @return A list containing the talentIdList. - */ - public java.util.List<java.lang.Integer> - getTalentIdListList() { - return ((bitField0_ & 0x00000004) != 0) ? - java.util.Collections.unmodifiableList(talentIdList_) : talentIdList_; - } - /** - * <code>repeated uint32 talentIdList = 6;</code> - * @return The count of talentIdList. - */ - public int getTalentIdListCount() { - return talentIdList_.size(); - } - /** - * <code>repeated uint32 talentIdList = 6;</code> - * @param index The index of the element to return. - * @return The talentIdList at the given index. - */ - public int getTalentIdList(int index) { - return talentIdList_.getInt(index); - } - /** - * <code>repeated uint32 talentIdList = 6;</code> - * @param index The index to set the value at. - * @param value The talentIdList to set. - * @return This builder for chaining. - */ - public Builder setTalentIdList( - int index, int value) { - ensureTalentIdListIsMutable(); - talentIdList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 talentIdList = 6;</code> - * @param value The talentIdList to add. - * @return This builder for chaining. - */ - public Builder addTalentIdList(int value) { - ensureTalentIdListIsMutable(); - talentIdList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 talentIdList = 6;</code> - * @param values The talentIdList to add. - * @return This builder for chaining. - */ - public Builder addAllTalentIdList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureTalentIdListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, talentIdList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 talentIdList = 6;</code> - * @return This builder for chaining. - */ - public Builder clearTalentIdList() { - talentIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Float> fightPropMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Float> - internalGetFightPropMap() { - if (fightPropMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FightPropMapDefaultEntryHolder.defaultEntry); - } - return fightPropMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Float> - internalGetMutableFightPropMap() { - onChanged();; - if (fightPropMap_ == null) { - fightPropMap_ = com.google.protobuf.MapField.newMapField( - FightPropMapDefaultEntryHolder.defaultEntry); - } - if (!fightPropMap_.isMutable()) { - fightPropMap_ = fightPropMap_.copy(); - } - return fightPropMap_; - } - - public int getFightPropMapCount() { - return internalGetFightPropMap().getMap().size(); - } - /** - * <code>map<uint32, float> fightPropMap = 7;</code> - */ - - @java.lang.Override - public boolean containsFightPropMap( - int key) { - - return internalGetFightPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getFightPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Float> getFightPropMap() { - return getFightPropMapMap(); - } - /** - * <code>map<uint32, float> fightPropMap = 7;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Float> getFightPropMapMap() { - return internalGetFightPropMap().getMap(); - } - /** - * <code>map<uint32, float> fightPropMap = 7;</code> - */ - @java.lang.Override - - public float getFightPropMapOrDefault( - int key, - float defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Float> map = - internalGetFightPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, float> fightPropMap = 7;</code> - */ - @java.lang.Override - - public float getFightPropMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Float> map = - internalGetFightPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearFightPropMap() { - internalGetMutableFightPropMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, float> fightPropMap = 7;</code> - */ - - public Builder removeFightPropMap( - int key) { - - internalGetMutableFightPropMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Float> - getMutableFightPropMap() { - return internalGetMutableFightPropMap().getMutableMap(); - } - /** - * <code>map<uint32, float> fightPropMap = 7;</code> - */ - public Builder putFightPropMap( - int key, - float value) { - - - internalGetMutableFightPropMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, float> fightPropMap = 7;</code> - */ - - public Builder putAllFightPropMap( - java.util.Map<java.lang.Integer, java.lang.Float> values) { - internalGetMutableFightPropMap().getMutableMap() - .putAll(values); - return this; - } - - private emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo trialAvatarInfoField_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo, emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo.Builder, emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfoOrBuilder> trialAvatarInfoFieldBuilder_; - /** - * <code>.TrialAvatarInfo trialAvatarInfoField = 9;</code> - * @return Whether the trialAvatarInfoField field is set. - */ - public boolean hasTrialAvatarInfoField() { - return trialAvatarInfoFieldBuilder_ != null || trialAvatarInfoField_ != null; - } - /** - * <code>.TrialAvatarInfo trialAvatarInfoField = 9;</code> - * @return The trialAvatarInfoField. - */ - public emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo getTrialAvatarInfoField() { - if (trialAvatarInfoFieldBuilder_ == null) { - return trialAvatarInfoField_ == null ? emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo.getDefaultInstance() : trialAvatarInfoField_; - } else { - return trialAvatarInfoFieldBuilder_.getMessage(); - } - } - /** - * <code>.TrialAvatarInfo trialAvatarInfoField = 9;</code> - */ - public Builder setTrialAvatarInfoField(emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo value) { - if (trialAvatarInfoFieldBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - trialAvatarInfoField_ = value; - onChanged(); - } else { - trialAvatarInfoFieldBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.TrialAvatarInfo trialAvatarInfoField = 9;</code> - */ - public Builder setTrialAvatarInfoField( - emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo.Builder builderForValue) { - if (trialAvatarInfoFieldBuilder_ == null) { - trialAvatarInfoField_ = builderForValue.build(); - onChanged(); - } else { - trialAvatarInfoFieldBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.TrialAvatarInfo trialAvatarInfoField = 9;</code> - */ - public Builder mergeTrialAvatarInfoField(emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo value) { - if (trialAvatarInfoFieldBuilder_ == null) { - if (trialAvatarInfoField_ != null) { - trialAvatarInfoField_ = - emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo.newBuilder(trialAvatarInfoField_).mergeFrom(value).buildPartial(); - } else { - trialAvatarInfoField_ = value; - } - onChanged(); - } else { - trialAvatarInfoFieldBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.TrialAvatarInfo trialAvatarInfoField = 9;</code> - */ - public Builder clearTrialAvatarInfoField() { - if (trialAvatarInfoFieldBuilder_ == null) { - trialAvatarInfoField_ = null; - onChanged(); - } else { - trialAvatarInfoField_ = null; - trialAvatarInfoFieldBuilder_ = null; - } - - return this; - } - /** - * <code>.TrialAvatarInfo trialAvatarInfoField = 9;</code> - */ - public emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo.Builder getTrialAvatarInfoFieldBuilder() { - - onChanged(); - return getTrialAvatarInfoFieldFieldBuilder().getBuilder(); - } - /** - * <code>.TrialAvatarInfo trialAvatarInfoField = 9;</code> - */ - public emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfoOrBuilder getTrialAvatarInfoFieldOrBuilder() { - if (trialAvatarInfoFieldBuilder_ != null) { - return trialAvatarInfoFieldBuilder_.getMessageOrBuilder(); - } else { - return trialAvatarInfoField_ == null ? - emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo.getDefaultInstance() : trialAvatarInfoField_; - } - } - /** - * <code>.TrialAvatarInfo trialAvatarInfoField = 9;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo, emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo.Builder, emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfoOrBuilder> - getTrialAvatarInfoFieldFieldBuilder() { - if (trialAvatarInfoFieldBuilder_ == null) { - trialAvatarInfoFieldBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo, emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo.Builder, emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfoOrBuilder>( - getTrialAvatarInfoField(), - getParentForChildren(), - isClean()); - trialAvatarInfoField_ = null; - } - return trialAvatarInfoFieldBuilder_; - } - - private com.google.protobuf.MapField< - java.lang.Integer, emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo> skillMap_; - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo> - internalGetSkillMap() { - if (skillMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SkillMapDefaultEntryHolder.defaultEntry); - } - return skillMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo> - internalGetMutableSkillMap() { - onChanged();; - if (skillMap_ == null) { - skillMap_ = com.google.protobuf.MapField.newMapField( - SkillMapDefaultEntryHolder.defaultEntry); - } - if (!skillMap_.isMutable()) { - skillMap_ = skillMap_.copy(); - } - return skillMap_; - } - - public int getSkillMapCount() { - return internalGetSkillMap().getMap().size(); - } - /** - * <code>map<uint32, .AvatarSkillInfo> skillMap = 10;</code> - */ - - @java.lang.Override - public boolean containsSkillMap( - int key) { - - return internalGetSkillMap().getMap().containsKey(key); - } - /** - * Use {@link #getSkillMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo> getSkillMap() { - return getSkillMapMap(); - } - /** - * <code>map<uint32, .AvatarSkillInfo> skillMap = 10;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo> getSkillMapMap() { - return internalGetSkillMap().getMap(); - } - /** - * <code>map<uint32, .AvatarSkillInfo> skillMap = 10;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo getSkillMapOrDefault( - int key, - emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo defaultValue) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo> map = - internalGetSkillMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, .AvatarSkillInfo> skillMap = 10;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo getSkillMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo> map = - internalGetSkillMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearSkillMap() { - internalGetMutableSkillMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, .AvatarSkillInfo> skillMap = 10;</code> - */ - - public Builder removeSkillMap( - int key) { - - internalGetMutableSkillMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo> - getMutableSkillMap() { - return internalGetMutableSkillMap().getMutableMap(); - } - /** - * <code>map<uint32, .AvatarSkillInfo> skillMap = 10;</code> - */ - public Builder putSkillMap( - int key, - emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo value) { - - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableSkillMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, .AvatarSkillInfo> skillMap = 10;</code> - */ - - public Builder putAllSkillMap( - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo> values) { - internalGetMutableSkillMap().getMutableMap() - .putAll(values); - return this; - } - - private int skillDepotId_ ; - /** - * <code>uint32 skillDepotId = 11;</code> - * @return The skillDepotId. - */ - @java.lang.Override - public int getSkillDepotId() { - return skillDepotId_; - } - /** - * <code>uint32 skillDepotId = 11;</code> - * @param value The skillDepotId to set. - * @return This builder for chaining. - */ - public Builder setSkillDepotId(int value) { - - skillDepotId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 skillDepotId = 11;</code> - * @return This builder for chaining. - */ - public Builder clearSkillDepotId() { - - skillDepotId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo fetterInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo.Builder, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfoOrBuilder> fetterInfoBuilder_; - /** - * <code>.AvatarFetterInfo fetterInfo = 12;</code> - * @return Whether the fetterInfo field is set. - */ - public boolean hasFetterInfo() { - return fetterInfoBuilder_ != null || fetterInfo_ != null; - } - /** - * <code>.AvatarFetterInfo fetterInfo = 12;</code> - * @return The fetterInfo. - */ - public emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo getFetterInfo() { - if (fetterInfoBuilder_ == null) { - return fetterInfo_ == null ? emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo.getDefaultInstance() : fetterInfo_; - } else { - return fetterInfoBuilder_.getMessage(); - } - } - /** - * <code>.AvatarFetterInfo fetterInfo = 12;</code> - */ - public Builder setFetterInfo(emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo value) { - if (fetterInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fetterInfo_ = value; - onChanged(); - } else { - fetterInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.AvatarFetterInfo fetterInfo = 12;</code> - */ - public Builder setFetterInfo( - emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo.Builder builderForValue) { - if (fetterInfoBuilder_ == null) { - fetterInfo_ = builderForValue.build(); - onChanged(); - } else { - fetterInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.AvatarFetterInfo fetterInfo = 12;</code> - */ - public Builder mergeFetterInfo(emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo value) { - if (fetterInfoBuilder_ == null) { - if (fetterInfo_ != null) { - fetterInfo_ = - emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo.newBuilder(fetterInfo_).mergeFrom(value).buildPartial(); - } else { - fetterInfo_ = value; - } - onChanged(); - } else { - fetterInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.AvatarFetterInfo fetterInfo = 12;</code> - */ - public Builder clearFetterInfo() { - if (fetterInfoBuilder_ == null) { - fetterInfo_ = null; - onChanged(); - } else { - fetterInfo_ = null; - fetterInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.AvatarFetterInfo fetterInfo = 12;</code> - */ - public emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo.Builder getFetterInfoBuilder() { - - onChanged(); - return getFetterInfoFieldBuilder().getBuilder(); - } - /** - * <code>.AvatarFetterInfo fetterInfo = 12;</code> - */ - public emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfoOrBuilder getFetterInfoOrBuilder() { - if (fetterInfoBuilder_ != null) { - return fetterInfoBuilder_.getMessageOrBuilder(); - } else { - return fetterInfo_ == null ? - emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo.getDefaultInstance() : fetterInfo_; - } - } - /** - * <code>.AvatarFetterInfo fetterInfo = 12;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo.Builder, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfoOrBuilder> - getFetterInfoFieldBuilder() { - if (fetterInfoBuilder_ == null) { - fetterInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo.Builder, emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfoOrBuilder>( - getFetterInfo(), - getParentForChildren(), - isClean()); - fetterInfo_ = null; - } - return fetterInfoBuilder_; - } - - private int coreProudSkillLevel_ ; - /** - * <code>uint32 coreProudSkillLevel = 13;</code> - * @return The coreProudSkillLevel. - */ - @java.lang.Override - public int getCoreProudSkillLevel() { - return coreProudSkillLevel_; - } - /** - * <code>uint32 coreProudSkillLevel = 13;</code> - * @param value The coreProudSkillLevel to set. - * @return This builder for chaining. - */ - public Builder setCoreProudSkillLevel(int value) { - - coreProudSkillLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 coreProudSkillLevel = 13;</code> - * @return This builder for chaining. - */ - public Builder clearCoreProudSkillLevel() { - - coreProudSkillLevel_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList inherentProudSkillList_ = emptyIntList(); - private void ensureInherentProudSkillListIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - inherentProudSkillList_ = mutableCopy(inherentProudSkillList_); - bitField0_ |= 0x00000020; - } - } - /** - * <code>repeated uint32 inherentProudSkillList = 14;</code> - * @return A list containing the inherentProudSkillList. - */ - public java.util.List<java.lang.Integer> - getInherentProudSkillListList() { - return ((bitField0_ & 0x00000020) != 0) ? - java.util.Collections.unmodifiableList(inherentProudSkillList_) : inherentProudSkillList_; - } - /** - * <code>repeated uint32 inherentProudSkillList = 14;</code> - * @return The count of inherentProudSkillList. - */ - public int getInherentProudSkillListCount() { - return inherentProudSkillList_.size(); - } - /** - * <code>repeated uint32 inherentProudSkillList = 14;</code> - * @param index The index of the element to return. - * @return The inherentProudSkillList at the given index. - */ - public int getInherentProudSkillList(int index) { - return inherentProudSkillList_.getInt(index); - } - /** - * <code>repeated uint32 inherentProudSkillList = 14;</code> - * @param index The index to set the value at. - * @param value The inherentProudSkillList to set. - * @return This builder for chaining. - */ - public Builder setInherentProudSkillList( - int index, int value) { - ensureInherentProudSkillListIsMutable(); - inherentProudSkillList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 inherentProudSkillList = 14;</code> - * @param value The inherentProudSkillList to add. - * @return This builder for chaining. - */ - public Builder addInherentProudSkillList(int value) { - ensureInherentProudSkillListIsMutable(); - inherentProudSkillList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 inherentProudSkillList = 14;</code> - * @param values The inherentProudSkillList to add. - * @return This builder for chaining. - */ - public Builder addAllInherentProudSkillList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureInherentProudSkillListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, inherentProudSkillList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 inherentProudSkillList = 14;</code> - * @return This builder for chaining. - */ - public Builder clearInherentProudSkillList() { - inherentProudSkillList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> skillLevelMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetSkillLevelMap() { - if (skillLevelMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SkillLevelMapDefaultEntryHolder.defaultEntry); - } - return skillLevelMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetMutableSkillLevelMap() { - onChanged();; - if (skillLevelMap_ == null) { - skillLevelMap_ = com.google.protobuf.MapField.newMapField( - SkillLevelMapDefaultEntryHolder.defaultEntry); - } - if (!skillLevelMap_.isMutable()) { - skillLevelMap_ = skillLevelMap_.copy(); - } - return skillLevelMap_; - } - - public int getSkillLevelMapCount() { - return internalGetSkillLevelMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> skillLevelMap = 15;</code> - */ - - @java.lang.Override - public boolean containsSkillLevelMap( - int key) { - - return internalGetSkillLevelMap().getMap().containsKey(key); - } - /** - * Use {@link #getSkillLevelMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillLevelMap() { - return getSkillLevelMapMap(); - } - /** - * <code>map<uint32, uint32> skillLevelMap = 15;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillLevelMapMap() { - return internalGetSkillLevelMap().getMap(); - } - /** - * <code>map<uint32, uint32> skillLevelMap = 15;</code> - */ - @java.lang.Override - - public int getSkillLevelMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkillLevelMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> skillLevelMap = 15;</code> - */ - @java.lang.Override - - public int getSkillLevelMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkillLevelMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearSkillLevelMap() { - internalGetMutableSkillLevelMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, uint32> skillLevelMap = 15;</code> - */ - - public Builder removeSkillLevelMap( - int key) { - - internalGetMutableSkillLevelMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> - getMutableSkillLevelMap() { - return internalGetMutableSkillLevelMap().getMutableMap(); - } - /** - * <code>map<uint32, uint32> skillLevelMap = 15;</code> - */ - public Builder putSkillLevelMap( - int key, - int value) { - - - internalGetMutableSkillLevelMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, uint32> skillLevelMap = 15;</code> - */ - - public Builder putAllSkillLevelMap( - java.util.Map<java.lang.Integer, java.lang.Integer> values) { - internalGetMutableSkillLevelMap().getMutableMap() - .putAll(values); - return this; - } - - private int expeditionState_ = 0; - /** - * <code>.AvatarExpeditionState expeditionState = 16;</code> - * @return The enum numeric value on the wire for expeditionState. - */ - @java.lang.Override public int getExpeditionStateValue() { - return expeditionState_; - } - /** - * <code>.AvatarExpeditionState expeditionState = 16;</code> - * @param value The enum numeric value on the wire for expeditionState to set. - * @return This builder for chaining. - */ - public Builder setExpeditionStateValue(int value) { - - expeditionState_ = value; - onChanged(); - return this; - } - /** - * <code>.AvatarExpeditionState expeditionState = 16;</code> - * @return The expeditionState. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AvatarExpeditionStateOuterClass.AvatarExpeditionState getExpeditionState() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.AvatarExpeditionStateOuterClass.AvatarExpeditionState result = emu.grasscutter.net.proto.AvatarExpeditionStateOuterClass.AvatarExpeditionState.valueOf(expeditionState_); - return result == null ? emu.grasscutter.net.proto.AvatarExpeditionStateOuterClass.AvatarExpeditionState.UNRECOGNIZED : result; - } - /** - * <code>.AvatarExpeditionState expeditionState = 16;</code> - * @param value The expeditionState to set. - * @return This builder for chaining. - */ - public Builder setExpeditionState(emu.grasscutter.net.proto.AvatarExpeditionStateOuterClass.AvatarExpeditionState value) { - if (value == null) { - throw new NullPointerException(); - } - - expeditionState_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.AvatarExpeditionState expeditionState = 16;</code> - * @return This builder for chaining. - */ - public Builder clearExpeditionState() { - - expeditionState_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> proudSkillExtraLevel_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetProudSkillExtraLevel() { - if (proudSkillExtraLevel_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ProudSkillExtraLevelDefaultEntryHolder.defaultEntry); - } - return proudSkillExtraLevel_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetMutableProudSkillExtraLevel() { - onChanged();; - if (proudSkillExtraLevel_ == null) { - proudSkillExtraLevel_ = com.google.protobuf.MapField.newMapField( - ProudSkillExtraLevelDefaultEntryHolder.defaultEntry); - } - if (!proudSkillExtraLevel_.isMutable()) { - proudSkillExtraLevel_ = proudSkillExtraLevel_.copy(); - } - return proudSkillExtraLevel_; - } - - public int getProudSkillExtraLevelCount() { - return internalGetProudSkillExtraLevel().getMap().size(); - } - /** - * <code>map<uint32, uint32> proudSkillExtraLevel = 17;</code> - */ - - @java.lang.Override - public boolean containsProudSkillExtraLevel( - int key) { - - return internalGetProudSkillExtraLevel().getMap().containsKey(key); - } - /** - * Use {@link #getProudSkillExtraLevelMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getProudSkillExtraLevel() { - return getProudSkillExtraLevelMap(); - } - /** - * <code>map<uint32, uint32> proudSkillExtraLevel = 17;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getProudSkillExtraLevelMap() { - return internalGetProudSkillExtraLevel().getMap(); - } - /** - * <code>map<uint32, uint32> proudSkillExtraLevel = 17;</code> - */ - @java.lang.Override - - public int getProudSkillExtraLevelOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetProudSkillExtraLevel().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> proudSkillExtraLevel = 17;</code> - */ - @java.lang.Override - - public int getProudSkillExtraLevelOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetProudSkillExtraLevel().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearProudSkillExtraLevel() { - internalGetMutableProudSkillExtraLevel().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, uint32> proudSkillExtraLevel = 17;</code> - */ - - public Builder removeProudSkillExtraLevel( - int key) { - - internalGetMutableProudSkillExtraLevel().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> - getMutableProudSkillExtraLevel() { - return internalGetMutableProudSkillExtraLevel().getMutableMap(); - } - /** - * <code>map<uint32, uint32> proudSkillExtraLevel = 17;</code> - */ - public Builder putProudSkillExtraLevel( - int key, - int value) { - - - internalGetMutableProudSkillExtraLevel().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, uint32> proudSkillExtraLevel = 17;</code> - */ - - public Builder putAllProudSkillExtraLevel( - java.util.Map<java.lang.Integer, java.lang.Integer> values) { - internalGetMutableProudSkillExtraLevel().getMutableMap() - .putAll(values); - return this; - } - - private boolean isFocusFieldNumber_ ; - /** - * <code>bool isFocusFieldNumber = 18;</code> - * @return The isFocusFieldNumber. - */ - @java.lang.Override - public boolean getIsFocusFieldNumber() { - return isFocusFieldNumber_; - } - /** - * <code>bool isFocusFieldNumber = 18;</code> - * @param value The isFocusFieldNumber to set. - * @return This builder for chaining. - */ - public Builder setIsFocusFieldNumber(boolean value) { - - isFocusFieldNumber_ = value; - onChanged(); - return this; - } - /** - * <code>bool isFocusFieldNumber = 18;</code> - * @return This builder for chaining. - */ - public Builder clearIsFocusFieldNumber() { - - isFocusFieldNumber_ = false; - onChanged(); - return this; - } - - private int avatarType_ ; - /** - * <code>uint32 avatarType = 19;</code> - * @return The avatarType. - */ - @java.lang.Override - public int getAvatarType() { - return avatarType_; - } - /** - * <code>uint32 avatarType = 19;</code> - * @param value The avatarType to set. - * @return This builder for chaining. - */ - public Builder setAvatarType(int value) { - - avatarType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 avatarType = 19;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarType() { - - avatarType_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList teamResonanceList_ = emptyIntList(); - private void ensureTeamResonanceListIsMutable() { - if (!((bitField0_ & 0x00000100) != 0)) { - teamResonanceList_ = mutableCopy(teamResonanceList_); - bitField0_ |= 0x00000100; - } - } - /** - * <code>repeated uint32 teamResonanceList = 20;</code> - * @return A list containing the teamResonanceList. - */ - public java.util.List<java.lang.Integer> - getTeamResonanceListList() { - return ((bitField0_ & 0x00000100) != 0) ? - java.util.Collections.unmodifiableList(teamResonanceList_) : teamResonanceList_; - } - /** - * <code>repeated uint32 teamResonanceList = 20;</code> - * @return The count of teamResonanceList. - */ - public int getTeamResonanceListCount() { - return teamResonanceList_.size(); - } - /** - * <code>repeated uint32 teamResonanceList = 20;</code> - * @param index The index of the element to return. - * @return The teamResonanceList at the given index. - */ - public int getTeamResonanceList(int index) { - return teamResonanceList_.getInt(index); - } - /** - * <code>repeated uint32 teamResonanceList = 20;</code> - * @param index The index to set the value at. - * @param value The teamResonanceList to set. - * @return This builder for chaining. - */ - public Builder setTeamResonanceList( - int index, int value) { - ensureTeamResonanceListIsMutable(); - teamResonanceList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 teamResonanceList = 20;</code> - * @param value The teamResonanceList to add. - * @return This builder for chaining. - */ - public Builder addTeamResonanceList(int value) { - ensureTeamResonanceListIsMutable(); - teamResonanceList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 teamResonanceList = 20;</code> - * @param values The teamResonanceList to add. - * @return This builder for chaining. - */ - public Builder addAllTeamResonanceList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureTeamResonanceListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, teamResonanceList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 teamResonanceList = 20;</code> - * @return This builder for chaining. - */ - public Builder clearTeamResonanceList() { - teamResonanceList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - - private int wearingFlycloakId_ ; - /** - * <code>uint32 wearingFlycloakId = 21;</code> - * @return The wearingFlycloakId. - */ - @java.lang.Override - public int getWearingFlycloakId() { - return wearingFlycloakId_; - } - /** - * <code>uint32 wearingFlycloakId = 21;</code> - * @param value The wearingFlycloakId to set. - * @return This builder for chaining. - */ - public Builder setWearingFlycloakId(int value) { - - wearingFlycloakId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 wearingFlycloakId = 21;</code> - * @return This builder for chaining. - */ - public Builder clearWearingFlycloakId() { - - wearingFlycloakId_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo> equipAffixList_ = - java.util.Collections.emptyList(); - private void ensureEquipAffixListIsMutable() { - if (!((bitField0_ & 0x00000200) != 0)) { - equipAffixList_ = new java.util.ArrayList<emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo>(equipAffixList_); - bitField0_ |= 0x00000200; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo, emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo.Builder, emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfoOrBuilder> equipAffixListBuilder_; - - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo> getEquipAffixListList() { - if (equipAffixListBuilder_ == null) { - return java.util.Collections.unmodifiableList(equipAffixList_); - } else { - return equipAffixListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - public int getEquipAffixListCount() { - if (equipAffixListBuilder_ == null) { - return equipAffixList_.size(); - } else { - return equipAffixListBuilder_.getCount(); - } - } - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - public emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo getEquipAffixList(int index) { - if (equipAffixListBuilder_ == null) { - return equipAffixList_.get(index); - } else { - return equipAffixListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - public Builder setEquipAffixList( - int index, emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo value) { - if (equipAffixListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEquipAffixListIsMutable(); - equipAffixList_.set(index, value); - onChanged(); - } else { - equipAffixListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - public Builder setEquipAffixList( - int index, emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo.Builder builderForValue) { - if (equipAffixListBuilder_ == null) { - ensureEquipAffixListIsMutable(); - equipAffixList_.set(index, builderForValue.build()); - onChanged(); - } else { - equipAffixListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - public Builder addEquipAffixList(emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo value) { - if (equipAffixListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEquipAffixListIsMutable(); - equipAffixList_.add(value); - onChanged(); - } else { - equipAffixListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - public Builder addEquipAffixList( - int index, emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo value) { - if (equipAffixListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEquipAffixListIsMutable(); - equipAffixList_.add(index, value); - onChanged(); - } else { - equipAffixListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - public Builder addEquipAffixList( - emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo.Builder builderForValue) { - if (equipAffixListBuilder_ == null) { - ensureEquipAffixListIsMutable(); - equipAffixList_.add(builderForValue.build()); - onChanged(); - } else { - equipAffixListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - public Builder addEquipAffixList( - int index, emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo.Builder builderForValue) { - if (equipAffixListBuilder_ == null) { - ensureEquipAffixListIsMutable(); - equipAffixList_.add(index, builderForValue.build()); - onChanged(); - } else { - equipAffixListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - public Builder addAllEquipAffixList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo> values) { - if (equipAffixListBuilder_ == null) { - ensureEquipAffixListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, equipAffixList_); - onChanged(); - } else { - equipAffixListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - public Builder clearEquipAffixList() { - if (equipAffixListBuilder_ == null) { - equipAffixList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - } else { - equipAffixListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - public Builder removeEquipAffixList(int index) { - if (equipAffixListBuilder_ == null) { - ensureEquipAffixListIsMutable(); - equipAffixList_.remove(index); - onChanged(); - } else { - equipAffixListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - public emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo.Builder getEquipAffixListBuilder( - int index) { - return getEquipAffixListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - public emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfoOrBuilder getEquipAffixListOrBuilder( - int index) { - if (equipAffixListBuilder_ == null) { - return equipAffixList_.get(index); } else { - return equipAffixListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfoOrBuilder> - getEquipAffixListOrBuilderList() { - if (equipAffixListBuilder_ != null) { - return equipAffixListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(equipAffixList_); - } - } - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - public emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo.Builder addEquipAffixListBuilder() { - return getEquipAffixListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo.getDefaultInstance()); - } - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - public emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo.Builder addEquipAffixListBuilder( - int index) { - return getEquipAffixListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo.getDefaultInstance()); - } - /** - * <code>repeated .AvatarEquipAffixInfo equipAffixList = 22;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo.Builder> - getEquipAffixListBuilderList() { - return getEquipAffixListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo, emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo.Builder, emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfoOrBuilder> - getEquipAffixListFieldBuilder() { - if (equipAffixListBuilder_ == null) { - equipAffixListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo, emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo.Builder, emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfoOrBuilder>( - equipAffixList_, - ((bitField0_ & 0x00000200) != 0), - getParentForChildren(), - isClean()); - equipAffixList_ = null; - } - return equipAffixListBuilder_; - } - - private int bornTime_ ; - /** - * <code>uint32 bornTime = 23;</code> - * @return The bornTime. - */ - @java.lang.Override - public int getBornTime() { - return bornTime_; - } - /** - * <code>uint32 bornTime = 23;</code> - * @param value The bornTime to set. - * @return This builder for chaining. - */ - public Builder setBornTime(int value) { - - bornTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 bornTime = 23;</code> - * @return This builder for chaining. - */ - public Builder clearBornTime() { - - bornTime_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList pendingPromoteRewardListFieldNumber_ = emptyIntList(); - private void ensurePendingPromoteRewardListFieldNumberIsMutable() { - if (!((bitField0_ & 0x00000400) != 0)) { - pendingPromoteRewardListFieldNumber_ = mutableCopy(pendingPromoteRewardListFieldNumber_); - bitField0_ |= 0x00000400; - } - } - /** - * <code>repeated uint32 pendingPromoteRewardListFieldNumber = 24;</code> - * @return A list containing the pendingPromoteRewardListFieldNumber. - */ - public java.util.List<java.lang.Integer> - getPendingPromoteRewardListFieldNumberList() { - return ((bitField0_ & 0x00000400) != 0) ? - java.util.Collections.unmodifiableList(pendingPromoteRewardListFieldNumber_) : pendingPromoteRewardListFieldNumber_; - } - /** - * <code>repeated uint32 pendingPromoteRewardListFieldNumber = 24;</code> - * @return The count of pendingPromoteRewardListFieldNumber. - */ - public int getPendingPromoteRewardListFieldNumberCount() { - return pendingPromoteRewardListFieldNumber_.size(); - } - /** - * <code>repeated uint32 pendingPromoteRewardListFieldNumber = 24;</code> - * @param index The index of the element to return. - * @return The pendingPromoteRewardListFieldNumber at the given index. - */ - public int getPendingPromoteRewardListFieldNumber(int index) { - return pendingPromoteRewardListFieldNumber_.getInt(index); - } - /** - * <code>repeated uint32 pendingPromoteRewardListFieldNumber = 24;</code> - * @param index The index to set the value at. - * @param value The pendingPromoteRewardListFieldNumber to set. - * @return This builder for chaining. - */ - public Builder setPendingPromoteRewardListFieldNumber( - int index, int value) { - ensurePendingPromoteRewardListFieldNumberIsMutable(); - pendingPromoteRewardListFieldNumber_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 pendingPromoteRewardListFieldNumber = 24;</code> - * @param value The pendingPromoteRewardListFieldNumber to add. - * @return This builder for chaining. - */ - public Builder addPendingPromoteRewardListFieldNumber(int value) { - ensurePendingPromoteRewardListFieldNumberIsMutable(); - pendingPromoteRewardListFieldNumber_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 pendingPromoteRewardListFieldNumber = 24;</code> - * @param values The pendingPromoteRewardListFieldNumber to add. - * @return This builder for chaining. - */ - public Builder addAllPendingPromoteRewardListFieldNumber( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensurePendingPromoteRewardListFieldNumberIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pendingPromoteRewardListFieldNumber_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 pendingPromoteRewardListFieldNumber = 24;</code> - * @return This builder for chaining. - */ - public Builder clearPendingPromoteRewardListFieldNumber() { - pendingPromoteRewardListFieldNumber_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - return this; - } - - private int costumeId_ ; - /** - * <code>uint32 costumeId = 25;</code> - * @return The costumeId. - */ - @java.lang.Override - public int getCostumeId() { - return costumeId_; - } - /** - * <code>uint32 costumeId = 25;</code> - * @param value The costumeId to set. - * @return This builder for chaining. - */ - public Builder setCostumeId(int value) { - - costumeId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 costumeId = 25;</code> - * @return This builder for chaining. - */ - public Builder clearCostumeId() { - - costumeId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarInfo) - } - - // @@protoc_insertion_point(class_scope:AvatarInfo) - private static final emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo(); - } - - public static emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarInfo> - PARSER = new com.google.protobuf.AbstractParser<AvatarInfo>() { - @java.lang.Override - public AvatarInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarInfo_PropMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarInfo_PropMapEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarInfo_FightPropMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarInfo_FightPropMapEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarInfo_SkillMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarInfo_SkillMapEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarInfo_SkillLevelMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarInfo_SkillLevelMapEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarInfo_ProudSkillExtraLevelEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarInfo_ProudSkillExtraLevelEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020AvatarInfo.proto\032\032AvatarEquipAffixInfo" + - ".proto\032\033AvatarExpeditionState.proto\032\026Ava" + - "tarFetterInfo.proto\032\025AvatarSkillInfo.pro" + - "to\032\017PropValue.proto\032\025TrialAvatarInfo.pro" + - "to\"\336\010\n\nAvatarInfo\022\020\n\010avatarId\030\001 \001(\r\022\014\n\004g" + - "uid\030\002 \001(\004\022)\n\007propMap\030\003 \003(\0132\030.AvatarInfo." + - "PropMapEntry\022\021\n\tlifeState\030\004 \001(\r\022\025\n\requip" + - "GuidList\030\005 \003(\004\022\024\n\014talentIdList\030\006 \003(\r\0223\n\014" + - "fightPropMap\030\007 \003(\0132\035.AvatarInfo.FightPro" + - "pMapEntry\022.\n\024trialAvatarInfoField\030\t \001(\0132" + - "\020.TrialAvatarInfo\022+\n\010skillMap\030\n \003(\0132\031.Av" + - "atarInfo.SkillMapEntry\022\024\n\014skillDepotId\030\013" + - " \001(\r\022%\n\nfetterInfo\030\014 \001(\0132\021.AvatarFetterI" + - "nfo\022\033\n\023coreProudSkillLevel\030\r \001(\r\022\036\n\026inhe" + - "rentProudSkillList\030\016 \003(\r\0225\n\rskillLevelMa" + - "p\030\017 \003(\0132\036.AvatarInfo.SkillLevelMapEntry\022" + - "/\n\017expeditionState\030\020 \001(\0162\026.AvatarExpedit" + - "ionState\022C\n\024proudSkillExtraLevel\030\021 \003(\0132%" + - ".AvatarInfo.ProudSkillExtraLevelEntry\022\032\n" + - "\022isFocusFieldNumber\030\022 \001(\010\022\022\n\navatarType\030" + - "\023 \001(\r\022\031\n\021teamResonanceList\030\024 \003(\r\022\031\n\021wear" + - "ingFlycloakId\030\025 \001(\r\022-\n\016equipAffixList\030\026 " + - "\003(\0132\025.AvatarEquipAffixInfo\022\020\n\010bornTime\030\027" + - " \001(\r\022+\n#pendingPromoteRewardListFieldNum" + - "ber\030\030 \003(\r\022\021\n\tcostumeId\030\031 \001(\r\032:\n\014PropMapE" + - "ntry\022\013\n\003key\030\001 \001(\r\022\031\n\005value\030\002 \001(\0132\n.PropV" + - "alue:\0028\001\0323\n\021FightPropMapEntry\022\013\n\003key\030\001 \001" + - "(\r\022\r\n\005value\030\002 \001(\002:\0028\001\032A\n\rSkillMapEntry\022\013" + - "\n\003key\030\001 \001(\r\022\037\n\005value\030\002 \001(\0132\020.AvatarSkill" + - "Info:\0028\001\0324\n\022SkillLevelMapEntry\022\013\n\003key\030\001 " + - "\001(\r\022\r\n\005value\030\002 \001(\r:\0028\001\032;\n\031ProudSkillExtr" + - "aLevelEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\r:" + - "\0028\001B\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.AvatarExpeditionStateOuterClass.getDescriptor(), - emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.PropValueOuterClass.getDescriptor(), - emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.getDescriptor(), - }); - internal_static_AvatarInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarInfo_descriptor, - new java.lang.String[] { "AvatarId", "Guid", "PropMap", "LifeState", "EquipGuidList", "TalentIdList", "FightPropMap", "TrialAvatarInfoField", "SkillMap", "SkillDepotId", "FetterInfo", "CoreProudSkillLevel", "InherentProudSkillList", "SkillLevelMap", "ExpeditionState", "ProudSkillExtraLevel", "IsFocusFieldNumber", "AvatarType", "TeamResonanceList", "WearingFlycloakId", "EquipAffixList", "BornTime", "PendingPromoteRewardListFieldNumber", "CostumeId", }); - internal_static_AvatarInfo_PropMapEntry_descriptor = - internal_static_AvatarInfo_descriptor.getNestedTypes().get(0); - internal_static_AvatarInfo_PropMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarInfo_PropMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_AvatarInfo_FightPropMapEntry_descriptor = - internal_static_AvatarInfo_descriptor.getNestedTypes().get(1); - internal_static_AvatarInfo_FightPropMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarInfo_FightPropMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_AvatarInfo_SkillMapEntry_descriptor = - internal_static_AvatarInfo_descriptor.getNestedTypes().get(2); - internal_static_AvatarInfo_SkillMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarInfo_SkillMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_AvatarInfo_SkillLevelMapEntry_descriptor = - internal_static_AvatarInfo_descriptor.getNestedTypes().get(3); - internal_static_AvatarInfo_SkillLevelMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarInfo_SkillLevelMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_AvatarInfo_ProudSkillExtraLevelEntry_descriptor = - internal_static_AvatarInfo_descriptor.getNestedTypes().get(4); - internal_static_AvatarInfo_ProudSkillExtraLevelEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarInfo_ProudSkillExtraLevelEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.AvatarExpeditionStateOuterClass.getDescriptor(); - emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.PropValueOuterClass.getDescriptor(); - emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarLifeStateChangeNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarLifeStateChangeNotifyOuterClass.java deleted file mode 100644 index fd1c3ecaf..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarLifeStateChangeNotifyOuterClass.java +++ /dev/null @@ -1,1010 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarLifeStateChangeNotify.proto - -package emu.grasscutter.net.proto; - -public final class AvatarLifeStateChangeNotifyOuterClass { - private AvatarLifeStateChangeNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarLifeStateChangeNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarLifeStateChangeNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>uint32 lifeState = 2;</code> - * @return The lifeState. - */ - int getLifeState(); - - /** - * <code>uint32 sourceEntityId = 3;</code> - * @return The sourceEntityId. - */ - int getSourceEntityId(); - - /** - * <code>string attackTag = 4;</code> - * @return The attackTag. - */ - java.lang.String getAttackTag(); - /** - * <code>string attackTag = 4;</code> - * @return The bytes for attackTag. - */ - com.google.protobuf.ByteString - getAttackTagBytes(); - - /** - * <code>.PlayerDieType dieType = 5;</code> - * @return The enum numeric value on the wire for dieType. - */ - int getDieTypeValue(); - /** - * <code>.PlayerDieType dieType = 5;</code> - * @return The dieType. - */ - emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType getDieType(); - - /** - * <code>uint32 moveReliableSeq = 6;</code> - * @return The moveReliableSeq. - */ - int getMoveReliableSeq(); - } - /** - * Protobuf type {@code AvatarLifeStateChangeNotify} - */ - public static final class AvatarLifeStateChangeNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarLifeStateChangeNotify) - AvatarLifeStateChangeNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarLifeStateChangeNotify.newBuilder() to construct. - private AvatarLifeStateChangeNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarLifeStateChangeNotify() { - attackTag_ = ""; - dieType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarLifeStateChangeNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarLifeStateChangeNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 16: { - - lifeState_ = input.readUInt32(); - break; - } - case 24: { - - sourceEntityId_ = input.readUInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - attackTag_ = s; - break; - } - case 40: { - int rawValue = input.readEnum(); - - dieType_ = rawValue; - break; - } - case 48: { - - moveReliableSeq_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.internal_static_AvatarLifeStateChangeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.internal_static_AvatarLifeStateChangeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify.class, emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify.Builder.class); - } - - public static final int AVATARGUID_FIELD_NUMBER = 1; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int LIFESTATE_FIELD_NUMBER = 2; - private int lifeState_; - /** - * <code>uint32 lifeState = 2;</code> - * @return The lifeState. - */ - @java.lang.Override - public int getLifeState() { - return lifeState_; - } - - public static final int SOURCEENTITYID_FIELD_NUMBER = 3; - private int sourceEntityId_; - /** - * <code>uint32 sourceEntityId = 3;</code> - * @return The sourceEntityId. - */ - @java.lang.Override - public int getSourceEntityId() { - return sourceEntityId_; - } - - public static final int ATTACKTAG_FIELD_NUMBER = 4; - private volatile java.lang.Object attackTag_; - /** - * <code>string attackTag = 4;</code> - * @return The attackTag. - */ - @java.lang.Override - public java.lang.String getAttackTag() { - java.lang.Object ref = attackTag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - attackTag_ = s; - return s; - } - } - /** - * <code>string attackTag = 4;</code> - * @return The bytes for attackTag. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAttackTagBytes() { - java.lang.Object ref = attackTag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - attackTag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIETYPE_FIELD_NUMBER = 5; - private int dieType_; - /** - * <code>.PlayerDieType dieType = 5;</code> - * @return The enum numeric value on the wire for dieType. - */ - @java.lang.Override public int getDieTypeValue() { - return dieType_; - } - /** - * <code>.PlayerDieType dieType = 5;</code> - * @return The dieType. - */ - @java.lang.Override public emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType getDieType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType result = emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.valueOf(dieType_); - return result == null ? emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.UNRECOGNIZED : result; - } - - public static final int MOVERELIABLESEQ_FIELD_NUMBER = 6; - private int moveReliableSeq_; - /** - * <code>uint32 moveReliableSeq = 6;</code> - * @return The moveReliableSeq. - */ - @java.lang.Override - public int getMoveReliableSeq() { - return moveReliableSeq_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (avatarGuid_ != 0L) { - output.writeUInt64(1, avatarGuid_); - } - if (lifeState_ != 0) { - output.writeUInt32(2, lifeState_); - } - if (sourceEntityId_ != 0) { - output.writeUInt32(3, sourceEntityId_); - } - if (!getAttackTagBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, attackTag_); - } - if (dieType_ != emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.PlayerDieNone.getNumber()) { - output.writeEnum(5, dieType_); - } - if (moveReliableSeq_ != 0) { - output.writeUInt32(6, moveReliableSeq_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, avatarGuid_); - } - if (lifeState_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, lifeState_); - } - if (sourceEntityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, sourceEntityId_); - } - if (!getAttackTagBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, attackTag_); - } - if (dieType_ != emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.PlayerDieNone.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, dieType_); - } - if (moveReliableSeq_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, moveReliableSeq_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify other = (emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify) obj; - - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (getLifeState() - != other.getLifeState()) return false; - if (getSourceEntityId() - != other.getSourceEntityId()) return false; - if (!getAttackTag() - .equals(other.getAttackTag())) return false; - if (dieType_ != other.dieType_) return false; - if (getMoveReliableSeq() - != other.getMoveReliableSeq()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - hash = (37 * hash) + LIFESTATE_FIELD_NUMBER; - hash = (53 * hash) + getLifeState(); - hash = (37 * hash) + SOURCEENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getSourceEntityId(); - hash = (37 * hash) + ATTACKTAG_FIELD_NUMBER; - hash = (53 * hash) + getAttackTag().hashCode(); - hash = (37 * hash) + DIETYPE_FIELD_NUMBER; - hash = (53 * hash) + dieType_; - hash = (37 * hash) + MOVERELIABLESEQ_FIELD_NUMBER; - hash = (53 * hash) + getMoveReliableSeq(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarLifeStateChangeNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarLifeStateChangeNotify) - emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.internal_static_AvatarLifeStateChangeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.internal_static_AvatarLifeStateChangeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify.class, emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - avatarGuid_ = 0L; - - lifeState_ = 0; - - sourceEntityId_ = 0; - - attackTag_ = ""; - - dieType_ = 0; - - moveReliableSeq_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.internal_static_AvatarLifeStateChangeNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify build() { - emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify buildPartial() { - emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify result = new emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify(this); - result.avatarGuid_ = avatarGuid_; - result.lifeState_ = lifeState_; - result.sourceEntityId_ = sourceEntityId_; - result.attackTag_ = attackTag_; - result.dieType_ = dieType_; - result.moveReliableSeq_ = moveReliableSeq_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify) { - return mergeFrom((emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify other) { - if (other == emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify.getDefaultInstance()) return this; - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - if (other.getLifeState() != 0) { - setLifeState(other.getLifeState()); - } - if (other.getSourceEntityId() != 0) { - setSourceEntityId(other.getSourceEntityId()); - } - if (!other.getAttackTag().isEmpty()) { - attackTag_ = other.attackTag_; - onChanged(); - } - if (other.dieType_ != 0) { - setDieTypeValue(other.getDieTypeValue()); - } - if (other.getMoveReliableSeq() != 0) { - setMoveReliableSeq(other.getMoveReliableSeq()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private int lifeState_ ; - /** - * <code>uint32 lifeState = 2;</code> - * @return The lifeState. - */ - @java.lang.Override - public int getLifeState() { - return lifeState_; - } - /** - * <code>uint32 lifeState = 2;</code> - * @param value The lifeState to set. - * @return This builder for chaining. - */ - public Builder setLifeState(int value) { - - lifeState_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 lifeState = 2;</code> - * @return This builder for chaining. - */ - public Builder clearLifeState() { - - lifeState_ = 0; - onChanged(); - return this; - } - - private int sourceEntityId_ ; - /** - * <code>uint32 sourceEntityId = 3;</code> - * @return The sourceEntityId. - */ - @java.lang.Override - public int getSourceEntityId() { - return sourceEntityId_; - } - /** - * <code>uint32 sourceEntityId = 3;</code> - * @param value The sourceEntityId to set. - * @return This builder for chaining. - */ - public Builder setSourceEntityId(int value) { - - sourceEntityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 sourceEntityId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearSourceEntityId() { - - sourceEntityId_ = 0; - onChanged(); - return this; - } - - private java.lang.Object attackTag_ = ""; - /** - * <code>string attackTag = 4;</code> - * @return The attackTag. - */ - public java.lang.String getAttackTag() { - java.lang.Object ref = attackTag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - attackTag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string attackTag = 4;</code> - * @return The bytes for attackTag. - */ - public com.google.protobuf.ByteString - getAttackTagBytes() { - java.lang.Object ref = attackTag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - attackTag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string attackTag = 4;</code> - * @param value The attackTag to set. - * @return This builder for chaining. - */ - public Builder setAttackTag( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - attackTag_ = value; - onChanged(); - return this; - } - /** - * <code>string attackTag = 4;</code> - * @return This builder for chaining. - */ - public Builder clearAttackTag() { - - attackTag_ = getDefaultInstance().getAttackTag(); - onChanged(); - return this; - } - /** - * <code>string attackTag = 4;</code> - * @param value The bytes for attackTag to set. - * @return This builder for chaining. - */ - public Builder setAttackTagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - attackTag_ = value; - onChanged(); - return this; - } - - private int dieType_ = 0; - /** - * <code>.PlayerDieType dieType = 5;</code> - * @return The enum numeric value on the wire for dieType. - */ - @java.lang.Override public int getDieTypeValue() { - return dieType_; - } - /** - * <code>.PlayerDieType dieType = 5;</code> - * @param value The enum numeric value on the wire for dieType to set. - * @return This builder for chaining. - */ - public Builder setDieTypeValue(int value) { - - dieType_ = value; - onChanged(); - return this; - } - /** - * <code>.PlayerDieType dieType = 5;</code> - * @return The dieType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType getDieType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType result = emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.valueOf(dieType_); - return result == null ? emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.UNRECOGNIZED : result; - } - /** - * <code>.PlayerDieType dieType = 5;</code> - * @param value The dieType to set. - * @return This builder for chaining. - */ - public Builder setDieType(emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType value) { - if (value == null) { - throw new NullPointerException(); - } - - dieType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.PlayerDieType dieType = 5;</code> - * @return This builder for chaining. - */ - public Builder clearDieType() { - - dieType_ = 0; - onChanged(); - return this; - } - - private int moveReliableSeq_ ; - /** - * <code>uint32 moveReliableSeq = 6;</code> - * @return The moveReliableSeq. - */ - @java.lang.Override - public int getMoveReliableSeq() { - return moveReliableSeq_; - } - /** - * <code>uint32 moveReliableSeq = 6;</code> - * @param value The moveReliableSeq to set. - * @return This builder for chaining. - */ - public Builder setMoveReliableSeq(int value) { - - moveReliableSeq_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 moveReliableSeq = 6;</code> - * @return This builder for chaining. - */ - public Builder clearMoveReliableSeq() { - - moveReliableSeq_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarLifeStateChangeNotify) - } - - // @@protoc_insertion_point(class_scope:AvatarLifeStateChangeNotify) - private static final emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify(); - } - - public static emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarLifeStateChangeNotify> - PARSER = new com.google.protobuf.AbstractParser<AvatarLifeStateChangeNotify>() { - @java.lang.Override - public AvatarLifeStateChangeNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarLifeStateChangeNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarLifeStateChangeNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarLifeStateChangeNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarLifeStateChangeNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarLifeStateChangeNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n!AvatarLifeStateChangeNotify.proto\032\023Pla" + - "yerDieType.proto\"\251\001\n\033AvatarLifeStateChan" + - "geNotify\022\022\n\navatarGuid\030\001 \001(\004\022\021\n\tlifeStat" + - "e\030\002 \001(\r\022\026\n\016sourceEntityId\030\003 \001(\r\022\021\n\tattac" + - "kTag\030\004 \001(\t\022\037\n\007dieType\030\005 \001(\0162\016.PlayerDieT" + - "ype\022\027\n\017moveReliableSeq\030\006 \001(\rB\033\n\031emu.gras" + - "scutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.PlayerDieTypeOuterClass.getDescriptor(), - }); - internal_static_AvatarLifeStateChangeNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarLifeStateChangeNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarLifeStateChangeNotify_descriptor, - new java.lang.String[] { "AvatarGuid", "LifeState", "SourceEntityId", "AttackTag", "DieType", "MoveReliableSeq", }); - emu.grasscutter.net.proto.PlayerDieTypeOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarPromoteReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarPromoteReqOuterClass.java deleted file mode 100644 index a6d7c5d54..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarPromoteReqOuterClass.java +++ /dev/null @@ -1,537 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarPromoteReq.proto - -package emu.grasscutter.net.proto; - -public final class AvatarPromoteReqOuterClass { - private AvatarPromoteReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarPromoteReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarPromoteReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 guid = 1;</code> - * @return The guid. - */ - long getGuid(); - } - /** - * Protobuf type {@code AvatarPromoteReq} - */ - public static final class AvatarPromoteReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarPromoteReq) - AvatarPromoteReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarPromoteReq.newBuilder() to construct. - private AvatarPromoteReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarPromoteReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarPromoteReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarPromoteReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - guid_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.internal_static_AvatarPromoteReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.internal_static_AvatarPromoteReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq.class, emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq.Builder.class); - } - - public static final int GUID_FIELD_NUMBER = 1; - private long guid_; - /** - * <code>uint64 guid = 1;</code> - * @return The guid. - */ - @java.lang.Override - public long getGuid() { - return guid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (guid_ != 0L) { - output.writeUInt64(1, guid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (guid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, guid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq other = (emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq) obj; - - if (getGuid() - != other.getGuid()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGuid()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarPromoteReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarPromoteReq) - emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.internal_static_AvatarPromoteReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.internal_static_AvatarPromoteReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq.class, emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - guid_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.internal_static_AvatarPromoteReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq build() { - emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq buildPartial() { - emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq result = new emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq(this); - result.guid_ = guid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq) { - return mergeFrom((emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq other) { - if (other == emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq.getDefaultInstance()) return this; - if (other.getGuid() != 0L) { - setGuid(other.getGuid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long guid_ ; - /** - * <code>uint64 guid = 1;</code> - * @return The guid. - */ - @java.lang.Override - public long getGuid() { - return guid_; - } - /** - * <code>uint64 guid = 1;</code> - * @param value The guid to set. - * @return This builder for chaining. - */ - public Builder setGuid(long value) { - - guid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 guid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearGuid() { - - guid_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarPromoteReq) - } - - // @@protoc_insertion_point(class_scope:AvatarPromoteReq) - private static final emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq(); - } - - public static emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarPromoteReq> - PARSER = new com.google.protobuf.AbstractParser<AvatarPromoteReq>() { - @java.lang.Override - public AvatarPromoteReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarPromoteReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarPromoteReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarPromoteReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarPromoteReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarPromoteReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026AvatarPromoteReq.proto\" \n\020AvatarPromot" + - "eReq\022\014\n\004guid\030\001 \001(\004B\033\n\031emu.grasscutter.ne" + - "t.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AvatarPromoteReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarPromoteReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarPromoteReq_descriptor, - new java.lang.String[] { "Guid", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarPromoteRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarPromoteRspOuterClass.java deleted file mode 100644 index be328a2fa..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarPromoteRspOuterClass.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarPromoteRsp.proto - -package emu.grasscutter.net.proto; - -public final class AvatarPromoteRspOuterClass { - private AvatarPromoteRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarPromoteRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarPromoteRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint64 guid = 2;</code> - * @return The guid. - */ - long getGuid(); - } - /** - * Protobuf type {@code AvatarPromoteRsp} - */ - public static final class AvatarPromoteRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarPromoteRsp) - AvatarPromoteRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarPromoteRsp.newBuilder() to construct. - private AvatarPromoteRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarPromoteRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarPromoteRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarPromoteRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - guid_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.internal_static_AvatarPromoteRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.internal_static_AvatarPromoteRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp.class, emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int GUID_FIELD_NUMBER = 2; - private long guid_; - /** - * <code>uint64 guid = 2;</code> - * @return The guid. - */ - @java.lang.Override - public long getGuid() { - return guid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (guid_ != 0L) { - output.writeUInt64(2, guid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (guid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, guid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp other = (emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getGuid() - != other.getGuid()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + GUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGuid()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarPromoteRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarPromoteRsp) - emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.internal_static_AvatarPromoteRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.internal_static_AvatarPromoteRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp.class, emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - guid_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.internal_static_AvatarPromoteRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp build() { - emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp buildPartial() { - emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp result = new emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp(this); - result.retcode_ = retcode_; - result.guid_ = guid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp) { - return mergeFrom((emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp other) { - if (other == emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getGuid() != 0L) { - setGuid(other.getGuid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private long guid_ ; - /** - * <code>uint64 guid = 2;</code> - * @return The guid. - */ - @java.lang.Override - public long getGuid() { - return guid_; - } - /** - * <code>uint64 guid = 2;</code> - * @param value The guid to set. - * @return This builder for chaining. - */ - public Builder setGuid(long value) { - - guid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 guid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearGuid() { - - guid_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarPromoteRsp) - } - - // @@protoc_insertion_point(class_scope:AvatarPromoteRsp) - private static final emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp(); - } - - public static emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarPromoteRsp> - PARSER = new com.google.protobuf.AbstractParser<AvatarPromoteRsp>() { - @java.lang.Override - public AvatarPromoteRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarPromoteRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarPromoteRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarPromoteRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarPromoteRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarPromoteRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026AvatarPromoteRsp.proto\"1\n\020AvatarPromot" + - "eRsp\022\017\n\007retcode\030\001 \001(\005\022\014\n\004guid\030\002 \001(\004B\033\n\031e" + - "mu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AvatarPromoteRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarPromoteRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarPromoteRsp_descriptor, - new java.lang.String[] { "Retcode", "Guid", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarPropNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarPropNotifyOuterClass.java deleted file mode 100644 index ee6f27b21..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarPropNotifyOuterClass.java +++ /dev/null @@ -1,870 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarPropNotify.proto - -package emu.grasscutter.net.proto; - -public final class AvatarPropNotifyOuterClass { - private AvatarPropNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarPropNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarPropNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>map<uint32, int64> propMap = 2;</code> - */ - int getPropMapCount(); - /** - * <code>map<uint32, int64> propMap = 2;</code> - */ - boolean containsPropMap( - int key); - /** - * Use {@link #getPropMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Long> - getPropMap(); - /** - * <code>map<uint32, int64> propMap = 2;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Long> - getPropMapMap(); - /** - * <code>map<uint32, int64> propMap = 2;</code> - */ - - long getPropMapOrDefault( - int key, - long defaultValue); - /** - * <code>map<uint32, int64> propMap = 2;</code> - */ - - long getPropMapOrThrow( - int key); - } - /** - * Protobuf type {@code AvatarPropNotify} - */ - public static final class AvatarPropNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarPropNotify) - AvatarPropNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarPropNotify.newBuilder() to construct. - private AvatarPropNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarPropNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarPropNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarPropNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - propMap_ = com.google.protobuf.MapField.newMapField( - PropMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Long> - propMap__ = input.readMessage( - PropMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - propMap_.getMutableMap().put( - propMap__.getKey(), propMap__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.internal_static_AvatarPropNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.internal_static_AvatarPropNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify.class, emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify.Builder.class); - } - - public static final int AVATARGUID_FIELD_NUMBER = 1; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int PROPMAP_FIELD_NUMBER = 2; - private static final class PropMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Long> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Long>newDefaultInstance( - emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.internal_static_AvatarPropNotify_PropMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT64, - 0L); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Long> propMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Long> - internalGetPropMap() { - if (propMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropMapDefaultEntryHolder.defaultEntry); - } - return propMap_; - } - - public int getPropMapCount() { - return internalGetPropMap().getMap().size(); - } - /** - * <code>map<uint32, int64> propMap = 2;</code> - */ - - @java.lang.Override - public boolean containsPropMap( - int key) { - - return internalGetPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Long> getPropMap() { - return getPropMapMap(); - } - /** - * <code>map<uint32, int64> propMap = 2;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Long> getPropMapMap() { - return internalGetPropMap().getMap(); - } - /** - * <code>map<uint32, int64> propMap = 2;</code> - */ - @java.lang.Override - - public long getPropMapOrDefault( - int key, - long defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Long> map = - internalGetPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, int64> propMap = 2;</code> - */ - @java.lang.Override - - public long getPropMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Long> map = - internalGetPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (avatarGuid_ != 0L) { - output.writeUInt64(1, avatarGuid_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetPropMap(), - PropMapDefaultEntryHolder.defaultEntry, - 2); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, avatarGuid_); - } - for (java.util.Map.Entry<java.lang.Integer, java.lang.Long> entry - : internalGetPropMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Long> - propMap__ = PropMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, propMap__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify other = (emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify) obj; - - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (!internalGetPropMap().equals( - other.internalGetPropMap())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - if (!internalGetPropMap().getMap().isEmpty()) { - hash = (37 * hash) + PROPMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetPropMap().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarPropNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarPropNotify) - emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.internal_static_AvatarPropNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutablePropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.internal_static_AvatarPropNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify.class, emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - avatarGuid_ = 0L; - - internalGetMutablePropMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.internal_static_AvatarPropNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify build() { - emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify buildPartial() { - emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify result = new emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify(this); - int from_bitField0_ = bitField0_; - result.avatarGuid_ = avatarGuid_; - result.propMap_ = internalGetPropMap(); - result.propMap_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify) { - return mergeFrom((emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify other) { - if (other == emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify.getDefaultInstance()) return this; - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - internalGetMutablePropMap().mergeFrom( - other.internalGetPropMap()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Long> propMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Long> - internalGetPropMap() { - if (propMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropMapDefaultEntryHolder.defaultEntry); - } - return propMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Long> - internalGetMutablePropMap() { - onChanged();; - if (propMap_ == null) { - propMap_ = com.google.protobuf.MapField.newMapField( - PropMapDefaultEntryHolder.defaultEntry); - } - if (!propMap_.isMutable()) { - propMap_ = propMap_.copy(); - } - return propMap_; - } - - public int getPropMapCount() { - return internalGetPropMap().getMap().size(); - } - /** - * <code>map<uint32, int64> propMap = 2;</code> - */ - - @java.lang.Override - public boolean containsPropMap( - int key) { - - return internalGetPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Long> getPropMap() { - return getPropMapMap(); - } - /** - * <code>map<uint32, int64> propMap = 2;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Long> getPropMapMap() { - return internalGetPropMap().getMap(); - } - /** - * <code>map<uint32, int64> propMap = 2;</code> - */ - @java.lang.Override - - public long getPropMapOrDefault( - int key, - long defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Long> map = - internalGetPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, int64> propMap = 2;</code> - */ - @java.lang.Override - - public long getPropMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Long> map = - internalGetPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearPropMap() { - internalGetMutablePropMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, int64> propMap = 2;</code> - */ - - public Builder removePropMap( - int key) { - - internalGetMutablePropMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Long> - getMutablePropMap() { - return internalGetMutablePropMap().getMutableMap(); - } - /** - * <code>map<uint32, int64> propMap = 2;</code> - */ - public Builder putPropMap( - int key, - long value) { - - - internalGetMutablePropMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, int64> propMap = 2;</code> - */ - - public Builder putAllPropMap( - java.util.Map<java.lang.Integer, java.lang.Long> values) { - internalGetMutablePropMap().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarPropNotify) - } - - // @@protoc_insertion_point(class_scope:AvatarPropNotify) - private static final emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify(); - } - - public static emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarPropNotify> - PARSER = new com.google.protobuf.AbstractParser<AvatarPropNotify>() { - @java.lang.Override - public AvatarPropNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarPropNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarPropNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarPropNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarPropNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarPropNotify_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarPropNotify_PropMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarPropNotify_PropMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026AvatarPropNotify.proto\"\207\001\n\020AvatarPropN" + - "otify\022\022\n\navatarGuid\030\001 \001(\004\022/\n\007propMap\030\002 \003" + - "(\0132\036.AvatarPropNotify.PropMapEntry\032.\n\014Pr" + - "opMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\003:\002" + - "8\001B\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AvatarPropNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarPropNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarPropNotify_descriptor, - new java.lang.String[] { "AvatarGuid", "PropMap", }); - internal_static_AvatarPropNotify_PropMapEntry_descriptor = - internal_static_AvatarPropNotify_descriptor.getNestedTypes().get(0); - internal_static_AvatarPropNotify_PropMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarPropNotify_PropMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarSkillChangeNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarSkillChangeNotifyOuterClass.java deleted file mode 100644 index b3dc83d51..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarSkillChangeNotifyOuterClass.java +++ /dev/null @@ -1,890 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarSkillChangeNotify.proto - -package emu.grasscutter.net.proto; - -public final class AvatarSkillChangeNotifyOuterClass { - private AvatarSkillChangeNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarSkillChangeNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarSkillChangeNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>uint32 entityId = 2;</code> - * @return The entityId. - */ - int getEntityId(); - - /** - * <code>uint32 skillDepotId = 3;</code> - * @return The skillDepotId. - */ - int getSkillDepotId(); - - /** - * <code>uint32 avatarSkillId = 4;</code> - * @return The avatarSkillId. - */ - int getAvatarSkillId(); - - /** - * <code>uint32 oldLevel = 5;</code> - * @return The oldLevel. - */ - int getOldLevel(); - - /** - * <code>uint32 curLevel = 6;</code> - * @return The curLevel. - */ - int getCurLevel(); - } - /** - * Protobuf type {@code AvatarSkillChangeNotify} - */ - public static final class AvatarSkillChangeNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarSkillChangeNotify) - AvatarSkillChangeNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarSkillChangeNotify.newBuilder() to construct. - private AvatarSkillChangeNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarSkillChangeNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarSkillChangeNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarSkillChangeNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 16: { - - entityId_ = input.readUInt32(); - break; - } - case 24: { - - skillDepotId_ = input.readUInt32(); - break; - } - case 32: { - - avatarSkillId_ = input.readUInt32(); - break; - } - case 40: { - - oldLevel_ = input.readUInt32(); - break; - } - case 48: { - - curLevel_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.internal_static_AvatarSkillChangeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.internal_static_AvatarSkillChangeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify.class, emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify.Builder.class); - } - - public static final int AVATARGUID_FIELD_NUMBER = 1; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int ENTITYID_FIELD_NUMBER = 2; - private int entityId_; - /** - * <code>uint32 entityId = 2;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - - public static final int SKILLDEPOTID_FIELD_NUMBER = 3; - private int skillDepotId_; - /** - * <code>uint32 skillDepotId = 3;</code> - * @return The skillDepotId. - */ - @java.lang.Override - public int getSkillDepotId() { - return skillDepotId_; - } - - public static final int AVATARSKILLID_FIELD_NUMBER = 4; - private int avatarSkillId_; - /** - * <code>uint32 avatarSkillId = 4;</code> - * @return The avatarSkillId. - */ - @java.lang.Override - public int getAvatarSkillId() { - return avatarSkillId_; - } - - public static final int OLDLEVEL_FIELD_NUMBER = 5; - private int oldLevel_; - /** - * <code>uint32 oldLevel = 5;</code> - * @return The oldLevel. - */ - @java.lang.Override - public int getOldLevel() { - return oldLevel_; - } - - public static final int CURLEVEL_FIELD_NUMBER = 6; - private int curLevel_; - /** - * <code>uint32 curLevel = 6;</code> - * @return The curLevel. - */ - @java.lang.Override - public int getCurLevel() { - return curLevel_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (avatarGuid_ != 0L) { - output.writeUInt64(1, avatarGuid_); - } - if (entityId_ != 0) { - output.writeUInt32(2, entityId_); - } - if (skillDepotId_ != 0) { - output.writeUInt32(3, skillDepotId_); - } - if (avatarSkillId_ != 0) { - output.writeUInt32(4, avatarSkillId_); - } - if (oldLevel_ != 0) { - output.writeUInt32(5, oldLevel_); - } - if (curLevel_ != 0) { - output.writeUInt32(6, curLevel_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, avatarGuid_); - } - if (entityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, entityId_); - } - if (skillDepotId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, skillDepotId_); - } - if (avatarSkillId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, avatarSkillId_); - } - if (oldLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, oldLevel_); - } - if (curLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, curLevel_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify other = (emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify) obj; - - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (getEntityId() - != other.getEntityId()) return false; - if (getSkillDepotId() - != other.getSkillDepotId()) return false; - if (getAvatarSkillId() - != other.getAvatarSkillId()) return false; - if (getOldLevel() - != other.getOldLevel()) return false; - if (getCurLevel() - != other.getCurLevel()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - hash = (37 * hash) + ENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId(); - hash = (37 * hash) + SKILLDEPOTID_FIELD_NUMBER; - hash = (53 * hash) + getSkillDepotId(); - hash = (37 * hash) + AVATARSKILLID_FIELD_NUMBER; - hash = (53 * hash) + getAvatarSkillId(); - hash = (37 * hash) + OLDLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getOldLevel(); - hash = (37 * hash) + CURLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getCurLevel(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarSkillChangeNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarSkillChangeNotify) - emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.internal_static_AvatarSkillChangeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.internal_static_AvatarSkillChangeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify.class, emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - avatarGuid_ = 0L; - - entityId_ = 0; - - skillDepotId_ = 0; - - avatarSkillId_ = 0; - - oldLevel_ = 0; - - curLevel_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.internal_static_AvatarSkillChangeNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify build() { - emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify buildPartial() { - emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify result = new emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify(this); - result.avatarGuid_ = avatarGuid_; - result.entityId_ = entityId_; - result.skillDepotId_ = skillDepotId_; - result.avatarSkillId_ = avatarSkillId_; - result.oldLevel_ = oldLevel_; - result.curLevel_ = curLevel_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify) { - return mergeFrom((emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify other) { - if (other == emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify.getDefaultInstance()) return this; - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - if (other.getEntityId() != 0) { - setEntityId(other.getEntityId()); - } - if (other.getSkillDepotId() != 0) { - setSkillDepotId(other.getSkillDepotId()); - } - if (other.getAvatarSkillId() != 0) { - setAvatarSkillId(other.getAvatarSkillId()); - } - if (other.getOldLevel() != 0) { - setOldLevel(other.getOldLevel()); - } - if (other.getCurLevel() != 0) { - setCurLevel(other.getCurLevel()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private int entityId_ ; - /** - * <code>uint32 entityId = 2;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - /** - * <code>uint32 entityId = 2;</code> - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId(int value) { - - entityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 entityId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearEntityId() { - - entityId_ = 0; - onChanged(); - return this; - } - - private int skillDepotId_ ; - /** - * <code>uint32 skillDepotId = 3;</code> - * @return The skillDepotId. - */ - @java.lang.Override - public int getSkillDepotId() { - return skillDepotId_; - } - /** - * <code>uint32 skillDepotId = 3;</code> - * @param value The skillDepotId to set. - * @return This builder for chaining. - */ - public Builder setSkillDepotId(int value) { - - skillDepotId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 skillDepotId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearSkillDepotId() { - - skillDepotId_ = 0; - onChanged(); - return this; - } - - private int avatarSkillId_ ; - /** - * <code>uint32 avatarSkillId = 4;</code> - * @return The avatarSkillId. - */ - @java.lang.Override - public int getAvatarSkillId() { - return avatarSkillId_; - } - /** - * <code>uint32 avatarSkillId = 4;</code> - * @param value The avatarSkillId to set. - * @return This builder for chaining. - */ - public Builder setAvatarSkillId(int value) { - - avatarSkillId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 avatarSkillId = 4;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarSkillId() { - - avatarSkillId_ = 0; - onChanged(); - return this; - } - - private int oldLevel_ ; - /** - * <code>uint32 oldLevel = 5;</code> - * @return The oldLevel. - */ - @java.lang.Override - public int getOldLevel() { - return oldLevel_; - } - /** - * <code>uint32 oldLevel = 5;</code> - * @param value The oldLevel to set. - * @return This builder for chaining. - */ - public Builder setOldLevel(int value) { - - oldLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 oldLevel = 5;</code> - * @return This builder for chaining. - */ - public Builder clearOldLevel() { - - oldLevel_ = 0; - onChanged(); - return this; - } - - private int curLevel_ ; - /** - * <code>uint32 curLevel = 6;</code> - * @return The curLevel. - */ - @java.lang.Override - public int getCurLevel() { - return curLevel_; - } - /** - * <code>uint32 curLevel = 6;</code> - * @param value The curLevel to set. - * @return This builder for chaining. - */ - public Builder setCurLevel(int value) { - - curLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 curLevel = 6;</code> - * @return This builder for chaining. - */ - public Builder clearCurLevel() { - - curLevel_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarSkillChangeNotify) - } - - // @@protoc_insertion_point(class_scope:AvatarSkillChangeNotify) - private static final emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify(); - } - - public static emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarSkillChangeNotify> - PARSER = new com.google.protobuf.AbstractParser<AvatarSkillChangeNotify>() { - @java.lang.Override - public AvatarSkillChangeNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarSkillChangeNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarSkillChangeNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarSkillChangeNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarSkillChangeNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarSkillChangeNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035AvatarSkillChangeNotify.proto\"\220\001\n\027Avat" + - "arSkillChangeNotify\022\022\n\navatarGuid\030\001 \001(\004\022" + - "\020\n\010entityId\030\002 \001(\r\022\024\n\014skillDepotId\030\003 \001(\r\022" + - "\025\n\ravatarSkillId\030\004 \001(\r\022\020\n\010oldLevel\030\005 \001(\r" + - "\022\020\n\010curLevel\030\006 \001(\rB\033\n\031emu.grasscutter.ne" + - "t.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AvatarSkillChangeNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarSkillChangeNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarSkillChangeNotify_descriptor, - new java.lang.String[] { "AvatarGuid", "EntityId", "SkillDepotId", "AvatarSkillId", "OldLevel", "CurLevel", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarSkillInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarSkillInfoOuterClass.java deleted file mode 100644 index 67f90049e..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarSkillInfoOuterClass.java +++ /dev/null @@ -1,804 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarSkillInfo.proto - -package emu.grasscutter.net.proto; - -public final class AvatarSkillInfoOuterClass { - private AvatarSkillInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarSkillInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarSkillInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 passCdTime = 1;</code> - * @return The passCdTime. - */ - int getPassCdTime(); - - /** - * <code>repeated uint32 fullCdTimeList = 2;</code> - * @return A list containing the fullCdTimeList. - */ - java.util.List<java.lang.Integer> getFullCdTimeListList(); - /** - * <code>repeated uint32 fullCdTimeList = 2;</code> - * @return The count of fullCdTimeList. - */ - int getFullCdTimeListCount(); - /** - * <code>repeated uint32 fullCdTimeList = 2;</code> - * @param index The index of the element to return. - * @return The fullCdTimeList at the given index. - */ - int getFullCdTimeList(int index); - - /** - * <code>uint32 maxChargeCount = 3;</code> - * @return The maxChargeCount. - */ - int getMaxChargeCount(); - } - /** - * Protobuf type {@code AvatarSkillInfo} - */ - public static final class AvatarSkillInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarSkillInfo) - AvatarSkillInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarSkillInfo.newBuilder() to construct. - private AvatarSkillInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarSkillInfo() { - fullCdTimeList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarSkillInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarSkillInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - passCdTime_ = input.readUInt32(); - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fullCdTimeList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - fullCdTimeList_.addInt(input.readUInt32()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - fullCdTimeList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - fullCdTimeList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 24: { - - maxChargeCount_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - fullCdTimeList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.internal_static_AvatarSkillInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.internal_static_AvatarSkillInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo.class, emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo.Builder.class); - } - - public static final int PASSCDTIME_FIELD_NUMBER = 1; - private int passCdTime_; - /** - * <code>uint32 passCdTime = 1;</code> - * @return The passCdTime. - */ - @java.lang.Override - public int getPassCdTime() { - return passCdTime_; - } - - public static final int FULLCDTIMELIST_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.IntList fullCdTimeList_; - /** - * <code>repeated uint32 fullCdTimeList = 2;</code> - * @return A list containing the fullCdTimeList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getFullCdTimeListList() { - return fullCdTimeList_; - } - /** - * <code>repeated uint32 fullCdTimeList = 2;</code> - * @return The count of fullCdTimeList. - */ - public int getFullCdTimeListCount() { - return fullCdTimeList_.size(); - } - /** - * <code>repeated uint32 fullCdTimeList = 2;</code> - * @param index The index of the element to return. - * @return The fullCdTimeList at the given index. - */ - public int getFullCdTimeList(int index) { - return fullCdTimeList_.getInt(index); - } - private int fullCdTimeListMemoizedSerializedSize = -1; - - public static final int MAXCHARGECOUNT_FIELD_NUMBER = 3; - private int maxChargeCount_; - /** - * <code>uint32 maxChargeCount = 3;</code> - * @return The maxChargeCount. - */ - @java.lang.Override - public int getMaxChargeCount() { - return maxChargeCount_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (passCdTime_ != 0) { - output.writeUInt32(1, passCdTime_); - } - if (getFullCdTimeListList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(fullCdTimeListMemoizedSerializedSize); - } - for (int i = 0; i < fullCdTimeList_.size(); i++) { - output.writeUInt32NoTag(fullCdTimeList_.getInt(i)); - } - if (maxChargeCount_ != 0) { - output.writeUInt32(3, maxChargeCount_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (passCdTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, passCdTime_); - } - { - int dataSize = 0; - for (int i = 0; i < fullCdTimeList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(fullCdTimeList_.getInt(i)); - } - size += dataSize; - if (!getFullCdTimeListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - fullCdTimeListMemoizedSerializedSize = dataSize; - } - if (maxChargeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, maxChargeCount_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo other = (emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo) obj; - - if (getPassCdTime() - != other.getPassCdTime()) return false; - if (!getFullCdTimeListList() - .equals(other.getFullCdTimeListList())) return false; - if (getMaxChargeCount() - != other.getMaxChargeCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PASSCDTIME_FIELD_NUMBER; - hash = (53 * hash) + getPassCdTime(); - if (getFullCdTimeListCount() > 0) { - hash = (37 * hash) + FULLCDTIMELIST_FIELD_NUMBER; - hash = (53 * hash) + getFullCdTimeListList().hashCode(); - } - hash = (37 * hash) + MAXCHARGECOUNT_FIELD_NUMBER; - hash = (53 * hash) + getMaxChargeCount(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarSkillInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarSkillInfo) - emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.internal_static_AvatarSkillInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.internal_static_AvatarSkillInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo.class, emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - passCdTime_ = 0; - - fullCdTimeList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - maxChargeCount_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.internal_static_AvatarSkillInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo build() { - emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo buildPartial() { - emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo result = new emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo(this); - int from_bitField0_ = bitField0_; - result.passCdTime_ = passCdTime_; - if (((bitField0_ & 0x00000001) != 0)) { - fullCdTimeList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.fullCdTimeList_ = fullCdTimeList_; - result.maxChargeCount_ = maxChargeCount_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo) { - return mergeFrom((emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo other) { - if (other == emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo.getDefaultInstance()) return this; - if (other.getPassCdTime() != 0) { - setPassCdTime(other.getPassCdTime()); - } - if (!other.fullCdTimeList_.isEmpty()) { - if (fullCdTimeList_.isEmpty()) { - fullCdTimeList_ = other.fullCdTimeList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFullCdTimeListIsMutable(); - fullCdTimeList_.addAll(other.fullCdTimeList_); - } - onChanged(); - } - if (other.getMaxChargeCount() != 0) { - setMaxChargeCount(other.getMaxChargeCount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int passCdTime_ ; - /** - * <code>uint32 passCdTime = 1;</code> - * @return The passCdTime. - */ - @java.lang.Override - public int getPassCdTime() { - return passCdTime_; - } - /** - * <code>uint32 passCdTime = 1;</code> - * @param value The passCdTime to set. - * @return This builder for chaining. - */ - public Builder setPassCdTime(int value) { - - passCdTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 passCdTime = 1;</code> - * @return This builder for chaining. - */ - public Builder clearPassCdTime() { - - passCdTime_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList fullCdTimeList_ = emptyIntList(); - private void ensureFullCdTimeListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - fullCdTimeList_ = mutableCopy(fullCdTimeList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 fullCdTimeList = 2;</code> - * @return A list containing the fullCdTimeList. - */ - public java.util.List<java.lang.Integer> - getFullCdTimeListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(fullCdTimeList_) : fullCdTimeList_; - } - /** - * <code>repeated uint32 fullCdTimeList = 2;</code> - * @return The count of fullCdTimeList. - */ - public int getFullCdTimeListCount() { - return fullCdTimeList_.size(); - } - /** - * <code>repeated uint32 fullCdTimeList = 2;</code> - * @param index The index of the element to return. - * @return The fullCdTimeList at the given index. - */ - public int getFullCdTimeList(int index) { - return fullCdTimeList_.getInt(index); - } - /** - * <code>repeated uint32 fullCdTimeList = 2;</code> - * @param index The index to set the value at. - * @param value The fullCdTimeList to set. - * @return This builder for chaining. - */ - public Builder setFullCdTimeList( - int index, int value) { - ensureFullCdTimeListIsMutable(); - fullCdTimeList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 fullCdTimeList = 2;</code> - * @param value The fullCdTimeList to add. - * @return This builder for chaining. - */ - public Builder addFullCdTimeList(int value) { - ensureFullCdTimeListIsMutable(); - fullCdTimeList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 fullCdTimeList = 2;</code> - * @param values The fullCdTimeList to add. - * @return This builder for chaining. - */ - public Builder addAllFullCdTimeList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureFullCdTimeListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fullCdTimeList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 fullCdTimeList = 2;</code> - * @return This builder for chaining. - */ - public Builder clearFullCdTimeList() { - fullCdTimeList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private int maxChargeCount_ ; - /** - * <code>uint32 maxChargeCount = 3;</code> - * @return The maxChargeCount. - */ - @java.lang.Override - public int getMaxChargeCount() { - return maxChargeCount_; - } - /** - * <code>uint32 maxChargeCount = 3;</code> - * @param value The maxChargeCount to set. - * @return This builder for chaining. - */ - public Builder setMaxChargeCount(int value) { - - maxChargeCount_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 maxChargeCount = 3;</code> - * @return This builder for chaining. - */ - public Builder clearMaxChargeCount() { - - maxChargeCount_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarSkillInfo) - } - - // @@protoc_insertion_point(class_scope:AvatarSkillInfo) - private static final emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo(); - } - - public static emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarSkillInfo> - PARSER = new com.google.protobuf.AbstractParser<AvatarSkillInfo>() { - @java.lang.Override - public AvatarSkillInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarSkillInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarSkillInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarSkillInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarSkillInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarSkillInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025AvatarSkillInfo.proto\"U\n\017AvatarSkillIn" + - "fo\022\022\n\npassCdTime\030\001 \001(\r\022\026\n\016fullCdTimeList" + - "\030\002 \003(\r\022\026\n\016maxChargeCount\030\003 \001(\rB\033\n\031emu.gr" + - "asscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AvatarSkillInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarSkillInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarSkillInfo_descriptor, - new java.lang.String[] { "PassCdTime", "FullCdTimeList", "MaxChargeCount", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarSkillUpgradeReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarSkillUpgradeReqOuterClass.java deleted file mode 100644 index bc3194589..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarSkillUpgradeReqOuterClass.java +++ /dev/null @@ -1,678 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarSkillUpgradeReq.proto - -package emu.grasscutter.net.proto; - -public final class AvatarSkillUpgradeReqOuterClass { - private AvatarSkillUpgradeReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarSkillUpgradeReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarSkillUpgradeReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>uint32 avatarSkillId = 2;</code> - * @return The avatarSkillId. - */ - int getAvatarSkillId(); - - /** - * <code>uint32 oldLevel = 3;</code> - * @return The oldLevel. - */ - int getOldLevel(); - } - /** - * Protobuf type {@code AvatarSkillUpgradeReq} - */ - public static final class AvatarSkillUpgradeReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarSkillUpgradeReq) - AvatarSkillUpgradeReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarSkillUpgradeReq.newBuilder() to construct. - private AvatarSkillUpgradeReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarSkillUpgradeReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarSkillUpgradeReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarSkillUpgradeReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 16: { - - avatarSkillId_ = input.readUInt32(); - break; - } - case 24: { - - oldLevel_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.internal_static_AvatarSkillUpgradeReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.internal_static_AvatarSkillUpgradeReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq.class, emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq.Builder.class); - } - - public static final int AVATARGUID_FIELD_NUMBER = 1; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int AVATARSKILLID_FIELD_NUMBER = 2; - private int avatarSkillId_; - /** - * <code>uint32 avatarSkillId = 2;</code> - * @return The avatarSkillId. - */ - @java.lang.Override - public int getAvatarSkillId() { - return avatarSkillId_; - } - - public static final int OLDLEVEL_FIELD_NUMBER = 3; - private int oldLevel_; - /** - * <code>uint32 oldLevel = 3;</code> - * @return The oldLevel. - */ - @java.lang.Override - public int getOldLevel() { - return oldLevel_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (avatarGuid_ != 0L) { - output.writeUInt64(1, avatarGuid_); - } - if (avatarSkillId_ != 0) { - output.writeUInt32(2, avatarSkillId_); - } - if (oldLevel_ != 0) { - output.writeUInt32(3, oldLevel_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, avatarGuid_); - } - if (avatarSkillId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, avatarSkillId_); - } - if (oldLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, oldLevel_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq other = (emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq) obj; - - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (getAvatarSkillId() - != other.getAvatarSkillId()) return false; - if (getOldLevel() - != other.getOldLevel()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - hash = (37 * hash) + AVATARSKILLID_FIELD_NUMBER; - hash = (53 * hash) + getAvatarSkillId(); - hash = (37 * hash) + OLDLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getOldLevel(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarSkillUpgradeReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarSkillUpgradeReq) - emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.internal_static_AvatarSkillUpgradeReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.internal_static_AvatarSkillUpgradeReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq.class, emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - avatarGuid_ = 0L; - - avatarSkillId_ = 0; - - oldLevel_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.internal_static_AvatarSkillUpgradeReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq build() { - emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq buildPartial() { - emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq result = new emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq(this); - result.avatarGuid_ = avatarGuid_; - result.avatarSkillId_ = avatarSkillId_; - result.oldLevel_ = oldLevel_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq) { - return mergeFrom((emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq other) { - if (other == emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq.getDefaultInstance()) return this; - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - if (other.getAvatarSkillId() != 0) { - setAvatarSkillId(other.getAvatarSkillId()); - } - if (other.getOldLevel() != 0) { - setOldLevel(other.getOldLevel()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private int avatarSkillId_ ; - /** - * <code>uint32 avatarSkillId = 2;</code> - * @return The avatarSkillId. - */ - @java.lang.Override - public int getAvatarSkillId() { - return avatarSkillId_; - } - /** - * <code>uint32 avatarSkillId = 2;</code> - * @param value The avatarSkillId to set. - * @return This builder for chaining. - */ - public Builder setAvatarSkillId(int value) { - - avatarSkillId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 avatarSkillId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarSkillId() { - - avatarSkillId_ = 0; - onChanged(); - return this; - } - - private int oldLevel_ ; - /** - * <code>uint32 oldLevel = 3;</code> - * @return The oldLevel. - */ - @java.lang.Override - public int getOldLevel() { - return oldLevel_; - } - /** - * <code>uint32 oldLevel = 3;</code> - * @param value The oldLevel to set. - * @return This builder for chaining. - */ - public Builder setOldLevel(int value) { - - oldLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 oldLevel = 3;</code> - * @return This builder for chaining. - */ - public Builder clearOldLevel() { - - oldLevel_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarSkillUpgradeReq) - } - - // @@protoc_insertion_point(class_scope:AvatarSkillUpgradeReq) - private static final emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq(); - } - - public static emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarSkillUpgradeReq> - PARSER = new com.google.protobuf.AbstractParser<AvatarSkillUpgradeReq>() { - @java.lang.Override - public AvatarSkillUpgradeReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarSkillUpgradeReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarSkillUpgradeReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarSkillUpgradeReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarSkillUpgradeReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarSkillUpgradeReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033AvatarSkillUpgradeReq.proto\"T\n\025AvatarS" + - "killUpgradeReq\022\022\n\navatarGuid\030\001 \001(\004\022\025\n\rav" + - "atarSkillId\030\002 \001(\r\022\020\n\010oldLevel\030\003 \001(\rB\033\n\031e" + - "mu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AvatarSkillUpgradeReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarSkillUpgradeReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarSkillUpgradeReq_descriptor, - new java.lang.String[] { "AvatarGuid", "AvatarSkillId", "OldLevel", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarSkillUpgradeRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarSkillUpgradeRspOuterClass.java deleted file mode 100644 index d94b283eb..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarSkillUpgradeRspOuterClass.java +++ /dev/null @@ -1,819 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarSkillUpgradeRsp.proto - -package emu.grasscutter.net.proto; - -public final class AvatarSkillUpgradeRspOuterClass { - private AvatarSkillUpgradeRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarSkillUpgradeRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarSkillUpgradeRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>uint32 avatarSkillId = 3;</code> - * @return The avatarSkillId. - */ - int getAvatarSkillId(); - - /** - * <code>uint32 oldLevel = 4;</code> - * @return The oldLevel. - */ - int getOldLevel(); - - /** - * <code>uint32 curLevel = 5;</code> - * @return The curLevel. - */ - int getCurLevel(); - } - /** - * Protobuf type {@code AvatarSkillUpgradeRsp} - */ - public static final class AvatarSkillUpgradeRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarSkillUpgradeRsp) - AvatarSkillUpgradeRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarSkillUpgradeRsp.newBuilder() to construct. - private AvatarSkillUpgradeRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarSkillUpgradeRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarSkillUpgradeRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarSkillUpgradeRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 24: { - - avatarSkillId_ = input.readUInt32(); - break; - } - case 32: { - - oldLevel_ = input.readUInt32(); - break; - } - case 40: { - - curLevel_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.internal_static_AvatarSkillUpgradeRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.internal_static_AvatarSkillUpgradeRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp.class, emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int AVATARGUID_FIELD_NUMBER = 2; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int AVATARSKILLID_FIELD_NUMBER = 3; - private int avatarSkillId_; - /** - * <code>uint32 avatarSkillId = 3;</code> - * @return The avatarSkillId. - */ - @java.lang.Override - public int getAvatarSkillId() { - return avatarSkillId_; - } - - public static final int OLDLEVEL_FIELD_NUMBER = 4; - private int oldLevel_; - /** - * <code>uint32 oldLevel = 4;</code> - * @return The oldLevel. - */ - @java.lang.Override - public int getOldLevel() { - return oldLevel_; - } - - public static final int CURLEVEL_FIELD_NUMBER = 5; - private int curLevel_; - /** - * <code>uint32 curLevel = 5;</code> - * @return The curLevel. - */ - @java.lang.Override - public int getCurLevel() { - return curLevel_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (avatarGuid_ != 0L) { - output.writeUInt64(2, avatarGuid_); - } - if (avatarSkillId_ != 0) { - output.writeUInt32(3, avatarSkillId_); - } - if (oldLevel_ != 0) { - output.writeUInt32(4, oldLevel_); - } - if (curLevel_ != 0) { - output.writeUInt32(5, curLevel_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, avatarGuid_); - } - if (avatarSkillId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, avatarSkillId_); - } - if (oldLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, oldLevel_); - } - if (curLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, curLevel_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp other = (emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (getAvatarSkillId() - != other.getAvatarSkillId()) return false; - if (getOldLevel() - != other.getOldLevel()) return false; - if (getCurLevel() - != other.getCurLevel()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - hash = (37 * hash) + AVATARSKILLID_FIELD_NUMBER; - hash = (53 * hash) + getAvatarSkillId(); - hash = (37 * hash) + OLDLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getOldLevel(); - hash = (37 * hash) + CURLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getCurLevel(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarSkillUpgradeRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarSkillUpgradeRsp) - emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.internal_static_AvatarSkillUpgradeRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.internal_static_AvatarSkillUpgradeRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp.class, emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - avatarGuid_ = 0L; - - avatarSkillId_ = 0; - - oldLevel_ = 0; - - curLevel_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.internal_static_AvatarSkillUpgradeRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp build() { - emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp buildPartial() { - emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp result = new emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp(this); - result.retcode_ = retcode_; - result.avatarGuid_ = avatarGuid_; - result.avatarSkillId_ = avatarSkillId_; - result.oldLevel_ = oldLevel_; - result.curLevel_ = curLevel_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp) { - return mergeFrom((emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp other) { - if (other == emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - if (other.getAvatarSkillId() != 0) { - setAvatarSkillId(other.getAvatarSkillId()); - } - if (other.getOldLevel() != 0) { - setOldLevel(other.getOldLevel()); - } - if (other.getCurLevel() != 0) { - setCurLevel(other.getCurLevel()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 2;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private int avatarSkillId_ ; - /** - * <code>uint32 avatarSkillId = 3;</code> - * @return The avatarSkillId. - */ - @java.lang.Override - public int getAvatarSkillId() { - return avatarSkillId_; - } - /** - * <code>uint32 avatarSkillId = 3;</code> - * @param value The avatarSkillId to set. - * @return This builder for chaining. - */ - public Builder setAvatarSkillId(int value) { - - avatarSkillId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 avatarSkillId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarSkillId() { - - avatarSkillId_ = 0; - onChanged(); - return this; - } - - private int oldLevel_ ; - /** - * <code>uint32 oldLevel = 4;</code> - * @return The oldLevel. - */ - @java.lang.Override - public int getOldLevel() { - return oldLevel_; - } - /** - * <code>uint32 oldLevel = 4;</code> - * @param value The oldLevel to set. - * @return This builder for chaining. - */ - public Builder setOldLevel(int value) { - - oldLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 oldLevel = 4;</code> - * @return This builder for chaining. - */ - public Builder clearOldLevel() { - - oldLevel_ = 0; - onChanged(); - return this; - } - - private int curLevel_ ; - /** - * <code>uint32 curLevel = 5;</code> - * @return The curLevel. - */ - @java.lang.Override - public int getCurLevel() { - return curLevel_; - } - /** - * <code>uint32 curLevel = 5;</code> - * @param value The curLevel to set. - * @return This builder for chaining. - */ - public Builder setCurLevel(int value) { - - curLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 curLevel = 5;</code> - * @return This builder for chaining. - */ - public Builder clearCurLevel() { - - curLevel_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarSkillUpgradeRsp) - } - - // @@protoc_insertion_point(class_scope:AvatarSkillUpgradeRsp) - private static final emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp(); - } - - public static emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarSkillUpgradeRsp> - PARSER = new com.google.protobuf.AbstractParser<AvatarSkillUpgradeRsp>() { - @java.lang.Override - public AvatarSkillUpgradeRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarSkillUpgradeRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarSkillUpgradeRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarSkillUpgradeRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarSkillUpgradeRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarSkillUpgradeRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033AvatarSkillUpgradeRsp.proto\"w\n\025AvatarS" + - "killUpgradeRsp\022\017\n\007retcode\030\001 \001(\005\022\022\n\navata" + - "rGuid\030\002 \001(\004\022\025\n\ravatarSkillId\030\003 \001(\r\022\020\n\010ol" + - "dLevel\030\004 \001(\r\022\020\n\010curLevel\030\005 \001(\rB\033\n\031emu.gr" + - "asscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AvatarSkillUpgradeRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarSkillUpgradeRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarSkillUpgradeRsp_descriptor, - new java.lang.String[] { "Retcode", "AvatarGuid", "AvatarSkillId", "OldLevel", "CurLevel", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarTeamOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarTeamOuterClass.java deleted file mode 100644 index 8ef22b989..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarTeamOuterClass.java +++ /dev/null @@ -1,813 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarTeam.proto - -package emu.grasscutter.net.proto; - -public final class AvatarTeamOuterClass { - private AvatarTeamOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarTeamOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarTeam) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated uint64 avatarGuidList = 1;</code> - * @return A list containing the avatarGuidList. - */ - java.util.List<java.lang.Long> getAvatarGuidListList(); - /** - * <code>repeated uint64 avatarGuidList = 1;</code> - * @return The count of avatarGuidList. - */ - int getAvatarGuidListCount(); - /** - * <code>repeated uint64 avatarGuidList = 1;</code> - * @param index The index of the element to return. - * @return The avatarGuidList at the given index. - */ - long getAvatarGuidList(int index); - - /** - * <code>string teamName = 2;</code> - * @return The teamName. - */ - java.lang.String getTeamName(); - /** - * <code>string teamName = 2;</code> - * @return The bytes for teamName. - */ - com.google.protobuf.ByteString - getTeamNameBytes(); - } - /** - * Protobuf type {@code AvatarTeam} - */ - public static final class AvatarTeam extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarTeam) - AvatarTeamOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarTeam.newBuilder() to construct. - private AvatarTeam(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarTeam() { - avatarGuidList_ = emptyLongList(); - teamName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarTeam(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarTeam( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - avatarGuidList_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - avatarGuidList_.addLong(input.readUInt64()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - avatarGuidList_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - avatarGuidList_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - teamName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - avatarGuidList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarTeamOuterClass.internal_static_AvatarTeam_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarTeamOuterClass.internal_static_AvatarTeam_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam.class, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam.Builder.class); - } - - public static final int AVATARGUIDLIST_FIELD_NUMBER = 1; - private com.google.protobuf.Internal.LongList avatarGuidList_; - /** - * <code>repeated uint64 avatarGuidList = 1;</code> - * @return A list containing the avatarGuidList. - */ - @java.lang.Override - public java.util.List<java.lang.Long> - getAvatarGuidListList() { - return avatarGuidList_; - } - /** - * <code>repeated uint64 avatarGuidList = 1;</code> - * @return The count of avatarGuidList. - */ - public int getAvatarGuidListCount() { - return avatarGuidList_.size(); - } - /** - * <code>repeated uint64 avatarGuidList = 1;</code> - * @param index The index of the element to return. - * @return The avatarGuidList at the given index. - */ - public long getAvatarGuidList(int index) { - return avatarGuidList_.getLong(index); - } - private int avatarGuidListMemoizedSerializedSize = -1; - - public static final int TEAMNAME_FIELD_NUMBER = 2; - private volatile java.lang.Object teamName_; - /** - * <code>string teamName = 2;</code> - * @return The teamName. - */ - @java.lang.Override - public java.lang.String getTeamName() { - java.lang.Object ref = teamName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - teamName_ = s; - return s; - } - } - /** - * <code>string teamName = 2;</code> - * @return The bytes for teamName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTeamNameBytes() { - java.lang.Object ref = teamName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - teamName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getAvatarGuidListList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(avatarGuidListMemoizedSerializedSize); - } - for (int i = 0; i < avatarGuidList_.size(); i++) { - output.writeUInt64NoTag(avatarGuidList_.getLong(i)); - } - if (!getTeamNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, teamName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < avatarGuidList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(avatarGuidList_.getLong(i)); - } - size += dataSize; - if (!getAvatarGuidListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - avatarGuidListMemoizedSerializedSize = dataSize; - } - if (!getTeamNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, teamName_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam other = (emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam) obj; - - if (!getAvatarGuidListList() - .equals(other.getAvatarGuidListList())) return false; - if (!getTeamName() - .equals(other.getTeamName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAvatarGuidListCount() > 0) { - hash = (37 * hash) + AVATARGUIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getAvatarGuidListList().hashCode(); - } - hash = (37 * hash) + TEAMNAME_FIELD_NUMBER; - hash = (53 * hash) + getTeamName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarTeam} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarTeam) - emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeamOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarTeamOuterClass.internal_static_AvatarTeam_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarTeamOuterClass.internal_static_AvatarTeam_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam.class, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - avatarGuidList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - teamName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarTeamOuterClass.internal_static_AvatarTeam_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam build() { - emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam buildPartial() { - emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam result = new emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - avatarGuidList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.avatarGuidList_ = avatarGuidList_; - result.teamName_ = teamName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam) { - return mergeFrom((emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam other) { - if (other == emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam.getDefaultInstance()) return this; - if (!other.avatarGuidList_.isEmpty()) { - if (avatarGuidList_.isEmpty()) { - avatarGuidList_ = other.avatarGuidList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAvatarGuidListIsMutable(); - avatarGuidList_.addAll(other.avatarGuidList_); - } - onChanged(); - } - if (!other.getTeamName().isEmpty()) { - teamName_ = other.teamName_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.Internal.LongList avatarGuidList_ = emptyLongList(); - private void ensureAvatarGuidListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - avatarGuidList_ = mutableCopy(avatarGuidList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint64 avatarGuidList = 1;</code> - * @return A list containing the avatarGuidList. - */ - public java.util.List<java.lang.Long> - getAvatarGuidListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(avatarGuidList_) : avatarGuidList_; - } - /** - * <code>repeated uint64 avatarGuidList = 1;</code> - * @return The count of avatarGuidList. - */ - public int getAvatarGuidListCount() { - return avatarGuidList_.size(); - } - /** - * <code>repeated uint64 avatarGuidList = 1;</code> - * @param index The index of the element to return. - * @return The avatarGuidList at the given index. - */ - public long getAvatarGuidList(int index) { - return avatarGuidList_.getLong(index); - } - /** - * <code>repeated uint64 avatarGuidList = 1;</code> - * @param index The index to set the value at. - * @param value The avatarGuidList to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuidList( - int index, long value) { - ensureAvatarGuidListIsMutable(); - avatarGuidList_.setLong(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint64 avatarGuidList = 1;</code> - * @param value The avatarGuidList to add. - * @return This builder for chaining. - */ - public Builder addAvatarGuidList(long value) { - ensureAvatarGuidListIsMutable(); - avatarGuidList_.addLong(value); - onChanged(); - return this; - } - /** - * <code>repeated uint64 avatarGuidList = 1;</code> - * @param values The avatarGuidList to add. - * @return This builder for chaining. - */ - public Builder addAllAvatarGuidList( - java.lang.Iterable<? extends java.lang.Long> values) { - ensureAvatarGuidListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, avatarGuidList_); - onChanged(); - return this; - } - /** - * <code>repeated uint64 avatarGuidList = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuidList() { - avatarGuidList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private java.lang.Object teamName_ = ""; - /** - * <code>string teamName = 2;</code> - * @return The teamName. - */ - public java.lang.String getTeamName() { - java.lang.Object ref = teamName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - teamName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string teamName = 2;</code> - * @return The bytes for teamName. - */ - public com.google.protobuf.ByteString - getTeamNameBytes() { - java.lang.Object ref = teamName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - teamName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string teamName = 2;</code> - * @param value The teamName to set. - * @return This builder for chaining. - */ - public Builder setTeamName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - teamName_ = value; - onChanged(); - return this; - } - /** - * <code>string teamName = 2;</code> - * @return This builder for chaining. - */ - public Builder clearTeamName() { - - teamName_ = getDefaultInstance().getTeamName(); - onChanged(); - return this; - } - /** - * <code>string teamName = 2;</code> - * @param value The bytes for teamName to set. - * @return This builder for chaining. - */ - public Builder setTeamNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - teamName_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarTeam) - } - - // @@protoc_insertion_point(class_scope:AvatarTeam) - private static final emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam(); - } - - public static emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarTeam> - PARSER = new com.google.protobuf.AbstractParser<AvatarTeam>() { - @java.lang.Override - public AvatarTeam parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarTeam(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarTeam> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarTeam> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarTeam_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarTeam_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020AvatarTeam.proto\"6\n\nAvatarTeam\022\026\n\016avat" + - "arGuidList\030\001 \003(\004\022\020\n\010teamName\030\002 \001(\tB\033\n\031em" + - "u.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AvatarTeam_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarTeam_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarTeam_descriptor, - new java.lang.String[] { "AvatarGuidList", "TeamName", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarTeamResonanceInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarTeamResonanceInfoOuterClass.java deleted file mode 100644 index 5513515d9..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarTeamResonanceInfoOuterClass.java +++ /dev/null @@ -1,999 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarTeamResonanceInfo.proto - -package emu.grasscutter.net.proto; - -public final class AvatarTeamResonanceInfoOuterClass { - private AvatarTeamResonanceInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarTeamResonanceInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarTeamResonanceInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - int getEntityId(); - - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>repeated uint32 addTeamResonanceIdList = 3;</code> - * @return A list containing the addTeamResonanceIdList. - */ - java.util.List<java.lang.Integer> getAddTeamResonanceIdListList(); - /** - * <code>repeated uint32 addTeamResonanceIdList = 3;</code> - * @return The count of addTeamResonanceIdList. - */ - int getAddTeamResonanceIdListCount(); - /** - * <code>repeated uint32 addTeamResonanceIdList = 3;</code> - * @param index The index of the element to return. - * @return The addTeamResonanceIdList at the given index. - */ - int getAddTeamResonanceIdList(int index); - - /** - * <code>repeated uint32 delTeamResonanceIdList = 4;</code> - * @return A list containing the delTeamResonanceIdList. - */ - java.util.List<java.lang.Integer> getDelTeamResonanceIdListList(); - /** - * <code>repeated uint32 delTeamResonanceIdList = 4;</code> - * @return The count of delTeamResonanceIdList. - */ - int getDelTeamResonanceIdListCount(); - /** - * <code>repeated uint32 delTeamResonanceIdList = 4;</code> - * @param index The index of the element to return. - * @return The delTeamResonanceIdList at the given index. - */ - int getDelTeamResonanceIdList(int index); - } - /** - * Protobuf type {@code AvatarTeamResonanceInfo} - */ - public static final class AvatarTeamResonanceInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarTeamResonanceInfo) - AvatarTeamResonanceInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarTeamResonanceInfo.newBuilder() to construct. - private AvatarTeamResonanceInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarTeamResonanceInfo() { - addTeamResonanceIdList_ = emptyIntList(); - delTeamResonanceIdList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarTeamResonanceInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarTeamResonanceInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - entityId_ = input.readUInt32(); - break; - } - case 16: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 24: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - addTeamResonanceIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - addTeamResonanceIdList_.addInt(input.readUInt32()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - addTeamResonanceIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - addTeamResonanceIdList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 32: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - delTeamResonanceIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - delTeamResonanceIdList_.addInt(input.readUInt32()); - break; - } - case 34: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - delTeamResonanceIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - delTeamResonanceIdList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - addTeamResonanceIdList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - delTeamResonanceIdList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.internal_static_AvatarTeamResonanceInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.internal_static_AvatarTeamResonanceInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo.class, emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo.Builder.class); - } - - public static final int ENTITYID_FIELD_NUMBER = 1; - private int entityId_; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - - public static final int AVATARGUID_FIELD_NUMBER = 2; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int ADDTEAMRESONANCEIDLIST_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.IntList addTeamResonanceIdList_; - /** - * <code>repeated uint32 addTeamResonanceIdList = 3;</code> - * @return A list containing the addTeamResonanceIdList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getAddTeamResonanceIdListList() { - return addTeamResonanceIdList_; - } - /** - * <code>repeated uint32 addTeamResonanceIdList = 3;</code> - * @return The count of addTeamResonanceIdList. - */ - public int getAddTeamResonanceIdListCount() { - return addTeamResonanceIdList_.size(); - } - /** - * <code>repeated uint32 addTeamResonanceIdList = 3;</code> - * @param index The index of the element to return. - * @return The addTeamResonanceIdList at the given index. - */ - public int getAddTeamResonanceIdList(int index) { - return addTeamResonanceIdList_.getInt(index); - } - private int addTeamResonanceIdListMemoizedSerializedSize = -1; - - public static final int DELTEAMRESONANCEIDLIST_FIELD_NUMBER = 4; - private com.google.protobuf.Internal.IntList delTeamResonanceIdList_; - /** - * <code>repeated uint32 delTeamResonanceIdList = 4;</code> - * @return A list containing the delTeamResonanceIdList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getDelTeamResonanceIdListList() { - return delTeamResonanceIdList_; - } - /** - * <code>repeated uint32 delTeamResonanceIdList = 4;</code> - * @return The count of delTeamResonanceIdList. - */ - public int getDelTeamResonanceIdListCount() { - return delTeamResonanceIdList_.size(); - } - /** - * <code>repeated uint32 delTeamResonanceIdList = 4;</code> - * @param index The index of the element to return. - * @return The delTeamResonanceIdList at the given index. - */ - public int getDelTeamResonanceIdList(int index) { - return delTeamResonanceIdList_.getInt(index); - } - private int delTeamResonanceIdListMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (entityId_ != 0) { - output.writeUInt32(1, entityId_); - } - if (avatarGuid_ != 0L) { - output.writeUInt64(2, avatarGuid_); - } - if (getAddTeamResonanceIdListList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(addTeamResonanceIdListMemoizedSerializedSize); - } - for (int i = 0; i < addTeamResonanceIdList_.size(); i++) { - output.writeUInt32NoTag(addTeamResonanceIdList_.getInt(i)); - } - if (getDelTeamResonanceIdListList().size() > 0) { - output.writeUInt32NoTag(34); - output.writeUInt32NoTag(delTeamResonanceIdListMemoizedSerializedSize); - } - for (int i = 0; i < delTeamResonanceIdList_.size(); i++) { - output.writeUInt32NoTag(delTeamResonanceIdList_.getInt(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, entityId_); - } - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, avatarGuid_); - } - { - int dataSize = 0; - for (int i = 0; i < addTeamResonanceIdList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(addTeamResonanceIdList_.getInt(i)); - } - size += dataSize; - if (!getAddTeamResonanceIdListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - addTeamResonanceIdListMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < delTeamResonanceIdList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(delTeamResonanceIdList_.getInt(i)); - } - size += dataSize; - if (!getDelTeamResonanceIdListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - delTeamResonanceIdListMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo other = (emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo) obj; - - if (getEntityId() - != other.getEntityId()) return false; - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (!getAddTeamResonanceIdListList() - .equals(other.getAddTeamResonanceIdListList())) return false; - if (!getDelTeamResonanceIdListList() - .equals(other.getDelTeamResonanceIdListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - if (getAddTeamResonanceIdListCount() > 0) { - hash = (37 * hash) + ADDTEAMRESONANCEIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getAddTeamResonanceIdListList().hashCode(); - } - if (getDelTeamResonanceIdListCount() > 0) { - hash = (37 * hash) + DELTEAMRESONANCEIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getDelTeamResonanceIdListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarTeamResonanceInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarTeamResonanceInfo) - emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.internal_static_AvatarTeamResonanceInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.internal_static_AvatarTeamResonanceInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo.class, emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - entityId_ = 0; - - avatarGuid_ = 0L; - - addTeamResonanceIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - delTeamResonanceIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.internal_static_AvatarTeamResonanceInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo build() { - emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo buildPartial() { - emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo result = new emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo(this); - int from_bitField0_ = bitField0_; - result.entityId_ = entityId_; - result.avatarGuid_ = avatarGuid_; - if (((bitField0_ & 0x00000001) != 0)) { - addTeamResonanceIdList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.addTeamResonanceIdList_ = addTeamResonanceIdList_; - if (((bitField0_ & 0x00000002) != 0)) { - delTeamResonanceIdList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.delTeamResonanceIdList_ = delTeamResonanceIdList_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo) { - return mergeFrom((emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo other) { - if (other == emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo.getDefaultInstance()) return this; - if (other.getEntityId() != 0) { - setEntityId(other.getEntityId()); - } - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - if (!other.addTeamResonanceIdList_.isEmpty()) { - if (addTeamResonanceIdList_.isEmpty()) { - addTeamResonanceIdList_ = other.addTeamResonanceIdList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAddTeamResonanceIdListIsMutable(); - addTeamResonanceIdList_.addAll(other.addTeamResonanceIdList_); - } - onChanged(); - } - if (!other.delTeamResonanceIdList_.isEmpty()) { - if (delTeamResonanceIdList_.isEmpty()) { - delTeamResonanceIdList_ = other.delTeamResonanceIdList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureDelTeamResonanceIdListIsMutable(); - delTeamResonanceIdList_.addAll(other.delTeamResonanceIdList_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int entityId_ ; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - /** - * <code>uint32 entityId = 1;</code> - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId(int value) { - - entityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 entityId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearEntityId() { - - entityId_ = 0; - onChanged(); - return this; - } - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 2;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList addTeamResonanceIdList_ = emptyIntList(); - private void ensureAddTeamResonanceIdListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - addTeamResonanceIdList_ = mutableCopy(addTeamResonanceIdList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 addTeamResonanceIdList = 3;</code> - * @return A list containing the addTeamResonanceIdList. - */ - public java.util.List<java.lang.Integer> - getAddTeamResonanceIdListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(addTeamResonanceIdList_) : addTeamResonanceIdList_; - } - /** - * <code>repeated uint32 addTeamResonanceIdList = 3;</code> - * @return The count of addTeamResonanceIdList. - */ - public int getAddTeamResonanceIdListCount() { - return addTeamResonanceIdList_.size(); - } - /** - * <code>repeated uint32 addTeamResonanceIdList = 3;</code> - * @param index The index of the element to return. - * @return The addTeamResonanceIdList at the given index. - */ - public int getAddTeamResonanceIdList(int index) { - return addTeamResonanceIdList_.getInt(index); - } - /** - * <code>repeated uint32 addTeamResonanceIdList = 3;</code> - * @param index The index to set the value at. - * @param value The addTeamResonanceIdList to set. - * @return This builder for chaining. - */ - public Builder setAddTeamResonanceIdList( - int index, int value) { - ensureAddTeamResonanceIdListIsMutable(); - addTeamResonanceIdList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 addTeamResonanceIdList = 3;</code> - * @param value The addTeamResonanceIdList to add. - * @return This builder for chaining. - */ - public Builder addAddTeamResonanceIdList(int value) { - ensureAddTeamResonanceIdListIsMutable(); - addTeamResonanceIdList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 addTeamResonanceIdList = 3;</code> - * @param values The addTeamResonanceIdList to add. - * @return This builder for chaining. - */ - public Builder addAllAddTeamResonanceIdList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureAddTeamResonanceIdListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, addTeamResonanceIdList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 addTeamResonanceIdList = 3;</code> - * @return This builder for chaining. - */ - public Builder clearAddTeamResonanceIdList() { - addTeamResonanceIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList delTeamResonanceIdList_ = emptyIntList(); - private void ensureDelTeamResonanceIdListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - delTeamResonanceIdList_ = mutableCopy(delTeamResonanceIdList_); - bitField0_ |= 0x00000002; - } - } - /** - * <code>repeated uint32 delTeamResonanceIdList = 4;</code> - * @return A list containing the delTeamResonanceIdList. - */ - public java.util.List<java.lang.Integer> - getDelTeamResonanceIdListList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(delTeamResonanceIdList_) : delTeamResonanceIdList_; - } - /** - * <code>repeated uint32 delTeamResonanceIdList = 4;</code> - * @return The count of delTeamResonanceIdList. - */ - public int getDelTeamResonanceIdListCount() { - return delTeamResonanceIdList_.size(); - } - /** - * <code>repeated uint32 delTeamResonanceIdList = 4;</code> - * @param index The index of the element to return. - * @return The delTeamResonanceIdList at the given index. - */ - public int getDelTeamResonanceIdList(int index) { - return delTeamResonanceIdList_.getInt(index); - } - /** - * <code>repeated uint32 delTeamResonanceIdList = 4;</code> - * @param index The index to set the value at. - * @param value The delTeamResonanceIdList to set. - * @return This builder for chaining. - */ - public Builder setDelTeamResonanceIdList( - int index, int value) { - ensureDelTeamResonanceIdListIsMutable(); - delTeamResonanceIdList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 delTeamResonanceIdList = 4;</code> - * @param value The delTeamResonanceIdList to add. - * @return This builder for chaining. - */ - public Builder addDelTeamResonanceIdList(int value) { - ensureDelTeamResonanceIdListIsMutable(); - delTeamResonanceIdList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 delTeamResonanceIdList = 4;</code> - * @param values The delTeamResonanceIdList to add. - * @return This builder for chaining. - */ - public Builder addAllDelTeamResonanceIdList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureDelTeamResonanceIdListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, delTeamResonanceIdList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 delTeamResonanceIdList = 4;</code> - * @return This builder for chaining. - */ - public Builder clearDelTeamResonanceIdList() { - delTeamResonanceIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarTeamResonanceInfo) - } - - // @@protoc_insertion_point(class_scope:AvatarTeamResonanceInfo) - private static final emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo(); - } - - public static emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarTeamResonanceInfo> - PARSER = new com.google.protobuf.AbstractParser<AvatarTeamResonanceInfo>() { - @java.lang.Override - public AvatarTeamResonanceInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarTeamResonanceInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarTeamResonanceInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarTeamResonanceInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarTeamResonanceInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarTeamResonanceInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035AvatarTeamResonanceInfo.proto\"\177\n\027Avata" + - "rTeamResonanceInfo\022\020\n\010entityId\030\001 \001(\r\022\022\n\n" + - "avatarGuid\030\002 \001(\004\022\036\n\026addTeamResonanceIdLi" + - "st\030\003 \003(\r\022\036\n\026delTeamResonanceIdList\030\004 \003(\r" + - "B\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AvatarTeamResonanceInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarTeamResonanceInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarTeamResonanceInfo_descriptor, - new java.lang.String[] { "EntityId", "AvatarGuid", "AddTeamResonanceIdList", "DelTeamResonanceIdList", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarTeamUpdateNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarTeamUpdateNotifyOuterClass.java deleted file mode 100644 index 9567d4419..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarTeamUpdateNotifyOuterClass.java +++ /dev/null @@ -1,997 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarTeamUpdateNotify.proto - -package emu.grasscutter.net.proto; - -public final class AvatarTeamUpdateNotifyOuterClass { - private AvatarTeamUpdateNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarTeamUpdateNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarTeamUpdateNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 1;</code> - */ - int getAvatarTeamMapCount(); - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 1;</code> - */ - boolean containsAvatarTeamMap( - int key); - /** - * Use {@link #getAvatarTeamMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> - getAvatarTeamMap(); - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 1;</code> - */ - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> - getAvatarTeamMapMap(); - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 1;</code> - */ - - emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrDefault( - int key, - emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam defaultValue); - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 1;</code> - */ - - emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrThrow( - int key); - - /** - * <code>repeated uint64 tempAvatarGuidList = 2;</code> - * @return A list containing the tempAvatarGuidList. - */ - java.util.List<java.lang.Long> getTempAvatarGuidListList(); - /** - * <code>repeated uint64 tempAvatarGuidList = 2;</code> - * @return The count of tempAvatarGuidList. - */ - int getTempAvatarGuidListCount(); - /** - * <code>repeated uint64 tempAvatarGuidList = 2;</code> - * @param index The index of the element to return. - * @return The tempAvatarGuidList at the given index. - */ - long getTempAvatarGuidList(int index); - } - /** - * Protobuf type {@code AvatarTeamUpdateNotify} - */ - public static final class AvatarTeamUpdateNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarTeamUpdateNotify) - AvatarTeamUpdateNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarTeamUpdateNotify.newBuilder() to construct. - private AvatarTeamUpdateNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarTeamUpdateNotify() { - tempAvatarGuidList_ = emptyLongList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarTeamUpdateNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarTeamUpdateNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - avatarTeamMap_ = com.google.protobuf.MapField.newMapField( - AvatarTeamMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> - avatarTeamMap__ = input.readMessage( - AvatarTeamMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - avatarTeamMap_.getMutableMap().put( - avatarTeamMap__.getKey(), avatarTeamMap__.getValue()); - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - tempAvatarGuidList_ = newLongList(); - mutable_bitField0_ |= 0x00000002; - } - tempAvatarGuidList_.addLong(input.readUInt64()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - tempAvatarGuidList_ = newLongList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - tempAvatarGuidList_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - tempAvatarGuidList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.internal_static_AvatarTeamUpdateNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetAvatarTeamMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.internal_static_AvatarTeamUpdateNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify.class, emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify.Builder.class); - } - - public static final int AVATARTEAMMAP_FIELD_NUMBER = 1; - private static final class AvatarTeamMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam>newDefaultInstance( - emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.internal_static_AvatarTeamUpdateNotify_AvatarTeamMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> avatarTeamMap_; - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> - internalGetAvatarTeamMap() { - if (avatarTeamMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AvatarTeamMapDefaultEntryHolder.defaultEntry); - } - return avatarTeamMap_; - } - - public int getAvatarTeamMapCount() { - return internalGetAvatarTeamMap().getMap().size(); - } - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 1;</code> - */ - - @java.lang.Override - public boolean containsAvatarTeamMap( - int key) { - - return internalGetAvatarTeamMap().getMap().containsKey(key); - } - /** - * Use {@link #getAvatarTeamMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> getAvatarTeamMap() { - return getAvatarTeamMapMap(); - } - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 1;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> getAvatarTeamMapMap() { - return internalGetAvatarTeamMap().getMap(); - } - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 1;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrDefault( - int key, - emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam defaultValue) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> map = - internalGetAvatarTeamMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 1;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> map = - internalGetAvatarTeamMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int TEMPAVATARGUIDLIST_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.LongList tempAvatarGuidList_; - /** - * <code>repeated uint64 tempAvatarGuidList = 2;</code> - * @return A list containing the tempAvatarGuidList. - */ - @java.lang.Override - public java.util.List<java.lang.Long> - getTempAvatarGuidListList() { - return tempAvatarGuidList_; - } - /** - * <code>repeated uint64 tempAvatarGuidList = 2;</code> - * @return The count of tempAvatarGuidList. - */ - public int getTempAvatarGuidListCount() { - return tempAvatarGuidList_.size(); - } - /** - * <code>repeated uint64 tempAvatarGuidList = 2;</code> - * @param index The index of the element to return. - * @return The tempAvatarGuidList at the given index. - */ - public long getTempAvatarGuidList(int index) { - return tempAvatarGuidList_.getLong(index); - } - private int tempAvatarGuidListMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetAvatarTeamMap(), - AvatarTeamMapDefaultEntryHolder.defaultEntry, - 1); - if (getTempAvatarGuidListList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(tempAvatarGuidListMemoizedSerializedSize); - } - for (int i = 0; i < tempAvatarGuidList_.size(); i++) { - output.writeUInt64NoTag(tempAvatarGuidList_.getLong(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> entry - : internalGetAvatarTeamMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> - avatarTeamMap__ = AvatarTeamMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, avatarTeamMap__); - } - { - int dataSize = 0; - for (int i = 0; i < tempAvatarGuidList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(tempAvatarGuidList_.getLong(i)); - } - size += dataSize; - if (!getTempAvatarGuidListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - tempAvatarGuidListMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify other = (emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify) obj; - - if (!internalGetAvatarTeamMap().equals( - other.internalGetAvatarTeamMap())) return false; - if (!getTempAvatarGuidListList() - .equals(other.getTempAvatarGuidListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetAvatarTeamMap().getMap().isEmpty()) { - hash = (37 * hash) + AVATARTEAMMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetAvatarTeamMap().hashCode(); - } - if (getTempAvatarGuidListCount() > 0) { - hash = (37 * hash) + TEMPAVATARGUIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getTempAvatarGuidListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarTeamUpdateNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarTeamUpdateNotify) - emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.internal_static_AvatarTeamUpdateNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetAvatarTeamMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableAvatarTeamMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.internal_static_AvatarTeamUpdateNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify.class, emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableAvatarTeamMap().clear(); - tempAvatarGuidList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.internal_static_AvatarTeamUpdateNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify build() { - emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify buildPartial() { - emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify result = new emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify(this); - int from_bitField0_ = bitField0_; - result.avatarTeamMap_ = internalGetAvatarTeamMap(); - result.avatarTeamMap_.makeImmutable(); - if (((bitField0_ & 0x00000002) != 0)) { - tempAvatarGuidList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.tempAvatarGuidList_ = tempAvatarGuidList_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify) { - return mergeFrom((emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify other) { - if (other == emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify.getDefaultInstance()) return this; - internalGetMutableAvatarTeamMap().mergeFrom( - other.internalGetAvatarTeamMap()); - if (!other.tempAvatarGuidList_.isEmpty()) { - if (tempAvatarGuidList_.isEmpty()) { - tempAvatarGuidList_ = other.tempAvatarGuidList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureTempAvatarGuidListIsMutable(); - tempAvatarGuidList_.addAll(other.tempAvatarGuidList_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> avatarTeamMap_; - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> - internalGetAvatarTeamMap() { - if (avatarTeamMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AvatarTeamMapDefaultEntryHolder.defaultEntry); - } - return avatarTeamMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> - internalGetMutableAvatarTeamMap() { - onChanged();; - if (avatarTeamMap_ == null) { - avatarTeamMap_ = com.google.protobuf.MapField.newMapField( - AvatarTeamMapDefaultEntryHolder.defaultEntry); - } - if (!avatarTeamMap_.isMutable()) { - avatarTeamMap_ = avatarTeamMap_.copy(); - } - return avatarTeamMap_; - } - - public int getAvatarTeamMapCount() { - return internalGetAvatarTeamMap().getMap().size(); - } - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 1;</code> - */ - - @java.lang.Override - public boolean containsAvatarTeamMap( - int key) { - - return internalGetAvatarTeamMap().getMap().containsKey(key); - } - /** - * Use {@link #getAvatarTeamMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> getAvatarTeamMap() { - return getAvatarTeamMapMap(); - } - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 1;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> getAvatarTeamMapMap() { - return internalGetAvatarTeamMap().getMap(); - } - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 1;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrDefault( - int key, - emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam defaultValue) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> map = - internalGetAvatarTeamMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 1;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> map = - internalGetAvatarTeamMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearAvatarTeamMap() { - internalGetMutableAvatarTeamMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 1;</code> - */ - - public Builder removeAvatarTeamMap( - int key) { - - internalGetMutableAvatarTeamMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> - getMutableAvatarTeamMap() { - return internalGetMutableAvatarTeamMap().getMutableMap(); - } - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 1;</code> - */ - public Builder putAvatarTeamMap( - int key, - emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam value) { - - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAvatarTeamMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, .AvatarTeam> avatarTeamMap = 1;</code> - */ - - public Builder putAllAvatarTeamMap( - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> values) { - internalGetMutableAvatarTeamMap().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.Internal.LongList tempAvatarGuidList_ = emptyLongList(); - private void ensureTempAvatarGuidListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - tempAvatarGuidList_ = mutableCopy(tempAvatarGuidList_); - bitField0_ |= 0x00000002; - } - } - /** - * <code>repeated uint64 tempAvatarGuidList = 2;</code> - * @return A list containing the tempAvatarGuidList. - */ - public java.util.List<java.lang.Long> - getTempAvatarGuidListList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(tempAvatarGuidList_) : tempAvatarGuidList_; - } - /** - * <code>repeated uint64 tempAvatarGuidList = 2;</code> - * @return The count of tempAvatarGuidList. - */ - public int getTempAvatarGuidListCount() { - return tempAvatarGuidList_.size(); - } - /** - * <code>repeated uint64 tempAvatarGuidList = 2;</code> - * @param index The index of the element to return. - * @return The tempAvatarGuidList at the given index. - */ - public long getTempAvatarGuidList(int index) { - return tempAvatarGuidList_.getLong(index); - } - /** - * <code>repeated uint64 tempAvatarGuidList = 2;</code> - * @param index The index to set the value at. - * @param value The tempAvatarGuidList to set. - * @return This builder for chaining. - */ - public Builder setTempAvatarGuidList( - int index, long value) { - ensureTempAvatarGuidListIsMutable(); - tempAvatarGuidList_.setLong(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint64 tempAvatarGuidList = 2;</code> - * @param value The tempAvatarGuidList to add. - * @return This builder for chaining. - */ - public Builder addTempAvatarGuidList(long value) { - ensureTempAvatarGuidListIsMutable(); - tempAvatarGuidList_.addLong(value); - onChanged(); - return this; - } - /** - * <code>repeated uint64 tempAvatarGuidList = 2;</code> - * @param values The tempAvatarGuidList to add. - * @return This builder for chaining. - */ - public Builder addAllTempAvatarGuidList( - java.lang.Iterable<? extends java.lang.Long> values) { - ensureTempAvatarGuidListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tempAvatarGuidList_); - onChanged(); - return this; - } - /** - * <code>repeated uint64 tempAvatarGuidList = 2;</code> - * @return This builder for chaining. - */ - public Builder clearTempAvatarGuidList() { - tempAvatarGuidList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarTeamUpdateNotify) - } - - // @@protoc_insertion_point(class_scope:AvatarTeamUpdateNotify) - private static final emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify(); - } - - public static emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarTeamUpdateNotify> - PARSER = new com.google.protobuf.AbstractParser<AvatarTeamUpdateNotify>() { - @java.lang.Override - public AvatarTeamUpdateNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarTeamUpdateNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarTeamUpdateNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarTeamUpdateNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarTeamUpdateNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarTeamUpdateNotify_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarTeamUpdateNotify_AvatarTeamMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarTeamUpdateNotify_AvatarTeamMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034AvatarTeamUpdateNotify.proto\032\020AvatarTe" + - "am.proto\"\272\001\n\026AvatarTeamUpdateNotify\022A\n\ra" + - "vatarTeamMap\030\001 \003(\0132*.AvatarTeamUpdateNot" + - "ify.AvatarTeamMapEntry\022\032\n\022tempAvatarGuid" + - "List\030\002 \003(\004\032A\n\022AvatarTeamMapEntry\022\013\n\003key\030" + - "\001 \001(\r\022\032\n\005value\030\002 \001(\0132\013.AvatarTeam:\0028\001B\033\n" + - "\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AvatarTeamOuterClass.getDescriptor(), - }); - internal_static_AvatarTeamUpdateNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarTeamUpdateNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarTeamUpdateNotify_descriptor, - new java.lang.String[] { "AvatarTeamMap", "TempAvatarGuidList", }); - internal_static_AvatarTeamUpdateNotify_AvatarTeamMapEntry_descriptor = - internal_static_AvatarTeamUpdateNotify_descriptor.getNestedTypes().get(0); - internal_static_AvatarTeamUpdateNotify_AvatarTeamMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarTeamUpdateNotify_AvatarTeamMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - emu.grasscutter.net.proto.AvatarTeamOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarUnlockTalentNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarUnlockTalentNotifyOuterClass.java deleted file mode 100644 index 2ec0af8ba..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarUnlockTalentNotifyOuterClass.java +++ /dev/null @@ -1,749 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarUnlockTalentNotify.proto - -package emu.grasscutter.net.proto; - -public final class AvatarUnlockTalentNotifyOuterClass { - private AvatarUnlockTalentNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarUnlockTalentNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarUnlockTalentNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>uint32 entityId = 2;</code> - * @return The entityId. - */ - int getEntityId(); - - /** - * <code>uint32 talentId = 3;</code> - * @return The talentId. - */ - int getTalentId(); - - /** - * <code>uint32 skillDepotId = 4;</code> - * @return The skillDepotId. - */ - int getSkillDepotId(); - } - /** - * Protobuf type {@code AvatarUnlockTalentNotify} - */ - public static final class AvatarUnlockTalentNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarUnlockTalentNotify) - AvatarUnlockTalentNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarUnlockTalentNotify.newBuilder() to construct. - private AvatarUnlockTalentNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarUnlockTalentNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarUnlockTalentNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarUnlockTalentNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 16: { - - entityId_ = input.readUInt32(); - break; - } - case 24: { - - talentId_ = input.readUInt32(); - break; - } - case 32: { - - skillDepotId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.internal_static_AvatarUnlockTalentNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.internal_static_AvatarUnlockTalentNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify.class, emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify.Builder.class); - } - - public static final int AVATARGUID_FIELD_NUMBER = 1; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int ENTITYID_FIELD_NUMBER = 2; - private int entityId_; - /** - * <code>uint32 entityId = 2;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - - public static final int TALENTID_FIELD_NUMBER = 3; - private int talentId_; - /** - * <code>uint32 talentId = 3;</code> - * @return The talentId. - */ - @java.lang.Override - public int getTalentId() { - return talentId_; - } - - public static final int SKILLDEPOTID_FIELD_NUMBER = 4; - private int skillDepotId_; - /** - * <code>uint32 skillDepotId = 4;</code> - * @return The skillDepotId. - */ - @java.lang.Override - public int getSkillDepotId() { - return skillDepotId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (avatarGuid_ != 0L) { - output.writeUInt64(1, avatarGuid_); - } - if (entityId_ != 0) { - output.writeUInt32(2, entityId_); - } - if (talentId_ != 0) { - output.writeUInt32(3, talentId_); - } - if (skillDepotId_ != 0) { - output.writeUInt32(4, skillDepotId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, avatarGuid_); - } - if (entityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, entityId_); - } - if (talentId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, talentId_); - } - if (skillDepotId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, skillDepotId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify other = (emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify) obj; - - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (getEntityId() - != other.getEntityId()) return false; - if (getTalentId() - != other.getTalentId()) return false; - if (getSkillDepotId() - != other.getSkillDepotId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - hash = (37 * hash) + ENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId(); - hash = (37 * hash) + TALENTID_FIELD_NUMBER; - hash = (53 * hash) + getTalentId(); - hash = (37 * hash) + SKILLDEPOTID_FIELD_NUMBER; - hash = (53 * hash) + getSkillDepotId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarUnlockTalentNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarUnlockTalentNotify) - emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.internal_static_AvatarUnlockTalentNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.internal_static_AvatarUnlockTalentNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify.class, emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - avatarGuid_ = 0L; - - entityId_ = 0; - - talentId_ = 0; - - skillDepotId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.internal_static_AvatarUnlockTalentNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify build() { - emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify buildPartial() { - emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify result = new emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify(this); - result.avatarGuid_ = avatarGuid_; - result.entityId_ = entityId_; - result.talentId_ = talentId_; - result.skillDepotId_ = skillDepotId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify) { - return mergeFrom((emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify other) { - if (other == emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify.getDefaultInstance()) return this; - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - if (other.getEntityId() != 0) { - setEntityId(other.getEntityId()); - } - if (other.getTalentId() != 0) { - setTalentId(other.getTalentId()); - } - if (other.getSkillDepotId() != 0) { - setSkillDepotId(other.getSkillDepotId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private int entityId_ ; - /** - * <code>uint32 entityId = 2;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - /** - * <code>uint32 entityId = 2;</code> - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId(int value) { - - entityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 entityId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearEntityId() { - - entityId_ = 0; - onChanged(); - return this; - } - - private int talentId_ ; - /** - * <code>uint32 talentId = 3;</code> - * @return The talentId. - */ - @java.lang.Override - public int getTalentId() { - return talentId_; - } - /** - * <code>uint32 talentId = 3;</code> - * @param value The talentId to set. - * @return This builder for chaining. - */ - public Builder setTalentId(int value) { - - talentId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 talentId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearTalentId() { - - talentId_ = 0; - onChanged(); - return this; - } - - private int skillDepotId_ ; - /** - * <code>uint32 skillDepotId = 4;</code> - * @return The skillDepotId. - */ - @java.lang.Override - public int getSkillDepotId() { - return skillDepotId_; - } - /** - * <code>uint32 skillDepotId = 4;</code> - * @param value The skillDepotId to set. - * @return This builder for chaining. - */ - public Builder setSkillDepotId(int value) { - - skillDepotId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 skillDepotId = 4;</code> - * @return This builder for chaining. - */ - public Builder clearSkillDepotId() { - - skillDepotId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarUnlockTalentNotify) - } - - // @@protoc_insertion_point(class_scope:AvatarUnlockTalentNotify) - private static final emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify(); - } - - public static emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarUnlockTalentNotify> - PARSER = new com.google.protobuf.AbstractParser<AvatarUnlockTalentNotify>() { - @java.lang.Override - public AvatarUnlockTalentNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarUnlockTalentNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarUnlockTalentNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarUnlockTalentNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarUnlockTalentNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarUnlockTalentNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\036AvatarUnlockTalentNotify.proto\"h\n\030Avat" + - "arUnlockTalentNotify\022\022\n\navatarGuid\030\001 \001(\004" + - "\022\020\n\010entityId\030\002 \001(\r\022\020\n\010talentId\030\003 \001(\r\022\024\n\014" + - "skillDepotId\030\004 \001(\rB\033\n\031emu.grasscutter.ne" + - "t.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AvatarUnlockTalentNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarUnlockTalentNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarUnlockTalentNotify_descriptor, - new java.lang.String[] { "AvatarGuid", "EntityId", "TalentId", "SkillDepotId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarUpgradeReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarUpgradeReqOuterClass.java deleted file mode 100644 index fe62a81e2..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarUpgradeReqOuterClass.java +++ /dev/null @@ -1,678 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarUpgradeReq.proto - -package emu.grasscutter.net.proto; - -public final class AvatarUpgradeReqOuterClass { - private AvatarUpgradeReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarUpgradeReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarUpgradeReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 itemId = 1;</code> - * @return The itemId. - */ - int getItemId(); - - /** - * <code>uint32 count = 2;</code> - * @return The count. - */ - int getCount(); - - /** - * <code>uint64 avatarGuid = 3;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - } - /** - * Protobuf type {@code AvatarUpgradeReq} - */ - public static final class AvatarUpgradeReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarUpgradeReq) - AvatarUpgradeReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarUpgradeReq.newBuilder() to construct. - private AvatarUpgradeReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarUpgradeReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarUpgradeReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarUpgradeReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - itemId_ = input.readUInt32(); - break; - } - case 16: { - - count_ = input.readUInt32(); - break; - } - case 24: { - - avatarGuid_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.internal_static_AvatarUpgradeReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.internal_static_AvatarUpgradeReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq.class, emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq.Builder.class); - } - - public static final int ITEMID_FIELD_NUMBER = 1; - private int itemId_; - /** - * <code>uint32 itemId = 1;</code> - * @return The itemId. - */ - @java.lang.Override - public int getItemId() { - return itemId_; - } - - public static final int COUNT_FIELD_NUMBER = 2; - private int count_; - /** - * <code>uint32 count = 2;</code> - * @return The count. - */ - @java.lang.Override - public int getCount() { - return count_; - } - - public static final int AVATARGUID_FIELD_NUMBER = 3; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 3;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (itemId_ != 0) { - output.writeUInt32(1, itemId_); - } - if (count_ != 0) { - output.writeUInt32(2, count_); - } - if (avatarGuid_ != 0L) { - output.writeUInt64(3, avatarGuid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (itemId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, itemId_); - } - if (count_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, count_); - } - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, avatarGuid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq other = (emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq) obj; - - if (getItemId() - != other.getItemId()) return false; - if (getCount() - != other.getCount()) return false; - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ITEMID_FIELD_NUMBER; - hash = (53 * hash) + getItemId(); - hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + getCount(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarUpgradeReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarUpgradeReq) - emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.internal_static_AvatarUpgradeReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.internal_static_AvatarUpgradeReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq.class, emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - itemId_ = 0; - - count_ = 0; - - avatarGuid_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.internal_static_AvatarUpgradeReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq build() { - emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq buildPartial() { - emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq result = new emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq(this); - result.itemId_ = itemId_; - result.count_ = count_; - result.avatarGuid_ = avatarGuid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq) { - return mergeFrom((emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq other) { - if (other == emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq.getDefaultInstance()) return this; - if (other.getItemId() != 0) { - setItemId(other.getItemId()); - } - if (other.getCount() != 0) { - setCount(other.getCount()); - } - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int itemId_ ; - /** - * <code>uint32 itemId = 1;</code> - * @return The itemId. - */ - @java.lang.Override - public int getItemId() { - return itemId_; - } - /** - * <code>uint32 itemId = 1;</code> - * @param value The itemId to set. - * @return This builder for chaining. - */ - public Builder setItemId(int value) { - - itemId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 itemId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearItemId() { - - itemId_ = 0; - onChanged(); - return this; - } - - private int count_ ; - /** - * <code>uint32 count = 2;</code> - * @return The count. - */ - @java.lang.Override - public int getCount() { - return count_; - } - /** - * <code>uint32 count = 2;</code> - * @param value The count to set. - * @return This builder for chaining. - */ - public Builder setCount(int value) { - - count_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 count = 2;</code> - * @return This builder for chaining. - */ - public Builder clearCount() { - - count_ = 0; - onChanged(); - return this; - } - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 3;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 3;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 3;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarUpgradeReq) - } - - // @@protoc_insertion_point(class_scope:AvatarUpgradeReq) - private static final emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq(); - } - - public static emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarUpgradeReq> - PARSER = new com.google.protobuf.AbstractParser<AvatarUpgradeReq>() { - @java.lang.Override - public AvatarUpgradeReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarUpgradeReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarUpgradeReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarUpgradeReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarUpgradeReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarUpgradeReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026AvatarUpgradeReq.proto\"E\n\020AvatarUpgrad" + - "eReq\022\016\n\006itemId\030\001 \001(\r\022\r\n\005count\030\002 \001(\r\022\022\n\na" + - "vatarGuid\030\003 \001(\004B\033\n\031emu.grasscutter.net.p" + - "rotob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AvatarUpgradeReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarUpgradeReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarUpgradeReq_descriptor, - new java.lang.String[] { "ItemId", "Count", "AvatarGuid", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarUpgradeRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarUpgradeRspOuterClass.java deleted file mode 100644 index b7a0d721d..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarUpgradeRspOuterClass.java +++ /dev/null @@ -1,1385 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarUpgradeRsp.proto - -package emu.grasscutter.net.proto; - -public final class AvatarUpgradeRspOuterClass { - private AvatarUpgradeRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarUpgradeRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarUpgradeRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>uint32 oldLevel = 3;</code> - * @return The oldLevel. - */ - int getOldLevel(); - - /** - * <code>uint32 curLevel = 4;</code> - * @return The curLevel. - */ - int getCurLevel(); - - /** - * <code>map<uint32, float> oldFightPropMap = 5;</code> - */ - int getOldFightPropMapCount(); - /** - * <code>map<uint32, float> oldFightPropMap = 5;</code> - */ - boolean containsOldFightPropMap( - int key); - /** - * Use {@link #getOldFightPropMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Float> - getOldFightPropMap(); - /** - * <code>map<uint32, float> oldFightPropMap = 5;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Float> - getOldFightPropMapMap(); - /** - * <code>map<uint32, float> oldFightPropMap = 5;</code> - */ - - float getOldFightPropMapOrDefault( - int key, - float defaultValue); - /** - * <code>map<uint32, float> oldFightPropMap = 5;</code> - */ - - float getOldFightPropMapOrThrow( - int key); - - /** - * <code>map<uint32, float> curFightPropMap = 6;</code> - */ - int getCurFightPropMapCount(); - /** - * <code>map<uint32, float> curFightPropMap = 6;</code> - */ - boolean containsCurFightPropMap( - int key); - /** - * Use {@link #getCurFightPropMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Float> - getCurFightPropMap(); - /** - * <code>map<uint32, float> curFightPropMap = 6;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Float> - getCurFightPropMapMap(); - /** - * <code>map<uint32, float> curFightPropMap = 6;</code> - */ - - float getCurFightPropMapOrDefault( - int key, - float defaultValue); - /** - * <code>map<uint32, float> curFightPropMap = 6;</code> - */ - - float getCurFightPropMapOrThrow( - int key); - } - /** - * Protobuf type {@code AvatarUpgradeRsp} - */ - public static final class AvatarUpgradeRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarUpgradeRsp) - AvatarUpgradeRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarUpgradeRsp.newBuilder() to construct. - private AvatarUpgradeRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarUpgradeRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarUpgradeRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarUpgradeRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 24: { - - oldLevel_ = input.readUInt32(); - break; - } - case 32: { - - curLevel_ = input.readUInt32(); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - oldFightPropMap_ = com.google.protobuf.MapField.newMapField( - OldFightPropMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Float> - oldFightPropMap__ = input.readMessage( - OldFightPropMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - oldFightPropMap_.getMutableMap().put( - oldFightPropMap__.getKey(), oldFightPropMap__.getValue()); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - curFightPropMap_ = com.google.protobuf.MapField.newMapField( - CurFightPropMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Float> - curFightPropMap__ = input.readMessage( - CurFightPropMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - curFightPropMap_.getMutableMap().put( - curFightPropMap__.getKey(), curFightPropMap__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.internal_static_AvatarUpgradeRsp_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 5: - return internalGetOldFightPropMap(); - case 6: - return internalGetCurFightPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.internal_static_AvatarUpgradeRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp.class, emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int AVATARGUID_FIELD_NUMBER = 2; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int OLDLEVEL_FIELD_NUMBER = 3; - private int oldLevel_; - /** - * <code>uint32 oldLevel = 3;</code> - * @return The oldLevel. - */ - @java.lang.Override - public int getOldLevel() { - return oldLevel_; - } - - public static final int CURLEVEL_FIELD_NUMBER = 4; - private int curLevel_; - /** - * <code>uint32 curLevel = 4;</code> - * @return The curLevel. - */ - @java.lang.Override - public int getCurLevel() { - return curLevel_; - } - - public static final int OLDFIGHTPROPMAP_FIELD_NUMBER = 5; - private static final class OldFightPropMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Float> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Float>newDefaultInstance( - emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.internal_static_AvatarUpgradeRsp_OldFightPropMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.FLOAT, - 0F); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Float> oldFightPropMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Float> - internalGetOldFightPropMap() { - if (oldFightPropMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - OldFightPropMapDefaultEntryHolder.defaultEntry); - } - return oldFightPropMap_; - } - - public int getOldFightPropMapCount() { - return internalGetOldFightPropMap().getMap().size(); - } - /** - * <code>map<uint32, float> oldFightPropMap = 5;</code> - */ - - @java.lang.Override - public boolean containsOldFightPropMap( - int key) { - - return internalGetOldFightPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getOldFightPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Float> getOldFightPropMap() { - return getOldFightPropMapMap(); - } - /** - * <code>map<uint32, float> oldFightPropMap = 5;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Float> getOldFightPropMapMap() { - return internalGetOldFightPropMap().getMap(); - } - /** - * <code>map<uint32, float> oldFightPropMap = 5;</code> - */ - @java.lang.Override - - public float getOldFightPropMapOrDefault( - int key, - float defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Float> map = - internalGetOldFightPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, float> oldFightPropMap = 5;</code> - */ - @java.lang.Override - - public float getOldFightPropMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Float> map = - internalGetOldFightPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int CURFIGHTPROPMAP_FIELD_NUMBER = 6; - private static final class CurFightPropMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Float> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Float>newDefaultInstance( - emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.internal_static_AvatarUpgradeRsp_CurFightPropMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.FLOAT, - 0F); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Float> curFightPropMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Float> - internalGetCurFightPropMap() { - if (curFightPropMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CurFightPropMapDefaultEntryHolder.defaultEntry); - } - return curFightPropMap_; - } - - public int getCurFightPropMapCount() { - return internalGetCurFightPropMap().getMap().size(); - } - /** - * <code>map<uint32, float> curFightPropMap = 6;</code> - */ - - @java.lang.Override - public boolean containsCurFightPropMap( - int key) { - - return internalGetCurFightPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getCurFightPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Float> getCurFightPropMap() { - return getCurFightPropMapMap(); - } - /** - * <code>map<uint32, float> curFightPropMap = 6;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Float> getCurFightPropMapMap() { - return internalGetCurFightPropMap().getMap(); - } - /** - * <code>map<uint32, float> curFightPropMap = 6;</code> - */ - @java.lang.Override - - public float getCurFightPropMapOrDefault( - int key, - float defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Float> map = - internalGetCurFightPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, float> curFightPropMap = 6;</code> - */ - @java.lang.Override - - public float getCurFightPropMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Float> map = - internalGetCurFightPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (avatarGuid_ != 0L) { - output.writeUInt64(2, avatarGuid_); - } - if (oldLevel_ != 0) { - output.writeUInt32(3, oldLevel_); - } - if (curLevel_ != 0) { - output.writeUInt32(4, curLevel_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetOldFightPropMap(), - OldFightPropMapDefaultEntryHolder.defaultEntry, - 5); - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetCurFightPropMap(), - CurFightPropMapDefaultEntryHolder.defaultEntry, - 6); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, avatarGuid_); - } - if (oldLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, oldLevel_); - } - if (curLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, curLevel_); - } - for (java.util.Map.Entry<java.lang.Integer, java.lang.Float> entry - : internalGetOldFightPropMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Float> - oldFightPropMap__ = OldFightPropMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, oldFightPropMap__); - } - for (java.util.Map.Entry<java.lang.Integer, java.lang.Float> entry - : internalGetCurFightPropMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Float> - curFightPropMap__ = CurFightPropMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, curFightPropMap__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp other = (emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (getOldLevel() - != other.getOldLevel()) return false; - if (getCurLevel() - != other.getCurLevel()) return false; - if (!internalGetOldFightPropMap().equals( - other.internalGetOldFightPropMap())) return false; - if (!internalGetCurFightPropMap().equals( - other.internalGetCurFightPropMap())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - hash = (37 * hash) + OLDLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getOldLevel(); - hash = (37 * hash) + CURLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getCurLevel(); - if (!internalGetOldFightPropMap().getMap().isEmpty()) { - hash = (37 * hash) + OLDFIGHTPROPMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetOldFightPropMap().hashCode(); - } - if (!internalGetCurFightPropMap().getMap().isEmpty()) { - hash = (37 * hash) + CURFIGHTPROPMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetCurFightPropMap().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarUpgradeRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarUpgradeRsp) - emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.internal_static_AvatarUpgradeRsp_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 5: - return internalGetOldFightPropMap(); - case 6: - return internalGetCurFightPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 5: - return internalGetMutableOldFightPropMap(); - case 6: - return internalGetMutableCurFightPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.internal_static_AvatarUpgradeRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp.class, emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - avatarGuid_ = 0L; - - oldLevel_ = 0; - - curLevel_ = 0; - - internalGetMutableOldFightPropMap().clear(); - internalGetMutableCurFightPropMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.internal_static_AvatarUpgradeRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp build() { - emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp buildPartial() { - emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp result = new emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp(this); - int from_bitField0_ = bitField0_; - result.retcode_ = retcode_; - result.avatarGuid_ = avatarGuid_; - result.oldLevel_ = oldLevel_; - result.curLevel_ = curLevel_; - result.oldFightPropMap_ = internalGetOldFightPropMap(); - result.oldFightPropMap_.makeImmutable(); - result.curFightPropMap_ = internalGetCurFightPropMap(); - result.curFightPropMap_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp) { - return mergeFrom((emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp other) { - if (other == emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - if (other.getOldLevel() != 0) { - setOldLevel(other.getOldLevel()); - } - if (other.getCurLevel() != 0) { - setCurLevel(other.getCurLevel()); - } - internalGetMutableOldFightPropMap().mergeFrom( - other.internalGetOldFightPropMap()); - internalGetMutableCurFightPropMap().mergeFrom( - other.internalGetCurFightPropMap()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 2;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private int oldLevel_ ; - /** - * <code>uint32 oldLevel = 3;</code> - * @return The oldLevel. - */ - @java.lang.Override - public int getOldLevel() { - return oldLevel_; - } - /** - * <code>uint32 oldLevel = 3;</code> - * @param value The oldLevel to set. - * @return This builder for chaining. - */ - public Builder setOldLevel(int value) { - - oldLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 oldLevel = 3;</code> - * @return This builder for chaining. - */ - public Builder clearOldLevel() { - - oldLevel_ = 0; - onChanged(); - return this; - } - - private int curLevel_ ; - /** - * <code>uint32 curLevel = 4;</code> - * @return The curLevel. - */ - @java.lang.Override - public int getCurLevel() { - return curLevel_; - } - /** - * <code>uint32 curLevel = 4;</code> - * @param value The curLevel to set. - * @return This builder for chaining. - */ - public Builder setCurLevel(int value) { - - curLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 curLevel = 4;</code> - * @return This builder for chaining. - */ - public Builder clearCurLevel() { - - curLevel_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Float> oldFightPropMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Float> - internalGetOldFightPropMap() { - if (oldFightPropMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - OldFightPropMapDefaultEntryHolder.defaultEntry); - } - return oldFightPropMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Float> - internalGetMutableOldFightPropMap() { - onChanged();; - if (oldFightPropMap_ == null) { - oldFightPropMap_ = com.google.protobuf.MapField.newMapField( - OldFightPropMapDefaultEntryHolder.defaultEntry); - } - if (!oldFightPropMap_.isMutable()) { - oldFightPropMap_ = oldFightPropMap_.copy(); - } - return oldFightPropMap_; - } - - public int getOldFightPropMapCount() { - return internalGetOldFightPropMap().getMap().size(); - } - /** - * <code>map<uint32, float> oldFightPropMap = 5;</code> - */ - - @java.lang.Override - public boolean containsOldFightPropMap( - int key) { - - return internalGetOldFightPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getOldFightPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Float> getOldFightPropMap() { - return getOldFightPropMapMap(); - } - /** - * <code>map<uint32, float> oldFightPropMap = 5;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Float> getOldFightPropMapMap() { - return internalGetOldFightPropMap().getMap(); - } - /** - * <code>map<uint32, float> oldFightPropMap = 5;</code> - */ - @java.lang.Override - - public float getOldFightPropMapOrDefault( - int key, - float defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Float> map = - internalGetOldFightPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, float> oldFightPropMap = 5;</code> - */ - @java.lang.Override - - public float getOldFightPropMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Float> map = - internalGetOldFightPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearOldFightPropMap() { - internalGetMutableOldFightPropMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, float> oldFightPropMap = 5;</code> - */ - - public Builder removeOldFightPropMap( - int key) { - - internalGetMutableOldFightPropMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Float> - getMutableOldFightPropMap() { - return internalGetMutableOldFightPropMap().getMutableMap(); - } - /** - * <code>map<uint32, float> oldFightPropMap = 5;</code> - */ - public Builder putOldFightPropMap( - int key, - float value) { - - - internalGetMutableOldFightPropMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, float> oldFightPropMap = 5;</code> - */ - - public Builder putAllOldFightPropMap( - java.util.Map<java.lang.Integer, java.lang.Float> values) { - internalGetMutableOldFightPropMap().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Float> curFightPropMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Float> - internalGetCurFightPropMap() { - if (curFightPropMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CurFightPropMapDefaultEntryHolder.defaultEntry); - } - return curFightPropMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Float> - internalGetMutableCurFightPropMap() { - onChanged();; - if (curFightPropMap_ == null) { - curFightPropMap_ = com.google.protobuf.MapField.newMapField( - CurFightPropMapDefaultEntryHolder.defaultEntry); - } - if (!curFightPropMap_.isMutable()) { - curFightPropMap_ = curFightPropMap_.copy(); - } - return curFightPropMap_; - } - - public int getCurFightPropMapCount() { - return internalGetCurFightPropMap().getMap().size(); - } - /** - * <code>map<uint32, float> curFightPropMap = 6;</code> - */ - - @java.lang.Override - public boolean containsCurFightPropMap( - int key) { - - return internalGetCurFightPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getCurFightPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Float> getCurFightPropMap() { - return getCurFightPropMapMap(); - } - /** - * <code>map<uint32, float> curFightPropMap = 6;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Float> getCurFightPropMapMap() { - return internalGetCurFightPropMap().getMap(); - } - /** - * <code>map<uint32, float> curFightPropMap = 6;</code> - */ - @java.lang.Override - - public float getCurFightPropMapOrDefault( - int key, - float defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Float> map = - internalGetCurFightPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, float> curFightPropMap = 6;</code> - */ - @java.lang.Override - - public float getCurFightPropMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Float> map = - internalGetCurFightPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearCurFightPropMap() { - internalGetMutableCurFightPropMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, float> curFightPropMap = 6;</code> - */ - - public Builder removeCurFightPropMap( - int key) { - - internalGetMutableCurFightPropMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Float> - getMutableCurFightPropMap() { - return internalGetMutableCurFightPropMap().getMutableMap(); - } - /** - * <code>map<uint32, float> curFightPropMap = 6;</code> - */ - public Builder putCurFightPropMap( - int key, - float value) { - - - internalGetMutableCurFightPropMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, float> curFightPropMap = 6;</code> - */ - - public Builder putAllCurFightPropMap( - java.util.Map<java.lang.Integer, java.lang.Float> values) { - internalGetMutableCurFightPropMap().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarUpgradeRsp) - } - - // @@protoc_insertion_point(class_scope:AvatarUpgradeRsp) - private static final emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp(); - } - - public static emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarUpgradeRsp> - PARSER = new com.google.protobuf.AbstractParser<AvatarUpgradeRsp>() { - @java.lang.Override - public AvatarUpgradeRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarUpgradeRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarUpgradeRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarUpgradeRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarUpgradeRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarUpgradeRsp_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarUpgradeRsp_OldFightPropMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarUpgradeRsp_OldFightPropMapEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarUpgradeRsp_CurFightPropMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarUpgradeRsp_CurFightPropMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026AvatarUpgradeRsp.proto\"\315\002\n\020AvatarUpgra" + - "deRsp\022\017\n\007retcode\030\001 \001(\005\022\022\n\navatarGuid\030\002 \001" + - "(\004\022\020\n\010oldLevel\030\003 \001(\r\022\020\n\010curLevel\030\004 \001(\r\022?" + - "\n\017oldFightPropMap\030\005 \003(\0132&.AvatarUpgradeR" + - "sp.OldFightPropMapEntry\022?\n\017curFightPropM" + - "ap\030\006 \003(\0132&.AvatarUpgradeRsp.CurFightProp" + - "MapEntry\0326\n\024OldFightPropMapEntry\022\013\n\003key\030" + - "\001 \001(\r\022\r\n\005value\030\002 \001(\002:\0028\001\0326\n\024CurFightProp" + - "MapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\002:\0028\001" + - "B\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AvatarUpgradeRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarUpgradeRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarUpgradeRsp_descriptor, - new java.lang.String[] { "Retcode", "AvatarGuid", "OldLevel", "CurLevel", "OldFightPropMap", "CurFightPropMap", }); - internal_static_AvatarUpgradeRsp_OldFightPropMapEntry_descriptor = - internal_static_AvatarUpgradeRsp_descriptor.getNestedTypes().get(0); - internal_static_AvatarUpgradeRsp_OldFightPropMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarUpgradeRsp_OldFightPropMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_AvatarUpgradeRsp_CurFightPropMapEntry_descriptor = - internal_static_AvatarUpgradeRsp_descriptor.getNestedTypes().get(1); - internal_static_AvatarUpgradeRsp_CurFightPropMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarUpgradeRsp_CurFightPropMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarWearFlycloakReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarWearFlycloakReqOuterClass.java deleted file mode 100644 index 5a533f04a..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarWearFlycloakReqOuterClass.java +++ /dev/null @@ -1,608 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarWearFlycloakReq.proto - -package emu.grasscutter.net.proto; - -public final class AvatarWearFlycloakReqOuterClass { - private AvatarWearFlycloakReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarWearFlycloakReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarWearFlycloakReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>uint32 flycloakId = 2;</code> - * @return The flycloakId. - */ - int getFlycloakId(); - } - /** - * Protobuf type {@code AvatarWearFlycloakReq} - */ - public static final class AvatarWearFlycloakReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarWearFlycloakReq) - AvatarWearFlycloakReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarWearFlycloakReq.newBuilder() to construct. - private AvatarWearFlycloakReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarWearFlycloakReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarWearFlycloakReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarWearFlycloakReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 16: { - - flycloakId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.internal_static_AvatarWearFlycloakReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.internal_static_AvatarWearFlycloakReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq.class, emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq.Builder.class); - } - - public static final int AVATARGUID_FIELD_NUMBER = 1; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int FLYCLOAKID_FIELD_NUMBER = 2; - private int flycloakId_; - /** - * <code>uint32 flycloakId = 2;</code> - * @return The flycloakId. - */ - @java.lang.Override - public int getFlycloakId() { - return flycloakId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (avatarGuid_ != 0L) { - output.writeUInt64(1, avatarGuid_); - } - if (flycloakId_ != 0) { - output.writeUInt32(2, flycloakId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, avatarGuid_); - } - if (flycloakId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, flycloakId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq other = (emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq) obj; - - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (getFlycloakId() - != other.getFlycloakId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - hash = (37 * hash) + FLYCLOAKID_FIELD_NUMBER; - hash = (53 * hash) + getFlycloakId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarWearFlycloakReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarWearFlycloakReq) - emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.internal_static_AvatarWearFlycloakReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.internal_static_AvatarWearFlycloakReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq.class, emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - avatarGuid_ = 0L; - - flycloakId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.internal_static_AvatarWearFlycloakReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq build() { - emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq buildPartial() { - emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq result = new emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq(this); - result.avatarGuid_ = avatarGuid_; - result.flycloakId_ = flycloakId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq) { - return mergeFrom((emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq other) { - if (other == emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq.getDefaultInstance()) return this; - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - if (other.getFlycloakId() != 0) { - setFlycloakId(other.getFlycloakId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private int flycloakId_ ; - /** - * <code>uint32 flycloakId = 2;</code> - * @return The flycloakId. - */ - @java.lang.Override - public int getFlycloakId() { - return flycloakId_; - } - /** - * <code>uint32 flycloakId = 2;</code> - * @param value The flycloakId to set. - * @return This builder for chaining. - */ - public Builder setFlycloakId(int value) { - - flycloakId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 flycloakId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearFlycloakId() { - - flycloakId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarWearFlycloakReq) - } - - // @@protoc_insertion_point(class_scope:AvatarWearFlycloakReq) - private static final emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq(); - } - - public static emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarWearFlycloakReq> - PARSER = new com.google.protobuf.AbstractParser<AvatarWearFlycloakReq>() { - @java.lang.Override - public AvatarWearFlycloakReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarWearFlycloakReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarWearFlycloakReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarWearFlycloakReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarWearFlycloakReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarWearFlycloakReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033AvatarWearFlycloakReq.proto\"?\n\025AvatarW" + - "earFlycloakReq\022\022\n\navatarGuid\030\001 \001(\004\022\022\n\nfl" + - "ycloakId\030\002 \001(\rB\033\n\031emu.grasscutter.net.pr" + - "otob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AvatarWearFlycloakReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarWearFlycloakReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarWearFlycloakReq_descriptor, - new java.lang.String[] { "AvatarGuid", "FlycloakId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/AvatarWearFlycloakRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarWearFlycloakRspOuterClass.java deleted file mode 100644 index 41797e2aa..000000000 --- a/src/main/java/emu/grasscutter/net/proto/AvatarWearFlycloakRspOuterClass.java +++ /dev/null @@ -1,678 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AvatarWearFlycloakRsp.proto - -package emu.grasscutter.net.proto; - -public final class AvatarWearFlycloakRspOuterClass { - private AvatarWearFlycloakRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AvatarWearFlycloakRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarWearFlycloakRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>uint32 flycloakId = 3;</code> - * @return The flycloakId. - */ - int getFlycloakId(); - } - /** - * Protobuf type {@code AvatarWearFlycloakRsp} - */ - public static final class AvatarWearFlycloakRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AvatarWearFlycloakRsp) - AvatarWearFlycloakRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvatarWearFlycloakRsp.newBuilder() to construct. - private AvatarWearFlycloakRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private AvatarWearFlycloakRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvatarWearFlycloakRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AvatarWearFlycloakRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 24: { - - flycloakId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.internal_static_AvatarWearFlycloakRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.internal_static_AvatarWearFlycloakRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp.class, emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int AVATARGUID_FIELD_NUMBER = 2; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int FLYCLOAKID_FIELD_NUMBER = 3; - private int flycloakId_; - /** - * <code>uint32 flycloakId = 3;</code> - * @return The flycloakId. - */ - @java.lang.Override - public int getFlycloakId() { - return flycloakId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (avatarGuid_ != 0L) { - output.writeUInt64(2, avatarGuid_); - } - if (flycloakId_ != 0) { - output.writeUInt32(3, flycloakId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, avatarGuid_); - } - if (flycloakId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, flycloakId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp other = (emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (getFlycloakId() - != other.getFlycloakId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - hash = (37 * hash) + FLYCLOAKID_FIELD_NUMBER; - hash = (53 * hash) + getFlycloakId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AvatarWearFlycloakRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarWearFlycloakRsp) - emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.internal_static_AvatarWearFlycloakRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.internal_static_AvatarWearFlycloakRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp.class, emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - avatarGuid_ = 0L; - - flycloakId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.internal_static_AvatarWearFlycloakRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp build() { - emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp buildPartial() { - emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp result = new emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp(this); - result.retcode_ = retcode_; - result.avatarGuid_ = avatarGuid_; - result.flycloakId_ = flycloakId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp) { - return mergeFrom((emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp other) { - if (other == emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - if (other.getFlycloakId() != 0) { - setFlycloakId(other.getFlycloakId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 2;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private int flycloakId_ ; - /** - * <code>uint32 flycloakId = 3;</code> - * @return The flycloakId. - */ - @java.lang.Override - public int getFlycloakId() { - return flycloakId_; - } - /** - * <code>uint32 flycloakId = 3;</code> - * @param value The flycloakId to set. - * @return This builder for chaining. - */ - public Builder setFlycloakId(int value) { - - flycloakId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 flycloakId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearFlycloakId() { - - flycloakId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AvatarWearFlycloakRsp) - } - - // @@protoc_insertion_point(class_scope:AvatarWearFlycloakRsp) - private static final emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp(); - } - - public static emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<AvatarWearFlycloakRsp> - PARSER = new com.google.protobuf.AbstractParser<AvatarWearFlycloakRsp>() { - @java.lang.Override - public AvatarWearFlycloakRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarWearFlycloakRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<AvatarWearFlycloakRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<AvatarWearFlycloakRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AvatarWearFlycloakRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AvatarWearFlycloakRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033AvatarWearFlycloakRsp.proto\"P\n\025AvatarW" + - "earFlycloakRsp\022\017\n\007retcode\030\001 \001(\005\022\022\n\navata" + - "rGuid\030\002 \001(\004\022\022\n\nflycloakId\030\003 \001(\rB\033\n\031emu.g" + - "rasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_AvatarWearFlycloakRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AvatarWearFlycloakRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AvatarWearFlycloakRsp_descriptor, - new java.lang.String[] { "Retcode", "AvatarGuid", "FlycloakId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/BirthdayOuterClass.java b/src/main/java/emu/grasscutter/net/proto/BirthdayOuterClass.java deleted file mode 100644 index e3af15e27..000000000 --- a/src/main/java/emu/grasscutter/net/proto/BirthdayOuterClass.java +++ /dev/null @@ -1,608 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: proto/Birthday.proto - -package emu.grasscutter.net.proto; - -public final class BirthdayOuterClass { - private BirthdayOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface BirthdayOrBuilder extends - // @@protoc_insertion_point(interface_extends:Birthday) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 month = 1;</code> - * @return The month. - */ - int getMonth(); - - /** - * <code>uint32 day = 2;</code> - * @return The day. - */ - int getDay(); - } - /** - * Protobuf type {@code Birthday} - */ - public static final class Birthday extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Birthday) - BirthdayOrBuilder { - private static final long serialVersionUID = 0L; - // Use Birthday.newBuilder() to construct. - private Birthday(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Birthday() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Birthday(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Birthday( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - month_ = input.readUInt32(); - break; - } - case 16: { - - day_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.BirthdayOuterClass.internal_static_Birthday_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.BirthdayOuterClass.internal_static_Birthday_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.class, emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.Builder.class); - } - - public static final int MONTH_FIELD_NUMBER = 1; - private int month_; - /** - * <code>uint32 month = 1;</code> - * @return The month. - */ - @java.lang.Override - public int getMonth() { - return month_; - } - - public static final int DAY_FIELD_NUMBER = 2; - private int day_; - /** - * <code>uint32 day = 2;</code> - * @return The day. - */ - @java.lang.Override - public int getDay() { - return day_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (month_ != 0) { - output.writeUInt32(1, month_); - } - if (day_ != 0) { - output.writeUInt32(2, day_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (month_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, month_); - } - if (day_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, day_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.BirthdayOuterClass.Birthday)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday other = (emu.grasscutter.net.proto.BirthdayOuterClass.Birthday) obj; - - if (getMonth() - != other.getMonth()) return false; - if (getDay() - != other.getDay()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MONTH_FIELD_NUMBER; - hash = (53 * hash) + getMonth(); - hash = (37 * hash) + DAY_FIELD_NUMBER; - hash = (53 * hash) + getDay(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.BirthdayOuterClass.Birthday parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.BirthdayOuterClass.Birthday parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.BirthdayOuterClass.Birthday parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.BirthdayOuterClass.Birthday parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.BirthdayOuterClass.Birthday parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.BirthdayOuterClass.Birthday parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.BirthdayOuterClass.Birthday parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.BirthdayOuterClass.Birthday parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.BirthdayOuterClass.Birthday parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.BirthdayOuterClass.Birthday parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.BirthdayOuterClass.Birthday parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.BirthdayOuterClass.Birthday parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.BirthdayOuterClass.Birthday prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Birthday} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:Birthday) - emu.grasscutter.net.proto.BirthdayOuterClass.BirthdayOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.BirthdayOuterClass.internal_static_Birthday_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.BirthdayOuterClass.internal_static_Birthday_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.class, emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - month_ = 0; - - day_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.BirthdayOuterClass.internal_static_Birthday_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.BirthdayOuterClass.Birthday getDefaultInstanceForType() { - return emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.BirthdayOuterClass.Birthday build() { - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.BirthdayOuterClass.Birthday buildPartial() { - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday result = new emu.grasscutter.net.proto.BirthdayOuterClass.Birthday(this); - result.month_ = month_; - result.day_ = day_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.BirthdayOuterClass.Birthday) { - return mergeFrom((emu.grasscutter.net.proto.BirthdayOuterClass.Birthday)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.BirthdayOuterClass.Birthday other) { - if (other == emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.getDefaultInstance()) return this; - if (other.getMonth() != 0) { - setMonth(other.getMonth()); - } - if (other.getDay() != 0) { - setDay(other.getDay()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.BirthdayOuterClass.Birthday) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int month_ ; - /** - * <code>uint32 month = 1;</code> - * @return The month. - */ - @java.lang.Override - public int getMonth() { - return month_; - } - /** - * <code>uint32 month = 1;</code> - * @param value The month to set. - * @return This builder for chaining. - */ - public Builder setMonth(int value) { - - month_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 month = 1;</code> - * @return This builder for chaining. - */ - public Builder clearMonth() { - - month_ = 0; - onChanged(); - return this; - } - - private int day_ ; - /** - * <code>uint32 day = 2;</code> - * @return The day. - */ - @java.lang.Override - public int getDay() { - return day_; - } - /** - * <code>uint32 day = 2;</code> - * @param value The day to set. - * @return This builder for chaining. - */ - public Builder setDay(int value) { - - day_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 day = 2;</code> - * @return This builder for chaining. - */ - public Builder clearDay() { - - day_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Birthday) - } - - // @@protoc_insertion_point(class_scope:Birthday) - private static final emu.grasscutter.net.proto.BirthdayOuterClass.Birthday DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.BirthdayOuterClass.Birthday(); - } - - public static emu.grasscutter.net.proto.BirthdayOuterClass.Birthday getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<Birthday> - PARSER = new com.google.protobuf.AbstractParser<Birthday>() { - @java.lang.Override - public Birthday parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Birthday(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<Birthday> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Birthday> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.BirthdayOuterClass.Birthday getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Birthday_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Birthday_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024proto/Birthday.proto\"&\n\010Birthday\022\r\n\005mo" + - "nth\030\001 \001(\r\022\013\n\003day\030\002 \001(\rB\033\n\031emu.grasscutte" + - "r.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_Birthday_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_Birthday_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Birthday_descriptor, - new java.lang.String[] { "Month", "Day", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/BlockInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/BlockInfoOuterClass.java deleted file mode 100644 index 8d0d1768a..000000000 --- a/src/main/java/emu/grasscutter/net/proto/BlockInfoOuterClass.java +++ /dev/null @@ -1,752 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BlockInfo.proto - -package emu.grasscutter.net.proto; - -public final class BlockInfoOuterClass { - private BlockInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface BlockInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:BlockInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 blockId = 1;</code> - * @return The blockId. - */ - int getBlockId(); - - /** - * <code>uint32 dataVersion = 2;</code> - * @return The dataVersion. - */ - int getDataVersion(); - - /** - * <code>bytes binData = 3;</code> - * @return The binData. - */ - com.google.protobuf.ByteString getBinData(); - - /** - * <code>bool isDirty = 4;</code> - * @return The isDirty. - */ - boolean getIsDirty(); - } - /** - * Protobuf type {@code BlockInfo} - */ - public static final class BlockInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:BlockInfo) - BlockInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlockInfo.newBuilder() to construct. - private BlockInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private BlockInfo() { - binData_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BlockInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BlockInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - blockId_ = input.readUInt32(); - break; - } - case 16: { - - dataVersion_ = input.readUInt32(); - break; - } - case 26: { - - binData_ = input.readBytes(); - break; - } - case 32: { - - isDirty_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.BlockInfoOuterClass.internal_static_BlockInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.BlockInfoOuterClass.internal_static_BlockInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo.class, emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo.Builder.class); - } - - public static final int BLOCKID_FIELD_NUMBER = 1; - private int blockId_; - /** - * <code>uint32 blockId = 1;</code> - * @return The blockId. - */ - @java.lang.Override - public int getBlockId() { - return blockId_; - } - - public static final int DATAVERSION_FIELD_NUMBER = 2; - private int dataVersion_; - /** - * <code>uint32 dataVersion = 2;</code> - * @return The dataVersion. - */ - @java.lang.Override - public int getDataVersion() { - return dataVersion_; - } - - public static final int BINDATA_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString binData_; - /** - * <code>bytes binData = 3;</code> - * @return The binData. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBinData() { - return binData_; - } - - public static final int ISDIRTY_FIELD_NUMBER = 4; - private boolean isDirty_; - /** - * <code>bool isDirty = 4;</code> - * @return The isDirty. - */ - @java.lang.Override - public boolean getIsDirty() { - return isDirty_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockId_ != 0) { - output.writeUInt32(1, blockId_); - } - if (dataVersion_ != 0) { - output.writeUInt32(2, dataVersion_); - } - if (!binData_.isEmpty()) { - output.writeBytes(3, binData_); - } - if (isDirty_ != false) { - output.writeBool(4, isDirty_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blockId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, blockId_); - } - if (dataVersion_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, dataVersion_); - } - if (!binData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, binData_); - } - if (isDirty_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, isDirty_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo other = (emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo) obj; - - if (getBlockId() - != other.getBlockId()) return false; - if (getDataVersion() - != other.getDataVersion()) return false; - if (!getBinData() - .equals(other.getBinData())) return false; - if (getIsDirty() - != other.getIsDirty()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKID_FIELD_NUMBER; - hash = (53 * hash) + getBlockId(); - hash = (37 * hash) + DATAVERSION_FIELD_NUMBER; - hash = (53 * hash) + getDataVersion(); - hash = (37 * hash) + BINDATA_FIELD_NUMBER; - hash = (53 * hash) + getBinData().hashCode(); - hash = (37 * hash) + ISDIRTY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsDirty()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code BlockInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:BlockInfo) - emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.BlockInfoOuterClass.internal_static_BlockInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.BlockInfoOuterClass.internal_static_BlockInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo.class, emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - blockId_ = 0; - - dataVersion_ = 0; - - binData_ = com.google.protobuf.ByteString.EMPTY; - - isDirty_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.BlockInfoOuterClass.internal_static_BlockInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo build() { - emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo buildPartial() { - emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo result = new emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo(this); - result.blockId_ = blockId_; - result.dataVersion_ = dataVersion_; - result.binData_ = binData_; - result.isDirty_ = isDirty_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo) { - return mergeFrom((emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo other) { - if (other == emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo.getDefaultInstance()) return this; - if (other.getBlockId() != 0) { - setBlockId(other.getBlockId()); - } - if (other.getDataVersion() != 0) { - setDataVersion(other.getDataVersion()); - } - if (other.getBinData() != com.google.protobuf.ByteString.EMPTY) { - setBinData(other.getBinData()); - } - if (other.getIsDirty() != false) { - setIsDirty(other.getIsDirty()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int blockId_ ; - /** - * <code>uint32 blockId = 1;</code> - * @return The blockId. - */ - @java.lang.Override - public int getBlockId() { - return blockId_; - } - /** - * <code>uint32 blockId = 1;</code> - * @param value The blockId to set. - * @return This builder for chaining. - */ - public Builder setBlockId(int value) { - - blockId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 blockId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearBlockId() { - - blockId_ = 0; - onChanged(); - return this; - } - - private int dataVersion_ ; - /** - * <code>uint32 dataVersion = 2;</code> - * @return The dataVersion. - */ - @java.lang.Override - public int getDataVersion() { - return dataVersion_; - } - /** - * <code>uint32 dataVersion = 2;</code> - * @param value The dataVersion to set. - * @return This builder for chaining. - */ - public Builder setDataVersion(int value) { - - dataVersion_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 dataVersion = 2;</code> - * @return This builder for chaining. - */ - public Builder clearDataVersion() { - - dataVersion_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString binData_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>bytes binData = 3;</code> - * @return The binData. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBinData() { - return binData_; - } - /** - * <code>bytes binData = 3;</code> - * @param value The binData to set. - * @return This builder for chaining. - */ - public Builder setBinData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - binData_ = value; - onChanged(); - return this; - } - /** - * <code>bytes binData = 3;</code> - * @return This builder for chaining. - */ - public Builder clearBinData() { - - binData_ = getDefaultInstance().getBinData(); - onChanged(); - return this; - } - - private boolean isDirty_ ; - /** - * <code>bool isDirty = 4;</code> - * @return The isDirty. - */ - @java.lang.Override - public boolean getIsDirty() { - return isDirty_; - } - /** - * <code>bool isDirty = 4;</code> - * @param value The isDirty to set. - * @return This builder for chaining. - */ - public Builder setIsDirty(boolean value) { - - isDirty_ = value; - onChanged(); - return this; - } - /** - * <code>bool isDirty = 4;</code> - * @return This builder for chaining. - */ - public Builder clearIsDirty() { - - isDirty_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:BlockInfo) - } - - // @@protoc_insertion_point(class_scope:BlockInfo) - private static final emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo(); - } - - public static emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<BlockInfo> - PARSER = new com.google.protobuf.AbstractParser<BlockInfo>() { - @java.lang.Override - public BlockInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BlockInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<BlockInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<BlockInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_BlockInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_BlockInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\017BlockInfo.proto\"S\n\tBlockInfo\022\017\n\007blockI" + - "d\030\001 \001(\r\022\023\n\013dataVersion\030\002 \001(\r\022\017\n\007binData\030" + - "\003 \001(\014\022\017\n\007isDirty\030\004 \001(\010B\033\n\031emu.grasscutte" + - "r.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_BlockInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_BlockInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_BlockInfo_descriptor, - new java.lang.String[] { "BlockId", "DataVersion", "BinData", "IsDirty", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/CalcWeaponUpgradeReturnItemsReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/CalcWeaponUpgradeReturnItemsReqOuterClass.java deleted file mode 100644 index dc430f9d1..000000000 --- a/src/main/java/emu/grasscutter/net/proto/CalcWeaponUpgradeReturnItemsReqOuterClass.java +++ /dev/null @@ -1,1111 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CalcWeaponUpgradeReturnItemsReq.proto - -package emu.grasscutter.net.proto; - -public final class CalcWeaponUpgradeReturnItemsReqOuterClass { - private CalcWeaponUpgradeReturnItemsReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CalcWeaponUpgradeReturnItemsReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:CalcWeaponUpgradeReturnItemsReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 targetWeaponGuid = 1;</code> - * @return The targetWeaponGuid. - */ - long getTargetWeaponGuid(); - - /** - * <code>repeated uint64 foodWeaponGuidList = 2;</code> - * @return A list containing the foodWeaponGuidList. - */ - java.util.List<java.lang.Long> getFoodWeaponGuidListList(); - /** - * <code>repeated uint64 foodWeaponGuidList = 2;</code> - * @return The count of foodWeaponGuidList. - */ - int getFoodWeaponGuidListCount(); - /** - * <code>repeated uint64 foodWeaponGuidList = 2;</code> - * @param index The index of the element to return. - * @return The foodWeaponGuidList at the given index. - */ - long getFoodWeaponGuidList(int index); - - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> - getItemParamListList(); - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index); - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - int getItemParamListCount(); - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getItemParamListOrBuilderList(); - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder( - int index); - } - /** - * Protobuf type {@code CalcWeaponUpgradeReturnItemsReq} - */ - public static final class CalcWeaponUpgradeReturnItemsReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CalcWeaponUpgradeReturnItemsReq) - CalcWeaponUpgradeReturnItemsReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use CalcWeaponUpgradeReturnItemsReq.newBuilder() to construct. - private CalcWeaponUpgradeReturnItemsReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private CalcWeaponUpgradeReturnItemsReq() { - foodWeaponGuidList_ = emptyLongList(); - itemParamList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CalcWeaponUpgradeReturnItemsReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CalcWeaponUpgradeReturnItemsReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - targetWeaponGuid_ = input.readUInt64(); - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - foodWeaponGuidList_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - foodWeaponGuidList_.addLong(input.readUInt64()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - foodWeaponGuidList_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - foodWeaponGuidList_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - itemParamList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>(); - mutable_bitField0_ |= 0x00000002; - } - itemParamList_.add( - input.readMessage(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - foodWeaponGuidList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - itemParamList_ = java.util.Collections.unmodifiableList(itemParamList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.internal_static_CalcWeaponUpgradeReturnItemsReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.internal_static_CalcWeaponUpgradeReturnItemsReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq.class, emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq.Builder.class); - } - - public static final int TARGETWEAPONGUID_FIELD_NUMBER = 1; - private long targetWeaponGuid_; - /** - * <code>uint64 targetWeaponGuid = 1;</code> - * @return The targetWeaponGuid. - */ - @java.lang.Override - public long getTargetWeaponGuid() { - return targetWeaponGuid_; - } - - public static final int FOODWEAPONGUIDLIST_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.LongList foodWeaponGuidList_; - /** - * <code>repeated uint64 foodWeaponGuidList = 2;</code> - * @return A list containing the foodWeaponGuidList. - */ - @java.lang.Override - public java.util.List<java.lang.Long> - getFoodWeaponGuidListList() { - return foodWeaponGuidList_; - } - /** - * <code>repeated uint64 foodWeaponGuidList = 2;</code> - * @return The count of foodWeaponGuidList. - */ - public int getFoodWeaponGuidListCount() { - return foodWeaponGuidList_.size(); - } - /** - * <code>repeated uint64 foodWeaponGuidList = 2;</code> - * @param index The index of the element to return. - * @return The foodWeaponGuidList at the given index. - */ - public long getFoodWeaponGuidList(int index) { - return foodWeaponGuidList_.getLong(index); - } - private int foodWeaponGuidListMemoizedSerializedSize = -1; - - public static final int ITEMPARAMLIST_FIELD_NUMBER = 3; - private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> itemParamList_; - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getItemParamListList() { - return itemParamList_; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getItemParamListOrBuilderList() { - return itemParamList_; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - @java.lang.Override - public int getItemParamListCount() { - return itemParamList_.size(); - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) { - return itemParamList_.get(index); - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder( - int index) { - return itemParamList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (targetWeaponGuid_ != 0L) { - output.writeUInt64(1, targetWeaponGuid_); - } - if (getFoodWeaponGuidListList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(foodWeaponGuidListMemoizedSerializedSize); - } - for (int i = 0; i < foodWeaponGuidList_.size(); i++) { - output.writeUInt64NoTag(foodWeaponGuidList_.getLong(i)); - } - for (int i = 0; i < itemParamList_.size(); i++) { - output.writeMessage(3, itemParamList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (targetWeaponGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, targetWeaponGuid_); - } - { - int dataSize = 0; - for (int i = 0; i < foodWeaponGuidList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(foodWeaponGuidList_.getLong(i)); - } - size += dataSize; - if (!getFoodWeaponGuidListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - foodWeaponGuidListMemoizedSerializedSize = dataSize; - } - for (int i = 0; i < itemParamList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, itemParamList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq other = (emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq) obj; - - if (getTargetWeaponGuid() - != other.getTargetWeaponGuid()) return false; - if (!getFoodWeaponGuidListList() - .equals(other.getFoodWeaponGuidListList())) return false; - if (!getItemParamListList() - .equals(other.getItemParamListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TARGETWEAPONGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTargetWeaponGuid()); - if (getFoodWeaponGuidListCount() > 0) { - hash = (37 * hash) + FOODWEAPONGUIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getFoodWeaponGuidListList().hashCode(); - } - if (getItemParamListCount() > 0) { - hash = (37 * hash) + ITEMPARAMLIST_FIELD_NUMBER; - hash = (53 * hash) + getItemParamListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CalcWeaponUpgradeReturnItemsReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:CalcWeaponUpgradeReturnItemsReq) - emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.internal_static_CalcWeaponUpgradeReturnItemsReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.internal_static_CalcWeaponUpgradeReturnItemsReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq.class, emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getItemParamListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - targetWeaponGuid_ = 0L; - - foodWeaponGuidList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - if (itemParamListBuilder_ == null) { - itemParamList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - itemParamListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.internal_static_CalcWeaponUpgradeReturnItemsReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq build() { - emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq buildPartial() { - emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq result = new emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq(this); - int from_bitField0_ = bitField0_; - result.targetWeaponGuid_ = targetWeaponGuid_; - if (((bitField0_ & 0x00000001) != 0)) { - foodWeaponGuidList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.foodWeaponGuidList_ = foodWeaponGuidList_; - if (itemParamListBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - itemParamList_ = java.util.Collections.unmodifiableList(itemParamList_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.itemParamList_ = itemParamList_; - } else { - result.itemParamList_ = itemParamListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq) { - return mergeFrom((emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq other) { - if (other == emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq.getDefaultInstance()) return this; - if (other.getTargetWeaponGuid() != 0L) { - setTargetWeaponGuid(other.getTargetWeaponGuid()); - } - if (!other.foodWeaponGuidList_.isEmpty()) { - if (foodWeaponGuidList_.isEmpty()) { - foodWeaponGuidList_ = other.foodWeaponGuidList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFoodWeaponGuidListIsMutable(); - foodWeaponGuidList_.addAll(other.foodWeaponGuidList_); - } - onChanged(); - } - if (itemParamListBuilder_ == null) { - if (!other.itemParamList_.isEmpty()) { - if (itemParamList_.isEmpty()) { - itemParamList_ = other.itemParamList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureItemParamListIsMutable(); - itemParamList_.addAll(other.itemParamList_); - } - onChanged(); - } - } else { - if (!other.itemParamList_.isEmpty()) { - if (itemParamListBuilder_.isEmpty()) { - itemParamListBuilder_.dispose(); - itemParamListBuilder_ = null; - itemParamList_ = other.itemParamList_; - bitField0_ = (bitField0_ & ~0x00000002); - itemParamListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getItemParamListFieldBuilder() : null; - } else { - itemParamListBuilder_.addAllMessages(other.itemParamList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long targetWeaponGuid_ ; - /** - * <code>uint64 targetWeaponGuid = 1;</code> - * @return The targetWeaponGuid. - */ - @java.lang.Override - public long getTargetWeaponGuid() { - return targetWeaponGuid_; - } - /** - * <code>uint64 targetWeaponGuid = 1;</code> - * @param value The targetWeaponGuid to set. - * @return This builder for chaining. - */ - public Builder setTargetWeaponGuid(long value) { - - targetWeaponGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 targetWeaponGuid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTargetWeaponGuid() { - - targetWeaponGuid_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList foodWeaponGuidList_ = emptyLongList(); - private void ensureFoodWeaponGuidListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - foodWeaponGuidList_ = mutableCopy(foodWeaponGuidList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint64 foodWeaponGuidList = 2;</code> - * @return A list containing the foodWeaponGuidList. - */ - public java.util.List<java.lang.Long> - getFoodWeaponGuidListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(foodWeaponGuidList_) : foodWeaponGuidList_; - } - /** - * <code>repeated uint64 foodWeaponGuidList = 2;</code> - * @return The count of foodWeaponGuidList. - */ - public int getFoodWeaponGuidListCount() { - return foodWeaponGuidList_.size(); - } - /** - * <code>repeated uint64 foodWeaponGuidList = 2;</code> - * @param index The index of the element to return. - * @return The foodWeaponGuidList at the given index. - */ - public long getFoodWeaponGuidList(int index) { - return foodWeaponGuidList_.getLong(index); - } - /** - * <code>repeated uint64 foodWeaponGuidList = 2;</code> - * @param index The index to set the value at. - * @param value The foodWeaponGuidList to set. - * @return This builder for chaining. - */ - public Builder setFoodWeaponGuidList( - int index, long value) { - ensureFoodWeaponGuidListIsMutable(); - foodWeaponGuidList_.setLong(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint64 foodWeaponGuidList = 2;</code> - * @param value The foodWeaponGuidList to add. - * @return This builder for chaining. - */ - public Builder addFoodWeaponGuidList(long value) { - ensureFoodWeaponGuidListIsMutable(); - foodWeaponGuidList_.addLong(value); - onChanged(); - return this; - } - /** - * <code>repeated uint64 foodWeaponGuidList = 2;</code> - * @param values The foodWeaponGuidList to add. - * @return This builder for chaining. - */ - public Builder addAllFoodWeaponGuidList( - java.lang.Iterable<? extends java.lang.Long> values) { - ensureFoodWeaponGuidListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, foodWeaponGuidList_); - onChanged(); - return this; - } - /** - * <code>repeated uint64 foodWeaponGuidList = 2;</code> - * @return This builder for chaining. - */ - public Builder clearFoodWeaponGuidList() { - foodWeaponGuidList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> itemParamList_ = - java.util.Collections.emptyList(); - private void ensureItemParamListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - itemParamList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>(itemParamList_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> itemParamListBuilder_; - - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getItemParamListList() { - if (itemParamListBuilder_ == null) { - return java.util.Collections.unmodifiableList(itemParamList_); - } else { - return itemParamListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public int getItemParamListCount() { - if (itemParamListBuilder_ == null) { - return itemParamList_.size(); - } else { - return itemParamListBuilder_.getCount(); - } - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) { - if (itemParamListBuilder_ == null) { - return itemParamList_.get(index); - } else { - return itemParamListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder setItemParamList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (itemParamListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemParamListIsMutable(); - itemParamList_.set(index, value); - onChanged(); - } else { - itemParamListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder setItemParamList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - itemParamList_.set(index, builderForValue.build()); - onChanged(); - } else { - itemParamListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder addItemParamList(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (itemParamListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemParamListIsMutable(); - itemParamList_.add(value); - onChanged(); - } else { - itemParamListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder addItemParamList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (itemParamListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemParamListIsMutable(); - itemParamList_.add(index, value); - onChanged(); - } else { - itemParamListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder addItemParamList( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - itemParamList_.add(builderForValue.build()); - onChanged(); - } else { - itemParamListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder addItemParamList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - itemParamList_.add(index, builderForValue.build()); - onChanged(); - } else { - itemParamListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder addAllItemParamList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> values) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, itemParamList_); - onChanged(); - } else { - itemParamListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder clearItemParamList() { - if (itemParamListBuilder_ == null) { - itemParamList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - itemParamListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder removeItemParamList(int index) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - itemParamList_.remove(index); - onChanged(); - } else { - itemParamListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getItemParamListBuilder( - int index) { - return getItemParamListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder( - int index) { - if (itemParamListBuilder_ == null) { - return itemParamList_.get(index); } else { - return itemParamListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getItemParamListOrBuilderList() { - if (itemParamListBuilder_ != null) { - return itemParamListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(itemParamList_); - } - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder() { - return getItemParamListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder( - int index) { - return getItemParamListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder> - getItemParamListBuilderList() { - return getItemParamListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getItemParamListFieldBuilder() { - if (itemParamListBuilder_ == null) { - itemParamListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>( - itemParamList_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - itemParamList_ = null; - } - return itemParamListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CalcWeaponUpgradeReturnItemsReq) - } - - // @@protoc_insertion_point(class_scope:CalcWeaponUpgradeReturnItemsReq) - private static final emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq(); - } - - public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<CalcWeaponUpgradeReturnItemsReq> - PARSER = new com.google.protobuf.AbstractParser<CalcWeaponUpgradeReturnItemsReq>() { - @java.lang.Override - public CalcWeaponUpgradeReturnItemsReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CalcWeaponUpgradeReturnItemsReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<CalcWeaponUpgradeReturnItemsReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<CalcWeaponUpgradeReturnItemsReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CalcWeaponUpgradeReturnItemsReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CalcWeaponUpgradeReturnItemsReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n%CalcWeaponUpgradeReturnItemsReq.proto\032" + - "\017ItemParam.proto\"z\n\037CalcWeaponUpgradeRet" + - "urnItemsReq\022\030\n\020targetWeaponGuid\030\001 \001(\004\022\032\n" + - "\022foodWeaponGuidList\030\002 \003(\004\022!\n\ritemParamLi" + - "st\030\003 \003(\0132\n.ItemParamB\033\n\031emu.grasscutter." + - "net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(), - }); - internal_static_CalcWeaponUpgradeReturnItemsReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_CalcWeaponUpgradeReturnItemsReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CalcWeaponUpgradeReturnItemsReq_descriptor, - new java.lang.String[] { "TargetWeaponGuid", "FoodWeaponGuidList", "ItemParamList", }); - emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/CalcWeaponUpgradeReturnItemsRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/CalcWeaponUpgradeReturnItemsRspOuterClass.java deleted file mode 100644 index 1630c3538..000000000 --- a/src/main/java/emu/grasscutter/net/proto/CalcWeaponUpgradeReturnItemsRspOuterClass.java +++ /dev/null @@ -1,987 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CalcWeaponUpgradeReturnItemsRsp.proto - -package emu.grasscutter.net.proto; - -public final class CalcWeaponUpgradeReturnItemsRspOuterClass { - private CalcWeaponUpgradeReturnItemsRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CalcWeaponUpgradeReturnItemsRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:CalcWeaponUpgradeReturnItemsRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint64 targetWeaponGuid = 2;</code> - * @return The targetWeaponGuid. - */ - long getTargetWeaponGuid(); - - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> - getItemParamListList(); - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index); - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - int getItemParamListCount(); - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getItemParamListOrBuilderList(); - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder( - int index); - } - /** - * Protobuf type {@code CalcWeaponUpgradeReturnItemsRsp} - */ - public static final class CalcWeaponUpgradeReturnItemsRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CalcWeaponUpgradeReturnItemsRsp) - CalcWeaponUpgradeReturnItemsRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use CalcWeaponUpgradeReturnItemsRsp.newBuilder() to construct. - private CalcWeaponUpgradeReturnItemsRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private CalcWeaponUpgradeReturnItemsRsp() { - itemParamList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CalcWeaponUpgradeReturnItemsRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CalcWeaponUpgradeReturnItemsRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - targetWeaponGuid_ = input.readUInt64(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - itemParamList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>(); - mutable_bitField0_ |= 0x00000001; - } - itemParamList_.add( - input.readMessage(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - itemParamList_ = java.util.Collections.unmodifiableList(itemParamList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.internal_static_CalcWeaponUpgradeReturnItemsRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.internal_static_CalcWeaponUpgradeReturnItemsRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp.class, emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int TARGETWEAPONGUID_FIELD_NUMBER = 2; - private long targetWeaponGuid_; - /** - * <code>uint64 targetWeaponGuid = 2;</code> - * @return The targetWeaponGuid. - */ - @java.lang.Override - public long getTargetWeaponGuid() { - return targetWeaponGuid_; - } - - public static final int ITEMPARAMLIST_FIELD_NUMBER = 3; - private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> itemParamList_; - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getItemParamListList() { - return itemParamList_; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getItemParamListOrBuilderList() { - return itemParamList_; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - @java.lang.Override - public int getItemParamListCount() { - return itemParamList_.size(); - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) { - return itemParamList_.get(index); - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder( - int index) { - return itemParamList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (targetWeaponGuid_ != 0L) { - output.writeUInt64(2, targetWeaponGuid_); - } - for (int i = 0; i < itemParamList_.size(); i++) { - output.writeMessage(3, itemParamList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (targetWeaponGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, targetWeaponGuid_); - } - for (int i = 0; i < itemParamList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, itemParamList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp other = (emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getTargetWeaponGuid() - != other.getTargetWeaponGuid()) return false; - if (!getItemParamListList() - .equals(other.getItemParamListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + TARGETWEAPONGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTargetWeaponGuid()); - if (getItemParamListCount() > 0) { - hash = (37 * hash) + ITEMPARAMLIST_FIELD_NUMBER; - hash = (53 * hash) + getItemParamListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CalcWeaponUpgradeReturnItemsRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:CalcWeaponUpgradeReturnItemsRsp) - emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.internal_static_CalcWeaponUpgradeReturnItemsRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.internal_static_CalcWeaponUpgradeReturnItemsRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp.class, emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getItemParamListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - targetWeaponGuid_ = 0L; - - if (itemParamListBuilder_ == null) { - itemParamList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - itemParamListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.internal_static_CalcWeaponUpgradeReturnItemsRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp build() { - emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp buildPartial() { - emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp result = new emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp(this); - int from_bitField0_ = bitField0_; - result.retcode_ = retcode_; - result.targetWeaponGuid_ = targetWeaponGuid_; - if (itemParamListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - itemParamList_ = java.util.Collections.unmodifiableList(itemParamList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.itemParamList_ = itemParamList_; - } else { - result.itemParamList_ = itemParamListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp) { - return mergeFrom((emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp other) { - if (other == emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getTargetWeaponGuid() != 0L) { - setTargetWeaponGuid(other.getTargetWeaponGuid()); - } - if (itemParamListBuilder_ == null) { - if (!other.itemParamList_.isEmpty()) { - if (itemParamList_.isEmpty()) { - itemParamList_ = other.itemParamList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureItemParamListIsMutable(); - itemParamList_.addAll(other.itemParamList_); - } - onChanged(); - } - } else { - if (!other.itemParamList_.isEmpty()) { - if (itemParamListBuilder_.isEmpty()) { - itemParamListBuilder_.dispose(); - itemParamListBuilder_ = null; - itemParamList_ = other.itemParamList_; - bitField0_ = (bitField0_ & ~0x00000001); - itemParamListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getItemParamListFieldBuilder() : null; - } else { - itemParamListBuilder_.addAllMessages(other.itemParamList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private long targetWeaponGuid_ ; - /** - * <code>uint64 targetWeaponGuid = 2;</code> - * @return The targetWeaponGuid. - */ - @java.lang.Override - public long getTargetWeaponGuid() { - return targetWeaponGuid_; - } - /** - * <code>uint64 targetWeaponGuid = 2;</code> - * @param value The targetWeaponGuid to set. - * @return This builder for chaining. - */ - public Builder setTargetWeaponGuid(long value) { - - targetWeaponGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 targetWeaponGuid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearTargetWeaponGuid() { - - targetWeaponGuid_ = 0L; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> itemParamList_ = - java.util.Collections.emptyList(); - private void ensureItemParamListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - itemParamList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>(itemParamList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> itemParamListBuilder_; - - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getItemParamListList() { - if (itemParamListBuilder_ == null) { - return java.util.Collections.unmodifiableList(itemParamList_); - } else { - return itemParamListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public int getItemParamListCount() { - if (itemParamListBuilder_ == null) { - return itemParamList_.size(); - } else { - return itemParamListBuilder_.getCount(); - } - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) { - if (itemParamListBuilder_ == null) { - return itemParamList_.get(index); - } else { - return itemParamListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder setItemParamList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (itemParamListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemParamListIsMutable(); - itemParamList_.set(index, value); - onChanged(); - } else { - itemParamListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder setItemParamList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - itemParamList_.set(index, builderForValue.build()); - onChanged(); - } else { - itemParamListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder addItemParamList(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (itemParamListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemParamListIsMutable(); - itemParamList_.add(value); - onChanged(); - } else { - itemParamListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder addItemParamList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (itemParamListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemParamListIsMutable(); - itemParamList_.add(index, value); - onChanged(); - } else { - itemParamListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder addItemParamList( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - itemParamList_.add(builderForValue.build()); - onChanged(); - } else { - itemParamListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder addItemParamList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - itemParamList_.add(index, builderForValue.build()); - onChanged(); - } else { - itemParamListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder addAllItemParamList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> values) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, itemParamList_); - onChanged(); - } else { - itemParamListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder clearItemParamList() { - if (itemParamListBuilder_ == null) { - itemParamList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - itemParamListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder removeItemParamList(int index) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - itemParamList_.remove(index); - onChanged(); - } else { - itemParamListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getItemParamListBuilder( - int index) { - return getItemParamListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder( - int index) { - if (itemParamListBuilder_ == null) { - return itemParamList_.get(index); } else { - return itemParamListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getItemParamListOrBuilderList() { - if (itemParamListBuilder_ != null) { - return itemParamListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(itemParamList_); - } - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder() { - return getItemParamListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder( - int index) { - return getItemParamListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder> - getItemParamListBuilderList() { - return getItemParamListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getItemParamListFieldBuilder() { - if (itemParamListBuilder_ == null) { - itemParamListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>( - itemParamList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - itemParamList_ = null; - } - return itemParamListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CalcWeaponUpgradeReturnItemsRsp) - } - - // @@protoc_insertion_point(class_scope:CalcWeaponUpgradeReturnItemsRsp) - private static final emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp(); - } - - public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<CalcWeaponUpgradeReturnItemsRsp> - PARSER = new com.google.protobuf.AbstractParser<CalcWeaponUpgradeReturnItemsRsp>() { - @java.lang.Override - public CalcWeaponUpgradeReturnItemsRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CalcWeaponUpgradeReturnItemsRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<CalcWeaponUpgradeReturnItemsRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<CalcWeaponUpgradeReturnItemsRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CalcWeaponUpgradeReturnItemsRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CalcWeaponUpgradeReturnItemsRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n%CalcWeaponUpgradeReturnItemsRsp.proto\032" + - "\017ItemParam.proto\"o\n\037CalcWeaponUpgradeRet" + - "urnItemsRsp\022\017\n\007retcode\030\001 \001(\005\022\030\n\020targetWe" + - "aponGuid\030\002 \001(\004\022!\n\ritemParamList\030\003 \003(\0132\n." + - "ItemParamB\033\n\031emu.grasscutter.net.protob\006" + - "proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(), - }); - internal_static_CalcWeaponUpgradeReturnItemsRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_CalcWeaponUpgradeReturnItemsRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CalcWeaponUpgradeReturnItemsRsp_descriptor, - new java.lang.String[] { "Retcode", "TargetWeaponGuid", "ItemParamList", }); - emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ChangeAvatarReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ChangeAvatarReqOuterClass.java deleted file mode 100644 index 21e9835d3..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ChangeAvatarReqOuterClass.java +++ /dev/null @@ -1,885 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ChangeAvatarReq.proto - -package emu.grasscutter.net.proto; - -public final class ChangeAvatarReqOuterClass { - private ChangeAvatarReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ChangeAvatarReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:ChangeAvatarReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 guid = 1;</code> - * @return The guid. - */ - long getGuid(); - - /** - * <code>uint32 skillId = 2;</code> - * @return The skillId. - */ - int getSkillId(); - - /** - * <code>bool isMove = 3;</code> - * @return The isMove. - */ - boolean getIsMove(); - - /** - * <code>.Vector movePos = 4;</code> - * @return Whether the movePos field is set. - */ - boolean hasMovePos(); - /** - * <code>.Vector movePos = 4;</code> - * @return The movePos. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getMovePos(); - /** - * <code>.Vector movePos = 4;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getMovePosOrBuilder(); - } - /** - * Protobuf type {@code ChangeAvatarReq} - */ - public static final class ChangeAvatarReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ChangeAvatarReq) - ChangeAvatarReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use ChangeAvatarReq.newBuilder() to construct. - private ChangeAvatarReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ChangeAvatarReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChangeAvatarReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ChangeAvatarReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - guid_ = input.readUInt64(); - break; - } - case 16: { - - skillId_ = input.readUInt32(); - break; - } - case 24: { - - isMove_ = input.readBool(); - break; - } - case 34: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (movePos_ != null) { - subBuilder = movePos_.toBuilder(); - } - movePos_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(movePos_); - movePos_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.internal_static_ChangeAvatarReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.internal_static_ChangeAvatarReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq.class, emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq.Builder.class); - } - - public static final int GUID_FIELD_NUMBER = 1; - private long guid_; - /** - * <code>uint64 guid = 1;</code> - * @return The guid. - */ - @java.lang.Override - public long getGuid() { - return guid_; - } - - public static final int SKILLID_FIELD_NUMBER = 2; - private int skillId_; - /** - * <code>uint32 skillId = 2;</code> - * @return The skillId. - */ - @java.lang.Override - public int getSkillId() { - return skillId_; - } - - public static final int ISMOVE_FIELD_NUMBER = 3; - private boolean isMove_; - /** - * <code>bool isMove = 3;</code> - * @return The isMove. - */ - @java.lang.Override - public boolean getIsMove() { - return isMove_; - } - - public static final int MOVEPOS_FIELD_NUMBER = 4; - private emu.grasscutter.net.proto.VectorOuterClass.Vector movePos_; - /** - * <code>.Vector movePos = 4;</code> - * @return Whether the movePos field is set. - */ - @java.lang.Override - public boolean hasMovePos() { - return movePos_ != null; - } - /** - * <code>.Vector movePos = 4;</code> - * @return The movePos. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getMovePos() { - return movePos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : movePos_; - } - /** - * <code>.Vector movePos = 4;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getMovePosOrBuilder() { - return getMovePos(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (guid_ != 0L) { - output.writeUInt64(1, guid_); - } - if (skillId_ != 0) { - output.writeUInt32(2, skillId_); - } - if (isMove_ != false) { - output.writeBool(3, isMove_); - } - if (movePos_ != null) { - output.writeMessage(4, getMovePos()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (guid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, guid_); - } - if (skillId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, skillId_); - } - if (isMove_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, isMove_); - } - if (movePos_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getMovePos()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq other = (emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq) obj; - - if (getGuid() - != other.getGuid()) return false; - if (getSkillId() - != other.getSkillId()) return false; - if (getIsMove() - != other.getIsMove()) return false; - if (hasMovePos() != other.hasMovePos()) return false; - if (hasMovePos()) { - if (!getMovePos() - .equals(other.getMovePos())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGuid()); - hash = (37 * hash) + SKILLID_FIELD_NUMBER; - hash = (53 * hash) + getSkillId(); - hash = (37 * hash) + ISMOVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsMove()); - if (hasMovePos()) { - hash = (37 * hash) + MOVEPOS_FIELD_NUMBER; - hash = (53 * hash) + getMovePos().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ChangeAvatarReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ChangeAvatarReq) - emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.internal_static_ChangeAvatarReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.internal_static_ChangeAvatarReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq.class, emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - guid_ = 0L; - - skillId_ = 0; - - isMove_ = false; - - if (movePosBuilder_ == null) { - movePos_ = null; - } else { - movePos_ = null; - movePosBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.internal_static_ChangeAvatarReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq build() { - emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq buildPartial() { - emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq result = new emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq(this); - result.guid_ = guid_; - result.skillId_ = skillId_; - result.isMove_ = isMove_; - if (movePosBuilder_ == null) { - result.movePos_ = movePos_; - } else { - result.movePos_ = movePosBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq) { - return mergeFrom((emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq other) { - if (other == emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq.getDefaultInstance()) return this; - if (other.getGuid() != 0L) { - setGuid(other.getGuid()); - } - if (other.getSkillId() != 0) { - setSkillId(other.getSkillId()); - } - if (other.getIsMove() != false) { - setIsMove(other.getIsMove()); - } - if (other.hasMovePos()) { - mergeMovePos(other.getMovePos()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long guid_ ; - /** - * <code>uint64 guid = 1;</code> - * @return The guid. - */ - @java.lang.Override - public long getGuid() { - return guid_; - } - /** - * <code>uint64 guid = 1;</code> - * @param value The guid to set. - * @return This builder for chaining. - */ - public Builder setGuid(long value) { - - guid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 guid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearGuid() { - - guid_ = 0L; - onChanged(); - return this; - } - - private int skillId_ ; - /** - * <code>uint32 skillId = 2;</code> - * @return The skillId. - */ - @java.lang.Override - public int getSkillId() { - return skillId_; - } - /** - * <code>uint32 skillId = 2;</code> - * @param value The skillId to set. - * @return This builder for chaining. - */ - public Builder setSkillId(int value) { - - skillId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 skillId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearSkillId() { - - skillId_ = 0; - onChanged(); - return this; - } - - private boolean isMove_ ; - /** - * <code>bool isMove = 3;</code> - * @return The isMove. - */ - @java.lang.Override - public boolean getIsMove() { - return isMove_; - } - /** - * <code>bool isMove = 3;</code> - * @param value The isMove to set. - * @return This builder for chaining. - */ - public Builder setIsMove(boolean value) { - - isMove_ = value; - onChanged(); - return this; - } - /** - * <code>bool isMove = 3;</code> - * @return This builder for chaining. - */ - public Builder clearIsMove() { - - isMove_ = false; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.VectorOuterClass.Vector movePos_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> movePosBuilder_; - /** - * <code>.Vector movePos = 4;</code> - * @return Whether the movePos field is set. - */ - public boolean hasMovePos() { - return movePosBuilder_ != null || movePos_ != null; - } - /** - * <code>.Vector movePos = 4;</code> - * @return The movePos. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getMovePos() { - if (movePosBuilder_ == null) { - return movePos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : movePos_; - } else { - return movePosBuilder_.getMessage(); - } - } - /** - * <code>.Vector movePos = 4;</code> - */ - public Builder setMovePos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (movePosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - movePos_ = value; - onChanged(); - } else { - movePosBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Vector movePos = 4;</code> - */ - public Builder setMovePos( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (movePosBuilder_ == null) { - movePos_ = builderForValue.build(); - onChanged(); - } else { - movePosBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Vector movePos = 4;</code> - */ - public Builder mergeMovePos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (movePosBuilder_ == null) { - if (movePos_ != null) { - movePos_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(movePos_).mergeFrom(value).buildPartial(); - } else { - movePos_ = value; - } - onChanged(); - } else { - movePosBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Vector movePos = 4;</code> - */ - public Builder clearMovePos() { - if (movePosBuilder_ == null) { - movePos_ = null; - onChanged(); - } else { - movePos_ = null; - movePosBuilder_ = null; - } - - return this; - } - /** - * <code>.Vector movePos = 4;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getMovePosBuilder() { - - onChanged(); - return getMovePosFieldBuilder().getBuilder(); - } - /** - * <code>.Vector movePos = 4;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getMovePosOrBuilder() { - if (movePosBuilder_ != null) { - return movePosBuilder_.getMessageOrBuilder(); - } else { - return movePos_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : movePos_; - } - } - /** - * <code>.Vector movePos = 4;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getMovePosFieldBuilder() { - if (movePosBuilder_ == null) { - movePosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getMovePos(), - getParentForChildren(), - isClean()); - movePos_ = null; - } - return movePosBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ChangeAvatarReq) - } - - // @@protoc_insertion_point(class_scope:ChangeAvatarReq) - private static final emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq(); - } - - public static emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ChangeAvatarReq> - PARSER = new com.google.protobuf.AbstractParser<ChangeAvatarReq>() { - @java.lang.Override - public ChangeAvatarReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ChangeAvatarReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ChangeAvatarReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ChangeAvatarReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ChangeAvatarReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ChangeAvatarReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025ChangeAvatarReq.proto\032\014Vector.proto\"Z\n" + - "\017ChangeAvatarReq\022\014\n\004guid\030\001 \001(\004\022\017\n\007skillI" + - "d\030\002 \001(\r\022\016\n\006isMove\030\003 \001(\010\022\030\n\007movePos\030\004 \001(\013" + - "2\007.VectorB\033\n\031emu.grasscutter.net.protob\006" + - "proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(), - }); - internal_static_ChangeAvatarReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ChangeAvatarReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ChangeAvatarReq_descriptor, - new java.lang.String[] { "Guid", "SkillId", "IsMove", "MovePos", }); - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ChangeAvatarRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ChangeAvatarRspOuterClass.java deleted file mode 100644 index 17b86745f..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ChangeAvatarRspOuterClass.java +++ /dev/null @@ -1,678 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ChangeAvatarRsp.proto - -package emu.grasscutter.net.proto; - -public final class ChangeAvatarRspOuterClass { - private ChangeAvatarRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ChangeAvatarRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:ChangeAvatarRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint64 currGuid = 2;</code> - * @return The currGuid. - */ - long getCurrGuid(); - - /** - * <code>uint32 skillId = 3;</code> - * @return The skillId. - */ - int getSkillId(); - } - /** - * Protobuf type {@code ChangeAvatarRsp} - */ - public static final class ChangeAvatarRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ChangeAvatarRsp) - ChangeAvatarRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use ChangeAvatarRsp.newBuilder() to construct. - private ChangeAvatarRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ChangeAvatarRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChangeAvatarRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ChangeAvatarRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readUInt32(); - break; - } - case 16: { - - currGuid_ = input.readUInt64(); - break; - } - case 24: { - - skillId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.internal_static_ChangeAvatarRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.internal_static_ChangeAvatarRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp.class, emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>uint32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int CURRGUID_FIELD_NUMBER = 2; - private long currGuid_; - /** - * <code>uint64 currGuid = 2;</code> - * @return The currGuid. - */ - @java.lang.Override - public long getCurrGuid() { - return currGuid_; - } - - public static final int SKILLID_FIELD_NUMBER = 3; - private int skillId_; - /** - * <code>uint32 skillId = 3;</code> - * @return The skillId. - */ - @java.lang.Override - public int getSkillId() { - return skillId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeUInt32(1, retcode_); - } - if (currGuid_ != 0L) { - output.writeUInt64(2, currGuid_); - } - if (skillId_ != 0) { - output.writeUInt32(3, skillId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, retcode_); - } - if (currGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, currGuid_); - } - if (skillId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, skillId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp other = (emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getCurrGuid() - != other.getCurrGuid()) return false; - if (getSkillId() - != other.getSkillId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + CURRGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCurrGuid()); - hash = (37 * hash) + SKILLID_FIELD_NUMBER; - hash = (53 * hash) + getSkillId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ChangeAvatarRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ChangeAvatarRsp) - emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.internal_static_ChangeAvatarRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.internal_static_ChangeAvatarRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp.class, emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - currGuid_ = 0L; - - skillId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.internal_static_ChangeAvatarRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp build() { - emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp buildPartial() { - emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp result = new emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp(this); - result.retcode_ = retcode_; - result.currGuid_ = currGuid_; - result.skillId_ = skillId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp) { - return mergeFrom((emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp other) { - if (other == emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getCurrGuid() != 0L) { - setCurrGuid(other.getCurrGuid()); - } - if (other.getSkillId() != 0) { - setSkillId(other.getSkillId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>uint32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>uint32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private long currGuid_ ; - /** - * <code>uint64 currGuid = 2;</code> - * @return The currGuid. - */ - @java.lang.Override - public long getCurrGuid() { - return currGuid_; - } - /** - * <code>uint64 currGuid = 2;</code> - * @param value The currGuid to set. - * @return This builder for chaining. - */ - public Builder setCurrGuid(long value) { - - currGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 currGuid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearCurrGuid() { - - currGuid_ = 0L; - onChanged(); - return this; - } - - private int skillId_ ; - /** - * <code>uint32 skillId = 3;</code> - * @return The skillId. - */ - @java.lang.Override - public int getSkillId() { - return skillId_; - } - /** - * <code>uint32 skillId = 3;</code> - * @param value The skillId to set. - * @return This builder for chaining. - */ - public Builder setSkillId(int value) { - - skillId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 skillId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearSkillId() { - - skillId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ChangeAvatarRsp) - } - - // @@protoc_insertion_point(class_scope:ChangeAvatarRsp) - private static final emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp(); - } - - public static emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ChangeAvatarRsp> - PARSER = new com.google.protobuf.AbstractParser<ChangeAvatarRsp>() { - @java.lang.Override - public ChangeAvatarRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ChangeAvatarRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ChangeAvatarRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ChangeAvatarRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ChangeAvatarRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ChangeAvatarRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025ChangeAvatarRsp.proto\"E\n\017ChangeAvatarR" + - "sp\022\017\n\007retcode\030\001 \001(\r\022\020\n\010currGuid\030\002 \001(\004\022\017\n" + - "\007skillId\030\003 \001(\rB\033\n\031emu.grasscutter.net.pr" + - "otob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ChangeAvatarRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ChangeAvatarRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ChangeAvatarRsp_descriptor, - new java.lang.String[] { "Retcode", "CurrGuid", "SkillId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ChangeGameTimeReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ChangeGameTimeReqOuterClass.java deleted file mode 100644 index 8dd67f079..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ChangeGameTimeReqOuterClass.java +++ /dev/null @@ -1,608 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ChangeGameTimeReq.proto - -package emu.grasscutter.net.proto; - -public final class ChangeGameTimeReqOuterClass { - private ChangeGameTimeReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ChangeGameTimeReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:ChangeGameTimeReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 gameTime = 1;</code> - * @return The gameTime. - */ - int getGameTime(); - - /** - * <code>bool isForceSet = 2;</code> - * @return The isForceSet. - */ - boolean getIsForceSet(); - } - /** - * Protobuf type {@code ChangeGameTimeReq} - */ - public static final class ChangeGameTimeReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ChangeGameTimeReq) - ChangeGameTimeReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use ChangeGameTimeReq.newBuilder() to construct. - private ChangeGameTimeReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ChangeGameTimeReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChangeGameTimeReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ChangeGameTimeReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - gameTime_ = input.readUInt32(); - break; - } - case 16: { - - isForceSet_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.internal_static_ChangeGameTimeReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.internal_static_ChangeGameTimeReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq.class, emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq.Builder.class); - } - - public static final int GAMETIME_FIELD_NUMBER = 1; - private int gameTime_; - /** - * <code>uint32 gameTime = 1;</code> - * @return The gameTime. - */ - @java.lang.Override - public int getGameTime() { - return gameTime_; - } - - public static final int ISFORCESET_FIELD_NUMBER = 2; - private boolean isForceSet_; - /** - * <code>bool isForceSet = 2;</code> - * @return The isForceSet. - */ - @java.lang.Override - public boolean getIsForceSet() { - return isForceSet_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (gameTime_ != 0) { - output.writeUInt32(1, gameTime_); - } - if (isForceSet_ != false) { - output.writeBool(2, isForceSet_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (gameTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, gameTime_); - } - if (isForceSet_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isForceSet_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq other = (emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq) obj; - - if (getGameTime() - != other.getGameTime()) return false; - if (getIsForceSet() - != other.getIsForceSet()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GAMETIME_FIELD_NUMBER; - hash = (53 * hash) + getGameTime(); - hash = (37 * hash) + ISFORCESET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsForceSet()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ChangeGameTimeReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ChangeGameTimeReq) - emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.internal_static_ChangeGameTimeReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.internal_static_ChangeGameTimeReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq.class, emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - gameTime_ = 0; - - isForceSet_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.internal_static_ChangeGameTimeReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq build() { - emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq buildPartial() { - emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq result = new emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq(this); - result.gameTime_ = gameTime_; - result.isForceSet_ = isForceSet_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq) { - return mergeFrom((emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq other) { - if (other == emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq.getDefaultInstance()) return this; - if (other.getGameTime() != 0) { - setGameTime(other.getGameTime()); - } - if (other.getIsForceSet() != false) { - setIsForceSet(other.getIsForceSet()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int gameTime_ ; - /** - * <code>uint32 gameTime = 1;</code> - * @return The gameTime. - */ - @java.lang.Override - public int getGameTime() { - return gameTime_; - } - /** - * <code>uint32 gameTime = 1;</code> - * @param value The gameTime to set. - * @return This builder for chaining. - */ - public Builder setGameTime(int value) { - - gameTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gameTime = 1;</code> - * @return This builder for chaining. - */ - public Builder clearGameTime() { - - gameTime_ = 0; - onChanged(); - return this; - } - - private boolean isForceSet_ ; - /** - * <code>bool isForceSet = 2;</code> - * @return The isForceSet. - */ - @java.lang.Override - public boolean getIsForceSet() { - return isForceSet_; - } - /** - * <code>bool isForceSet = 2;</code> - * @param value The isForceSet to set. - * @return This builder for chaining. - */ - public Builder setIsForceSet(boolean value) { - - isForceSet_ = value; - onChanged(); - return this; - } - /** - * <code>bool isForceSet = 2;</code> - * @return This builder for chaining. - */ - public Builder clearIsForceSet() { - - isForceSet_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ChangeGameTimeReq) - } - - // @@protoc_insertion_point(class_scope:ChangeGameTimeReq) - private static final emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq(); - } - - public static emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ChangeGameTimeReq> - PARSER = new com.google.protobuf.AbstractParser<ChangeGameTimeReq>() { - @java.lang.Override - public ChangeGameTimeReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ChangeGameTimeReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ChangeGameTimeReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ChangeGameTimeReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ChangeGameTimeReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ChangeGameTimeReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027ChangeGameTimeReq.proto\"9\n\021ChangeGameT" + - "imeReq\022\020\n\010gameTime\030\001 \001(\r\022\022\n\nisForceSet\030\002" + - " \001(\010B\033\n\031emu.grasscutter.net.protob\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ChangeGameTimeReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ChangeGameTimeReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ChangeGameTimeReq_descriptor, - new java.lang.String[] { "GameTime", "IsForceSet", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ChangeGameTimeRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ChangeGameTimeRspOuterClass.java deleted file mode 100644 index 6ba006075..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ChangeGameTimeRspOuterClass.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ChangeGameTimeRsp.proto - -package emu.grasscutter.net.proto; - -public final class ChangeGameTimeRspOuterClass { - private ChangeGameTimeRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ChangeGameTimeRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:ChangeGameTimeRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint32 curGameTime = 2;</code> - * @return The curGameTime. - */ - int getCurGameTime(); - } - /** - * Protobuf type {@code ChangeGameTimeRsp} - */ - public static final class ChangeGameTimeRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ChangeGameTimeRsp) - ChangeGameTimeRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use ChangeGameTimeRsp.newBuilder() to construct. - private ChangeGameTimeRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ChangeGameTimeRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChangeGameTimeRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ChangeGameTimeRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - curGameTime_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.internal_static_ChangeGameTimeRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.internal_static_ChangeGameTimeRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp.class, emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int CURGAMETIME_FIELD_NUMBER = 2; - private int curGameTime_; - /** - * <code>uint32 curGameTime = 2;</code> - * @return The curGameTime. - */ - @java.lang.Override - public int getCurGameTime() { - return curGameTime_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (curGameTime_ != 0) { - output.writeUInt32(2, curGameTime_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (curGameTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, curGameTime_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp other = (emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getCurGameTime() - != other.getCurGameTime()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + CURGAMETIME_FIELD_NUMBER; - hash = (53 * hash) + getCurGameTime(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ChangeGameTimeRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ChangeGameTimeRsp) - emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.internal_static_ChangeGameTimeRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.internal_static_ChangeGameTimeRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp.class, emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - curGameTime_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.internal_static_ChangeGameTimeRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp build() { - emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp buildPartial() { - emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp result = new emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp(this); - result.retcode_ = retcode_; - result.curGameTime_ = curGameTime_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp) { - return mergeFrom((emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp other) { - if (other == emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getCurGameTime() != 0) { - setCurGameTime(other.getCurGameTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int curGameTime_ ; - /** - * <code>uint32 curGameTime = 2;</code> - * @return The curGameTime. - */ - @java.lang.Override - public int getCurGameTime() { - return curGameTime_; - } - /** - * <code>uint32 curGameTime = 2;</code> - * @param value The curGameTime to set. - * @return This builder for chaining. - */ - public Builder setCurGameTime(int value) { - - curGameTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 curGameTime = 2;</code> - * @return This builder for chaining. - */ - public Builder clearCurGameTime() { - - curGameTime_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ChangeGameTimeRsp) - } - - // @@protoc_insertion_point(class_scope:ChangeGameTimeRsp) - private static final emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp(); - } - - public static emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ChangeGameTimeRsp> - PARSER = new com.google.protobuf.AbstractParser<ChangeGameTimeRsp>() { - @java.lang.Override - public ChangeGameTimeRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ChangeGameTimeRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ChangeGameTimeRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ChangeGameTimeRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ChangeGameTimeRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ChangeGameTimeRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027ChangeGameTimeRsp.proto\"9\n\021ChangeGameT" + - "imeRsp\022\017\n\007retcode\030\001 \001(\005\022\023\n\013curGameTime\030\002" + - " \001(\rB\033\n\031emu.grasscutter.net.protob\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ChangeGameTimeRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ChangeGameTimeRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ChangeGameTimeRsp_descriptor, - new java.lang.String[] { "Retcode", "CurGameTime", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ChangeHpReasonOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ChangeHpReasonOuterClass.java deleted file mode 100644 index 789af4c5c..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ChangeHpReasonOuterClass.java +++ /dev/null @@ -1,366 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ChangeHpReason.proto - -package emu.grasscutter.net.proto; - -public final class ChangeHpReasonOuterClass { - private ChangeHpReasonOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code ChangeHpReason} - */ - public enum ChangeHpReason - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>ChangeHpNone = 0;</code> - */ - ChangeHpNone(0), - /** - * <code>ChangeHpSubAvatar = 1;</code> - */ - ChangeHpSubAvatar(1), - /** - * <code>ChangeHpSubMonster = 2;</code> - */ - ChangeHpSubMonster(2), - /** - * <code>ChangeHpSubGear = 3;</code> - */ - ChangeHpSubGear(3), - /** - * <code>ChangeHpSubEnvir = 4;</code> - */ - ChangeHpSubEnvir(4), - /** - * <code>ChangeHpSubFall = 5;</code> - */ - ChangeHpSubFall(5), - /** - * <code>ChangeHpSubDrawn = 6;</code> - */ - ChangeHpSubDrawn(6), - /** - * <code>ChangeHpSubAbyss = 7;</code> - */ - ChangeHpSubAbyss(7), - /** - * <code>ChangeHpSubAbility = 8;</code> - */ - ChangeHpSubAbility(8), - /** - * <code>ChangeHpSubSummon = 9;</code> - */ - ChangeHpSubSummon(9), - /** - * <code>ChangeHpSubScript = 10;</code> - */ - ChangeHpSubScript(10), - /** - * <code>ChangeHpSubGm = 11;</code> - */ - ChangeHpSubGm(11), - /** - * <code>ChangeHpSubKillSelf = 12;</code> - */ - ChangeHpSubKillSelf(12), - /** - * <code>ChangeHpSubClimateCold = 13;</code> - */ - ChangeHpSubClimateCold(13), - /** - * <code>ChangeHpSubStormLightning = 14;</code> - */ - ChangeHpSubStormLightning(14), - /** - * <code>ChangeHpSubKillServerGadget = 15;</code> - */ - ChangeHpSubKillServerGadget(15), - /** - * <code>ChangeHpByLua = 51;</code> - */ - ChangeHpByLua(51), - /** - * <code>ChangeHpAddAbility = 101;</code> - */ - ChangeHpAddAbility(101), - /** - * <code>ChangeHpAddItem = 102;</code> - */ - ChangeHpAddItem(102), - /** - * <code>ChangeHpAddRevive = 103;</code> - */ - ChangeHpAddRevive(103), - /** - * <code>ChangeHpAddUpgrade = 104;</code> - */ - ChangeHpAddUpgrade(104), - /** - * <code>ChangeHpAddStatue = 105;</code> - */ - ChangeHpAddStatue(105), - /** - * <code>ChangeHpAddBackground = 106;</code> - */ - ChangeHpAddBackground(106), - /** - * <code>ChangeHpAddGm = 107;</code> - */ - ChangeHpAddGm(107), - /** - * <code>ChangeHpAddTrialAvatarActivity = 108;</code> - */ - ChangeHpAddTrialAvatarActivity(108), - UNRECOGNIZED(-1), - ; - - /** - * <code>ChangeHpNone = 0;</code> - */ - public static final int ChangeHpNone_VALUE = 0; - /** - * <code>ChangeHpSubAvatar = 1;</code> - */ - public static final int ChangeHpSubAvatar_VALUE = 1; - /** - * <code>ChangeHpSubMonster = 2;</code> - */ - public static final int ChangeHpSubMonster_VALUE = 2; - /** - * <code>ChangeHpSubGear = 3;</code> - */ - public static final int ChangeHpSubGear_VALUE = 3; - /** - * <code>ChangeHpSubEnvir = 4;</code> - */ - public static final int ChangeHpSubEnvir_VALUE = 4; - /** - * <code>ChangeHpSubFall = 5;</code> - */ - public static final int ChangeHpSubFall_VALUE = 5; - /** - * <code>ChangeHpSubDrawn = 6;</code> - */ - public static final int ChangeHpSubDrawn_VALUE = 6; - /** - * <code>ChangeHpSubAbyss = 7;</code> - */ - public static final int ChangeHpSubAbyss_VALUE = 7; - /** - * <code>ChangeHpSubAbility = 8;</code> - */ - public static final int ChangeHpSubAbility_VALUE = 8; - /** - * <code>ChangeHpSubSummon = 9;</code> - */ - public static final int ChangeHpSubSummon_VALUE = 9; - /** - * <code>ChangeHpSubScript = 10;</code> - */ - public static final int ChangeHpSubScript_VALUE = 10; - /** - * <code>ChangeHpSubGm = 11;</code> - */ - public static final int ChangeHpSubGm_VALUE = 11; - /** - * <code>ChangeHpSubKillSelf = 12;</code> - */ - public static final int ChangeHpSubKillSelf_VALUE = 12; - /** - * <code>ChangeHpSubClimateCold = 13;</code> - */ - public static final int ChangeHpSubClimateCold_VALUE = 13; - /** - * <code>ChangeHpSubStormLightning = 14;</code> - */ - public static final int ChangeHpSubStormLightning_VALUE = 14; - /** - * <code>ChangeHpSubKillServerGadget = 15;</code> - */ - public static final int ChangeHpSubKillServerGadget_VALUE = 15; - /** - * <code>ChangeHpByLua = 51;</code> - */ - public static final int ChangeHpByLua_VALUE = 51; - /** - * <code>ChangeHpAddAbility = 101;</code> - */ - public static final int ChangeHpAddAbility_VALUE = 101; - /** - * <code>ChangeHpAddItem = 102;</code> - */ - public static final int ChangeHpAddItem_VALUE = 102; - /** - * <code>ChangeHpAddRevive = 103;</code> - */ - public static final int ChangeHpAddRevive_VALUE = 103; - /** - * <code>ChangeHpAddUpgrade = 104;</code> - */ - public static final int ChangeHpAddUpgrade_VALUE = 104; - /** - * <code>ChangeHpAddStatue = 105;</code> - */ - public static final int ChangeHpAddStatue_VALUE = 105; - /** - * <code>ChangeHpAddBackground = 106;</code> - */ - public static final int ChangeHpAddBackground_VALUE = 106; - /** - * <code>ChangeHpAddGm = 107;</code> - */ - public static final int ChangeHpAddGm_VALUE = 107; - /** - * <code>ChangeHpAddTrialAvatarActivity = 108;</code> - */ - public static final int ChangeHpAddTrialAvatarActivity_VALUE = 108; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ChangeHpReason valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static ChangeHpReason forNumber(int value) { - switch (value) { - case 0: return ChangeHpNone; - case 1: return ChangeHpSubAvatar; - case 2: return ChangeHpSubMonster; - case 3: return ChangeHpSubGear; - case 4: return ChangeHpSubEnvir; - case 5: return ChangeHpSubFall; - case 6: return ChangeHpSubDrawn; - case 7: return ChangeHpSubAbyss; - case 8: return ChangeHpSubAbility; - case 9: return ChangeHpSubSummon; - case 10: return ChangeHpSubScript; - case 11: return ChangeHpSubGm; - case 12: return ChangeHpSubKillSelf; - case 13: return ChangeHpSubClimateCold; - case 14: return ChangeHpSubStormLightning; - case 15: return ChangeHpSubKillServerGadget; - case 51: return ChangeHpByLua; - case 101: return ChangeHpAddAbility; - case 102: return ChangeHpAddItem; - case 103: return ChangeHpAddRevive; - case 104: return ChangeHpAddUpgrade; - case 105: return ChangeHpAddStatue; - case 106: return ChangeHpAddBackground; - case 107: return ChangeHpAddGm; - case 108: return ChangeHpAddTrialAvatarActivity; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<ChangeHpReason> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ChangeHpReason> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<ChangeHpReason>() { - public ChangeHpReason findValueByNumber(int number) { - return ChangeHpReason.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.ChangeHpReasonOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final ChangeHpReason[] VALUES = values(); - - public static ChangeHpReason valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ChangeHpReason(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:ChangeHpReason) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024ChangeHpReason.proto*\343\004\n\016ChangeHpReaso" + - "n\022\020\n\014ChangeHpNone\020\000\022\025\n\021ChangeHpSubAvatar" + - "\020\001\022\026\n\022ChangeHpSubMonster\020\002\022\023\n\017ChangeHpSu" + - "bGear\020\003\022\024\n\020ChangeHpSubEnvir\020\004\022\023\n\017ChangeH" + - "pSubFall\020\005\022\024\n\020ChangeHpSubDrawn\020\006\022\024\n\020Chan" + - "geHpSubAbyss\020\007\022\026\n\022ChangeHpSubAbility\020\010\022\025" + - "\n\021ChangeHpSubSummon\020\t\022\025\n\021ChangeHpSubScri" + - "pt\020\n\022\021\n\rChangeHpSubGm\020\013\022\027\n\023ChangeHpSubKi" + - "llSelf\020\014\022\032\n\026ChangeHpSubClimateCold\020\r\022\035\n\031" + - "ChangeHpSubStormLightning\020\016\022\037\n\033ChangeHpS" + - "ubKillServerGadget\020\017\022\021\n\rChangeHpByLua\0203\022" + - "\026\n\022ChangeHpAddAbility\020e\022\023\n\017ChangeHpAddIt" + - "em\020f\022\025\n\021ChangeHpAddRevive\020g\022\026\n\022ChangeHpA" + - "ddUpgrade\020h\022\025\n\021ChangeHpAddStatue\020i\022\031\n\025Ch" + - "angeHpAddBackground\020j\022\021\n\rChangeHpAddGm\020k" + - "\022\"\n\036ChangeHpAddTrialAvatarActivity\020lB\033\n\031" + - "emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ChangeMpTeamAvatarReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ChangeMpTeamAvatarReqOuterClass.java deleted file mode 100644 index 8d77cfbfe..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ChangeMpTeamAvatarReqOuterClass.java +++ /dev/null @@ -1,735 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ChangeMpTeamAvatarReq.proto - -package emu.grasscutter.net.proto; - -public final class ChangeMpTeamAvatarReqOuterClass { - private ChangeMpTeamAvatarReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ChangeMpTeamAvatarReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:ChangeMpTeamAvatarReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated uint64 avatarGuidList = 1;</code> - * @return A list containing the avatarGuidList. - */ - java.util.List<java.lang.Long> getAvatarGuidListList(); - /** - * <code>repeated uint64 avatarGuidList = 1;</code> - * @return The count of avatarGuidList. - */ - int getAvatarGuidListCount(); - /** - * <code>repeated uint64 avatarGuidList = 1;</code> - * @param index The index of the element to return. - * @return The avatarGuidList at the given index. - */ - long getAvatarGuidList(int index); - - /** - * <code>uint64 curAvatarGuid = 2;</code> - * @return The curAvatarGuid. - */ - long getCurAvatarGuid(); - } - /** - * Protobuf type {@code ChangeMpTeamAvatarReq} - */ - public static final class ChangeMpTeamAvatarReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ChangeMpTeamAvatarReq) - ChangeMpTeamAvatarReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use ChangeMpTeamAvatarReq.newBuilder() to construct. - private ChangeMpTeamAvatarReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ChangeMpTeamAvatarReq() { - avatarGuidList_ = emptyLongList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChangeMpTeamAvatarReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ChangeMpTeamAvatarReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - avatarGuidList_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - avatarGuidList_.addLong(input.readUInt64()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - avatarGuidList_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - avatarGuidList_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - case 16: { - - curAvatarGuid_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - avatarGuidList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.internal_static_ChangeMpTeamAvatarReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.internal_static_ChangeMpTeamAvatarReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq.class, emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq.Builder.class); - } - - public static final int AVATARGUIDLIST_FIELD_NUMBER = 1; - private com.google.protobuf.Internal.LongList avatarGuidList_; - /** - * <code>repeated uint64 avatarGuidList = 1;</code> - * @return A list containing the avatarGuidList. - */ - @java.lang.Override - public java.util.List<java.lang.Long> - getAvatarGuidListList() { - return avatarGuidList_; - } - /** - * <code>repeated uint64 avatarGuidList = 1;</code> - * @return The count of avatarGuidList. - */ - public int getAvatarGuidListCount() { - return avatarGuidList_.size(); - } - /** - * <code>repeated uint64 avatarGuidList = 1;</code> - * @param index The index of the element to return. - * @return The avatarGuidList at the given index. - */ - public long getAvatarGuidList(int index) { - return avatarGuidList_.getLong(index); - } - private int avatarGuidListMemoizedSerializedSize = -1; - - public static final int CURAVATARGUID_FIELD_NUMBER = 2; - private long curAvatarGuid_; - /** - * <code>uint64 curAvatarGuid = 2;</code> - * @return The curAvatarGuid. - */ - @java.lang.Override - public long getCurAvatarGuid() { - return curAvatarGuid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getAvatarGuidListList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(avatarGuidListMemoizedSerializedSize); - } - for (int i = 0; i < avatarGuidList_.size(); i++) { - output.writeUInt64NoTag(avatarGuidList_.getLong(i)); - } - if (curAvatarGuid_ != 0L) { - output.writeUInt64(2, curAvatarGuid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < avatarGuidList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(avatarGuidList_.getLong(i)); - } - size += dataSize; - if (!getAvatarGuidListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - avatarGuidListMemoizedSerializedSize = dataSize; - } - if (curAvatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, curAvatarGuid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq other = (emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq) obj; - - if (!getAvatarGuidListList() - .equals(other.getAvatarGuidListList())) return false; - if (getCurAvatarGuid() - != other.getCurAvatarGuid()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAvatarGuidListCount() > 0) { - hash = (37 * hash) + AVATARGUIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getAvatarGuidListList().hashCode(); - } - hash = (37 * hash) + CURAVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCurAvatarGuid()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ChangeMpTeamAvatarReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ChangeMpTeamAvatarReq) - emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.internal_static_ChangeMpTeamAvatarReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.internal_static_ChangeMpTeamAvatarReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq.class, emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - avatarGuidList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - curAvatarGuid_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.internal_static_ChangeMpTeamAvatarReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq build() { - emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq buildPartial() { - emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq result = new emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - avatarGuidList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.avatarGuidList_ = avatarGuidList_; - result.curAvatarGuid_ = curAvatarGuid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq) { - return mergeFrom((emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq other) { - if (other == emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq.getDefaultInstance()) return this; - if (!other.avatarGuidList_.isEmpty()) { - if (avatarGuidList_.isEmpty()) { - avatarGuidList_ = other.avatarGuidList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAvatarGuidListIsMutable(); - avatarGuidList_.addAll(other.avatarGuidList_); - } - onChanged(); - } - if (other.getCurAvatarGuid() != 0L) { - setCurAvatarGuid(other.getCurAvatarGuid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.Internal.LongList avatarGuidList_ = emptyLongList(); - private void ensureAvatarGuidListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - avatarGuidList_ = mutableCopy(avatarGuidList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint64 avatarGuidList = 1;</code> - * @return A list containing the avatarGuidList. - */ - public java.util.List<java.lang.Long> - getAvatarGuidListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(avatarGuidList_) : avatarGuidList_; - } - /** - * <code>repeated uint64 avatarGuidList = 1;</code> - * @return The count of avatarGuidList. - */ - public int getAvatarGuidListCount() { - return avatarGuidList_.size(); - } - /** - * <code>repeated uint64 avatarGuidList = 1;</code> - * @param index The index of the element to return. - * @return The avatarGuidList at the given index. - */ - public long getAvatarGuidList(int index) { - return avatarGuidList_.getLong(index); - } - /** - * <code>repeated uint64 avatarGuidList = 1;</code> - * @param index The index to set the value at. - * @param value The avatarGuidList to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuidList( - int index, long value) { - ensureAvatarGuidListIsMutable(); - avatarGuidList_.setLong(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint64 avatarGuidList = 1;</code> - * @param value The avatarGuidList to add. - * @return This builder for chaining. - */ - public Builder addAvatarGuidList(long value) { - ensureAvatarGuidListIsMutable(); - avatarGuidList_.addLong(value); - onChanged(); - return this; - } - /** - * <code>repeated uint64 avatarGuidList = 1;</code> - * @param values The avatarGuidList to add. - * @return This builder for chaining. - */ - public Builder addAllAvatarGuidList( - java.lang.Iterable<? extends java.lang.Long> values) { - ensureAvatarGuidListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, avatarGuidList_); - onChanged(); - return this; - } - /** - * <code>repeated uint64 avatarGuidList = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuidList() { - avatarGuidList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private long curAvatarGuid_ ; - /** - * <code>uint64 curAvatarGuid = 2;</code> - * @return The curAvatarGuid. - */ - @java.lang.Override - public long getCurAvatarGuid() { - return curAvatarGuid_; - } - /** - * <code>uint64 curAvatarGuid = 2;</code> - * @param value The curAvatarGuid to set. - * @return This builder for chaining. - */ - public Builder setCurAvatarGuid(long value) { - - curAvatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 curAvatarGuid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearCurAvatarGuid() { - - curAvatarGuid_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ChangeMpTeamAvatarReq) - } - - // @@protoc_insertion_point(class_scope:ChangeMpTeamAvatarReq) - private static final emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq(); - } - - public static emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ChangeMpTeamAvatarReq> - PARSER = new com.google.protobuf.AbstractParser<ChangeMpTeamAvatarReq>() { - @java.lang.Override - public ChangeMpTeamAvatarReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ChangeMpTeamAvatarReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ChangeMpTeamAvatarReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ChangeMpTeamAvatarReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ChangeMpTeamAvatarReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ChangeMpTeamAvatarReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033ChangeMpTeamAvatarReq.proto\"F\n\025ChangeM" + - "pTeamAvatarReq\022\026\n\016avatarGuidList\030\001 \003(\004\022\025" + - "\n\rcurAvatarGuid\030\002 \001(\004B\033\n\031emu.grasscutter" + - ".net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ChangeMpTeamAvatarReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ChangeMpTeamAvatarReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ChangeMpTeamAvatarReq_descriptor, - new java.lang.String[] { "AvatarGuidList", "CurAvatarGuid", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ChangeMpTeamAvatarRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ChangeMpTeamAvatarRspOuterClass.java deleted file mode 100644 index bd06efa17..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ChangeMpTeamAvatarRspOuterClass.java +++ /dev/null @@ -1,805 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ChangeMpTeamAvatarRsp.proto - -package emu.grasscutter.net.proto; - -public final class ChangeMpTeamAvatarRspOuterClass { - private ChangeMpTeamAvatarRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ChangeMpTeamAvatarRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:ChangeMpTeamAvatarRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>repeated uint64 avatarGuidList = 2;</code> - * @return A list containing the avatarGuidList. - */ - java.util.List<java.lang.Long> getAvatarGuidListList(); - /** - * <code>repeated uint64 avatarGuidList = 2;</code> - * @return The count of avatarGuidList. - */ - int getAvatarGuidListCount(); - /** - * <code>repeated uint64 avatarGuidList = 2;</code> - * @param index The index of the element to return. - * @return The avatarGuidList at the given index. - */ - long getAvatarGuidList(int index); - - /** - * <code>uint64 curAvatarGuid = 3;</code> - * @return The curAvatarGuid. - */ - long getCurAvatarGuid(); - } - /** - * Protobuf type {@code ChangeMpTeamAvatarRsp} - */ - public static final class ChangeMpTeamAvatarRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ChangeMpTeamAvatarRsp) - ChangeMpTeamAvatarRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use ChangeMpTeamAvatarRsp.newBuilder() to construct. - private ChangeMpTeamAvatarRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ChangeMpTeamAvatarRsp() { - avatarGuidList_ = emptyLongList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChangeMpTeamAvatarRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ChangeMpTeamAvatarRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - avatarGuidList_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - avatarGuidList_.addLong(input.readUInt64()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - avatarGuidList_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - avatarGuidList_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - case 24: { - - curAvatarGuid_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - avatarGuidList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.internal_static_ChangeMpTeamAvatarRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.internal_static_ChangeMpTeamAvatarRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp.class, emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int AVATARGUIDLIST_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.LongList avatarGuidList_; - /** - * <code>repeated uint64 avatarGuidList = 2;</code> - * @return A list containing the avatarGuidList. - */ - @java.lang.Override - public java.util.List<java.lang.Long> - getAvatarGuidListList() { - return avatarGuidList_; - } - /** - * <code>repeated uint64 avatarGuidList = 2;</code> - * @return The count of avatarGuidList. - */ - public int getAvatarGuidListCount() { - return avatarGuidList_.size(); - } - /** - * <code>repeated uint64 avatarGuidList = 2;</code> - * @param index The index of the element to return. - * @return The avatarGuidList at the given index. - */ - public long getAvatarGuidList(int index) { - return avatarGuidList_.getLong(index); - } - private int avatarGuidListMemoizedSerializedSize = -1; - - public static final int CURAVATARGUID_FIELD_NUMBER = 3; - private long curAvatarGuid_; - /** - * <code>uint64 curAvatarGuid = 3;</code> - * @return The curAvatarGuid. - */ - @java.lang.Override - public long getCurAvatarGuid() { - return curAvatarGuid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (getAvatarGuidListList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(avatarGuidListMemoizedSerializedSize); - } - for (int i = 0; i < avatarGuidList_.size(); i++) { - output.writeUInt64NoTag(avatarGuidList_.getLong(i)); - } - if (curAvatarGuid_ != 0L) { - output.writeUInt64(3, curAvatarGuid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - { - int dataSize = 0; - for (int i = 0; i < avatarGuidList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(avatarGuidList_.getLong(i)); - } - size += dataSize; - if (!getAvatarGuidListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - avatarGuidListMemoizedSerializedSize = dataSize; - } - if (curAvatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, curAvatarGuid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp other = (emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (!getAvatarGuidListList() - .equals(other.getAvatarGuidListList())) return false; - if (getCurAvatarGuid() - != other.getCurAvatarGuid()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - if (getAvatarGuidListCount() > 0) { - hash = (37 * hash) + AVATARGUIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getAvatarGuidListList().hashCode(); - } - hash = (37 * hash) + CURAVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCurAvatarGuid()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ChangeMpTeamAvatarRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ChangeMpTeamAvatarRsp) - emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.internal_static_ChangeMpTeamAvatarRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.internal_static_ChangeMpTeamAvatarRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp.class, emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - avatarGuidList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - curAvatarGuid_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.internal_static_ChangeMpTeamAvatarRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp build() { - emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp buildPartial() { - emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp result = new emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp(this); - int from_bitField0_ = bitField0_; - result.retcode_ = retcode_; - if (((bitField0_ & 0x00000001) != 0)) { - avatarGuidList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.avatarGuidList_ = avatarGuidList_; - result.curAvatarGuid_ = curAvatarGuid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp) { - return mergeFrom((emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp other) { - if (other == emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (!other.avatarGuidList_.isEmpty()) { - if (avatarGuidList_.isEmpty()) { - avatarGuidList_ = other.avatarGuidList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAvatarGuidListIsMutable(); - avatarGuidList_.addAll(other.avatarGuidList_); - } - onChanged(); - } - if (other.getCurAvatarGuid() != 0L) { - setCurAvatarGuid(other.getCurAvatarGuid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList avatarGuidList_ = emptyLongList(); - private void ensureAvatarGuidListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - avatarGuidList_ = mutableCopy(avatarGuidList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint64 avatarGuidList = 2;</code> - * @return A list containing the avatarGuidList. - */ - public java.util.List<java.lang.Long> - getAvatarGuidListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(avatarGuidList_) : avatarGuidList_; - } - /** - * <code>repeated uint64 avatarGuidList = 2;</code> - * @return The count of avatarGuidList. - */ - public int getAvatarGuidListCount() { - return avatarGuidList_.size(); - } - /** - * <code>repeated uint64 avatarGuidList = 2;</code> - * @param index The index of the element to return. - * @return The avatarGuidList at the given index. - */ - public long getAvatarGuidList(int index) { - return avatarGuidList_.getLong(index); - } - /** - * <code>repeated uint64 avatarGuidList = 2;</code> - * @param index The index to set the value at. - * @param value The avatarGuidList to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuidList( - int index, long value) { - ensureAvatarGuidListIsMutable(); - avatarGuidList_.setLong(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint64 avatarGuidList = 2;</code> - * @param value The avatarGuidList to add. - * @return This builder for chaining. - */ - public Builder addAvatarGuidList(long value) { - ensureAvatarGuidListIsMutable(); - avatarGuidList_.addLong(value); - onChanged(); - return this; - } - /** - * <code>repeated uint64 avatarGuidList = 2;</code> - * @param values The avatarGuidList to add. - * @return This builder for chaining. - */ - public Builder addAllAvatarGuidList( - java.lang.Iterable<? extends java.lang.Long> values) { - ensureAvatarGuidListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, avatarGuidList_); - onChanged(); - return this; - } - /** - * <code>repeated uint64 avatarGuidList = 2;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuidList() { - avatarGuidList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private long curAvatarGuid_ ; - /** - * <code>uint64 curAvatarGuid = 3;</code> - * @return The curAvatarGuid. - */ - @java.lang.Override - public long getCurAvatarGuid() { - return curAvatarGuid_; - } - /** - * <code>uint64 curAvatarGuid = 3;</code> - * @param value The curAvatarGuid to set. - * @return This builder for chaining. - */ - public Builder setCurAvatarGuid(long value) { - - curAvatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 curAvatarGuid = 3;</code> - * @return This builder for chaining. - */ - public Builder clearCurAvatarGuid() { - - curAvatarGuid_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ChangeMpTeamAvatarRsp) - } - - // @@protoc_insertion_point(class_scope:ChangeMpTeamAvatarRsp) - private static final emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp(); - } - - public static emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ChangeMpTeamAvatarRsp> - PARSER = new com.google.protobuf.AbstractParser<ChangeMpTeamAvatarRsp>() { - @java.lang.Override - public ChangeMpTeamAvatarRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ChangeMpTeamAvatarRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ChangeMpTeamAvatarRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ChangeMpTeamAvatarRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ChangeMpTeamAvatarRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ChangeMpTeamAvatarRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033ChangeMpTeamAvatarRsp.proto\"W\n\025ChangeM" + - "pTeamAvatarRsp\022\017\n\007retcode\030\001 \001(\005\022\026\n\016avata" + - "rGuidList\030\002 \003(\004\022\025\n\rcurAvatarGuid\030\003 \001(\004B\033" + - "\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ChangeMpTeamAvatarRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ChangeMpTeamAvatarRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ChangeMpTeamAvatarRsp_descriptor, - new java.lang.String[] { "Retcode", "AvatarGuidList", "CurAvatarGuid", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ChangeTeamNameReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ChangeTeamNameReqOuterClass.java deleted file mode 100644 index 65f9a9290..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ChangeTeamNameReqOuterClass.java +++ /dev/null @@ -1,686 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ChangeTeamNameReq.proto - -package emu.grasscutter.net.proto; - -public final class ChangeTeamNameReqOuterClass { - private ChangeTeamNameReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ChangeTeamNameReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:ChangeTeamNameReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 teamId = 1;</code> - * @return The teamId. - */ - int getTeamId(); - - /** - * <code>string teamName = 2;</code> - * @return The teamName. - */ - java.lang.String getTeamName(); - /** - * <code>string teamName = 2;</code> - * @return The bytes for teamName. - */ - com.google.protobuf.ByteString - getTeamNameBytes(); - } - /** - * Protobuf type {@code ChangeTeamNameReq} - */ - public static final class ChangeTeamNameReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ChangeTeamNameReq) - ChangeTeamNameReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use ChangeTeamNameReq.newBuilder() to construct. - private ChangeTeamNameReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ChangeTeamNameReq() { - teamName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChangeTeamNameReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ChangeTeamNameReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - teamId_ = input.readInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - teamName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.internal_static_ChangeTeamNameReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.internal_static_ChangeTeamNameReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq.class, emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq.Builder.class); - } - - public static final int TEAMID_FIELD_NUMBER = 1; - private int teamId_; - /** - * <code>int32 teamId = 1;</code> - * @return The teamId. - */ - @java.lang.Override - public int getTeamId() { - return teamId_; - } - - public static final int TEAMNAME_FIELD_NUMBER = 2; - private volatile java.lang.Object teamName_; - /** - * <code>string teamName = 2;</code> - * @return The teamName. - */ - @java.lang.Override - public java.lang.String getTeamName() { - java.lang.Object ref = teamName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - teamName_ = s; - return s; - } - } - /** - * <code>string teamName = 2;</code> - * @return The bytes for teamName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTeamNameBytes() { - java.lang.Object ref = teamName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - teamName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (teamId_ != 0) { - output.writeInt32(1, teamId_); - } - if (!getTeamNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, teamName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (teamId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, teamId_); - } - if (!getTeamNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, teamName_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq other = (emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq) obj; - - if (getTeamId() - != other.getTeamId()) return false; - if (!getTeamName() - .equals(other.getTeamName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TEAMID_FIELD_NUMBER; - hash = (53 * hash) + getTeamId(); - hash = (37 * hash) + TEAMNAME_FIELD_NUMBER; - hash = (53 * hash) + getTeamName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ChangeTeamNameReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ChangeTeamNameReq) - emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.internal_static_ChangeTeamNameReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.internal_static_ChangeTeamNameReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq.class, emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - teamId_ = 0; - - teamName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.internal_static_ChangeTeamNameReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq build() { - emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq buildPartial() { - emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq result = new emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq(this); - result.teamId_ = teamId_; - result.teamName_ = teamName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq) { - return mergeFrom((emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq other) { - if (other == emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq.getDefaultInstance()) return this; - if (other.getTeamId() != 0) { - setTeamId(other.getTeamId()); - } - if (!other.getTeamName().isEmpty()) { - teamName_ = other.teamName_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int teamId_ ; - /** - * <code>int32 teamId = 1;</code> - * @return The teamId. - */ - @java.lang.Override - public int getTeamId() { - return teamId_; - } - /** - * <code>int32 teamId = 1;</code> - * @param value The teamId to set. - * @return This builder for chaining. - */ - public Builder setTeamId(int value) { - - teamId_ = value; - onChanged(); - return this; - } - /** - * <code>int32 teamId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTeamId() { - - teamId_ = 0; - onChanged(); - return this; - } - - private java.lang.Object teamName_ = ""; - /** - * <code>string teamName = 2;</code> - * @return The teamName. - */ - public java.lang.String getTeamName() { - java.lang.Object ref = teamName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - teamName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string teamName = 2;</code> - * @return The bytes for teamName. - */ - public com.google.protobuf.ByteString - getTeamNameBytes() { - java.lang.Object ref = teamName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - teamName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string teamName = 2;</code> - * @param value The teamName to set. - * @return This builder for chaining. - */ - public Builder setTeamName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - teamName_ = value; - onChanged(); - return this; - } - /** - * <code>string teamName = 2;</code> - * @return This builder for chaining. - */ - public Builder clearTeamName() { - - teamName_ = getDefaultInstance().getTeamName(); - onChanged(); - return this; - } - /** - * <code>string teamName = 2;</code> - * @param value The bytes for teamName to set. - * @return This builder for chaining. - */ - public Builder setTeamNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - teamName_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ChangeTeamNameReq) - } - - // @@protoc_insertion_point(class_scope:ChangeTeamNameReq) - private static final emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq(); - } - - public static emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ChangeTeamNameReq> - PARSER = new com.google.protobuf.AbstractParser<ChangeTeamNameReq>() { - @java.lang.Override - public ChangeTeamNameReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ChangeTeamNameReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ChangeTeamNameReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ChangeTeamNameReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ChangeTeamNameReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ChangeTeamNameReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027ChangeTeamNameReq.proto\"5\n\021ChangeTeamN" + - "ameReq\022\016\n\006teamId\030\001 \001(\005\022\020\n\010teamName\030\002 \001(\t" + - "B\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ChangeTeamNameReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ChangeTeamNameReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ChangeTeamNameReq_descriptor, - new java.lang.String[] { "TeamId", "TeamName", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ChangeTeamNameRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ChangeTeamNameRspOuterClass.java deleted file mode 100644 index 7d1b703df..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ChangeTeamNameRspOuterClass.java +++ /dev/null @@ -1,757 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ChangeTeamNameRsp.proto - -package emu.grasscutter.net.proto; - -public final class ChangeTeamNameRspOuterClass { - private ChangeTeamNameRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ChangeTeamNameRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:ChangeTeamNameRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 teamId = 1;</code> - * @return The teamId. - */ - int getTeamId(); - - /** - * <code>string teamName = 2;</code> - * @return The teamName. - */ - java.lang.String getTeamName(); - /** - * <code>string teamName = 2;</code> - * @return The bytes for teamName. - */ - com.google.protobuf.ByteString - getTeamNameBytes(); - - /** - * <code>int32 retcode = 3;</code> - * @return The retcode. - */ - int getRetcode(); - } - /** - * Protobuf type {@code ChangeTeamNameRsp} - */ - public static final class ChangeTeamNameRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ChangeTeamNameRsp) - ChangeTeamNameRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use ChangeTeamNameRsp.newBuilder() to construct. - private ChangeTeamNameRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ChangeTeamNameRsp() { - teamName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChangeTeamNameRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ChangeTeamNameRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - teamId_ = input.readInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - teamName_ = s; - break; - } - case 24: { - - retcode_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.internal_static_ChangeTeamNameRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.internal_static_ChangeTeamNameRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp.class, emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp.Builder.class); - } - - public static final int TEAMID_FIELD_NUMBER = 1; - private int teamId_; - /** - * <code>int32 teamId = 1;</code> - * @return The teamId. - */ - @java.lang.Override - public int getTeamId() { - return teamId_; - } - - public static final int TEAMNAME_FIELD_NUMBER = 2; - private volatile java.lang.Object teamName_; - /** - * <code>string teamName = 2;</code> - * @return The teamName. - */ - @java.lang.Override - public java.lang.String getTeamName() { - java.lang.Object ref = teamName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - teamName_ = s; - return s; - } - } - /** - * <code>string teamName = 2;</code> - * @return The bytes for teamName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTeamNameBytes() { - java.lang.Object ref = teamName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - teamName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RETCODE_FIELD_NUMBER = 3; - private int retcode_; - /** - * <code>int32 retcode = 3;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (teamId_ != 0) { - output.writeInt32(1, teamId_); - } - if (!getTeamNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, teamName_); - } - if (retcode_ != 0) { - output.writeInt32(3, retcode_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (teamId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, teamId_); - } - if (!getTeamNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, teamName_); - } - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, retcode_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp other = (emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp) obj; - - if (getTeamId() - != other.getTeamId()) return false; - if (!getTeamName() - .equals(other.getTeamName())) return false; - if (getRetcode() - != other.getRetcode()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TEAMID_FIELD_NUMBER; - hash = (53 * hash) + getTeamId(); - hash = (37 * hash) + TEAMNAME_FIELD_NUMBER; - hash = (53 * hash) + getTeamName().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ChangeTeamNameRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ChangeTeamNameRsp) - emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.internal_static_ChangeTeamNameRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.internal_static_ChangeTeamNameRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp.class, emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - teamId_ = 0; - - teamName_ = ""; - - retcode_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.internal_static_ChangeTeamNameRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp build() { - emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp buildPartial() { - emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp result = new emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp(this); - result.teamId_ = teamId_; - result.teamName_ = teamName_; - result.retcode_ = retcode_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp) { - return mergeFrom((emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp other) { - if (other == emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp.getDefaultInstance()) return this; - if (other.getTeamId() != 0) { - setTeamId(other.getTeamId()); - } - if (!other.getTeamName().isEmpty()) { - teamName_ = other.teamName_; - onChanged(); - } - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int teamId_ ; - /** - * <code>int32 teamId = 1;</code> - * @return The teamId. - */ - @java.lang.Override - public int getTeamId() { - return teamId_; - } - /** - * <code>int32 teamId = 1;</code> - * @param value The teamId to set. - * @return This builder for chaining. - */ - public Builder setTeamId(int value) { - - teamId_ = value; - onChanged(); - return this; - } - /** - * <code>int32 teamId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTeamId() { - - teamId_ = 0; - onChanged(); - return this; - } - - private java.lang.Object teamName_ = ""; - /** - * <code>string teamName = 2;</code> - * @return The teamName. - */ - public java.lang.String getTeamName() { - java.lang.Object ref = teamName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - teamName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string teamName = 2;</code> - * @return The bytes for teamName. - */ - public com.google.protobuf.ByteString - getTeamNameBytes() { - java.lang.Object ref = teamName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - teamName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string teamName = 2;</code> - * @param value The teamName to set. - * @return This builder for chaining. - */ - public Builder setTeamName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - teamName_ = value; - onChanged(); - return this; - } - /** - * <code>string teamName = 2;</code> - * @return This builder for chaining. - */ - public Builder clearTeamName() { - - teamName_ = getDefaultInstance().getTeamName(); - onChanged(); - return this; - } - /** - * <code>string teamName = 2;</code> - * @param value The bytes for teamName to set. - * @return This builder for chaining. - */ - public Builder setTeamNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - teamName_ = value; - onChanged(); - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 3;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 3;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 3;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ChangeTeamNameRsp) - } - - // @@protoc_insertion_point(class_scope:ChangeTeamNameRsp) - private static final emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp(); - } - - public static emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ChangeTeamNameRsp> - PARSER = new com.google.protobuf.AbstractParser<ChangeTeamNameRsp>() { - @java.lang.Override - public ChangeTeamNameRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ChangeTeamNameRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ChangeTeamNameRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ChangeTeamNameRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ChangeTeamNameRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ChangeTeamNameRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027ChangeTeamNameRsp.proto\"F\n\021ChangeTeamN" + - "ameRsp\022\016\n\006teamId\030\001 \001(\005\022\020\n\010teamName\030\002 \001(\t" + - "\022\017\n\007retcode\030\003 \001(\005B\033\n\031emu.grasscutter.net" + - ".protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ChangeTeamNameRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ChangeTeamNameRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ChangeTeamNameRsp_descriptor, - new java.lang.String[] { "TeamId", "TeamName", "Retcode", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ChatInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ChatInfoOuterClass.java deleted file mode 100644 index cb7c4e966..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ChatInfoOuterClass.java +++ /dev/null @@ -1,1423 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ChatInfo.proto - -package emu.grasscutter.net.proto; - -public final class ChatInfoOuterClass { - private ChatInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ChatInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:ChatInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 time = 1;</code> - * @return The time. - */ - int getTime(); - - /** - * <code>uint32 uid = 2;</code> - * @return The uid. - */ - int getUid(); - - /** - * <code>uint32 sequence = 3;</code> - * @return The sequence. - */ - int getSequence(); - - /** - * <code>uint32 toUid = 4;</code> - * @return The toUid. - */ - int getToUid(); - - /** - * <code>bool isRead = 5;</code> - * @return The isRead. - */ - boolean getIsRead(); - - /** - * <code>string text = 100;</code> - * @return Whether the text field is set. - */ - boolean hasText(); - /** - * <code>string text = 100;</code> - * @return The text. - */ - java.lang.String getText(); - /** - * <code>string text = 100;</code> - * @return The bytes for text. - */ - com.google.protobuf.ByteString - getTextBytes(); - - /** - * <code>uint32 icon = 101;</code> - * @return Whether the icon field is set. - */ - boolean hasIcon(); - /** - * <code>uint32 icon = 101;</code> - * @return The icon. - */ - int getIcon(); - - /** - * <code>.SystemHint systemHint = 102;</code> - * @return Whether the systemHint field is set. - */ - boolean hasSystemHint(); - /** - * <code>.SystemHint systemHint = 102;</code> - * @return The systemHint. - */ - emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint getSystemHint(); - /** - * <code>.SystemHint systemHint = 102;</code> - */ - emu.grasscutter.net.proto.SystemHintOuterClass.SystemHintOrBuilder getSystemHintOrBuilder(); - - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.ContentCase getContentCase(); - } - /** - * Protobuf type {@code ChatInfo} - */ - public static final class ChatInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ChatInfo) - ChatInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use ChatInfo.newBuilder() to construct. - private ChatInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ChatInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChatInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ChatInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - time_ = input.readUInt32(); - break; - } - case 16: { - - uid_ = input.readUInt32(); - break; - } - case 24: { - - sequence_ = input.readUInt32(); - break; - } - case 32: { - - toUid_ = input.readUInt32(); - break; - } - case 40: { - - isRead_ = input.readBool(); - break; - } - case 802: { - java.lang.String s = input.readStringRequireUtf8(); - contentCase_ = 100; - content_ = s; - break; - } - case 808: { - contentCase_ = 101; - content_ = input.readUInt32(); - break; - } - case 818: { - emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint.Builder subBuilder = null; - if (contentCase_ == 102) { - subBuilder = ((emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint) content_).toBuilder(); - } - content_ = - input.readMessage(emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint) content_); - content_ = subBuilder.buildPartial(); - } - contentCase_ = 102; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ChatInfoOuterClass.internal_static_ChatInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ChatInfoOuterClass.internal_static_ChatInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.class, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder.class); - } - - private int contentCase_ = 0; - private java.lang.Object content_; - public enum ContentCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - TEXT(100), - ICON(101), - SYSTEMHINT(102), - CONTENT_NOT_SET(0); - private final int value; - private ContentCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ContentCase valueOf(int value) { - return forNumber(value); - } - - public static ContentCase forNumber(int value) { - switch (value) { - case 100: return TEXT; - case 101: return ICON; - case 102: return SYSTEMHINT; - case 0: return CONTENT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ContentCase - getContentCase() { - return ContentCase.forNumber( - contentCase_); - } - - public static final int TIME_FIELD_NUMBER = 1; - private int time_; - /** - * <code>uint32 time = 1;</code> - * @return The time. - */ - @java.lang.Override - public int getTime() { - return time_; - } - - public static final int UID_FIELD_NUMBER = 2; - private int uid_; - /** - * <code>uint32 uid = 2;</code> - * @return The uid. - */ - @java.lang.Override - public int getUid() { - return uid_; - } - - public static final int SEQUENCE_FIELD_NUMBER = 3; - private int sequence_; - /** - * <code>uint32 sequence = 3;</code> - * @return The sequence. - */ - @java.lang.Override - public int getSequence() { - return sequence_; - } - - public static final int TOUID_FIELD_NUMBER = 4; - private int toUid_; - /** - * <code>uint32 toUid = 4;</code> - * @return The toUid. - */ - @java.lang.Override - public int getToUid() { - return toUid_; - } - - public static final int ISREAD_FIELD_NUMBER = 5; - private boolean isRead_; - /** - * <code>bool isRead = 5;</code> - * @return The isRead. - */ - @java.lang.Override - public boolean getIsRead() { - return isRead_; - } - - public static final int TEXT_FIELD_NUMBER = 100; - /** - * <code>string text = 100;</code> - * @return Whether the text field is set. - */ - public boolean hasText() { - return contentCase_ == 100; - } - /** - * <code>string text = 100;</code> - * @return The text. - */ - public java.lang.String getText() { - java.lang.Object ref = ""; - if (contentCase_ == 100) { - ref = content_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (contentCase_ == 100) { - content_ = s; - } - return s; - } - } - /** - * <code>string text = 100;</code> - * @return The bytes for text. - */ - public com.google.protobuf.ByteString - getTextBytes() { - java.lang.Object ref = ""; - if (contentCase_ == 100) { - ref = content_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (contentCase_ == 100) { - content_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ICON_FIELD_NUMBER = 101; - /** - * <code>uint32 icon = 101;</code> - * @return Whether the icon field is set. - */ - @java.lang.Override - public boolean hasIcon() { - return contentCase_ == 101; - } - /** - * <code>uint32 icon = 101;</code> - * @return The icon. - */ - @java.lang.Override - public int getIcon() { - if (contentCase_ == 101) { - return (java.lang.Integer) content_; - } - return 0; - } - - public static final int SYSTEMHINT_FIELD_NUMBER = 102; - /** - * <code>.SystemHint systemHint = 102;</code> - * @return Whether the systemHint field is set. - */ - @java.lang.Override - public boolean hasSystemHint() { - return contentCase_ == 102; - } - /** - * <code>.SystemHint systemHint = 102;</code> - * @return The systemHint. - */ - @java.lang.Override - public emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint getSystemHint() { - if (contentCase_ == 102) { - return (emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint) content_; - } - return emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint.getDefaultInstance(); - } - /** - * <code>.SystemHint systemHint = 102;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SystemHintOuterClass.SystemHintOrBuilder getSystemHintOrBuilder() { - if (contentCase_ == 102) { - return (emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint) content_; - } - return emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (time_ != 0) { - output.writeUInt32(1, time_); - } - if (uid_ != 0) { - output.writeUInt32(2, uid_); - } - if (sequence_ != 0) { - output.writeUInt32(3, sequence_); - } - if (toUid_ != 0) { - output.writeUInt32(4, toUid_); - } - if (isRead_ != false) { - output.writeBool(5, isRead_); - } - if (contentCase_ == 100) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 100, content_); - } - if (contentCase_ == 101) { - output.writeUInt32( - 101, (int)((java.lang.Integer) content_)); - } - if (contentCase_ == 102) { - output.writeMessage(102, (emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint) content_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (time_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, time_); - } - if (uid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, uid_); - } - if (sequence_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, sequence_); - } - if (toUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, toUid_); - } - if (isRead_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, isRead_); - } - if (contentCase_ == 100) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, content_); - } - if (contentCase_ == 101) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size( - 101, (int)((java.lang.Integer) content_)); - } - if (contentCase_ == 102) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(102, (emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint) content_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo other = (emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo) obj; - - if (getTime() - != other.getTime()) return false; - if (getUid() - != other.getUid()) return false; - if (getSequence() - != other.getSequence()) return false; - if (getToUid() - != other.getToUid()) return false; - if (getIsRead() - != other.getIsRead()) return false; - if (!getContentCase().equals(other.getContentCase())) return false; - switch (contentCase_) { - case 100: - if (!getText() - .equals(other.getText())) return false; - break; - case 101: - if (getIcon() - != other.getIcon()) return false; - break; - case 102: - if (!getSystemHint() - .equals(other.getSystemHint())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TIME_FIELD_NUMBER; - hash = (53 * hash) + getTime(); - hash = (37 * hash) + UID_FIELD_NUMBER; - hash = (53 * hash) + getUid(); - hash = (37 * hash) + SEQUENCE_FIELD_NUMBER; - hash = (53 * hash) + getSequence(); - hash = (37 * hash) + TOUID_FIELD_NUMBER; - hash = (53 * hash) + getToUid(); - hash = (37 * hash) + ISREAD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsRead()); - switch (contentCase_) { - case 100: - hash = (37 * hash) + TEXT_FIELD_NUMBER; - hash = (53 * hash) + getText().hashCode(); - break; - case 101: - hash = (37 * hash) + ICON_FIELD_NUMBER; - hash = (53 * hash) + getIcon(); - break; - case 102: - hash = (37 * hash) + SYSTEMHINT_FIELD_NUMBER; - hash = (53 * hash) + getSystemHint().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ChatInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ChatInfo) - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ChatInfoOuterClass.internal_static_ChatInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ChatInfoOuterClass.internal_static_ChatInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.class, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - time_ = 0; - - uid_ = 0; - - sequence_ = 0; - - toUid_ = 0; - - isRead_ = false; - - contentCase_ = 0; - content_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ChatInfoOuterClass.internal_static_ChatInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo build() { - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo buildPartial() { - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo result = new emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo(this); - result.time_ = time_; - result.uid_ = uid_; - result.sequence_ = sequence_; - result.toUid_ = toUid_; - result.isRead_ = isRead_; - if (contentCase_ == 100) { - result.content_ = content_; - } - if (contentCase_ == 101) { - result.content_ = content_; - } - if (contentCase_ == 102) { - if (systemHintBuilder_ == null) { - result.content_ = content_; - } else { - result.content_ = systemHintBuilder_.build(); - } - } - result.contentCase_ = contentCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo) { - return mergeFrom((emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo other) { - if (other == emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.getDefaultInstance()) return this; - if (other.getTime() != 0) { - setTime(other.getTime()); - } - if (other.getUid() != 0) { - setUid(other.getUid()); - } - if (other.getSequence() != 0) { - setSequence(other.getSequence()); - } - if (other.getToUid() != 0) { - setToUid(other.getToUid()); - } - if (other.getIsRead() != false) { - setIsRead(other.getIsRead()); - } - switch (other.getContentCase()) { - case TEXT: { - contentCase_ = 100; - content_ = other.content_; - onChanged(); - break; - } - case ICON: { - setIcon(other.getIcon()); - break; - } - case SYSTEMHINT: { - mergeSystemHint(other.getSystemHint()); - break; - } - case CONTENT_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int contentCase_ = 0; - private java.lang.Object content_; - public ContentCase - getContentCase() { - return ContentCase.forNumber( - contentCase_); - } - - public Builder clearContent() { - contentCase_ = 0; - content_ = null; - onChanged(); - return this; - } - - - private int time_ ; - /** - * <code>uint32 time = 1;</code> - * @return The time. - */ - @java.lang.Override - public int getTime() { - return time_; - } - /** - * <code>uint32 time = 1;</code> - * @param value The time to set. - * @return This builder for chaining. - */ - public Builder setTime(int value) { - - time_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 time = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTime() { - - time_ = 0; - onChanged(); - return this; - } - - private int uid_ ; - /** - * <code>uint32 uid = 2;</code> - * @return The uid. - */ - @java.lang.Override - public int getUid() { - return uid_; - } - /** - * <code>uint32 uid = 2;</code> - * @param value The uid to set. - * @return This builder for chaining. - */ - public Builder setUid(int value) { - - uid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 uid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearUid() { - - uid_ = 0; - onChanged(); - return this; - } - - private int sequence_ ; - /** - * <code>uint32 sequence = 3;</code> - * @return The sequence. - */ - @java.lang.Override - public int getSequence() { - return sequence_; - } - /** - * <code>uint32 sequence = 3;</code> - * @param value The sequence to set. - * @return This builder for chaining. - */ - public Builder setSequence(int value) { - - sequence_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 sequence = 3;</code> - * @return This builder for chaining. - */ - public Builder clearSequence() { - - sequence_ = 0; - onChanged(); - return this; - } - - private int toUid_ ; - /** - * <code>uint32 toUid = 4;</code> - * @return The toUid. - */ - @java.lang.Override - public int getToUid() { - return toUid_; - } - /** - * <code>uint32 toUid = 4;</code> - * @param value The toUid to set. - * @return This builder for chaining. - */ - public Builder setToUid(int value) { - - toUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 toUid = 4;</code> - * @return This builder for chaining. - */ - public Builder clearToUid() { - - toUid_ = 0; - onChanged(); - return this; - } - - private boolean isRead_ ; - /** - * <code>bool isRead = 5;</code> - * @return The isRead. - */ - @java.lang.Override - public boolean getIsRead() { - return isRead_; - } - /** - * <code>bool isRead = 5;</code> - * @param value The isRead to set. - * @return This builder for chaining. - */ - public Builder setIsRead(boolean value) { - - isRead_ = value; - onChanged(); - return this; - } - /** - * <code>bool isRead = 5;</code> - * @return This builder for chaining. - */ - public Builder clearIsRead() { - - isRead_ = false; - onChanged(); - return this; - } - - /** - * <code>string text = 100;</code> - * @return Whether the text field is set. - */ - @java.lang.Override - public boolean hasText() { - return contentCase_ == 100; - } - /** - * <code>string text = 100;</code> - * @return The text. - */ - @java.lang.Override - public java.lang.String getText() { - java.lang.Object ref = ""; - if (contentCase_ == 100) { - ref = content_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (contentCase_ == 100) { - content_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string text = 100;</code> - * @return The bytes for text. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTextBytes() { - java.lang.Object ref = ""; - if (contentCase_ == 100) { - ref = content_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (contentCase_ == 100) { - content_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string text = 100;</code> - * @param value The text to set. - * @return This builder for chaining. - */ - public Builder setText( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - contentCase_ = 100; - content_ = value; - onChanged(); - return this; - } - /** - * <code>string text = 100;</code> - * @return This builder for chaining. - */ - public Builder clearText() { - if (contentCase_ == 100) { - contentCase_ = 0; - content_ = null; - onChanged(); - } - return this; - } - /** - * <code>string text = 100;</code> - * @param value The bytes for text to set. - * @return This builder for chaining. - */ - public Builder setTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - contentCase_ = 100; - content_ = value; - onChanged(); - return this; - } - - /** - * <code>uint32 icon = 101;</code> - * @return Whether the icon field is set. - */ - public boolean hasIcon() { - return contentCase_ == 101; - } - /** - * <code>uint32 icon = 101;</code> - * @return The icon. - */ - public int getIcon() { - if (contentCase_ == 101) { - return (java.lang.Integer) content_; - } - return 0; - } - /** - * <code>uint32 icon = 101;</code> - * @param value The icon to set. - * @return This builder for chaining. - */ - public Builder setIcon(int value) { - contentCase_ = 101; - content_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 icon = 101;</code> - * @return This builder for chaining. - */ - public Builder clearIcon() { - if (contentCase_ == 101) { - contentCase_ = 0; - content_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint, emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint.Builder, emu.grasscutter.net.proto.SystemHintOuterClass.SystemHintOrBuilder> systemHintBuilder_; - /** - * <code>.SystemHint systemHint = 102;</code> - * @return Whether the systemHint field is set. - */ - @java.lang.Override - public boolean hasSystemHint() { - return contentCase_ == 102; - } - /** - * <code>.SystemHint systemHint = 102;</code> - * @return The systemHint. - */ - @java.lang.Override - public emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint getSystemHint() { - if (systemHintBuilder_ == null) { - if (contentCase_ == 102) { - return (emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint) content_; - } - return emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint.getDefaultInstance(); - } else { - if (contentCase_ == 102) { - return systemHintBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint.getDefaultInstance(); - } - } - /** - * <code>.SystemHint systemHint = 102;</code> - */ - public Builder setSystemHint(emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint value) { - if (systemHintBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - content_ = value; - onChanged(); - } else { - systemHintBuilder_.setMessage(value); - } - contentCase_ = 102; - return this; - } - /** - * <code>.SystemHint systemHint = 102;</code> - */ - public Builder setSystemHint( - emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint.Builder builderForValue) { - if (systemHintBuilder_ == null) { - content_ = builderForValue.build(); - onChanged(); - } else { - systemHintBuilder_.setMessage(builderForValue.build()); - } - contentCase_ = 102; - return this; - } - /** - * <code>.SystemHint systemHint = 102;</code> - */ - public Builder mergeSystemHint(emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint value) { - if (systemHintBuilder_ == null) { - if (contentCase_ == 102 && - content_ != emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint.getDefaultInstance()) { - content_ = emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint.newBuilder((emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint) content_) - .mergeFrom(value).buildPartial(); - } else { - content_ = value; - } - onChanged(); - } else { - if (contentCase_ == 102) { - systemHintBuilder_.mergeFrom(value); - } - systemHintBuilder_.setMessage(value); - } - contentCase_ = 102; - return this; - } - /** - * <code>.SystemHint systemHint = 102;</code> - */ - public Builder clearSystemHint() { - if (systemHintBuilder_ == null) { - if (contentCase_ == 102) { - contentCase_ = 0; - content_ = null; - onChanged(); - } - } else { - if (contentCase_ == 102) { - contentCase_ = 0; - content_ = null; - } - systemHintBuilder_.clear(); - } - return this; - } - /** - * <code>.SystemHint systemHint = 102;</code> - */ - public emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint.Builder getSystemHintBuilder() { - return getSystemHintFieldBuilder().getBuilder(); - } - /** - * <code>.SystemHint systemHint = 102;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SystemHintOuterClass.SystemHintOrBuilder getSystemHintOrBuilder() { - if ((contentCase_ == 102) && (systemHintBuilder_ != null)) { - return systemHintBuilder_.getMessageOrBuilder(); - } else { - if (contentCase_ == 102) { - return (emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint) content_; - } - return emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint.getDefaultInstance(); - } - } - /** - * <code>.SystemHint systemHint = 102;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint, emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint.Builder, emu.grasscutter.net.proto.SystemHintOuterClass.SystemHintOrBuilder> - getSystemHintFieldBuilder() { - if (systemHintBuilder_ == null) { - if (!(contentCase_ == 102)) { - content_ = emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint.getDefaultInstance(); - } - systemHintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint, emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint.Builder, emu.grasscutter.net.proto.SystemHintOuterClass.SystemHintOrBuilder>( - (emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint) content_, - getParentForChildren(), - isClean()); - content_ = null; - } - contentCase_ = 102; - onChanged();; - return systemHintBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ChatInfo) - } - - // @@protoc_insertion_point(class_scope:ChatInfo) - private static final emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo(); - } - - public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ChatInfo> - PARSER = new com.google.protobuf.AbstractParser<ChatInfo>() { - @java.lang.Override - public ChatInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ChatInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ChatInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ChatInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ChatInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ChatInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\016ChatInfo.proto\032\020SystemHint.proto\"\244\001\n\010C" + - "hatInfo\022\014\n\004time\030\001 \001(\r\022\013\n\003uid\030\002 \001(\r\022\020\n\010se" + - "quence\030\003 \001(\r\022\r\n\005toUid\030\004 \001(\r\022\016\n\006isRead\030\005 " + - "\001(\010\022\016\n\004text\030d \001(\tH\000\022\016\n\004icon\030e \001(\rH\000\022!\n\ns" + - "ystemHint\030f \001(\0132\013.SystemHintH\000B\t\n\007conten" + - "tB\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.SystemHintOuterClass.getDescriptor(), - }); - internal_static_ChatInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ChatInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ChatInfo_descriptor, - new java.lang.String[] { "Time", "Uid", "Sequence", "ToUid", "IsRead", "Text", "Icon", "SystemHint", "Content", }); - emu.grasscutter.net.proto.SystemHintOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ChooseCurAvatarTeamReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ChooseCurAvatarTeamReqOuterClass.java deleted file mode 100644 index b84b531f2..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ChooseCurAvatarTeamReqOuterClass.java +++ /dev/null @@ -1,536 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ChooseCurAvatarTeamReq.proto - -package emu.grasscutter.net.proto; - -public final class ChooseCurAvatarTeamReqOuterClass { - private ChooseCurAvatarTeamReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ChooseCurAvatarTeamReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:ChooseCurAvatarTeamReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 teamId = 1;</code> - * @return The teamId. - */ - int getTeamId(); - } - /** - * Protobuf type {@code ChooseCurAvatarTeamReq} - */ - public static final class ChooseCurAvatarTeamReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ChooseCurAvatarTeamReq) - ChooseCurAvatarTeamReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use ChooseCurAvatarTeamReq.newBuilder() to construct. - private ChooseCurAvatarTeamReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ChooseCurAvatarTeamReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChooseCurAvatarTeamReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ChooseCurAvatarTeamReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - teamId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.internal_static_ChooseCurAvatarTeamReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.internal_static_ChooseCurAvatarTeamReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq.class, emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq.Builder.class); - } - - public static final int TEAMID_FIELD_NUMBER = 1; - private int teamId_; - /** - * <code>uint32 teamId = 1;</code> - * @return The teamId. - */ - @java.lang.Override - public int getTeamId() { - return teamId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (teamId_ != 0) { - output.writeUInt32(1, teamId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (teamId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, teamId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq other = (emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq) obj; - - if (getTeamId() - != other.getTeamId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TEAMID_FIELD_NUMBER; - hash = (53 * hash) + getTeamId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ChooseCurAvatarTeamReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ChooseCurAvatarTeamReq) - emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.internal_static_ChooseCurAvatarTeamReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.internal_static_ChooseCurAvatarTeamReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq.class, emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - teamId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.internal_static_ChooseCurAvatarTeamReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq build() { - emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq buildPartial() { - emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq result = new emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq(this); - result.teamId_ = teamId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq) { - return mergeFrom((emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq other) { - if (other == emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq.getDefaultInstance()) return this; - if (other.getTeamId() != 0) { - setTeamId(other.getTeamId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int teamId_ ; - /** - * <code>uint32 teamId = 1;</code> - * @return The teamId. - */ - @java.lang.Override - public int getTeamId() { - return teamId_; - } - /** - * <code>uint32 teamId = 1;</code> - * @param value The teamId to set. - * @return This builder for chaining. - */ - public Builder setTeamId(int value) { - - teamId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 teamId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTeamId() { - - teamId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ChooseCurAvatarTeamReq) - } - - // @@protoc_insertion_point(class_scope:ChooseCurAvatarTeamReq) - private static final emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq(); - } - - public static emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ChooseCurAvatarTeamReq> - PARSER = new com.google.protobuf.AbstractParser<ChooseCurAvatarTeamReq>() { - @java.lang.Override - public ChooseCurAvatarTeamReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ChooseCurAvatarTeamReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ChooseCurAvatarTeamReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ChooseCurAvatarTeamReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ChooseCurAvatarTeamReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ChooseCurAvatarTeamReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034ChooseCurAvatarTeamReq.proto\"(\n\026Choose" + - "CurAvatarTeamReq\022\016\n\006teamId\030\001 \001(\rB\033\n\031emu." + - "grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ChooseCurAvatarTeamReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ChooseCurAvatarTeamReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ChooseCurAvatarTeamReq_descriptor, - new java.lang.String[] { "TeamId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ChooseCurAvatarTeamRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ChooseCurAvatarTeamRspOuterClass.java deleted file mode 100644 index 1e9ddcab6..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ChooseCurAvatarTeamRspOuterClass.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ChooseCurAvatarTeamRsp.proto - -package emu.grasscutter.net.proto; - -public final class ChooseCurAvatarTeamRspOuterClass { - private ChooseCurAvatarTeamRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ChooseCurAvatarTeamRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:ChooseCurAvatarTeamRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint32 curTeamId = 2;</code> - * @return The curTeamId. - */ - int getCurTeamId(); - } - /** - * Protobuf type {@code ChooseCurAvatarTeamRsp} - */ - public static final class ChooseCurAvatarTeamRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ChooseCurAvatarTeamRsp) - ChooseCurAvatarTeamRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use ChooseCurAvatarTeamRsp.newBuilder() to construct. - private ChooseCurAvatarTeamRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ChooseCurAvatarTeamRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChooseCurAvatarTeamRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ChooseCurAvatarTeamRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - curTeamId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.internal_static_ChooseCurAvatarTeamRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.internal_static_ChooseCurAvatarTeamRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp.class, emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int CURTEAMID_FIELD_NUMBER = 2; - private int curTeamId_; - /** - * <code>uint32 curTeamId = 2;</code> - * @return The curTeamId. - */ - @java.lang.Override - public int getCurTeamId() { - return curTeamId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (curTeamId_ != 0) { - output.writeUInt32(2, curTeamId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (curTeamId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, curTeamId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp other = (emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getCurTeamId() - != other.getCurTeamId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + CURTEAMID_FIELD_NUMBER; - hash = (53 * hash) + getCurTeamId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ChooseCurAvatarTeamRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ChooseCurAvatarTeamRsp) - emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.internal_static_ChooseCurAvatarTeamRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.internal_static_ChooseCurAvatarTeamRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp.class, emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - curTeamId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.internal_static_ChooseCurAvatarTeamRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp build() { - emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp buildPartial() { - emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp result = new emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp(this); - result.retcode_ = retcode_; - result.curTeamId_ = curTeamId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp) { - return mergeFrom((emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp other) { - if (other == emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getCurTeamId() != 0) { - setCurTeamId(other.getCurTeamId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int curTeamId_ ; - /** - * <code>uint32 curTeamId = 2;</code> - * @return The curTeamId. - */ - @java.lang.Override - public int getCurTeamId() { - return curTeamId_; - } - /** - * <code>uint32 curTeamId = 2;</code> - * @param value The curTeamId to set. - * @return This builder for chaining. - */ - public Builder setCurTeamId(int value) { - - curTeamId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 curTeamId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearCurTeamId() { - - curTeamId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ChooseCurAvatarTeamRsp) - } - - // @@protoc_insertion_point(class_scope:ChooseCurAvatarTeamRsp) - private static final emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp(); - } - - public static emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ChooseCurAvatarTeamRsp> - PARSER = new com.google.protobuf.AbstractParser<ChooseCurAvatarTeamRsp>() { - @java.lang.Override - public ChooseCurAvatarTeamRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ChooseCurAvatarTeamRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ChooseCurAvatarTeamRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ChooseCurAvatarTeamRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ChooseCurAvatarTeamRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ChooseCurAvatarTeamRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034ChooseCurAvatarTeamRsp.proto\"<\n\026Choose" + - "CurAvatarTeamRsp\022\017\n\007retcode\030\001 \001(\005\022\021\n\tcur" + - "TeamId\030\002 \001(\rB\033\n\031emu.grasscutter.net.prot" + - "ob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ChooseCurAvatarTeamRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ChooseCurAvatarTeamRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ChooseCurAvatarTeamRsp_descriptor, - new java.lang.String[] { "Retcode", "CurTeamId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/CityInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/CityInfoOuterClass.java deleted file mode 100644 index 2e8711f42..000000000 --- a/src/main/java/emu/grasscutter/net/proto/CityInfoOuterClass.java +++ /dev/null @@ -1,676 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CityInfo.proto - -package emu.grasscutter.net.proto; - -public final class CityInfoOuterClass { - private CityInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CityInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:CityInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 cityId = 1;</code> - * @return The cityId. - */ - int getCityId(); - - /** - * <code>uint32 level = 2;</code> - * @return The level. - */ - int getLevel(); - - /** - * <code>uint32 crystalNum = 3;</code> - * @return The crystalNum. - */ - int getCrystalNum(); - } - /** - * Protobuf type {@code CityInfo} - */ - public static final class CityInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CityInfo) - CityInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use CityInfo.newBuilder() to construct. - private CityInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private CityInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CityInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CityInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - cityId_ = input.readUInt32(); - break; - } - case 16: { - - level_ = input.readUInt32(); - break; - } - case 24: { - - crystalNum_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CityInfoOuterClass.internal_static_CityInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CityInfoOuterClass.internal_static_CityInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo.class, emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo.Builder.class); - } - - public static final int CITYID_FIELD_NUMBER = 1; - private int cityId_; - /** - * <code>uint32 cityId = 1;</code> - * @return The cityId. - */ - @java.lang.Override - public int getCityId() { - return cityId_; - } - - public static final int LEVEL_FIELD_NUMBER = 2; - private int level_; - /** - * <code>uint32 level = 2;</code> - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - - public static final int CRYSTALNUM_FIELD_NUMBER = 3; - private int crystalNum_; - /** - * <code>uint32 crystalNum = 3;</code> - * @return The crystalNum. - */ - @java.lang.Override - public int getCrystalNum() { - return crystalNum_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (cityId_ != 0) { - output.writeUInt32(1, cityId_); - } - if (level_ != 0) { - output.writeUInt32(2, level_); - } - if (crystalNum_ != 0) { - output.writeUInt32(3, crystalNum_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (cityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, cityId_); - } - if (level_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, level_); - } - if (crystalNum_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, crystalNum_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo other = (emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo) obj; - - if (getCityId() - != other.getCityId()) return false; - if (getLevel() - != other.getLevel()) return false; - if (getCrystalNum() - != other.getCrystalNum()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CITYID_FIELD_NUMBER; - hash = (53 * hash) + getCityId(); - hash = (37 * hash) + LEVEL_FIELD_NUMBER; - hash = (53 * hash) + getLevel(); - hash = (37 * hash) + CRYSTALNUM_FIELD_NUMBER; - hash = (53 * hash) + getCrystalNum(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CityInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:CityInfo) - emu.grasscutter.net.proto.CityInfoOuterClass.CityInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CityInfoOuterClass.internal_static_CityInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CityInfoOuterClass.internal_static_CityInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo.class, emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - cityId_ = 0; - - level_ = 0; - - crystalNum_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.CityInfoOuterClass.internal_static_CityInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo build() { - emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo buildPartial() { - emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo result = new emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo(this); - result.cityId_ = cityId_; - result.level_ = level_; - result.crystalNum_ = crystalNum_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo) { - return mergeFrom((emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo other) { - if (other == emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo.getDefaultInstance()) return this; - if (other.getCityId() != 0) { - setCityId(other.getCityId()); - } - if (other.getLevel() != 0) { - setLevel(other.getLevel()); - } - if (other.getCrystalNum() != 0) { - setCrystalNum(other.getCrystalNum()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int cityId_ ; - /** - * <code>uint32 cityId = 1;</code> - * @return The cityId. - */ - @java.lang.Override - public int getCityId() { - return cityId_; - } - /** - * <code>uint32 cityId = 1;</code> - * @param value The cityId to set. - * @return This builder for chaining. - */ - public Builder setCityId(int value) { - - cityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 cityId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearCityId() { - - cityId_ = 0; - onChanged(); - return this; - } - - private int level_ ; - /** - * <code>uint32 level = 2;</code> - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - /** - * <code>uint32 level = 2;</code> - * @param value The level to set. - * @return This builder for chaining. - */ - public Builder setLevel(int value) { - - level_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 level = 2;</code> - * @return This builder for chaining. - */ - public Builder clearLevel() { - - level_ = 0; - onChanged(); - return this; - } - - private int crystalNum_ ; - /** - * <code>uint32 crystalNum = 3;</code> - * @return The crystalNum. - */ - @java.lang.Override - public int getCrystalNum() { - return crystalNum_; - } - /** - * <code>uint32 crystalNum = 3;</code> - * @param value The crystalNum to set. - * @return This builder for chaining. - */ - public Builder setCrystalNum(int value) { - - crystalNum_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 crystalNum = 3;</code> - * @return This builder for chaining. - */ - public Builder clearCrystalNum() { - - crystalNum_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CityInfo) - } - - // @@protoc_insertion_point(class_scope:CityInfo) - private static final emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo(); - } - - public static emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<CityInfo> - PARSER = new com.google.protobuf.AbstractParser<CityInfo>() { - @java.lang.Override - public CityInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CityInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<CityInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<CityInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CityInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CityInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\016CityInfo.proto\"=\n\010CityInfo\022\016\n\006cityId\030\001" + - " \001(\r\022\r\n\005level\030\002 \001(\r\022\022\n\ncrystalNum\030\003 \001(\rB" + - "\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_CityInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_CityInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CityInfo_descriptor, - new java.lang.String[] { "CityId", "Level", "CrystalNum", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ClientAbilityChangeNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ClientAbilityChangeNotifyOuterClass.java deleted file mode 100644 index 58f68d365..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ClientAbilityChangeNotifyOuterClass.java +++ /dev/null @@ -1,915 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ClientAbilityChangeNotify.proto - -package emu.grasscutter.net.proto; - -public final class ClientAbilityChangeNotifyOuterClass { - private ClientAbilityChangeNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ClientAbilityChangeNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:ClientAbilityChangeNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - int getEntityId(); - - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - java.util.List<emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry> - getInvokesList(); - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry getInvokes(int index); - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - int getInvokesCount(); - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder> - getInvokesOrBuilderList(); - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder getInvokesOrBuilder( - int index); - } - /** - * Protobuf type {@code ClientAbilityChangeNotify} - */ - public static final class ClientAbilityChangeNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ClientAbilityChangeNotify) - ClientAbilityChangeNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClientAbilityChangeNotify.newBuilder() to construct. - private ClientAbilityChangeNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ClientAbilityChangeNotify() { - invokes_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ClientAbilityChangeNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ClientAbilityChangeNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - entityId_ = input.readUInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - invokes_ = new java.util.ArrayList<emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry>(); - mutable_bitField0_ |= 0x00000001; - } - invokes_.add( - input.readMessage(emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - invokes_ = java.util.Collections.unmodifiableList(invokes_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.internal_static_ClientAbilityChangeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.internal_static_ClientAbilityChangeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify.class, emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify.Builder.class); - } - - public static final int ENTITYID_FIELD_NUMBER = 1; - private int entityId_; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - - public static final int INVOKES_FIELD_NUMBER = 2; - private java.util.List<emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry> invokes_; - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry> getInvokesList() { - return invokes_; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder> - getInvokesOrBuilderList() { - return invokes_; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - @java.lang.Override - public int getInvokesCount() { - return invokes_.size(); - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry getInvokes(int index) { - return invokes_.get(index); - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder getInvokesOrBuilder( - int index) { - return invokes_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (entityId_ != 0) { - output.writeUInt32(1, entityId_); - } - for (int i = 0; i < invokes_.size(); i++) { - output.writeMessage(2, invokes_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, entityId_); - } - for (int i = 0; i < invokes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, invokes_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify other = (emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify) obj; - - if (getEntityId() - != other.getEntityId()) return false; - if (!getInvokesList() - .equals(other.getInvokesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId(); - if (getInvokesCount() > 0) { - hash = (37 * hash) + INVOKES_FIELD_NUMBER; - hash = (53 * hash) + getInvokesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ClientAbilityChangeNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ClientAbilityChangeNotify) - emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.internal_static_ClientAbilityChangeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.internal_static_ClientAbilityChangeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify.class, emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getInvokesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - entityId_ = 0; - - if (invokesBuilder_ == null) { - invokes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - invokesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.internal_static_ClientAbilityChangeNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify build() { - emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify buildPartial() { - emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify result = new emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify(this); - int from_bitField0_ = bitField0_; - result.entityId_ = entityId_; - if (invokesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - invokes_ = java.util.Collections.unmodifiableList(invokes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.invokes_ = invokes_; - } else { - result.invokes_ = invokesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify) { - return mergeFrom((emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify other) { - if (other == emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify.getDefaultInstance()) return this; - if (other.getEntityId() != 0) { - setEntityId(other.getEntityId()); - } - if (invokesBuilder_ == null) { - if (!other.invokes_.isEmpty()) { - if (invokes_.isEmpty()) { - invokes_ = other.invokes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureInvokesIsMutable(); - invokes_.addAll(other.invokes_); - } - onChanged(); - } - } else { - if (!other.invokes_.isEmpty()) { - if (invokesBuilder_.isEmpty()) { - invokesBuilder_.dispose(); - invokesBuilder_ = null; - invokes_ = other.invokes_; - bitField0_ = (bitField0_ & ~0x00000001); - invokesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInvokesFieldBuilder() : null; - } else { - invokesBuilder_.addAllMessages(other.invokes_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int entityId_ ; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - /** - * <code>uint32 entityId = 1;</code> - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId(int value) { - - entityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 entityId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearEntityId() { - - entityId_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry> invokes_ = - java.util.Collections.emptyList(); - private void ensureInvokesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - invokes_ = new java.util.ArrayList<emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry>(invokes_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder> invokesBuilder_; - - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry> getInvokesList() { - if (invokesBuilder_ == null) { - return java.util.Collections.unmodifiableList(invokes_); - } else { - return invokesBuilder_.getMessageList(); - } - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public int getInvokesCount() { - if (invokesBuilder_ == null) { - return invokes_.size(); - } else { - return invokesBuilder_.getCount(); - } - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry getInvokes(int index) { - if (invokesBuilder_ == null) { - return invokes_.get(index); - } else { - return invokesBuilder_.getMessage(index); - } - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public Builder setInvokes( - int index, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry value) { - if (invokesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInvokesIsMutable(); - invokes_.set(index, value); - onChanged(); - } else { - invokesBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public Builder setInvokes( - int index, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder builderForValue) { - if (invokesBuilder_ == null) { - ensureInvokesIsMutable(); - invokes_.set(index, builderForValue.build()); - onChanged(); - } else { - invokesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public Builder addInvokes(emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry value) { - if (invokesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInvokesIsMutable(); - invokes_.add(value); - onChanged(); - } else { - invokesBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public Builder addInvokes( - int index, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry value) { - if (invokesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInvokesIsMutable(); - invokes_.add(index, value); - onChanged(); - } else { - invokesBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public Builder addInvokes( - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder builderForValue) { - if (invokesBuilder_ == null) { - ensureInvokesIsMutable(); - invokes_.add(builderForValue.build()); - onChanged(); - } else { - invokesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public Builder addInvokes( - int index, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder builderForValue) { - if (invokesBuilder_ == null) { - ensureInvokesIsMutable(); - invokes_.add(index, builderForValue.build()); - onChanged(); - } else { - invokesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public Builder addAllInvokes( - java.lang.Iterable<? extends emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry> values) { - if (invokesBuilder_ == null) { - ensureInvokesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, invokes_); - onChanged(); - } else { - invokesBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public Builder clearInvokes() { - if (invokesBuilder_ == null) { - invokes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - invokesBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public Builder removeInvokes(int index) { - if (invokesBuilder_ == null) { - ensureInvokesIsMutable(); - invokes_.remove(index); - onChanged(); - } else { - invokesBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder getInvokesBuilder( - int index) { - return getInvokesFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder getInvokesOrBuilder( - int index) { - if (invokesBuilder_ == null) { - return invokes_.get(index); } else { - return invokesBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder> - getInvokesOrBuilderList() { - if (invokesBuilder_ != null) { - return invokesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(invokes_); - } - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder addInvokesBuilder() { - return getInvokesFieldBuilder().addBuilder( - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.getDefaultInstance()); - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder addInvokesBuilder( - int index) { - return getInvokesFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.getDefaultInstance()); - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder> - getInvokesBuilderList() { - return getInvokesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder> - getInvokesFieldBuilder() { - if (invokesBuilder_ == null) { - invokesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder>( - invokes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - invokes_ = null; - } - return invokesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ClientAbilityChangeNotify) - } - - // @@protoc_insertion_point(class_scope:ClientAbilityChangeNotify) - private static final emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify(); - } - - public static emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ClientAbilityChangeNotify> - PARSER = new com.google.protobuf.AbstractParser<ClientAbilityChangeNotify>() { - @java.lang.Override - public ClientAbilityChangeNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClientAbilityChangeNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ClientAbilityChangeNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ClientAbilityChangeNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ClientAbilityChangeNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ClientAbilityChangeNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037ClientAbilityChangeNotify.proto\032\030Abili" + - "tyInvokeEntry.proto\"S\n\031ClientAbilityChan" + - "geNotify\022\020\n\010entityId\030\001 \001(\r\022$\n\007invokes\030\002 " + - "\003(\0132\023.AbilityInvokeEntryB\033\n\031emu.grasscut" + - "ter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.getDescriptor(), - }); - internal_static_ClientAbilityChangeNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ClientAbilityChangeNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ClientAbilityChangeNotify_descriptor, - new java.lang.String[] { "EntityId", "Invokes", }); - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ClientAbilityInitBeginNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ClientAbilityInitBeginNotifyOuterClass.java deleted file mode 100644 index 98108aa78..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ClientAbilityInitBeginNotifyOuterClass.java +++ /dev/null @@ -1,537 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ClientAbilityInitBeginNotify.proto - -package emu.grasscutter.net.proto; - -public final class ClientAbilityInitBeginNotifyOuterClass { - private ClientAbilityInitBeginNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ClientAbilityInitBeginNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:ClientAbilityInitBeginNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - int getEntityId(); - } - /** - * Protobuf type {@code ClientAbilityInitBeginNotify} - */ - public static final class ClientAbilityInitBeginNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ClientAbilityInitBeginNotify) - ClientAbilityInitBeginNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClientAbilityInitBeginNotify.newBuilder() to construct. - private ClientAbilityInitBeginNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ClientAbilityInitBeginNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ClientAbilityInitBeginNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ClientAbilityInitBeginNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - entityId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.internal_static_ClientAbilityInitBeginNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.internal_static_ClientAbilityInitBeginNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify.class, emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify.Builder.class); - } - - public static final int ENTITYID_FIELD_NUMBER = 1; - private int entityId_; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (entityId_ != 0) { - output.writeUInt32(1, entityId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, entityId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify other = (emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify) obj; - - if (getEntityId() - != other.getEntityId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ClientAbilityInitBeginNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ClientAbilityInitBeginNotify) - emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.internal_static_ClientAbilityInitBeginNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.internal_static_ClientAbilityInitBeginNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify.class, emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - entityId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.internal_static_ClientAbilityInitBeginNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify build() { - emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify buildPartial() { - emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify result = new emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify(this); - result.entityId_ = entityId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify) { - return mergeFrom((emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify other) { - if (other == emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify.getDefaultInstance()) return this; - if (other.getEntityId() != 0) { - setEntityId(other.getEntityId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int entityId_ ; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - /** - * <code>uint32 entityId = 1;</code> - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId(int value) { - - entityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 entityId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearEntityId() { - - entityId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ClientAbilityInitBeginNotify) - } - - // @@protoc_insertion_point(class_scope:ClientAbilityInitBeginNotify) - private static final emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify(); - } - - public static emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ClientAbilityInitBeginNotify> - PARSER = new com.google.protobuf.AbstractParser<ClientAbilityInitBeginNotify>() { - @java.lang.Override - public ClientAbilityInitBeginNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClientAbilityInitBeginNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ClientAbilityInitBeginNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ClientAbilityInitBeginNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ClientAbilityInitBeginNotifyOuterClass.ClientAbilityInitBeginNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ClientAbilityInitBeginNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ClientAbilityInitBeginNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\"ClientAbilityInitBeginNotify.proto\"0\n\034" + - "ClientAbilityInitBeginNotify\022\020\n\010entityId" + - "\030\001 \001(\rB\033\n\031emu.grasscutter.net.protob\006pro" + - "to3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ClientAbilityInitBeginNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ClientAbilityInitBeginNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ClientAbilityInitBeginNotify_descriptor, - new java.lang.String[] { "EntityId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ClientAbilityInitFinishNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ClientAbilityInitFinishNotifyOuterClass.java deleted file mode 100644 index 220cf1f65..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ClientAbilityInitFinishNotifyOuterClass.java +++ /dev/null @@ -1,915 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ClientAbilityInitFinishNotify.proto - -package emu.grasscutter.net.proto; - -public final class ClientAbilityInitFinishNotifyOuterClass { - private ClientAbilityInitFinishNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ClientAbilityInitFinishNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:ClientAbilityInitFinishNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - int getEntityId(); - - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - java.util.List<emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry> - getInvokesList(); - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry getInvokes(int index); - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - int getInvokesCount(); - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder> - getInvokesOrBuilderList(); - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder getInvokesOrBuilder( - int index); - } - /** - * Protobuf type {@code ClientAbilityInitFinishNotify} - */ - public static final class ClientAbilityInitFinishNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ClientAbilityInitFinishNotify) - ClientAbilityInitFinishNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClientAbilityInitFinishNotify.newBuilder() to construct. - private ClientAbilityInitFinishNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ClientAbilityInitFinishNotify() { - invokes_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ClientAbilityInitFinishNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ClientAbilityInitFinishNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - entityId_ = input.readUInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - invokes_ = new java.util.ArrayList<emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry>(); - mutable_bitField0_ |= 0x00000001; - } - invokes_.add( - input.readMessage(emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - invokes_ = java.util.Collections.unmodifiableList(invokes_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.internal_static_ClientAbilityInitFinishNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.internal_static_ClientAbilityInitFinishNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify.class, emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify.Builder.class); - } - - public static final int ENTITYID_FIELD_NUMBER = 1; - private int entityId_; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - - public static final int INVOKES_FIELD_NUMBER = 2; - private java.util.List<emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry> invokes_; - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry> getInvokesList() { - return invokes_; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder> - getInvokesOrBuilderList() { - return invokes_; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - @java.lang.Override - public int getInvokesCount() { - return invokes_.size(); - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry getInvokes(int index) { - return invokes_.get(index); - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder getInvokesOrBuilder( - int index) { - return invokes_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (entityId_ != 0) { - output.writeUInt32(1, entityId_); - } - for (int i = 0; i < invokes_.size(); i++) { - output.writeMessage(2, invokes_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, entityId_); - } - for (int i = 0; i < invokes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, invokes_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify other = (emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify) obj; - - if (getEntityId() - != other.getEntityId()) return false; - if (!getInvokesList() - .equals(other.getInvokesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId(); - if (getInvokesCount() > 0) { - hash = (37 * hash) + INVOKES_FIELD_NUMBER; - hash = (53 * hash) + getInvokesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ClientAbilityInitFinishNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ClientAbilityInitFinishNotify) - emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.internal_static_ClientAbilityInitFinishNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.internal_static_ClientAbilityInitFinishNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify.class, emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getInvokesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - entityId_ = 0; - - if (invokesBuilder_ == null) { - invokes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - invokesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.internal_static_ClientAbilityInitFinishNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify build() { - emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify buildPartial() { - emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify result = new emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify(this); - int from_bitField0_ = bitField0_; - result.entityId_ = entityId_; - if (invokesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - invokes_ = java.util.Collections.unmodifiableList(invokes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.invokes_ = invokes_; - } else { - result.invokes_ = invokesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify) { - return mergeFrom((emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify other) { - if (other == emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify.getDefaultInstance()) return this; - if (other.getEntityId() != 0) { - setEntityId(other.getEntityId()); - } - if (invokesBuilder_ == null) { - if (!other.invokes_.isEmpty()) { - if (invokes_.isEmpty()) { - invokes_ = other.invokes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureInvokesIsMutable(); - invokes_.addAll(other.invokes_); - } - onChanged(); - } - } else { - if (!other.invokes_.isEmpty()) { - if (invokesBuilder_.isEmpty()) { - invokesBuilder_.dispose(); - invokesBuilder_ = null; - invokes_ = other.invokes_; - bitField0_ = (bitField0_ & ~0x00000001); - invokesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInvokesFieldBuilder() : null; - } else { - invokesBuilder_.addAllMessages(other.invokes_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int entityId_ ; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - /** - * <code>uint32 entityId = 1;</code> - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId(int value) { - - entityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 entityId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearEntityId() { - - entityId_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry> invokes_ = - java.util.Collections.emptyList(); - private void ensureInvokesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - invokes_ = new java.util.ArrayList<emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry>(invokes_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder> invokesBuilder_; - - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry> getInvokesList() { - if (invokesBuilder_ == null) { - return java.util.Collections.unmodifiableList(invokes_); - } else { - return invokesBuilder_.getMessageList(); - } - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public int getInvokesCount() { - if (invokesBuilder_ == null) { - return invokes_.size(); - } else { - return invokesBuilder_.getCount(); - } - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry getInvokes(int index) { - if (invokesBuilder_ == null) { - return invokes_.get(index); - } else { - return invokesBuilder_.getMessage(index); - } - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public Builder setInvokes( - int index, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry value) { - if (invokesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInvokesIsMutable(); - invokes_.set(index, value); - onChanged(); - } else { - invokesBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public Builder setInvokes( - int index, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder builderForValue) { - if (invokesBuilder_ == null) { - ensureInvokesIsMutable(); - invokes_.set(index, builderForValue.build()); - onChanged(); - } else { - invokesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public Builder addInvokes(emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry value) { - if (invokesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInvokesIsMutable(); - invokes_.add(value); - onChanged(); - } else { - invokesBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public Builder addInvokes( - int index, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry value) { - if (invokesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInvokesIsMutable(); - invokes_.add(index, value); - onChanged(); - } else { - invokesBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public Builder addInvokes( - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder builderForValue) { - if (invokesBuilder_ == null) { - ensureInvokesIsMutable(); - invokes_.add(builderForValue.build()); - onChanged(); - } else { - invokesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public Builder addInvokes( - int index, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder builderForValue) { - if (invokesBuilder_ == null) { - ensureInvokesIsMutable(); - invokes_.add(index, builderForValue.build()); - onChanged(); - } else { - invokesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public Builder addAllInvokes( - java.lang.Iterable<? extends emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry> values) { - if (invokesBuilder_ == null) { - ensureInvokesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, invokes_); - onChanged(); - } else { - invokesBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public Builder clearInvokes() { - if (invokesBuilder_ == null) { - invokes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - invokesBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public Builder removeInvokes(int index) { - if (invokesBuilder_ == null) { - ensureInvokesIsMutable(); - invokes_.remove(index); - onChanged(); - } else { - invokesBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder getInvokesBuilder( - int index) { - return getInvokesFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder getInvokesOrBuilder( - int index) { - if (invokesBuilder_ == null) { - return invokes_.get(index); } else { - return invokesBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder> - getInvokesOrBuilderList() { - if (invokesBuilder_ != null) { - return invokesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(invokes_); - } - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder addInvokesBuilder() { - return getInvokesFieldBuilder().addBuilder( - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.getDefaultInstance()); - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder addInvokesBuilder( - int index) { - return getInvokesFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.getDefaultInstance()); - } - /** - * <code>repeated .AbilityInvokeEntry invokes = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder> - getInvokesBuilderList() { - return getInvokesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder> - getInvokesFieldBuilder() { - if (invokesBuilder_ == null) { - invokesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder>( - invokes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - invokes_ = null; - } - return invokesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ClientAbilityInitFinishNotify) - } - - // @@protoc_insertion_point(class_scope:ClientAbilityInitFinishNotify) - private static final emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify(); - } - - public static emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ClientAbilityInitFinishNotify> - PARSER = new com.google.protobuf.AbstractParser<ClientAbilityInitFinishNotify>() { - @java.lang.Override - public ClientAbilityInitFinishNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClientAbilityInitFinishNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ClientAbilityInitFinishNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ClientAbilityInitFinishNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ClientAbilityInitFinishNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ClientAbilityInitFinishNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n#ClientAbilityInitFinishNotify.proto\032\030A" + - "bilityInvokeEntry.proto\"W\n\035ClientAbility" + - "InitFinishNotify\022\020\n\010entityId\030\001 \001(\r\022$\n\007in" + - "vokes\030\002 \003(\0132\023.AbilityInvokeEntryB\033\n\031emu." + - "grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.getDescriptor(), - }); - internal_static_ClientAbilityInitFinishNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ClientAbilityInitFinishNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ClientAbilityInitFinishNotify_descriptor, - new java.lang.String[] { "EntityId", "Invokes", }); - emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/CombatInvocationsNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/CombatInvocationsNotifyOuterClass.java deleted file mode 100644 index ef66ee0d5..000000000 --- a/src/main/java/emu/grasscutter/net/proto/CombatInvocationsNotifyOuterClass.java +++ /dev/null @@ -1,844 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CombatInvocationsNotify.proto - -package emu.grasscutter.net.proto; - -public final class CombatInvocationsNotifyOuterClass { - private CombatInvocationsNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CombatInvocationsNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:CombatInvocationsNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - java.util.List<emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry> - getInvokeListList(); - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry getInvokeList(int index); - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - int getInvokeListCount(); - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntryOrBuilder> - getInvokeListOrBuilderList(); - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntryOrBuilder getInvokeListOrBuilder( - int index); - } - /** - * Protobuf type {@code CombatInvocationsNotify} - */ - public static final class CombatInvocationsNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CombatInvocationsNotify) - CombatInvocationsNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use CombatInvocationsNotify.newBuilder() to construct. - private CombatInvocationsNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private CombatInvocationsNotify() { - invokeList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CombatInvocationsNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CombatInvocationsNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - invokeList_ = new java.util.ArrayList<emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry>(); - mutable_bitField0_ |= 0x00000001; - } - invokeList_.add( - input.readMessage(emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - invokeList_ = java.util.Collections.unmodifiableList(invokeList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.internal_static_CombatInvocationsNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.internal_static_CombatInvocationsNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify.class, emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify.Builder.class); - } - - public static final int INVOKELIST_FIELD_NUMBER = 1; - private java.util.List<emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry> invokeList_; - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry> getInvokeListList() { - return invokeList_; - } - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntryOrBuilder> - getInvokeListOrBuilderList() { - return invokeList_; - } - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - @java.lang.Override - public int getInvokeListCount() { - return invokeList_.size(); - } - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry getInvokeList(int index) { - return invokeList_.get(index); - } - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntryOrBuilder getInvokeListOrBuilder( - int index) { - return invokeList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < invokeList_.size(); i++) { - output.writeMessage(1, invokeList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < invokeList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, invokeList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify other = (emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify) obj; - - if (!getInvokeListList() - .equals(other.getInvokeListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getInvokeListCount() > 0) { - hash = (37 * hash) + INVOKELIST_FIELD_NUMBER; - hash = (53 * hash) + getInvokeListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CombatInvocationsNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:CombatInvocationsNotify) - emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.internal_static_CombatInvocationsNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.internal_static_CombatInvocationsNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify.class, emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getInvokeListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (invokeListBuilder_ == null) { - invokeList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - invokeListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.internal_static_CombatInvocationsNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify build() { - emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify buildPartial() { - emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify result = new emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify(this); - int from_bitField0_ = bitField0_; - if (invokeListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - invokeList_ = java.util.Collections.unmodifiableList(invokeList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.invokeList_ = invokeList_; - } else { - result.invokeList_ = invokeListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify) { - return mergeFrom((emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify other) { - if (other == emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify.getDefaultInstance()) return this; - if (invokeListBuilder_ == null) { - if (!other.invokeList_.isEmpty()) { - if (invokeList_.isEmpty()) { - invokeList_ = other.invokeList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureInvokeListIsMutable(); - invokeList_.addAll(other.invokeList_); - } - onChanged(); - } - } else { - if (!other.invokeList_.isEmpty()) { - if (invokeListBuilder_.isEmpty()) { - invokeListBuilder_.dispose(); - invokeListBuilder_ = null; - invokeList_ = other.invokeList_; - bitField0_ = (bitField0_ & ~0x00000001); - invokeListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInvokeListFieldBuilder() : null; - } else { - invokeListBuilder_.addAllMessages(other.invokeList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List<emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry> invokeList_ = - java.util.Collections.emptyList(); - private void ensureInvokeListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - invokeList_ = new java.util.ArrayList<emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry>(invokeList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry, emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry.Builder, emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntryOrBuilder> invokeListBuilder_; - - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry> getInvokeListList() { - if (invokeListBuilder_ == null) { - return java.util.Collections.unmodifiableList(invokeList_); - } else { - return invokeListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - public int getInvokeListCount() { - if (invokeListBuilder_ == null) { - return invokeList_.size(); - } else { - return invokeListBuilder_.getCount(); - } - } - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - public emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry getInvokeList(int index) { - if (invokeListBuilder_ == null) { - return invokeList_.get(index); - } else { - return invokeListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - public Builder setInvokeList( - int index, emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry value) { - if (invokeListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInvokeListIsMutable(); - invokeList_.set(index, value); - onChanged(); - } else { - invokeListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - public Builder setInvokeList( - int index, emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry.Builder builderForValue) { - if (invokeListBuilder_ == null) { - ensureInvokeListIsMutable(); - invokeList_.set(index, builderForValue.build()); - onChanged(); - } else { - invokeListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - public Builder addInvokeList(emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry value) { - if (invokeListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInvokeListIsMutable(); - invokeList_.add(value); - onChanged(); - } else { - invokeListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - public Builder addInvokeList( - int index, emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry value) { - if (invokeListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInvokeListIsMutable(); - invokeList_.add(index, value); - onChanged(); - } else { - invokeListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - public Builder addInvokeList( - emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry.Builder builderForValue) { - if (invokeListBuilder_ == null) { - ensureInvokeListIsMutable(); - invokeList_.add(builderForValue.build()); - onChanged(); - } else { - invokeListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - public Builder addInvokeList( - int index, emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry.Builder builderForValue) { - if (invokeListBuilder_ == null) { - ensureInvokeListIsMutable(); - invokeList_.add(index, builderForValue.build()); - onChanged(); - } else { - invokeListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - public Builder addAllInvokeList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry> values) { - if (invokeListBuilder_ == null) { - ensureInvokeListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, invokeList_); - onChanged(); - } else { - invokeListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - public Builder clearInvokeList() { - if (invokeListBuilder_ == null) { - invokeList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - invokeListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - public Builder removeInvokeList(int index) { - if (invokeListBuilder_ == null) { - ensureInvokeListIsMutable(); - invokeList_.remove(index); - onChanged(); - } else { - invokeListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - public emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry.Builder getInvokeListBuilder( - int index) { - return getInvokeListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - public emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntryOrBuilder getInvokeListOrBuilder( - int index) { - if (invokeListBuilder_ == null) { - return invokeList_.get(index); } else { - return invokeListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntryOrBuilder> - getInvokeListOrBuilderList() { - if (invokeListBuilder_ != null) { - return invokeListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(invokeList_); - } - } - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - public emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry.Builder addInvokeListBuilder() { - return getInvokeListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry.getDefaultInstance()); - } - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - public emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry.Builder addInvokeListBuilder( - int index) { - return getInvokeListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry.getDefaultInstance()); - } - /** - * <code>repeated .CombatInvokeEntry invokeList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry.Builder> - getInvokeListBuilderList() { - return getInvokeListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry, emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry.Builder, emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntryOrBuilder> - getInvokeListFieldBuilder() { - if (invokeListBuilder_ == null) { - invokeListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry, emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry.Builder, emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntryOrBuilder>( - invokeList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - invokeList_ = null; - } - return invokeListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CombatInvocationsNotify) - } - - // @@protoc_insertion_point(class_scope:CombatInvocationsNotify) - private static final emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify(); - } - - public static emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<CombatInvocationsNotify> - PARSER = new com.google.protobuf.AbstractParser<CombatInvocationsNotify>() { - @java.lang.Override - public CombatInvocationsNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CombatInvocationsNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<CombatInvocationsNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<CombatInvocationsNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CombatInvocationsNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CombatInvocationsNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035CombatInvocationsNotify.proto\032\027CombatI" + - "nvokeEntry.proto\"A\n\027CombatInvocationsNot" + - "ify\022&\n\ninvokeList\030\001 \003(\0132\022.CombatInvokeEn" + - "tryB\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.getDescriptor(), - }); - internal_static_CombatInvocationsNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_CombatInvocationsNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CombatInvocationsNotify_descriptor, - new java.lang.String[] { "InvokeList", }); - emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/CombatInvokeEntryOuterClass.java b/src/main/java/emu/grasscutter/net/proto/CombatInvokeEntryOuterClass.java deleted file mode 100644 index 0a329e46b..000000000 --- a/src/main/java/emu/grasscutter/net/proto/CombatInvokeEntryOuterClass.java +++ /dev/null @@ -1,761 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CombatInvokeEntry.proto - -package emu.grasscutter.net.proto; - -public final class CombatInvokeEntryOuterClass { - private CombatInvokeEntryOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CombatInvokeEntryOrBuilder extends - // @@protoc_insertion_point(interface_extends:CombatInvokeEntry) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.CombatTypeArgument argumentType = 1;</code> - * @return The enum numeric value on the wire for argumentType. - */ - int getArgumentTypeValue(); - /** - * <code>.CombatTypeArgument argumentType = 1;</code> - * @return The argumentType. - */ - emu.grasscutter.net.proto.CombatTypeArgumentOuterClass.CombatTypeArgument getArgumentType(); - - /** - * <code>.ForwardType forwardType = 2;</code> - * @return The enum numeric value on the wire for forwardType. - */ - int getForwardTypeValue(); - /** - * <code>.ForwardType forwardType = 2;</code> - * @return The forwardType. - */ - emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType(); - - /** - * <code>bytes combatData = 3;</code> - * @return The combatData. - */ - com.google.protobuf.ByteString getCombatData(); - } - /** - * Protobuf type {@code CombatInvokeEntry} - */ - public static final class CombatInvokeEntry extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CombatInvokeEntry) - CombatInvokeEntryOrBuilder { - private static final long serialVersionUID = 0L; - // Use CombatInvokeEntry.newBuilder() to construct. - private CombatInvokeEntry(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private CombatInvokeEntry() { - argumentType_ = 0; - forwardType_ = 0; - combatData_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CombatInvokeEntry(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CombatInvokeEntry( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - argumentType_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); - - forwardType_ = rawValue; - break; - } - case 26: { - - combatData_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.internal_static_CombatInvokeEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.internal_static_CombatInvokeEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry.class, emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry.Builder.class); - } - - public static final int ARGUMENTTYPE_FIELD_NUMBER = 1; - private int argumentType_; - /** - * <code>.CombatTypeArgument argumentType = 1;</code> - * @return The enum numeric value on the wire for argumentType. - */ - @java.lang.Override public int getArgumentTypeValue() { - return argumentType_; - } - /** - * <code>.CombatTypeArgument argumentType = 1;</code> - * @return The argumentType. - */ - @java.lang.Override public emu.grasscutter.net.proto.CombatTypeArgumentOuterClass.CombatTypeArgument getArgumentType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.CombatTypeArgumentOuterClass.CombatTypeArgument result = emu.grasscutter.net.proto.CombatTypeArgumentOuterClass.CombatTypeArgument.valueOf(argumentType_); - return result == null ? emu.grasscutter.net.proto.CombatTypeArgumentOuterClass.CombatTypeArgument.UNRECOGNIZED : result; - } - - public static final int FORWARDTYPE_FIELD_NUMBER = 2; - private int forwardType_; - /** - * <code>.ForwardType forwardType = 2;</code> - * @return The enum numeric value on the wire for forwardType. - */ - @java.lang.Override public int getForwardTypeValue() { - return forwardType_; - } - /** - * <code>.ForwardType forwardType = 2;</code> - * @return The forwardType. - */ - @java.lang.Override public emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType result = emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.valueOf(forwardType_); - return result == null ? emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.UNRECOGNIZED : result; - } - - public static final int COMBATDATA_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString combatData_; - /** - * <code>bytes combatData = 3;</code> - * @return The combatData. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCombatData() { - return combatData_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (argumentType_ != emu.grasscutter.net.proto.CombatTypeArgumentOuterClass.CombatTypeArgument.CombatNone.getNumber()) { - output.writeEnum(1, argumentType_); - } - if (forwardType_ != emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.ForwardLocal.getNumber()) { - output.writeEnum(2, forwardType_); - } - if (!combatData_.isEmpty()) { - output.writeBytes(3, combatData_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (argumentType_ != emu.grasscutter.net.proto.CombatTypeArgumentOuterClass.CombatTypeArgument.CombatNone.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, argumentType_); - } - if (forwardType_ != emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.ForwardLocal.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, forwardType_); - } - if (!combatData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, combatData_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry other = (emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry) obj; - - if (argumentType_ != other.argumentType_) return false; - if (forwardType_ != other.forwardType_) return false; - if (!getCombatData() - .equals(other.getCombatData())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ARGUMENTTYPE_FIELD_NUMBER; - hash = (53 * hash) + argumentType_; - hash = (37 * hash) + FORWARDTYPE_FIELD_NUMBER; - hash = (53 * hash) + forwardType_; - hash = (37 * hash) + COMBATDATA_FIELD_NUMBER; - hash = (53 * hash) + getCombatData().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CombatInvokeEntry} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:CombatInvokeEntry) - emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.internal_static_CombatInvokeEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.internal_static_CombatInvokeEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry.class, emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - argumentType_ = 0; - - forwardType_ = 0; - - combatData_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.internal_static_CombatInvokeEntry_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry getDefaultInstanceForType() { - return emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry build() { - emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry buildPartial() { - emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry result = new emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry(this); - result.argumentType_ = argumentType_; - result.forwardType_ = forwardType_; - result.combatData_ = combatData_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry) { - return mergeFrom((emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry other) { - if (other == emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry.getDefaultInstance()) return this; - if (other.argumentType_ != 0) { - setArgumentTypeValue(other.getArgumentTypeValue()); - } - if (other.forwardType_ != 0) { - setForwardTypeValue(other.getForwardTypeValue()); - } - if (other.getCombatData() != com.google.protobuf.ByteString.EMPTY) { - setCombatData(other.getCombatData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int argumentType_ = 0; - /** - * <code>.CombatTypeArgument argumentType = 1;</code> - * @return The enum numeric value on the wire for argumentType. - */ - @java.lang.Override public int getArgumentTypeValue() { - return argumentType_; - } - /** - * <code>.CombatTypeArgument argumentType = 1;</code> - * @param value The enum numeric value on the wire for argumentType to set. - * @return This builder for chaining. - */ - public Builder setArgumentTypeValue(int value) { - - argumentType_ = value; - onChanged(); - return this; - } - /** - * <code>.CombatTypeArgument argumentType = 1;</code> - * @return The argumentType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.CombatTypeArgumentOuterClass.CombatTypeArgument getArgumentType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.CombatTypeArgumentOuterClass.CombatTypeArgument result = emu.grasscutter.net.proto.CombatTypeArgumentOuterClass.CombatTypeArgument.valueOf(argumentType_); - return result == null ? emu.grasscutter.net.proto.CombatTypeArgumentOuterClass.CombatTypeArgument.UNRECOGNIZED : result; - } - /** - * <code>.CombatTypeArgument argumentType = 1;</code> - * @param value The argumentType to set. - * @return This builder for chaining. - */ - public Builder setArgumentType(emu.grasscutter.net.proto.CombatTypeArgumentOuterClass.CombatTypeArgument value) { - if (value == null) { - throw new NullPointerException(); - } - - argumentType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.CombatTypeArgument argumentType = 1;</code> - * @return This builder for chaining. - */ - public Builder clearArgumentType() { - - argumentType_ = 0; - onChanged(); - return this; - } - - private int forwardType_ = 0; - /** - * <code>.ForwardType forwardType = 2;</code> - * @return The enum numeric value on the wire for forwardType. - */ - @java.lang.Override public int getForwardTypeValue() { - return forwardType_; - } - /** - * <code>.ForwardType forwardType = 2;</code> - * @param value The enum numeric value on the wire for forwardType to set. - * @return This builder for chaining. - */ - public Builder setForwardTypeValue(int value) { - - forwardType_ = value; - onChanged(); - return this; - } - /** - * <code>.ForwardType forwardType = 2;</code> - * @return The forwardType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType result = emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.valueOf(forwardType_); - return result == null ? emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.UNRECOGNIZED : result; - } - /** - * <code>.ForwardType forwardType = 2;</code> - * @param value The forwardType to set. - * @return This builder for chaining. - */ - public Builder setForwardType(emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType value) { - if (value == null) { - throw new NullPointerException(); - } - - forwardType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.ForwardType forwardType = 2;</code> - * @return This builder for chaining. - */ - public Builder clearForwardType() { - - forwardType_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString combatData_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>bytes combatData = 3;</code> - * @return The combatData. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCombatData() { - return combatData_; - } - /** - * <code>bytes combatData = 3;</code> - * @param value The combatData to set. - * @return This builder for chaining. - */ - public Builder setCombatData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - combatData_ = value; - onChanged(); - return this; - } - /** - * <code>bytes combatData = 3;</code> - * @return This builder for chaining. - */ - public Builder clearCombatData() { - - combatData_ = getDefaultInstance().getCombatData(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CombatInvokeEntry) - } - - // @@protoc_insertion_point(class_scope:CombatInvokeEntry) - private static final emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry(); - } - - public static emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<CombatInvokeEntry> - PARSER = new com.google.protobuf.AbstractParser<CombatInvokeEntry>() { - @java.lang.Override - public CombatInvokeEntry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CombatInvokeEntry(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<CombatInvokeEntry> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<CombatInvokeEntry> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CombatInvokeEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CombatInvokeEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027CombatInvokeEntry.proto\032\030CombatTypeArg" + - "ument.proto\032\021ForwardType.proto\"u\n\021Combat" + - "InvokeEntry\022)\n\014argumentType\030\001 \001(\0162\023.Comb" + - "atTypeArgument\022!\n\013forwardType\030\002 \001(\0162\014.Fo" + - "rwardType\022\022\n\ncombatData\030\003 \001(\014B\033\n\031emu.gra" + - "sscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.CombatTypeArgumentOuterClass.getDescriptor(), - emu.grasscutter.net.proto.ForwardTypeOuterClass.getDescriptor(), - }); - internal_static_CombatInvokeEntry_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_CombatInvokeEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CombatInvokeEntry_descriptor, - new java.lang.String[] { "ArgumentType", "ForwardType", "CombatData", }); - emu.grasscutter.net.proto.CombatTypeArgumentOuterClass.getDescriptor(); - emu.grasscutter.net.proto.ForwardTypeOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/CombatTypeArgumentOuterClass.java b/src/main/java/emu/grasscutter/net/proto/CombatTypeArgumentOuterClass.java deleted file mode 100644 index 26fa4fcb4..000000000 --- a/src/main/java/emu/grasscutter/net/proto/CombatTypeArgumentOuterClass.java +++ /dev/null @@ -1,271 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CombatTypeArgument.proto - -package emu.grasscutter.net.proto; - -public final class CombatTypeArgumentOuterClass { - private CombatTypeArgumentOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code CombatTypeArgument} - */ - public enum CombatTypeArgument - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>CombatNone = 0;</code> - */ - CombatNone(0), - /** - * <code>CombatEvtBeingHit = 1;</code> - */ - CombatEvtBeingHit(1), - /** - * <code>CombatAnimatorStateChanged = 2;</code> - */ - CombatAnimatorStateChanged(2), - /** - * <code>CombatFaceToDir = 3;</code> - */ - CombatFaceToDir(3), - /** - * <code>CombatSetAttackTarget = 4;</code> - */ - CombatSetAttackTarget(4), - /** - * <code>CombatRushMove = 5;</code> - */ - CombatRushMove(5), - /** - * <code>CombatAnimatorParameterChanged = 6;</code> - */ - CombatAnimatorParameterChanged(6), - /** - * <code>EntityMove = 7;</code> - */ - EntityMove(7), - /** - * <code>SyncEntityPosition = 8;</code> - */ - SyncEntityPosition(8), - /** - * <code>CombatSteerMotionInfo = 9;</code> - */ - CombatSteerMotionInfo(9), - /** - * <code>CombatForceSetPosInfo = 10;</code> - */ - CombatForceSetPosInfo(10), - /** - * <code>CombatCompensatePosDiff = 11;</code> - */ - CombatCompensatePosDiff(11), - /** - * <code>CombatMonsterDoBlink = 12;</code> - */ - CombatMonsterDoBlink(12), - /** - * <code>CombatFixedRushMove = 13;</code> - */ - CombatFixedRushMove(13), - /** - * <code>CombatSyncTransform = 14;</code> - */ - CombatSyncTransform(14), - UNRECOGNIZED(-1), - ; - - /** - * <code>CombatNone = 0;</code> - */ - public static final int CombatNone_VALUE = 0; - /** - * <code>CombatEvtBeingHit = 1;</code> - */ - public static final int CombatEvtBeingHit_VALUE = 1; - /** - * <code>CombatAnimatorStateChanged = 2;</code> - */ - public static final int CombatAnimatorStateChanged_VALUE = 2; - /** - * <code>CombatFaceToDir = 3;</code> - */ - public static final int CombatFaceToDir_VALUE = 3; - /** - * <code>CombatSetAttackTarget = 4;</code> - */ - public static final int CombatSetAttackTarget_VALUE = 4; - /** - * <code>CombatRushMove = 5;</code> - */ - public static final int CombatRushMove_VALUE = 5; - /** - * <code>CombatAnimatorParameterChanged = 6;</code> - */ - public static final int CombatAnimatorParameterChanged_VALUE = 6; - /** - * <code>EntityMove = 7;</code> - */ - public static final int EntityMove_VALUE = 7; - /** - * <code>SyncEntityPosition = 8;</code> - */ - public static final int SyncEntityPosition_VALUE = 8; - /** - * <code>CombatSteerMotionInfo = 9;</code> - */ - public static final int CombatSteerMotionInfo_VALUE = 9; - /** - * <code>CombatForceSetPosInfo = 10;</code> - */ - public static final int CombatForceSetPosInfo_VALUE = 10; - /** - * <code>CombatCompensatePosDiff = 11;</code> - */ - public static final int CombatCompensatePosDiff_VALUE = 11; - /** - * <code>CombatMonsterDoBlink = 12;</code> - */ - public static final int CombatMonsterDoBlink_VALUE = 12; - /** - * <code>CombatFixedRushMove = 13;</code> - */ - public static final int CombatFixedRushMove_VALUE = 13; - /** - * <code>CombatSyncTransform = 14;</code> - */ - public static final int CombatSyncTransform_VALUE = 14; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static CombatTypeArgument valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static CombatTypeArgument forNumber(int value) { - switch (value) { - case 0: return CombatNone; - case 1: return CombatEvtBeingHit; - case 2: return CombatAnimatorStateChanged; - case 3: return CombatFaceToDir; - case 4: return CombatSetAttackTarget; - case 5: return CombatRushMove; - case 6: return CombatAnimatorParameterChanged; - case 7: return EntityMove; - case 8: return SyncEntityPosition; - case 9: return CombatSteerMotionInfo; - case 10: return CombatForceSetPosInfo; - case 11: return CombatCompensatePosDiff; - case 12: return CombatMonsterDoBlink; - case 13: return CombatFixedRushMove; - case 14: return CombatSyncTransform; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<CombatTypeArgument> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - CombatTypeArgument> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<CombatTypeArgument>() { - public CombatTypeArgument findValueByNumber(int number) { - return CombatTypeArgument.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.CombatTypeArgumentOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final CombatTypeArgument[] VALUES = values(); - - public static CombatTypeArgument valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private CombatTypeArgument(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:CombatTypeArgument) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030CombatTypeArgument.proto*\212\003\n\022CombatTyp" + - "eArgument\022\016\n\nCombatNone\020\000\022\025\n\021CombatEvtBe" + - "ingHit\020\001\022\036\n\032CombatAnimatorStateChanged\020\002" + - "\022\023\n\017CombatFaceToDir\020\003\022\031\n\025CombatSetAttack" + - "Target\020\004\022\022\n\016CombatRushMove\020\005\022\"\n\036CombatAn" + - "imatorParameterChanged\020\006\022\016\n\nEntityMove\020\007" + - "\022\026\n\022SyncEntityPosition\020\010\022\031\n\025CombatSteerM" + - "otionInfo\020\t\022\031\n\025CombatForceSetPosInfo\020\n\022\033" + - "\n\027CombatCompensatePosDiff\020\013\022\030\n\024CombatMon" + - "sterDoBlink\020\014\022\027\n\023CombatFixedRushMove\020\r\022\027" + - "\n\023CombatSyncTransform\020\016B\033\n\031emu.grasscutt" + - "er.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/CoopCgOuterClass.java b/src/main/java/emu/grasscutter/net/proto/CoopCgOuterClass.java deleted file mode 100644 index 5e53bc5b8..000000000 --- a/src/main/java/emu/grasscutter/net/proto/CoopCgOuterClass.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CoopCg.proto - -package emu.grasscutter.net.proto; - -public final class CoopCgOuterClass { - private CoopCgOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CoopCgOrBuilder extends - // @@protoc_insertion_point(interface_extends:CoopCg) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 id = 1;</code> - * @return The id. - */ - int getId(); - - /** - * <code>bool isUnlock = 2;</code> - * @return The isUnlock. - */ - boolean getIsUnlock(); - } - /** - * Protobuf type {@code CoopCg} - */ - public static final class CoopCg extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CoopCg) - CoopCgOrBuilder { - private static final long serialVersionUID = 0L; - // Use CoopCg.newBuilder() to construct. - private CoopCg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private CoopCg() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CoopCg(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CoopCg( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - id_ = input.readUInt32(); - break; - } - case 16: { - - isUnlock_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CoopCgOuterClass.internal_static_CoopCg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CoopCgOuterClass.internal_static_CoopCg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg.class, emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private int id_; - /** - * <code>uint32 id = 1;</code> - * @return The id. - */ - @java.lang.Override - public int getId() { - return id_; - } - - public static final int ISUNLOCK_FIELD_NUMBER = 2; - private boolean isUnlock_; - /** - * <code>bool isUnlock = 2;</code> - * @return The isUnlock. - */ - @java.lang.Override - public boolean getIsUnlock() { - return isUnlock_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (id_ != 0) { - output.writeUInt32(1, id_); - } - if (isUnlock_ != false) { - output.writeBool(2, isUnlock_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (id_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, id_); - } - if (isUnlock_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isUnlock_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg other = (emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg) obj; - - if (getId() - != other.getId()) return false; - if (getIsUnlock() - != other.getIsUnlock()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId(); - hash = (37 * hash) + ISUNLOCK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsUnlock()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CoopCg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:CoopCg) - emu.grasscutter.net.proto.CoopCgOuterClass.CoopCgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CoopCgOuterClass.internal_static_CoopCg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CoopCgOuterClass.internal_static_CoopCg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg.class, emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = 0; - - isUnlock_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.CoopCgOuterClass.internal_static_CoopCg_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg getDefaultInstanceForType() { - return emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg build() { - emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg buildPartial() { - emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg result = new emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg(this); - result.id_ = id_; - result.isUnlock_ = isUnlock_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg) { - return mergeFrom((emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg other) { - if (other == emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg.getDefaultInstance()) return this; - if (other.getId() != 0) { - setId(other.getId()); - } - if (other.getIsUnlock() != false) { - setIsUnlock(other.getIsUnlock()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int id_ ; - /** - * <code>uint32 id = 1;</code> - * @return The id. - */ - @java.lang.Override - public int getId() { - return id_; - } - /** - * <code>uint32 id = 1;</code> - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId(int value) { - - id_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 id = 1;</code> - * @return This builder for chaining. - */ - public Builder clearId() { - - id_ = 0; - onChanged(); - return this; - } - - private boolean isUnlock_ ; - /** - * <code>bool isUnlock = 2;</code> - * @return The isUnlock. - */ - @java.lang.Override - public boolean getIsUnlock() { - return isUnlock_; - } - /** - * <code>bool isUnlock = 2;</code> - * @param value The isUnlock to set. - * @return This builder for chaining. - */ - public Builder setIsUnlock(boolean value) { - - isUnlock_ = value; - onChanged(); - return this; - } - /** - * <code>bool isUnlock = 2;</code> - * @return This builder for chaining. - */ - public Builder clearIsUnlock() { - - isUnlock_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CoopCg) - } - - // @@protoc_insertion_point(class_scope:CoopCg) - private static final emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg(); - } - - public static emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<CoopCg> - PARSER = new com.google.protobuf.AbstractParser<CoopCg>() { - @java.lang.Override - public CoopCg parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CoopCg(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<CoopCg> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<CoopCg> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CoopCg_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CoopCg_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\014CoopCg.proto\"&\n\006CoopCg\022\n\n\002id\030\001 \001(\r\022\020\n\010" + - "isUnlock\030\002 \001(\010B\033\n\031emu.grasscutter.net.pr" + - "otob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_CoopCg_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_CoopCg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CoopCg_descriptor, - new java.lang.String[] { "Id", "IsUnlock", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/CoopChapterOuterClass.java b/src/main/java/emu/grasscutter/net/proto/CoopChapterOuterClass.java deleted file mode 100644 index c6e920f3d..000000000 --- a/src/main/java/emu/grasscutter/net/proto/CoopChapterOuterClass.java +++ /dev/null @@ -1,2635 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CoopChapter.proto - -package emu.grasscutter.net.proto; - -public final class CoopChapterOuterClass { - private CoopChapterOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CoopChapterOrBuilder extends - // @@protoc_insertion_point(interface_extends:CoopChapter) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 id = 1;</code> - * @return The id. - */ - int getId(); - - /** - * <code>.CoopChapterState state = 2;</code> - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * <code>.CoopChapterState state = 2;</code> - * @return The state. - */ - emu.grasscutter.net.proto.CoopChapterStateOuterClass.CoopChapterState getState(); - - /** - * <code>repeated uint32 lockReasonList = 3;</code> - * @return A list containing the lockReasonList. - */ - java.util.List<java.lang.Integer> getLockReasonListList(); - /** - * <code>repeated uint32 lockReasonList = 3;</code> - * @return The count of lockReasonList. - */ - int getLockReasonListCount(); - /** - * <code>repeated uint32 lockReasonList = 3;</code> - * @param index The index of the element to return. - * @return The lockReasonList at the given index. - */ - int getLockReasonList(int index); - - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - java.util.List<emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint> - getCoopPointListList(); - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint getCoopPointList(int index); - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - int getCoopPointListCount(); - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.CoopPointOuterClass.CoopPointOrBuilder> - getCoopPointListOrBuilderList(); - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - emu.grasscutter.net.proto.CoopPointOuterClass.CoopPointOrBuilder getCoopPointListOrBuilder( - int index); - - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - java.util.List<emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward> - getCoopRewardListList(); - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward getCoopRewardList(int index); - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - int getCoopRewardListCount(); - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.CoopRewardOuterClass.CoopRewardOrBuilder> - getCoopRewardListOrBuilderList(); - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - emu.grasscutter.net.proto.CoopRewardOuterClass.CoopRewardOrBuilder getCoopRewardListOrBuilder( - int index); - - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - java.util.List<emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg> - getCoopCgListList(); - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg getCoopCgList(int index); - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - int getCoopCgListCount(); - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.CoopCgOuterClass.CoopCgOrBuilder> - getCoopCgListOrBuilderList(); - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - emu.grasscutter.net.proto.CoopCgOuterClass.CoopCgOrBuilder getCoopCgListOrBuilder( - int index); - - /** - * <code>uint32 totalEndCount = 7;</code> - * @return The totalEndCount. - */ - int getTotalEndCount(); - - /** - * <code>uint32 finishedEndCount = 8;</code> - * @return The finishedEndCount. - */ - int getFinishedEndCount(); - - /** - * <code>map<uint32, uint32> seenEndingMap = 9;</code> - */ - int getSeenEndingMapCount(); - /** - * <code>map<uint32, uint32> seenEndingMap = 9;</code> - */ - boolean containsSeenEndingMap( - int key); - /** - * Use {@link #getSeenEndingMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Integer> - getSeenEndingMap(); - /** - * <code>map<uint32, uint32> seenEndingMap = 9;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Integer> - getSeenEndingMapMap(); - /** - * <code>map<uint32, uint32> seenEndingMap = 9;</code> - */ - - int getSeenEndingMapOrDefault( - int key, - int defaultValue); - /** - * <code>map<uint32, uint32> seenEndingMap = 9;</code> - */ - - int getSeenEndingMapOrThrow( - int key); - - /** - * <code>repeated uint32 finishDialogList = 10;</code> - * @return A list containing the finishDialogList. - */ - java.util.List<java.lang.Integer> getFinishDialogListList(); - /** - * <code>repeated uint32 finishDialogList = 10;</code> - * @return The count of finishDialogList. - */ - int getFinishDialogListCount(); - /** - * <code>repeated uint32 finishDialogList = 10;</code> - * @param index The index of the element to return. - * @return The finishDialogList at the given index. - */ - int getFinishDialogList(int index); - } - /** - * Protobuf type {@code CoopChapter} - */ - public static final class CoopChapter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CoopChapter) - CoopChapterOrBuilder { - private static final long serialVersionUID = 0L; - // Use CoopChapter.newBuilder() to construct. - private CoopChapter(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private CoopChapter() { - state_ = 0; - lockReasonList_ = emptyIntList(); - coopPointList_ = java.util.Collections.emptyList(); - coopRewardList_ = java.util.Collections.emptyList(); - coopCgList_ = java.util.Collections.emptyList(); - finishDialogList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CoopChapter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CoopChapter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - id_ = input.readUInt32(); - break; - } - case 16: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 24: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - lockReasonList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - lockReasonList_.addInt(input.readUInt32()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - lockReasonList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - lockReasonList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - coopPointList_ = new java.util.ArrayList<emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint>(); - mutable_bitField0_ |= 0x00000002; - } - coopPointList_.add( - input.readMessage(emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.parser(), extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - coopRewardList_ = new java.util.ArrayList<emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward>(); - mutable_bitField0_ |= 0x00000004; - } - coopRewardList_.add( - input.readMessage(emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward.parser(), extensionRegistry)); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - coopCgList_ = new java.util.ArrayList<emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg>(); - mutable_bitField0_ |= 0x00000008; - } - coopCgList_.add( - input.readMessage(emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg.parser(), extensionRegistry)); - break; - } - case 56: { - - totalEndCount_ = input.readUInt32(); - break; - } - case 64: { - - finishedEndCount_ = input.readUInt32(); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - seenEndingMap_ = com.google.protobuf.MapField.newMapField( - SeenEndingMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - seenEndingMap__ = input.readMessage( - SeenEndingMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - seenEndingMap_.getMutableMap().put( - seenEndingMap__.getKey(), seenEndingMap__.getValue()); - break; - } - case 80: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - finishDialogList_ = newIntList(); - mutable_bitField0_ |= 0x00000020; - } - finishDialogList_.addInt(input.readUInt32()); - break; - } - case 82: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000020) != 0) && input.getBytesUntilLimit() > 0) { - finishDialogList_ = newIntList(); - mutable_bitField0_ |= 0x00000020; - } - while (input.getBytesUntilLimit() > 0) { - finishDialogList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - lockReasonList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - coopPointList_ = java.util.Collections.unmodifiableList(coopPointList_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - coopRewardList_ = java.util.Collections.unmodifiableList(coopRewardList_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - coopCgList_ = java.util.Collections.unmodifiableList(coopCgList_); - } - if (((mutable_bitField0_ & 0x00000020) != 0)) { - finishDialogList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CoopChapterOuterClass.internal_static_CoopChapter_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 9: - return internalGetSeenEndingMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CoopChapterOuterClass.internal_static_CoopChapter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.class, emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private int id_; - /** - * <code>uint32 id = 1;</code> - * @return The id. - */ - @java.lang.Override - public int getId() { - return id_; - } - - public static final int STATE_FIELD_NUMBER = 2; - private int state_; - /** - * <code>.CoopChapterState state = 2;</code> - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override public int getStateValue() { - return state_; - } - /** - * <code>.CoopChapterState state = 2;</code> - * @return The state. - */ - @java.lang.Override public emu.grasscutter.net.proto.CoopChapterStateOuterClass.CoopChapterState getState() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.CoopChapterStateOuterClass.CoopChapterState result = emu.grasscutter.net.proto.CoopChapterStateOuterClass.CoopChapterState.valueOf(state_); - return result == null ? emu.grasscutter.net.proto.CoopChapterStateOuterClass.CoopChapterState.UNRECOGNIZED : result; - } - - public static final int LOCKREASONLIST_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.IntList lockReasonList_; - /** - * <code>repeated uint32 lockReasonList = 3;</code> - * @return A list containing the lockReasonList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getLockReasonListList() { - return lockReasonList_; - } - /** - * <code>repeated uint32 lockReasonList = 3;</code> - * @return The count of lockReasonList. - */ - public int getLockReasonListCount() { - return lockReasonList_.size(); - } - /** - * <code>repeated uint32 lockReasonList = 3;</code> - * @param index The index of the element to return. - * @return The lockReasonList at the given index. - */ - public int getLockReasonList(int index) { - return lockReasonList_.getInt(index); - } - private int lockReasonListMemoizedSerializedSize = -1; - - public static final int COOPPOINTLIST_FIELD_NUMBER = 4; - private java.util.List<emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint> coopPointList_; - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint> getCoopPointListList() { - return coopPointList_; - } - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.CoopPointOuterClass.CoopPointOrBuilder> - getCoopPointListOrBuilderList() { - return coopPointList_; - } - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - @java.lang.Override - public int getCoopPointListCount() { - return coopPointList_.size(); - } - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint getCoopPointList(int index) { - return coopPointList_.get(index); - } - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.CoopPointOuterClass.CoopPointOrBuilder getCoopPointListOrBuilder( - int index) { - return coopPointList_.get(index); - } - - public static final int COOPREWARDLIST_FIELD_NUMBER = 5; - private java.util.List<emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward> coopRewardList_; - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward> getCoopRewardListList() { - return coopRewardList_; - } - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.CoopRewardOuterClass.CoopRewardOrBuilder> - getCoopRewardListOrBuilderList() { - return coopRewardList_; - } - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - @java.lang.Override - public int getCoopRewardListCount() { - return coopRewardList_.size(); - } - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward getCoopRewardList(int index) { - return coopRewardList_.get(index); - } - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.CoopRewardOuterClass.CoopRewardOrBuilder getCoopRewardListOrBuilder( - int index) { - return coopRewardList_.get(index); - } - - public static final int COOPCGLIST_FIELD_NUMBER = 6; - private java.util.List<emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg> coopCgList_; - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg> getCoopCgListList() { - return coopCgList_; - } - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.CoopCgOuterClass.CoopCgOrBuilder> - getCoopCgListOrBuilderList() { - return coopCgList_; - } - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - @java.lang.Override - public int getCoopCgListCount() { - return coopCgList_.size(); - } - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg getCoopCgList(int index) { - return coopCgList_.get(index); - } - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.CoopCgOuterClass.CoopCgOrBuilder getCoopCgListOrBuilder( - int index) { - return coopCgList_.get(index); - } - - public static final int TOTALENDCOUNT_FIELD_NUMBER = 7; - private int totalEndCount_; - /** - * <code>uint32 totalEndCount = 7;</code> - * @return The totalEndCount. - */ - @java.lang.Override - public int getTotalEndCount() { - return totalEndCount_; - } - - public static final int FINISHEDENDCOUNT_FIELD_NUMBER = 8; - private int finishedEndCount_; - /** - * <code>uint32 finishedEndCount = 8;</code> - * @return The finishedEndCount. - */ - @java.lang.Override - public int getFinishedEndCount() { - return finishedEndCount_; - } - - public static final int SEENENDINGMAP_FIELD_NUMBER = 9; - private static final class SeenEndingMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Integer>newDefaultInstance( - emu.grasscutter.net.proto.CoopChapterOuterClass.internal_static_CoopChapter_SeenEndingMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> seenEndingMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetSeenEndingMap() { - if (seenEndingMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SeenEndingMapDefaultEntryHolder.defaultEntry); - } - return seenEndingMap_; - } - - public int getSeenEndingMapCount() { - return internalGetSeenEndingMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> seenEndingMap = 9;</code> - */ - - @java.lang.Override - public boolean containsSeenEndingMap( - int key) { - - return internalGetSeenEndingMap().getMap().containsKey(key); - } - /** - * Use {@link #getSeenEndingMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getSeenEndingMap() { - return getSeenEndingMapMap(); - } - /** - * <code>map<uint32, uint32> seenEndingMap = 9;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getSeenEndingMapMap() { - return internalGetSeenEndingMap().getMap(); - } - /** - * <code>map<uint32, uint32> seenEndingMap = 9;</code> - */ - @java.lang.Override - - public int getSeenEndingMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSeenEndingMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> seenEndingMap = 9;</code> - */ - @java.lang.Override - - public int getSeenEndingMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSeenEndingMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int FINISHDIALOGLIST_FIELD_NUMBER = 10; - private com.google.protobuf.Internal.IntList finishDialogList_; - /** - * <code>repeated uint32 finishDialogList = 10;</code> - * @return A list containing the finishDialogList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getFinishDialogListList() { - return finishDialogList_; - } - /** - * <code>repeated uint32 finishDialogList = 10;</code> - * @return The count of finishDialogList. - */ - public int getFinishDialogListCount() { - return finishDialogList_.size(); - } - /** - * <code>repeated uint32 finishDialogList = 10;</code> - * @param index The index of the element to return. - * @return The finishDialogList at the given index. - */ - public int getFinishDialogList(int index) { - return finishDialogList_.getInt(index); - } - private int finishDialogListMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (id_ != 0) { - output.writeUInt32(1, id_); - } - if (state_ != emu.grasscutter.net.proto.CoopChapterStateOuterClass.CoopChapterState.Close.getNumber()) { - output.writeEnum(2, state_); - } - if (getLockReasonListList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(lockReasonListMemoizedSerializedSize); - } - for (int i = 0; i < lockReasonList_.size(); i++) { - output.writeUInt32NoTag(lockReasonList_.getInt(i)); - } - for (int i = 0; i < coopPointList_.size(); i++) { - output.writeMessage(4, coopPointList_.get(i)); - } - for (int i = 0; i < coopRewardList_.size(); i++) { - output.writeMessage(5, coopRewardList_.get(i)); - } - for (int i = 0; i < coopCgList_.size(); i++) { - output.writeMessage(6, coopCgList_.get(i)); - } - if (totalEndCount_ != 0) { - output.writeUInt32(7, totalEndCount_); - } - if (finishedEndCount_ != 0) { - output.writeUInt32(8, finishedEndCount_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetSeenEndingMap(), - SeenEndingMapDefaultEntryHolder.defaultEntry, - 9); - if (getFinishDialogListList().size() > 0) { - output.writeUInt32NoTag(82); - output.writeUInt32NoTag(finishDialogListMemoizedSerializedSize); - } - for (int i = 0; i < finishDialogList_.size(); i++) { - output.writeUInt32NoTag(finishDialogList_.getInt(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (id_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, id_); - } - if (state_ != emu.grasscutter.net.proto.CoopChapterStateOuterClass.CoopChapterState.Close.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); - } - { - int dataSize = 0; - for (int i = 0; i < lockReasonList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(lockReasonList_.getInt(i)); - } - size += dataSize; - if (!getLockReasonListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - lockReasonListMemoizedSerializedSize = dataSize; - } - for (int i = 0; i < coopPointList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, coopPointList_.get(i)); - } - for (int i = 0; i < coopRewardList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, coopRewardList_.get(i)); - } - for (int i = 0; i < coopCgList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, coopCgList_.get(i)); - } - if (totalEndCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(7, totalEndCount_); - } - if (finishedEndCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(8, finishedEndCount_); - } - for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry - : internalGetSeenEndingMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - seenEndingMap__ = SeenEndingMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, seenEndingMap__); - } - { - int dataSize = 0; - for (int i = 0; i < finishDialogList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(finishDialogList_.getInt(i)); - } - size += dataSize; - if (!getFinishDialogListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - finishDialogListMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter other = (emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter) obj; - - if (getId() - != other.getId()) return false; - if (state_ != other.state_) return false; - if (!getLockReasonListList() - .equals(other.getLockReasonListList())) return false; - if (!getCoopPointListList() - .equals(other.getCoopPointListList())) return false; - if (!getCoopRewardListList() - .equals(other.getCoopRewardListList())) return false; - if (!getCoopCgListList() - .equals(other.getCoopCgListList())) return false; - if (getTotalEndCount() - != other.getTotalEndCount()) return false; - if (getFinishedEndCount() - != other.getFinishedEndCount()) return false; - if (!internalGetSeenEndingMap().equals( - other.internalGetSeenEndingMap())) return false; - if (!getFinishDialogListList() - .equals(other.getFinishDialogListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - if (getLockReasonListCount() > 0) { - hash = (37 * hash) + LOCKREASONLIST_FIELD_NUMBER; - hash = (53 * hash) + getLockReasonListList().hashCode(); - } - if (getCoopPointListCount() > 0) { - hash = (37 * hash) + COOPPOINTLIST_FIELD_NUMBER; - hash = (53 * hash) + getCoopPointListList().hashCode(); - } - if (getCoopRewardListCount() > 0) { - hash = (37 * hash) + COOPREWARDLIST_FIELD_NUMBER; - hash = (53 * hash) + getCoopRewardListList().hashCode(); - } - if (getCoopCgListCount() > 0) { - hash = (37 * hash) + COOPCGLIST_FIELD_NUMBER; - hash = (53 * hash) + getCoopCgListList().hashCode(); - } - hash = (37 * hash) + TOTALENDCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getTotalEndCount(); - hash = (37 * hash) + FINISHEDENDCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getFinishedEndCount(); - if (!internalGetSeenEndingMap().getMap().isEmpty()) { - hash = (37 * hash) + SEENENDINGMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetSeenEndingMap().hashCode(); - } - if (getFinishDialogListCount() > 0) { - hash = (37 * hash) + FINISHDIALOGLIST_FIELD_NUMBER; - hash = (53 * hash) + getFinishDialogListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CoopChapter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:CoopChapter) - emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CoopChapterOuterClass.internal_static_CoopChapter_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 9: - return internalGetSeenEndingMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 9: - return internalGetMutableSeenEndingMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CoopChapterOuterClass.internal_static_CoopChapter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.class, emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getCoopPointListFieldBuilder(); - getCoopRewardListFieldBuilder(); - getCoopCgListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = 0; - - state_ = 0; - - lockReasonList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - if (coopPointListBuilder_ == null) { - coopPointList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - coopPointListBuilder_.clear(); - } - if (coopRewardListBuilder_ == null) { - coopRewardList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - coopRewardListBuilder_.clear(); - } - if (coopCgListBuilder_ == null) { - coopCgList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - coopCgListBuilder_.clear(); - } - totalEndCount_ = 0; - - finishedEndCount_ = 0; - - internalGetMutableSeenEndingMap().clear(); - finishDialogList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000020); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.CoopChapterOuterClass.internal_static_CoopChapter_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter getDefaultInstanceForType() { - return emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter build() { - emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter buildPartial() { - emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter result = new emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter(this); - int from_bitField0_ = bitField0_; - result.id_ = id_; - result.state_ = state_; - if (((bitField0_ & 0x00000001) != 0)) { - lockReasonList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.lockReasonList_ = lockReasonList_; - if (coopPointListBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - coopPointList_ = java.util.Collections.unmodifiableList(coopPointList_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.coopPointList_ = coopPointList_; - } else { - result.coopPointList_ = coopPointListBuilder_.build(); - } - if (coopRewardListBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - coopRewardList_ = java.util.Collections.unmodifiableList(coopRewardList_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.coopRewardList_ = coopRewardList_; - } else { - result.coopRewardList_ = coopRewardListBuilder_.build(); - } - if (coopCgListBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - coopCgList_ = java.util.Collections.unmodifiableList(coopCgList_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.coopCgList_ = coopCgList_; - } else { - result.coopCgList_ = coopCgListBuilder_.build(); - } - result.totalEndCount_ = totalEndCount_; - result.finishedEndCount_ = finishedEndCount_; - result.seenEndingMap_ = internalGetSeenEndingMap(); - result.seenEndingMap_.makeImmutable(); - if (((bitField0_ & 0x00000020) != 0)) { - finishDialogList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.finishDialogList_ = finishDialogList_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter) { - return mergeFrom((emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter other) { - if (other == emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.getDefaultInstance()) return this; - if (other.getId() != 0) { - setId(other.getId()); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (!other.lockReasonList_.isEmpty()) { - if (lockReasonList_.isEmpty()) { - lockReasonList_ = other.lockReasonList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLockReasonListIsMutable(); - lockReasonList_.addAll(other.lockReasonList_); - } - onChanged(); - } - if (coopPointListBuilder_ == null) { - if (!other.coopPointList_.isEmpty()) { - if (coopPointList_.isEmpty()) { - coopPointList_ = other.coopPointList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureCoopPointListIsMutable(); - coopPointList_.addAll(other.coopPointList_); - } - onChanged(); - } - } else { - if (!other.coopPointList_.isEmpty()) { - if (coopPointListBuilder_.isEmpty()) { - coopPointListBuilder_.dispose(); - coopPointListBuilder_ = null; - coopPointList_ = other.coopPointList_; - bitField0_ = (bitField0_ & ~0x00000002); - coopPointListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCoopPointListFieldBuilder() : null; - } else { - coopPointListBuilder_.addAllMessages(other.coopPointList_); - } - } - } - if (coopRewardListBuilder_ == null) { - if (!other.coopRewardList_.isEmpty()) { - if (coopRewardList_.isEmpty()) { - coopRewardList_ = other.coopRewardList_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureCoopRewardListIsMutable(); - coopRewardList_.addAll(other.coopRewardList_); - } - onChanged(); - } - } else { - if (!other.coopRewardList_.isEmpty()) { - if (coopRewardListBuilder_.isEmpty()) { - coopRewardListBuilder_.dispose(); - coopRewardListBuilder_ = null; - coopRewardList_ = other.coopRewardList_; - bitField0_ = (bitField0_ & ~0x00000004); - coopRewardListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCoopRewardListFieldBuilder() : null; - } else { - coopRewardListBuilder_.addAllMessages(other.coopRewardList_); - } - } - } - if (coopCgListBuilder_ == null) { - if (!other.coopCgList_.isEmpty()) { - if (coopCgList_.isEmpty()) { - coopCgList_ = other.coopCgList_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureCoopCgListIsMutable(); - coopCgList_.addAll(other.coopCgList_); - } - onChanged(); - } - } else { - if (!other.coopCgList_.isEmpty()) { - if (coopCgListBuilder_.isEmpty()) { - coopCgListBuilder_.dispose(); - coopCgListBuilder_ = null; - coopCgList_ = other.coopCgList_; - bitField0_ = (bitField0_ & ~0x00000008); - coopCgListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCoopCgListFieldBuilder() : null; - } else { - coopCgListBuilder_.addAllMessages(other.coopCgList_); - } - } - } - if (other.getTotalEndCount() != 0) { - setTotalEndCount(other.getTotalEndCount()); - } - if (other.getFinishedEndCount() != 0) { - setFinishedEndCount(other.getFinishedEndCount()); - } - internalGetMutableSeenEndingMap().mergeFrom( - other.internalGetSeenEndingMap()); - if (!other.finishDialogList_.isEmpty()) { - if (finishDialogList_.isEmpty()) { - finishDialogList_ = other.finishDialogList_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureFinishDialogListIsMutable(); - finishDialogList_.addAll(other.finishDialogList_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int id_ ; - /** - * <code>uint32 id = 1;</code> - * @return The id. - */ - @java.lang.Override - public int getId() { - return id_; - } - /** - * <code>uint32 id = 1;</code> - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId(int value) { - - id_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 id = 1;</code> - * @return This builder for chaining. - */ - public Builder clearId() { - - id_ = 0; - onChanged(); - return this; - } - - private int state_ = 0; - /** - * <code>.CoopChapterState state = 2;</code> - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override public int getStateValue() { - return state_; - } - /** - * <code>.CoopChapterState state = 2;</code> - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * <code>.CoopChapterState state = 2;</code> - * @return The state. - */ - @java.lang.Override - public emu.grasscutter.net.proto.CoopChapterStateOuterClass.CoopChapterState getState() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.CoopChapterStateOuterClass.CoopChapterState result = emu.grasscutter.net.proto.CoopChapterStateOuterClass.CoopChapterState.valueOf(state_); - return result == null ? emu.grasscutter.net.proto.CoopChapterStateOuterClass.CoopChapterState.UNRECOGNIZED : result; - } - /** - * <code>.CoopChapterState state = 2;</code> - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(emu.grasscutter.net.proto.CoopChapterStateOuterClass.CoopChapterState value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.CoopChapterState state = 2;</code> - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList lockReasonList_ = emptyIntList(); - private void ensureLockReasonListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - lockReasonList_ = mutableCopy(lockReasonList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 lockReasonList = 3;</code> - * @return A list containing the lockReasonList. - */ - public java.util.List<java.lang.Integer> - getLockReasonListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(lockReasonList_) : lockReasonList_; - } - /** - * <code>repeated uint32 lockReasonList = 3;</code> - * @return The count of lockReasonList. - */ - public int getLockReasonListCount() { - return lockReasonList_.size(); - } - /** - * <code>repeated uint32 lockReasonList = 3;</code> - * @param index The index of the element to return. - * @return The lockReasonList at the given index. - */ - public int getLockReasonList(int index) { - return lockReasonList_.getInt(index); - } - /** - * <code>repeated uint32 lockReasonList = 3;</code> - * @param index The index to set the value at. - * @param value The lockReasonList to set. - * @return This builder for chaining. - */ - public Builder setLockReasonList( - int index, int value) { - ensureLockReasonListIsMutable(); - lockReasonList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 lockReasonList = 3;</code> - * @param value The lockReasonList to add. - * @return This builder for chaining. - */ - public Builder addLockReasonList(int value) { - ensureLockReasonListIsMutable(); - lockReasonList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 lockReasonList = 3;</code> - * @param values The lockReasonList to add. - * @return This builder for chaining. - */ - public Builder addAllLockReasonList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureLockReasonListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, lockReasonList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 lockReasonList = 3;</code> - * @return This builder for chaining. - */ - public Builder clearLockReasonList() { - lockReasonList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint> coopPointList_ = - java.util.Collections.emptyList(); - private void ensureCoopPointListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - coopPointList_ = new java.util.ArrayList<emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint>(coopPointList_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint, emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.Builder, emu.grasscutter.net.proto.CoopPointOuterClass.CoopPointOrBuilder> coopPointListBuilder_; - - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - public java.util.List<emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint> getCoopPointListList() { - if (coopPointListBuilder_ == null) { - return java.util.Collections.unmodifiableList(coopPointList_); - } else { - return coopPointListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - public int getCoopPointListCount() { - if (coopPointListBuilder_ == null) { - return coopPointList_.size(); - } else { - return coopPointListBuilder_.getCount(); - } - } - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - public emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint getCoopPointList(int index) { - if (coopPointListBuilder_ == null) { - return coopPointList_.get(index); - } else { - return coopPointListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - public Builder setCoopPointList( - int index, emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint value) { - if (coopPointListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoopPointListIsMutable(); - coopPointList_.set(index, value); - onChanged(); - } else { - coopPointListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - public Builder setCoopPointList( - int index, emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.Builder builderForValue) { - if (coopPointListBuilder_ == null) { - ensureCoopPointListIsMutable(); - coopPointList_.set(index, builderForValue.build()); - onChanged(); - } else { - coopPointListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - public Builder addCoopPointList(emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint value) { - if (coopPointListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoopPointListIsMutable(); - coopPointList_.add(value); - onChanged(); - } else { - coopPointListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - public Builder addCoopPointList( - int index, emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint value) { - if (coopPointListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoopPointListIsMutable(); - coopPointList_.add(index, value); - onChanged(); - } else { - coopPointListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - public Builder addCoopPointList( - emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.Builder builderForValue) { - if (coopPointListBuilder_ == null) { - ensureCoopPointListIsMutable(); - coopPointList_.add(builderForValue.build()); - onChanged(); - } else { - coopPointListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - public Builder addCoopPointList( - int index, emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.Builder builderForValue) { - if (coopPointListBuilder_ == null) { - ensureCoopPointListIsMutable(); - coopPointList_.add(index, builderForValue.build()); - onChanged(); - } else { - coopPointListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - public Builder addAllCoopPointList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint> values) { - if (coopPointListBuilder_ == null) { - ensureCoopPointListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, coopPointList_); - onChanged(); - } else { - coopPointListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - public Builder clearCoopPointList() { - if (coopPointListBuilder_ == null) { - coopPointList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - coopPointListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - public Builder removeCoopPointList(int index) { - if (coopPointListBuilder_ == null) { - ensureCoopPointListIsMutable(); - coopPointList_.remove(index); - onChanged(); - } else { - coopPointListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - public emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.Builder getCoopPointListBuilder( - int index) { - return getCoopPointListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - public emu.grasscutter.net.proto.CoopPointOuterClass.CoopPointOrBuilder getCoopPointListOrBuilder( - int index) { - if (coopPointListBuilder_ == null) { - return coopPointList_.get(index); } else { - return coopPointListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.CoopPointOuterClass.CoopPointOrBuilder> - getCoopPointListOrBuilderList() { - if (coopPointListBuilder_ != null) { - return coopPointListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(coopPointList_); - } - } - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - public emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.Builder addCoopPointListBuilder() { - return getCoopPointListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.getDefaultInstance()); - } - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - public emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.Builder addCoopPointListBuilder( - int index) { - return getCoopPointListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.getDefaultInstance()); - } - /** - * <code>repeated .CoopPoint coopPointList = 4;</code> - */ - public java.util.List<emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.Builder> - getCoopPointListBuilderList() { - return getCoopPointListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint, emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.Builder, emu.grasscutter.net.proto.CoopPointOuterClass.CoopPointOrBuilder> - getCoopPointListFieldBuilder() { - if (coopPointListBuilder_ == null) { - coopPointListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint, emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.Builder, emu.grasscutter.net.proto.CoopPointOuterClass.CoopPointOrBuilder>( - coopPointList_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - coopPointList_ = null; - } - return coopPointListBuilder_; - } - - private java.util.List<emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward> coopRewardList_ = - java.util.Collections.emptyList(); - private void ensureCoopRewardListIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - coopRewardList_ = new java.util.ArrayList<emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward>(coopRewardList_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward, emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward.Builder, emu.grasscutter.net.proto.CoopRewardOuterClass.CoopRewardOrBuilder> coopRewardListBuilder_; - - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - public java.util.List<emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward> getCoopRewardListList() { - if (coopRewardListBuilder_ == null) { - return java.util.Collections.unmodifiableList(coopRewardList_); - } else { - return coopRewardListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - public int getCoopRewardListCount() { - if (coopRewardListBuilder_ == null) { - return coopRewardList_.size(); - } else { - return coopRewardListBuilder_.getCount(); - } - } - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - public emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward getCoopRewardList(int index) { - if (coopRewardListBuilder_ == null) { - return coopRewardList_.get(index); - } else { - return coopRewardListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - public Builder setCoopRewardList( - int index, emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward value) { - if (coopRewardListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoopRewardListIsMutable(); - coopRewardList_.set(index, value); - onChanged(); - } else { - coopRewardListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - public Builder setCoopRewardList( - int index, emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward.Builder builderForValue) { - if (coopRewardListBuilder_ == null) { - ensureCoopRewardListIsMutable(); - coopRewardList_.set(index, builderForValue.build()); - onChanged(); - } else { - coopRewardListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - public Builder addCoopRewardList(emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward value) { - if (coopRewardListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoopRewardListIsMutable(); - coopRewardList_.add(value); - onChanged(); - } else { - coopRewardListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - public Builder addCoopRewardList( - int index, emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward value) { - if (coopRewardListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoopRewardListIsMutable(); - coopRewardList_.add(index, value); - onChanged(); - } else { - coopRewardListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - public Builder addCoopRewardList( - emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward.Builder builderForValue) { - if (coopRewardListBuilder_ == null) { - ensureCoopRewardListIsMutable(); - coopRewardList_.add(builderForValue.build()); - onChanged(); - } else { - coopRewardListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - public Builder addCoopRewardList( - int index, emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward.Builder builderForValue) { - if (coopRewardListBuilder_ == null) { - ensureCoopRewardListIsMutable(); - coopRewardList_.add(index, builderForValue.build()); - onChanged(); - } else { - coopRewardListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - public Builder addAllCoopRewardList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward> values) { - if (coopRewardListBuilder_ == null) { - ensureCoopRewardListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, coopRewardList_); - onChanged(); - } else { - coopRewardListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - public Builder clearCoopRewardList() { - if (coopRewardListBuilder_ == null) { - coopRewardList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - coopRewardListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - public Builder removeCoopRewardList(int index) { - if (coopRewardListBuilder_ == null) { - ensureCoopRewardListIsMutable(); - coopRewardList_.remove(index); - onChanged(); - } else { - coopRewardListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - public emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward.Builder getCoopRewardListBuilder( - int index) { - return getCoopRewardListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - public emu.grasscutter.net.proto.CoopRewardOuterClass.CoopRewardOrBuilder getCoopRewardListOrBuilder( - int index) { - if (coopRewardListBuilder_ == null) { - return coopRewardList_.get(index); } else { - return coopRewardListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.CoopRewardOuterClass.CoopRewardOrBuilder> - getCoopRewardListOrBuilderList() { - if (coopRewardListBuilder_ != null) { - return coopRewardListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(coopRewardList_); - } - } - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - public emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward.Builder addCoopRewardListBuilder() { - return getCoopRewardListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward.getDefaultInstance()); - } - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - public emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward.Builder addCoopRewardListBuilder( - int index) { - return getCoopRewardListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward.getDefaultInstance()); - } - /** - * <code>repeated .CoopReward coopRewardList = 5;</code> - */ - public java.util.List<emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward.Builder> - getCoopRewardListBuilderList() { - return getCoopRewardListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward, emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward.Builder, emu.grasscutter.net.proto.CoopRewardOuterClass.CoopRewardOrBuilder> - getCoopRewardListFieldBuilder() { - if (coopRewardListBuilder_ == null) { - coopRewardListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward, emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward.Builder, emu.grasscutter.net.proto.CoopRewardOuterClass.CoopRewardOrBuilder>( - coopRewardList_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - coopRewardList_ = null; - } - return coopRewardListBuilder_; - } - - private java.util.List<emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg> coopCgList_ = - java.util.Collections.emptyList(); - private void ensureCoopCgListIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - coopCgList_ = new java.util.ArrayList<emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg>(coopCgList_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg, emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg.Builder, emu.grasscutter.net.proto.CoopCgOuterClass.CoopCgOrBuilder> coopCgListBuilder_; - - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - public java.util.List<emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg> getCoopCgListList() { - if (coopCgListBuilder_ == null) { - return java.util.Collections.unmodifiableList(coopCgList_); - } else { - return coopCgListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - public int getCoopCgListCount() { - if (coopCgListBuilder_ == null) { - return coopCgList_.size(); - } else { - return coopCgListBuilder_.getCount(); - } - } - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - public emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg getCoopCgList(int index) { - if (coopCgListBuilder_ == null) { - return coopCgList_.get(index); - } else { - return coopCgListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - public Builder setCoopCgList( - int index, emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg value) { - if (coopCgListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoopCgListIsMutable(); - coopCgList_.set(index, value); - onChanged(); - } else { - coopCgListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - public Builder setCoopCgList( - int index, emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg.Builder builderForValue) { - if (coopCgListBuilder_ == null) { - ensureCoopCgListIsMutable(); - coopCgList_.set(index, builderForValue.build()); - onChanged(); - } else { - coopCgListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - public Builder addCoopCgList(emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg value) { - if (coopCgListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoopCgListIsMutable(); - coopCgList_.add(value); - onChanged(); - } else { - coopCgListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - public Builder addCoopCgList( - int index, emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg value) { - if (coopCgListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoopCgListIsMutable(); - coopCgList_.add(index, value); - onChanged(); - } else { - coopCgListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - public Builder addCoopCgList( - emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg.Builder builderForValue) { - if (coopCgListBuilder_ == null) { - ensureCoopCgListIsMutable(); - coopCgList_.add(builderForValue.build()); - onChanged(); - } else { - coopCgListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - public Builder addCoopCgList( - int index, emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg.Builder builderForValue) { - if (coopCgListBuilder_ == null) { - ensureCoopCgListIsMutable(); - coopCgList_.add(index, builderForValue.build()); - onChanged(); - } else { - coopCgListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - public Builder addAllCoopCgList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg> values) { - if (coopCgListBuilder_ == null) { - ensureCoopCgListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, coopCgList_); - onChanged(); - } else { - coopCgListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - public Builder clearCoopCgList() { - if (coopCgListBuilder_ == null) { - coopCgList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - coopCgListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - public Builder removeCoopCgList(int index) { - if (coopCgListBuilder_ == null) { - ensureCoopCgListIsMutable(); - coopCgList_.remove(index); - onChanged(); - } else { - coopCgListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - public emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg.Builder getCoopCgListBuilder( - int index) { - return getCoopCgListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - public emu.grasscutter.net.proto.CoopCgOuterClass.CoopCgOrBuilder getCoopCgListOrBuilder( - int index) { - if (coopCgListBuilder_ == null) { - return coopCgList_.get(index); } else { - return coopCgListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.CoopCgOuterClass.CoopCgOrBuilder> - getCoopCgListOrBuilderList() { - if (coopCgListBuilder_ != null) { - return coopCgListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(coopCgList_); - } - } - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - public emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg.Builder addCoopCgListBuilder() { - return getCoopCgListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg.getDefaultInstance()); - } - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - public emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg.Builder addCoopCgListBuilder( - int index) { - return getCoopCgListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg.getDefaultInstance()); - } - /** - * <code>repeated .CoopCg coopCgList = 6;</code> - */ - public java.util.List<emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg.Builder> - getCoopCgListBuilderList() { - return getCoopCgListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg, emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg.Builder, emu.grasscutter.net.proto.CoopCgOuterClass.CoopCgOrBuilder> - getCoopCgListFieldBuilder() { - if (coopCgListBuilder_ == null) { - coopCgListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg, emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg.Builder, emu.grasscutter.net.proto.CoopCgOuterClass.CoopCgOrBuilder>( - coopCgList_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - coopCgList_ = null; - } - return coopCgListBuilder_; - } - - private int totalEndCount_ ; - /** - * <code>uint32 totalEndCount = 7;</code> - * @return The totalEndCount. - */ - @java.lang.Override - public int getTotalEndCount() { - return totalEndCount_; - } - /** - * <code>uint32 totalEndCount = 7;</code> - * @param value The totalEndCount to set. - * @return This builder for chaining. - */ - public Builder setTotalEndCount(int value) { - - totalEndCount_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 totalEndCount = 7;</code> - * @return This builder for chaining. - */ - public Builder clearTotalEndCount() { - - totalEndCount_ = 0; - onChanged(); - return this; - } - - private int finishedEndCount_ ; - /** - * <code>uint32 finishedEndCount = 8;</code> - * @return The finishedEndCount. - */ - @java.lang.Override - public int getFinishedEndCount() { - return finishedEndCount_; - } - /** - * <code>uint32 finishedEndCount = 8;</code> - * @param value The finishedEndCount to set. - * @return This builder for chaining. - */ - public Builder setFinishedEndCount(int value) { - - finishedEndCount_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 finishedEndCount = 8;</code> - * @return This builder for chaining. - */ - public Builder clearFinishedEndCount() { - - finishedEndCount_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> seenEndingMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetSeenEndingMap() { - if (seenEndingMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SeenEndingMapDefaultEntryHolder.defaultEntry); - } - return seenEndingMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetMutableSeenEndingMap() { - onChanged();; - if (seenEndingMap_ == null) { - seenEndingMap_ = com.google.protobuf.MapField.newMapField( - SeenEndingMapDefaultEntryHolder.defaultEntry); - } - if (!seenEndingMap_.isMutable()) { - seenEndingMap_ = seenEndingMap_.copy(); - } - return seenEndingMap_; - } - - public int getSeenEndingMapCount() { - return internalGetSeenEndingMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> seenEndingMap = 9;</code> - */ - - @java.lang.Override - public boolean containsSeenEndingMap( - int key) { - - return internalGetSeenEndingMap().getMap().containsKey(key); - } - /** - * Use {@link #getSeenEndingMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getSeenEndingMap() { - return getSeenEndingMapMap(); - } - /** - * <code>map<uint32, uint32> seenEndingMap = 9;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getSeenEndingMapMap() { - return internalGetSeenEndingMap().getMap(); - } - /** - * <code>map<uint32, uint32> seenEndingMap = 9;</code> - */ - @java.lang.Override - - public int getSeenEndingMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSeenEndingMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> seenEndingMap = 9;</code> - */ - @java.lang.Override - - public int getSeenEndingMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSeenEndingMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearSeenEndingMap() { - internalGetMutableSeenEndingMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, uint32> seenEndingMap = 9;</code> - */ - - public Builder removeSeenEndingMap( - int key) { - - internalGetMutableSeenEndingMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> - getMutableSeenEndingMap() { - return internalGetMutableSeenEndingMap().getMutableMap(); - } - /** - * <code>map<uint32, uint32> seenEndingMap = 9;</code> - */ - public Builder putSeenEndingMap( - int key, - int value) { - - - internalGetMutableSeenEndingMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, uint32> seenEndingMap = 9;</code> - */ - - public Builder putAllSeenEndingMap( - java.util.Map<java.lang.Integer, java.lang.Integer> values) { - internalGetMutableSeenEndingMap().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.Internal.IntList finishDialogList_ = emptyIntList(); - private void ensureFinishDialogListIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - finishDialogList_ = mutableCopy(finishDialogList_); - bitField0_ |= 0x00000020; - } - } - /** - * <code>repeated uint32 finishDialogList = 10;</code> - * @return A list containing the finishDialogList. - */ - public java.util.List<java.lang.Integer> - getFinishDialogListList() { - return ((bitField0_ & 0x00000020) != 0) ? - java.util.Collections.unmodifiableList(finishDialogList_) : finishDialogList_; - } - /** - * <code>repeated uint32 finishDialogList = 10;</code> - * @return The count of finishDialogList. - */ - public int getFinishDialogListCount() { - return finishDialogList_.size(); - } - /** - * <code>repeated uint32 finishDialogList = 10;</code> - * @param index The index of the element to return. - * @return The finishDialogList at the given index. - */ - public int getFinishDialogList(int index) { - return finishDialogList_.getInt(index); - } - /** - * <code>repeated uint32 finishDialogList = 10;</code> - * @param index The index to set the value at. - * @param value The finishDialogList to set. - * @return This builder for chaining. - */ - public Builder setFinishDialogList( - int index, int value) { - ensureFinishDialogListIsMutable(); - finishDialogList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 finishDialogList = 10;</code> - * @param value The finishDialogList to add. - * @return This builder for chaining. - */ - public Builder addFinishDialogList(int value) { - ensureFinishDialogListIsMutable(); - finishDialogList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 finishDialogList = 10;</code> - * @param values The finishDialogList to add. - * @return This builder for chaining. - */ - public Builder addAllFinishDialogList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureFinishDialogListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, finishDialogList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 finishDialogList = 10;</code> - * @return This builder for chaining. - */ - public Builder clearFinishDialogList() { - finishDialogList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CoopChapter) - } - - // @@protoc_insertion_point(class_scope:CoopChapter) - private static final emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter(); - } - - public static emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<CoopChapter> - PARSER = new com.google.protobuf.AbstractParser<CoopChapter>() { - @java.lang.Override - public CoopChapter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CoopChapter(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<CoopChapter> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<CoopChapter> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CoopChapter_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CoopChapter_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CoopChapter_SeenEndingMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CoopChapter_SeenEndingMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\021CoopChapter.proto\032\014CoopCg.proto\032\026CoopC" + - "hapterState.proto\032\017CoopPoint.proto\032\020Coop" + - "Reward.proto\"\361\002\n\013CoopChapter\022\n\n\002id\030\001 \001(\r" + - "\022 \n\005state\030\002 \001(\0162\021.CoopChapterState\022\026\n\016lo" + - "ckReasonList\030\003 \003(\r\022!\n\rcoopPointList\030\004 \003(" + - "\0132\n.CoopPoint\022#\n\016coopRewardList\030\005 \003(\0132\013." + - "CoopReward\022\033\n\ncoopCgList\030\006 \003(\0132\007.CoopCg\022" + - "\025\n\rtotalEndCount\030\007 \001(\r\022\030\n\020finishedEndCou" + - "nt\030\010 \001(\r\0226\n\rseenEndingMap\030\t \003(\0132\037.CoopCh" + - "apter.SeenEndingMapEntry\022\030\n\020finishDialog" + - "List\030\n \003(\r\0324\n\022SeenEndingMapEntry\022\013\n\003key\030" + - "\001 \001(\r\022\r\n\005value\030\002 \001(\r:\0028\001B\033\n\031emu.grasscut" + - "ter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.CoopCgOuterClass.getDescriptor(), - emu.grasscutter.net.proto.CoopChapterStateOuterClass.getDescriptor(), - emu.grasscutter.net.proto.CoopPointOuterClass.getDescriptor(), - emu.grasscutter.net.proto.CoopRewardOuterClass.getDescriptor(), - }); - internal_static_CoopChapter_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_CoopChapter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CoopChapter_descriptor, - new java.lang.String[] { "Id", "State", "LockReasonList", "CoopPointList", "CoopRewardList", "CoopCgList", "TotalEndCount", "FinishedEndCount", "SeenEndingMap", "FinishDialogList", }); - internal_static_CoopChapter_SeenEndingMapEntry_descriptor = - internal_static_CoopChapter_descriptor.getNestedTypes().get(0); - internal_static_CoopChapter_SeenEndingMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CoopChapter_SeenEndingMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - emu.grasscutter.net.proto.CoopCgOuterClass.getDescriptor(); - emu.grasscutter.net.proto.CoopChapterStateOuterClass.getDescriptor(); - emu.grasscutter.net.proto.CoopPointOuterClass.getDescriptor(); - emu.grasscutter.net.proto.CoopRewardOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/CoopChapterStateOuterClass.java b/src/main/java/emu/grasscutter/net/proto/CoopChapterStateOuterClass.java deleted file mode 100644 index a9a72f012..000000000 --- a/src/main/java/emu/grasscutter/net/proto/CoopChapterStateOuterClass.java +++ /dev/null @@ -1,164 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CoopChapterState.proto - -package emu.grasscutter.net.proto; - -public final class CoopChapterStateOuterClass { - private CoopChapterStateOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code CoopChapterState} - */ - public enum CoopChapterState - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>Close = 0;</code> - */ - Close(0), - /** - * <code>CondNotMeet = 1;</code> - */ - CondNotMeet(1), - /** - * <code>CondMeet = 2;</code> - */ - CondMeet(2), - /** - * <code>Accept = 3;</code> - */ - Accept(3), - UNRECOGNIZED(-1), - ; - - /** - * <code>Close = 0;</code> - */ - public static final int Close_VALUE = 0; - /** - * <code>CondNotMeet = 1;</code> - */ - public static final int CondNotMeet_VALUE = 1; - /** - * <code>CondMeet = 2;</code> - */ - public static final int CondMeet_VALUE = 2; - /** - * <code>Accept = 3;</code> - */ - public static final int Accept_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static CoopChapterState valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static CoopChapterState forNumber(int value) { - switch (value) { - case 0: return Close; - case 1: return CondNotMeet; - case 2: return CondMeet; - case 3: return Accept; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<CoopChapterState> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - CoopChapterState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<CoopChapterState>() { - public CoopChapterState findValueByNumber(int number) { - return CoopChapterState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.CoopChapterStateOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final CoopChapterState[] VALUES = values(); - - public static CoopChapterState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private CoopChapterState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:CoopChapterState) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026CoopChapterState.proto*H\n\020CoopChapterS" + - "tate\022\t\n\005Close\020\000\022\017\n\013CondNotMeet\020\001\022\014\n\010Cond" + - "Meet\020\002\022\n\n\006Accept\020\003B\033\n\031emu.grasscutter.ne" + - "t.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/CoopDataNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/CoopDataNotifyOuterClass.java deleted file mode 100644 index 4da62a010..000000000 --- a/src/main/java/emu/grasscutter/net/proto/CoopDataNotifyOuterClass.java +++ /dev/null @@ -1,1181 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CoopDataNotify.proto - -package emu.grasscutter.net.proto; - -public final class CoopDataNotifyOuterClass { - private CoopDataNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CoopDataNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:CoopDataNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - java.util.List<emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter> - getChapterListList(); - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter getChapterList(int index); - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - int getChapterListCount(); - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapterOrBuilder> - getChapterListOrBuilderList(); - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapterOrBuilder getChapterListOrBuilder( - int index); - - /** - * <code>bool isHaveProgress = 2;</code> - * @return The isHaveProgress. - */ - boolean getIsHaveProgress(); - - /** - * <code>uint32 curCoopPoint = 3;</code> - * @return The curCoopPoint. - */ - int getCurCoopPoint(); - - /** - * <code>repeated uint32 viewedChapterList = 4;</code> - * @return A list containing the viewedChapterList. - */ - java.util.List<java.lang.Integer> getViewedChapterListList(); - /** - * <code>repeated uint32 viewedChapterList = 4;</code> - * @return The count of viewedChapterList. - */ - int getViewedChapterListCount(); - /** - * <code>repeated uint32 viewedChapterList = 4;</code> - * @param index The index of the element to return. - * @return The viewedChapterList at the given index. - */ - int getViewedChapterList(int index); - } - /** - * Protobuf type {@code CoopDataNotify} - */ - public static final class CoopDataNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CoopDataNotify) - CoopDataNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use CoopDataNotify.newBuilder() to construct. - private CoopDataNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private CoopDataNotify() { - chapterList_ = java.util.Collections.emptyList(); - viewedChapterList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CoopDataNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CoopDataNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - chapterList_ = new java.util.ArrayList<emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter>(); - mutable_bitField0_ |= 0x00000001; - } - chapterList_.add( - input.readMessage(emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.parser(), extensionRegistry)); - break; - } - case 16: { - - isHaveProgress_ = input.readBool(); - break; - } - case 24: { - - curCoopPoint_ = input.readUInt32(); - break; - } - case 32: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - viewedChapterList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - viewedChapterList_.addInt(input.readUInt32()); - break; - } - case 34: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - viewedChapterList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - viewedChapterList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - chapterList_ = java.util.Collections.unmodifiableList(chapterList_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - viewedChapterList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CoopDataNotifyOuterClass.internal_static_CoopDataNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CoopDataNotifyOuterClass.internal_static_CoopDataNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify.class, emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify.Builder.class); - } - - public static final int CHAPTERLIST_FIELD_NUMBER = 1; - private java.util.List<emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter> chapterList_; - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter> getChapterListList() { - return chapterList_; - } - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapterOrBuilder> - getChapterListOrBuilderList() { - return chapterList_; - } - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - @java.lang.Override - public int getChapterListCount() { - return chapterList_.size(); - } - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter getChapterList(int index) { - return chapterList_.get(index); - } - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapterOrBuilder getChapterListOrBuilder( - int index) { - return chapterList_.get(index); - } - - public static final int ISHAVEPROGRESS_FIELD_NUMBER = 2; - private boolean isHaveProgress_; - /** - * <code>bool isHaveProgress = 2;</code> - * @return The isHaveProgress. - */ - @java.lang.Override - public boolean getIsHaveProgress() { - return isHaveProgress_; - } - - public static final int CURCOOPPOINT_FIELD_NUMBER = 3; - private int curCoopPoint_; - /** - * <code>uint32 curCoopPoint = 3;</code> - * @return The curCoopPoint. - */ - @java.lang.Override - public int getCurCoopPoint() { - return curCoopPoint_; - } - - public static final int VIEWEDCHAPTERLIST_FIELD_NUMBER = 4; - private com.google.protobuf.Internal.IntList viewedChapterList_; - /** - * <code>repeated uint32 viewedChapterList = 4;</code> - * @return A list containing the viewedChapterList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getViewedChapterListList() { - return viewedChapterList_; - } - /** - * <code>repeated uint32 viewedChapterList = 4;</code> - * @return The count of viewedChapterList. - */ - public int getViewedChapterListCount() { - return viewedChapterList_.size(); - } - /** - * <code>repeated uint32 viewedChapterList = 4;</code> - * @param index The index of the element to return. - * @return The viewedChapterList at the given index. - */ - public int getViewedChapterList(int index) { - return viewedChapterList_.getInt(index); - } - private int viewedChapterListMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - for (int i = 0; i < chapterList_.size(); i++) { - output.writeMessage(1, chapterList_.get(i)); - } - if (isHaveProgress_ != false) { - output.writeBool(2, isHaveProgress_); - } - if (curCoopPoint_ != 0) { - output.writeUInt32(3, curCoopPoint_); - } - if (getViewedChapterListList().size() > 0) { - output.writeUInt32NoTag(34); - output.writeUInt32NoTag(viewedChapterListMemoizedSerializedSize); - } - for (int i = 0; i < viewedChapterList_.size(); i++) { - output.writeUInt32NoTag(viewedChapterList_.getInt(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < chapterList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, chapterList_.get(i)); - } - if (isHaveProgress_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isHaveProgress_); - } - if (curCoopPoint_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, curCoopPoint_); - } - { - int dataSize = 0; - for (int i = 0; i < viewedChapterList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(viewedChapterList_.getInt(i)); - } - size += dataSize; - if (!getViewedChapterListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - viewedChapterListMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify other = (emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify) obj; - - if (!getChapterListList() - .equals(other.getChapterListList())) return false; - if (getIsHaveProgress() - != other.getIsHaveProgress()) return false; - if (getCurCoopPoint() - != other.getCurCoopPoint()) return false; - if (!getViewedChapterListList() - .equals(other.getViewedChapterListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getChapterListCount() > 0) { - hash = (37 * hash) + CHAPTERLIST_FIELD_NUMBER; - hash = (53 * hash) + getChapterListList().hashCode(); - } - hash = (37 * hash) + ISHAVEPROGRESS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsHaveProgress()); - hash = (37 * hash) + CURCOOPPOINT_FIELD_NUMBER; - hash = (53 * hash) + getCurCoopPoint(); - if (getViewedChapterListCount() > 0) { - hash = (37 * hash) + VIEWEDCHAPTERLIST_FIELD_NUMBER; - hash = (53 * hash) + getViewedChapterListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CoopDataNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:CoopDataNotify) - emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CoopDataNotifyOuterClass.internal_static_CoopDataNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CoopDataNotifyOuterClass.internal_static_CoopDataNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify.class, emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getChapterListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (chapterListBuilder_ == null) { - chapterList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - chapterListBuilder_.clear(); - } - isHaveProgress_ = false; - - curCoopPoint_ = 0; - - viewedChapterList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.CoopDataNotifyOuterClass.internal_static_CoopDataNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify build() { - emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify buildPartial() { - emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify result = new emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify(this); - int from_bitField0_ = bitField0_; - if (chapterListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - chapterList_ = java.util.Collections.unmodifiableList(chapterList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.chapterList_ = chapterList_; - } else { - result.chapterList_ = chapterListBuilder_.build(); - } - result.isHaveProgress_ = isHaveProgress_; - result.curCoopPoint_ = curCoopPoint_; - if (((bitField0_ & 0x00000002) != 0)) { - viewedChapterList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.viewedChapterList_ = viewedChapterList_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify) { - return mergeFrom((emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify other) { - if (other == emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify.getDefaultInstance()) return this; - if (chapterListBuilder_ == null) { - if (!other.chapterList_.isEmpty()) { - if (chapterList_.isEmpty()) { - chapterList_ = other.chapterList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureChapterListIsMutable(); - chapterList_.addAll(other.chapterList_); - } - onChanged(); - } - } else { - if (!other.chapterList_.isEmpty()) { - if (chapterListBuilder_.isEmpty()) { - chapterListBuilder_.dispose(); - chapterListBuilder_ = null; - chapterList_ = other.chapterList_; - bitField0_ = (bitField0_ & ~0x00000001); - chapterListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getChapterListFieldBuilder() : null; - } else { - chapterListBuilder_.addAllMessages(other.chapterList_); - } - } - } - if (other.getIsHaveProgress() != false) { - setIsHaveProgress(other.getIsHaveProgress()); - } - if (other.getCurCoopPoint() != 0) { - setCurCoopPoint(other.getCurCoopPoint()); - } - if (!other.viewedChapterList_.isEmpty()) { - if (viewedChapterList_.isEmpty()) { - viewedChapterList_ = other.viewedChapterList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureViewedChapterListIsMutable(); - viewedChapterList_.addAll(other.viewedChapterList_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List<emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter> chapterList_ = - java.util.Collections.emptyList(); - private void ensureChapterListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - chapterList_ = new java.util.ArrayList<emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter>(chapterList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter, emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.Builder, emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapterOrBuilder> chapterListBuilder_; - - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter> getChapterListList() { - if (chapterListBuilder_ == null) { - return java.util.Collections.unmodifiableList(chapterList_); - } else { - return chapterListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - public int getChapterListCount() { - if (chapterListBuilder_ == null) { - return chapterList_.size(); - } else { - return chapterListBuilder_.getCount(); - } - } - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - public emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter getChapterList(int index) { - if (chapterListBuilder_ == null) { - return chapterList_.get(index); - } else { - return chapterListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - public Builder setChapterList( - int index, emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter value) { - if (chapterListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChapterListIsMutable(); - chapterList_.set(index, value); - onChanged(); - } else { - chapterListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - public Builder setChapterList( - int index, emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.Builder builderForValue) { - if (chapterListBuilder_ == null) { - ensureChapterListIsMutable(); - chapterList_.set(index, builderForValue.build()); - onChanged(); - } else { - chapterListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - public Builder addChapterList(emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter value) { - if (chapterListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChapterListIsMutable(); - chapterList_.add(value); - onChanged(); - } else { - chapterListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - public Builder addChapterList( - int index, emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter value) { - if (chapterListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChapterListIsMutable(); - chapterList_.add(index, value); - onChanged(); - } else { - chapterListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - public Builder addChapterList( - emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.Builder builderForValue) { - if (chapterListBuilder_ == null) { - ensureChapterListIsMutable(); - chapterList_.add(builderForValue.build()); - onChanged(); - } else { - chapterListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - public Builder addChapterList( - int index, emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.Builder builderForValue) { - if (chapterListBuilder_ == null) { - ensureChapterListIsMutable(); - chapterList_.add(index, builderForValue.build()); - onChanged(); - } else { - chapterListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - public Builder addAllChapterList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter> values) { - if (chapterListBuilder_ == null) { - ensureChapterListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, chapterList_); - onChanged(); - } else { - chapterListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - public Builder clearChapterList() { - if (chapterListBuilder_ == null) { - chapterList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - chapterListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - public Builder removeChapterList(int index) { - if (chapterListBuilder_ == null) { - ensureChapterListIsMutable(); - chapterList_.remove(index); - onChanged(); - } else { - chapterListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - public emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.Builder getChapterListBuilder( - int index) { - return getChapterListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - public emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapterOrBuilder getChapterListOrBuilder( - int index) { - if (chapterListBuilder_ == null) { - return chapterList_.get(index); } else { - return chapterListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapterOrBuilder> - getChapterListOrBuilderList() { - if (chapterListBuilder_ != null) { - return chapterListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(chapterList_); - } - } - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - public emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.Builder addChapterListBuilder() { - return getChapterListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.getDefaultInstance()); - } - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - public emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.Builder addChapterListBuilder( - int index) { - return getChapterListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.getDefaultInstance()); - } - /** - * <code>repeated .CoopChapter chapterList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.Builder> - getChapterListBuilderList() { - return getChapterListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter, emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.Builder, emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapterOrBuilder> - getChapterListFieldBuilder() { - if (chapterListBuilder_ == null) { - chapterListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter, emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.Builder, emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapterOrBuilder>( - chapterList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - chapterList_ = null; - } - return chapterListBuilder_; - } - - private boolean isHaveProgress_ ; - /** - * <code>bool isHaveProgress = 2;</code> - * @return The isHaveProgress. - */ - @java.lang.Override - public boolean getIsHaveProgress() { - return isHaveProgress_; - } - /** - * <code>bool isHaveProgress = 2;</code> - * @param value The isHaveProgress to set. - * @return This builder for chaining. - */ - public Builder setIsHaveProgress(boolean value) { - - isHaveProgress_ = value; - onChanged(); - return this; - } - /** - * <code>bool isHaveProgress = 2;</code> - * @return This builder for chaining. - */ - public Builder clearIsHaveProgress() { - - isHaveProgress_ = false; - onChanged(); - return this; - } - - private int curCoopPoint_ ; - /** - * <code>uint32 curCoopPoint = 3;</code> - * @return The curCoopPoint. - */ - @java.lang.Override - public int getCurCoopPoint() { - return curCoopPoint_; - } - /** - * <code>uint32 curCoopPoint = 3;</code> - * @param value The curCoopPoint to set. - * @return This builder for chaining. - */ - public Builder setCurCoopPoint(int value) { - - curCoopPoint_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 curCoopPoint = 3;</code> - * @return This builder for chaining. - */ - public Builder clearCurCoopPoint() { - - curCoopPoint_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList viewedChapterList_ = emptyIntList(); - private void ensureViewedChapterListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - viewedChapterList_ = mutableCopy(viewedChapterList_); - bitField0_ |= 0x00000002; - } - } - /** - * <code>repeated uint32 viewedChapterList = 4;</code> - * @return A list containing the viewedChapterList. - */ - public java.util.List<java.lang.Integer> - getViewedChapterListList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(viewedChapterList_) : viewedChapterList_; - } - /** - * <code>repeated uint32 viewedChapterList = 4;</code> - * @return The count of viewedChapterList. - */ - public int getViewedChapterListCount() { - return viewedChapterList_.size(); - } - /** - * <code>repeated uint32 viewedChapterList = 4;</code> - * @param index The index of the element to return. - * @return The viewedChapterList at the given index. - */ - public int getViewedChapterList(int index) { - return viewedChapterList_.getInt(index); - } - /** - * <code>repeated uint32 viewedChapterList = 4;</code> - * @param index The index to set the value at. - * @param value The viewedChapterList to set. - * @return This builder for chaining. - */ - public Builder setViewedChapterList( - int index, int value) { - ensureViewedChapterListIsMutable(); - viewedChapterList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 viewedChapterList = 4;</code> - * @param value The viewedChapterList to add. - * @return This builder for chaining. - */ - public Builder addViewedChapterList(int value) { - ensureViewedChapterListIsMutable(); - viewedChapterList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 viewedChapterList = 4;</code> - * @param values The viewedChapterList to add. - * @return This builder for chaining. - */ - public Builder addAllViewedChapterList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureViewedChapterListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, viewedChapterList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 viewedChapterList = 4;</code> - * @return This builder for chaining. - */ - public Builder clearViewedChapterList() { - viewedChapterList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CoopDataNotify) - } - - // @@protoc_insertion_point(class_scope:CoopDataNotify) - private static final emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify(); - } - - public static emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<CoopDataNotify> - PARSER = new com.google.protobuf.AbstractParser<CoopDataNotify>() { - @java.lang.Override - public CoopDataNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CoopDataNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<CoopDataNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<CoopDataNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CoopDataNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CoopDataNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024CoopDataNotify.proto\032\021CoopChapter.prot" + - "o\"|\n\016CoopDataNotify\022!\n\013chapterList\030\001 \003(\013" + - "2\014.CoopChapter\022\026\n\016isHaveProgress\030\002 \001(\010\022\024" + - "\n\014curCoopPoint\030\003 \001(\r\022\031\n\021viewedChapterLis" + - "t\030\004 \003(\rB\033\n\031emu.grasscutter.net.protob\006pr" + - "oto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.CoopChapterOuterClass.getDescriptor(), - }); - internal_static_CoopDataNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_CoopDataNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CoopDataNotify_descriptor, - new java.lang.String[] { "ChapterList", "IsHaveProgress", "CurCoopPoint", "ViewedChapterList", }); - emu.grasscutter.net.proto.CoopChapterOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/CoopPointOuterClass.java b/src/main/java/emu/grasscutter/net/proto/CoopPointOuterClass.java deleted file mode 100644 index 4fae5e181..000000000 --- a/src/main/java/emu/grasscutter/net/proto/CoopPointOuterClass.java +++ /dev/null @@ -1,716 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CoopPoint.proto - -package emu.grasscutter.net.proto; - -public final class CoopPointOuterClass { - private CoopPointOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CoopPointOrBuilder extends - // @@protoc_insertion_point(interface_extends:CoopPoint) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 id = 1;</code> - * @return The id. - */ - int getId(); - - /** - * <code>.CoopPointState state = 2;</code> - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * <code>.CoopPointState state = 2;</code> - * @return The state. - */ - emu.grasscutter.net.proto.CoopPointStateOuterClass.CoopPointState getState(); - - /** - * <code>uint32 selfConfidence = 3;</code> - * @return The selfConfidence. - */ - int getSelfConfidence(); - } - /** - * Protobuf type {@code CoopPoint} - */ - public static final class CoopPoint extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CoopPoint) - CoopPointOrBuilder { - private static final long serialVersionUID = 0L; - // Use CoopPoint.newBuilder() to construct. - private CoopPoint(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private CoopPoint() { - state_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CoopPoint(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CoopPoint( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - id_ = input.readUInt32(); - break; - } - case 16: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 24: { - - selfConfidence_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CoopPointOuterClass.internal_static_CoopPoint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CoopPointOuterClass.internal_static_CoopPoint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.class, emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private int id_; - /** - * <code>uint32 id = 1;</code> - * @return The id. - */ - @java.lang.Override - public int getId() { - return id_; - } - - public static final int STATE_FIELD_NUMBER = 2; - private int state_; - /** - * <code>.CoopPointState state = 2;</code> - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override public int getStateValue() { - return state_; - } - /** - * <code>.CoopPointState state = 2;</code> - * @return The state. - */ - @java.lang.Override public emu.grasscutter.net.proto.CoopPointStateOuterClass.CoopPointState getState() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.CoopPointStateOuterClass.CoopPointState result = emu.grasscutter.net.proto.CoopPointStateOuterClass.CoopPointState.valueOf(state_); - return result == null ? emu.grasscutter.net.proto.CoopPointStateOuterClass.CoopPointState.UNRECOGNIZED : result; - } - - public static final int SELFCONFIDENCE_FIELD_NUMBER = 3; - private int selfConfidence_; - /** - * <code>uint32 selfConfidence = 3;</code> - * @return The selfConfidence. - */ - @java.lang.Override - public int getSelfConfidence() { - return selfConfidence_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (id_ != 0) { - output.writeUInt32(1, id_); - } - if (state_ != emu.grasscutter.net.proto.CoopPointStateOuterClass.CoopPointState.Unstarted.getNumber()) { - output.writeEnum(2, state_); - } - if (selfConfidence_ != 0) { - output.writeUInt32(3, selfConfidence_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (id_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, id_); - } - if (state_ != emu.grasscutter.net.proto.CoopPointStateOuterClass.CoopPointState.Unstarted.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); - } - if (selfConfidence_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, selfConfidence_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint other = (emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint) obj; - - if (getId() - != other.getId()) return false; - if (state_ != other.state_) return false; - if (getSelfConfidence() - != other.getSelfConfidence()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + SELFCONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + getSelfConfidence(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CoopPoint} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:CoopPoint) - emu.grasscutter.net.proto.CoopPointOuterClass.CoopPointOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CoopPointOuterClass.internal_static_CoopPoint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CoopPointOuterClass.internal_static_CoopPoint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.class, emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = 0; - - state_ = 0; - - selfConfidence_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.CoopPointOuterClass.internal_static_CoopPoint_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint getDefaultInstanceForType() { - return emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint build() { - emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint buildPartial() { - emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint result = new emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint(this); - result.id_ = id_; - result.state_ = state_; - result.selfConfidence_ = selfConfidence_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint) { - return mergeFrom((emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint other) { - if (other == emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.getDefaultInstance()) return this; - if (other.getId() != 0) { - setId(other.getId()); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (other.getSelfConfidence() != 0) { - setSelfConfidence(other.getSelfConfidence()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int id_ ; - /** - * <code>uint32 id = 1;</code> - * @return The id. - */ - @java.lang.Override - public int getId() { - return id_; - } - /** - * <code>uint32 id = 1;</code> - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId(int value) { - - id_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 id = 1;</code> - * @return This builder for chaining. - */ - public Builder clearId() { - - id_ = 0; - onChanged(); - return this; - } - - private int state_ = 0; - /** - * <code>.CoopPointState state = 2;</code> - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override public int getStateValue() { - return state_; - } - /** - * <code>.CoopPointState state = 2;</code> - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * <code>.CoopPointState state = 2;</code> - * @return The state. - */ - @java.lang.Override - public emu.grasscutter.net.proto.CoopPointStateOuterClass.CoopPointState getState() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.CoopPointStateOuterClass.CoopPointState result = emu.grasscutter.net.proto.CoopPointStateOuterClass.CoopPointState.valueOf(state_); - return result == null ? emu.grasscutter.net.proto.CoopPointStateOuterClass.CoopPointState.UNRECOGNIZED : result; - } - /** - * <code>.CoopPointState state = 2;</code> - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(emu.grasscutter.net.proto.CoopPointStateOuterClass.CoopPointState value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.CoopPointState state = 2;</code> - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private int selfConfidence_ ; - /** - * <code>uint32 selfConfidence = 3;</code> - * @return The selfConfidence. - */ - @java.lang.Override - public int getSelfConfidence() { - return selfConfidence_; - } - /** - * <code>uint32 selfConfidence = 3;</code> - * @param value The selfConfidence to set. - * @return This builder for chaining. - */ - public Builder setSelfConfidence(int value) { - - selfConfidence_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 selfConfidence = 3;</code> - * @return This builder for chaining. - */ - public Builder clearSelfConfidence() { - - selfConfidence_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CoopPoint) - } - - // @@protoc_insertion_point(class_scope:CoopPoint) - private static final emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint(); - } - - public static emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<CoopPoint> - PARSER = new com.google.protobuf.AbstractParser<CoopPoint>() { - @java.lang.Override - public CoopPoint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CoopPoint(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<CoopPoint> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<CoopPoint> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CoopPoint_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CoopPoint_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\017CoopPoint.proto\032\024CoopPointState.proto\"" + - "O\n\tCoopPoint\022\n\n\002id\030\001 \001(\r\022\036\n\005state\030\002 \001(\0162" + - "\017.CoopPointState\022\026\n\016selfConfidence\030\003 \001(\r" + - "B\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.CoopPointStateOuterClass.getDescriptor(), - }); - internal_static_CoopPoint_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_CoopPoint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CoopPoint_descriptor, - new java.lang.String[] { "Id", "State", "SelfConfidence", }); - emu.grasscutter.net.proto.CoopPointStateOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/CoopPointStateOuterClass.java b/src/main/java/emu/grasscutter/net/proto/CoopPointStateOuterClass.java deleted file mode 100644 index 16c60a466..000000000 --- a/src/main/java/emu/grasscutter/net/proto/CoopPointStateOuterClass.java +++ /dev/null @@ -1,154 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CoopPointState.proto - -package emu.grasscutter.net.proto; - -public final class CoopPointStateOuterClass { - private CoopPointStateOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code CoopPointState} - */ - public enum CoopPointState - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>Unstarted = 0;</code> - */ - Unstarted(0), - /** - * <code>Started = 1;</code> - */ - Started(1), - /** - * <code>Finished = 2;</code> - */ - Finished(2), - UNRECOGNIZED(-1), - ; - - /** - * <code>Unstarted = 0;</code> - */ - public static final int Unstarted_VALUE = 0; - /** - * <code>Started = 1;</code> - */ - public static final int Started_VALUE = 1; - /** - * <code>Finished = 2;</code> - */ - public static final int Finished_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static CoopPointState valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static CoopPointState forNumber(int value) { - switch (value) { - case 0: return Unstarted; - case 1: return Started; - case 2: return Finished; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<CoopPointState> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - CoopPointState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<CoopPointState>() { - public CoopPointState findValueByNumber(int number) { - return CoopPointState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.CoopPointStateOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final CoopPointState[] VALUES = values(); - - public static CoopPointState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private CoopPointState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:CoopPointState) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024CoopPointState.proto*:\n\016CoopPointState" + - "\022\r\n\tUnstarted\020\000\022\013\n\007Started\020\001\022\014\n\010Finished" + - "\020\002B\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/CoopRewardOuterClass.java b/src/main/java/emu/grasscutter/net/proto/CoopRewardOuterClass.java deleted file mode 100644 index 480cc09c8..000000000 --- a/src/main/java/emu/grasscutter/net/proto/CoopRewardOuterClass.java +++ /dev/null @@ -1,646 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CoopReward.proto - -package emu.grasscutter.net.proto; - -public final class CoopRewardOuterClass { - private CoopRewardOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CoopRewardOrBuilder extends - // @@protoc_insertion_point(interface_extends:CoopReward) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 id = 1;</code> - * @return The id. - */ - int getId(); - - /** - * <code>.CoopRewardState state = 2;</code> - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * <code>.CoopRewardState state = 2;</code> - * @return The state. - */ - emu.grasscutter.net.proto.CoopRewardStateOuterClass.CoopRewardState getState(); - } - /** - * Protobuf type {@code CoopReward} - */ - public static final class CoopReward extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CoopReward) - CoopRewardOrBuilder { - private static final long serialVersionUID = 0L; - // Use CoopReward.newBuilder() to construct. - private CoopReward(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private CoopReward() { - state_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CoopReward(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CoopReward( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - id_ = input.readUInt32(); - break; - } - case 16: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CoopRewardOuterClass.internal_static_CoopReward_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CoopRewardOuterClass.internal_static_CoopReward_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward.class, emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private int id_; - /** - * <code>uint32 id = 1;</code> - * @return The id. - */ - @java.lang.Override - public int getId() { - return id_; - } - - public static final int STATE_FIELD_NUMBER = 2; - private int state_; - /** - * <code>.CoopRewardState state = 2;</code> - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override public int getStateValue() { - return state_; - } - /** - * <code>.CoopRewardState state = 2;</code> - * @return The state. - */ - @java.lang.Override public emu.grasscutter.net.proto.CoopRewardStateOuterClass.CoopRewardState getState() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.CoopRewardStateOuterClass.CoopRewardState result = emu.grasscutter.net.proto.CoopRewardStateOuterClass.CoopRewardState.valueOf(state_); - return result == null ? emu.grasscutter.net.proto.CoopRewardStateOuterClass.CoopRewardState.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (id_ != 0) { - output.writeUInt32(1, id_); - } - if (state_ != emu.grasscutter.net.proto.CoopRewardStateOuterClass.CoopRewardState.Unlock.getNumber()) { - output.writeEnum(2, state_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (id_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, id_); - } - if (state_ != emu.grasscutter.net.proto.CoopRewardStateOuterClass.CoopRewardState.Unlock.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward other = (emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward) obj; - - if (getId() - != other.getId()) return false; - if (state_ != other.state_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CoopReward} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:CoopReward) - emu.grasscutter.net.proto.CoopRewardOuterClass.CoopRewardOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CoopRewardOuterClass.internal_static_CoopReward_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CoopRewardOuterClass.internal_static_CoopReward_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward.class, emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = 0; - - state_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.CoopRewardOuterClass.internal_static_CoopReward_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward getDefaultInstanceForType() { - return emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward build() { - emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward buildPartial() { - emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward result = new emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward(this); - result.id_ = id_; - result.state_ = state_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward) { - return mergeFrom((emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward other) { - if (other == emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward.getDefaultInstance()) return this; - if (other.getId() != 0) { - setId(other.getId()); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int id_ ; - /** - * <code>uint32 id = 1;</code> - * @return The id. - */ - @java.lang.Override - public int getId() { - return id_; - } - /** - * <code>uint32 id = 1;</code> - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId(int value) { - - id_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 id = 1;</code> - * @return This builder for chaining. - */ - public Builder clearId() { - - id_ = 0; - onChanged(); - return this; - } - - private int state_ = 0; - /** - * <code>.CoopRewardState state = 2;</code> - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override public int getStateValue() { - return state_; - } - /** - * <code>.CoopRewardState state = 2;</code> - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * <code>.CoopRewardState state = 2;</code> - * @return The state. - */ - @java.lang.Override - public emu.grasscutter.net.proto.CoopRewardStateOuterClass.CoopRewardState getState() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.CoopRewardStateOuterClass.CoopRewardState result = emu.grasscutter.net.proto.CoopRewardStateOuterClass.CoopRewardState.valueOf(state_); - return result == null ? emu.grasscutter.net.proto.CoopRewardStateOuterClass.CoopRewardState.UNRECOGNIZED : result; - } - /** - * <code>.CoopRewardState state = 2;</code> - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(emu.grasscutter.net.proto.CoopRewardStateOuterClass.CoopRewardState value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.CoopRewardState state = 2;</code> - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CoopReward) - } - - // @@protoc_insertion_point(class_scope:CoopReward) - private static final emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward(); - } - - public static emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<CoopReward> - PARSER = new com.google.protobuf.AbstractParser<CoopReward>() { - @java.lang.Override - public CoopReward parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CoopReward(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<CoopReward> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<CoopReward> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CoopReward_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CoopReward_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020CoopReward.proto\032\025CoopRewardState.prot" + - "o\"9\n\nCoopReward\022\n\n\002id\030\001 \001(\r\022\037\n\005state\030\002 \001" + - "(\0162\020.CoopRewardStateB\033\n\031emu.grasscutter." + - "net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.CoopRewardStateOuterClass.getDescriptor(), - }); - internal_static_CoopReward_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_CoopReward_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CoopReward_descriptor, - new java.lang.String[] { "Id", "State", }); - emu.grasscutter.net.proto.CoopRewardStateOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/CoopRewardStateOuterClass.java b/src/main/java/emu/grasscutter/net/proto/CoopRewardStateOuterClass.java deleted file mode 100644 index 567c86ed1..000000000 --- a/src/main/java/emu/grasscutter/net/proto/CoopRewardStateOuterClass.java +++ /dev/null @@ -1,154 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CoopRewardState.proto - -package emu.grasscutter.net.proto; - -public final class CoopRewardStateOuterClass { - private CoopRewardStateOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code CoopRewardState} - */ - public enum CoopRewardState - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>Unlock = 0;</code> - */ - Unlock(0), - /** - * <code>Lock = 1;</code> - */ - Lock(1), - /** - * <code>Taken = 2;</code> - */ - Taken(2), - UNRECOGNIZED(-1), - ; - - /** - * <code>Unlock = 0;</code> - */ - public static final int Unlock_VALUE = 0; - /** - * <code>Lock = 1;</code> - */ - public static final int Lock_VALUE = 1; - /** - * <code>Taken = 2;</code> - */ - public static final int Taken_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static CoopRewardState valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static CoopRewardState forNumber(int value) { - switch (value) { - case 0: return Unlock; - case 1: return Lock; - case 2: return Taken; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<CoopRewardState> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - CoopRewardState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<CoopRewardState>() { - public CoopRewardState findValueByNumber(int number) { - return CoopRewardState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.CoopRewardStateOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final CoopRewardState[] VALUES = values(); - - public static CoopRewardState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private CoopRewardState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:CoopRewardState) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025CoopRewardState.proto*2\n\017CoopRewardSta" + - "te\022\n\n\006Unlock\020\000\022\010\n\004Lock\020\001\022\t\n\005Taken\020\002B\033\n\031e" + - "mu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/CountDownDeleteOuterClass.java b/src/main/java/emu/grasscutter/net/proto/CountDownDeleteOuterClass.java deleted file mode 100644 index 3d0dd8b91..000000000 --- a/src/main/java/emu/grasscutter/net/proto/CountDownDeleteOuterClass.java +++ /dev/null @@ -1,465 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CountDownDelete.proto - -package emu.grasscutter.net.proto; - -public final class CountDownDeleteOuterClass { - private CountDownDeleteOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CountDownDeleteOrBuilder extends - // @@protoc_insertion_point(interface_extends:CountDownDelete) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code CountDownDelete} - */ - public static final class CountDownDelete extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CountDownDelete) - CountDownDeleteOrBuilder { - private static final long serialVersionUID = 0L; - // Use CountDownDelete.newBuilder() to construct. - private CountDownDelete(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private CountDownDelete() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CountDownDelete(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CountDownDelete( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CountDownDeleteOuterClass.internal_static_CountDownDelete_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CountDownDeleteOuterClass.internal_static_CountDownDelete_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete.class, emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete other = (emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CountDownDelete} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:CountDownDelete) - emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDeleteOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.CountDownDeleteOuterClass.internal_static_CountDownDelete_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.CountDownDeleteOuterClass.internal_static_CountDownDelete_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete.class, emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.CountDownDeleteOuterClass.internal_static_CountDownDelete_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete getDefaultInstanceForType() { - return emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete build() { - emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete buildPartial() { - emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete result = new emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete) { - return mergeFrom((emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete other) { - if (other == emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CountDownDelete) - } - - // @@protoc_insertion_point(class_scope:CountDownDelete) - private static final emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete(); - } - - public static emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<CountDownDelete> - PARSER = new com.google.protobuf.AbstractParser<CountDownDelete>() { - @java.lang.Override - public CountDownDelete parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CountDownDelete(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<CountDownDelete> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<CountDownDelete> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CountDownDelete_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CountDownDelete_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025CountDownDelete.proto\"\021\n\017CountDownDele" + - "teB\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_CountDownDelete_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_CountDownDelete_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CountDownDelete_descriptor, - new java.lang.String[] { }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/DateTimeDeleteOuterClass.java b/src/main/java/emu/grasscutter/net/proto/DateTimeDeleteOuterClass.java deleted file mode 100644 index 282dfbcd9..000000000 --- a/src/main/java/emu/grasscutter/net/proto/DateTimeDeleteOuterClass.java +++ /dev/null @@ -1,465 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: DateTimeDelete.proto - -package emu.grasscutter.net.proto; - -public final class DateTimeDeleteOuterClass { - private DateTimeDeleteOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DateTimeDeleteOrBuilder extends - // @@protoc_insertion_point(interface_extends:DateTimeDelete) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code DateTimeDelete} - */ - public static final class DateTimeDelete extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:DateTimeDelete) - DateTimeDeleteOrBuilder { - private static final long serialVersionUID = 0L; - // Use DateTimeDelete.newBuilder() to construct. - private DateTimeDelete(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private DateTimeDelete() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DateTimeDelete(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DateTimeDelete( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DateTimeDeleteOuterClass.internal_static_DateTimeDelete_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DateTimeDeleteOuterClass.internal_static_DateTimeDelete_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete.class, emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete other = (emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code DateTimeDelete} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:DateTimeDelete) - emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDeleteOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DateTimeDeleteOuterClass.internal_static_DateTimeDelete_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DateTimeDeleteOuterClass.internal_static_DateTimeDelete_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete.class, emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.DateTimeDeleteOuterClass.internal_static_DateTimeDelete_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete getDefaultInstanceForType() { - return emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete build() { - emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete buildPartial() { - emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete result = new emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete) { - return mergeFrom((emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete other) { - if (other == emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:DateTimeDelete) - } - - // @@protoc_insertion_point(class_scope:DateTimeDelete) - private static final emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete(); - } - - public static emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<DateTimeDelete> - PARSER = new com.google.protobuf.AbstractParser<DateTimeDelete>() { - @java.lang.Override - public DateTimeDelete parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DateTimeDelete(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<DateTimeDelete> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<DateTimeDelete> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_DateTimeDelete_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_DateTimeDelete_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024DateTimeDelete.proto\"\020\n\016DateTimeDelete" + - "B\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_DateTimeDelete_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_DateTimeDelete_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_DateTimeDelete_descriptor, - new java.lang.String[] { }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/DealAddFriendReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/DealAddFriendReqOuterClass.java deleted file mode 100644 index 4c3cc7f57..000000000 --- a/src/main/java/emu/grasscutter/net/proto/DealAddFriendReqOuterClass.java +++ /dev/null @@ -1,647 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: DealAddFriendReq.proto - -package emu.grasscutter.net.proto; - -public final class DealAddFriendReqOuterClass { - private DealAddFriendReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DealAddFriendReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:DealAddFriendReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - int getTargetUid(); - - /** - * <code>.DealAddFriendResultType dealAddFriendResult = 2;</code> - * @return The enum numeric value on the wire for dealAddFriendResult. - */ - int getDealAddFriendResultValue(); - /** - * <code>.DealAddFriendResultType dealAddFriendResult = 2;</code> - * @return The dealAddFriendResult. - */ - emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType getDealAddFriendResult(); - } - /** - * Protobuf type {@code DealAddFriendReq} - */ - public static final class DealAddFriendReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:DealAddFriendReq) - DealAddFriendReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use DealAddFriendReq.newBuilder() to construct. - private DealAddFriendReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private DealAddFriendReq() { - dealAddFriendResult_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DealAddFriendReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DealAddFriendReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - targetUid_ = input.readUInt32(); - break; - } - case 16: { - int rawValue = input.readEnum(); - - dealAddFriendResult_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DealAddFriendReqOuterClass.internal_static_DealAddFriendReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DealAddFriendReqOuterClass.internal_static_DealAddFriendReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq.class, emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq.Builder.class); - } - - public static final int TARGETUID_FIELD_NUMBER = 1; - private int targetUid_; - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - - public static final int DEALADDFRIENDRESULT_FIELD_NUMBER = 2; - private int dealAddFriendResult_; - /** - * <code>.DealAddFriendResultType dealAddFriendResult = 2;</code> - * @return The enum numeric value on the wire for dealAddFriendResult. - */ - @java.lang.Override public int getDealAddFriendResultValue() { - return dealAddFriendResult_; - } - /** - * <code>.DealAddFriendResultType dealAddFriendResult = 2;</code> - * @return The dealAddFriendResult. - */ - @java.lang.Override public emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType getDealAddFriendResult() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType result = emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType.valueOf(dealAddFriendResult_); - return result == null ? emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (targetUid_ != 0) { - output.writeUInt32(1, targetUid_); - } - if (dealAddFriendResult_ != emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType.DealAddFriendReject.getNumber()) { - output.writeEnum(2, dealAddFriendResult_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (targetUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, targetUid_); - } - if (dealAddFriendResult_ != emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType.DealAddFriendReject.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, dealAddFriendResult_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq other = (emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq) obj; - - if (getTargetUid() - != other.getTargetUid()) return false; - if (dealAddFriendResult_ != other.dealAddFriendResult_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TARGETUID_FIELD_NUMBER; - hash = (53 * hash) + getTargetUid(); - hash = (37 * hash) + DEALADDFRIENDRESULT_FIELD_NUMBER; - hash = (53 * hash) + dealAddFriendResult_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code DealAddFriendReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:DealAddFriendReq) - emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DealAddFriendReqOuterClass.internal_static_DealAddFriendReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DealAddFriendReqOuterClass.internal_static_DealAddFriendReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq.class, emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - targetUid_ = 0; - - dealAddFriendResult_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.DealAddFriendReqOuterClass.internal_static_DealAddFriendReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq build() { - emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq buildPartial() { - emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq result = new emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq(this); - result.targetUid_ = targetUid_; - result.dealAddFriendResult_ = dealAddFriendResult_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq) { - return mergeFrom((emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq other) { - if (other == emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq.getDefaultInstance()) return this; - if (other.getTargetUid() != 0) { - setTargetUid(other.getTargetUid()); - } - if (other.dealAddFriendResult_ != 0) { - setDealAddFriendResultValue(other.getDealAddFriendResultValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int targetUid_ ; - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - /** - * <code>uint32 targetUid = 1;</code> - * @param value The targetUid to set. - * @return This builder for chaining. - */ - public Builder setTargetUid(int value) { - - targetUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 targetUid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTargetUid() { - - targetUid_ = 0; - onChanged(); - return this; - } - - private int dealAddFriendResult_ = 0; - /** - * <code>.DealAddFriendResultType dealAddFriendResult = 2;</code> - * @return The enum numeric value on the wire for dealAddFriendResult. - */ - @java.lang.Override public int getDealAddFriendResultValue() { - return dealAddFriendResult_; - } - /** - * <code>.DealAddFriendResultType dealAddFriendResult = 2;</code> - * @param value The enum numeric value on the wire for dealAddFriendResult to set. - * @return This builder for chaining. - */ - public Builder setDealAddFriendResultValue(int value) { - - dealAddFriendResult_ = value; - onChanged(); - return this; - } - /** - * <code>.DealAddFriendResultType dealAddFriendResult = 2;</code> - * @return The dealAddFriendResult. - */ - @java.lang.Override - public emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType getDealAddFriendResult() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType result = emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType.valueOf(dealAddFriendResult_); - return result == null ? emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType.UNRECOGNIZED : result; - } - /** - * <code>.DealAddFriendResultType dealAddFriendResult = 2;</code> - * @param value The dealAddFriendResult to set. - * @return This builder for chaining. - */ - public Builder setDealAddFriendResult(emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType value) { - if (value == null) { - throw new NullPointerException(); - } - - dealAddFriendResult_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.DealAddFriendResultType dealAddFriendResult = 2;</code> - * @return This builder for chaining. - */ - public Builder clearDealAddFriendResult() { - - dealAddFriendResult_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:DealAddFriendReq) - } - - // @@protoc_insertion_point(class_scope:DealAddFriendReq) - private static final emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq(); - } - - public static emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<DealAddFriendReq> - PARSER = new com.google.protobuf.AbstractParser<DealAddFriendReq>() { - @java.lang.Override - public DealAddFriendReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DealAddFriendReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<DealAddFriendReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<DealAddFriendReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_DealAddFriendReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_DealAddFriendReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026DealAddFriendReq.proto\032\035DealAddFriendR" + - "esultType.proto\"\\\n\020DealAddFriendReq\022\021\n\tt" + - "argetUid\030\001 \001(\r\0225\n\023dealAddFriendResult\030\002 " + - "\001(\0162\030.DealAddFriendResultTypeB\033\n\031emu.gra" + - "sscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.getDescriptor(), - }); - internal_static_DealAddFriendReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_DealAddFriendReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_DealAddFriendReq_descriptor, - new java.lang.String[] { "TargetUid", "DealAddFriendResult", }); - emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/DealAddFriendResultTypeOuterClass.java b/src/main/java/emu/grasscutter/net/proto/DealAddFriendResultTypeOuterClass.java deleted file mode 100644 index 3449309f7..000000000 --- a/src/main/java/emu/grasscutter/net/proto/DealAddFriendResultTypeOuterClass.java +++ /dev/null @@ -1,146 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: DealAddFriendResultType.proto - -package emu.grasscutter.net.proto; - -public final class DealAddFriendResultTypeOuterClass { - private DealAddFriendResultTypeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code DealAddFriendResultType} - */ - public enum DealAddFriendResultType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>DealAddFriendReject = 0;</code> - */ - DealAddFriendReject(0), - /** - * <code>DealAddFriendAccept = 1;</code> - */ - DealAddFriendAccept(1), - UNRECOGNIZED(-1), - ; - - /** - * <code>DealAddFriendReject = 0;</code> - */ - public static final int DealAddFriendReject_VALUE = 0; - /** - * <code>DealAddFriendAccept = 1;</code> - */ - public static final int DealAddFriendAccept_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DealAddFriendResultType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static DealAddFriendResultType forNumber(int value) { - switch (value) { - case 0: return DealAddFriendReject; - case 1: return DealAddFriendAccept; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<DealAddFriendResultType> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - DealAddFriendResultType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<DealAddFriendResultType>() { - public DealAddFriendResultType findValueByNumber(int number) { - return DealAddFriendResultType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final DealAddFriendResultType[] VALUES = values(); - - public static DealAddFriendResultType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private DealAddFriendResultType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:DealAddFriendResultType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035DealAddFriendResultType.proto*K\n\027DealA" + - "ddFriendResultType\022\027\n\023DealAddFriendRejec" + - "t\020\000\022\027\n\023DealAddFriendAccept\020\001B\033\n\031emu.gras" + - "scutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/DealAddFriendRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/DealAddFriendRspOuterClass.java deleted file mode 100644 index babbab41b..000000000 --- a/src/main/java/emu/grasscutter/net/proto/DealAddFriendRspOuterClass.java +++ /dev/null @@ -1,718 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: DealAddFriendRsp.proto - -package emu.grasscutter.net.proto; - -public final class DealAddFriendRspOuterClass { - private DealAddFriendRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DealAddFriendRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:DealAddFriendRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint32 targetUid = 2;</code> - * @return The targetUid. - */ - int getTargetUid(); - - /** - * <code>.DealAddFriendResultType dealAddFriendResult = 3;</code> - * @return The enum numeric value on the wire for dealAddFriendResult. - */ - int getDealAddFriendResultValue(); - /** - * <code>.DealAddFriendResultType dealAddFriendResult = 3;</code> - * @return The dealAddFriendResult. - */ - emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType getDealAddFriendResult(); - } - /** - * Protobuf type {@code DealAddFriendRsp} - */ - public static final class DealAddFriendRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:DealAddFriendRsp) - DealAddFriendRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use DealAddFriendRsp.newBuilder() to construct. - private DealAddFriendRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private DealAddFriendRsp() { - dealAddFriendResult_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DealAddFriendRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DealAddFriendRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - targetUid_ = input.readUInt32(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - dealAddFriendResult_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DealAddFriendRspOuterClass.internal_static_DealAddFriendRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DealAddFriendRspOuterClass.internal_static_DealAddFriendRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp.class, emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int TARGETUID_FIELD_NUMBER = 2; - private int targetUid_; - /** - * <code>uint32 targetUid = 2;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - - public static final int DEALADDFRIENDRESULT_FIELD_NUMBER = 3; - private int dealAddFriendResult_; - /** - * <code>.DealAddFriendResultType dealAddFriendResult = 3;</code> - * @return The enum numeric value on the wire for dealAddFriendResult. - */ - @java.lang.Override public int getDealAddFriendResultValue() { - return dealAddFriendResult_; - } - /** - * <code>.DealAddFriendResultType dealAddFriendResult = 3;</code> - * @return The dealAddFriendResult. - */ - @java.lang.Override public emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType getDealAddFriendResult() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType result = emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType.valueOf(dealAddFriendResult_); - return result == null ? emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (targetUid_ != 0) { - output.writeUInt32(2, targetUid_); - } - if (dealAddFriendResult_ != emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType.DealAddFriendReject.getNumber()) { - output.writeEnum(3, dealAddFriendResult_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (targetUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, targetUid_); - } - if (dealAddFriendResult_ != emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType.DealAddFriendReject.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, dealAddFriendResult_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp other = (emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getTargetUid() - != other.getTargetUid()) return false; - if (dealAddFriendResult_ != other.dealAddFriendResult_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + TARGETUID_FIELD_NUMBER; - hash = (53 * hash) + getTargetUid(); - hash = (37 * hash) + DEALADDFRIENDRESULT_FIELD_NUMBER; - hash = (53 * hash) + dealAddFriendResult_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code DealAddFriendRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:DealAddFriendRsp) - emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DealAddFriendRspOuterClass.internal_static_DealAddFriendRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DealAddFriendRspOuterClass.internal_static_DealAddFriendRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp.class, emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - targetUid_ = 0; - - dealAddFriendResult_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.DealAddFriendRspOuterClass.internal_static_DealAddFriendRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp build() { - emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp buildPartial() { - emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp result = new emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp(this); - result.retcode_ = retcode_; - result.targetUid_ = targetUid_; - result.dealAddFriendResult_ = dealAddFriendResult_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp) { - return mergeFrom((emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp other) { - if (other == emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getTargetUid() != 0) { - setTargetUid(other.getTargetUid()); - } - if (other.dealAddFriendResult_ != 0) { - setDealAddFriendResultValue(other.getDealAddFriendResultValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int targetUid_ ; - /** - * <code>uint32 targetUid = 2;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - /** - * <code>uint32 targetUid = 2;</code> - * @param value The targetUid to set. - * @return This builder for chaining. - */ - public Builder setTargetUid(int value) { - - targetUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 targetUid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearTargetUid() { - - targetUid_ = 0; - onChanged(); - return this; - } - - private int dealAddFriendResult_ = 0; - /** - * <code>.DealAddFriendResultType dealAddFriendResult = 3;</code> - * @return The enum numeric value on the wire for dealAddFriendResult. - */ - @java.lang.Override public int getDealAddFriendResultValue() { - return dealAddFriendResult_; - } - /** - * <code>.DealAddFriendResultType dealAddFriendResult = 3;</code> - * @param value The enum numeric value on the wire for dealAddFriendResult to set. - * @return This builder for chaining. - */ - public Builder setDealAddFriendResultValue(int value) { - - dealAddFriendResult_ = value; - onChanged(); - return this; - } - /** - * <code>.DealAddFriendResultType dealAddFriendResult = 3;</code> - * @return The dealAddFriendResult. - */ - @java.lang.Override - public emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType getDealAddFriendResult() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType result = emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType.valueOf(dealAddFriendResult_); - return result == null ? emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType.UNRECOGNIZED : result; - } - /** - * <code>.DealAddFriendResultType dealAddFriendResult = 3;</code> - * @param value The dealAddFriendResult to set. - * @return This builder for chaining. - */ - public Builder setDealAddFriendResult(emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType value) { - if (value == null) { - throw new NullPointerException(); - } - - dealAddFriendResult_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.DealAddFriendResultType dealAddFriendResult = 3;</code> - * @return This builder for chaining. - */ - public Builder clearDealAddFriendResult() { - - dealAddFriendResult_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:DealAddFriendRsp) - } - - // @@protoc_insertion_point(class_scope:DealAddFriendRsp) - private static final emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp(); - } - - public static emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<DealAddFriendRsp> - PARSER = new com.google.protobuf.AbstractParser<DealAddFriendRsp>() { - @java.lang.Override - public DealAddFriendRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DealAddFriendRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<DealAddFriendRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<DealAddFriendRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_DealAddFriendRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_DealAddFriendRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026DealAddFriendRsp.proto\032\035DealAddFriendR" + - "esultType.proto\"m\n\020DealAddFriendRsp\022\017\n\007r" + - "etcode\030\001 \001(\005\022\021\n\ttargetUid\030\002 \001(\r\0225\n\023dealA" + - "ddFriendResult\030\003 \001(\0162\030.DealAddFriendResu" + - "ltTypeB\033\n\031emu.grasscutter.net.protob\006pro" + - "to3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.getDescriptor(), - }); - internal_static_DealAddFriendRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_DealAddFriendRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_DealAddFriendRsp_descriptor, - new java.lang.String[] { "Retcode", "TargetUid", "DealAddFriendResult", }); - emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/DelTeamEntityNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/DelTeamEntityNotifyOuterClass.java deleted file mode 100644 index 486453fa3..000000000 --- a/src/main/java/emu/grasscutter/net/proto/DelTeamEntityNotifyOuterClass.java +++ /dev/null @@ -1,734 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: DelTeamEntityNotify.proto - -package emu.grasscutter.net.proto; - -public final class DelTeamEntityNotifyOuterClass { - private DelTeamEntityNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DelTeamEntityNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:DelTeamEntityNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - int getSceneId(); - - /** - * <code>repeated uint32 delEntityIdList = 2;</code> - * @return A list containing the delEntityIdList. - */ - java.util.List<java.lang.Integer> getDelEntityIdListList(); - /** - * <code>repeated uint32 delEntityIdList = 2;</code> - * @return The count of delEntityIdList. - */ - int getDelEntityIdListCount(); - /** - * <code>repeated uint32 delEntityIdList = 2;</code> - * @param index The index of the element to return. - * @return The delEntityIdList at the given index. - */ - int getDelEntityIdList(int index); - } - /** - * Protobuf type {@code DelTeamEntityNotify} - */ - public static final class DelTeamEntityNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:DelTeamEntityNotify) - DelTeamEntityNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use DelTeamEntityNotify.newBuilder() to construct. - private DelTeamEntityNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private DelTeamEntityNotify() { - delEntityIdList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DelTeamEntityNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DelTeamEntityNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - sceneId_ = input.readUInt32(); - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - delEntityIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - delEntityIdList_.addInt(input.readUInt32()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - delEntityIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - delEntityIdList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - delEntityIdList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.internal_static_DelTeamEntityNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.internal_static_DelTeamEntityNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify.class, emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify.Builder.class); - } - - public static final int SCENEID_FIELD_NUMBER = 1; - private int sceneId_; - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - - public static final int DELENTITYIDLIST_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.IntList delEntityIdList_; - /** - * <code>repeated uint32 delEntityIdList = 2;</code> - * @return A list containing the delEntityIdList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getDelEntityIdListList() { - return delEntityIdList_; - } - /** - * <code>repeated uint32 delEntityIdList = 2;</code> - * @return The count of delEntityIdList. - */ - public int getDelEntityIdListCount() { - return delEntityIdList_.size(); - } - /** - * <code>repeated uint32 delEntityIdList = 2;</code> - * @param index The index of the element to return. - * @return The delEntityIdList at the given index. - */ - public int getDelEntityIdList(int index) { - return delEntityIdList_.getInt(index); - } - private int delEntityIdListMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (sceneId_ != 0) { - output.writeUInt32(1, sceneId_); - } - if (getDelEntityIdListList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(delEntityIdListMemoizedSerializedSize); - } - for (int i = 0; i < delEntityIdList_.size(); i++) { - output.writeUInt32NoTag(delEntityIdList_.getInt(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sceneId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, sceneId_); - } - { - int dataSize = 0; - for (int i = 0; i < delEntityIdList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(delEntityIdList_.getInt(i)); - } - size += dataSize; - if (!getDelEntityIdListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - delEntityIdListMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify other = (emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify) obj; - - if (getSceneId() - != other.getSceneId()) return false; - if (!getDelEntityIdListList() - .equals(other.getDelEntityIdListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SCENEID_FIELD_NUMBER; - hash = (53 * hash) + getSceneId(); - if (getDelEntityIdListCount() > 0) { - hash = (37 * hash) + DELENTITYIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getDelEntityIdListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code DelTeamEntityNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:DelTeamEntityNotify) - emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.internal_static_DelTeamEntityNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.internal_static_DelTeamEntityNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify.class, emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sceneId_ = 0; - - delEntityIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.internal_static_DelTeamEntityNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify build() { - emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify buildPartial() { - emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify result = new emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify(this); - int from_bitField0_ = bitField0_; - result.sceneId_ = sceneId_; - if (((bitField0_ & 0x00000001) != 0)) { - delEntityIdList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.delEntityIdList_ = delEntityIdList_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify) { - return mergeFrom((emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify other) { - if (other == emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify.getDefaultInstance()) return this; - if (other.getSceneId() != 0) { - setSceneId(other.getSceneId()); - } - if (!other.delEntityIdList_.isEmpty()) { - if (delEntityIdList_.isEmpty()) { - delEntityIdList_ = other.delEntityIdList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDelEntityIdListIsMutable(); - delEntityIdList_.addAll(other.delEntityIdList_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int sceneId_ ; - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - /** - * <code>uint32 sceneId = 1;</code> - * @param value The sceneId to set. - * @return This builder for chaining. - */ - public Builder setSceneId(int value) { - - sceneId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 sceneId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearSceneId() { - - sceneId_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList delEntityIdList_ = emptyIntList(); - private void ensureDelEntityIdListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - delEntityIdList_ = mutableCopy(delEntityIdList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 delEntityIdList = 2;</code> - * @return A list containing the delEntityIdList. - */ - public java.util.List<java.lang.Integer> - getDelEntityIdListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(delEntityIdList_) : delEntityIdList_; - } - /** - * <code>repeated uint32 delEntityIdList = 2;</code> - * @return The count of delEntityIdList. - */ - public int getDelEntityIdListCount() { - return delEntityIdList_.size(); - } - /** - * <code>repeated uint32 delEntityIdList = 2;</code> - * @param index The index of the element to return. - * @return The delEntityIdList at the given index. - */ - public int getDelEntityIdList(int index) { - return delEntityIdList_.getInt(index); - } - /** - * <code>repeated uint32 delEntityIdList = 2;</code> - * @param index The index to set the value at. - * @param value The delEntityIdList to set. - * @return This builder for chaining. - */ - public Builder setDelEntityIdList( - int index, int value) { - ensureDelEntityIdListIsMutable(); - delEntityIdList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 delEntityIdList = 2;</code> - * @param value The delEntityIdList to add. - * @return This builder for chaining. - */ - public Builder addDelEntityIdList(int value) { - ensureDelEntityIdListIsMutable(); - delEntityIdList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 delEntityIdList = 2;</code> - * @param values The delEntityIdList to add. - * @return This builder for chaining. - */ - public Builder addAllDelEntityIdList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureDelEntityIdListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, delEntityIdList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 delEntityIdList = 2;</code> - * @return This builder for chaining. - */ - public Builder clearDelEntityIdList() { - delEntityIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:DelTeamEntityNotify) - } - - // @@protoc_insertion_point(class_scope:DelTeamEntityNotify) - private static final emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify(); - } - - public static emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<DelTeamEntityNotify> - PARSER = new com.google.protobuf.AbstractParser<DelTeamEntityNotify>() { - @java.lang.Override - public DelTeamEntityNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DelTeamEntityNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<DelTeamEntityNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<DelTeamEntityNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_DelTeamEntityNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_DelTeamEntityNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031DelTeamEntityNotify.proto\"?\n\023DelTeamEn" + - "tityNotify\022\017\n\007sceneId\030\001 \001(\r\022\027\n\017delEntity" + - "IdList\030\002 \003(\rB\033\n\031emu.grasscutter.net.prot" + - "ob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_DelTeamEntityNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_DelTeamEntityNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_DelTeamEntityNotify_descriptor, - new java.lang.String[] { "SceneId", "DelEntityIdList", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/DelayWeekCountDownDeleteOuterClass.java b/src/main/java/emu/grasscutter/net/proto/DelayWeekCountDownDeleteOuterClass.java deleted file mode 100644 index b0138c0eb..000000000 --- a/src/main/java/emu/grasscutter/net/proto/DelayWeekCountDownDeleteOuterClass.java +++ /dev/null @@ -1,466 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: DelayWeekCountDownDelete.proto - -package emu.grasscutter.net.proto; - -public final class DelayWeekCountDownDeleteOuterClass { - private DelayWeekCountDownDeleteOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DelayWeekCountDownDeleteOrBuilder extends - // @@protoc_insertion_point(interface_extends:DelayWeekCountDownDelete) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code DelayWeekCountDownDelete} - */ - public static final class DelayWeekCountDownDelete extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:DelayWeekCountDownDelete) - DelayWeekCountDownDeleteOrBuilder { - private static final long serialVersionUID = 0L; - // Use DelayWeekCountDownDelete.newBuilder() to construct. - private DelayWeekCountDownDelete(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private DelayWeekCountDownDelete() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DelayWeekCountDownDelete(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DelayWeekCountDownDelete( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.internal_static_DelayWeekCountDownDelete_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.internal_static_DelayWeekCountDownDelete_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete.class, emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete other = (emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code DelayWeekCountDownDelete} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:DelayWeekCountDownDelete) - emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDeleteOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.internal_static_DelayWeekCountDownDelete_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.internal_static_DelayWeekCountDownDelete_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete.class, emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.internal_static_DelayWeekCountDownDelete_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete getDefaultInstanceForType() { - return emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete build() { - emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete buildPartial() { - emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete result = new emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete) { - return mergeFrom((emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete other) { - if (other == emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:DelayWeekCountDownDelete) - } - - // @@protoc_insertion_point(class_scope:DelayWeekCountDownDelete) - private static final emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete(); - } - - public static emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<DelayWeekCountDownDelete> - PARSER = new com.google.protobuf.AbstractParser<DelayWeekCountDownDelete>() { - @java.lang.Override - public DelayWeekCountDownDelete parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DelayWeekCountDownDelete(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<DelayWeekCountDownDelete> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<DelayWeekCountDownDelete> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_DelayWeekCountDownDelete_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_DelayWeekCountDownDelete_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\036DelayWeekCountDownDelete.proto\"\032\n\030Dela" + - "yWeekCountDownDeleteB\033\n\031emu.grasscutter." + - "net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_DelayWeekCountDownDelete_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_DelayWeekCountDownDelete_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_DelayWeekCountDownDelete_descriptor, - new java.lang.String[] { }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/DeleteFriendNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/DeleteFriendNotifyOuterClass.java deleted file mode 100644 index b92e94346..000000000 --- a/src/main/java/emu/grasscutter/net/proto/DeleteFriendNotifyOuterClass.java +++ /dev/null @@ -1,536 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: DeleteFriendNotify.proto - -package emu.grasscutter.net.proto; - -public final class DeleteFriendNotifyOuterClass { - private DeleteFriendNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DeleteFriendNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:DeleteFriendNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - int getTargetUid(); - } - /** - * Protobuf type {@code DeleteFriendNotify} - */ - public static final class DeleteFriendNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:DeleteFriendNotify) - DeleteFriendNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteFriendNotify.newBuilder() to construct. - private DeleteFriendNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private DeleteFriendNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteFriendNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DeleteFriendNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - targetUid_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.internal_static_DeleteFriendNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.internal_static_DeleteFriendNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify.class, emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify.Builder.class); - } - - public static final int TARGETUID_FIELD_NUMBER = 1; - private int targetUid_; - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (targetUid_ != 0) { - output.writeUInt32(1, targetUid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (targetUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, targetUid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify other = (emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify) obj; - - if (getTargetUid() - != other.getTargetUid()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TARGETUID_FIELD_NUMBER; - hash = (53 * hash) + getTargetUid(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code DeleteFriendNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:DeleteFriendNotify) - emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.internal_static_DeleteFriendNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.internal_static_DeleteFriendNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify.class, emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - targetUid_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.internal_static_DeleteFriendNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify build() { - emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify buildPartial() { - emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify result = new emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify(this); - result.targetUid_ = targetUid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify) { - return mergeFrom((emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify other) { - if (other == emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify.getDefaultInstance()) return this; - if (other.getTargetUid() != 0) { - setTargetUid(other.getTargetUid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int targetUid_ ; - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - /** - * <code>uint32 targetUid = 1;</code> - * @param value The targetUid to set. - * @return This builder for chaining. - */ - public Builder setTargetUid(int value) { - - targetUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 targetUid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTargetUid() { - - targetUid_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:DeleteFriendNotify) - } - - // @@protoc_insertion_point(class_scope:DeleteFriendNotify) - private static final emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify(); - } - - public static emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<DeleteFriendNotify> - PARSER = new com.google.protobuf.AbstractParser<DeleteFriendNotify>() { - @java.lang.Override - public DeleteFriendNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteFriendNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<DeleteFriendNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<DeleteFriendNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_DeleteFriendNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_DeleteFriendNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030DeleteFriendNotify.proto\"\'\n\022DeleteFrie" + - "ndNotify\022\021\n\ttargetUid\030\001 \001(\rB\033\n\031emu.grass" + - "cutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_DeleteFriendNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_DeleteFriendNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_DeleteFriendNotify_descriptor, - new java.lang.String[] { "TargetUid", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/DeleteFriendReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/DeleteFriendReqOuterClass.java deleted file mode 100644 index 8057bc7e6..000000000 --- a/src/main/java/emu/grasscutter/net/proto/DeleteFriendReqOuterClass.java +++ /dev/null @@ -1,536 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: DeleteFriendReq.proto - -package emu.grasscutter.net.proto; - -public final class DeleteFriendReqOuterClass { - private DeleteFriendReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DeleteFriendReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:DeleteFriendReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - int getTargetUid(); - } - /** - * Protobuf type {@code DeleteFriendReq} - */ - public static final class DeleteFriendReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:DeleteFriendReq) - DeleteFriendReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteFriendReq.newBuilder() to construct. - private DeleteFriendReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private DeleteFriendReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteFriendReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DeleteFriendReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - targetUid_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DeleteFriendReqOuterClass.internal_static_DeleteFriendReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DeleteFriendReqOuterClass.internal_static_DeleteFriendReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq.class, emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq.Builder.class); - } - - public static final int TARGETUID_FIELD_NUMBER = 1; - private int targetUid_; - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (targetUid_ != 0) { - output.writeUInt32(1, targetUid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (targetUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, targetUid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq other = (emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq) obj; - - if (getTargetUid() - != other.getTargetUid()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TARGETUID_FIELD_NUMBER; - hash = (53 * hash) + getTargetUid(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code DeleteFriendReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:DeleteFriendReq) - emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DeleteFriendReqOuterClass.internal_static_DeleteFriendReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DeleteFriendReqOuterClass.internal_static_DeleteFriendReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq.class, emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - targetUid_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.DeleteFriendReqOuterClass.internal_static_DeleteFriendReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq build() { - emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq buildPartial() { - emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq result = new emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq(this); - result.targetUid_ = targetUid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq) { - return mergeFrom((emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq other) { - if (other == emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq.getDefaultInstance()) return this; - if (other.getTargetUid() != 0) { - setTargetUid(other.getTargetUid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int targetUid_ ; - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - /** - * <code>uint32 targetUid = 1;</code> - * @param value The targetUid to set. - * @return This builder for chaining. - */ - public Builder setTargetUid(int value) { - - targetUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 targetUid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTargetUid() { - - targetUid_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:DeleteFriendReq) - } - - // @@protoc_insertion_point(class_scope:DeleteFriendReq) - private static final emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq(); - } - - public static emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<DeleteFriendReq> - PARSER = new com.google.protobuf.AbstractParser<DeleteFriendReq>() { - @java.lang.Override - public DeleteFriendReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteFriendReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<DeleteFriendReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<DeleteFriendReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_DeleteFriendReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_DeleteFriendReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025DeleteFriendReq.proto\"$\n\017DeleteFriendR" + - "eq\022\021\n\ttargetUid\030\001 \001(\rB\033\n\031emu.grasscutter" + - ".net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_DeleteFriendReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_DeleteFriendReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_DeleteFriendReq_descriptor, - new java.lang.String[] { "TargetUid", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/DeleteFriendRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/DeleteFriendRspOuterClass.java deleted file mode 100644 index 95889c73b..000000000 --- a/src/main/java/emu/grasscutter/net/proto/DeleteFriendRspOuterClass.java +++ /dev/null @@ -1,606 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: DeleteFriendRsp.proto - -package emu.grasscutter.net.proto; - -public final class DeleteFriendRspOuterClass { - private DeleteFriendRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DeleteFriendRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:DeleteFriendRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint32 targetUid = 2;</code> - * @return The targetUid. - */ - int getTargetUid(); - } - /** - * Protobuf type {@code DeleteFriendRsp} - */ - public static final class DeleteFriendRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:DeleteFriendRsp) - DeleteFriendRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteFriendRsp.newBuilder() to construct. - private DeleteFriendRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private DeleteFriendRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteFriendRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DeleteFriendRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - targetUid_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DeleteFriendRspOuterClass.internal_static_DeleteFriendRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DeleteFriendRspOuterClass.internal_static_DeleteFriendRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp.class, emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int TARGETUID_FIELD_NUMBER = 2; - private int targetUid_; - /** - * <code>uint32 targetUid = 2;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (targetUid_ != 0) { - output.writeUInt32(2, targetUid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (targetUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, targetUid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp other = (emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getTargetUid() - != other.getTargetUid()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + TARGETUID_FIELD_NUMBER; - hash = (53 * hash) + getTargetUid(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code DeleteFriendRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:DeleteFriendRsp) - emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DeleteFriendRspOuterClass.internal_static_DeleteFriendRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DeleteFriendRspOuterClass.internal_static_DeleteFriendRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp.class, emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - targetUid_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.DeleteFriendRspOuterClass.internal_static_DeleteFriendRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp build() { - emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp buildPartial() { - emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp result = new emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp(this); - result.retcode_ = retcode_; - result.targetUid_ = targetUid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp) { - return mergeFrom((emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp other) { - if (other == emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getTargetUid() != 0) { - setTargetUid(other.getTargetUid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int targetUid_ ; - /** - * <code>uint32 targetUid = 2;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - /** - * <code>uint32 targetUid = 2;</code> - * @param value The targetUid to set. - * @return This builder for chaining. - */ - public Builder setTargetUid(int value) { - - targetUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 targetUid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearTargetUid() { - - targetUid_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:DeleteFriendRsp) - } - - // @@protoc_insertion_point(class_scope:DeleteFriendRsp) - private static final emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp(); - } - - public static emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<DeleteFriendRsp> - PARSER = new com.google.protobuf.AbstractParser<DeleteFriendRsp>() { - @java.lang.Override - public DeleteFriendRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteFriendRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<DeleteFriendRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<DeleteFriendRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_DeleteFriendRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_DeleteFriendRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025DeleteFriendRsp.proto\"5\n\017DeleteFriendR" + - "sp\022\017\n\007retcode\030\001 \001(\005\022\021\n\ttargetUid\030\002 \001(\rB\033" + - "\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_DeleteFriendRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_DeleteFriendRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_DeleteFriendRsp_descriptor, - new java.lang.String[] { "Retcode", "TargetUid", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/DestroyMaterialReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/DestroyMaterialReqOuterClass.java deleted file mode 100644 index abf2a065e..000000000 --- a/src/main/java/emu/grasscutter/net/proto/DestroyMaterialReqOuterClass.java +++ /dev/null @@ -1,844 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: DestroyMaterialReq.proto - -package emu.grasscutter.net.proto; - -public final class DestroyMaterialReqOuterClass { - private DestroyMaterialReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DestroyMaterialReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:DestroyMaterialReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - java.util.List<emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo> - getMaterialListList(); - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo getMaterialList(int index); - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - int getMaterialListCount(); - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfoOrBuilder> - getMaterialListOrBuilderList(); - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfoOrBuilder getMaterialListOrBuilder( - int index); - } - /** - * Protobuf type {@code DestroyMaterialReq} - */ - public static final class DestroyMaterialReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:DestroyMaterialReq) - DestroyMaterialReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use DestroyMaterialReq.newBuilder() to construct. - private DestroyMaterialReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private DestroyMaterialReq() { - materialList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DestroyMaterialReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DestroyMaterialReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - materialList_ = new java.util.ArrayList<emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo>(); - mutable_bitField0_ |= 0x00000001; - } - materialList_.add( - input.readMessage(emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - materialList_ = java.util.Collections.unmodifiableList(materialList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.internal_static_DestroyMaterialReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.internal_static_DestroyMaterialReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq.class, emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq.Builder.class); - } - - public static final int MATERIALLIST_FIELD_NUMBER = 1; - private java.util.List<emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo> materialList_; - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo> getMaterialListList() { - return materialList_; - } - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfoOrBuilder> - getMaterialListOrBuilderList() { - return materialList_; - } - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - @java.lang.Override - public int getMaterialListCount() { - return materialList_.size(); - } - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo getMaterialList(int index) { - return materialList_.get(index); - } - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfoOrBuilder getMaterialListOrBuilder( - int index) { - return materialList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < materialList_.size(); i++) { - output.writeMessage(1, materialList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < materialList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, materialList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq other = (emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq) obj; - - if (!getMaterialListList() - .equals(other.getMaterialListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getMaterialListCount() > 0) { - hash = (37 * hash) + MATERIALLIST_FIELD_NUMBER; - hash = (53 * hash) + getMaterialListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code DestroyMaterialReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:DestroyMaterialReq) - emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.internal_static_DestroyMaterialReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.internal_static_DestroyMaterialReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq.class, emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getMaterialListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (materialListBuilder_ == null) { - materialList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - materialListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.internal_static_DestroyMaterialReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq build() { - emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq buildPartial() { - emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq result = new emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq(this); - int from_bitField0_ = bitField0_; - if (materialListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - materialList_ = java.util.Collections.unmodifiableList(materialList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.materialList_ = materialList_; - } else { - result.materialList_ = materialListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq) { - return mergeFrom((emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq other) { - if (other == emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq.getDefaultInstance()) return this; - if (materialListBuilder_ == null) { - if (!other.materialList_.isEmpty()) { - if (materialList_.isEmpty()) { - materialList_ = other.materialList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureMaterialListIsMutable(); - materialList_.addAll(other.materialList_); - } - onChanged(); - } - } else { - if (!other.materialList_.isEmpty()) { - if (materialListBuilder_.isEmpty()) { - materialListBuilder_.dispose(); - materialListBuilder_ = null; - materialList_ = other.materialList_; - bitField0_ = (bitField0_ & ~0x00000001); - materialListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMaterialListFieldBuilder() : null; - } else { - materialListBuilder_.addAllMessages(other.materialList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List<emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo> materialList_ = - java.util.Collections.emptyList(); - private void ensureMaterialListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - materialList_ = new java.util.ArrayList<emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo>(materialList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo, emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo.Builder, emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfoOrBuilder> materialListBuilder_; - - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo> getMaterialListList() { - if (materialListBuilder_ == null) { - return java.util.Collections.unmodifiableList(materialList_); - } else { - return materialListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - public int getMaterialListCount() { - if (materialListBuilder_ == null) { - return materialList_.size(); - } else { - return materialListBuilder_.getCount(); - } - } - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - public emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo getMaterialList(int index) { - if (materialListBuilder_ == null) { - return materialList_.get(index); - } else { - return materialListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - public Builder setMaterialList( - int index, emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo value) { - if (materialListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMaterialListIsMutable(); - materialList_.set(index, value); - onChanged(); - } else { - materialListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - public Builder setMaterialList( - int index, emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo.Builder builderForValue) { - if (materialListBuilder_ == null) { - ensureMaterialListIsMutable(); - materialList_.set(index, builderForValue.build()); - onChanged(); - } else { - materialListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - public Builder addMaterialList(emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo value) { - if (materialListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMaterialListIsMutable(); - materialList_.add(value); - onChanged(); - } else { - materialListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - public Builder addMaterialList( - int index, emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo value) { - if (materialListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMaterialListIsMutable(); - materialList_.add(index, value); - onChanged(); - } else { - materialListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - public Builder addMaterialList( - emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo.Builder builderForValue) { - if (materialListBuilder_ == null) { - ensureMaterialListIsMutable(); - materialList_.add(builderForValue.build()); - onChanged(); - } else { - materialListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - public Builder addMaterialList( - int index, emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo.Builder builderForValue) { - if (materialListBuilder_ == null) { - ensureMaterialListIsMutable(); - materialList_.add(index, builderForValue.build()); - onChanged(); - } else { - materialListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - public Builder addAllMaterialList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo> values) { - if (materialListBuilder_ == null) { - ensureMaterialListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, materialList_); - onChanged(); - } else { - materialListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - public Builder clearMaterialList() { - if (materialListBuilder_ == null) { - materialList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - materialListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - public Builder removeMaterialList(int index) { - if (materialListBuilder_ == null) { - ensureMaterialListIsMutable(); - materialList_.remove(index); - onChanged(); - } else { - materialListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - public emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo.Builder getMaterialListBuilder( - int index) { - return getMaterialListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - public emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfoOrBuilder getMaterialListOrBuilder( - int index) { - if (materialListBuilder_ == null) { - return materialList_.get(index); } else { - return materialListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfoOrBuilder> - getMaterialListOrBuilderList() { - if (materialListBuilder_ != null) { - return materialListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(materialList_); - } - } - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - public emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo.Builder addMaterialListBuilder() { - return getMaterialListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo.getDefaultInstance()); - } - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - public emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo.Builder addMaterialListBuilder( - int index) { - return getMaterialListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo.getDefaultInstance()); - } - /** - * <code>repeated .MaterialInfo materialList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo.Builder> - getMaterialListBuilderList() { - return getMaterialListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo, emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo.Builder, emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfoOrBuilder> - getMaterialListFieldBuilder() { - if (materialListBuilder_ == null) { - materialListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo, emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo.Builder, emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfoOrBuilder>( - materialList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - materialList_ = null; - } - return materialListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:DestroyMaterialReq) - } - - // @@protoc_insertion_point(class_scope:DestroyMaterialReq) - private static final emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq(); - } - - public static emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<DestroyMaterialReq> - PARSER = new com.google.protobuf.AbstractParser<DestroyMaterialReq>() { - @java.lang.Override - public DestroyMaterialReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DestroyMaterialReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<DestroyMaterialReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<DestroyMaterialReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_DestroyMaterialReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_DestroyMaterialReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030DestroyMaterialReq.proto\032\022MaterialInfo" + - ".proto\"9\n\022DestroyMaterialReq\022#\n\014material" + - "List\030\001 \003(\0132\r.MaterialInfoB\033\n\031emu.grasscu" + - "tter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.MaterialInfoOuterClass.getDescriptor(), - }); - internal_static_DestroyMaterialReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_DestroyMaterialReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_DestroyMaterialReq_descriptor, - new java.lang.String[] { "MaterialList", }); - emu.grasscutter.net.proto.MaterialInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/DestroyMaterialRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/DestroyMaterialRspOuterClass.java deleted file mode 100644 index 6caeaaad3..000000000 --- a/src/main/java/emu/grasscutter/net/proto/DestroyMaterialRspOuterClass.java +++ /dev/null @@ -1,927 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: DestroyMaterialRsp.proto - -package emu.grasscutter.net.proto; - -public final class DestroyMaterialRspOuterClass { - private DestroyMaterialRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DestroyMaterialRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:DestroyMaterialRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>repeated uint32 itemIdList = 2;</code> - * @return A list containing the itemIdList. - */ - java.util.List<java.lang.Integer> getItemIdListList(); - /** - * <code>repeated uint32 itemIdList = 2;</code> - * @return The count of itemIdList. - */ - int getItemIdListCount(); - /** - * <code>repeated uint32 itemIdList = 2;</code> - * @param index The index of the element to return. - * @return The itemIdList at the given index. - */ - int getItemIdList(int index); - - /** - * <code>repeated uint32 itemCountList = 3;</code> - * @return A list containing the itemCountList. - */ - java.util.List<java.lang.Integer> getItemCountListList(); - /** - * <code>repeated uint32 itemCountList = 3;</code> - * @return The count of itemCountList. - */ - int getItemCountListCount(); - /** - * <code>repeated uint32 itemCountList = 3;</code> - * @param index The index of the element to return. - * @return The itemCountList at the given index. - */ - int getItemCountList(int index); - } - /** - * Protobuf type {@code DestroyMaterialRsp} - */ - public static final class DestroyMaterialRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:DestroyMaterialRsp) - DestroyMaterialRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use DestroyMaterialRsp.newBuilder() to construct. - private DestroyMaterialRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private DestroyMaterialRsp() { - itemIdList_ = emptyIntList(); - itemCountList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DestroyMaterialRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DestroyMaterialRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - itemIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - itemIdList_.addInt(input.readUInt32()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - itemIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - itemIdList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 24: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - itemCountList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - itemCountList_.addInt(input.readUInt32()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - itemCountList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - itemCountList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - itemIdList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - itemCountList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.internal_static_DestroyMaterialRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.internal_static_DestroyMaterialRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp.class, emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int ITEMIDLIST_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.IntList itemIdList_; - /** - * <code>repeated uint32 itemIdList = 2;</code> - * @return A list containing the itemIdList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getItemIdListList() { - return itemIdList_; - } - /** - * <code>repeated uint32 itemIdList = 2;</code> - * @return The count of itemIdList. - */ - public int getItemIdListCount() { - return itemIdList_.size(); - } - /** - * <code>repeated uint32 itemIdList = 2;</code> - * @param index The index of the element to return. - * @return The itemIdList at the given index. - */ - public int getItemIdList(int index) { - return itemIdList_.getInt(index); - } - private int itemIdListMemoizedSerializedSize = -1; - - public static final int ITEMCOUNTLIST_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.IntList itemCountList_; - /** - * <code>repeated uint32 itemCountList = 3;</code> - * @return A list containing the itemCountList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getItemCountListList() { - return itemCountList_; - } - /** - * <code>repeated uint32 itemCountList = 3;</code> - * @return The count of itemCountList. - */ - public int getItemCountListCount() { - return itemCountList_.size(); - } - /** - * <code>repeated uint32 itemCountList = 3;</code> - * @param index The index of the element to return. - * @return The itemCountList at the given index. - */ - public int getItemCountList(int index) { - return itemCountList_.getInt(index); - } - private int itemCountListMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (getItemIdListList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(itemIdListMemoizedSerializedSize); - } - for (int i = 0; i < itemIdList_.size(); i++) { - output.writeUInt32NoTag(itemIdList_.getInt(i)); - } - if (getItemCountListList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(itemCountListMemoizedSerializedSize); - } - for (int i = 0; i < itemCountList_.size(); i++) { - output.writeUInt32NoTag(itemCountList_.getInt(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - { - int dataSize = 0; - for (int i = 0; i < itemIdList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(itemIdList_.getInt(i)); - } - size += dataSize; - if (!getItemIdListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - itemIdListMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < itemCountList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(itemCountList_.getInt(i)); - } - size += dataSize; - if (!getItemCountListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - itemCountListMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp other = (emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (!getItemIdListList() - .equals(other.getItemIdListList())) return false; - if (!getItemCountListList() - .equals(other.getItemCountListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - if (getItemIdListCount() > 0) { - hash = (37 * hash) + ITEMIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getItemIdListList().hashCode(); - } - if (getItemCountListCount() > 0) { - hash = (37 * hash) + ITEMCOUNTLIST_FIELD_NUMBER; - hash = (53 * hash) + getItemCountListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code DestroyMaterialRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:DestroyMaterialRsp) - emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.internal_static_DestroyMaterialRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.internal_static_DestroyMaterialRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp.class, emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - itemIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - itemCountList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.internal_static_DestroyMaterialRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp build() { - emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp buildPartial() { - emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp result = new emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp(this); - int from_bitField0_ = bitField0_; - result.retcode_ = retcode_; - if (((bitField0_ & 0x00000001) != 0)) { - itemIdList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.itemIdList_ = itemIdList_; - if (((bitField0_ & 0x00000002) != 0)) { - itemCountList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.itemCountList_ = itemCountList_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp) { - return mergeFrom((emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp other) { - if (other == emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (!other.itemIdList_.isEmpty()) { - if (itemIdList_.isEmpty()) { - itemIdList_ = other.itemIdList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureItemIdListIsMutable(); - itemIdList_.addAll(other.itemIdList_); - } - onChanged(); - } - if (!other.itemCountList_.isEmpty()) { - if (itemCountList_.isEmpty()) { - itemCountList_ = other.itemCountList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureItemCountListIsMutable(); - itemCountList_.addAll(other.itemCountList_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList itemIdList_ = emptyIntList(); - private void ensureItemIdListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - itemIdList_ = mutableCopy(itemIdList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 itemIdList = 2;</code> - * @return A list containing the itemIdList. - */ - public java.util.List<java.lang.Integer> - getItemIdListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(itemIdList_) : itemIdList_; - } - /** - * <code>repeated uint32 itemIdList = 2;</code> - * @return The count of itemIdList. - */ - public int getItemIdListCount() { - return itemIdList_.size(); - } - /** - * <code>repeated uint32 itemIdList = 2;</code> - * @param index The index of the element to return. - * @return The itemIdList at the given index. - */ - public int getItemIdList(int index) { - return itemIdList_.getInt(index); - } - /** - * <code>repeated uint32 itemIdList = 2;</code> - * @param index The index to set the value at. - * @param value The itemIdList to set. - * @return This builder for chaining. - */ - public Builder setItemIdList( - int index, int value) { - ensureItemIdListIsMutable(); - itemIdList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 itemIdList = 2;</code> - * @param value The itemIdList to add. - * @return This builder for chaining. - */ - public Builder addItemIdList(int value) { - ensureItemIdListIsMutable(); - itemIdList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 itemIdList = 2;</code> - * @param values The itemIdList to add. - * @return This builder for chaining. - */ - public Builder addAllItemIdList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureItemIdListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, itemIdList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 itemIdList = 2;</code> - * @return This builder for chaining. - */ - public Builder clearItemIdList() { - itemIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList itemCountList_ = emptyIntList(); - private void ensureItemCountListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - itemCountList_ = mutableCopy(itemCountList_); - bitField0_ |= 0x00000002; - } - } - /** - * <code>repeated uint32 itemCountList = 3;</code> - * @return A list containing the itemCountList. - */ - public java.util.List<java.lang.Integer> - getItemCountListList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(itemCountList_) : itemCountList_; - } - /** - * <code>repeated uint32 itemCountList = 3;</code> - * @return The count of itemCountList. - */ - public int getItemCountListCount() { - return itemCountList_.size(); - } - /** - * <code>repeated uint32 itemCountList = 3;</code> - * @param index The index of the element to return. - * @return The itemCountList at the given index. - */ - public int getItemCountList(int index) { - return itemCountList_.getInt(index); - } - /** - * <code>repeated uint32 itemCountList = 3;</code> - * @param index The index to set the value at. - * @param value The itemCountList to set. - * @return This builder for chaining. - */ - public Builder setItemCountList( - int index, int value) { - ensureItemCountListIsMutable(); - itemCountList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 itemCountList = 3;</code> - * @param value The itemCountList to add. - * @return This builder for chaining. - */ - public Builder addItemCountList(int value) { - ensureItemCountListIsMutable(); - itemCountList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 itemCountList = 3;</code> - * @param values The itemCountList to add. - * @return This builder for chaining. - */ - public Builder addAllItemCountList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureItemCountListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, itemCountList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 itemCountList = 3;</code> - * @return This builder for chaining. - */ - public Builder clearItemCountList() { - itemCountList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:DestroyMaterialRsp) - } - - // @@protoc_insertion_point(class_scope:DestroyMaterialRsp) - private static final emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp(); - } - - public static emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<DestroyMaterialRsp> - PARSER = new com.google.protobuf.AbstractParser<DestroyMaterialRsp>() { - @java.lang.Override - public DestroyMaterialRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DestroyMaterialRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<DestroyMaterialRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<DestroyMaterialRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_DestroyMaterialRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_DestroyMaterialRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030DestroyMaterialRsp.proto\"P\n\022DestroyMat" + - "erialRsp\022\017\n\007retcode\030\001 \001(\005\022\022\n\nitemIdList\030" + - "\002 \003(\r\022\025\n\ritemCountList\030\003 \003(\rB\033\n\031emu.gras" + - "scutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_DestroyMaterialRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_DestroyMaterialRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_DestroyMaterialRsp_descriptor, - new java.lang.String[] { "Retcode", "ItemIdList", "ItemCountList", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/DoGachaReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/DoGachaReqOuterClass.java deleted file mode 100644 index f0aacd5cd..000000000 --- a/src/main/java/emu/grasscutter/net/proto/DoGachaReqOuterClass.java +++ /dev/null @@ -1,898 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: DoGachaReq.proto - -package emu.grasscutter.net.proto; - -public final class DoGachaReqOuterClass { - private DoGachaReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DoGachaReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:DoGachaReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 gachaType = 1;</code> - * @return The gachaType. - */ - int getGachaType(); - - /** - * <code>uint32 gachaTimes = 2;</code> - * @return The gachaTimes. - */ - int getGachaTimes(); - - /** - * <code>uint32 gachaRandom = 3;</code> - * @return The gachaRandom. - */ - int getGachaRandom(); - - /** - * <code>uint32 gachaScheduleId = 4;</code> - * @return The gachaScheduleId. - */ - int getGachaScheduleId(); - - /** - * <code>string gachaTag = 5;</code> - * @return The gachaTag. - */ - java.lang.String getGachaTag(); - /** - * <code>string gachaTag = 5;</code> - * @return The bytes for gachaTag. - */ - com.google.protobuf.ByteString - getGachaTagBytes(); - } - /** - * Protobuf type {@code DoGachaReq} - */ - public static final class DoGachaReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:DoGachaReq) - DoGachaReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use DoGachaReq.newBuilder() to construct. - private DoGachaReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private DoGachaReq() { - gachaTag_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DoGachaReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DoGachaReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - gachaType_ = input.readUInt32(); - break; - } - case 16: { - - gachaTimes_ = input.readUInt32(); - break; - } - case 24: { - - gachaRandom_ = input.readUInt32(); - break; - } - case 32: { - - gachaScheduleId_ = input.readUInt32(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - gachaTag_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DoGachaReqOuterClass.internal_static_DoGachaReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DoGachaReqOuterClass.internal_static_DoGachaReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq.class, emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq.Builder.class); - } - - public static final int GACHATYPE_FIELD_NUMBER = 1; - private int gachaType_; - /** - * <code>uint32 gachaType = 1;</code> - * @return The gachaType. - */ - @java.lang.Override - public int getGachaType() { - return gachaType_; - } - - public static final int GACHATIMES_FIELD_NUMBER = 2; - private int gachaTimes_; - /** - * <code>uint32 gachaTimes = 2;</code> - * @return The gachaTimes. - */ - @java.lang.Override - public int getGachaTimes() { - return gachaTimes_; - } - - public static final int GACHARANDOM_FIELD_NUMBER = 3; - private int gachaRandom_; - /** - * <code>uint32 gachaRandom = 3;</code> - * @return The gachaRandom. - */ - @java.lang.Override - public int getGachaRandom() { - return gachaRandom_; - } - - public static final int GACHASCHEDULEID_FIELD_NUMBER = 4; - private int gachaScheduleId_; - /** - * <code>uint32 gachaScheduleId = 4;</code> - * @return The gachaScheduleId. - */ - @java.lang.Override - public int getGachaScheduleId() { - return gachaScheduleId_; - } - - public static final int GACHATAG_FIELD_NUMBER = 5; - private volatile java.lang.Object gachaTag_; - /** - * <code>string gachaTag = 5;</code> - * @return The gachaTag. - */ - @java.lang.Override - public java.lang.String getGachaTag() { - java.lang.Object ref = gachaTag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gachaTag_ = s; - return s; - } - } - /** - * <code>string gachaTag = 5;</code> - * @return The bytes for gachaTag. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getGachaTagBytes() { - java.lang.Object ref = gachaTag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gachaTag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (gachaType_ != 0) { - output.writeUInt32(1, gachaType_); - } - if (gachaTimes_ != 0) { - output.writeUInt32(2, gachaTimes_); - } - if (gachaRandom_ != 0) { - output.writeUInt32(3, gachaRandom_); - } - if (gachaScheduleId_ != 0) { - output.writeUInt32(4, gachaScheduleId_); - } - if (!getGachaTagBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, gachaTag_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (gachaType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, gachaType_); - } - if (gachaTimes_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, gachaTimes_); - } - if (gachaRandom_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, gachaRandom_); - } - if (gachaScheduleId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, gachaScheduleId_); - } - if (!getGachaTagBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, gachaTag_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq other = (emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq) obj; - - if (getGachaType() - != other.getGachaType()) return false; - if (getGachaTimes() - != other.getGachaTimes()) return false; - if (getGachaRandom() - != other.getGachaRandom()) return false; - if (getGachaScheduleId() - != other.getGachaScheduleId()) return false; - if (!getGachaTag() - .equals(other.getGachaTag())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GACHATYPE_FIELD_NUMBER; - hash = (53 * hash) + getGachaType(); - hash = (37 * hash) + GACHATIMES_FIELD_NUMBER; - hash = (53 * hash) + getGachaTimes(); - hash = (37 * hash) + GACHARANDOM_FIELD_NUMBER; - hash = (53 * hash) + getGachaRandom(); - hash = (37 * hash) + GACHASCHEDULEID_FIELD_NUMBER; - hash = (53 * hash) + getGachaScheduleId(); - hash = (37 * hash) + GACHATAG_FIELD_NUMBER; - hash = (53 * hash) + getGachaTag().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code DoGachaReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:DoGachaReq) - emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DoGachaReqOuterClass.internal_static_DoGachaReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DoGachaReqOuterClass.internal_static_DoGachaReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq.class, emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - gachaType_ = 0; - - gachaTimes_ = 0; - - gachaRandom_ = 0; - - gachaScheduleId_ = 0; - - gachaTag_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.DoGachaReqOuterClass.internal_static_DoGachaReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq build() { - emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq buildPartial() { - emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq result = new emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq(this); - result.gachaType_ = gachaType_; - result.gachaTimes_ = gachaTimes_; - result.gachaRandom_ = gachaRandom_; - result.gachaScheduleId_ = gachaScheduleId_; - result.gachaTag_ = gachaTag_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq) { - return mergeFrom((emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq other) { - if (other == emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq.getDefaultInstance()) return this; - if (other.getGachaType() != 0) { - setGachaType(other.getGachaType()); - } - if (other.getGachaTimes() != 0) { - setGachaTimes(other.getGachaTimes()); - } - if (other.getGachaRandom() != 0) { - setGachaRandom(other.getGachaRandom()); - } - if (other.getGachaScheduleId() != 0) { - setGachaScheduleId(other.getGachaScheduleId()); - } - if (!other.getGachaTag().isEmpty()) { - gachaTag_ = other.gachaTag_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int gachaType_ ; - /** - * <code>uint32 gachaType = 1;</code> - * @return The gachaType. - */ - @java.lang.Override - public int getGachaType() { - return gachaType_; - } - /** - * <code>uint32 gachaType = 1;</code> - * @param value The gachaType to set. - * @return This builder for chaining. - */ - public Builder setGachaType(int value) { - - gachaType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gachaType = 1;</code> - * @return This builder for chaining. - */ - public Builder clearGachaType() { - - gachaType_ = 0; - onChanged(); - return this; - } - - private int gachaTimes_ ; - /** - * <code>uint32 gachaTimes = 2;</code> - * @return The gachaTimes. - */ - @java.lang.Override - public int getGachaTimes() { - return gachaTimes_; - } - /** - * <code>uint32 gachaTimes = 2;</code> - * @param value The gachaTimes to set. - * @return This builder for chaining. - */ - public Builder setGachaTimes(int value) { - - gachaTimes_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gachaTimes = 2;</code> - * @return This builder for chaining. - */ - public Builder clearGachaTimes() { - - gachaTimes_ = 0; - onChanged(); - return this; - } - - private int gachaRandom_ ; - /** - * <code>uint32 gachaRandom = 3;</code> - * @return The gachaRandom. - */ - @java.lang.Override - public int getGachaRandom() { - return gachaRandom_; - } - /** - * <code>uint32 gachaRandom = 3;</code> - * @param value The gachaRandom to set. - * @return This builder for chaining. - */ - public Builder setGachaRandom(int value) { - - gachaRandom_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gachaRandom = 3;</code> - * @return This builder for chaining. - */ - public Builder clearGachaRandom() { - - gachaRandom_ = 0; - onChanged(); - return this; - } - - private int gachaScheduleId_ ; - /** - * <code>uint32 gachaScheduleId = 4;</code> - * @return The gachaScheduleId. - */ - @java.lang.Override - public int getGachaScheduleId() { - return gachaScheduleId_; - } - /** - * <code>uint32 gachaScheduleId = 4;</code> - * @param value The gachaScheduleId to set. - * @return This builder for chaining. - */ - public Builder setGachaScheduleId(int value) { - - gachaScheduleId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gachaScheduleId = 4;</code> - * @return This builder for chaining. - */ - public Builder clearGachaScheduleId() { - - gachaScheduleId_ = 0; - onChanged(); - return this; - } - - private java.lang.Object gachaTag_ = ""; - /** - * <code>string gachaTag = 5;</code> - * @return The gachaTag. - */ - public java.lang.String getGachaTag() { - java.lang.Object ref = gachaTag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gachaTag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string gachaTag = 5;</code> - * @return The bytes for gachaTag. - */ - public com.google.protobuf.ByteString - getGachaTagBytes() { - java.lang.Object ref = gachaTag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gachaTag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string gachaTag = 5;</code> - * @param value The gachaTag to set. - * @return This builder for chaining. - */ - public Builder setGachaTag( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gachaTag_ = value; - onChanged(); - return this; - } - /** - * <code>string gachaTag = 5;</code> - * @return This builder for chaining. - */ - public Builder clearGachaTag() { - - gachaTag_ = getDefaultInstance().getGachaTag(); - onChanged(); - return this; - } - /** - * <code>string gachaTag = 5;</code> - * @param value The bytes for gachaTag to set. - * @return This builder for chaining. - */ - public Builder setGachaTagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gachaTag_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:DoGachaReq) - } - - // @@protoc_insertion_point(class_scope:DoGachaReq) - private static final emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq(); - } - - public static emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<DoGachaReq> - PARSER = new com.google.protobuf.AbstractParser<DoGachaReq>() { - @java.lang.Override - public DoGachaReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DoGachaReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<DoGachaReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<DoGachaReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_DoGachaReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_DoGachaReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020DoGachaReq.proto\"s\n\nDoGachaReq\022\021\n\tgach" + - "aType\030\001 \001(\r\022\022\n\ngachaTimes\030\002 \001(\r\022\023\n\013gacha" + - "Random\030\003 \001(\r\022\027\n\017gachaScheduleId\030\004 \001(\r\022\020\n" + - "\010gachaTag\030\005 \001(\tB\033\n\031emu.grasscutter.net.p" + - "rotob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_DoGachaReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_DoGachaReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_DoGachaReq_descriptor, - new java.lang.String[] { "GachaType", "GachaTimes", "GachaRandom", "GachaScheduleId", "GachaTag", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/DoGachaRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/DoGachaRspOuterClass.java deleted file mode 100644 index 2b5367c78..000000000 --- a/src/main/java/emu/grasscutter/net/proto/DoGachaRspOuterClass.java +++ /dev/null @@ -1,1620 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: DoGachaRsp.proto - -package emu.grasscutter.net.proto; - -public final class DoGachaRspOuterClass { - private DoGachaRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DoGachaRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:DoGachaRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint32 gachaType = 2;</code> - * @return The gachaType. - */ - int getGachaType(); - - /** - * <code>uint32 gachaTimes = 3;</code> - * @return The gachaTimes. - */ - int getGachaTimes(); - - /** - * <code>uint32 gachaScheduleId = 4;</code> - * @return The gachaScheduleId. - */ - int getGachaScheduleId(); - - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - java.util.List<emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem> - getGachaItemListList(); - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem getGachaItemList(int index); - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - int getGachaItemListCount(); - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder> - getGachaItemListOrBuilderList(); - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder getGachaItemListOrBuilder( - int index); - - /** - * <code>uint32 newGachaRandom = 6;</code> - * @return The newGachaRandom. - */ - int getNewGachaRandom(); - - /** - * <code>uint32 costItemId = 7;</code> - * @return The costItemId. - */ - int getCostItemId(); - - /** - * <code>uint32 costItemNum = 8;</code> - * @return The costItemNum. - */ - int getCostItemNum(); - - /** - * <code>uint32 tenCostItemId = 9;</code> - * @return The tenCostItemId. - */ - int getTenCostItemId(); - - /** - * <code>uint32 tenCostItemNum = 10;</code> - * @return The tenCostItemNum. - */ - int getTenCostItemNum(); - - /** - * <code>uint32 leftGachaTimes = 11;</code> - * @return The leftGachaTimes. - */ - int getLeftGachaTimes(); - - /** - * <code>uint32 gachaTimesLimit = 12;</code> - * @return The gachaTimesLimit. - */ - int getGachaTimesLimit(); - } - /** - * Protobuf type {@code DoGachaRsp} - */ - public static final class DoGachaRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:DoGachaRsp) - DoGachaRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use DoGachaRsp.newBuilder() to construct. - private DoGachaRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private DoGachaRsp() { - gachaItemList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DoGachaRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DoGachaRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - gachaType_ = input.readUInt32(); - break; - } - case 24: { - - gachaTimes_ = input.readUInt32(); - break; - } - case 32: { - - gachaScheduleId_ = input.readUInt32(); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - gachaItemList_ = new java.util.ArrayList<emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem>(); - mutable_bitField0_ |= 0x00000001; - } - gachaItemList_.add( - input.readMessage(emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.parser(), extensionRegistry)); - break; - } - case 48: { - - newGachaRandom_ = input.readUInt32(); - break; - } - case 56: { - - costItemId_ = input.readUInt32(); - break; - } - case 64: { - - costItemNum_ = input.readUInt32(); - break; - } - case 72: { - - tenCostItemId_ = input.readUInt32(); - break; - } - case 80: { - - tenCostItemNum_ = input.readUInt32(); - break; - } - case 88: { - - leftGachaTimes_ = input.readUInt32(); - break; - } - case 96: { - - gachaTimesLimit_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - gachaItemList_ = java.util.Collections.unmodifiableList(gachaItemList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DoGachaRspOuterClass.internal_static_DoGachaRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DoGachaRspOuterClass.internal_static_DoGachaRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp.class, emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int GACHATYPE_FIELD_NUMBER = 2; - private int gachaType_; - /** - * <code>uint32 gachaType = 2;</code> - * @return The gachaType. - */ - @java.lang.Override - public int getGachaType() { - return gachaType_; - } - - public static final int GACHATIMES_FIELD_NUMBER = 3; - private int gachaTimes_; - /** - * <code>uint32 gachaTimes = 3;</code> - * @return The gachaTimes. - */ - @java.lang.Override - public int getGachaTimes() { - return gachaTimes_; - } - - public static final int GACHASCHEDULEID_FIELD_NUMBER = 4; - private int gachaScheduleId_; - /** - * <code>uint32 gachaScheduleId = 4;</code> - * @return The gachaScheduleId. - */ - @java.lang.Override - public int getGachaScheduleId() { - return gachaScheduleId_; - } - - public static final int GACHAITEMLIST_FIELD_NUMBER = 5; - private java.util.List<emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem> gachaItemList_; - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem> getGachaItemListList() { - return gachaItemList_; - } - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder> - getGachaItemListOrBuilderList() { - return gachaItemList_; - } - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - @java.lang.Override - public int getGachaItemListCount() { - return gachaItemList_.size(); - } - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem getGachaItemList(int index) { - return gachaItemList_.get(index); - } - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder getGachaItemListOrBuilder( - int index) { - return gachaItemList_.get(index); - } - - public static final int NEWGACHARANDOM_FIELD_NUMBER = 6; - private int newGachaRandom_; - /** - * <code>uint32 newGachaRandom = 6;</code> - * @return The newGachaRandom. - */ - @java.lang.Override - public int getNewGachaRandom() { - return newGachaRandom_; - } - - public static final int COSTITEMID_FIELD_NUMBER = 7; - private int costItemId_; - /** - * <code>uint32 costItemId = 7;</code> - * @return The costItemId. - */ - @java.lang.Override - public int getCostItemId() { - return costItemId_; - } - - public static final int COSTITEMNUM_FIELD_NUMBER = 8; - private int costItemNum_; - /** - * <code>uint32 costItemNum = 8;</code> - * @return The costItemNum. - */ - @java.lang.Override - public int getCostItemNum() { - return costItemNum_; - } - - public static final int TENCOSTITEMID_FIELD_NUMBER = 9; - private int tenCostItemId_; - /** - * <code>uint32 tenCostItemId = 9;</code> - * @return The tenCostItemId. - */ - @java.lang.Override - public int getTenCostItemId() { - return tenCostItemId_; - } - - public static final int TENCOSTITEMNUM_FIELD_NUMBER = 10; - private int tenCostItemNum_; - /** - * <code>uint32 tenCostItemNum = 10;</code> - * @return The tenCostItemNum. - */ - @java.lang.Override - public int getTenCostItemNum() { - return tenCostItemNum_; - } - - public static final int LEFTGACHATIMES_FIELD_NUMBER = 11; - private int leftGachaTimes_; - /** - * <code>uint32 leftGachaTimes = 11;</code> - * @return The leftGachaTimes. - */ - @java.lang.Override - public int getLeftGachaTimes() { - return leftGachaTimes_; - } - - public static final int GACHATIMESLIMIT_FIELD_NUMBER = 12; - private int gachaTimesLimit_; - /** - * <code>uint32 gachaTimesLimit = 12;</code> - * @return The gachaTimesLimit. - */ - @java.lang.Override - public int getGachaTimesLimit() { - return gachaTimesLimit_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (gachaType_ != 0) { - output.writeUInt32(2, gachaType_); - } - if (gachaTimes_ != 0) { - output.writeUInt32(3, gachaTimes_); - } - if (gachaScheduleId_ != 0) { - output.writeUInt32(4, gachaScheduleId_); - } - for (int i = 0; i < gachaItemList_.size(); i++) { - output.writeMessage(5, gachaItemList_.get(i)); - } - if (newGachaRandom_ != 0) { - output.writeUInt32(6, newGachaRandom_); - } - if (costItemId_ != 0) { - output.writeUInt32(7, costItemId_); - } - if (costItemNum_ != 0) { - output.writeUInt32(8, costItemNum_); - } - if (tenCostItemId_ != 0) { - output.writeUInt32(9, tenCostItemId_); - } - if (tenCostItemNum_ != 0) { - output.writeUInt32(10, tenCostItemNum_); - } - if (leftGachaTimes_ != 0) { - output.writeUInt32(11, leftGachaTimes_); - } - if (gachaTimesLimit_ != 0) { - output.writeUInt32(12, gachaTimesLimit_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (gachaType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, gachaType_); - } - if (gachaTimes_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, gachaTimes_); - } - if (gachaScheduleId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, gachaScheduleId_); - } - for (int i = 0; i < gachaItemList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, gachaItemList_.get(i)); - } - if (newGachaRandom_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, newGachaRandom_); - } - if (costItemId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(7, costItemId_); - } - if (costItemNum_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(8, costItemNum_); - } - if (tenCostItemId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(9, tenCostItemId_); - } - if (tenCostItemNum_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(10, tenCostItemNum_); - } - if (leftGachaTimes_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(11, leftGachaTimes_); - } - if (gachaTimesLimit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(12, gachaTimesLimit_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp other = (emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getGachaType() - != other.getGachaType()) return false; - if (getGachaTimes() - != other.getGachaTimes()) return false; - if (getGachaScheduleId() - != other.getGachaScheduleId()) return false; - if (!getGachaItemListList() - .equals(other.getGachaItemListList())) return false; - if (getNewGachaRandom() - != other.getNewGachaRandom()) return false; - if (getCostItemId() - != other.getCostItemId()) return false; - if (getCostItemNum() - != other.getCostItemNum()) return false; - if (getTenCostItemId() - != other.getTenCostItemId()) return false; - if (getTenCostItemNum() - != other.getTenCostItemNum()) return false; - if (getLeftGachaTimes() - != other.getLeftGachaTimes()) return false; - if (getGachaTimesLimit() - != other.getGachaTimesLimit()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + GACHATYPE_FIELD_NUMBER; - hash = (53 * hash) + getGachaType(); - hash = (37 * hash) + GACHATIMES_FIELD_NUMBER; - hash = (53 * hash) + getGachaTimes(); - hash = (37 * hash) + GACHASCHEDULEID_FIELD_NUMBER; - hash = (53 * hash) + getGachaScheduleId(); - if (getGachaItemListCount() > 0) { - hash = (37 * hash) + GACHAITEMLIST_FIELD_NUMBER; - hash = (53 * hash) + getGachaItemListList().hashCode(); - } - hash = (37 * hash) + NEWGACHARANDOM_FIELD_NUMBER; - hash = (53 * hash) + getNewGachaRandom(); - hash = (37 * hash) + COSTITEMID_FIELD_NUMBER; - hash = (53 * hash) + getCostItemId(); - hash = (37 * hash) + COSTITEMNUM_FIELD_NUMBER; - hash = (53 * hash) + getCostItemNum(); - hash = (37 * hash) + TENCOSTITEMID_FIELD_NUMBER; - hash = (53 * hash) + getTenCostItemId(); - hash = (37 * hash) + TENCOSTITEMNUM_FIELD_NUMBER; - hash = (53 * hash) + getTenCostItemNum(); - hash = (37 * hash) + LEFTGACHATIMES_FIELD_NUMBER; - hash = (53 * hash) + getLeftGachaTimes(); - hash = (37 * hash) + GACHATIMESLIMIT_FIELD_NUMBER; - hash = (53 * hash) + getGachaTimesLimit(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code DoGachaRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:DoGachaRsp) - emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DoGachaRspOuterClass.internal_static_DoGachaRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DoGachaRspOuterClass.internal_static_DoGachaRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp.class, emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getGachaItemListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - gachaType_ = 0; - - gachaTimes_ = 0; - - gachaScheduleId_ = 0; - - if (gachaItemListBuilder_ == null) { - gachaItemList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - gachaItemListBuilder_.clear(); - } - newGachaRandom_ = 0; - - costItemId_ = 0; - - costItemNum_ = 0; - - tenCostItemId_ = 0; - - tenCostItemNum_ = 0; - - leftGachaTimes_ = 0; - - gachaTimesLimit_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.DoGachaRspOuterClass.internal_static_DoGachaRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp build() { - emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp buildPartial() { - emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp result = new emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp(this); - int from_bitField0_ = bitField0_; - result.retcode_ = retcode_; - result.gachaType_ = gachaType_; - result.gachaTimes_ = gachaTimes_; - result.gachaScheduleId_ = gachaScheduleId_; - if (gachaItemListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - gachaItemList_ = java.util.Collections.unmodifiableList(gachaItemList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.gachaItemList_ = gachaItemList_; - } else { - result.gachaItemList_ = gachaItemListBuilder_.build(); - } - result.newGachaRandom_ = newGachaRandom_; - result.costItemId_ = costItemId_; - result.costItemNum_ = costItemNum_; - result.tenCostItemId_ = tenCostItemId_; - result.tenCostItemNum_ = tenCostItemNum_; - result.leftGachaTimes_ = leftGachaTimes_; - result.gachaTimesLimit_ = gachaTimesLimit_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp) { - return mergeFrom((emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp other) { - if (other == emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getGachaType() != 0) { - setGachaType(other.getGachaType()); - } - if (other.getGachaTimes() != 0) { - setGachaTimes(other.getGachaTimes()); - } - if (other.getGachaScheduleId() != 0) { - setGachaScheduleId(other.getGachaScheduleId()); - } - if (gachaItemListBuilder_ == null) { - if (!other.gachaItemList_.isEmpty()) { - if (gachaItemList_.isEmpty()) { - gachaItemList_ = other.gachaItemList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureGachaItemListIsMutable(); - gachaItemList_.addAll(other.gachaItemList_); - } - onChanged(); - } - } else { - if (!other.gachaItemList_.isEmpty()) { - if (gachaItemListBuilder_.isEmpty()) { - gachaItemListBuilder_.dispose(); - gachaItemListBuilder_ = null; - gachaItemList_ = other.gachaItemList_; - bitField0_ = (bitField0_ & ~0x00000001); - gachaItemListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGachaItemListFieldBuilder() : null; - } else { - gachaItemListBuilder_.addAllMessages(other.gachaItemList_); - } - } - } - if (other.getNewGachaRandom() != 0) { - setNewGachaRandom(other.getNewGachaRandom()); - } - if (other.getCostItemId() != 0) { - setCostItemId(other.getCostItemId()); - } - if (other.getCostItemNum() != 0) { - setCostItemNum(other.getCostItemNum()); - } - if (other.getTenCostItemId() != 0) { - setTenCostItemId(other.getTenCostItemId()); - } - if (other.getTenCostItemNum() != 0) { - setTenCostItemNum(other.getTenCostItemNum()); - } - if (other.getLeftGachaTimes() != 0) { - setLeftGachaTimes(other.getLeftGachaTimes()); - } - if (other.getGachaTimesLimit() != 0) { - setGachaTimesLimit(other.getGachaTimesLimit()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int gachaType_ ; - /** - * <code>uint32 gachaType = 2;</code> - * @return The gachaType. - */ - @java.lang.Override - public int getGachaType() { - return gachaType_; - } - /** - * <code>uint32 gachaType = 2;</code> - * @param value The gachaType to set. - * @return This builder for chaining. - */ - public Builder setGachaType(int value) { - - gachaType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gachaType = 2;</code> - * @return This builder for chaining. - */ - public Builder clearGachaType() { - - gachaType_ = 0; - onChanged(); - return this; - } - - private int gachaTimes_ ; - /** - * <code>uint32 gachaTimes = 3;</code> - * @return The gachaTimes. - */ - @java.lang.Override - public int getGachaTimes() { - return gachaTimes_; - } - /** - * <code>uint32 gachaTimes = 3;</code> - * @param value The gachaTimes to set. - * @return This builder for chaining. - */ - public Builder setGachaTimes(int value) { - - gachaTimes_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gachaTimes = 3;</code> - * @return This builder for chaining. - */ - public Builder clearGachaTimes() { - - gachaTimes_ = 0; - onChanged(); - return this; - } - - private int gachaScheduleId_ ; - /** - * <code>uint32 gachaScheduleId = 4;</code> - * @return The gachaScheduleId. - */ - @java.lang.Override - public int getGachaScheduleId() { - return gachaScheduleId_; - } - /** - * <code>uint32 gachaScheduleId = 4;</code> - * @param value The gachaScheduleId to set. - * @return This builder for chaining. - */ - public Builder setGachaScheduleId(int value) { - - gachaScheduleId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gachaScheduleId = 4;</code> - * @return This builder for chaining. - */ - public Builder clearGachaScheduleId() { - - gachaScheduleId_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem> gachaItemList_ = - java.util.Collections.emptyList(); - private void ensureGachaItemListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - gachaItemList_ = new java.util.ArrayList<emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem>(gachaItemList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder> gachaItemListBuilder_; - - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - public java.util.List<emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem> getGachaItemListList() { - if (gachaItemListBuilder_ == null) { - return java.util.Collections.unmodifiableList(gachaItemList_); - } else { - return gachaItemListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - public int getGachaItemListCount() { - if (gachaItemListBuilder_ == null) { - return gachaItemList_.size(); - } else { - return gachaItemListBuilder_.getCount(); - } - } - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem getGachaItemList(int index) { - if (gachaItemListBuilder_ == null) { - return gachaItemList_.get(index); - } else { - return gachaItemListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - public Builder setGachaItemList( - int index, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem value) { - if (gachaItemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGachaItemListIsMutable(); - gachaItemList_.set(index, value); - onChanged(); - } else { - gachaItemListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - public Builder setGachaItemList( - int index, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder builderForValue) { - if (gachaItemListBuilder_ == null) { - ensureGachaItemListIsMutable(); - gachaItemList_.set(index, builderForValue.build()); - onChanged(); - } else { - gachaItemListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - public Builder addGachaItemList(emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem value) { - if (gachaItemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGachaItemListIsMutable(); - gachaItemList_.add(value); - onChanged(); - } else { - gachaItemListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - public Builder addGachaItemList( - int index, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem value) { - if (gachaItemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGachaItemListIsMutable(); - gachaItemList_.add(index, value); - onChanged(); - } else { - gachaItemListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - public Builder addGachaItemList( - emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder builderForValue) { - if (gachaItemListBuilder_ == null) { - ensureGachaItemListIsMutable(); - gachaItemList_.add(builderForValue.build()); - onChanged(); - } else { - gachaItemListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - public Builder addGachaItemList( - int index, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder builderForValue) { - if (gachaItemListBuilder_ == null) { - ensureGachaItemListIsMutable(); - gachaItemList_.add(index, builderForValue.build()); - onChanged(); - } else { - gachaItemListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - public Builder addAllGachaItemList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem> values) { - if (gachaItemListBuilder_ == null) { - ensureGachaItemListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, gachaItemList_); - onChanged(); - } else { - gachaItemListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - public Builder clearGachaItemList() { - if (gachaItemListBuilder_ == null) { - gachaItemList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - gachaItemListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - public Builder removeGachaItemList(int index) { - if (gachaItemListBuilder_ == null) { - ensureGachaItemListIsMutable(); - gachaItemList_.remove(index); - onChanged(); - } else { - gachaItemListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder getGachaItemListBuilder( - int index) { - return getGachaItemListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder getGachaItemListOrBuilder( - int index) { - if (gachaItemListBuilder_ == null) { - return gachaItemList_.get(index); } else { - return gachaItemListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder> - getGachaItemListOrBuilderList() { - if (gachaItemListBuilder_ != null) { - return gachaItemListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(gachaItemList_); - } - } - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder addGachaItemListBuilder() { - return getGachaItemListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.getDefaultInstance()); - } - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder addGachaItemListBuilder( - int index) { - return getGachaItemListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.getDefaultInstance()); - } - /** - * <code>repeated .GachaItem gachaItemList = 5;</code> - */ - public java.util.List<emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder> - getGachaItemListBuilderList() { - return getGachaItemListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder> - getGachaItemListFieldBuilder() { - if (gachaItemListBuilder_ == null) { - gachaItemListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder>( - gachaItemList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - gachaItemList_ = null; - } - return gachaItemListBuilder_; - } - - private int newGachaRandom_ ; - /** - * <code>uint32 newGachaRandom = 6;</code> - * @return The newGachaRandom. - */ - @java.lang.Override - public int getNewGachaRandom() { - return newGachaRandom_; - } - /** - * <code>uint32 newGachaRandom = 6;</code> - * @param value The newGachaRandom to set. - * @return This builder for chaining. - */ - public Builder setNewGachaRandom(int value) { - - newGachaRandom_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 newGachaRandom = 6;</code> - * @return This builder for chaining. - */ - public Builder clearNewGachaRandom() { - - newGachaRandom_ = 0; - onChanged(); - return this; - } - - private int costItemId_ ; - /** - * <code>uint32 costItemId = 7;</code> - * @return The costItemId. - */ - @java.lang.Override - public int getCostItemId() { - return costItemId_; - } - /** - * <code>uint32 costItemId = 7;</code> - * @param value The costItemId to set. - * @return This builder for chaining. - */ - public Builder setCostItemId(int value) { - - costItemId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 costItemId = 7;</code> - * @return This builder for chaining. - */ - public Builder clearCostItemId() { - - costItemId_ = 0; - onChanged(); - return this; - } - - private int costItemNum_ ; - /** - * <code>uint32 costItemNum = 8;</code> - * @return The costItemNum. - */ - @java.lang.Override - public int getCostItemNum() { - return costItemNum_; - } - /** - * <code>uint32 costItemNum = 8;</code> - * @param value The costItemNum to set. - * @return This builder for chaining. - */ - public Builder setCostItemNum(int value) { - - costItemNum_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 costItemNum = 8;</code> - * @return This builder for chaining. - */ - public Builder clearCostItemNum() { - - costItemNum_ = 0; - onChanged(); - return this; - } - - private int tenCostItemId_ ; - /** - * <code>uint32 tenCostItemId = 9;</code> - * @return The tenCostItemId. - */ - @java.lang.Override - public int getTenCostItemId() { - return tenCostItemId_; - } - /** - * <code>uint32 tenCostItemId = 9;</code> - * @param value The tenCostItemId to set. - * @return This builder for chaining. - */ - public Builder setTenCostItemId(int value) { - - tenCostItemId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 tenCostItemId = 9;</code> - * @return This builder for chaining. - */ - public Builder clearTenCostItemId() { - - tenCostItemId_ = 0; - onChanged(); - return this; - } - - private int tenCostItemNum_ ; - /** - * <code>uint32 tenCostItemNum = 10;</code> - * @return The tenCostItemNum. - */ - @java.lang.Override - public int getTenCostItemNum() { - return tenCostItemNum_; - } - /** - * <code>uint32 tenCostItemNum = 10;</code> - * @param value The tenCostItemNum to set. - * @return This builder for chaining. - */ - public Builder setTenCostItemNum(int value) { - - tenCostItemNum_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 tenCostItemNum = 10;</code> - * @return This builder for chaining. - */ - public Builder clearTenCostItemNum() { - - tenCostItemNum_ = 0; - onChanged(); - return this; - } - - private int leftGachaTimes_ ; - /** - * <code>uint32 leftGachaTimes = 11;</code> - * @return The leftGachaTimes. - */ - @java.lang.Override - public int getLeftGachaTimes() { - return leftGachaTimes_; - } - /** - * <code>uint32 leftGachaTimes = 11;</code> - * @param value The leftGachaTimes to set. - * @return This builder for chaining. - */ - public Builder setLeftGachaTimes(int value) { - - leftGachaTimes_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 leftGachaTimes = 11;</code> - * @return This builder for chaining. - */ - public Builder clearLeftGachaTimes() { - - leftGachaTimes_ = 0; - onChanged(); - return this; - } - - private int gachaTimesLimit_ ; - /** - * <code>uint32 gachaTimesLimit = 12;</code> - * @return The gachaTimesLimit. - */ - @java.lang.Override - public int getGachaTimesLimit() { - return gachaTimesLimit_; - } - /** - * <code>uint32 gachaTimesLimit = 12;</code> - * @param value The gachaTimesLimit to set. - * @return This builder for chaining. - */ - public Builder setGachaTimesLimit(int value) { - - gachaTimesLimit_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gachaTimesLimit = 12;</code> - * @return This builder for chaining. - */ - public Builder clearGachaTimesLimit() { - - gachaTimesLimit_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:DoGachaRsp) - } - - // @@protoc_insertion_point(class_scope:DoGachaRsp) - private static final emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp(); - } - - public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<DoGachaRsp> - PARSER = new com.google.protobuf.AbstractParser<DoGachaRsp>() { - @java.lang.Override - public DoGachaRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DoGachaRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<DoGachaRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<DoGachaRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_DoGachaRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_DoGachaRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020DoGachaRsp.proto\032\017GachaItem.proto\"\241\002\n\n" + - "DoGachaRsp\022\017\n\007retcode\030\001 \001(\005\022\021\n\tgachaType" + - "\030\002 \001(\r\022\022\n\ngachaTimes\030\003 \001(\r\022\027\n\017gachaSched" + - "uleId\030\004 \001(\r\022!\n\rgachaItemList\030\005 \003(\0132\n.Gac" + - "haItem\022\026\n\016newGachaRandom\030\006 \001(\r\022\022\n\ncostIt" + - "emId\030\007 \001(\r\022\023\n\013costItemNum\030\010 \001(\r\022\025\n\rtenCo" + - "stItemId\030\t \001(\r\022\026\n\016tenCostItemNum\030\n \001(\r\022\026" + - "\n\016leftGachaTimes\030\013 \001(\r\022\027\n\017gachaTimesLimi" + - "t\030\014 \001(\rB\033\n\031emu.grasscutter.net.protob\006pr" + - "oto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.GachaItemOuterClass.getDescriptor(), - }); - internal_static_DoGachaRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_DoGachaRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_DoGachaRsp_descriptor, - new java.lang.String[] { "Retcode", "GachaType", "GachaTimes", "GachaScheduleId", "GachaItemList", "NewGachaRandom", "CostItemId", "CostItemNum", "TenCostItemId", "TenCostItemNum", "LeftGachaTimes", "GachaTimesLimit", }); - emu.grasscutter.net.proto.GachaItemOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/DropHintNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/DropHintNotifyOuterClass.java deleted file mode 100644 index 729349228..000000000 --- a/src/main/java/emu/grasscutter/net/proto/DropHintNotifyOuterClass.java +++ /dev/null @@ -1,869 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: DropHintNotify.proto - -package emu.grasscutter.net.proto; - -public final class DropHintNotifyOuterClass { - private DropHintNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DropHintNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:DropHintNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated uint32 itemIdList = 1;</code> - * @return A list containing the itemIdList. - */ - java.util.List<java.lang.Integer> getItemIdListList(); - /** - * <code>repeated uint32 itemIdList = 1;</code> - * @return The count of itemIdList. - */ - int getItemIdListCount(); - /** - * <code>repeated uint32 itemIdList = 1;</code> - * @param index The index of the element to return. - * @return The itemIdList at the given index. - */ - int getItemIdList(int index); - - /** - * <code>.Vector position = 2;</code> - * @return Whether the position field is set. - */ - boolean hasPosition(); - /** - * <code>.Vector position = 2;</code> - * @return The position. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getPosition(); - /** - * <code>.Vector position = 2;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPositionOrBuilder(); - } - /** - * Protobuf type {@code DropHintNotify} - */ - public static final class DropHintNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:DropHintNotify) - DropHintNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use DropHintNotify.newBuilder() to construct. - private DropHintNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private DropHintNotify() { - itemIdList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DropHintNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DropHintNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - itemIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - itemIdList_.addInt(input.readUInt32()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - itemIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - itemIdList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 18: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (position_ != null) { - subBuilder = position_.toBuilder(); - } - position_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(position_); - position_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - itemIdList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DropHintNotifyOuterClass.internal_static_DropHintNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DropHintNotifyOuterClass.internal_static_DropHintNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify.class, emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify.Builder.class); - } - - public static final int ITEMIDLIST_FIELD_NUMBER = 1; - private com.google.protobuf.Internal.IntList itemIdList_; - /** - * <code>repeated uint32 itemIdList = 1;</code> - * @return A list containing the itemIdList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getItemIdListList() { - return itemIdList_; - } - /** - * <code>repeated uint32 itemIdList = 1;</code> - * @return The count of itemIdList. - */ - public int getItemIdListCount() { - return itemIdList_.size(); - } - /** - * <code>repeated uint32 itemIdList = 1;</code> - * @param index The index of the element to return. - * @return The itemIdList at the given index. - */ - public int getItemIdList(int index) { - return itemIdList_.getInt(index); - } - private int itemIdListMemoizedSerializedSize = -1; - - public static final int POSITION_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.VectorOuterClass.Vector position_; - /** - * <code>.Vector position = 2;</code> - * @return Whether the position field is set. - */ - @java.lang.Override - public boolean hasPosition() { - return position_ != null; - } - /** - * <code>.Vector position = 2;</code> - * @return The position. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getPosition() { - return position_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : position_; - } - /** - * <code>.Vector position = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPositionOrBuilder() { - return getPosition(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getItemIdListList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(itemIdListMemoizedSerializedSize); - } - for (int i = 0; i < itemIdList_.size(); i++) { - output.writeUInt32NoTag(itemIdList_.getInt(i)); - } - if (position_ != null) { - output.writeMessage(2, getPosition()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < itemIdList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(itemIdList_.getInt(i)); - } - size += dataSize; - if (!getItemIdListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - itemIdListMemoizedSerializedSize = dataSize; - } - if (position_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPosition()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify other = (emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify) obj; - - if (!getItemIdListList() - .equals(other.getItemIdListList())) return false; - if (hasPosition() != other.hasPosition()) return false; - if (hasPosition()) { - if (!getPosition() - .equals(other.getPosition())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getItemIdListCount() > 0) { - hash = (37 * hash) + ITEMIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getItemIdListList().hashCode(); - } - if (hasPosition()) { - hash = (37 * hash) + POSITION_FIELD_NUMBER; - hash = (53 * hash) + getPosition().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code DropHintNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:DropHintNotify) - emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DropHintNotifyOuterClass.internal_static_DropHintNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DropHintNotifyOuterClass.internal_static_DropHintNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify.class, emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - itemIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - if (positionBuilder_ == null) { - position_ = null; - } else { - position_ = null; - positionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.DropHintNotifyOuterClass.internal_static_DropHintNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify build() { - emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify buildPartial() { - emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify result = new emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - itemIdList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.itemIdList_ = itemIdList_; - if (positionBuilder_ == null) { - result.position_ = position_; - } else { - result.position_ = positionBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify) { - return mergeFrom((emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify other) { - if (other == emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify.getDefaultInstance()) return this; - if (!other.itemIdList_.isEmpty()) { - if (itemIdList_.isEmpty()) { - itemIdList_ = other.itemIdList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureItemIdListIsMutable(); - itemIdList_.addAll(other.itemIdList_); - } - onChanged(); - } - if (other.hasPosition()) { - mergePosition(other.getPosition()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.Internal.IntList itemIdList_ = emptyIntList(); - private void ensureItemIdListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - itemIdList_ = mutableCopy(itemIdList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 itemIdList = 1;</code> - * @return A list containing the itemIdList. - */ - public java.util.List<java.lang.Integer> - getItemIdListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(itemIdList_) : itemIdList_; - } - /** - * <code>repeated uint32 itemIdList = 1;</code> - * @return The count of itemIdList. - */ - public int getItemIdListCount() { - return itemIdList_.size(); - } - /** - * <code>repeated uint32 itemIdList = 1;</code> - * @param index The index of the element to return. - * @return The itemIdList at the given index. - */ - public int getItemIdList(int index) { - return itemIdList_.getInt(index); - } - /** - * <code>repeated uint32 itemIdList = 1;</code> - * @param index The index to set the value at. - * @param value The itemIdList to set. - * @return This builder for chaining. - */ - public Builder setItemIdList( - int index, int value) { - ensureItemIdListIsMutable(); - itemIdList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 itemIdList = 1;</code> - * @param value The itemIdList to add. - * @return This builder for chaining. - */ - public Builder addItemIdList(int value) { - ensureItemIdListIsMutable(); - itemIdList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 itemIdList = 1;</code> - * @param values The itemIdList to add. - * @return This builder for chaining. - */ - public Builder addAllItemIdList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureItemIdListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, itemIdList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 itemIdList = 1;</code> - * @return This builder for chaining. - */ - public Builder clearItemIdList() { - itemIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.VectorOuterClass.Vector position_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> positionBuilder_; - /** - * <code>.Vector position = 2;</code> - * @return Whether the position field is set. - */ - public boolean hasPosition() { - return positionBuilder_ != null || position_ != null; - } - /** - * <code>.Vector position = 2;</code> - * @return The position. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getPosition() { - if (positionBuilder_ == null) { - return position_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : position_; - } else { - return positionBuilder_.getMessage(); - } - } - /** - * <code>.Vector position = 2;</code> - */ - public Builder setPosition(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (positionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - position_ = value; - onChanged(); - } else { - positionBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Vector position = 2;</code> - */ - public Builder setPosition( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (positionBuilder_ == null) { - position_ = builderForValue.build(); - onChanged(); - } else { - positionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Vector position = 2;</code> - */ - public Builder mergePosition(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (positionBuilder_ == null) { - if (position_ != null) { - position_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(position_).mergeFrom(value).buildPartial(); - } else { - position_ = value; - } - onChanged(); - } else { - positionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Vector position = 2;</code> - */ - public Builder clearPosition() { - if (positionBuilder_ == null) { - position_ = null; - onChanged(); - } else { - position_ = null; - positionBuilder_ = null; - } - - return this; - } - /** - * <code>.Vector position = 2;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getPositionBuilder() { - - onChanged(); - return getPositionFieldBuilder().getBuilder(); - } - /** - * <code>.Vector position = 2;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPositionOrBuilder() { - if (positionBuilder_ != null) { - return positionBuilder_.getMessageOrBuilder(); - } else { - return position_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : position_; - } - } - /** - * <code>.Vector position = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getPositionFieldBuilder() { - if (positionBuilder_ == null) { - positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getPosition(), - getParentForChildren(), - isClean()); - position_ = null; - } - return positionBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:DropHintNotify) - } - - // @@protoc_insertion_point(class_scope:DropHintNotify) - private static final emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify(); - } - - public static emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<DropHintNotify> - PARSER = new com.google.protobuf.AbstractParser<DropHintNotify>() { - @java.lang.Override - public DropHintNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DropHintNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<DropHintNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<DropHintNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DropHintNotifyOuterClass.DropHintNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_DropHintNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_DropHintNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024DropHintNotify.proto\032\014Vector.proto\"?\n\016" + - "DropHintNotify\022\022\n\nitemIdList\030\001 \003(\r\022\031\n\010po" + - "sition\030\002 \001(\0132\007.VectorB\033\n\031emu.grasscutter" + - ".net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(), - }); - internal_static_DropHintNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_DropHintNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_DropHintNotify_descriptor, - new java.lang.String[] { "ItemIdList", "Position", }); - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/DungeonEntryInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/DungeonEntryInfoOuterClass.java deleted file mode 100644 index 653c8664f..000000000 --- a/src/main/java/emu/grasscutter/net/proto/DungeonEntryInfoOuterClass.java +++ /dev/null @@ -1,1238 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: DungeonEntryInfo.proto - -package emu.grasscutter.net.proto; - -public final class DungeonEntryInfoOuterClass { - private DungeonEntryInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DungeonEntryInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:DungeonEntryInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 dungeonId = 1;</code> - * @return The dungeonId. - */ - int getDungeonId(); - - /** - * <code>bool isPassed = 2;</code> - * @return The isPassed. - */ - boolean getIsPassed(); - - /** - * <code>uint32 leftTimes = 3;</code> - * @return The leftTimes. - */ - int getLeftTimes(); - - /** - * <code>uint32 startTime = 4;</code> - * @return The startTime. - */ - int getStartTime(); - - /** - * <code>uint32 endTime = 5;</code> - * @return The endTime. - */ - int getEndTime(); - - /** - * <code>uint32 maxBossChestNum = 6;</code> - * @return The maxBossChestNum. - */ - int getMaxBossChestNum(); - - /** - * <code>uint32 bossChestNum = 7;</code> - * @return The bossChestNum. - */ - int getBossChestNum(); - - /** - * <code>uint32 nextRefreshTime = 8;</code> - * @return The nextRefreshTime. - */ - int getNextRefreshTime(); - - /** - * <code>.WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9;</code> - * @return Whether the weeklyBossResinDiscountInfo field is set. - */ - boolean hasWeeklyBossResinDiscountInfo(); - /** - * <code>.WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9;</code> - * @return The weeklyBossResinDiscountInfo. - */ - emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo getWeeklyBossResinDiscountInfo(); - /** - * <code>.WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9;</code> - */ - emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfoOrBuilder getWeeklyBossResinDiscountInfoOrBuilder(); - } - /** - * Protobuf type {@code DungeonEntryInfo} - */ - public static final class DungeonEntryInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:DungeonEntryInfo) - DungeonEntryInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use DungeonEntryInfo.newBuilder() to construct. - private DungeonEntryInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private DungeonEntryInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DungeonEntryInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DungeonEntryInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - dungeonId_ = input.readUInt32(); - break; - } - case 16: { - - isPassed_ = input.readBool(); - break; - } - case 24: { - - leftTimes_ = input.readUInt32(); - break; - } - case 32: { - - startTime_ = input.readUInt32(); - break; - } - case 40: { - - endTime_ = input.readUInt32(); - break; - } - case 48: { - - maxBossChestNum_ = input.readUInt32(); - break; - } - case 56: { - - bossChestNum_ = input.readUInt32(); - break; - } - case 64: { - - nextRefreshTime_ = input.readUInt32(); - break; - } - case 74: { - emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo.Builder subBuilder = null; - if (weeklyBossResinDiscountInfo_ != null) { - subBuilder = weeklyBossResinDiscountInfo_.toBuilder(); - } - weeklyBossResinDiscountInfo_ = input.readMessage(emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(weeklyBossResinDiscountInfo_); - weeklyBossResinDiscountInfo_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.internal_static_DungeonEntryInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.internal_static_DungeonEntryInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo.class, emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo.Builder.class); - } - - public static final int DUNGEONID_FIELD_NUMBER = 1; - private int dungeonId_; - /** - * <code>uint32 dungeonId = 1;</code> - * @return The dungeonId. - */ - @java.lang.Override - public int getDungeonId() { - return dungeonId_; - } - - public static final int ISPASSED_FIELD_NUMBER = 2; - private boolean isPassed_; - /** - * <code>bool isPassed = 2;</code> - * @return The isPassed. - */ - @java.lang.Override - public boolean getIsPassed() { - return isPassed_; - } - - public static final int LEFTTIMES_FIELD_NUMBER = 3; - private int leftTimes_; - /** - * <code>uint32 leftTimes = 3;</code> - * @return The leftTimes. - */ - @java.lang.Override - public int getLeftTimes() { - return leftTimes_; - } - - public static final int STARTTIME_FIELD_NUMBER = 4; - private int startTime_; - /** - * <code>uint32 startTime = 4;</code> - * @return The startTime. - */ - @java.lang.Override - public int getStartTime() { - return startTime_; - } - - public static final int ENDTIME_FIELD_NUMBER = 5; - private int endTime_; - /** - * <code>uint32 endTime = 5;</code> - * @return The endTime. - */ - @java.lang.Override - public int getEndTime() { - return endTime_; - } - - public static final int MAXBOSSCHESTNUM_FIELD_NUMBER = 6; - private int maxBossChestNum_; - /** - * <code>uint32 maxBossChestNum = 6;</code> - * @return The maxBossChestNum. - */ - @java.lang.Override - public int getMaxBossChestNum() { - return maxBossChestNum_; - } - - public static final int BOSSCHESTNUM_FIELD_NUMBER = 7; - private int bossChestNum_; - /** - * <code>uint32 bossChestNum = 7;</code> - * @return The bossChestNum. - */ - @java.lang.Override - public int getBossChestNum() { - return bossChestNum_; - } - - public static final int NEXTREFRESHTIME_FIELD_NUMBER = 8; - private int nextRefreshTime_; - /** - * <code>uint32 nextRefreshTime = 8;</code> - * @return The nextRefreshTime. - */ - @java.lang.Override - public int getNextRefreshTime() { - return nextRefreshTime_; - } - - public static final int WEEKLYBOSSRESINDISCOUNTINFO_FIELD_NUMBER = 9; - private emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo_; - /** - * <code>.WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9;</code> - * @return Whether the weeklyBossResinDiscountInfo field is set. - */ - @java.lang.Override - public boolean hasWeeklyBossResinDiscountInfo() { - return weeklyBossResinDiscountInfo_ != null; - } - /** - * <code>.WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9;</code> - * @return The weeklyBossResinDiscountInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo getWeeklyBossResinDiscountInfo() { - return weeklyBossResinDiscountInfo_ == null ? emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo.getDefaultInstance() : weeklyBossResinDiscountInfo_; - } - /** - * <code>.WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfoOrBuilder getWeeklyBossResinDiscountInfoOrBuilder() { - return getWeeklyBossResinDiscountInfo(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (dungeonId_ != 0) { - output.writeUInt32(1, dungeonId_); - } - if (isPassed_ != false) { - output.writeBool(2, isPassed_); - } - if (leftTimes_ != 0) { - output.writeUInt32(3, leftTimes_); - } - if (startTime_ != 0) { - output.writeUInt32(4, startTime_); - } - if (endTime_ != 0) { - output.writeUInt32(5, endTime_); - } - if (maxBossChestNum_ != 0) { - output.writeUInt32(6, maxBossChestNum_); - } - if (bossChestNum_ != 0) { - output.writeUInt32(7, bossChestNum_); - } - if (nextRefreshTime_ != 0) { - output.writeUInt32(8, nextRefreshTime_); - } - if (weeklyBossResinDiscountInfo_ != null) { - output.writeMessage(9, getWeeklyBossResinDiscountInfo()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dungeonId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, dungeonId_); - } - if (isPassed_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isPassed_); - } - if (leftTimes_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, leftTimes_); - } - if (startTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, startTime_); - } - if (endTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, endTime_); - } - if (maxBossChestNum_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, maxBossChestNum_); - } - if (bossChestNum_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(7, bossChestNum_); - } - if (nextRefreshTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(8, nextRefreshTime_); - } - if (weeklyBossResinDiscountInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getWeeklyBossResinDiscountInfo()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo other = (emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo) obj; - - if (getDungeonId() - != other.getDungeonId()) return false; - if (getIsPassed() - != other.getIsPassed()) return false; - if (getLeftTimes() - != other.getLeftTimes()) return false; - if (getStartTime() - != other.getStartTime()) return false; - if (getEndTime() - != other.getEndTime()) return false; - if (getMaxBossChestNum() - != other.getMaxBossChestNum()) return false; - if (getBossChestNum() - != other.getBossChestNum()) return false; - if (getNextRefreshTime() - != other.getNextRefreshTime()) return false; - if (hasWeeklyBossResinDiscountInfo() != other.hasWeeklyBossResinDiscountInfo()) return false; - if (hasWeeklyBossResinDiscountInfo()) { - if (!getWeeklyBossResinDiscountInfo() - .equals(other.getWeeklyBossResinDiscountInfo())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DUNGEONID_FIELD_NUMBER; - hash = (53 * hash) + getDungeonId(); - hash = (37 * hash) + ISPASSED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsPassed()); - hash = (37 * hash) + LEFTTIMES_FIELD_NUMBER; - hash = (53 * hash) + getLeftTimes(); - hash = (37 * hash) + STARTTIME_FIELD_NUMBER; - hash = (53 * hash) + getStartTime(); - hash = (37 * hash) + ENDTIME_FIELD_NUMBER; - hash = (53 * hash) + getEndTime(); - hash = (37 * hash) + MAXBOSSCHESTNUM_FIELD_NUMBER; - hash = (53 * hash) + getMaxBossChestNum(); - hash = (37 * hash) + BOSSCHESTNUM_FIELD_NUMBER; - hash = (53 * hash) + getBossChestNum(); - hash = (37 * hash) + NEXTREFRESHTIME_FIELD_NUMBER; - hash = (53 * hash) + getNextRefreshTime(); - if (hasWeeklyBossResinDiscountInfo()) { - hash = (37 * hash) + WEEKLYBOSSRESINDISCOUNTINFO_FIELD_NUMBER; - hash = (53 * hash) + getWeeklyBossResinDiscountInfo().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code DungeonEntryInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:DungeonEntryInfo) - emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.internal_static_DungeonEntryInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.internal_static_DungeonEntryInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo.class, emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - dungeonId_ = 0; - - isPassed_ = false; - - leftTimes_ = 0; - - startTime_ = 0; - - endTime_ = 0; - - maxBossChestNum_ = 0; - - bossChestNum_ = 0; - - nextRefreshTime_ = 0; - - if (weeklyBossResinDiscountInfoBuilder_ == null) { - weeklyBossResinDiscountInfo_ = null; - } else { - weeklyBossResinDiscountInfo_ = null; - weeklyBossResinDiscountInfoBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.internal_static_DungeonEntryInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo build() { - emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo buildPartial() { - emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo result = new emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo(this); - result.dungeonId_ = dungeonId_; - result.isPassed_ = isPassed_; - result.leftTimes_ = leftTimes_; - result.startTime_ = startTime_; - result.endTime_ = endTime_; - result.maxBossChestNum_ = maxBossChestNum_; - result.bossChestNum_ = bossChestNum_; - result.nextRefreshTime_ = nextRefreshTime_; - if (weeklyBossResinDiscountInfoBuilder_ == null) { - result.weeklyBossResinDiscountInfo_ = weeklyBossResinDiscountInfo_; - } else { - result.weeklyBossResinDiscountInfo_ = weeklyBossResinDiscountInfoBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo) { - return mergeFrom((emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo other) { - if (other == emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo.getDefaultInstance()) return this; - if (other.getDungeonId() != 0) { - setDungeonId(other.getDungeonId()); - } - if (other.getIsPassed() != false) { - setIsPassed(other.getIsPassed()); - } - if (other.getLeftTimes() != 0) { - setLeftTimes(other.getLeftTimes()); - } - if (other.getStartTime() != 0) { - setStartTime(other.getStartTime()); - } - if (other.getEndTime() != 0) { - setEndTime(other.getEndTime()); - } - if (other.getMaxBossChestNum() != 0) { - setMaxBossChestNum(other.getMaxBossChestNum()); - } - if (other.getBossChestNum() != 0) { - setBossChestNum(other.getBossChestNum()); - } - if (other.getNextRefreshTime() != 0) { - setNextRefreshTime(other.getNextRefreshTime()); - } - if (other.hasWeeklyBossResinDiscountInfo()) { - mergeWeeklyBossResinDiscountInfo(other.getWeeklyBossResinDiscountInfo()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int dungeonId_ ; - /** - * <code>uint32 dungeonId = 1;</code> - * @return The dungeonId. - */ - @java.lang.Override - public int getDungeonId() { - return dungeonId_; - } - /** - * <code>uint32 dungeonId = 1;</code> - * @param value The dungeonId to set. - * @return This builder for chaining. - */ - public Builder setDungeonId(int value) { - - dungeonId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 dungeonId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearDungeonId() { - - dungeonId_ = 0; - onChanged(); - return this; - } - - private boolean isPassed_ ; - /** - * <code>bool isPassed = 2;</code> - * @return The isPassed. - */ - @java.lang.Override - public boolean getIsPassed() { - return isPassed_; - } - /** - * <code>bool isPassed = 2;</code> - * @param value The isPassed to set. - * @return This builder for chaining. - */ - public Builder setIsPassed(boolean value) { - - isPassed_ = value; - onChanged(); - return this; - } - /** - * <code>bool isPassed = 2;</code> - * @return This builder for chaining. - */ - public Builder clearIsPassed() { - - isPassed_ = false; - onChanged(); - return this; - } - - private int leftTimes_ ; - /** - * <code>uint32 leftTimes = 3;</code> - * @return The leftTimes. - */ - @java.lang.Override - public int getLeftTimes() { - return leftTimes_; - } - /** - * <code>uint32 leftTimes = 3;</code> - * @param value The leftTimes to set. - * @return This builder for chaining. - */ - public Builder setLeftTimes(int value) { - - leftTimes_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 leftTimes = 3;</code> - * @return This builder for chaining. - */ - public Builder clearLeftTimes() { - - leftTimes_ = 0; - onChanged(); - return this; - } - - private int startTime_ ; - /** - * <code>uint32 startTime = 4;</code> - * @return The startTime. - */ - @java.lang.Override - public int getStartTime() { - return startTime_; - } - /** - * <code>uint32 startTime = 4;</code> - * @param value The startTime to set. - * @return This builder for chaining. - */ - public Builder setStartTime(int value) { - - startTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 startTime = 4;</code> - * @return This builder for chaining. - */ - public Builder clearStartTime() { - - startTime_ = 0; - onChanged(); - return this; - } - - private int endTime_ ; - /** - * <code>uint32 endTime = 5;</code> - * @return The endTime. - */ - @java.lang.Override - public int getEndTime() { - return endTime_; - } - /** - * <code>uint32 endTime = 5;</code> - * @param value The endTime to set. - * @return This builder for chaining. - */ - public Builder setEndTime(int value) { - - endTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 endTime = 5;</code> - * @return This builder for chaining. - */ - public Builder clearEndTime() { - - endTime_ = 0; - onChanged(); - return this; - } - - private int maxBossChestNum_ ; - /** - * <code>uint32 maxBossChestNum = 6;</code> - * @return The maxBossChestNum. - */ - @java.lang.Override - public int getMaxBossChestNum() { - return maxBossChestNum_; - } - /** - * <code>uint32 maxBossChestNum = 6;</code> - * @param value The maxBossChestNum to set. - * @return This builder for chaining. - */ - public Builder setMaxBossChestNum(int value) { - - maxBossChestNum_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 maxBossChestNum = 6;</code> - * @return This builder for chaining. - */ - public Builder clearMaxBossChestNum() { - - maxBossChestNum_ = 0; - onChanged(); - return this; - } - - private int bossChestNum_ ; - /** - * <code>uint32 bossChestNum = 7;</code> - * @return The bossChestNum. - */ - @java.lang.Override - public int getBossChestNum() { - return bossChestNum_; - } - /** - * <code>uint32 bossChestNum = 7;</code> - * @param value The bossChestNum to set. - * @return This builder for chaining. - */ - public Builder setBossChestNum(int value) { - - bossChestNum_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 bossChestNum = 7;</code> - * @return This builder for chaining. - */ - public Builder clearBossChestNum() { - - bossChestNum_ = 0; - onChanged(); - return this; - } - - private int nextRefreshTime_ ; - /** - * <code>uint32 nextRefreshTime = 8;</code> - * @return The nextRefreshTime. - */ - @java.lang.Override - public int getNextRefreshTime() { - return nextRefreshTime_; - } - /** - * <code>uint32 nextRefreshTime = 8;</code> - * @param value The nextRefreshTime to set. - * @return This builder for chaining. - */ - public Builder setNextRefreshTime(int value) { - - nextRefreshTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 nextRefreshTime = 8;</code> - * @return This builder for chaining. - */ - public Builder clearNextRefreshTime() { - - nextRefreshTime_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo, emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo.Builder, emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfoOrBuilder> weeklyBossResinDiscountInfoBuilder_; - /** - * <code>.WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9;</code> - * @return Whether the weeklyBossResinDiscountInfo field is set. - */ - public boolean hasWeeklyBossResinDiscountInfo() { - return weeklyBossResinDiscountInfoBuilder_ != null || weeklyBossResinDiscountInfo_ != null; - } - /** - * <code>.WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9;</code> - * @return The weeklyBossResinDiscountInfo. - */ - public emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo getWeeklyBossResinDiscountInfo() { - if (weeklyBossResinDiscountInfoBuilder_ == null) { - return weeklyBossResinDiscountInfo_ == null ? emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo.getDefaultInstance() : weeklyBossResinDiscountInfo_; - } else { - return weeklyBossResinDiscountInfoBuilder_.getMessage(); - } - } - /** - * <code>.WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9;</code> - */ - public Builder setWeeklyBossResinDiscountInfo(emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo value) { - if (weeklyBossResinDiscountInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - weeklyBossResinDiscountInfo_ = value; - onChanged(); - } else { - weeklyBossResinDiscountInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9;</code> - */ - public Builder setWeeklyBossResinDiscountInfo( - emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo.Builder builderForValue) { - if (weeklyBossResinDiscountInfoBuilder_ == null) { - weeklyBossResinDiscountInfo_ = builderForValue.build(); - onChanged(); - } else { - weeklyBossResinDiscountInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9;</code> - */ - public Builder mergeWeeklyBossResinDiscountInfo(emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo value) { - if (weeklyBossResinDiscountInfoBuilder_ == null) { - if (weeklyBossResinDiscountInfo_ != null) { - weeklyBossResinDiscountInfo_ = - emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo.newBuilder(weeklyBossResinDiscountInfo_).mergeFrom(value).buildPartial(); - } else { - weeklyBossResinDiscountInfo_ = value; - } - onChanged(); - } else { - weeklyBossResinDiscountInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9;</code> - */ - public Builder clearWeeklyBossResinDiscountInfo() { - if (weeklyBossResinDiscountInfoBuilder_ == null) { - weeklyBossResinDiscountInfo_ = null; - onChanged(); - } else { - weeklyBossResinDiscountInfo_ = null; - weeklyBossResinDiscountInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9;</code> - */ - public emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo.Builder getWeeklyBossResinDiscountInfoBuilder() { - - onChanged(); - return getWeeklyBossResinDiscountInfoFieldBuilder().getBuilder(); - } - /** - * <code>.WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9;</code> - */ - public emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfoOrBuilder getWeeklyBossResinDiscountInfoOrBuilder() { - if (weeklyBossResinDiscountInfoBuilder_ != null) { - return weeklyBossResinDiscountInfoBuilder_.getMessageOrBuilder(); - } else { - return weeklyBossResinDiscountInfo_ == null ? - emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo.getDefaultInstance() : weeklyBossResinDiscountInfo_; - } - } - /** - * <code>.WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo, emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo.Builder, emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfoOrBuilder> - getWeeklyBossResinDiscountInfoFieldBuilder() { - if (weeklyBossResinDiscountInfoBuilder_ == null) { - weeklyBossResinDiscountInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo, emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo.Builder, emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfoOrBuilder>( - getWeeklyBossResinDiscountInfo(), - getParentForChildren(), - isClean()); - weeklyBossResinDiscountInfo_ = null; - } - return weeklyBossResinDiscountInfoBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:DungeonEntryInfo) - } - - // @@protoc_insertion_point(class_scope:DungeonEntryInfo) - private static final emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo(); - } - - public static emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<DungeonEntryInfo> - PARSER = new com.google.protobuf.AbstractParser<DungeonEntryInfo>() { - @java.lang.Override - public DungeonEntryInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DungeonEntryInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<DungeonEntryInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<DungeonEntryInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_DungeonEntryInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_DungeonEntryInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026DungeonEntryInfo.proto\032!WeeklyBossResi" + - "nDiscountInfo.proto\"\371\001\n\020DungeonEntryInfo" + - "\022\021\n\tdungeonId\030\001 \001(\r\022\020\n\010isPassed\030\002 \001(\010\022\021\n" + - "\tleftTimes\030\003 \001(\r\022\021\n\tstartTime\030\004 \001(\r\022\017\n\007e" + - "ndTime\030\005 \001(\r\022\027\n\017maxBossChestNum\030\006 \001(\r\022\024\n" + - "\014bossChestNum\030\007 \001(\r\022\027\n\017nextRefreshTime\030\010" + - " \001(\r\022A\n\033weeklyBossResinDiscountInfo\030\t \001(" + - "\0132\034.WeeklyBossResinDiscountInfoB\033\n\031emu.g" + - "rasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.getDescriptor(), - }); - internal_static_DungeonEntryInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_DungeonEntryInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_DungeonEntryInfo_descriptor, - new java.lang.String[] { "DungeonId", "IsPassed", "LeftTimes", "StartTime", "EndTime", "MaxBossChestNum", "BossChestNum", "NextRefreshTime", "WeeklyBossResinDiscountInfo", }); - emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/DungeonEntryInfoReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/DungeonEntryInfoReqOuterClass.java deleted file mode 100644 index a1d272bf3..000000000 --- a/src/main/java/emu/grasscutter/net/proto/DungeonEntryInfoReqOuterClass.java +++ /dev/null @@ -1,536 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: DungeonEntryInfoReq.proto - -package emu.grasscutter.net.proto; - -public final class DungeonEntryInfoReqOuterClass { - private DungeonEntryInfoReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DungeonEntryInfoReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:DungeonEntryInfoReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 pointId = 1;</code> - * @return The pointId. - */ - int getPointId(); - } - /** - * Protobuf type {@code DungeonEntryInfoReq} - */ - public static final class DungeonEntryInfoReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:DungeonEntryInfoReq) - DungeonEntryInfoReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use DungeonEntryInfoReq.newBuilder() to construct. - private DungeonEntryInfoReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private DungeonEntryInfoReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DungeonEntryInfoReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DungeonEntryInfoReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - pointId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.internal_static_DungeonEntryInfoReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.internal_static_DungeonEntryInfoReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq.class, emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq.Builder.class); - } - - public static final int POINTID_FIELD_NUMBER = 1; - private int pointId_; - /** - * <code>uint32 pointId = 1;</code> - * @return The pointId. - */ - @java.lang.Override - public int getPointId() { - return pointId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (pointId_ != 0) { - output.writeUInt32(1, pointId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (pointId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, pointId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq other = (emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq) obj; - - if (getPointId() - != other.getPointId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + POINTID_FIELD_NUMBER; - hash = (53 * hash) + getPointId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code DungeonEntryInfoReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:DungeonEntryInfoReq) - emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.internal_static_DungeonEntryInfoReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.internal_static_DungeonEntryInfoReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq.class, emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - pointId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.internal_static_DungeonEntryInfoReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq build() { - emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq buildPartial() { - emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq result = new emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq(this); - result.pointId_ = pointId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq) { - return mergeFrom((emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq other) { - if (other == emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq.getDefaultInstance()) return this; - if (other.getPointId() != 0) { - setPointId(other.getPointId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int pointId_ ; - /** - * <code>uint32 pointId = 1;</code> - * @return The pointId. - */ - @java.lang.Override - public int getPointId() { - return pointId_; - } - /** - * <code>uint32 pointId = 1;</code> - * @param value The pointId to set. - * @return This builder for chaining. - */ - public Builder setPointId(int value) { - - pointId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 pointId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearPointId() { - - pointId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:DungeonEntryInfoReq) - } - - // @@protoc_insertion_point(class_scope:DungeonEntryInfoReq) - private static final emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq(); - } - - public static emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<DungeonEntryInfoReq> - PARSER = new com.google.protobuf.AbstractParser<DungeonEntryInfoReq>() { - @java.lang.Override - public DungeonEntryInfoReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DungeonEntryInfoReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<DungeonEntryInfoReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<DungeonEntryInfoReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DungeonEntryInfoReqOuterClass.DungeonEntryInfoReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_DungeonEntryInfoReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_DungeonEntryInfoReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031DungeonEntryInfoReq.proto\"&\n\023DungeonEn" + - "tryInfoReq\022\017\n\007pointId\030\001 \001(\rB\033\n\031emu.grass" + - "cutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_DungeonEntryInfoReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_DungeonEntryInfoReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_DungeonEntryInfoReq_descriptor, - new java.lang.String[] { "PointId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/DungeonEntryInfoRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/DungeonEntryInfoRspOuterClass.java deleted file mode 100644 index 4dc6fa11a..000000000 --- a/src/main/java/emu/grasscutter/net/proto/DungeonEntryInfoRspOuterClass.java +++ /dev/null @@ -1,1056 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: DungeonEntryInfoRsp.proto - -package emu.grasscutter.net.proto; - -public final class DungeonEntryInfoRspOuterClass { - private DungeonEntryInfoRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DungeonEntryInfoRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:DungeonEntryInfoRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint32 pointId = 2;</code> - * @return The pointId. - */ - int getPointId(); - - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - java.util.List<emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo> - getDungeonEntryListList(); - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo getDungeonEntryList(int index); - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - int getDungeonEntryListCount(); - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfoOrBuilder> - getDungeonEntryListOrBuilderList(); - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfoOrBuilder getDungeonEntryListOrBuilder( - int index); - - /** - * <code>uint32 recommendDungeonId = 4;</code> - * @return The recommendDungeonId. - */ - int getRecommendDungeonId(); - } - /** - * Protobuf type {@code DungeonEntryInfoRsp} - */ - public static final class DungeonEntryInfoRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:DungeonEntryInfoRsp) - DungeonEntryInfoRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use DungeonEntryInfoRsp.newBuilder() to construct. - private DungeonEntryInfoRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private DungeonEntryInfoRsp() { - dungeonEntryList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DungeonEntryInfoRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DungeonEntryInfoRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - pointId_ = input.readUInt32(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dungeonEntryList_ = new java.util.ArrayList<emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo>(); - mutable_bitField0_ |= 0x00000001; - } - dungeonEntryList_.add( - input.readMessage(emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo.parser(), extensionRegistry)); - break; - } - case 32: { - - recommendDungeonId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - dungeonEntryList_ = java.util.Collections.unmodifiableList(dungeonEntryList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.internal_static_DungeonEntryInfoRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.internal_static_DungeonEntryInfoRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp.class, emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int POINTID_FIELD_NUMBER = 2; - private int pointId_; - /** - * <code>uint32 pointId = 2;</code> - * @return The pointId. - */ - @java.lang.Override - public int getPointId() { - return pointId_; - } - - public static final int DUNGEONENTRYLIST_FIELD_NUMBER = 3; - private java.util.List<emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo> dungeonEntryList_; - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo> getDungeonEntryListList() { - return dungeonEntryList_; - } - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfoOrBuilder> - getDungeonEntryListOrBuilderList() { - return dungeonEntryList_; - } - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - @java.lang.Override - public int getDungeonEntryListCount() { - return dungeonEntryList_.size(); - } - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo getDungeonEntryList(int index) { - return dungeonEntryList_.get(index); - } - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfoOrBuilder getDungeonEntryListOrBuilder( - int index) { - return dungeonEntryList_.get(index); - } - - public static final int RECOMMENDDUNGEONID_FIELD_NUMBER = 4; - private int recommendDungeonId_; - /** - * <code>uint32 recommendDungeonId = 4;</code> - * @return The recommendDungeonId. - */ - @java.lang.Override - public int getRecommendDungeonId() { - return recommendDungeonId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (pointId_ != 0) { - output.writeUInt32(2, pointId_); - } - for (int i = 0; i < dungeonEntryList_.size(); i++) { - output.writeMessage(3, dungeonEntryList_.get(i)); - } - if (recommendDungeonId_ != 0) { - output.writeUInt32(4, recommendDungeonId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (pointId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, pointId_); - } - for (int i = 0; i < dungeonEntryList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, dungeonEntryList_.get(i)); - } - if (recommendDungeonId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, recommendDungeonId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp other = (emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getPointId() - != other.getPointId()) return false; - if (!getDungeonEntryListList() - .equals(other.getDungeonEntryListList())) return false; - if (getRecommendDungeonId() - != other.getRecommendDungeonId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + POINTID_FIELD_NUMBER; - hash = (53 * hash) + getPointId(); - if (getDungeonEntryListCount() > 0) { - hash = (37 * hash) + DUNGEONENTRYLIST_FIELD_NUMBER; - hash = (53 * hash) + getDungeonEntryListList().hashCode(); - } - hash = (37 * hash) + RECOMMENDDUNGEONID_FIELD_NUMBER; - hash = (53 * hash) + getRecommendDungeonId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code DungeonEntryInfoRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:DungeonEntryInfoRsp) - emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.internal_static_DungeonEntryInfoRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.internal_static_DungeonEntryInfoRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp.class, emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDungeonEntryListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - pointId_ = 0; - - if (dungeonEntryListBuilder_ == null) { - dungeonEntryList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - dungeonEntryListBuilder_.clear(); - } - recommendDungeonId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.internal_static_DungeonEntryInfoRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp build() { - emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp buildPartial() { - emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp result = new emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp(this); - int from_bitField0_ = bitField0_; - result.retcode_ = retcode_; - result.pointId_ = pointId_; - if (dungeonEntryListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dungeonEntryList_ = java.util.Collections.unmodifiableList(dungeonEntryList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dungeonEntryList_ = dungeonEntryList_; - } else { - result.dungeonEntryList_ = dungeonEntryListBuilder_.build(); - } - result.recommendDungeonId_ = recommendDungeonId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp) { - return mergeFrom((emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp other) { - if (other == emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getPointId() != 0) { - setPointId(other.getPointId()); - } - if (dungeonEntryListBuilder_ == null) { - if (!other.dungeonEntryList_.isEmpty()) { - if (dungeonEntryList_.isEmpty()) { - dungeonEntryList_ = other.dungeonEntryList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDungeonEntryListIsMutable(); - dungeonEntryList_.addAll(other.dungeonEntryList_); - } - onChanged(); - } - } else { - if (!other.dungeonEntryList_.isEmpty()) { - if (dungeonEntryListBuilder_.isEmpty()) { - dungeonEntryListBuilder_.dispose(); - dungeonEntryListBuilder_ = null; - dungeonEntryList_ = other.dungeonEntryList_; - bitField0_ = (bitField0_ & ~0x00000001); - dungeonEntryListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDungeonEntryListFieldBuilder() : null; - } else { - dungeonEntryListBuilder_.addAllMessages(other.dungeonEntryList_); - } - } - } - if (other.getRecommendDungeonId() != 0) { - setRecommendDungeonId(other.getRecommendDungeonId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int pointId_ ; - /** - * <code>uint32 pointId = 2;</code> - * @return The pointId. - */ - @java.lang.Override - public int getPointId() { - return pointId_; - } - /** - * <code>uint32 pointId = 2;</code> - * @param value The pointId to set. - * @return This builder for chaining. - */ - public Builder setPointId(int value) { - - pointId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 pointId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearPointId() { - - pointId_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo> dungeonEntryList_ = - java.util.Collections.emptyList(); - private void ensureDungeonEntryListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dungeonEntryList_ = new java.util.ArrayList<emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo>(dungeonEntryList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo, emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo.Builder, emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfoOrBuilder> dungeonEntryListBuilder_; - - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - public java.util.List<emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo> getDungeonEntryListList() { - if (dungeonEntryListBuilder_ == null) { - return java.util.Collections.unmodifiableList(dungeonEntryList_); - } else { - return dungeonEntryListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - public int getDungeonEntryListCount() { - if (dungeonEntryListBuilder_ == null) { - return dungeonEntryList_.size(); - } else { - return dungeonEntryListBuilder_.getCount(); - } - } - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - public emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo getDungeonEntryList(int index) { - if (dungeonEntryListBuilder_ == null) { - return dungeonEntryList_.get(index); - } else { - return dungeonEntryListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - public Builder setDungeonEntryList( - int index, emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo value) { - if (dungeonEntryListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDungeonEntryListIsMutable(); - dungeonEntryList_.set(index, value); - onChanged(); - } else { - dungeonEntryListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - public Builder setDungeonEntryList( - int index, emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo.Builder builderForValue) { - if (dungeonEntryListBuilder_ == null) { - ensureDungeonEntryListIsMutable(); - dungeonEntryList_.set(index, builderForValue.build()); - onChanged(); - } else { - dungeonEntryListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - public Builder addDungeonEntryList(emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo value) { - if (dungeonEntryListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDungeonEntryListIsMutable(); - dungeonEntryList_.add(value); - onChanged(); - } else { - dungeonEntryListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - public Builder addDungeonEntryList( - int index, emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo value) { - if (dungeonEntryListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDungeonEntryListIsMutable(); - dungeonEntryList_.add(index, value); - onChanged(); - } else { - dungeonEntryListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - public Builder addDungeonEntryList( - emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo.Builder builderForValue) { - if (dungeonEntryListBuilder_ == null) { - ensureDungeonEntryListIsMutable(); - dungeonEntryList_.add(builderForValue.build()); - onChanged(); - } else { - dungeonEntryListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - public Builder addDungeonEntryList( - int index, emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo.Builder builderForValue) { - if (dungeonEntryListBuilder_ == null) { - ensureDungeonEntryListIsMutable(); - dungeonEntryList_.add(index, builderForValue.build()); - onChanged(); - } else { - dungeonEntryListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - public Builder addAllDungeonEntryList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo> values) { - if (dungeonEntryListBuilder_ == null) { - ensureDungeonEntryListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dungeonEntryList_); - onChanged(); - } else { - dungeonEntryListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - public Builder clearDungeonEntryList() { - if (dungeonEntryListBuilder_ == null) { - dungeonEntryList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dungeonEntryListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - public Builder removeDungeonEntryList(int index) { - if (dungeonEntryListBuilder_ == null) { - ensureDungeonEntryListIsMutable(); - dungeonEntryList_.remove(index); - onChanged(); - } else { - dungeonEntryListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - public emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo.Builder getDungeonEntryListBuilder( - int index) { - return getDungeonEntryListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - public emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfoOrBuilder getDungeonEntryListOrBuilder( - int index) { - if (dungeonEntryListBuilder_ == null) { - return dungeonEntryList_.get(index); } else { - return dungeonEntryListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfoOrBuilder> - getDungeonEntryListOrBuilderList() { - if (dungeonEntryListBuilder_ != null) { - return dungeonEntryListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dungeonEntryList_); - } - } - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - public emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo.Builder addDungeonEntryListBuilder() { - return getDungeonEntryListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo.getDefaultInstance()); - } - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - public emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo.Builder addDungeonEntryListBuilder( - int index) { - return getDungeonEntryListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo.getDefaultInstance()); - } - /** - * <code>repeated .DungeonEntryInfo dungeonEntryList = 3;</code> - */ - public java.util.List<emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo.Builder> - getDungeonEntryListBuilderList() { - return getDungeonEntryListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo, emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo.Builder, emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfoOrBuilder> - getDungeonEntryListFieldBuilder() { - if (dungeonEntryListBuilder_ == null) { - dungeonEntryListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo, emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo.Builder, emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfoOrBuilder>( - dungeonEntryList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - dungeonEntryList_ = null; - } - return dungeonEntryListBuilder_; - } - - private int recommendDungeonId_ ; - /** - * <code>uint32 recommendDungeonId = 4;</code> - * @return The recommendDungeonId. - */ - @java.lang.Override - public int getRecommendDungeonId() { - return recommendDungeonId_; - } - /** - * <code>uint32 recommendDungeonId = 4;</code> - * @param value The recommendDungeonId to set. - * @return This builder for chaining. - */ - public Builder setRecommendDungeonId(int value) { - - recommendDungeonId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 recommendDungeonId = 4;</code> - * @return This builder for chaining. - */ - public Builder clearRecommendDungeonId() { - - recommendDungeonId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:DungeonEntryInfoRsp) - } - - // @@protoc_insertion_point(class_scope:DungeonEntryInfoRsp) - private static final emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp(); - } - - public static emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<DungeonEntryInfoRsp> - PARSER = new com.google.protobuf.AbstractParser<DungeonEntryInfoRsp>() { - @java.lang.Override - public DungeonEntryInfoRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DungeonEntryInfoRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<DungeonEntryInfoRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<DungeonEntryInfoRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_DungeonEntryInfoRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_DungeonEntryInfoRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031DungeonEntryInfoRsp.proto\032\026DungeonEntr" + - "yInfo.proto\"\200\001\n\023DungeonEntryInfoRsp\022\017\n\007r" + - "etcode\030\001 \001(\005\022\017\n\007pointId\030\002 \001(\r\022+\n\020dungeon" + - "EntryList\030\003 \003(\0132\021.DungeonEntryInfo\022\032\n\022re" + - "commendDungeonId\030\004 \001(\rB\033\n\031emu.grasscutte" + - "r.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.getDescriptor(), - }); - internal_static_DungeonEntryInfoRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_DungeonEntryInfoRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_DungeonEntryInfoRsp_descriptor, - new java.lang.String[] { "Retcode", "PointId", "DungeonEntryList", "RecommendDungeonId", }); - emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/EnterSceneDoneRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EnterSceneDoneRspOuterClass.java deleted file mode 100644 index d7bdb6b67..000000000 --- a/src/main/java/emu/grasscutter/net/proto/EnterSceneDoneRspOuterClass.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: EnterSceneDoneRsp.proto - -package emu.grasscutter.net.proto; - -public final class EnterSceneDoneRspOuterClass { - private EnterSceneDoneRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EnterSceneDoneRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:EnterSceneDoneRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint32 enterSceneToken = 2;</code> - * @return The enterSceneToken. - */ - int getEnterSceneToken(); - } - /** - * Protobuf type {@code EnterSceneDoneRsp} - */ - public static final class EnterSceneDoneRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EnterSceneDoneRsp) - EnterSceneDoneRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use EnterSceneDoneRsp.newBuilder() to construct. - private EnterSceneDoneRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private EnterSceneDoneRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnterSceneDoneRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EnterSceneDoneRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - enterSceneToken_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.internal_static_EnterSceneDoneRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.internal_static_EnterSceneDoneRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp.class, emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int ENTERSCENETOKEN_FIELD_NUMBER = 2; - private int enterSceneToken_; - /** - * <code>uint32 enterSceneToken = 2;</code> - * @return The enterSceneToken. - */ - @java.lang.Override - public int getEnterSceneToken() { - return enterSceneToken_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (enterSceneToken_ != 0) { - output.writeUInt32(2, enterSceneToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (enterSceneToken_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, enterSceneToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp other = (emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getEnterSceneToken() - != other.getEnterSceneToken()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + ENTERSCENETOKEN_FIELD_NUMBER; - hash = (53 * hash) + getEnterSceneToken(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EnterSceneDoneRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:EnterSceneDoneRsp) - emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.internal_static_EnterSceneDoneRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.internal_static_EnterSceneDoneRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp.class, emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - enterSceneToken_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.internal_static_EnterSceneDoneRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp build() { - emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp buildPartial() { - emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp result = new emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp(this); - result.retcode_ = retcode_; - result.enterSceneToken_ = enterSceneToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp) { - return mergeFrom((emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp other) { - if (other == emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getEnterSceneToken() != 0) { - setEnterSceneToken(other.getEnterSceneToken()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int enterSceneToken_ ; - /** - * <code>uint32 enterSceneToken = 2;</code> - * @return The enterSceneToken. - */ - @java.lang.Override - public int getEnterSceneToken() { - return enterSceneToken_; - } - /** - * <code>uint32 enterSceneToken = 2;</code> - * @param value The enterSceneToken to set. - * @return This builder for chaining. - */ - public Builder setEnterSceneToken(int value) { - - enterSceneToken_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 enterSceneToken = 2;</code> - * @return This builder for chaining. - */ - public Builder clearEnterSceneToken() { - - enterSceneToken_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EnterSceneDoneRsp) - } - - // @@protoc_insertion_point(class_scope:EnterSceneDoneRsp) - private static final emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp(); - } - - public static emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<EnterSceneDoneRsp> - PARSER = new com.google.protobuf.AbstractParser<EnterSceneDoneRsp>() { - @java.lang.Override - public EnterSceneDoneRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnterSceneDoneRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<EnterSceneDoneRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<EnterSceneDoneRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EnterSceneDoneRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EnterSceneDoneRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027EnterSceneDoneRsp.proto\"=\n\021EnterSceneD" + - "oneRsp\022\017\n\007retcode\030\001 \001(\005\022\027\n\017enterSceneTok" + - "en\030\002 \001(\rB\033\n\031emu.grasscutter.net.protob\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_EnterSceneDoneRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_EnterSceneDoneRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EnterSceneDoneRsp_descriptor, - new java.lang.String[] { "Retcode", "EnterSceneToken", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/EnterScenePeerNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EnterScenePeerNotifyOuterClass.java deleted file mode 100644 index 93f188219..000000000 --- a/src/main/java/emu/grasscutter/net/proto/EnterScenePeerNotifyOuterClass.java +++ /dev/null @@ -1,748 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: EnterScenePeerNotify.proto - -package emu.grasscutter.net.proto; - -public final class EnterScenePeerNotifyOuterClass { - private EnterScenePeerNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EnterScenePeerNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:EnterScenePeerNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 destSceneId = 1;</code> - * @return The destSceneId. - */ - int getDestSceneId(); - - /** - * <code>uint32 peerId = 2;</code> - * @return The peerId. - */ - int getPeerId(); - - /** - * <code>uint32 hostPeerId = 3;</code> - * @return The hostPeerId. - */ - int getHostPeerId(); - - /** - * <code>uint32 EnterSceneToken = 4;</code> - * @return The enterSceneToken. - */ - int getEnterSceneToken(); - } - /** - * Protobuf type {@code EnterScenePeerNotify} - */ - public static final class EnterScenePeerNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EnterScenePeerNotify) - EnterScenePeerNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use EnterScenePeerNotify.newBuilder() to construct. - private EnterScenePeerNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private EnterScenePeerNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnterScenePeerNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EnterScenePeerNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - destSceneId_ = input.readUInt32(); - break; - } - case 16: { - - peerId_ = input.readUInt32(); - break; - } - case 24: { - - hostPeerId_ = input.readUInt32(); - break; - } - case 32: { - - enterSceneToken_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.internal_static_EnterScenePeerNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.internal_static_EnterScenePeerNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify.class, emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify.Builder.class); - } - - public static final int DESTSCENEID_FIELD_NUMBER = 1; - private int destSceneId_; - /** - * <code>uint32 destSceneId = 1;</code> - * @return The destSceneId. - */ - @java.lang.Override - public int getDestSceneId() { - return destSceneId_; - } - - public static final int PEERID_FIELD_NUMBER = 2; - private int peerId_; - /** - * <code>uint32 peerId = 2;</code> - * @return The peerId. - */ - @java.lang.Override - public int getPeerId() { - return peerId_; - } - - public static final int HOSTPEERID_FIELD_NUMBER = 3; - private int hostPeerId_; - /** - * <code>uint32 hostPeerId = 3;</code> - * @return The hostPeerId. - */ - @java.lang.Override - public int getHostPeerId() { - return hostPeerId_; - } - - public static final int ENTERSCENETOKEN_FIELD_NUMBER = 4; - private int enterSceneToken_; - /** - * <code>uint32 EnterSceneToken = 4;</code> - * @return The enterSceneToken. - */ - @java.lang.Override - public int getEnterSceneToken() { - return enterSceneToken_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (destSceneId_ != 0) { - output.writeUInt32(1, destSceneId_); - } - if (peerId_ != 0) { - output.writeUInt32(2, peerId_); - } - if (hostPeerId_ != 0) { - output.writeUInt32(3, hostPeerId_); - } - if (enterSceneToken_ != 0) { - output.writeUInt32(4, enterSceneToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (destSceneId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, destSceneId_); - } - if (peerId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, peerId_); - } - if (hostPeerId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, hostPeerId_); - } - if (enterSceneToken_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, enterSceneToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify other = (emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify) obj; - - if (getDestSceneId() - != other.getDestSceneId()) return false; - if (getPeerId() - != other.getPeerId()) return false; - if (getHostPeerId() - != other.getHostPeerId()) return false; - if (getEnterSceneToken() - != other.getEnterSceneToken()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DESTSCENEID_FIELD_NUMBER; - hash = (53 * hash) + getDestSceneId(); - hash = (37 * hash) + PEERID_FIELD_NUMBER; - hash = (53 * hash) + getPeerId(); - hash = (37 * hash) + HOSTPEERID_FIELD_NUMBER; - hash = (53 * hash) + getHostPeerId(); - hash = (37 * hash) + ENTERSCENETOKEN_FIELD_NUMBER; - hash = (53 * hash) + getEnterSceneToken(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EnterScenePeerNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:EnterScenePeerNotify) - emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.internal_static_EnterScenePeerNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.internal_static_EnterScenePeerNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify.class, emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - destSceneId_ = 0; - - peerId_ = 0; - - hostPeerId_ = 0; - - enterSceneToken_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.internal_static_EnterScenePeerNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify build() { - emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify buildPartial() { - emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify result = new emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify(this); - result.destSceneId_ = destSceneId_; - result.peerId_ = peerId_; - result.hostPeerId_ = hostPeerId_; - result.enterSceneToken_ = enterSceneToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify) { - return mergeFrom((emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify other) { - if (other == emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify.getDefaultInstance()) return this; - if (other.getDestSceneId() != 0) { - setDestSceneId(other.getDestSceneId()); - } - if (other.getPeerId() != 0) { - setPeerId(other.getPeerId()); - } - if (other.getHostPeerId() != 0) { - setHostPeerId(other.getHostPeerId()); - } - if (other.getEnterSceneToken() != 0) { - setEnterSceneToken(other.getEnterSceneToken()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int destSceneId_ ; - /** - * <code>uint32 destSceneId = 1;</code> - * @return The destSceneId. - */ - @java.lang.Override - public int getDestSceneId() { - return destSceneId_; - } - /** - * <code>uint32 destSceneId = 1;</code> - * @param value The destSceneId to set. - * @return This builder for chaining. - */ - public Builder setDestSceneId(int value) { - - destSceneId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 destSceneId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearDestSceneId() { - - destSceneId_ = 0; - onChanged(); - return this; - } - - private int peerId_ ; - /** - * <code>uint32 peerId = 2;</code> - * @return The peerId. - */ - @java.lang.Override - public int getPeerId() { - return peerId_; - } - /** - * <code>uint32 peerId = 2;</code> - * @param value The peerId to set. - * @return This builder for chaining. - */ - public Builder setPeerId(int value) { - - peerId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 peerId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearPeerId() { - - peerId_ = 0; - onChanged(); - return this; - } - - private int hostPeerId_ ; - /** - * <code>uint32 hostPeerId = 3;</code> - * @return The hostPeerId. - */ - @java.lang.Override - public int getHostPeerId() { - return hostPeerId_; - } - /** - * <code>uint32 hostPeerId = 3;</code> - * @param value The hostPeerId to set. - * @return This builder for chaining. - */ - public Builder setHostPeerId(int value) { - - hostPeerId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 hostPeerId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearHostPeerId() { - - hostPeerId_ = 0; - onChanged(); - return this; - } - - private int enterSceneToken_ ; - /** - * <code>uint32 EnterSceneToken = 4;</code> - * @return The enterSceneToken. - */ - @java.lang.Override - public int getEnterSceneToken() { - return enterSceneToken_; - } - /** - * <code>uint32 EnterSceneToken = 4;</code> - * @param value The enterSceneToken to set. - * @return This builder for chaining. - */ - public Builder setEnterSceneToken(int value) { - - enterSceneToken_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 EnterSceneToken = 4;</code> - * @return This builder for chaining. - */ - public Builder clearEnterSceneToken() { - - enterSceneToken_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EnterScenePeerNotify) - } - - // @@protoc_insertion_point(class_scope:EnterScenePeerNotify) - private static final emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify(); - } - - public static emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<EnterScenePeerNotify> - PARSER = new com.google.protobuf.AbstractParser<EnterScenePeerNotify>() { - @java.lang.Override - public EnterScenePeerNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnterScenePeerNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<EnterScenePeerNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<EnterScenePeerNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EnterScenePeerNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EnterScenePeerNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032EnterScenePeerNotify.proto\"h\n\024EnterSce" + - "nePeerNotify\022\023\n\013destSceneId\030\001 \001(\r\022\016\n\006pee" + - "rId\030\002 \001(\r\022\022\n\nhostPeerId\030\003 \001(\r\022\027\n\017EnterSc" + - "eneToken\030\004 \001(\rB\033\n\031emu.grasscutter.net.pr" + - "otob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_EnterScenePeerNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_EnterScenePeerNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EnterScenePeerNotify_descriptor, - new java.lang.String[] { "DestSceneId", "PeerId", "HostPeerId", "EnterSceneToken", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/EnterSceneReadyRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EnterSceneReadyRspOuterClass.java deleted file mode 100644 index cfe6d6ff9..000000000 --- a/src/main/java/emu/grasscutter/net/proto/EnterSceneReadyRspOuterClass.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: EnterSceneReadyRsp.proto - -package emu.grasscutter.net.proto; - -public final class EnterSceneReadyRspOuterClass { - private EnterSceneReadyRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EnterSceneReadyRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:EnterSceneReadyRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint32 enterSceneToken = 2;</code> - * @return The enterSceneToken. - */ - int getEnterSceneToken(); - } - /** - * Protobuf type {@code EnterSceneReadyRsp} - */ - public static final class EnterSceneReadyRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EnterSceneReadyRsp) - EnterSceneReadyRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use EnterSceneReadyRsp.newBuilder() to construct. - private EnterSceneReadyRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private EnterSceneReadyRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnterSceneReadyRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EnterSceneReadyRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - enterSceneToken_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.internal_static_EnterSceneReadyRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.internal_static_EnterSceneReadyRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp.class, emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int ENTERSCENETOKEN_FIELD_NUMBER = 2; - private int enterSceneToken_; - /** - * <code>uint32 enterSceneToken = 2;</code> - * @return The enterSceneToken. - */ - @java.lang.Override - public int getEnterSceneToken() { - return enterSceneToken_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (enterSceneToken_ != 0) { - output.writeUInt32(2, enterSceneToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (enterSceneToken_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, enterSceneToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp other = (emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getEnterSceneToken() - != other.getEnterSceneToken()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + ENTERSCENETOKEN_FIELD_NUMBER; - hash = (53 * hash) + getEnterSceneToken(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EnterSceneReadyRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:EnterSceneReadyRsp) - emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.internal_static_EnterSceneReadyRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.internal_static_EnterSceneReadyRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp.class, emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - enterSceneToken_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.internal_static_EnterSceneReadyRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp build() { - emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp buildPartial() { - emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp result = new emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp(this); - result.retcode_ = retcode_; - result.enterSceneToken_ = enterSceneToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp) { - return mergeFrom((emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp other) { - if (other == emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getEnterSceneToken() != 0) { - setEnterSceneToken(other.getEnterSceneToken()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int enterSceneToken_ ; - /** - * <code>uint32 enterSceneToken = 2;</code> - * @return The enterSceneToken. - */ - @java.lang.Override - public int getEnterSceneToken() { - return enterSceneToken_; - } - /** - * <code>uint32 enterSceneToken = 2;</code> - * @param value The enterSceneToken to set. - * @return This builder for chaining. - */ - public Builder setEnterSceneToken(int value) { - - enterSceneToken_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 enterSceneToken = 2;</code> - * @return This builder for chaining. - */ - public Builder clearEnterSceneToken() { - - enterSceneToken_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EnterSceneReadyRsp) - } - - // @@protoc_insertion_point(class_scope:EnterSceneReadyRsp) - private static final emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp(); - } - - public static emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<EnterSceneReadyRsp> - PARSER = new com.google.protobuf.AbstractParser<EnterSceneReadyRsp>() { - @java.lang.Override - public EnterSceneReadyRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnterSceneReadyRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<EnterSceneReadyRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<EnterSceneReadyRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EnterSceneReadyRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EnterSceneReadyRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030EnterSceneReadyRsp.proto\">\n\022EnterScene" + - "ReadyRsp\022\017\n\007retcode\030\001 \001(\005\022\027\n\017enterSceneT" + - "oken\030\002 \001(\rB\033\n\031emu.grasscutter.net.protob" + - "\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_EnterSceneReadyRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_EnterSceneReadyRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EnterSceneReadyRsp_descriptor, - new java.lang.String[] { "Retcode", "EnterSceneToken", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/EnterTypeOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EnterTypeOuterClass.java deleted file mode 100644 index c48ec6f1f..000000000 --- a/src/main/java/emu/grasscutter/net/proto/EnterTypeOuterClass.java +++ /dev/null @@ -1,230 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: EnterType.proto - -package emu.grasscutter.net.proto; - -public final class EnterTypeOuterClass { - private EnterTypeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code EnterType} - */ - public enum EnterType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>EnterNone = 0;</code> - */ - EnterNone(0), - /** - * <code>EnterSelf = 1;</code> - */ - EnterSelf(1), - /** - * <code>EnterGoto = 2;</code> - */ - EnterGoto(2), - /** - * <code>EnterJump = 3;</code> - */ - EnterJump(3), - /** - * <code>EnterOther = 4;</code> - */ - EnterOther(4), - /** - * <code>EnterBack = 5;</code> - */ - EnterBack(5), - /** - * <code>EnterDungeon = 6;</code> - */ - EnterDungeon(6), - /** - * <code>EnterDungeonReplay = 7;</code> - */ - EnterDungeonReplay(7), - /** - * <code>EnterGotoByPortal = 8;</code> - */ - EnterGotoByPortal(8), - /** - * <code>EnterSelfHome = 9;</code> - */ - EnterSelfHome(9), - /** - * <code>EnterOtherHome = 10;</code> - */ - EnterOtherHome(10), - UNRECOGNIZED(-1), - ; - - /** - * <code>EnterNone = 0;</code> - */ - public static final int EnterNone_VALUE = 0; - /** - * <code>EnterSelf = 1;</code> - */ - public static final int EnterSelf_VALUE = 1; - /** - * <code>EnterGoto = 2;</code> - */ - public static final int EnterGoto_VALUE = 2; - /** - * <code>EnterJump = 3;</code> - */ - public static final int EnterJump_VALUE = 3; - /** - * <code>EnterOther = 4;</code> - */ - public static final int EnterOther_VALUE = 4; - /** - * <code>EnterBack = 5;</code> - */ - public static final int EnterBack_VALUE = 5; - /** - * <code>EnterDungeon = 6;</code> - */ - public static final int EnterDungeon_VALUE = 6; - /** - * <code>EnterDungeonReplay = 7;</code> - */ - public static final int EnterDungeonReplay_VALUE = 7; - /** - * <code>EnterGotoByPortal = 8;</code> - */ - public static final int EnterGotoByPortal_VALUE = 8; - /** - * <code>EnterSelfHome = 9;</code> - */ - public static final int EnterSelfHome_VALUE = 9; - /** - * <code>EnterOtherHome = 10;</code> - */ - public static final int EnterOtherHome_VALUE = 10; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static EnterType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static EnterType forNumber(int value) { - switch (value) { - case 0: return EnterNone; - case 1: return EnterSelf; - case 2: return EnterGoto; - case 3: return EnterJump; - case 4: return EnterOther; - case 5: return EnterBack; - case 6: return EnterDungeon; - case 7: return EnterDungeonReplay; - case 8: return EnterGotoByPortal; - case 9: return EnterSelfHome; - case 10: return EnterOtherHome; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<EnterType> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - EnterType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<EnterType>() { - public EnterType findValueByNumber(int number) { - return EnterType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.EnterTypeOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final EnterType[] VALUES = values(); - - public static EnterType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private EnterType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:EnterType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\017EnterType.proto*\316\001\n\tEnterType\022\r\n\tEnter" + - "None\020\000\022\r\n\tEnterSelf\020\001\022\r\n\tEnterGoto\020\002\022\r\n\t" + - "EnterJump\020\003\022\016\n\nEnterOther\020\004\022\r\n\tEnterBack" + - "\020\005\022\020\n\014EnterDungeon\020\006\022\026\n\022EnterDungeonRepl" + - "ay\020\007\022\025\n\021EnterGotoByPortal\020\010\022\021\n\rEnterSelf" + - "Home\020\t\022\022\n\016EnterOtherHome\020\nB\033\n\031emu.grassc" + - "utter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/EnterWorldAreaReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EnterWorldAreaReqOuterClass.java deleted file mode 100644 index 4af5357f3..000000000 --- a/src/main/java/emu/grasscutter/net/proto/EnterWorldAreaReqOuterClass.java +++ /dev/null @@ -1,606 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: EnterWorldAreaReq.proto - -package emu.grasscutter.net.proto; - -public final class EnterWorldAreaReqOuterClass { - private EnterWorldAreaReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EnterWorldAreaReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:EnterWorldAreaReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 areaType = 1;</code> - * @return The areaType. - */ - int getAreaType(); - - /** - * <code>uint32 areaId = 2;</code> - * @return The areaId. - */ - int getAreaId(); - } - /** - * Protobuf type {@code EnterWorldAreaReq} - */ - public static final class EnterWorldAreaReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EnterWorldAreaReq) - EnterWorldAreaReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use EnterWorldAreaReq.newBuilder() to construct. - private EnterWorldAreaReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private EnterWorldAreaReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnterWorldAreaReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EnterWorldAreaReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - areaType_ = input.readUInt32(); - break; - } - case 16: { - - areaId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.internal_static_EnterWorldAreaReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.internal_static_EnterWorldAreaReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq.class, emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq.Builder.class); - } - - public static final int AREATYPE_FIELD_NUMBER = 1; - private int areaType_; - /** - * <code>uint32 areaType = 1;</code> - * @return The areaType. - */ - @java.lang.Override - public int getAreaType() { - return areaType_; - } - - public static final int AREAID_FIELD_NUMBER = 2; - private int areaId_; - /** - * <code>uint32 areaId = 2;</code> - * @return The areaId. - */ - @java.lang.Override - public int getAreaId() { - return areaId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (areaType_ != 0) { - output.writeUInt32(1, areaType_); - } - if (areaId_ != 0) { - output.writeUInt32(2, areaId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (areaType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, areaType_); - } - if (areaId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, areaId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq other = (emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq) obj; - - if (getAreaType() - != other.getAreaType()) return false; - if (getAreaId() - != other.getAreaId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AREATYPE_FIELD_NUMBER; - hash = (53 * hash) + getAreaType(); - hash = (37 * hash) + AREAID_FIELD_NUMBER; - hash = (53 * hash) + getAreaId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EnterWorldAreaReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:EnterWorldAreaReq) - emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.internal_static_EnterWorldAreaReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.internal_static_EnterWorldAreaReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq.class, emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - areaType_ = 0; - - areaId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.internal_static_EnterWorldAreaReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq build() { - emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq buildPartial() { - emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq result = new emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq(this); - result.areaType_ = areaType_; - result.areaId_ = areaId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq) { - return mergeFrom((emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq other) { - if (other == emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq.getDefaultInstance()) return this; - if (other.getAreaType() != 0) { - setAreaType(other.getAreaType()); - } - if (other.getAreaId() != 0) { - setAreaId(other.getAreaId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int areaType_ ; - /** - * <code>uint32 areaType = 1;</code> - * @return The areaType. - */ - @java.lang.Override - public int getAreaType() { - return areaType_; - } - /** - * <code>uint32 areaType = 1;</code> - * @param value The areaType to set. - * @return This builder for chaining. - */ - public Builder setAreaType(int value) { - - areaType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 areaType = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAreaType() { - - areaType_ = 0; - onChanged(); - return this; - } - - private int areaId_ ; - /** - * <code>uint32 areaId = 2;</code> - * @return The areaId. - */ - @java.lang.Override - public int getAreaId() { - return areaId_; - } - /** - * <code>uint32 areaId = 2;</code> - * @param value The areaId to set. - * @return This builder for chaining. - */ - public Builder setAreaId(int value) { - - areaId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 areaId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearAreaId() { - - areaId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EnterWorldAreaReq) - } - - // @@protoc_insertion_point(class_scope:EnterWorldAreaReq) - private static final emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq(); - } - - public static emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<EnterWorldAreaReq> - PARSER = new com.google.protobuf.AbstractParser<EnterWorldAreaReq>() { - @java.lang.Override - public EnterWorldAreaReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnterWorldAreaReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<EnterWorldAreaReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<EnterWorldAreaReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EnterWorldAreaReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EnterWorldAreaReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027EnterWorldAreaReq.proto\"5\n\021EnterWorldA" + - "reaReq\022\020\n\010areaType\030\001 \001(\r\022\016\n\006areaId\030\002 \001(\r" + - "B\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_EnterWorldAreaReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_EnterWorldAreaReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EnterWorldAreaReq_descriptor, - new java.lang.String[] { "AreaType", "AreaId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/EnterWorldAreaRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EnterWorldAreaRspOuterClass.java deleted file mode 100644 index 5b5a85bdf..000000000 --- a/src/main/java/emu/grasscutter/net/proto/EnterWorldAreaRspOuterClass.java +++ /dev/null @@ -1,606 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: EnterWorldAreaRsp.proto - -package emu.grasscutter.net.proto; - -public final class EnterWorldAreaRspOuterClass { - private EnterWorldAreaRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EnterWorldAreaRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:EnterWorldAreaRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 areaType = 2;</code> - * @return The areaType. - */ - int getAreaType(); - - /** - * <code>uint32 areaId = 3;</code> - * @return The areaId. - */ - int getAreaId(); - } - /** - * Protobuf type {@code EnterWorldAreaRsp} - */ - public static final class EnterWorldAreaRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EnterWorldAreaRsp) - EnterWorldAreaRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use EnterWorldAreaRsp.newBuilder() to construct. - private EnterWorldAreaRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private EnterWorldAreaRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnterWorldAreaRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EnterWorldAreaRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 16: { - - areaType_ = input.readUInt32(); - break; - } - case 24: { - - areaId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.internal_static_EnterWorldAreaRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.internal_static_EnterWorldAreaRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp.class, emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp.Builder.class); - } - - public static final int AREATYPE_FIELD_NUMBER = 2; - private int areaType_; - /** - * <code>uint32 areaType = 2;</code> - * @return The areaType. - */ - @java.lang.Override - public int getAreaType() { - return areaType_; - } - - public static final int AREAID_FIELD_NUMBER = 3; - private int areaId_; - /** - * <code>uint32 areaId = 3;</code> - * @return The areaId. - */ - @java.lang.Override - public int getAreaId() { - return areaId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (areaType_ != 0) { - output.writeUInt32(2, areaType_); - } - if (areaId_ != 0) { - output.writeUInt32(3, areaId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (areaType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, areaType_); - } - if (areaId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, areaId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp other = (emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp) obj; - - if (getAreaType() - != other.getAreaType()) return false; - if (getAreaId() - != other.getAreaId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AREATYPE_FIELD_NUMBER; - hash = (53 * hash) + getAreaType(); - hash = (37 * hash) + AREAID_FIELD_NUMBER; - hash = (53 * hash) + getAreaId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EnterWorldAreaRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:EnterWorldAreaRsp) - emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.internal_static_EnterWorldAreaRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.internal_static_EnterWorldAreaRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp.class, emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - areaType_ = 0; - - areaId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.internal_static_EnterWorldAreaRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp build() { - emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp buildPartial() { - emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp result = new emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp(this); - result.areaType_ = areaType_; - result.areaId_ = areaId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp) { - return mergeFrom((emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp other) { - if (other == emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp.getDefaultInstance()) return this; - if (other.getAreaType() != 0) { - setAreaType(other.getAreaType()); - } - if (other.getAreaId() != 0) { - setAreaId(other.getAreaId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int areaType_ ; - /** - * <code>uint32 areaType = 2;</code> - * @return The areaType. - */ - @java.lang.Override - public int getAreaType() { - return areaType_; - } - /** - * <code>uint32 areaType = 2;</code> - * @param value The areaType to set. - * @return This builder for chaining. - */ - public Builder setAreaType(int value) { - - areaType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 areaType = 2;</code> - * @return This builder for chaining. - */ - public Builder clearAreaType() { - - areaType_ = 0; - onChanged(); - return this; - } - - private int areaId_ ; - /** - * <code>uint32 areaId = 3;</code> - * @return The areaId. - */ - @java.lang.Override - public int getAreaId() { - return areaId_; - } - /** - * <code>uint32 areaId = 3;</code> - * @param value The areaId to set. - * @return This builder for chaining. - */ - public Builder setAreaId(int value) { - - areaId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 areaId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearAreaId() { - - areaId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EnterWorldAreaRsp) - } - - // @@protoc_insertion_point(class_scope:EnterWorldAreaRsp) - private static final emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp(); - } - - public static emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<EnterWorldAreaRsp> - PARSER = new com.google.protobuf.AbstractParser<EnterWorldAreaRsp>() { - @java.lang.Override - public EnterWorldAreaRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnterWorldAreaRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<EnterWorldAreaRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<EnterWorldAreaRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EnterWorldAreaRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EnterWorldAreaRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027EnterWorldAreaRsp.proto\"5\n\021EnterWorldA" + - "reaRsp\022\020\n\010areaType\030\002 \001(\r\022\016\n\006areaId\030\003 \001(\r" + - "B\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_EnterWorldAreaRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_EnterWorldAreaRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EnterWorldAreaRsp_descriptor, - new java.lang.String[] { "AreaType", "AreaId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/EntityAiSyncNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EntityAiSyncNotifyOuterClass.java deleted file mode 100644 index b9f25a536..000000000 --- a/src/main/java/emu/grasscutter/net/proto/EntityAiSyncNotifyOuterClass.java +++ /dev/null @@ -1,1039 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: EntityAiSyncNotify.proto - -package emu.grasscutter.net.proto; - -public final class EntityAiSyncNotifyOuterClass { - private EntityAiSyncNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EntityAiSyncNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:EntityAiSyncNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - java.util.List<emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo> - getInfoListList(); - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo getInfoList(int index); - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - int getInfoListCount(); - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfoOrBuilder> - getInfoListOrBuilderList(); - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfoOrBuilder getInfoListOrBuilder( - int index); - - /** - * <code>repeated uint32 localAvatarAlertedMonsterList = 2;</code> - * @return A list containing the localAvatarAlertedMonsterList. - */ - java.util.List<java.lang.Integer> getLocalAvatarAlertedMonsterListList(); - /** - * <code>repeated uint32 localAvatarAlertedMonsterList = 2;</code> - * @return The count of localAvatarAlertedMonsterList. - */ - int getLocalAvatarAlertedMonsterListCount(); - /** - * <code>repeated uint32 localAvatarAlertedMonsterList = 2;</code> - * @param index The index of the element to return. - * @return The localAvatarAlertedMonsterList at the given index. - */ - int getLocalAvatarAlertedMonsterList(int index); - } - /** - * Protobuf type {@code EntityAiSyncNotify} - */ - public static final class EntityAiSyncNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EntityAiSyncNotify) - EntityAiSyncNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use EntityAiSyncNotify.newBuilder() to construct. - private EntityAiSyncNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private EntityAiSyncNotify() { - infoList_ = java.util.Collections.emptyList(); - localAvatarAlertedMonsterList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EntityAiSyncNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EntityAiSyncNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - infoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo>(); - mutable_bitField0_ |= 0x00000001; - } - infoList_.add( - input.readMessage(emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo.parser(), extensionRegistry)); - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - localAvatarAlertedMonsterList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - localAvatarAlertedMonsterList_.addInt(input.readUInt32()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - localAvatarAlertedMonsterList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - localAvatarAlertedMonsterList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - infoList_ = java.util.Collections.unmodifiableList(infoList_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - localAvatarAlertedMonsterList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.internal_static_EntityAiSyncNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.internal_static_EntityAiSyncNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify.class, emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify.Builder.class); - } - - public static final int INFOLIST_FIELD_NUMBER = 1; - private java.util.List<emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo> infoList_; - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo> getInfoListList() { - return infoList_; - } - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfoOrBuilder> - getInfoListOrBuilderList() { - return infoList_; - } - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - @java.lang.Override - public int getInfoListCount() { - return infoList_.size(); - } - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo getInfoList(int index) { - return infoList_.get(index); - } - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfoOrBuilder getInfoListOrBuilder( - int index) { - return infoList_.get(index); - } - - public static final int LOCALAVATARALERTEDMONSTERLIST_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.IntList localAvatarAlertedMonsterList_; - /** - * <code>repeated uint32 localAvatarAlertedMonsterList = 2;</code> - * @return A list containing the localAvatarAlertedMonsterList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getLocalAvatarAlertedMonsterListList() { - return localAvatarAlertedMonsterList_; - } - /** - * <code>repeated uint32 localAvatarAlertedMonsterList = 2;</code> - * @return The count of localAvatarAlertedMonsterList. - */ - public int getLocalAvatarAlertedMonsterListCount() { - return localAvatarAlertedMonsterList_.size(); - } - /** - * <code>repeated uint32 localAvatarAlertedMonsterList = 2;</code> - * @param index The index of the element to return. - * @return The localAvatarAlertedMonsterList at the given index. - */ - public int getLocalAvatarAlertedMonsterList(int index) { - return localAvatarAlertedMonsterList_.getInt(index); - } - private int localAvatarAlertedMonsterListMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - for (int i = 0; i < infoList_.size(); i++) { - output.writeMessage(1, infoList_.get(i)); - } - if (getLocalAvatarAlertedMonsterListList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(localAvatarAlertedMonsterListMemoizedSerializedSize); - } - for (int i = 0; i < localAvatarAlertedMonsterList_.size(); i++) { - output.writeUInt32NoTag(localAvatarAlertedMonsterList_.getInt(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < infoList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, infoList_.get(i)); - } - { - int dataSize = 0; - for (int i = 0; i < localAvatarAlertedMonsterList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(localAvatarAlertedMonsterList_.getInt(i)); - } - size += dataSize; - if (!getLocalAvatarAlertedMonsterListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - localAvatarAlertedMonsterListMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify other = (emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify) obj; - - if (!getInfoListList() - .equals(other.getInfoListList())) return false; - if (!getLocalAvatarAlertedMonsterListList() - .equals(other.getLocalAvatarAlertedMonsterListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getInfoListCount() > 0) { - hash = (37 * hash) + INFOLIST_FIELD_NUMBER; - hash = (53 * hash) + getInfoListList().hashCode(); - } - if (getLocalAvatarAlertedMonsterListCount() > 0) { - hash = (37 * hash) + LOCALAVATARALERTEDMONSTERLIST_FIELD_NUMBER; - hash = (53 * hash) + getLocalAvatarAlertedMonsterListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EntityAiSyncNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:EntityAiSyncNotify) - emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.internal_static_EntityAiSyncNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.internal_static_EntityAiSyncNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify.class, emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getInfoListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (infoListBuilder_ == null) { - infoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - infoListBuilder_.clear(); - } - localAvatarAlertedMonsterList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.internal_static_EntityAiSyncNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify build() { - emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify buildPartial() { - emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify result = new emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify(this); - int from_bitField0_ = bitField0_; - if (infoListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - infoList_ = java.util.Collections.unmodifiableList(infoList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.infoList_ = infoList_; - } else { - result.infoList_ = infoListBuilder_.build(); - } - if (((bitField0_ & 0x00000002) != 0)) { - localAvatarAlertedMonsterList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.localAvatarAlertedMonsterList_ = localAvatarAlertedMonsterList_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify) { - return mergeFrom((emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify other) { - if (other == emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify.getDefaultInstance()) return this; - if (infoListBuilder_ == null) { - if (!other.infoList_.isEmpty()) { - if (infoList_.isEmpty()) { - infoList_ = other.infoList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureInfoListIsMutable(); - infoList_.addAll(other.infoList_); - } - onChanged(); - } - } else { - if (!other.infoList_.isEmpty()) { - if (infoListBuilder_.isEmpty()) { - infoListBuilder_.dispose(); - infoListBuilder_ = null; - infoList_ = other.infoList_; - bitField0_ = (bitField0_ & ~0x00000001); - infoListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInfoListFieldBuilder() : null; - } else { - infoListBuilder_.addAllMessages(other.infoList_); - } - } - } - if (!other.localAvatarAlertedMonsterList_.isEmpty()) { - if (localAvatarAlertedMonsterList_.isEmpty()) { - localAvatarAlertedMonsterList_ = other.localAvatarAlertedMonsterList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureLocalAvatarAlertedMonsterListIsMutable(); - localAvatarAlertedMonsterList_.addAll(other.localAvatarAlertedMonsterList_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List<emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo> infoList_ = - java.util.Collections.emptyList(); - private void ensureInfoListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - infoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo>(infoList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo, emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo.Builder, emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfoOrBuilder> infoListBuilder_; - - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo> getInfoListList() { - if (infoListBuilder_ == null) { - return java.util.Collections.unmodifiableList(infoList_); - } else { - return infoListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - public int getInfoListCount() { - if (infoListBuilder_ == null) { - return infoList_.size(); - } else { - return infoListBuilder_.getCount(); - } - } - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - public emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo getInfoList(int index) { - if (infoListBuilder_ == null) { - return infoList_.get(index); - } else { - return infoListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - public Builder setInfoList( - int index, emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo value) { - if (infoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInfoListIsMutable(); - infoList_.set(index, value); - onChanged(); - } else { - infoListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - public Builder setInfoList( - int index, emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo.Builder builderForValue) { - if (infoListBuilder_ == null) { - ensureInfoListIsMutable(); - infoList_.set(index, builderForValue.build()); - onChanged(); - } else { - infoListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - public Builder addInfoList(emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo value) { - if (infoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInfoListIsMutable(); - infoList_.add(value); - onChanged(); - } else { - infoListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - public Builder addInfoList( - int index, emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo value) { - if (infoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInfoListIsMutable(); - infoList_.add(index, value); - onChanged(); - } else { - infoListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - public Builder addInfoList( - emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo.Builder builderForValue) { - if (infoListBuilder_ == null) { - ensureInfoListIsMutable(); - infoList_.add(builderForValue.build()); - onChanged(); - } else { - infoListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - public Builder addInfoList( - int index, emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo.Builder builderForValue) { - if (infoListBuilder_ == null) { - ensureInfoListIsMutable(); - infoList_.add(index, builderForValue.build()); - onChanged(); - } else { - infoListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - public Builder addAllInfoList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo> values) { - if (infoListBuilder_ == null) { - ensureInfoListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, infoList_); - onChanged(); - } else { - infoListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - public Builder clearInfoList() { - if (infoListBuilder_ == null) { - infoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - infoListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - public Builder removeInfoList(int index) { - if (infoListBuilder_ == null) { - ensureInfoListIsMutable(); - infoList_.remove(index); - onChanged(); - } else { - infoListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - public emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo.Builder getInfoListBuilder( - int index) { - return getInfoListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - public emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfoOrBuilder getInfoListOrBuilder( - int index) { - if (infoListBuilder_ == null) { - return infoList_.get(index); } else { - return infoListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfoOrBuilder> - getInfoListOrBuilderList() { - if (infoListBuilder_ != null) { - return infoListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(infoList_); - } - } - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - public emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo.Builder addInfoListBuilder() { - return getInfoListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo.getDefaultInstance()); - } - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - public emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo.Builder addInfoListBuilder( - int index) { - return getInfoListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo.getDefaultInstance()); - } - /** - * <code>repeated .AiSyncInfo infoList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo.Builder> - getInfoListBuilderList() { - return getInfoListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo, emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo.Builder, emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfoOrBuilder> - getInfoListFieldBuilder() { - if (infoListBuilder_ == null) { - infoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo, emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo.Builder, emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfoOrBuilder>( - infoList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - infoList_ = null; - } - return infoListBuilder_; - } - - private com.google.protobuf.Internal.IntList localAvatarAlertedMonsterList_ = emptyIntList(); - private void ensureLocalAvatarAlertedMonsterListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - localAvatarAlertedMonsterList_ = mutableCopy(localAvatarAlertedMonsterList_); - bitField0_ |= 0x00000002; - } - } - /** - * <code>repeated uint32 localAvatarAlertedMonsterList = 2;</code> - * @return A list containing the localAvatarAlertedMonsterList. - */ - public java.util.List<java.lang.Integer> - getLocalAvatarAlertedMonsterListList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(localAvatarAlertedMonsterList_) : localAvatarAlertedMonsterList_; - } - /** - * <code>repeated uint32 localAvatarAlertedMonsterList = 2;</code> - * @return The count of localAvatarAlertedMonsterList. - */ - public int getLocalAvatarAlertedMonsterListCount() { - return localAvatarAlertedMonsterList_.size(); - } - /** - * <code>repeated uint32 localAvatarAlertedMonsterList = 2;</code> - * @param index The index of the element to return. - * @return The localAvatarAlertedMonsterList at the given index. - */ - public int getLocalAvatarAlertedMonsterList(int index) { - return localAvatarAlertedMonsterList_.getInt(index); - } - /** - * <code>repeated uint32 localAvatarAlertedMonsterList = 2;</code> - * @param index The index to set the value at. - * @param value The localAvatarAlertedMonsterList to set. - * @return This builder for chaining. - */ - public Builder setLocalAvatarAlertedMonsterList( - int index, int value) { - ensureLocalAvatarAlertedMonsterListIsMutable(); - localAvatarAlertedMonsterList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 localAvatarAlertedMonsterList = 2;</code> - * @param value The localAvatarAlertedMonsterList to add. - * @return This builder for chaining. - */ - public Builder addLocalAvatarAlertedMonsterList(int value) { - ensureLocalAvatarAlertedMonsterListIsMutable(); - localAvatarAlertedMonsterList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 localAvatarAlertedMonsterList = 2;</code> - * @param values The localAvatarAlertedMonsterList to add. - * @return This builder for chaining. - */ - public Builder addAllLocalAvatarAlertedMonsterList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureLocalAvatarAlertedMonsterListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, localAvatarAlertedMonsterList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 localAvatarAlertedMonsterList = 2;</code> - * @return This builder for chaining. - */ - public Builder clearLocalAvatarAlertedMonsterList() { - localAvatarAlertedMonsterList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EntityAiSyncNotify) - } - - // @@protoc_insertion_point(class_scope:EntityAiSyncNotify) - private static final emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify(); - } - - public static emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<EntityAiSyncNotify> - PARSER = new com.google.protobuf.AbstractParser<EntityAiSyncNotify>() { - @java.lang.Override - public EntityAiSyncNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EntityAiSyncNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<EntityAiSyncNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<EntityAiSyncNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EntityAiSyncNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EntityAiSyncNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030EntityAiSyncNotify.proto\032\020AiSyncInfo.p" + - "roto\"Z\n\022EntityAiSyncNotify\022\035\n\010infoList\030\001" + - " \003(\0132\013.AiSyncInfo\022%\n\035localAvatarAlertedM" + - "onsterList\030\002 \003(\rB\033\n\031emu.grasscutter.net." + - "protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AiSyncInfoOuterClass.getDescriptor(), - }); - internal_static_EntityAiSyncNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_EntityAiSyncNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EntityAiSyncNotify_descriptor, - new java.lang.String[] { "InfoList", "LocalAvatarAlertedMonsterList", }); - emu.grasscutter.net.proto.AiSyncInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/EntityAuthorityInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EntityAuthorityInfoOuterClass.java deleted file mode 100644 index 05bee525f..000000000 --- a/src/main/java/emu/grasscutter/net/proto/EntityAuthorityInfoOuterClass.java +++ /dev/null @@ -1,1672 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: EntityAuthorityInfo.proto - -package emu.grasscutter.net.proto; - -public final class EntityAuthorityInfoOuterClass { - private EntityAuthorityInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EntityAuthorityInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:EntityAuthorityInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.AbilitySyncStateInfo abilityInfo = 1;</code> - * @return Whether the abilityInfo field is set. - */ - boolean hasAbilityInfo(); - /** - * <code>.AbilitySyncStateInfo abilityInfo = 1;</code> - * @return The abilityInfo. - */ - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getAbilityInfo(); - /** - * <code>.AbilitySyncStateInfo abilityInfo = 1;</code> - */ - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getAbilityInfoOrBuilder(); - - /** - * <code>.EntityRendererChangedInfo rendererChangedInfo = 2;</code> - * @return Whether the rendererChangedInfo field is set. - */ - boolean hasRendererChangedInfo(); - /** - * <code>.EntityRendererChangedInfo rendererChangedInfo = 2;</code> - * @return The rendererChangedInfo. - */ - emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo getRendererChangedInfo(); - /** - * <code>.EntityRendererChangedInfo rendererChangedInfo = 2;</code> - */ - emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfoOrBuilder getRendererChangedInfoOrBuilder(); - - /** - * <code>.SceneEntityAiInfo aiInfo = 3;</code> - * @return Whether the aiInfo field is set. - */ - boolean hasAiInfo(); - /** - * <code>.SceneEntityAiInfo aiInfo = 3;</code> - * @return The aiInfo. - */ - emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo getAiInfo(); - /** - * <code>.SceneEntityAiInfo aiInfo = 3;</code> - */ - emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfoOrBuilder getAiInfoOrBuilder(); - - /** - * <code>.Vector bornPos = 4;</code> - * @return Whether the bornPos field is set. - */ - boolean hasBornPos(); - /** - * <code>.Vector bornPos = 4;</code> - * @return The bornPos. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getBornPos(); - /** - * <code>.Vector bornPos = 4;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getBornPosOrBuilder(); - - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - java.util.List<emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair> - getPoseParaListList(); - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair getPoseParaList(int index); - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - int getPoseParaListCount(); - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPairOrBuilder> - getPoseParaListOrBuilderList(); - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPairOrBuilder getPoseParaListOrBuilder( - int index); - } - /** - * Protobuf type {@code EntityAuthorityInfo} - */ - public static final class EntityAuthorityInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EntityAuthorityInfo) - EntityAuthorityInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use EntityAuthorityInfo.newBuilder() to construct. - private EntityAuthorityInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private EntityAuthorityInfo() { - poseParaList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EntityAuthorityInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EntityAuthorityInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder subBuilder = null; - if (abilityInfo_ != null) { - subBuilder = abilityInfo_.toBuilder(); - } - abilityInfo_ = input.readMessage(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abilityInfo_); - abilityInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo.Builder subBuilder = null; - if (rendererChangedInfo_ != null) { - subBuilder = rendererChangedInfo_.toBuilder(); - } - rendererChangedInfo_ = input.readMessage(emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rendererChangedInfo_); - rendererChangedInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo.Builder subBuilder = null; - if (aiInfo_ != null) { - subBuilder = aiInfo_.toBuilder(); - } - aiInfo_ = input.readMessage(emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(aiInfo_); - aiInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (bornPos_ != null) { - subBuilder = bornPos_.toBuilder(); - } - bornPos_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(bornPos_); - bornPos_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - poseParaList_ = new java.util.ArrayList<emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair>(); - mutable_bitField0_ |= 0x00000001; - } - poseParaList_.add( - input.readMessage(emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - poseParaList_ = java.util.Collections.unmodifiableList(poseParaList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.internal_static_EntityAuthorityInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.internal_static_EntityAuthorityInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo.class, emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo.Builder.class); - } - - public static final int ABILITYINFO_FIELD_NUMBER = 1; - private emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo abilityInfo_; - /** - * <code>.AbilitySyncStateInfo abilityInfo = 1;</code> - * @return Whether the abilityInfo field is set. - */ - @java.lang.Override - public boolean hasAbilityInfo() { - return abilityInfo_ != null; - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 1;</code> - * @return The abilityInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getAbilityInfo() { - return abilityInfo_ == null ? emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : abilityInfo_; - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getAbilityInfoOrBuilder() { - return getAbilityInfo(); - } - - public static final int RENDERERCHANGEDINFO_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo rendererChangedInfo_; - /** - * <code>.EntityRendererChangedInfo rendererChangedInfo = 2;</code> - * @return Whether the rendererChangedInfo field is set. - */ - @java.lang.Override - public boolean hasRendererChangedInfo() { - return rendererChangedInfo_ != null; - } - /** - * <code>.EntityRendererChangedInfo rendererChangedInfo = 2;</code> - * @return The rendererChangedInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo getRendererChangedInfo() { - return rendererChangedInfo_ == null ? emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo.getDefaultInstance() : rendererChangedInfo_; - } - /** - * <code>.EntityRendererChangedInfo rendererChangedInfo = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfoOrBuilder getRendererChangedInfoOrBuilder() { - return getRendererChangedInfo(); - } - - public static final int AIINFO_FIELD_NUMBER = 3; - private emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo aiInfo_; - /** - * <code>.SceneEntityAiInfo aiInfo = 3;</code> - * @return Whether the aiInfo field is set. - */ - @java.lang.Override - public boolean hasAiInfo() { - return aiInfo_ != null; - } - /** - * <code>.SceneEntityAiInfo aiInfo = 3;</code> - * @return The aiInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo getAiInfo() { - return aiInfo_ == null ? emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo.getDefaultInstance() : aiInfo_; - } - /** - * <code>.SceneEntityAiInfo aiInfo = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfoOrBuilder getAiInfoOrBuilder() { - return getAiInfo(); - } - - public static final int BORNPOS_FIELD_NUMBER = 4; - private emu.grasscutter.net.proto.VectorOuterClass.Vector bornPos_; - /** - * <code>.Vector bornPos = 4;</code> - * @return Whether the bornPos field is set. - */ - @java.lang.Override - public boolean hasBornPos() { - return bornPos_ != null; - } - /** - * <code>.Vector bornPos = 4;</code> - * @return The bornPos. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getBornPos() { - return bornPos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : bornPos_; - } - /** - * <code>.Vector bornPos = 4;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getBornPosOrBuilder() { - return getBornPos(); - } - - public static final int POSEPARALIST_FIELD_NUMBER = 5; - private java.util.List<emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair> poseParaList_; - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair> getPoseParaListList() { - return poseParaList_; - } - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPairOrBuilder> - getPoseParaListOrBuilderList() { - return poseParaList_; - } - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - @java.lang.Override - public int getPoseParaListCount() { - return poseParaList_.size(); - } - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair getPoseParaList(int index) { - return poseParaList_.get(index); - } - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPairOrBuilder getPoseParaListOrBuilder( - int index) { - return poseParaList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (abilityInfo_ != null) { - output.writeMessage(1, getAbilityInfo()); - } - if (rendererChangedInfo_ != null) { - output.writeMessage(2, getRendererChangedInfo()); - } - if (aiInfo_ != null) { - output.writeMessage(3, getAiInfo()); - } - if (bornPos_ != null) { - output.writeMessage(4, getBornPos()); - } - for (int i = 0; i < poseParaList_.size(); i++) { - output.writeMessage(5, poseParaList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (abilityInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAbilityInfo()); - } - if (rendererChangedInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRendererChangedInfo()); - } - if (aiInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getAiInfo()); - } - if (bornPos_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getBornPos()); - } - for (int i = 0; i < poseParaList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, poseParaList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo other = (emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo) obj; - - if (hasAbilityInfo() != other.hasAbilityInfo()) return false; - if (hasAbilityInfo()) { - if (!getAbilityInfo() - .equals(other.getAbilityInfo())) return false; - } - if (hasRendererChangedInfo() != other.hasRendererChangedInfo()) return false; - if (hasRendererChangedInfo()) { - if (!getRendererChangedInfo() - .equals(other.getRendererChangedInfo())) return false; - } - if (hasAiInfo() != other.hasAiInfo()) return false; - if (hasAiInfo()) { - if (!getAiInfo() - .equals(other.getAiInfo())) return false; - } - if (hasBornPos() != other.hasBornPos()) return false; - if (hasBornPos()) { - if (!getBornPos() - .equals(other.getBornPos())) return false; - } - if (!getPoseParaListList() - .equals(other.getPoseParaListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasAbilityInfo()) { - hash = (37 * hash) + ABILITYINFO_FIELD_NUMBER; - hash = (53 * hash) + getAbilityInfo().hashCode(); - } - if (hasRendererChangedInfo()) { - hash = (37 * hash) + RENDERERCHANGEDINFO_FIELD_NUMBER; - hash = (53 * hash) + getRendererChangedInfo().hashCode(); - } - if (hasAiInfo()) { - hash = (37 * hash) + AIINFO_FIELD_NUMBER; - hash = (53 * hash) + getAiInfo().hashCode(); - } - if (hasBornPos()) { - hash = (37 * hash) + BORNPOS_FIELD_NUMBER; - hash = (53 * hash) + getBornPos().hashCode(); - } - if (getPoseParaListCount() > 0) { - hash = (37 * hash) + POSEPARALIST_FIELD_NUMBER; - hash = (53 * hash) + getPoseParaListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EntityAuthorityInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:EntityAuthorityInfo) - emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.internal_static_EntityAuthorityInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.internal_static_EntityAuthorityInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo.class, emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPoseParaListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (abilityInfoBuilder_ == null) { - abilityInfo_ = null; - } else { - abilityInfo_ = null; - abilityInfoBuilder_ = null; - } - if (rendererChangedInfoBuilder_ == null) { - rendererChangedInfo_ = null; - } else { - rendererChangedInfo_ = null; - rendererChangedInfoBuilder_ = null; - } - if (aiInfoBuilder_ == null) { - aiInfo_ = null; - } else { - aiInfo_ = null; - aiInfoBuilder_ = null; - } - if (bornPosBuilder_ == null) { - bornPos_ = null; - } else { - bornPos_ = null; - bornPosBuilder_ = null; - } - if (poseParaListBuilder_ == null) { - poseParaList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - poseParaListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.internal_static_EntityAuthorityInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo build() { - emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo buildPartial() { - emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo result = new emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo(this); - int from_bitField0_ = bitField0_; - if (abilityInfoBuilder_ == null) { - result.abilityInfo_ = abilityInfo_; - } else { - result.abilityInfo_ = abilityInfoBuilder_.build(); - } - if (rendererChangedInfoBuilder_ == null) { - result.rendererChangedInfo_ = rendererChangedInfo_; - } else { - result.rendererChangedInfo_ = rendererChangedInfoBuilder_.build(); - } - if (aiInfoBuilder_ == null) { - result.aiInfo_ = aiInfo_; - } else { - result.aiInfo_ = aiInfoBuilder_.build(); - } - if (bornPosBuilder_ == null) { - result.bornPos_ = bornPos_; - } else { - result.bornPos_ = bornPosBuilder_.build(); - } - if (poseParaListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - poseParaList_ = java.util.Collections.unmodifiableList(poseParaList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.poseParaList_ = poseParaList_; - } else { - result.poseParaList_ = poseParaListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo) { - return mergeFrom((emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo other) { - if (other == emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo.getDefaultInstance()) return this; - if (other.hasAbilityInfo()) { - mergeAbilityInfo(other.getAbilityInfo()); - } - if (other.hasRendererChangedInfo()) { - mergeRendererChangedInfo(other.getRendererChangedInfo()); - } - if (other.hasAiInfo()) { - mergeAiInfo(other.getAiInfo()); - } - if (other.hasBornPos()) { - mergeBornPos(other.getBornPos()); - } - if (poseParaListBuilder_ == null) { - if (!other.poseParaList_.isEmpty()) { - if (poseParaList_.isEmpty()) { - poseParaList_ = other.poseParaList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePoseParaListIsMutable(); - poseParaList_.addAll(other.poseParaList_); - } - onChanged(); - } - } else { - if (!other.poseParaList_.isEmpty()) { - if (poseParaListBuilder_.isEmpty()) { - poseParaListBuilder_.dispose(); - poseParaListBuilder_ = null; - poseParaList_ = other.poseParaList_; - bitField0_ = (bitField0_ & ~0x00000001); - poseParaListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPoseParaListFieldBuilder() : null; - } else { - poseParaListBuilder_.addAllMessages(other.poseParaList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo abilityInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder> abilityInfoBuilder_; - /** - * <code>.AbilitySyncStateInfo abilityInfo = 1;</code> - * @return Whether the abilityInfo field is set. - */ - public boolean hasAbilityInfo() { - return abilityInfoBuilder_ != null || abilityInfo_ != null; - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 1;</code> - * @return The abilityInfo. - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getAbilityInfo() { - if (abilityInfoBuilder_ == null) { - return abilityInfo_ == null ? emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : abilityInfo_; - } else { - return abilityInfoBuilder_.getMessage(); - } - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 1;</code> - */ - public Builder setAbilityInfo(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo value) { - if (abilityInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - abilityInfo_ = value; - onChanged(); - } else { - abilityInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 1;</code> - */ - public Builder setAbilityInfo( - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder builderForValue) { - if (abilityInfoBuilder_ == null) { - abilityInfo_ = builderForValue.build(); - onChanged(); - } else { - abilityInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 1;</code> - */ - public Builder mergeAbilityInfo(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo value) { - if (abilityInfoBuilder_ == null) { - if (abilityInfo_ != null) { - abilityInfo_ = - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.newBuilder(abilityInfo_).mergeFrom(value).buildPartial(); - } else { - abilityInfo_ = value; - } - onChanged(); - } else { - abilityInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 1;</code> - */ - public Builder clearAbilityInfo() { - if (abilityInfoBuilder_ == null) { - abilityInfo_ = null; - onChanged(); - } else { - abilityInfo_ = null; - abilityInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 1;</code> - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder getAbilityInfoBuilder() { - - onChanged(); - return getAbilityInfoFieldBuilder().getBuilder(); - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 1;</code> - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getAbilityInfoOrBuilder() { - if (abilityInfoBuilder_ != null) { - return abilityInfoBuilder_.getMessageOrBuilder(); - } else { - return abilityInfo_ == null ? - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : abilityInfo_; - } - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 1;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder> - getAbilityInfoFieldBuilder() { - if (abilityInfoBuilder_ == null) { - abilityInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder>( - getAbilityInfo(), - getParentForChildren(), - isClean()); - abilityInfo_ = null; - } - return abilityInfoBuilder_; - } - - private emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo rendererChangedInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo, emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo.Builder, emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfoOrBuilder> rendererChangedInfoBuilder_; - /** - * <code>.EntityRendererChangedInfo rendererChangedInfo = 2;</code> - * @return Whether the rendererChangedInfo field is set. - */ - public boolean hasRendererChangedInfo() { - return rendererChangedInfoBuilder_ != null || rendererChangedInfo_ != null; - } - /** - * <code>.EntityRendererChangedInfo rendererChangedInfo = 2;</code> - * @return The rendererChangedInfo. - */ - public emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo getRendererChangedInfo() { - if (rendererChangedInfoBuilder_ == null) { - return rendererChangedInfo_ == null ? emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo.getDefaultInstance() : rendererChangedInfo_; - } else { - return rendererChangedInfoBuilder_.getMessage(); - } - } - /** - * <code>.EntityRendererChangedInfo rendererChangedInfo = 2;</code> - */ - public Builder setRendererChangedInfo(emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo value) { - if (rendererChangedInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rendererChangedInfo_ = value; - onChanged(); - } else { - rendererChangedInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.EntityRendererChangedInfo rendererChangedInfo = 2;</code> - */ - public Builder setRendererChangedInfo( - emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo.Builder builderForValue) { - if (rendererChangedInfoBuilder_ == null) { - rendererChangedInfo_ = builderForValue.build(); - onChanged(); - } else { - rendererChangedInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.EntityRendererChangedInfo rendererChangedInfo = 2;</code> - */ - public Builder mergeRendererChangedInfo(emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo value) { - if (rendererChangedInfoBuilder_ == null) { - if (rendererChangedInfo_ != null) { - rendererChangedInfo_ = - emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo.newBuilder(rendererChangedInfo_).mergeFrom(value).buildPartial(); - } else { - rendererChangedInfo_ = value; - } - onChanged(); - } else { - rendererChangedInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.EntityRendererChangedInfo rendererChangedInfo = 2;</code> - */ - public Builder clearRendererChangedInfo() { - if (rendererChangedInfoBuilder_ == null) { - rendererChangedInfo_ = null; - onChanged(); - } else { - rendererChangedInfo_ = null; - rendererChangedInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.EntityRendererChangedInfo rendererChangedInfo = 2;</code> - */ - public emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo.Builder getRendererChangedInfoBuilder() { - - onChanged(); - return getRendererChangedInfoFieldBuilder().getBuilder(); - } - /** - * <code>.EntityRendererChangedInfo rendererChangedInfo = 2;</code> - */ - public emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfoOrBuilder getRendererChangedInfoOrBuilder() { - if (rendererChangedInfoBuilder_ != null) { - return rendererChangedInfoBuilder_.getMessageOrBuilder(); - } else { - return rendererChangedInfo_ == null ? - emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo.getDefaultInstance() : rendererChangedInfo_; - } - } - /** - * <code>.EntityRendererChangedInfo rendererChangedInfo = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo, emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo.Builder, emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfoOrBuilder> - getRendererChangedInfoFieldBuilder() { - if (rendererChangedInfoBuilder_ == null) { - rendererChangedInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo, emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo.Builder, emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfoOrBuilder>( - getRendererChangedInfo(), - getParentForChildren(), - isClean()); - rendererChangedInfo_ = null; - } - return rendererChangedInfoBuilder_; - } - - private emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo aiInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo, emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo.Builder, emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfoOrBuilder> aiInfoBuilder_; - /** - * <code>.SceneEntityAiInfo aiInfo = 3;</code> - * @return Whether the aiInfo field is set. - */ - public boolean hasAiInfo() { - return aiInfoBuilder_ != null || aiInfo_ != null; - } - /** - * <code>.SceneEntityAiInfo aiInfo = 3;</code> - * @return The aiInfo. - */ - public emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo getAiInfo() { - if (aiInfoBuilder_ == null) { - return aiInfo_ == null ? emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo.getDefaultInstance() : aiInfo_; - } else { - return aiInfoBuilder_.getMessage(); - } - } - /** - * <code>.SceneEntityAiInfo aiInfo = 3;</code> - */ - public Builder setAiInfo(emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo value) { - if (aiInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - aiInfo_ = value; - onChanged(); - } else { - aiInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.SceneEntityAiInfo aiInfo = 3;</code> - */ - public Builder setAiInfo( - emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo.Builder builderForValue) { - if (aiInfoBuilder_ == null) { - aiInfo_ = builderForValue.build(); - onChanged(); - } else { - aiInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.SceneEntityAiInfo aiInfo = 3;</code> - */ - public Builder mergeAiInfo(emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo value) { - if (aiInfoBuilder_ == null) { - if (aiInfo_ != null) { - aiInfo_ = - emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo.newBuilder(aiInfo_).mergeFrom(value).buildPartial(); - } else { - aiInfo_ = value; - } - onChanged(); - } else { - aiInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.SceneEntityAiInfo aiInfo = 3;</code> - */ - public Builder clearAiInfo() { - if (aiInfoBuilder_ == null) { - aiInfo_ = null; - onChanged(); - } else { - aiInfo_ = null; - aiInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.SceneEntityAiInfo aiInfo = 3;</code> - */ - public emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo.Builder getAiInfoBuilder() { - - onChanged(); - return getAiInfoFieldBuilder().getBuilder(); - } - /** - * <code>.SceneEntityAiInfo aiInfo = 3;</code> - */ - public emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfoOrBuilder getAiInfoOrBuilder() { - if (aiInfoBuilder_ != null) { - return aiInfoBuilder_.getMessageOrBuilder(); - } else { - return aiInfo_ == null ? - emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo.getDefaultInstance() : aiInfo_; - } - } - /** - * <code>.SceneEntityAiInfo aiInfo = 3;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo, emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo.Builder, emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfoOrBuilder> - getAiInfoFieldBuilder() { - if (aiInfoBuilder_ == null) { - aiInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo, emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo.Builder, emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfoOrBuilder>( - getAiInfo(), - getParentForChildren(), - isClean()); - aiInfo_ = null; - } - return aiInfoBuilder_; - } - - private emu.grasscutter.net.proto.VectorOuterClass.Vector bornPos_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> bornPosBuilder_; - /** - * <code>.Vector bornPos = 4;</code> - * @return Whether the bornPos field is set. - */ - public boolean hasBornPos() { - return bornPosBuilder_ != null || bornPos_ != null; - } - /** - * <code>.Vector bornPos = 4;</code> - * @return The bornPos. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getBornPos() { - if (bornPosBuilder_ == null) { - return bornPos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : bornPos_; - } else { - return bornPosBuilder_.getMessage(); - } - } - /** - * <code>.Vector bornPos = 4;</code> - */ - public Builder setBornPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (bornPosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - bornPos_ = value; - onChanged(); - } else { - bornPosBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Vector bornPos = 4;</code> - */ - public Builder setBornPos( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (bornPosBuilder_ == null) { - bornPos_ = builderForValue.build(); - onChanged(); - } else { - bornPosBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Vector bornPos = 4;</code> - */ - public Builder mergeBornPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (bornPosBuilder_ == null) { - if (bornPos_ != null) { - bornPos_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(bornPos_).mergeFrom(value).buildPartial(); - } else { - bornPos_ = value; - } - onChanged(); - } else { - bornPosBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Vector bornPos = 4;</code> - */ - public Builder clearBornPos() { - if (bornPosBuilder_ == null) { - bornPos_ = null; - onChanged(); - } else { - bornPos_ = null; - bornPosBuilder_ = null; - } - - return this; - } - /** - * <code>.Vector bornPos = 4;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getBornPosBuilder() { - - onChanged(); - return getBornPosFieldBuilder().getBuilder(); - } - /** - * <code>.Vector bornPos = 4;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getBornPosOrBuilder() { - if (bornPosBuilder_ != null) { - return bornPosBuilder_.getMessageOrBuilder(); - } else { - return bornPos_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : bornPos_; - } - } - /** - * <code>.Vector bornPos = 4;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getBornPosFieldBuilder() { - if (bornPosBuilder_ == null) { - bornPosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getBornPos(), - getParentForChildren(), - isClean()); - bornPos_ = null; - } - return bornPosBuilder_; - } - - private java.util.List<emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair> poseParaList_ = - java.util.Collections.emptyList(); - private void ensurePoseParaListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - poseParaList_ = new java.util.ArrayList<emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair>(poseParaList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair, emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder, emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPairOrBuilder> poseParaListBuilder_; - - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair> getPoseParaListList() { - if (poseParaListBuilder_ == null) { - return java.util.Collections.unmodifiableList(poseParaList_); - } else { - return poseParaListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - public int getPoseParaListCount() { - if (poseParaListBuilder_ == null) { - return poseParaList_.size(); - } else { - return poseParaListBuilder_.getCount(); - } - } - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair getPoseParaList(int index) { - if (poseParaListBuilder_ == null) { - return poseParaList_.get(index); - } else { - return poseParaListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - public Builder setPoseParaList( - int index, emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair value) { - if (poseParaListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePoseParaListIsMutable(); - poseParaList_.set(index, value); - onChanged(); - } else { - poseParaListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - public Builder setPoseParaList( - int index, emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder builderForValue) { - if (poseParaListBuilder_ == null) { - ensurePoseParaListIsMutable(); - poseParaList_.set(index, builderForValue.build()); - onChanged(); - } else { - poseParaListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - public Builder addPoseParaList(emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair value) { - if (poseParaListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePoseParaListIsMutable(); - poseParaList_.add(value); - onChanged(); - } else { - poseParaListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - public Builder addPoseParaList( - int index, emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair value) { - if (poseParaListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePoseParaListIsMutable(); - poseParaList_.add(index, value); - onChanged(); - } else { - poseParaListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - public Builder addPoseParaList( - emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder builderForValue) { - if (poseParaListBuilder_ == null) { - ensurePoseParaListIsMutable(); - poseParaList_.add(builderForValue.build()); - onChanged(); - } else { - poseParaListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - public Builder addPoseParaList( - int index, emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder builderForValue) { - if (poseParaListBuilder_ == null) { - ensurePoseParaListIsMutable(); - poseParaList_.add(index, builderForValue.build()); - onChanged(); - } else { - poseParaListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - public Builder addAllPoseParaList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair> values) { - if (poseParaListBuilder_ == null) { - ensurePoseParaListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, poseParaList_); - onChanged(); - } else { - poseParaListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - public Builder clearPoseParaList() { - if (poseParaListBuilder_ == null) { - poseParaList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - poseParaListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - public Builder removePoseParaList(int index) { - if (poseParaListBuilder_ == null) { - ensurePoseParaListIsMutable(); - poseParaList_.remove(index); - onChanged(); - } else { - poseParaListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder getPoseParaListBuilder( - int index) { - return getPoseParaListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPairOrBuilder getPoseParaListOrBuilder( - int index) { - if (poseParaListBuilder_ == null) { - return poseParaList_.get(index); } else { - return poseParaListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPairOrBuilder> - getPoseParaListOrBuilderList() { - if (poseParaListBuilder_ != null) { - return poseParaListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(poseParaList_); - } - } - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder addPoseParaListBuilder() { - return getPoseParaListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.getDefaultInstance()); - } - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder addPoseParaListBuilder( - int index) { - return getPoseParaListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.getDefaultInstance()); - } - /** - * <code>repeated .AnimatorParameterValueInfoPair poseParaList = 5;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder> - getPoseParaListBuilderList() { - return getPoseParaListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair, emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder, emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPairOrBuilder> - getPoseParaListFieldBuilder() { - if (poseParaListBuilder_ == null) { - poseParaListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair, emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder, emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPairOrBuilder>( - poseParaList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - poseParaList_ = null; - } - return poseParaListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EntityAuthorityInfo) - } - - // @@protoc_insertion_point(class_scope:EntityAuthorityInfo) - private static final emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo(); - } - - public static emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<EntityAuthorityInfo> - PARSER = new com.google.protobuf.AbstractParser<EntityAuthorityInfo>() { - @java.lang.Override - public EntityAuthorityInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EntityAuthorityInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<EntityAuthorityInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<EntityAuthorityInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EntityAuthorityInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EntityAuthorityInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031EntityAuthorityInfo.proto\032\032AbilitySync" + - "StateInfo.proto\032$AnimatorParameterValueI" + - "nfoPair.proto\032\037EntityRendererChangedInfo" + - ".proto\032\027SceneEntityAiInfo.proto\032\014Vector." + - "proto\"\357\001\n\023EntityAuthorityInfo\022*\n\013ability" + - "Info\030\001 \001(\0132\025.AbilitySyncStateInfo\0227\n\023ren" + - "dererChangedInfo\030\002 \001(\0132\032.EntityRendererC" + - "hangedInfo\022\"\n\006aiInfo\030\003 \001(\0132\022.SceneEntity" + - "AiInfo\022\030\n\007bornPos\030\004 \001(\0132\007.Vector\0225\n\014pose" + - "ParaList\030\005 \003(\0132\037.AnimatorParameterValueI" + - "nfoPairB\033\n\031emu.grasscutter.net.protob\006pr" + - "oto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.getDescriptor(), - emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(), - }); - internal_static_EntityAuthorityInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_EntityAuthorityInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EntityAuthorityInfo_descriptor, - new java.lang.String[] { "AbilityInfo", "RendererChangedInfo", "AiInfo", "BornPos", "PoseParaList", }); - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.getDescriptor(); - emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/EntityClientDataOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EntityClientDataOuterClass.java deleted file mode 100644 index 592d589c4..000000000 --- a/src/main/java/emu/grasscutter/net/proto/EntityClientDataOuterClass.java +++ /dev/null @@ -1,680 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: EntityClientData.proto - -package emu.grasscutter.net.proto; - -public final class EntityClientDataOuterClass { - private EntityClientDataOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EntityClientDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:EntityClientData) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 windChangeSceneTime = 1;</code> - * @return The windChangeSceneTime. - */ - int getWindChangeSceneTime(); - - /** - * <code>float windmillSyncAngle = 2;</code> - * @return The windmillSyncAngle. - */ - float getWindmillSyncAngle(); - - /** - * <code>int32 windChangeTargetLevel = 3;</code> - * @return The windChangeTargetLevel. - */ - int getWindChangeTargetLevel(); - } - /** - * Protobuf type {@code EntityClientData} - */ - public static final class EntityClientData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EntityClientData) - EntityClientDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use EntityClientData.newBuilder() to construct. - private EntityClientData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private EntityClientData() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EntityClientData(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EntityClientData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - windChangeSceneTime_ = input.readUInt32(); - break; - } - case 21: { - - windmillSyncAngle_ = input.readFloat(); - break; - } - case 24: { - - windChangeTargetLevel_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EntityClientDataOuterClass.internal_static_EntityClientData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EntityClientDataOuterClass.internal_static_EntityClientData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.class, emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.Builder.class); - } - - public static final int WINDCHANGESCENETIME_FIELD_NUMBER = 1; - private int windChangeSceneTime_; - /** - * <code>uint32 windChangeSceneTime = 1;</code> - * @return The windChangeSceneTime. - */ - @java.lang.Override - public int getWindChangeSceneTime() { - return windChangeSceneTime_; - } - - public static final int WINDMILLSYNCANGLE_FIELD_NUMBER = 2; - private float windmillSyncAngle_; - /** - * <code>float windmillSyncAngle = 2;</code> - * @return The windmillSyncAngle. - */ - @java.lang.Override - public float getWindmillSyncAngle() { - return windmillSyncAngle_; - } - - public static final int WINDCHANGETARGETLEVEL_FIELD_NUMBER = 3; - private int windChangeTargetLevel_; - /** - * <code>int32 windChangeTargetLevel = 3;</code> - * @return The windChangeTargetLevel. - */ - @java.lang.Override - public int getWindChangeTargetLevel() { - return windChangeTargetLevel_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (windChangeSceneTime_ != 0) { - output.writeUInt32(1, windChangeSceneTime_); - } - if (windmillSyncAngle_ != 0F) { - output.writeFloat(2, windmillSyncAngle_); - } - if (windChangeTargetLevel_ != 0) { - output.writeInt32(3, windChangeTargetLevel_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (windChangeSceneTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, windChangeSceneTime_); - } - if (windmillSyncAngle_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, windmillSyncAngle_); - } - if (windChangeTargetLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, windChangeTargetLevel_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData other = (emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData) obj; - - if (getWindChangeSceneTime() - != other.getWindChangeSceneTime()) return false; - if (java.lang.Float.floatToIntBits(getWindmillSyncAngle()) - != java.lang.Float.floatToIntBits( - other.getWindmillSyncAngle())) return false; - if (getWindChangeTargetLevel() - != other.getWindChangeTargetLevel()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + WINDCHANGESCENETIME_FIELD_NUMBER; - hash = (53 * hash) + getWindChangeSceneTime(); - hash = (37 * hash) + WINDMILLSYNCANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getWindmillSyncAngle()); - hash = (37 * hash) + WINDCHANGETARGETLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getWindChangeTargetLevel(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EntityClientData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:EntityClientData) - emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EntityClientDataOuterClass.internal_static_EntityClientData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EntityClientDataOuterClass.internal_static_EntityClientData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.class, emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - windChangeSceneTime_ = 0; - - windmillSyncAngle_ = 0F; - - windChangeTargetLevel_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.EntityClientDataOuterClass.internal_static_EntityClientData_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData getDefaultInstanceForType() { - return emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData build() { - emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData buildPartial() { - emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData result = new emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData(this); - result.windChangeSceneTime_ = windChangeSceneTime_; - result.windmillSyncAngle_ = windmillSyncAngle_; - result.windChangeTargetLevel_ = windChangeTargetLevel_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData) { - return mergeFrom((emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData other) { - if (other == emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.getDefaultInstance()) return this; - if (other.getWindChangeSceneTime() != 0) { - setWindChangeSceneTime(other.getWindChangeSceneTime()); - } - if (other.getWindmillSyncAngle() != 0F) { - setWindmillSyncAngle(other.getWindmillSyncAngle()); - } - if (other.getWindChangeTargetLevel() != 0) { - setWindChangeTargetLevel(other.getWindChangeTargetLevel()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int windChangeSceneTime_ ; - /** - * <code>uint32 windChangeSceneTime = 1;</code> - * @return The windChangeSceneTime. - */ - @java.lang.Override - public int getWindChangeSceneTime() { - return windChangeSceneTime_; - } - /** - * <code>uint32 windChangeSceneTime = 1;</code> - * @param value The windChangeSceneTime to set. - * @return This builder for chaining. - */ - public Builder setWindChangeSceneTime(int value) { - - windChangeSceneTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 windChangeSceneTime = 1;</code> - * @return This builder for chaining. - */ - public Builder clearWindChangeSceneTime() { - - windChangeSceneTime_ = 0; - onChanged(); - return this; - } - - private float windmillSyncAngle_ ; - /** - * <code>float windmillSyncAngle = 2;</code> - * @return The windmillSyncAngle. - */ - @java.lang.Override - public float getWindmillSyncAngle() { - return windmillSyncAngle_; - } - /** - * <code>float windmillSyncAngle = 2;</code> - * @param value The windmillSyncAngle to set. - * @return This builder for chaining. - */ - public Builder setWindmillSyncAngle(float value) { - - windmillSyncAngle_ = value; - onChanged(); - return this; - } - /** - * <code>float windmillSyncAngle = 2;</code> - * @return This builder for chaining. - */ - public Builder clearWindmillSyncAngle() { - - windmillSyncAngle_ = 0F; - onChanged(); - return this; - } - - private int windChangeTargetLevel_ ; - /** - * <code>int32 windChangeTargetLevel = 3;</code> - * @return The windChangeTargetLevel. - */ - @java.lang.Override - public int getWindChangeTargetLevel() { - return windChangeTargetLevel_; - } - /** - * <code>int32 windChangeTargetLevel = 3;</code> - * @param value The windChangeTargetLevel to set. - * @return This builder for chaining. - */ - public Builder setWindChangeTargetLevel(int value) { - - windChangeTargetLevel_ = value; - onChanged(); - return this; - } - /** - * <code>int32 windChangeTargetLevel = 3;</code> - * @return This builder for chaining. - */ - public Builder clearWindChangeTargetLevel() { - - windChangeTargetLevel_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EntityClientData) - } - - // @@protoc_insertion_point(class_scope:EntityClientData) - private static final emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData(); - } - - public static emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<EntityClientData> - PARSER = new com.google.protobuf.AbstractParser<EntityClientData>() { - @java.lang.Override - public EntityClientData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EntityClientData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<EntityClientData> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<EntityClientData> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EntityClientData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EntityClientData_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026EntityClientData.proto\"i\n\020EntityClient" + - "Data\022\033\n\023windChangeSceneTime\030\001 \001(\r\022\031\n\021win" + - "dmillSyncAngle\030\002 \001(\002\022\035\n\025windChangeTarget" + - "Level\030\003 \001(\005B\033\n\031emu.grasscutter.net.proto" + - "b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_EntityClientData_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_EntityClientData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EntityClientData_descriptor, - new java.lang.String[] { "WindChangeSceneTime", "WindmillSyncAngle", "WindChangeTargetLevel", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/EntityEnvironmentInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EntityEnvironmentInfoOuterClass.java deleted file mode 100644 index d356845df..000000000 --- a/src/main/java/emu/grasscutter/net/proto/EntityEnvironmentInfoOuterClass.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: EntityEnvironmentInfo.proto - -package emu.grasscutter.net.proto; - -public final class EntityEnvironmentInfoOuterClass { - private EntityEnvironmentInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EntityEnvironmentInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:EntityEnvironmentInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 jsonClimateType = 1;</code> - * @return The jsonClimateType. - */ - int getJsonClimateType(); - - /** - * <code>uint32 climateAreaId = 2;</code> - * @return The climateAreaId. - */ - int getClimateAreaId(); - } - /** - * Protobuf type {@code EntityEnvironmentInfo} - */ - public static final class EntityEnvironmentInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EntityEnvironmentInfo) - EntityEnvironmentInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use EntityEnvironmentInfo.newBuilder() to construct. - private EntityEnvironmentInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private EntityEnvironmentInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EntityEnvironmentInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EntityEnvironmentInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - jsonClimateType_ = input.readUInt32(); - break; - } - case 16: { - - climateAreaId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.internal_static_EntityEnvironmentInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.internal_static_EntityEnvironmentInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo.class, emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo.Builder.class); - } - - public static final int JSONCLIMATETYPE_FIELD_NUMBER = 1; - private int jsonClimateType_; - /** - * <code>uint32 jsonClimateType = 1;</code> - * @return The jsonClimateType. - */ - @java.lang.Override - public int getJsonClimateType() { - return jsonClimateType_; - } - - public static final int CLIMATEAREAID_FIELD_NUMBER = 2; - private int climateAreaId_; - /** - * <code>uint32 climateAreaId = 2;</code> - * @return The climateAreaId. - */ - @java.lang.Override - public int getClimateAreaId() { - return climateAreaId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (jsonClimateType_ != 0) { - output.writeUInt32(1, jsonClimateType_); - } - if (climateAreaId_ != 0) { - output.writeUInt32(2, climateAreaId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (jsonClimateType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, jsonClimateType_); - } - if (climateAreaId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, climateAreaId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo other = (emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo) obj; - - if (getJsonClimateType() - != other.getJsonClimateType()) return false; - if (getClimateAreaId() - != other.getClimateAreaId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + JSONCLIMATETYPE_FIELD_NUMBER; - hash = (53 * hash) + getJsonClimateType(); - hash = (37 * hash) + CLIMATEAREAID_FIELD_NUMBER; - hash = (53 * hash) + getClimateAreaId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EntityEnvironmentInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:EntityEnvironmentInfo) - emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.internal_static_EntityEnvironmentInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.internal_static_EntityEnvironmentInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo.class, emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - jsonClimateType_ = 0; - - climateAreaId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.internal_static_EntityEnvironmentInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo build() { - emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo buildPartial() { - emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo result = new emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo(this); - result.jsonClimateType_ = jsonClimateType_; - result.climateAreaId_ = climateAreaId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo) { - return mergeFrom((emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo other) { - if (other == emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo.getDefaultInstance()) return this; - if (other.getJsonClimateType() != 0) { - setJsonClimateType(other.getJsonClimateType()); - } - if (other.getClimateAreaId() != 0) { - setClimateAreaId(other.getClimateAreaId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int jsonClimateType_ ; - /** - * <code>uint32 jsonClimateType = 1;</code> - * @return The jsonClimateType. - */ - @java.lang.Override - public int getJsonClimateType() { - return jsonClimateType_; - } - /** - * <code>uint32 jsonClimateType = 1;</code> - * @param value The jsonClimateType to set. - * @return This builder for chaining. - */ - public Builder setJsonClimateType(int value) { - - jsonClimateType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 jsonClimateType = 1;</code> - * @return This builder for chaining. - */ - public Builder clearJsonClimateType() { - - jsonClimateType_ = 0; - onChanged(); - return this; - } - - private int climateAreaId_ ; - /** - * <code>uint32 climateAreaId = 2;</code> - * @return The climateAreaId. - */ - @java.lang.Override - public int getClimateAreaId() { - return climateAreaId_; - } - /** - * <code>uint32 climateAreaId = 2;</code> - * @param value The climateAreaId to set. - * @return This builder for chaining. - */ - public Builder setClimateAreaId(int value) { - - climateAreaId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 climateAreaId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearClimateAreaId() { - - climateAreaId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EntityEnvironmentInfo) - } - - // @@protoc_insertion_point(class_scope:EntityEnvironmentInfo) - private static final emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo(); - } - - public static emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<EntityEnvironmentInfo> - PARSER = new com.google.protobuf.AbstractParser<EntityEnvironmentInfo>() { - @java.lang.Override - public EntityEnvironmentInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EntityEnvironmentInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<EntityEnvironmentInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<EntityEnvironmentInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EntityEnvironmentInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EntityEnvironmentInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033EntityEnvironmentInfo.proto\"G\n\025EntityE" + - "nvironmentInfo\022\027\n\017jsonClimateType\030\001 \001(\r\022" + - "\025\n\rclimateAreaId\030\002 \001(\rB\033\n\031emu.grasscutte" + - "r.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_EntityEnvironmentInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_EntityEnvironmentInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EntityEnvironmentInfo_descriptor, - new java.lang.String[] { "JsonClimateType", "ClimateAreaId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/EntityFightPropChangeReasonNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EntityFightPropChangeReasonNotifyOuterClass.java deleted file mode 100644 index 7270ffbbd..000000000 --- a/src/main/java/emu/grasscutter/net/proto/EntityFightPropChangeReasonNotifyOuterClass.java +++ /dev/null @@ -1,1098 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: EntityFightPropChangeReasonNotify.proto - -package emu.grasscutter.net.proto; - -public final class EntityFightPropChangeReasonNotifyOuterClass { - private EntityFightPropChangeReasonNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EntityFightPropChangeReasonNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:EntityFightPropChangeReasonNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - int getEntityId(); - - /** - * <code>uint32 propType = 2;</code> - * @return The propType. - */ - int getPropType(); - - /** - * <code>float propDelta = 3;</code> - * @return The propDelta. - */ - float getPropDelta(); - - /** - * <code>.PropChangeReason reason = 4;</code> - * @return The enum numeric value on the wire for reason. - */ - int getReasonValue(); - /** - * <code>.PropChangeReason reason = 4;</code> - * @return The reason. - */ - emu.grasscutter.net.proto.PropChangeReasonOuterClass.PropChangeReason getReason(); - - /** - * <code>repeated uint32 paramList = 5;</code> - * @return A list containing the paramList. - */ - java.util.List<java.lang.Integer> getParamListList(); - /** - * <code>repeated uint32 paramList = 5;</code> - * @return The count of paramList. - */ - int getParamListCount(); - /** - * <code>repeated uint32 paramList = 5;</code> - * @param index The index of the element to return. - * @return The paramList at the given index. - */ - int getParamList(int index); - - /** - * <code>.ChangeHpReason changeHpReason = 6;</code> - * @return The enum numeric value on the wire for changeHpReason. - */ - int getChangeHpReasonValue(); - /** - * <code>.ChangeHpReason changeHpReason = 6;</code> - * @return The changeHpReason. - */ - emu.grasscutter.net.proto.ChangeHpReasonOuterClass.ChangeHpReason getChangeHpReason(); - } - /** - * Protobuf type {@code EntityFightPropChangeReasonNotify} - */ - public static final class EntityFightPropChangeReasonNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EntityFightPropChangeReasonNotify) - EntityFightPropChangeReasonNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use EntityFightPropChangeReasonNotify.newBuilder() to construct. - private EntityFightPropChangeReasonNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private EntityFightPropChangeReasonNotify() { - reason_ = 0; - paramList_ = emptyIntList(); - changeHpReason_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EntityFightPropChangeReasonNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EntityFightPropChangeReasonNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - entityId_ = input.readUInt32(); - break; - } - case 16: { - - propType_ = input.readUInt32(); - break; - } - case 29: { - - propDelta_ = input.readFloat(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - reason_ = rawValue; - break; - } - case 40: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - paramList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - paramList_.addInt(input.readUInt32()); - break; - } - case 42: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - paramList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - paramList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 48: { - int rawValue = input.readEnum(); - - changeHpReason_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - paramList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.internal_static_EntityFightPropChangeReasonNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.internal_static_EntityFightPropChangeReasonNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify.class, emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify.Builder.class); - } - - public static final int ENTITYID_FIELD_NUMBER = 1; - private int entityId_; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - - public static final int PROPTYPE_FIELD_NUMBER = 2; - private int propType_; - /** - * <code>uint32 propType = 2;</code> - * @return The propType. - */ - @java.lang.Override - public int getPropType() { - return propType_; - } - - public static final int PROPDELTA_FIELD_NUMBER = 3; - private float propDelta_; - /** - * <code>float propDelta = 3;</code> - * @return The propDelta. - */ - @java.lang.Override - public float getPropDelta() { - return propDelta_; - } - - public static final int REASON_FIELD_NUMBER = 4; - private int reason_; - /** - * <code>.PropChangeReason reason = 4;</code> - * @return The enum numeric value on the wire for reason. - */ - @java.lang.Override public int getReasonValue() { - return reason_; - } - /** - * <code>.PropChangeReason reason = 4;</code> - * @return The reason. - */ - @java.lang.Override public emu.grasscutter.net.proto.PropChangeReasonOuterClass.PropChangeReason getReason() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.PropChangeReasonOuterClass.PropChangeReason result = emu.grasscutter.net.proto.PropChangeReasonOuterClass.PropChangeReason.valueOf(reason_); - return result == null ? emu.grasscutter.net.proto.PropChangeReasonOuterClass.PropChangeReason.UNRECOGNIZED : result; - } - - public static final int PARAMLIST_FIELD_NUMBER = 5; - private com.google.protobuf.Internal.IntList paramList_; - /** - * <code>repeated uint32 paramList = 5;</code> - * @return A list containing the paramList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getParamListList() { - return paramList_; - } - /** - * <code>repeated uint32 paramList = 5;</code> - * @return The count of paramList. - */ - public int getParamListCount() { - return paramList_.size(); - } - /** - * <code>repeated uint32 paramList = 5;</code> - * @param index The index of the element to return. - * @return The paramList at the given index. - */ - public int getParamList(int index) { - return paramList_.getInt(index); - } - private int paramListMemoizedSerializedSize = -1; - - public static final int CHANGEHPREASON_FIELD_NUMBER = 6; - private int changeHpReason_; - /** - * <code>.ChangeHpReason changeHpReason = 6;</code> - * @return The enum numeric value on the wire for changeHpReason. - */ - @java.lang.Override public int getChangeHpReasonValue() { - return changeHpReason_; - } - /** - * <code>.ChangeHpReason changeHpReason = 6;</code> - * @return The changeHpReason. - */ - @java.lang.Override public emu.grasscutter.net.proto.ChangeHpReasonOuterClass.ChangeHpReason getChangeHpReason() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.ChangeHpReasonOuterClass.ChangeHpReason result = emu.grasscutter.net.proto.ChangeHpReasonOuterClass.ChangeHpReason.valueOf(changeHpReason_); - return result == null ? emu.grasscutter.net.proto.ChangeHpReasonOuterClass.ChangeHpReason.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (entityId_ != 0) { - output.writeUInt32(1, entityId_); - } - if (propType_ != 0) { - output.writeUInt32(2, propType_); - } - if (propDelta_ != 0F) { - output.writeFloat(3, propDelta_); - } - if (reason_ != emu.grasscutter.net.proto.PropChangeReasonOuterClass.PropChangeReason.PropChangeNone.getNumber()) { - output.writeEnum(4, reason_); - } - if (getParamListList().size() > 0) { - output.writeUInt32NoTag(42); - output.writeUInt32NoTag(paramListMemoizedSerializedSize); - } - for (int i = 0; i < paramList_.size(); i++) { - output.writeUInt32NoTag(paramList_.getInt(i)); - } - if (changeHpReason_ != emu.grasscutter.net.proto.ChangeHpReasonOuterClass.ChangeHpReason.ChangeHpNone.getNumber()) { - output.writeEnum(6, changeHpReason_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, entityId_); - } - if (propType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, propType_); - } - if (propDelta_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, propDelta_); - } - if (reason_ != emu.grasscutter.net.proto.PropChangeReasonOuterClass.PropChangeReason.PropChangeNone.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, reason_); - } - { - int dataSize = 0; - for (int i = 0; i < paramList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(paramList_.getInt(i)); - } - size += dataSize; - if (!getParamListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - paramListMemoizedSerializedSize = dataSize; - } - if (changeHpReason_ != emu.grasscutter.net.proto.ChangeHpReasonOuterClass.ChangeHpReason.ChangeHpNone.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, changeHpReason_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify other = (emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify) obj; - - if (getEntityId() - != other.getEntityId()) return false; - if (getPropType() - != other.getPropType()) return false; - if (java.lang.Float.floatToIntBits(getPropDelta()) - != java.lang.Float.floatToIntBits( - other.getPropDelta())) return false; - if (reason_ != other.reason_) return false; - if (!getParamListList() - .equals(other.getParamListList())) return false; - if (changeHpReason_ != other.changeHpReason_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId(); - hash = (37 * hash) + PROPTYPE_FIELD_NUMBER; - hash = (53 * hash) + getPropType(); - hash = (37 * hash) + PROPDELTA_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getPropDelta()); - hash = (37 * hash) + REASON_FIELD_NUMBER; - hash = (53 * hash) + reason_; - if (getParamListCount() > 0) { - hash = (37 * hash) + PARAMLIST_FIELD_NUMBER; - hash = (53 * hash) + getParamListList().hashCode(); - } - hash = (37 * hash) + CHANGEHPREASON_FIELD_NUMBER; - hash = (53 * hash) + changeHpReason_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EntityFightPropChangeReasonNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:EntityFightPropChangeReasonNotify) - emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.internal_static_EntityFightPropChangeReasonNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.internal_static_EntityFightPropChangeReasonNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify.class, emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - entityId_ = 0; - - propType_ = 0; - - propDelta_ = 0F; - - reason_ = 0; - - paramList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - changeHpReason_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.internal_static_EntityFightPropChangeReasonNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify build() { - emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify buildPartial() { - emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify result = new emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify(this); - int from_bitField0_ = bitField0_; - result.entityId_ = entityId_; - result.propType_ = propType_; - result.propDelta_ = propDelta_; - result.reason_ = reason_; - if (((bitField0_ & 0x00000001) != 0)) { - paramList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.paramList_ = paramList_; - result.changeHpReason_ = changeHpReason_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify) { - return mergeFrom((emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify other) { - if (other == emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify.getDefaultInstance()) return this; - if (other.getEntityId() != 0) { - setEntityId(other.getEntityId()); - } - if (other.getPropType() != 0) { - setPropType(other.getPropType()); - } - if (other.getPropDelta() != 0F) { - setPropDelta(other.getPropDelta()); - } - if (other.reason_ != 0) { - setReasonValue(other.getReasonValue()); - } - if (!other.paramList_.isEmpty()) { - if (paramList_.isEmpty()) { - paramList_ = other.paramList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureParamListIsMutable(); - paramList_.addAll(other.paramList_); - } - onChanged(); - } - if (other.changeHpReason_ != 0) { - setChangeHpReasonValue(other.getChangeHpReasonValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int entityId_ ; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - /** - * <code>uint32 entityId = 1;</code> - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId(int value) { - - entityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 entityId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearEntityId() { - - entityId_ = 0; - onChanged(); - return this; - } - - private int propType_ ; - /** - * <code>uint32 propType = 2;</code> - * @return The propType. - */ - @java.lang.Override - public int getPropType() { - return propType_; - } - /** - * <code>uint32 propType = 2;</code> - * @param value The propType to set. - * @return This builder for chaining. - */ - public Builder setPropType(int value) { - - propType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 propType = 2;</code> - * @return This builder for chaining. - */ - public Builder clearPropType() { - - propType_ = 0; - onChanged(); - return this; - } - - private float propDelta_ ; - /** - * <code>float propDelta = 3;</code> - * @return The propDelta. - */ - @java.lang.Override - public float getPropDelta() { - return propDelta_; - } - /** - * <code>float propDelta = 3;</code> - * @param value The propDelta to set. - * @return This builder for chaining. - */ - public Builder setPropDelta(float value) { - - propDelta_ = value; - onChanged(); - return this; - } - /** - * <code>float propDelta = 3;</code> - * @return This builder for chaining. - */ - public Builder clearPropDelta() { - - propDelta_ = 0F; - onChanged(); - return this; - } - - private int reason_ = 0; - /** - * <code>.PropChangeReason reason = 4;</code> - * @return The enum numeric value on the wire for reason. - */ - @java.lang.Override public int getReasonValue() { - return reason_; - } - /** - * <code>.PropChangeReason reason = 4;</code> - * @param value The enum numeric value on the wire for reason to set. - * @return This builder for chaining. - */ - public Builder setReasonValue(int value) { - - reason_ = value; - onChanged(); - return this; - } - /** - * <code>.PropChangeReason reason = 4;</code> - * @return The reason. - */ - @java.lang.Override - public emu.grasscutter.net.proto.PropChangeReasonOuterClass.PropChangeReason getReason() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.PropChangeReasonOuterClass.PropChangeReason result = emu.grasscutter.net.proto.PropChangeReasonOuterClass.PropChangeReason.valueOf(reason_); - return result == null ? emu.grasscutter.net.proto.PropChangeReasonOuterClass.PropChangeReason.UNRECOGNIZED : result; - } - /** - * <code>.PropChangeReason reason = 4;</code> - * @param value The reason to set. - * @return This builder for chaining. - */ - public Builder setReason(emu.grasscutter.net.proto.PropChangeReasonOuterClass.PropChangeReason value) { - if (value == null) { - throw new NullPointerException(); - } - - reason_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.PropChangeReason reason = 4;</code> - * @return This builder for chaining. - */ - public Builder clearReason() { - - reason_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList paramList_ = emptyIntList(); - private void ensureParamListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - paramList_ = mutableCopy(paramList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 paramList = 5;</code> - * @return A list containing the paramList. - */ - public java.util.List<java.lang.Integer> - getParamListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(paramList_) : paramList_; - } - /** - * <code>repeated uint32 paramList = 5;</code> - * @return The count of paramList. - */ - public int getParamListCount() { - return paramList_.size(); - } - /** - * <code>repeated uint32 paramList = 5;</code> - * @param index The index of the element to return. - * @return The paramList at the given index. - */ - public int getParamList(int index) { - return paramList_.getInt(index); - } - /** - * <code>repeated uint32 paramList = 5;</code> - * @param index The index to set the value at. - * @param value The paramList to set. - * @return This builder for chaining. - */ - public Builder setParamList( - int index, int value) { - ensureParamListIsMutable(); - paramList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 paramList = 5;</code> - * @param value The paramList to add. - * @return This builder for chaining. - */ - public Builder addParamList(int value) { - ensureParamListIsMutable(); - paramList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 paramList = 5;</code> - * @param values The paramList to add. - * @return This builder for chaining. - */ - public Builder addAllParamList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureParamListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, paramList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 paramList = 5;</code> - * @return This builder for chaining. - */ - public Builder clearParamList() { - paramList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private int changeHpReason_ = 0; - /** - * <code>.ChangeHpReason changeHpReason = 6;</code> - * @return The enum numeric value on the wire for changeHpReason. - */ - @java.lang.Override public int getChangeHpReasonValue() { - return changeHpReason_; - } - /** - * <code>.ChangeHpReason changeHpReason = 6;</code> - * @param value The enum numeric value on the wire for changeHpReason to set. - * @return This builder for chaining. - */ - public Builder setChangeHpReasonValue(int value) { - - changeHpReason_ = value; - onChanged(); - return this; - } - /** - * <code>.ChangeHpReason changeHpReason = 6;</code> - * @return The changeHpReason. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ChangeHpReasonOuterClass.ChangeHpReason getChangeHpReason() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.ChangeHpReasonOuterClass.ChangeHpReason result = emu.grasscutter.net.proto.ChangeHpReasonOuterClass.ChangeHpReason.valueOf(changeHpReason_); - return result == null ? emu.grasscutter.net.proto.ChangeHpReasonOuterClass.ChangeHpReason.UNRECOGNIZED : result; - } - /** - * <code>.ChangeHpReason changeHpReason = 6;</code> - * @param value The changeHpReason to set. - * @return This builder for chaining. - */ - public Builder setChangeHpReason(emu.grasscutter.net.proto.ChangeHpReasonOuterClass.ChangeHpReason value) { - if (value == null) { - throw new NullPointerException(); - } - - changeHpReason_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.ChangeHpReason changeHpReason = 6;</code> - * @return This builder for chaining. - */ - public Builder clearChangeHpReason() { - - changeHpReason_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EntityFightPropChangeReasonNotify) - } - - // @@protoc_insertion_point(class_scope:EntityFightPropChangeReasonNotify) - private static final emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify(); - } - - public static emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<EntityFightPropChangeReasonNotify> - PARSER = new com.google.protobuf.AbstractParser<EntityFightPropChangeReasonNotify>() { - @java.lang.Override - public EntityFightPropChangeReasonNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EntityFightPropChangeReasonNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<EntityFightPropChangeReasonNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<EntityFightPropChangeReasonNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EntityFightPropChangeReasonNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EntityFightPropChangeReasonNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\'EntityFightPropChangeReasonNotify.prot" + - "o\032\024ChangeHpReason.proto\032\026PropChangeReaso" + - "n.proto\"\271\001\n!EntityFightPropChangeReasonN" + - "otify\022\020\n\010entityId\030\001 \001(\r\022\020\n\010propType\030\002 \001(" + - "\r\022\021\n\tpropDelta\030\003 \001(\002\022!\n\006reason\030\004 \001(\0162\021.P" + - "ropChangeReason\022\021\n\tparamList\030\005 \003(\r\022\'\n\016ch" + - "angeHpReason\030\006 \001(\0162\017.ChangeHpReasonB\033\n\031e" + - "mu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ChangeHpReasonOuterClass.getDescriptor(), - emu.grasscutter.net.proto.PropChangeReasonOuterClass.getDescriptor(), - }); - internal_static_EntityFightPropChangeReasonNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_EntityFightPropChangeReasonNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EntityFightPropChangeReasonNotify_descriptor, - new java.lang.String[] { "EntityId", "PropType", "PropDelta", "Reason", "ParamList", "ChangeHpReason", }); - emu.grasscutter.net.proto.ChangeHpReasonOuterClass.getDescriptor(); - emu.grasscutter.net.proto.PropChangeReasonOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/EntityFightPropUpdateNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EntityFightPropUpdateNotifyOuterClass.java deleted file mode 100644 index b18aa26c4..000000000 --- a/src/main/java/emu/grasscutter/net/proto/EntityFightPropUpdateNotifyOuterClass.java +++ /dev/null @@ -1,871 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: EntityFightPropUpdateNotify.proto - -package emu.grasscutter.net.proto; - -public final class EntityFightPropUpdateNotifyOuterClass { - private EntityFightPropUpdateNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EntityFightPropUpdateNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:EntityFightPropUpdateNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - int getEntityId(); - - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - int getFightPropMapCount(); - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - boolean containsFightPropMap( - int key); - /** - * Use {@link #getFightPropMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Float> - getFightPropMap(); - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Float> - getFightPropMapMap(); - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - - float getFightPropMapOrDefault( - int key, - float defaultValue); - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - - float getFightPropMapOrThrow( - int key); - } - /** - * Protobuf type {@code EntityFightPropUpdateNotify} - */ - public static final class EntityFightPropUpdateNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EntityFightPropUpdateNotify) - EntityFightPropUpdateNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use EntityFightPropUpdateNotify.newBuilder() to construct. - private EntityFightPropUpdateNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private EntityFightPropUpdateNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EntityFightPropUpdateNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EntityFightPropUpdateNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - entityId_ = input.readUInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fightPropMap_ = com.google.protobuf.MapField.newMapField( - FightPropMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Float> - fightPropMap__ = input.readMessage( - FightPropMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - fightPropMap_.getMutableMap().put( - fightPropMap__.getKey(), fightPropMap__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.internal_static_EntityFightPropUpdateNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetFightPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.internal_static_EntityFightPropUpdateNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify.class, emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify.Builder.class); - } - - public static final int ENTITYID_FIELD_NUMBER = 1; - private int entityId_; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - - public static final int FIGHTPROPMAP_FIELD_NUMBER = 2; - private static final class FightPropMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Float> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Float>newDefaultInstance( - emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.internal_static_EntityFightPropUpdateNotify_FightPropMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.FLOAT, - 0F); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Float> fightPropMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Float> - internalGetFightPropMap() { - if (fightPropMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FightPropMapDefaultEntryHolder.defaultEntry); - } - return fightPropMap_; - } - - public int getFightPropMapCount() { - return internalGetFightPropMap().getMap().size(); - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - - @java.lang.Override - public boolean containsFightPropMap( - int key) { - - return internalGetFightPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getFightPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Float> getFightPropMap() { - return getFightPropMapMap(); - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Float> getFightPropMapMap() { - return internalGetFightPropMap().getMap(); - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - @java.lang.Override - - public float getFightPropMapOrDefault( - int key, - float defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Float> map = - internalGetFightPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - @java.lang.Override - - public float getFightPropMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Float> map = - internalGetFightPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (entityId_ != 0) { - output.writeUInt32(1, entityId_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetFightPropMap(), - FightPropMapDefaultEntryHolder.defaultEntry, - 2); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, entityId_); - } - for (java.util.Map.Entry<java.lang.Integer, java.lang.Float> entry - : internalGetFightPropMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Float> - fightPropMap__ = FightPropMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, fightPropMap__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify other = (emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify) obj; - - if (getEntityId() - != other.getEntityId()) return false; - if (!internalGetFightPropMap().equals( - other.internalGetFightPropMap())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId(); - if (!internalGetFightPropMap().getMap().isEmpty()) { - hash = (37 * hash) + FIGHTPROPMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetFightPropMap().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EntityFightPropUpdateNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:EntityFightPropUpdateNotify) - emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.internal_static_EntityFightPropUpdateNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetFightPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutableFightPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.internal_static_EntityFightPropUpdateNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify.class, emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - entityId_ = 0; - - internalGetMutableFightPropMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.internal_static_EntityFightPropUpdateNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify build() { - emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify buildPartial() { - emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify result = new emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify(this); - int from_bitField0_ = bitField0_; - result.entityId_ = entityId_; - result.fightPropMap_ = internalGetFightPropMap(); - result.fightPropMap_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify) { - return mergeFrom((emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify other) { - if (other == emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify.getDefaultInstance()) return this; - if (other.getEntityId() != 0) { - setEntityId(other.getEntityId()); - } - internalGetMutableFightPropMap().mergeFrom( - other.internalGetFightPropMap()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int entityId_ ; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - /** - * <code>uint32 entityId = 1;</code> - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId(int value) { - - entityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 entityId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearEntityId() { - - entityId_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Float> fightPropMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Float> - internalGetFightPropMap() { - if (fightPropMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FightPropMapDefaultEntryHolder.defaultEntry); - } - return fightPropMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Float> - internalGetMutableFightPropMap() { - onChanged();; - if (fightPropMap_ == null) { - fightPropMap_ = com.google.protobuf.MapField.newMapField( - FightPropMapDefaultEntryHolder.defaultEntry); - } - if (!fightPropMap_.isMutable()) { - fightPropMap_ = fightPropMap_.copy(); - } - return fightPropMap_; - } - - public int getFightPropMapCount() { - return internalGetFightPropMap().getMap().size(); - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - - @java.lang.Override - public boolean containsFightPropMap( - int key) { - - return internalGetFightPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getFightPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Float> getFightPropMap() { - return getFightPropMapMap(); - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Float> getFightPropMapMap() { - return internalGetFightPropMap().getMap(); - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - @java.lang.Override - - public float getFightPropMapOrDefault( - int key, - float defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Float> map = - internalGetFightPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - @java.lang.Override - - public float getFightPropMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Float> map = - internalGetFightPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearFightPropMap() { - internalGetMutableFightPropMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - - public Builder removeFightPropMap( - int key) { - - internalGetMutableFightPropMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Float> - getMutableFightPropMap() { - return internalGetMutableFightPropMap().getMutableMap(); - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - public Builder putFightPropMap( - int key, - float value) { - - - internalGetMutableFightPropMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, float> fightPropMap = 2;</code> - */ - - public Builder putAllFightPropMap( - java.util.Map<java.lang.Integer, java.lang.Float> values) { - internalGetMutableFightPropMap().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EntityFightPropUpdateNotify) - } - - // @@protoc_insertion_point(class_scope:EntityFightPropUpdateNotify) - private static final emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify(); - } - - public static emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<EntityFightPropUpdateNotify> - PARSER = new com.google.protobuf.AbstractParser<EntityFightPropUpdateNotify>() { - @java.lang.Override - public EntityFightPropUpdateNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EntityFightPropUpdateNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<EntityFightPropUpdateNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<EntityFightPropUpdateNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EntityFightPropUpdateNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EntityFightPropUpdateNotify_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EntityFightPropUpdateNotify_FightPropMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EntityFightPropUpdateNotify_FightPropMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n!EntityFightPropUpdateNotify.proto\"\252\001\n\033" + - "EntityFightPropUpdateNotify\022\020\n\010entityId\030" + - "\001 \001(\r\022D\n\014fightPropMap\030\002 \003(\0132..EntityFigh" + - "tPropUpdateNotify.FightPropMapEntry\0323\n\021F" + - "ightPropMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002" + - " \001(\002:\0028\001B\033\n\031emu.grasscutter.net.protob\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_EntityFightPropUpdateNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_EntityFightPropUpdateNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EntityFightPropUpdateNotify_descriptor, - new java.lang.String[] { "EntityId", "FightPropMap", }); - internal_static_EntityFightPropUpdateNotify_FightPropMapEntry_descriptor = - internal_static_EntityFightPropUpdateNotify_descriptor.getNestedTypes().get(0); - internal_static_EntityFightPropUpdateNotify_FightPropMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EntityFightPropUpdateNotify_FightPropMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/EntityMoveInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EntityMoveInfoOuterClass.java deleted file mode 100644 index cf9b4411d..000000000 --- a/src/main/java/emu/grasscutter/net/proto/EntityMoveInfoOuterClass.java +++ /dev/null @@ -1,955 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: EntityMoveInfo.proto - -package emu.grasscutter.net.proto; - -public final class EntityMoveInfoOuterClass { - private EntityMoveInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EntityMoveInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:EntityMoveInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - int getEntityId(); - - /** - * <code>.MotionInfo motionInfo = 2;</code> - * @return Whether the motionInfo field is set. - */ - boolean hasMotionInfo(); - /** - * <code>.MotionInfo motionInfo = 2;</code> - * @return The motionInfo. - */ - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo getMotionInfo(); - /** - * <code>.MotionInfo motionInfo = 2;</code> - */ - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfoOrBuilder getMotionInfoOrBuilder(); - - /** - * <code>uint32 sceneTime = 3;</code> - * @return The sceneTime. - */ - int getSceneTime(); - - /** - * <code>uint32 reliableSeq = 4;</code> - * @return The reliableSeq. - */ - int getReliableSeq(); - - /** - * <code>bool isReliable = 5;</code> - * @return The isReliable. - */ - boolean getIsReliable(); - } - /** - * Protobuf type {@code EntityMoveInfo} - */ - public static final class EntityMoveInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EntityMoveInfo) - EntityMoveInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use EntityMoveInfo.newBuilder() to construct. - private EntityMoveInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private EntityMoveInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EntityMoveInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EntityMoveInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - entityId_ = input.readUInt32(); - break; - } - case 18: { - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.Builder subBuilder = null; - if (motionInfo_ != null) { - subBuilder = motionInfo_.toBuilder(); - } - motionInfo_ = input.readMessage(emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(motionInfo_); - motionInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - sceneTime_ = input.readUInt32(); - break; - } - case 32: { - - reliableSeq_ = input.readUInt32(); - break; - } - case 40: { - - isReliable_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EntityMoveInfoOuterClass.internal_static_EntityMoveInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EntityMoveInfoOuterClass.internal_static_EntityMoveInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo.class, emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo.Builder.class); - } - - public static final int ENTITYID_FIELD_NUMBER = 1; - private int entityId_; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - - public static final int MOTIONINFO_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo motionInfo_; - /** - * <code>.MotionInfo motionInfo = 2;</code> - * @return Whether the motionInfo field is set. - */ - @java.lang.Override - public boolean hasMotionInfo() { - return motionInfo_ != null; - } - /** - * <code>.MotionInfo motionInfo = 2;</code> - * @return The motionInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo getMotionInfo() { - return motionInfo_ == null ? emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.getDefaultInstance() : motionInfo_; - } - /** - * <code>.MotionInfo motionInfo = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfoOrBuilder getMotionInfoOrBuilder() { - return getMotionInfo(); - } - - public static final int SCENETIME_FIELD_NUMBER = 3; - private int sceneTime_; - /** - * <code>uint32 sceneTime = 3;</code> - * @return The sceneTime. - */ - @java.lang.Override - public int getSceneTime() { - return sceneTime_; - } - - public static final int RELIABLESEQ_FIELD_NUMBER = 4; - private int reliableSeq_; - /** - * <code>uint32 reliableSeq = 4;</code> - * @return The reliableSeq. - */ - @java.lang.Override - public int getReliableSeq() { - return reliableSeq_; - } - - public static final int ISRELIABLE_FIELD_NUMBER = 5; - private boolean isReliable_; - /** - * <code>bool isReliable = 5;</code> - * @return The isReliable. - */ - @java.lang.Override - public boolean getIsReliable() { - return isReliable_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (entityId_ != 0) { - output.writeUInt32(1, entityId_); - } - if (motionInfo_ != null) { - output.writeMessage(2, getMotionInfo()); - } - if (sceneTime_ != 0) { - output.writeUInt32(3, sceneTime_); - } - if (reliableSeq_ != 0) { - output.writeUInt32(4, reliableSeq_); - } - if (isReliable_ != false) { - output.writeBool(5, isReliable_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, entityId_); - } - if (motionInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMotionInfo()); - } - if (sceneTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, sceneTime_); - } - if (reliableSeq_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, reliableSeq_); - } - if (isReliable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, isReliable_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo other = (emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo) obj; - - if (getEntityId() - != other.getEntityId()) return false; - if (hasMotionInfo() != other.hasMotionInfo()) return false; - if (hasMotionInfo()) { - if (!getMotionInfo() - .equals(other.getMotionInfo())) return false; - } - if (getSceneTime() - != other.getSceneTime()) return false; - if (getReliableSeq() - != other.getReliableSeq()) return false; - if (getIsReliable() - != other.getIsReliable()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId(); - if (hasMotionInfo()) { - hash = (37 * hash) + MOTIONINFO_FIELD_NUMBER; - hash = (53 * hash) + getMotionInfo().hashCode(); - } - hash = (37 * hash) + SCENETIME_FIELD_NUMBER; - hash = (53 * hash) + getSceneTime(); - hash = (37 * hash) + RELIABLESEQ_FIELD_NUMBER; - hash = (53 * hash) + getReliableSeq(); - hash = (37 * hash) + ISRELIABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsReliable()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EntityMoveInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:EntityMoveInfo) - emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EntityMoveInfoOuterClass.internal_static_EntityMoveInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EntityMoveInfoOuterClass.internal_static_EntityMoveInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo.class, emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - entityId_ = 0; - - if (motionInfoBuilder_ == null) { - motionInfo_ = null; - } else { - motionInfo_ = null; - motionInfoBuilder_ = null; - } - sceneTime_ = 0; - - reliableSeq_ = 0; - - isReliable_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.EntityMoveInfoOuterClass.internal_static_EntityMoveInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo build() { - emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo buildPartial() { - emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo result = new emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo(this); - result.entityId_ = entityId_; - if (motionInfoBuilder_ == null) { - result.motionInfo_ = motionInfo_; - } else { - result.motionInfo_ = motionInfoBuilder_.build(); - } - result.sceneTime_ = sceneTime_; - result.reliableSeq_ = reliableSeq_; - result.isReliable_ = isReliable_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo) { - return mergeFrom((emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo other) { - if (other == emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo.getDefaultInstance()) return this; - if (other.getEntityId() != 0) { - setEntityId(other.getEntityId()); - } - if (other.hasMotionInfo()) { - mergeMotionInfo(other.getMotionInfo()); - } - if (other.getSceneTime() != 0) { - setSceneTime(other.getSceneTime()); - } - if (other.getReliableSeq() != 0) { - setReliableSeq(other.getReliableSeq()); - } - if (other.getIsReliable() != false) { - setIsReliable(other.getIsReliable()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int entityId_ ; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - /** - * <code>uint32 entityId = 1;</code> - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId(int value) { - - entityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 entityId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearEntityId() { - - entityId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo motionInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo, emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.Builder, emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfoOrBuilder> motionInfoBuilder_; - /** - * <code>.MotionInfo motionInfo = 2;</code> - * @return Whether the motionInfo field is set. - */ - public boolean hasMotionInfo() { - return motionInfoBuilder_ != null || motionInfo_ != null; - } - /** - * <code>.MotionInfo motionInfo = 2;</code> - * @return The motionInfo. - */ - public emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo getMotionInfo() { - if (motionInfoBuilder_ == null) { - return motionInfo_ == null ? emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.getDefaultInstance() : motionInfo_; - } else { - return motionInfoBuilder_.getMessage(); - } - } - /** - * <code>.MotionInfo motionInfo = 2;</code> - */ - public Builder setMotionInfo(emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo value) { - if (motionInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - motionInfo_ = value; - onChanged(); - } else { - motionInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.MotionInfo motionInfo = 2;</code> - */ - public Builder setMotionInfo( - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.Builder builderForValue) { - if (motionInfoBuilder_ == null) { - motionInfo_ = builderForValue.build(); - onChanged(); - } else { - motionInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.MotionInfo motionInfo = 2;</code> - */ - public Builder mergeMotionInfo(emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo value) { - if (motionInfoBuilder_ == null) { - if (motionInfo_ != null) { - motionInfo_ = - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.newBuilder(motionInfo_).mergeFrom(value).buildPartial(); - } else { - motionInfo_ = value; - } - onChanged(); - } else { - motionInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.MotionInfo motionInfo = 2;</code> - */ - public Builder clearMotionInfo() { - if (motionInfoBuilder_ == null) { - motionInfo_ = null; - onChanged(); - } else { - motionInfo_ = null; - motionInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.MotionInfo motionInfo = 2;</code> - */ - public emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.Builder getMotionInfoBuilder() { - - onChanged(); - return getMotionInfoFieldBuilder().getBuilder(); - } - /** - * <code>.MotionInfo motionInfo = 2;</code> - */ - public emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfoOrBuilder getMotionInfoOrBuilder() { - if (motionInfoBuilder_ != null) { - return motionInfoBuilder_.getMessageOrBuilder(); - } else { - return motionInfo_ == null ? - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.getDefaultInstance() : motionInfo_; - } - } - /** - * <code>.MotionInfo motionInfo = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo, emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.Builder, emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfoOrBuilder> - getMotionInfoFieldBuilder() { - if (motionInfoBuilder_ == null) { - motionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo, emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.Builder, emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfoOrBuilder>( - getMotionInfo(), - getParentForChildren(), - isClean()); - motionInfo_ = null; - } - return motionInfoBuilder_; - } - - private int sceneTime_ ; - /** - * <code>uint32 sceneTime = 3;</code> - * @return The sceneTime. - */ - @java.lang.Override - public int getSceneTime() { - return sceneTime_; - } - /** - * <code>uint32 sceneTime = 3;</code> - * @param value The sceneTime to set. - * @return This builder for chaining. - */ - public Builder setSceneTime(int value) { - - sceneTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 sceneTime = 3;</code> - * @return This builder for chaining. - */ - public Builder clearSceneTime() { - - sceneTime_ = 0; - onChanged(); - return this; - } - - private int reliableSeq_ ; - /** - * <code>uint32 reliableSeq = 4;</code> - * @return The reliableSeq. - */ - @java.lang.Override - public int getReliableSeq() { - return reliableSeq_; - } - /** - * <code>uint32 reliableSeq = 4;</code> - * @param value The reliableSeq to set. - * @return This builder for chaining. - */ - public Builder setReliableSeq(int value) { - - reliableSeq_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 reliableSeq = 4;</code> - * @return This builder for chaining. - */ - public Builder clearReliableSeq() { - - reliableSeq_ = 0; - onChanged(); - return this; - } - - private boolean isReliable_ ; - /** - * <code>bool isReliable = 5;</code> - * @return The isReliable. - */ - @java.lang.Override - public boolean getIsReliable() { - return isReliable_; - } - /** - * <code>bool isReliable = 5;</code> - * @param value The isReliable to set. - * @return This builder for chaining. - */ - public Builder setIsReliable(boolean value) { - - isReliable_ = value; - onChanged(); - return this; - } - /** - * <code>bool isReliable = 5;</code> - * @return This builder for chaining. - */ - public Builder clearIsReliable() { - - isReliable_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EntityMoveInfo) - } - - // @@protoc_insertion_point(class_scope:EntityMoveInfo) - private static final emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo(); - } - - public static emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<EntityMoveInfo> - PARSER = new com.google.protobuf.AbstractParser<EntityMoveInfo>() { - @java.lang.Override - public EntityMoveInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EntityMoveInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<EntityMoveInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<EntityMoveInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EntityMoveInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EntityMoveInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024EntityMoveInfo.proto\032\020MotionInfo.proto" + - "\"\177\n\016EntityMoveInfo\022\020\n\010entityId\030\001 \001(\r\022\037\n\n" + - "motionInfo\030\002 \001(\0132\013.MotionInfo\022\021\n\tsceneTi" + - "me\030\003 \001(\r\022\023\n\013reliableSeq\030\004 \001(\r\022\022\n\nisRelia" + - "ble\030\005 \001(\010B\033\n\031emu.grasscutter.net.protob\006" + - "proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.MotionInfoOuterClass.getDescriptor(), - }); - internal_static_EntityMoveInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_EntityMoveInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EntityMoveInfo_descriptor, - new java.lang.String[] { "EntityId", "MotionInfo", "SceneTime", "ReliableSeq", "IsReliable", }); - emu.grasscutter.net.proto.MotionInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/EntityPropNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EntityPropNotifyOuterClass.java deleted file mode 100644 index ce5cb60c0..000000000 --- a/src/main/java/emu/grasscutter/net/proto/EntityPropNotifyOuterClass.java +++ /dev/null @@ -1,872 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: EntityPropNotify.proto - -package emu.grasscutter.net.proto; - -public final class EntityPropNotifyOuterClass { - private EntityPropNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EntityPropNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:EntityPropNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - int getEntityId(); - - /** - * <code>map<uint32, .PropValue> propMap = 2;</code> - */ - int getPropMapCount(); - /** - * <code>map<uint32, .PropValue> propMap = 2;</code> - */ - boolean containsPropMap( - int key); - /** - * Use {@link #getPropMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - getPropMap(); - /** - * <code>map<uint32, .PropValue> propMap = 2;</code> - */ - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - getPropMapMap(); - /** - * <code>map<uint32, .PropValue> propMap = 2;</code> - */ - - emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrDefault( - int key, - emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue); - /** - * <code>map<uint32, .PropValue> propMap = 2;</code> - */ - - emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrThrow( - int key); - } - /** - * Protobuf type {@code EntityPropNotify} - */ - public static final class EntityPropNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EntityPropNotify) - EntityPropNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use EntityPropNotify.newBuilder() to construct. - private EntityPropNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private EntityPropNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EntityPropNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EntityPropNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - entityId_ = input.readUInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - propMap_ = com.google.protobuf.MapField.newMapField( - PropMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - propMap__ = input.readMessage( - PropMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - propMap_.getMutableMap().put( - propMap__.getKey(), propMap__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EntityPropNotifyOuterClass.internal_static_EntityPropNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EntityPropNotifyOuterClass.internal_static_EntityPropNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify.class, emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify.Builder.class); - } - - public static final int ENTITYID_FIELD_NUMBER = 1; - private int entityId_; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - - public static final int PROPMAP_FIELD_NUMBER = 2; - private static final class PropMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue>newDefaultInstance( - emu.grasscutter.net.proto.EntityPropNotifyOuterClass.internal_static_EntityPropNotify_PropMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - emu.grasscutter.net.proto.PropValueOuterClass.PropValue.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> propMap_; - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - internalGetPropMap() { - if (propMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropMapDefaultEntryHolder.defaultEntry); - } - return propMap_; - } - - public int getPropMapCount() { - return internalGetPropMap().getMap().size(); - } - /** - * <code>map<uint32, .PropValue> propMap = 2;</code> - */ - - @java.lang.Override - public boolean containsPropMap( - int key) { - - return internalGetPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> getPropMap() { - return getPropMapMap(); - } - /** - * <code>map<uint32, .PropValue> propMap = 2;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> getPropMapMap() { - return internalGetPropMap().getMap(); - } - /** - * <code>map<uint32, .PropValue> propMap = 2;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrDefault( - int key, - emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> map = - internalGetPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, .PropValue> propMap = 2;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> map = - internalGetPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (entityId_ != 0) { - output.writeUInt32(1, entityId_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetPropMap(), - PropMapDefaultEntryHolder.defaultEntry, - 2); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, entityId_); - } - for (java.util.Map.Entry<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> entry - : internalGetPropMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - propMap__ = PropMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, propMap__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify other = (emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify) obj; - - if (getEntityId() - != other.getEntityId()) return false; - if (!internalGetPropMap().equals( - other.internalGetPropMap())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId(); - if (!internalGetPropMap().getMap().isEmpty()) { - hash = (37 * hash) + PROPMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetPropMap().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EntityPropNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:EntityPropNotify) - emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EntityPropNotifyOuterClass.internal_static_EntityPropNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutablePropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EntityPropNotifyOuterClass.internal_static_EntityPropNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify.class, emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - entityId_ = 0; - - internalGetMutablePropMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.EntityPropNotifyOuterClass.internal_static_EntityPropNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify build() { - emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify buildPartial() { - emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify result = new emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify(this); - int from_bitField0_ = bitField0_; - result.entityId_ = entityId_; - result.propMap_ = internalGetPropMap(); - result.propMap_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify) { - return mergeFrom((emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify other) { - if (other == emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify.getDefaultInstance()) return this; - if (other.getEntityId() != 0) { - setEntityId(other.getEntityId()); - } - internalGetMutablePropMap().mergeFrom( - other.internalGetPropMap()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int entityId_ ; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - /** - * <code>uint32 entityId = 1;</code> - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId(int value) { - - entityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 entityId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearEntityId() { - - entityId_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> propMap_; - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - internalGetPropMap() { - if (propMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropMapDefaultEntryHolder.defaultEntry); - } - return propMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - internalGetMutablePropMap() { - onChanged();; - if (propMap_ == null) { - propMap_ = com.google.protobuf.MapField.newMapField( - PropMapDefaultEntryHolder.defaultEntry); - } - if (!propMap_.isMutable()) { - propMap_ = propMap_.copy(); - } - return propMap_; - } - - public int getPropMapCount() { - return internalGetPropMap().getMap().size(); - } - /** - * <code>map<uint32, .PropValue> propMap = 2;</code> - */ - - @java.lang.Override - public boolean containsPropMap( - int key) { - - return internalGetPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> getPropMap() { - return getPropMapMap(); - } - /** - * <code>map<uint32, .PropValue> propMap = 2;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> getPropMapMap() { - return internalGetPropMap().getMap(); - } - /** - * <code>map<uint32, .PropValue> propMap = 2;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrDefault( - int key, - emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> map = - internalGetPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, .PropValue> propMap = 2;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> map = - internalGetPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearPropMap() { - internalGetMutablePropMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, .PropValue> propMap = 2;</code> - */ - - public Builder removePropMap( - int key) { - - internalGetMutablePropMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - getMutablePropMap() { - return internalGetMutablePropMap().getMutableMap(); - } - /** - * <code>map<uint32, .PropValue> propMap = 2;</code> - */ - public Builder putPropMap( - int key, - emu.grasscutter.net.proto.PropValueOuterClass.PropValue value) { - - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutablePropMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, .PropValue> propMap = 2;</code> - */ - - public Builder putAllPropMap( - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> values) { - internalGetMutablePropMap().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EntityPropNotify) - } - - // @@protoc_insertion_point(class_scope:EntityPropNotify) - private static final emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify(); - } - - public static emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<EntityPropNotify> - PARSER = new com.google.protobuf.AbstractParser<EntityPropNotify>() { - @java.lang.Override - public EntityPropNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EntityPropNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<EntityPropNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<EntityPropNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityPropNotifyOuterClass.EntityPropNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EntityPropNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EntityPropNotify_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EntityPropNotify_PropMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EntityPropNotify_PropMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026EntityPropNotify.proto\032\017PropValue.prot" + - "o\"\221\001\n\020EntityPropNotify\022\020\n\010entityId\030\001 \001(\r" + - "\022/\n\007propMap\030\002 \003(\0132\036.EntityPropNotify.Pro" + - "pMapEntry\032:\n\014PropMapEntry\022\013\n\003key\030\001 \001(\r\022\031" + - "\n\005value\030\002 \001(\0132\n.PropValue:\0028\001B\033\n\031emu.gra" + - "sscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.PropValueOuterClass.getDescriptor(), - }); - internal_static_EntityPropNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_EntityPropNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EntityPropNotify_descriptor, - new java.lang.String[] { "EntityId", "PropMap", }); - internal_static_EntityPropNotify_PropMapEntry_descriptor = - internal_static_EntityPropNotify_descriptor.getNestedTypes().get(0); - internal_static_EntityPropNotify_PropMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EntityPropNotify_PropMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - emu.grasscutter.net.proto.PropValueOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/EntityRendererChangedInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EntityRendererChangedInfoOuterClass.java deleted file mode 100644 index 6e638b85c..000000000 --- a/src/main/java/emu/grasscutter/net/proto/EntityRendererChangedInfoOuterClass.java +++ /dev/null @@ -1,942 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: EntityRendererChangedInfo.proto - -package emu.grasscutter.net.proto; - -public final class EntityRendererChangedInfoOuterClass { - private EntityRendererChangedInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EntityRendererChangedInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:EntityRendererChangedInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>map<string, uint32> changedRenderers = 1;</code> - */ - int getChangedRenderersCount(); - /** - * <code>map<string, uint32> changedRenderers = 1;</code> - */ - boolean containsChangedRenderers( - java.lang.String key); - /** - * Use {@link #getChangedRenderersMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.String, java.lang.Integer> - getChangedRenderers(); - /** - * <code>map<string, uint32> changedRenderers = 1;</code> - */ - java.util.Map<java.lang.String, java.lang.Integer> - getChangedRenderersMap(); - /** - * <code>map<string, uint32> changedRenderers = 1;</code> - */ - - int getChangedRenderersOrDefault( - java.lang.String key, - int defaultValue); - /** - * <code>map<string, uint32> changedRenderers = 1;</code> - */ - - int getChangedRenderersOrThrow( - java.lang.String key); - - /** - * <code>uint32 visibilityCount = 2;</code> - * @return The visibilityCount. - */ - int getVisibilityCount(); - - /** - * <code>bool isCached = 3;</code> - * @return The isCached. - */ - boolean getIsCached(); - } - /** - * Protobuf type {@code EntityRendererChangedInfo} - */ - public static final class EntityRendererChangedInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EntityRendererChangedInfo) - EntityRendererChangedInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use EntityRendererChangedInfo.newBuilder() to construct. - private EntityRendererChangedInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private EntityRendererChangedInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EntityRendererChangedInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EntityRendererChangedInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - changedRenderers_ = com.google.protobuf.MapField.newMapField( - ChangedRenderersDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.String, java.lang.Integer> - changedRenderers__ = input.readMessage( - ChangedRenderersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - changedRenderers_.getMutableMap().put( - changedRenderers__.getKey(), changedRenderers__.getValue()); - break; - } - case 16: { - - visibilityCount_ = input.readUInt32(); - break; - } - case 24: { - - isCached_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.internal_static_EntityRendererChangedInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetChangedRenderers(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.internal_static_EntityRendererChangedInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo.class, emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo.Builder.class); - } - - public static final int CHANGEDRENDERERS_FIELD_NUMBER = 1; - private static final class ChangedRenderersDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.String, java.lang.Integer>newDefaultInstance( - emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.internal_static_EntityRendererChangedInfo_ChangedRenderersEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> changedRenderers_; - private com.google.protobuf.MapField<java.lang.String, java.lang.Integer> - internalGetChangedRenderers() { - if (changedRenderers_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ChangedRenderersDefaultEntryHolder.defaultEntry); - } - return changedRenderers_; - } - - public int getChangedRenderersCount() { - return internalGetChangedRenderers().getMap().size(); - } - /** - * <code>map<string, uint32> changedRenderers = 1;</code> - */ - - @java.lang.Override - public boolean containsChangedRenderers( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetChangedRenderers().getMap().containsKey(key); - } - /** - * Use {@link #getChangedRenderersMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.String, java.lang.Integer> getChangedRenderers() { - return getChangedRenderersMap(); - } - /** - * <code>map<string, uint32> changedRenderers = 1;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.String, java.lang.Integer> getChangedRenderersMap() { - return internalGetChangedRenderers().getMap(); - } - /** - * <code>map<string, uint32> changedRenderers = 1;</code> - */ - @java.lang.Override - - public int getChangedRenderersOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map<java.lang.String, java.lang.Integer> map = - internalGetChangedRenderers().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<string, uint32> changedRenderers = 1;</code> - */ - @java.lang.Override - - public int getChangedRenderersOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map<java.lang.String, java.lang.Integer> map = - internalGetChangedRenderers().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int VISIBILITYCOUNT_FIELD_NUMBER = 2; - private int visibilityCount_; - /** - * <code>uint32 visibilityCount = 2;</code> - * @return The visibilityCount. - */ - @java.lang.Override - public int getVisibilityCount() { - return visibilityCount_; - } - - public static final int ISCACHED_FIELD_NUMBER = 3; - private boolean isCached_; - /** - * <code>bool isCached = 3;</code> - * @return The isCached. - */ - @java.lang.Override - public boolean getIsCached() { - return isCached_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetChangedRenderers(), - ChangedRenderersDefaultEntryHolder.defaultEntry, - 1); - if (visibilityCount_ != 0) { - output.writeUInt32(2, visibilityCount_); - } - if (isCached_ != false) { - output.writeBool(3, isCached_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry<java.lang.String, java.lang.Integer> entry - : internalGetChangedRenderers().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.String, java.lang.Integer> - changedRenderers__ = ChangedRenderersDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, changedRenderers__); - } - if (visibilityCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, visibilityCount_); - } - if (isCached_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, isCached_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo other = (emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo) obj; - - if (!internalGetChangedRenderers().equals( - other.internalGetChangedRenderers())) return false; - if (getVisibilityCount() - != other.getVisibilityCount()) return false; - if (getIsCached() - != other.getIsCached()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetChangedRenderers().getMap().isEmpty()) { - hash = (37 * hash) + CHANGEDRENDERERS_FIELD_NUMBER; - hash = (53 * hash) + internalGetChangedRenderers().hashCode(); - } - hash = (37 * hash) + VISIBILITYCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getVisibilityCount(); - hash = (37 * hash) + ISCACHED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsCached()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EntityRendererChangedInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:EntityRendererChangedInfo) - emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.internal_static_EntityRendererChangedInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetChangedRenderers(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableChangedRenderers(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.internal_static_EntityRendererChangedInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo.class, emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableChangedRenderers().clear(); - visibilityCount_ = 0; - - isCached_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.internal_static_EntityRendererChangedInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo build() { - emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo buildPartial() { - emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo result = new emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo(this); - int from_bitField0_ = bitField0_; - result.changedRenderers_ = internalGetChangedRenderers(); - result.changedRenderers_.makeImmutable(); - result.visibilityCount_ = visibilityCount_; - result.isCached_ = isCached_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo) { - return mergeFrom((emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo other) { - if (other == emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo.getDefaultInstance()) return this; - internalGetMutableChangedRenderers().mergeFrom( - other.internalGetChangedRenderers()); - if (other.getVisibilityCount() != 0) { - setVisibilityCount(other.getVisibilityCount()); - } - if (other.getIsCached() != false) { - setIsCached(other.getIsCached()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> changedRenderers_; - private com.google.protobuf.MapField<java.lang.String, java.lang.Integer> - internalGetChangedRenderers() { - if (changedRenderers_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ChangedRenderersDefaultEntryHolder.defaultEntry); - } - return changedRenderers_; - } - private com.google.protobuf.MapField<java.lang.String, java.lang.Integer> - internalGetMutableChangedRenderers() { - onChanged();; - if (changedRenderers_ == null) { - changedRenderers_ = com.google.protobuf.MapField.newMapField( - ChangedRenderersDefaultEntryHolder.defaultEntry); - } - if (!changedRenderers_.isMutable()) { - changedRenderers_ = changedRenderers_.copy(); - } - return changedRenderers_; - } - - public int getChangedRenderersCount() { - return internalGetChangedRenderers().getMap().size(); - } - /** - * <code>map<string, uint32> changedRenderers = 1;</code> - */ - - @java.lang.Override - public boolean containsChangedRenderers( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetChangedRenderers().getMap().containsKey(key); - } - /** - * Use {@link #getChangedRenderersMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.String, java.lang.Integer> getChangedRenderers() { - return getChangedRenderersMap(); - } - /** - * <code>map<string, uint32> changedRenderers = 1;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.String, java.lang.Integer> getChangedRenderersMap() { - return internalGetChangedRenderers().getMap(); - } - /** - * <code>map<string, uint32> changedRenderers = 1;</code> - */ - @java.lang.Override - - public int getChangedRenderersOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map<java.lang.String, java.lang.Integer> map = - internalGetChangedRenderers().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<string, uint32> changedRenderers = 1;</code> - */ - @java.lang.Override - - public int getChangedRenderersOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map<java.lang.String, java.lang.Integer> map = - internalGetChangedRenderers().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearChangedRenderers() { - internalGetMutableChangedRenderers().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<string, uint32> changedRenderers = 1;</code> - */ - - public Builder removeChangedRenderers( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableChangedRenderers().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.String, java.lang.Integer> - getMutableChangedRenderers() { - return internalGetMutableChangedRenderers().getMutableMap(); - } - /** - * <code>map<string, uint32> changedRenderers = 1;</code> - */ - public Builder putChangedRenderers( - java.lang.String key, - int value) { - if (key == null) { throw new java.lang.NullPointerException(); } - - internalGetMutableChangedRenderers().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<string, uint32> changedRenderers = 1;</code> - */ - - public Builder putAllChangedRenderers( - java.util.Map<java.lang.String, java.lang.Integer> values) { - internalGetMutableChangedRenderers().getMutableMap() - .putAll(values); - return this; - } - - private int visibilityCount_ ; - /** - * <code>uint32 visibilityCount = 2;</code> - * @return The visibilityCount. - */ - @java.lang.Override - public int getVisibilityCount() { - return visibilityCount_; - } - /** - * <code>uint32 visibilityCount = 2;</code> - * @param value The visibilityCount to set. - * @return This builder for chaining. - */ - public Builder setVisibilityCount(int value) { - - visibilityCount_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 visibilityCount = 2;</code> - * @return This builder for chaining. - */ - public Builder clearVisibilityCount() { - - visibilityCount_ = 0; - onChanged(); - return this; - } - - private boolean isCached_ ; - /** - * <code>bool isCached = 3;</code> - * @return The isCached. - */ - @java.lang.Override - public boolean getIsCached() { - return isCached_; - } - /** - * <code>bool isCached = 3;</code> - * @param value The isCached to set. - * @return This builder for chaining. - */ - public Builder setIsCached(boolean value) { - - isCached_ = value; - onChanged(); - return this; - } - /** - * <code>bool isCached = 3;</code> - * @return This builder for chaining. - */ - public Builder clearIsCached() { - - isCached_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EntityRendererChangedInfo) - } - - // @@protoc_insertion_point(class_scope:EntityRendererChangedInfo) - private static final emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo(); - } - - public static emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<EntityRendererChangedInfo> - PARSER = new com.google.protobuf.AbstractParser<EntityRendererChangedInfo>() { - @java.lang.Override - public EntityRendererChangedInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EntityRendererChangedInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<EntityRendererChangedInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<EntityRendererChangedInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EntityRendererChangedInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EntityRendererChangedInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EntityRendererChangedInfo_ChangedRenderersEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EntityRendererChangedInfo_ChangedRenderersEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037EntityRendererChangedInfo.proto\"\313\001\n\031En" + - "tityRendererChangedInfo\022J\n\020changedRender" + - "ers\030\001 \003(\01320.EntityRendererChangedInfo.Ch" + - "angedRenderersEntry\022\027\n\017visibilityCount\030\002" + - " \001(\r\022\020\n\010isCached\030\003 \001(\010\0327\n\025ChangedRendere" + - "rsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\r:\0028\001B" + - "\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_EntityRendererChangedInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_EntityRendererChangedInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EntityRendererChangedInfo_descriptor, - new java.lang.String[] { "ChangedRenderers", "VisibilityCount", "IsCached", }); - internal_static_EntityRendererChangedInfo_ChangedRenderersEntry_descriptor = - internal_static_EntityRendererChangedInfo_descriptor.getNestedTypes().get(0); - internal_static_EntityRendererChangedInfo_ChangedRenderersEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EntityRendererChangedInfo_ChangedRenderersEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/EquipOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EquipOuterClass.java deleted file mode 100644 index 89d73a302..000000000 --- a/src/main/java/emu/grasscutter/net/proto/EquipOuterClass.java +++ /dev/null @@ -1,1072 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Equip.proto - -package emu.grasscutter.net.proto; - -public final class EquipOuterClass { - private EquipOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EquipOrBuilder extends - // @@protoc_insertion_point(interface_extends:Equip) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.Reliquary reliquary = 1;</code> - * @return Whether the reliquary field is set. - */ - boolean hasReliquary(); - /** - * <code>.Reliquary reliquary = 1;</code> - * @return The reliquary. - */ - emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary getReliquary(); - /** - * <code>.Reliquary reliquary = 1;</code> - */ - emu.grasscutter.net.proto.ReliquaryOuterClass.ReliquaryOrBuilder getReliquaryOrBuilder(); - - /** - * <code>.Weapon weapon = 2;</code> - * @return Whether the weapon field is set. - */ - boolean hasWeapon(); - /** - * <code>.Weapon weapon = 2;</code> - * @return The weapon. - */ - emu.grasscutter.net.proto.WeaponOuterClass.Weapon getWeapon(); - /** - * <code>.Weapon weapon = 2;</code> - */ - emu.grasscutter.net.proto.WeaponOuterClass.WeaponOrBuilder getWeaponOrBuilder(); - - /** - * <code>bool isLocked = 3;</code> - * @return The isLocked. - */ - boolean getIsLocked(); - - public emu.grasscutter.net.proto.EquipOuterClass.Equip.DetailCase getDetailCase(); - } - /** - * Protobuf type {@code Equip} - */ - public static final class Equip extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Equip) - EquipOrBuilder { - private static final long serialVersionUID = 0L; - // Use Equip.newBuilder() to construct. - private Equip(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Equip() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Equip(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Equip( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary.Builder subBuilder = null; - if (detailCase_ == 1) { - subBuilder = ((emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary) detail_).toBuilder(); - } - detail_ = - input.readMessage(emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 1; - break; - } - case 18: { - emu.grasscutter.net.proto.WeaponOuterClass.Weapon.Builder subBuilder = null; - if (detailCase_ == 2) { - subBuilder = ((emu.grasscutter.net.proto.WeaponOuterClass.Weapon) detail_).toBuilder(); - } - detail_ = - input.readMessage(emu.grasscutter.net.proto.WeaponOuterClass.Weapon.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.WeaponOuterClass.Weapon) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 2; - break; - } - case 24: { - - isLocked_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EquipOuterClass.internal_static_Equip_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EquipOuterClass.internal_static_Equip_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EquipOuterClass.Equip.class, emu.grasscutter.net.proto.EquipOuterClass.Equip.Builder.class); - } - - private int detailCase_ = 0; - private java.lang.Object detail_; - public enum DetailCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - RELIQUARY(1), - WEAPON(2), - DETAIL_NOT_SET(0); - private final int value; - private DetailCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DetailCase valueOf(int value) { - return forNumber(value); - } - - public static DetailCase forNumber(int value) { - switch (value) { - case 1: return RELIQUARY; - case 2: return WEAPON; - case 0: return DETAIL_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public DetailCase - getDetailCase() { - return DetailCase.forNumber( - detailCase_); - } - - public static final int RELIQUARY_FIELD_NUMBER = 1; - /** - * <code>.Reliquary reliquary = 1;</code> - * @return Whether the reliquary field is set. - */ - @java.lang.Override - public boolean hasReliquary() { - return detailCase_ == 1; - } - /** - * <code>.Reliquary reliquary = 1;</code> - * @return The reliquary. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary getReliquary() { - if (detailCase_ == 1) { - return (emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary) detail_; - } - return emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary.getDefaultInstance(); - } - /** - * <code>.Reliquary reliquary = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ReliquaryOuterClass.ReliquaryOrBuilder getReliquaryOrBuilder() { - if (detailCase_ == 1) { - return (emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary) detail_; - } - return emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary.getDefaultInstance(); - } - - public static final int WEAPON_FIELD_NUMBER = 2; - /** - * <code>.Weapon weapon = 2;</code> - * @return Whether the weapon field is set. - */ - @java.lang.Override - public boolean hasWeapon() { - return detailCase_ == 2; - } - /** - * <code>.Weapon weapon = 2;</code> - * @return The weapon. - */ - @java.lang.Override - public emu.grasscutter.net.proto.WeaponOuterClass.Weapon getWeapon() { - if (detailCase_ == 2) { - return (emu.grasscutter.net.proto.WeaponOuterClass.Weapon) detail_; - } - return emu.grasscutter.net.proto.WeaponOuterClass.Weapon.getDefaultInstance(); - } - /** - * <code>.Weapon weapon = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.WeaponOuterClass.WeaponOrBuilder getWeaponOrBuilder() { - if (detailCase_ == 2) { - return (emu.grasscutter.net.proto.WeaponOuterClass.Weapon) detail_; - } - return emu.grasscutter.net.proto.WeaponOuterClass.Weapon.getDefaultInstance(); - } - - public static final int ISLOCKED_FIELD_NUMBER = 3; - private boolean isLocked_; - /** - * <code>bool isLocked = 3;</code> - * @return The isLocked. - */ - @java.lang.Override - public boolean getIsLocked() { - return isLocked_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (detailCase_ == 1) { - output.writeMessage(1, (emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary) detail_); - } - if (detailCase_ == 2) { - output.writeMessage(2, (emu.grasscutter.net.proto.WeaponOuterClass.Weapon) detail_); - } - if (isLocked_ != false) { - output.writeBool(3, isLocked_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (detailCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary) detail_); - } - if (detailCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (emu.grasscutter.net.proto.WeaponOuterClass.Weapon) detail_); - } - if (isLocked_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, isLocked_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.EquipOuterClass.Equip)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.EquipOuterClass.Equip other = (emu.grasscutter.net.proto.EquipOuterClass.Equip) obj; - - if (getIsLocked() - != other.getIsLocked()) return false; - if (!getDetailCase().equals(other.getDetailCase())) return false; - switch (detailCase_) { - case 1: - if (!getReliquary() - .equals(other.getReliquary())) return false; - break; - case 2: - if (!getWeapon() - .equals(other.getWeapon())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ISLOCKED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsLocked()); - switch (detailCase_) { - case 1: - hash = (37 * hash) + RELIQUARY_FIELD_NUMBER; - hash = (53 * hash) + getReliquary().hashCode(); - break; - case 2: - hash = (37 * hash) + WEAPON_FIELD_NUMBER; - hash = (53 * hash) + getWeapon().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.EquipOuterClass.Equip parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EquipOuterClass.Equip parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EquipOuterClass.Equip parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EquipOuterClass.Equip parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EquipOuterClass.Equip parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EquipOuterClass.Equip parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EquipOuterClass.Equip parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EquipOuterClass.Equip parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EquipOuterClass.Equip parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EquipOuterClass.Equip parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EquipOuterClass.Equip parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EquipOuterClass.Equip parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.EquipOuterClass.Equip prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Equip} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:Equip) - emu.grasscutter.net.proto.EquipOuterClass.EquipOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EquipOuterClass.internal_static_Equip_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EquipOuterClass.internal_static_Equip_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EquipOuterClass.Equip.class, emu.grasscutter.net.proto.EquipOuterClass.Equip.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.EquipOuterClass.Equip.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - isLocked_ = false; - - detailCase_ = 0; - detail_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.EquipOuterClass.internal_static_Equip_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EquipOuterClass.Equip getDefaultInstanceForType() { - return emu.grasscutter.net.proto.EquipOuterClass.Equip.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.EquipOuterClass.Equip build() { - emu.grasscutter.net.proto.EquipOuterClass.Equip result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EquipOuterClass.Equip buildPartial() { - emu.grasscutter.net.proto.EquipOuterClass.Equip result = new emu.grasscutter.net.proto.EquipOuterClass.Equip(this); - if (detailCase_ == 1) { - if (reliquaryBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = reliquaryBuilder_.build(); - } - } - if (detailCase_ == 2) { - if (weaponBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = weaponBuilder_.build(); - } - } - result.isLocked_ = isLocked_; - result.detailCase_ = detailCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.EquipOuterClass.Equip) { - return mergeFrom((emu.grasscutter.net.proto.EquipOuterClass.Equip)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.EquipOuterClass.Equip other) { - if (other == emu.grasscutter.net.proto.EquipOuterClass.Equip.getDefaultInstance()) return this; - if (other.getIsLocked() != false) { - setIsLocked(other.getIsLocked()); - } - switch (other.getDetailCase()) { - case RELIQUARY: { - mergeReliquary(other.getReliquary()); - break; - } - case WEAPON: { - mergeWeapon(other.getWeapon()); - break; - } - case DETAIL_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.EquipOuterClass.Equip parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.EquipOuterClass.Equip) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int detailCase_ = 0; - private java.lang.Object detail_; - public DetailCase - getDetailCase() { - return DetailCase.forNumber( - detailCase_); - } - - public Builder clearDetail() { - detailCase_ = 0; - detail_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary, emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary.Builder, emu.grasscutter.net.proto.ReliquaryOuterClass.ReliquaryOrBuilder> reliquaryBuilder_; - /** - * <code>.Reliquary reliquary = 1;</code> - * @return Whether the reliquary field is set. - */ - @java.lang.Override - public boolean hasReliquary() { - return detailCase_ == 1; - } - /** - * <code>.Reliquary reliquary = 1;</code> - * @return The reliquary. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary getReliquary() { - if (reliquaryBuilder_ == null) { - if (detailCase_ == 1) { - return (emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary) detail_; - } - return emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary.getDefaultInstance(); - } else { - if (detailCase_ == 1) { - return reliquaryBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary.getDefaultInstance(); - } - } - /** - * <code>.Reliquary reliquary = 1;</code> - */ - public Builder setReliquary(emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary value) { - if (reliquaryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - detail_ = value; - onChanged(); - } else { - reliquaryBuilder_.setMessage(value); - } - detailCase_ = 1; - return this; - } - /** - * <code>.Reliquary reliquary = 1;</code> - */ - public Builder setReliquary( - emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary.Builder builderForValue) { - if (reliquaryBuilder_ == null) { - detail_ = builderForValue.build(); - onChanged(); - } else { - reliquaryBuilder_.setMessage(builderForValue.build()); - } - detailCase_ = 1; - return this; - } - /** - * <code>.Reliquary reliquary = 1;</code> - */ - public Builder mergeReliquary(emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary value) { - if (reliquaryBuilder_ == null) { - if (detailCase_ == 1 && - detail_ != emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary.getDefaultInstance()) { - detail_ = emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary.newBuilder((emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary) detail_) - .mergeFrom(value).buildPartial(); - } else { - detail_ = value; - } - onChanged(); - } else { - if (detailCase_ == 1) { - reliquaryBuilder_.mergeFrom(value); - } - reliquaryBuilder_.setMessage(value); - } - detailCase_ = 1; - return this; - } - /** - * <code>.Reliquary reliquary = 1;</code> - */ - public Builder clearReliquary() { - if (reliquaryBuilder_ == null) { - if (detailCase_ == 1) { - detailCase_ = 0; - detail_ = null; - onChanged(); - } - } else { - if (detailCase_ == 1) { - detailCase_ = 0; - detail_ = null; - } - reliquaryBuilder_.clear(); - } - return this; - } - /** - * <code>.Reliquary reliquary = 1;</code> - */ - public emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary.Builder getReliquaryBuilder() { - return getReliquaryFieldBuilder().getBuilder(); - } - /** - * <code>.Reliquary reliquary = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ReliquaryOuterClass.ReliquaryOrBuilder getReliquaryOrBuilder() { - if ((detailCase_ == 1) && (reliquaryBuilder_ != null)) { - return reliquaryBuilder_.getMessageOrBuilder(); - } else { - if (detailCase_ == 1) { - return (emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary) detail_; - } - return emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary.getDefaultInstance(); - } - } - /** - * <code>.Reliquary reliquary = 1;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary, emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary.Builder, emu.grasscutter.net.proto.ReliquaryOuterClass.ReliquaryOrBuilder> - getReliquaryFieldBuilder() { - if (reliquaryBuilder_ == null) { - if (!(detailCase_ == 1)) { - detail_ = emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary.getDefaultInstance(); - } - reliquaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary, emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary.Builder, emu.grasscutter.net.proto.ReliquaryOuterClass.ReliquaryOrBuilder>( - (emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary) detail_, - getParentForChildren(), - isClean()); - detail_ = null; - } - detailCase_ = 1; - onChanged();; - return reliquaryBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.WeaponOuterClass.Weapon, emu.grasscutter.net.proto.WeaponOuterClass.Weapon.Builder, emu.grasscutter.net.proto.WeaponOuterClass.WeaponOrBuilder> weaponBuilder_; - /** - * <code>.Weapon weapon = 2;</code> - * @return Whether the weapon field is set. - */ - @java.lang.Override - public boolean hasWeapon() { - return detailCase_ == 2; - } - /** - * <code>.Weapon weapon = 2;</code> - * @return The weapon. - */ - @java.lang.Override - public emu.grasscutter.net.proto.WeaponOuterClass.Weapon getWeapon() { - if (weaponBuilder_ == null) { - if (detailCase_ == 2) { - return (emu.grasscutter.net.proto.WeaponOuterClass.Weapon) detail_; - } - return emu.grasscutter.net.proto.WeaponOuterClass.Weapon.getDefaultInstance(); - } else { - if (detailCase_ == 2) { - return weaponBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.WeaponOuterClass.Weapon.getDefaultInstance(); - } - } - /** - * <code>.Weapon weapon = 2;</code> - */ - public Builder setWeapon(emu.grasscutter.net.proto.WeaponOuterClass.Weapon value) { - if (weaponBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - detail_ = value; - onChanged(); - } else { - weaponBuilder_.setMessage(value); - } - detailCase_ = 2; - return this; - } - /** - * <code>.Weapon weapon = 2;</code> - */ - public Builder setWeapon( - emu.grasscutter.net.proto.WeaponOuterClass.Weapon.Builder builderForValue) { - if (weaponBuilder_ == null) { - detail_ = builderForValue.build(); - onChanged(); - } else { - weaponBuilder_.setMessage(builderForValue.build()); - } - detailCase_ = 2; - return this; - } - /** - * <code>.Weapon weapon = 2;</code> - */ - public Builder mergeWeapon(emu.grasscutter.net.proto.WeaponOuterClass.Weapon value) { - if (weaponBuilder_ == null) { - if (detailCase_ == 2 && - detail_ != emu.grasscutter.net.proto.WeaponOuterClass.Weapon.getDefaultInstance()) { - detail_ = emu.grasscutter.net.proto.WeaponOuterClass.Weapon.newBuilder((emu.grasscutter.net.proto.WeaponOuterClass.Weapon) detail_) - .mergeFrom(value).buildPartial(); - } else { - detail_ = value; - } - onChanged(); - } else { - if (detailCase_ == 2) { - weaponBuilder_.mergeFrom(value); - } - weaponBuilder_.setMessage(value); - } - detailCase_ = 2; - return this; - } - /** - * <code>.Weapon weapon = 2;</code> - */ - public Builder clearWeapon() { - if (weaponBuilder_ == null) { - if (detailCase_ == 2) { - detailCase_ = 0; - detail_ = null; - onChanged(); - } - } else { - if (detailCase_ == 2) { - detailCase_ = 0; - detail_ = null; - } - weaponBuilder_.clear(); - } - return this; - } - /** - * <code>.Weapon weapon = 2;</code> - */ - public emu.grasscutter.net.proto.WeaponOuterClass.Weapon.Builder getWeaponBuilder() { - return getWeaponFieldBuilder().getBuilder(); - } - /** - * <code>.Weapon weapon = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.WeaponOuterClass.WeaponOrBuilder getWeaponOrBuilder() { - if ((detailCase_ == 2) && (weaponBuilder_ != null)) { - return weaponBuilder_.getMessageOrBuilder(); - } else { - if (detailCase_ == 2) { - return (emu.grasscutter.net.proto.WeaponOuterClass.Weapon) detail_; - } - return emu.grasscutter.net.proto.WeaponOuterClass.Weapon.getDefaultInstance(); - } - } - /** - * <code>.Weapon weapon = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.WeaponOuterClass.Weapon, emu.grasscutter.net.proto.WeaponOuterClass.Weapon.Builder, emu.grasscutter.net.proto.WeaponOuterClass.WeaponOrBuilder> - getWeaponFieldBuilder() { - if (weaponBuilder_ == null) { - if (!(detailCase_ == 2)) { - detail_ = emu.grasscutter.net.proto.WeaponOuterClass.Weapon.getDefaultInstance(); - } - weaponBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.WeaponOuterClass.Weapon, emu.grasscutter.net.proto.WeaponOuterClass.Weapon.Builder, emu.grasscutter.net.proto.WeaponOuterClass.WeaponOrBuilder>( - (emu.grasscutter.net.proto.WeaponOuterClass.Weapon) detail_, - getParentForChildren(), - isClean()); - detail_ = null; - } - detailCase_ = 2; - onChanged();; - return weaponBuilder_; - } - - private boolean isLocked_ ; - /** - * <code>bool isLocked = 3;</code> - * @return The isLocked. - */ - @java.lang.Override - public boolean getIsLocked() { - return isLocked_; - } - /** - * <code>bool isLocked = 3;</code> - * @param value The isLocked to set. - * @return This builder for chaining. - */ - public Builder setIsLocked(boolean value) { - - isLocked_ = value; - onChanged(); - return this; - } - /** - * <code>bool isLocked = 3;</code> - * @return This builder for chaining. - */ - public Builder clearIsLocked() { - - isLocked_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Equip) - } - - // @@protoc_insertion_point(class_scope:Equip) - private static final emu.grasscutter.net.proto.EquipOuterClass.Equip DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EquipOuterClass.Equip(); - } - - public static emu.grasscutter.net.proto.EquipOuterClass.Equip getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<Equip> - PARSER = new com.google.protobuf.AbstractParser<Equip>() { - @java.lang.Override - public Equip parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Equip(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<Equip> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Equip> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EquipOuterClass.Equip getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Equip_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Equip_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\013Equip.proto\032\017Reliquary.proto\032\014Weapon.p" + - "roto\"_\n\005Equip\022\037\n\treliquary\030\001 \001(\0132\n.Reliq" + - "uaryH\000\022\031\n\006weapon\030\002 \001(\0132\007.WeaponH\000\022\020\n\010isL" + - "ocked\030\003 \001(\010B\010\n\006detailB\033\n\031emu.grasscutter" + - ".net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ReliquaryOuterClass.getDescriptor(), - emu.grasscutter.net.proto.WeaponOuterClass.getDescriptor(), - }); - internal_static_Equip_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_Equip_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Equip_descriptor, - new java.lang.String[] { "Reliquary", "Weapon", "IsLocked", "Detail", }); - emu.grasscutter.net.proto.ReliquaryOuterClass.getDescriptor(); - emu.grasscutter.net.proto.WeaponOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/EvtAiSyncCombatThreatInfoNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EvtAiSyncCombatThreatInfoNotifyOuterClass.java deleted file mode 100644 index f277e1e56..000000000 --- a/src/main/java/emu/grasscutter/net/proto/EvtAiSyncCombatThreatInfoNotifyOuterClass.java +++ /dev/null @@ -1,804 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: EvtAiSyncCombatThreatInfoNotify.proto - -package emu.grasscutter.net.proto; - -public final class EvtAiSyncCombatThreatInfoNotifyOuterClass { - private EvtAiSyncCombatThreatInfoNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EvtAiSyncCombatThreatInfoNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:EvtAiSyncCombatThreatInfoNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>map<uint32, .AiThreatInfo> combatThreatInfoMap = 1;</code> - */ - int getCombatThreatInfoMapCount(); - /** - * <code>map<uint32, .AiThreatInfo> combatThreatInfoMap = 1;</code> - */ - boolean containsCombatThreatInfoMap( - int key); - /** - * Use {@link #getCombatThreatInfoMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo> - getCombatThreatInfoMap(); - /** - * <code>map<uint32, .AiThreatInfo> combatThreatInfoMap = 1;</code> - */ - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo> - getCombatThreatInfoMapMap(); - /** - * <code>map<uint32, .AiThreatInfo> combatThreatInfoMap = 1;</code> - */ - - emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo getCombatThreatInfoMapOrDefault( - int key, - emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo defaultValue); - /** - * <code>map<uint32, .AiThreatInfo> combatThreatInfoMap = 1;</code> - */ - - emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo getCombatThreatInfoMapOrThrow( - int key); - } - /** - * Protobuf type {@code EvtAiSyncCombatThreatInfoNotify} - */ - public static final class EvtAiSyncCombatThreatInfoNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EvtAiSyncCombatThreatInfoNotify) - EvtAiSyncCombatThreatInfoNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvtAiSyncCombatThreatInfoNotify.newBuilder() to construct. - private EvtAiSyncCombatThreatInfoNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private EvtAiSyncCombatThreatInfoNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvtAiSyncCombatThreatInfoNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvtAiSyncCombatThreatInfoNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - combatThreatInfoMap_ = com.google.protobuf.MapField.newMapField( - CombatThreatInfoMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.Integer, emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo> - combatThreatInfoMap__ = input.readMessage( - CombatThreatInfoMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - combatThreatInfoMap_.getMutableMap().put( - combatThreatInfoMap__.getKey(), combatThreatInfoMap__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.internal_static_EvtAiSyncCombatThreatInfoNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetCombatThreatInfoMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.internal_static_EvtAiSyncCombatThreatInfoNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify.class, emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify.Builder.class); - } - - public static final int COMBATTHREATINFOMAP_FIELD_NUMBER = 1; - private static final class CombatThreatInfoMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo>newDefaultInstance( - emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.internal_static_EvtAiSyncCombatThreatInfoNotify_CombatThreatInfoMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.Integer, emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo> combatThreatInfoMap_; - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo> - internalGetCombatThreatInfoMap() { - if (combatThreatInfoMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CombatThreatInfoMapDefaultEntryHolder.defaultEntry); - } - return combatThreatInfoMap_; - } - - public int getCombatThreatInfoMapCount() { - return internalGetCombatThreatInfoMap().getMap().size(); - } - /** - * <code>map<uint32, .AiThreatInfo> combatThreatInfoMap = 1;</code> - */ - - @java.lang.Override - public boolean containsCombatThreatInfoMap( - int key) { - - return internalGetCombatThreatInfoMap().getMap().containsKey(key); - } - /** - * Use {@link #getCombatThreatInfoMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo> getCombatThreatInfoMap() { - return getCombatThreatInfoMapMap(); - } - /** - * <code>map<uint32, .AiThreatInfo> combatThreatInfoMap = 1;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo> getCombatThreatInfoMapMap() { - return internalGetCombatThreatInfoMap().getMap(); - } - /** - * <code>map<uint32, .AiThreatInfo> combatThreatInfoMap = 1;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo getCombatThreatInfoMapOrDefault( - int key, - emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo defaultValue) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo> map = - internalGetCombatThreatInfoMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, .AiThreatInfo> combatThreatInfoMap = 1;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo getCombatThreatInfoMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo> map = - internalGetCombatThreatInfoMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetCombatThreatInfoMap(), - CombatThreatInfoMapDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry<java.lang.Integer, emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo> entry - : internalGetCombatThreatInfoMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo> - combatThreatInfoMap__ = CombatThreatInfoMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, combatThreatInfoMap__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify other = (emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify) obj; - - if (!internalGetCombatThreatInfoMap().equals( - other.internalGetCombatThreatInfoMap())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetCombatThreatInfoMap().getMap().isEmpty()) { - hash = (37 * hash) + COMBATTHREATINFOMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetCombatThreatInfoMap().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EvtAiSyncCombatThreatInfoNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:EvtAiSyncCombatThreatInfoNotify) - emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.internal_static_EvtAiSyncCombatThreatInfoNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetCombatThreatInfoMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableCombatThreatInfoMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.internal_static_EvtAiSyncCombatThreatInfoNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify.class, emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableCombatThreatInfoMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.internal_static_EvtAiSyncCombatThreatInfoNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify build() { - emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify buildPartial() { - emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify result = new emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify(this); - int from_bitField0_ = bitField0_; - result.combatThreatInfoMap_ = internalGetCombatThreatInfoMap(); - result.combatThreatInfoMap_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify) { - return mergeFrom((emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify other) { - if (other == emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify.getDefaultInstance()) return this; - internalGetMutableCombatThreatInfoMap().mergeFrom( - other.internalGetCombatThreatInfoMap()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.Integer, emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo> combatThreatInfoMap_; - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo> - internalGetCombatThreatInfoMap() { - if (combatThreatInfoMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CombatThreatInfoMapDefaultEntryHolder.defaultEntry); - } - return combatThreatInfoMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo> - internalGetMutableCombatThreatInfoMap() { - onChanged();; - if (combatThreatInfoMap_ == null) { - combatThreatInfoMap_ = com.google.protobuf.MapField.newMapField( - CombatThreatInfoMapDefaultEntryHolder.defaultEntry); - } - if (!combatThreatInfoMap_.isMutable()) { - combatThreatInfoMap_ = combatThreatInfoMap_.copy(); - } - return combatThreatInfoMap_; - } - - public int getCombatThreatInfoMapCount() { - return internalGetCombatThreatInfoMap().getMap().size(); - } - /** - * <code>map<uint32, .AiThreatInfo> combatThreatInfoMap = 1;</code> - */ - - @java.lang.Override - public boolean containsCombatThreatInfoMap( - int key) { - - return internalGetCombatThreatInfoMap().getMap().containsKey(key); - } - /** - * Use {@link #getCombatThreatInfoMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo> getCombatThreatInfoMap() { - return getCombatThreatInfoMapMap(); - } - /** - * <code>map<uint32, .AiThreatInfo> combatThreatInfoMap = 1;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo> getCombatThreatInfoMapMap() { - return internalGetCombatThreatInfoMap().getMap(); - } - /** - * <code>map<uint32, .AiThreatInfo> combatThreatInfoMap = 1;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo getCombatThreatInfoMapOrDefault( - int key, - emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo defaultValue) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo> map = - internalGetCombatThreatInfoMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, .AiThreatInfo> combatThreatInfoMap = 1;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo getCombatThreatInfoMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo> map = - internalGetCombatThreatInfoMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearCombatThreatInfoMap() { - internalGetMutableCombatThreatInfoMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, .AiThreatInfo> combatThreatInfoMap = 1;</code> - */ - - public Builder removeCombatThreatInfoMap( - int key) { - - internalGetMutableCombatThreatInfoMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo> - getMutableCombatThreatInfoMap() { - return internalGetMutableCombatThreatInfoMap().getMutableMap(); - } - /** - * <code>map<uint32, .AiThreatInfo> combatThreatInfoMap = 1;</code> - */ - public Builder putCombatThreatInfoMap( - int key, - emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo value) { - - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableCombatThreatInfoMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, .AiThreatInfo> combatThreatInfoMap = 1;</code> - */ - - public Builder putAllCombatThreatInfoMap( - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo> values) { - internalGetMutableCombatThreatInfoMap().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EvtAiSyncCombatThreatInfoNotify) - } - - // @@protoc_insertion_point(class_scope:EvtAiSyncCombatThreatInfoNotify) - private static final emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify(); - } - - public static emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<EvtAiSyncCombatThreatInfoNotify> - PARSER = new com.google.protobuf.AbstractParser<EvtAiSyncCombatThreatInfoNotify>() { - @java.lang.Override - public EvtAiSyncCombatThreatInfoNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvtAiSyncCombatThreatInfoNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<EvtAiSyncCombatThreatInfoNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<EvtAiSyncCombatThreatInfoNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtAiSyncCombatThreatInfoNotifyOuterClass.EvtAiSyncCombatThreatInfoNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvtAiSyncCombatThreatInfoNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvtAiSyncCombatThreatInfoNotify_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvtAiSyncCombatThreatInfoNotify_CombatThreatInfoMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvtAiSyncCombatThreatInfoNotify_CombatThreatInfoMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n%EvtAiSyncCombatThreatInfoNotify.proto\032" + - "\022AiThreatInfo.proto\"\304\001\n\037EvtAiSyncCombatT" + - "hreatInfoNotify\022V\n\023combatThreatInfoMap\030\001" + - " \003(\01329.EvtAiSyncCombatThreatInfoNotify.C" + - "ombatThreatInfoMapEntry\032I\n\030CombatThreatI" + - "nfoMapEntry\022\013\n\003key\030\001 \001(\r\022\034\n\005value\030\002 \001(\0132" + - "\r.AiThreatInfo:\0028\001B\033\n\031emu.grasscutter.ne" + - "t.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AiThreatInfoOuterClass.getDescriptor(), - }); - internal_static_EvtAiSyncCombatThreatInfoNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_EvtAiSyncCombatThreatInfoNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvtAiSyncCombatThreatInfoNotify_descriptor, - new java.lang.String[] { "CombatThreatInfoMap", }); - internal_static_EvtAiSyncCombatThreatInfoNotify_CombatThreatInfoMapEntry_descriptor = - internal_static_EvtAiSyncCombatThreatInfoNotify_descriptor.getNestedTypes().get(0); - internal_static_EvtAiSyncCombatThreatInfoNotify_CombatThreatInfoMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvtAiSyncCombatThreatInfoNotify_CombatThreatInfoMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - emu.grasscutter.net.proto.AiThreatInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/EvtAiSyncSkillCdNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EvtAiSyncSkillCdNotifyOuterClass.java deleted file mode 100644 index c32ec8f44..000000000 --- a/src/main/java/emu/grasscutter/net/proto/EvtAiSyncSkillCdNotifyOuterClass.java +++ /dev/null @@ -1,802 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: EvtAiSyncSkillCdNotify.proto - -package emu.grasscutter.net.proto; - -public final class EvtAiSyncSkillCdNotifyOuterClass { - private EvtAiSyncSkillCdNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EvtAiSyncSkillCdNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:EvtAiSyncSkillCdNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>map<uint32, .AiSkillCdInfo> aiCdMap = 1;</code> - */ - int getAiCdMapCount(); - /** - * <code>map<uint32, .AiSkillCdInfo> aiCdMap = 1;</code> - */ - boolean containsAiCdMap( - int key); - /** - * Use {@link #getAiCdMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo> - getAiCdMap(); - /** - * <code>map<uint32, .AiSkillCdInfo> aiCdMap = 1;</code> - */ - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo> - getAiCdMapMap(); - /** - * <code>map<uint32, .AiSkillCdInfo> aiCdMap = 1;</code> - */ - - emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo getAiCdMapOrDefault( - int key, - emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo defaultValue); - /** - * <code>map<uint32, .AiSkillCdInfo> aiCdMap = 1;</code> - */ - - emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo getAiCdMapOrThrow( - int key); - } - /** - * Protobuf type {@code EvtAiSyncSkillCdNotify} - */ - public static final class EvtAiSyncSkillCdNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EvtAiSyncSkillCdNotify) - EvtAiSyncSkillCdNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvtAiSyncSkillCdNotify.newBuilder() to construct. - private EvtAiSyncSkillCdNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private EvtAiSyncSkillCdNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvtAiSyncSkillCdNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvtAiSyncSkillCdNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - aiCdMap_ = com.google.protobuf.MapField.newMapField( - AiCdMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.Integer, emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo> - aiCdMap__ = input.readMessage( - AiCdMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - aiCdMap_.getMutableMap().put( - aiCdMap__.getKey(), aiCdMap__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.internal_static_EvtAiSyncSkillCdNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetAiCdMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.internal_static_EvtAiSyncSkillCdNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify.class, emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify.Builder.class); - } - - public static final int AICDMAP_FIELD_NUMBER = 1; - private static final class AiCdMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo>newDefaultInstance( - emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.internal_static_EvtAiSyncSkillCdNotify_AiCdMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.Integer, emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo> aiCdMap_; - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo> - internalGetAiCdMap() { - if (aiCdMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AiCdMapDefaultEntryHolder.defaultEntry); - } - return aiCdMap_; - } - - public int getAiCdMapCount() { - return internalGetAiCdMap().getMap().size(); - } - /** - * <code>map<uint32, .AiSkillCdInfo> aiCdMap = 1;</code> - */ - - @java.lang.Override - public boolean containsAiCdMap( - int key) { - - return internalGetAiCdMap().getMap().containsKey(key); - } - /** - * Use {@link #getAiCdMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo> getAiCdMap() { - return getAiCdMapMap(); - } - /** - * <code>map<uint32, .AiSkillCdInfo> aiCdMap = 1;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo> getAiCdMapMap() { - return internalGetAiCdMap().getMap(); - } - /** - * <code>map<uint32, .AiSkillCdInfo> aiCdMap = 1;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo getAiCdMapOrDefault( - int key, - emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo defaultValue) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo> map = - internalGetAiCdMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, .AiSkillCdInfo> aiCdMap = 1;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo getAiCdMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo> map = - internalGetAiCdMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetAiCdMap(), - AiCdMapDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry<java.lang.Integer, emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo> entry - : internalGetAiCdMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo> - aiCdMap__ = AiCdMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, aiCdMap__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify other = (emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify) obj; - - if (!internalGetAiCdMap().equals( - other.internalGetAiCdMap())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetAiCdMap().getMap().isEmpty()) { - hash = (37 * hash) + AICDMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetAiCdMap().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EvtAiSyncSkillCdNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:EvtAiSyncSkillCdNotify) - emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.internal_static_EvtAiSyncSkillCdNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetAiCdMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableAiCdMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.internal_static_EvtAiSyncSkillCdNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify.class, emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableAiCdMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.internal_static_EvtAiSyncSkillCdNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify build() { - emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify buildPartial() { - emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify result = new emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify(this); - int from_bitField0_ = bitField0_; - result.aiCdMap_ = internalGetAiCdMap(); - result.aiCdMap_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify) { - return mergeFrom((emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify other) { - if (other == emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify.getDefaultInstance()) return this; - internalGetMutableAiCdMap().mergeFrom( - other.internalGetAiCdMap()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.Integer, emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo> aiCdMap_; - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo> - internalGetAiCdMap() { - if (aiCdMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AiCdMapDefaultEntryHolder.defaultEntry); - } - return aiCdMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo> - internalGetMutableAiCdMap() { - onChanged();; - if (aiCdMap_ == null) { - aiCdMap_ = com.google.protobuf.MapField.newMapField( - AiCdMapDefaultEntryHolder.defaultEntry); - } - if (!aiCdMap_.isMutable()) { - aiCdMap_ = aiCdMap_.copy(); - } - return aiCdMap_; - } - - public int getAiCdMapCount() { - return internalGetAiCdMap().getMap().size(); - } - /** - * <code>map<uint32, .AiSkillCdInfo> aiCdMap = 1;</code> - */ - - @java.lang.Override - public boolean containsAiCdMap( - int key) { - - return internalGetAiCdMap().getMap().containsKey(key); - } - /** - * Use {@link #getAiCdMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo> getAiCdMap() { - return getAiCdMapMap(); - } - /** - * <code>map<uint32, .AiSkillCdInfo> aiCdMap = 1;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo> getAiCdMapMap() { - return internalGetAiCdMap().getMap(); - } - /** - * <code>map<uint32, .AiSkillCdInfo> aiCdMap = 1;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo getAiCdMapOrDefault( - int key, - emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo defaultValue) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo> map = - internalGetAiCdMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, .AiSkillCdInfo> aiCdMap = 1;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo getAiCdMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo> map = - internalGetAiCdMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearAiCdMap() { - internalGetMutableAiCdMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, .AiSkillCdInfo> aiCdMap = 1;</code> - */ - - public Builder removeAiCdMap( - int key) { - - internalGetMutableAiCdMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo> - getMutableAiCdMap() { - return internalGetMutableAiCdMap().getMutableMap(); - } - /** - * <code>map<uint32, .AiSkillCdInfo> aiCdMap = 1;</code> - */ - public Builder putAiCdMap( - int key, - emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo value) { - - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAiCdMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, .AiSkillCdInfo> aiCdMap = 1;</code> - */ - - public Builder putAllAiCdMap( - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo> values) { - internalGetMutableAiCdMap().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EvtAiSyncSkillCdNotify) - } - - // @@protoc_insertion_point(class_scope:EvtAiSyncSkillCdNotify) - private static final emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify(); - } - - public static emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<EvtAiSyncSkillCdNotify> - PARSER = new com.google.protobuf.AbstractParser<EvtAiSyncSkillCdNotify>() { - @java.lang.Override - public EvtAiSyncSkillCdNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvtAiSyncSkillCdNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<EvtAiSyncSkillCdNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<EvtAiSyncSkillCdNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtAiSyncSkillCdNotifyOuterClass.EvtAiSyncSkillCdNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvtAiSyncSkillCdNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvtAiSyncSkillCdNotify_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvtAiSyncSkillCdNotify_AiCdMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvtAiSyncSkillCdNotify_AiCdMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034EvtAiSyncSkillCdNotify.proto\032\023AiSkillC" + - "dInfo.proto\"\217\001\n\026EvtAiSyncSkillCdNotify\0225" + - "\n\007aiCdMap\030\001 \003(\0132$.EvtAiSyncSkillCdNotify" + - ".AiCdMapEntry\032>\n\014AiCdMapEntry\022\013\n\003key\030\001 \001" + - "(\r\022\035\n\005value\030\002 \001(\0132\016.AiSkillCdInfo:\0028\001B\033\n" + - "\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.getDescriptor(), - }); - internal_static_EvtAiSyncSkillCdNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_EvtAiSyncSkillCdNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvtAiSyncSkillCdNotify_descriptor, - new java.lang.String[] { "AiCdMap", }); - internal_static_EvtAiSyncSkillCdNotify_AiCdMapEntry_descriptor = - internal_static_EvtAiSyncSkillCdNotify_descriptor.getNestedTypes().get(0); - internal_static_EvtAiSyncSkillCdNotify_AiCdMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvtAiSyncSkillCdNotify_AiCdMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/EvtAvatarSitDownNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EvtAvatarSitDownNotifyOuterClass.java deleted file mode 100644 index 2bc0317b2..000000000 --- a/src/main/java/emu/grasscutter/net/proto/EvtAvatarSitDownNotifyOuterClass.java +++ /dev/null @@ -1,816 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: EvtAvatarSitDownNotify.proto - -package emu.grasscutter.net.proto; - -public final class EvtAvatarSitDownNotifyOuterClass { - private EvtAvatarSitDownNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EvtAvatarSitDownNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:EvtAvatarSitDownNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 entity_id = 1;</code> - * @return The entityId. - */ - int getEntityId(); - - /** - * <code>.Vector position = 2;</code> - * @return Whether the position field is set. - */ - boolean hasPosition(); - /** - * <code>.Vector position = 2;</code> - * @return The position. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getPosition(); - /** - * <code>.Vector position = 2;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPositionOrBuilder(); - - /** - * <code>uint64 chair_id = 3;</code> - * @return The chairId. - */ - long getChairId(); - } - /** - * Protobuf type {@code EvtAvatarSitDownNotify} - */ - public static final class EvtAvatarSitDownNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EvtAvatarSitDownNotify) - EvtAvatarSitDownNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvtAvatarSitDownNotify.newBuilder() to construct. - private EvtAvatarSitDownNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private EvtAvatarSitDownNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvtAvatarSitDownNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvtAvatarSitDownNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - entityId_ = input.readUInt32(); - break; - } - case 18: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (position_ != null) { - subBuilder = position_.toBuilder(); - } - position_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(position_); - position_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - chairId_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.internal_static_EvtAvatarSitDownNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.internal_static_EvtAvatarSitDownNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify.class, emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify.Builder.class); - } - - public static final int ENTITY_ID_FIELD_NUMBER = 1; - private int entityId_; - /** - * <code>uint32 entity_id = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - - public static final int POSITION_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.VectorOuterClass.Vector position_; - /** - * <code>.Vector position = 2;</code> - * @return Whether the position field is set. - */ - @java.lang.Override - public boolean hasPosition() { - return position_ != null; - } - /** - * <code>.Vector position = 2;</code> - * @return The position. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getPosition() { - return position_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : position_; - } - /** - * <code>.Vector position = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPositionOrBuilder() { - return getPosition(); - } - - public static final int CHAIR_ID_FIELD_NUMBER = 3; - private long chairId_; - /** - * <code>uint64 chair_id = 3;</code> - * @return The chairId. - */ - @java.lang.Override - public long getChairId() { - return chairId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (entityId_ != 0) { - output.writeUInt32(1, entityId_); - } - if (position_ != null) { - output.writeMessage(2, getPosition()); - } - if (chairId_ != 0L) { - output.writeUInt64(3, chairId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, entityId_); - } - if (position_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPosition()); - } - if (chairId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, chairId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify other = (emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify) obj; - - if (getEntityId() - != other.getEntityId()) return false; - if (hasPosition() != other.hasPosition()) return false; - if (hasPosition()) { - if (!getPosition() - .equals(other.getPosition())) return false; - } - if (getChairId() - != other.getChairId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId(); - if (hasPosition()) { - hash = (37 * hash) + POSITION_FIELD_NUMBER; - hash = (53 * hash) + getPosition().hashCode(); - } - hash = (37 * hash) + CHAIR_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getChairId()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EvtAvatarSitDownNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:EvtAvatarSitDownNotify) - emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.internal_static_EvtAvatarSitDownNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.internal_static_EvtAvatarSitDownNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify.class, emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - entityId_ = 0; - - if (positionBuilder_ == null) { - position_ = null; - } else { - position_ = null; - positionBuilder_ = null; - } - chairId_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.internal_static_EvtAvatarSitDownNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify build() { - emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify buildPartial() { - emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify result = new emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify(this); - result.entityId_ = entityId_; - if (positionBuilder_ == null) { - result.position_ = position_; - } else { - result.position_ = positionBuilder_.build(); - } - result.chairId_ = chairId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify) { - return mergeFrom((emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify other) { - if (other == emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify.getDefaultInstance()) return this; - if (other.getEntityId() != 0) { - setEntityId(other.getEntityId()); - } - if (other.hasPosition()) { - mergePosition(other.getPosition()); - } - if (other.getChairId() != 0L) { - setChairId(other.getChairId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int entityId_ ; - /** - * <code>uint32 entity_id = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - /** - * <code>uint32 entity_id = 1;</code> - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId(int value) { - - entityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 entity_id = 1;</code> - * @return This builder for chaining. - */ - public Builder clearEntityId() { - - entityId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.VectorOuterClass.Vector position_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> positionBuilder_; - /** - * <code>.Vector position = 2;</code> - * @return Whether the position field is set. - */ - public boolean hasPosition() { - return positionBuilder_ != null || position_ != null; - } - /** - * <code>.Vector position = 2;</code> - * @return The position. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getPosition() { - if (positionBuilder_ == null) { - return position_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : position_; - } else { - return positionBuilder_.getMessage(); - } - } - /** - * <code>.Vector position = 2;</code> - */ - public Builder setPosition(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (positionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - position_ = value; - onChanged(); - } else { - positionBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Vector position = 2;</code> - */ - public Builder setPosition( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (positionBuilder_ == null) { - position_ = builderForValue.build(); - onChanged(); - } else { - positionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Vector position = 2;</code> - */ - public Builder mergePosition(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (positionBuilder_ == null) { - if (position_ != null) { - position_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(position_).mergeFrom(value).buildPartial(); - } else { - position_ = value; - } - onChanged(); - } else { - positionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Vector position = 2;</code> - */ - public Builder clearPosition() { - if (positionBuilder_ == null) { - position_ = null; - onChanged(); - } else { - position_ = null; - positionBuilder_ = null; - } - - return this; - } - /** - * <code>.Vector position = 2;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getPositionBuilder() { - - onChanged(); - return getPositionFieldBuilder().getBuilder(); - } - /** - * <code>.Vector position = 2;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPositionOrBuilder() { - if (positionBuilder_ != null) { - return positionBuilder_.getMessageOrBuilder(); - } else { - return position_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : position_; - } - } - /** - * <code>.Vector position = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getPositionFieldBuilder() { - if (positionBuilder_ == null) { - positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getPosition(), - getParentForChildren(), - isClean()); - position_ = null; - } - return positionBuilder_; - } - - private long chairId_ ; - /** - * <code>uint64 chair_id = 3;</code> - * @return The chairId. - */ - @java.lang.Override - public long getChairId() { - return chairId_; - } - /** - * <code>uint64 chair_id = 3;</code> - * @param value The chairId to set. - * @return This builder for chaining. - */ - public Builder setChairId(long value) { - - chairId_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 chair_id = 3;</code> - * @return This builder for chaining. - */ - public Builder clearChairId() { - - chairId_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EvtAvatarSitDownNotify) - } - - // @@protoc_insertion_point(class_scope:EvtAvatarSitDownNotify) - private static final emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify(); - } - - public static emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<EvtAvatarSitDownNotify> - PARSER = new com.google.protobuf.AbstractParser<EvtAvatarSitDownNotify>() { - @java.lang.Override - public EvtAvatarSitDownNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvtAvatarSitDownNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<EvtAvatarSitDownNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<EvtAvatarSitDownNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvtAvatarSitDownNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvtAvatarSitDownNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034EvtAvatarSitDownNotify.proto\032\014Vector.p" + - "roto\"X\n\026EvtAvatarSitDownNotify\022\021\n\tentity" + - "_id\030\001 \001(\r\022\031\n\010position\030\002 \001(\0132\007.Vector\022\020\n\010" + - "chair_id\030\003 \001(\004B\033\n\031emu.grasscutter.net.pr" + - "otob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(), - }); - internal_static_EvtAvatarSitDownNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_EvtAvatarSitDownNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvtAvatarSitDownNotify_descriptor, - new java.lang.String[] { "EntityId", "Position", "ChairId", }); - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/EvtBeingHitInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EvtBeingHitInfoOuterClass.java deleted file mode 100644 index a6967c58e..000000000 --- a/src/main/java/emu/grasscutter/net/proto/EvtBeingHitInfoOuterClass.java +++ /dev/null @@ -1,742 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: EvtBeingHitInfo.proto - -package emu.grasscutter.net.proto; - -public final class EvtBeingHitInfoOuterClass { - private EvtBeingHitInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EvtBeingHitInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:EvtBeingHitInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 peerId = 1;</code> - * @return The peerId. - */ - int getPeerId(); - - /** - * <code>.AttackResult attackResult = 2;</code> - * @return Whether the attackResult field is set. - */ - boolean hasAttackResult(); - /** - * <code>.AttackResult attackResult = 2;</code> - * @return The attackResult. - */ - emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult getAttackResult(); - /** - * <code>.AttackResult attackResult = 2;</code> - */ - emu.grasscutter.net.proto.AttackResultOuterClass.AttackResultOrBuilder getAttackResultOrBuilder(); - } - /** - * Protobuf type {@code EvtBeingHitInfo} - */ - public static final class EvtBeingHitInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EvtBeingHitInfo) - EvtBeingHitInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvtBeingHitInfo.newBuilder() to construct. - private EvtBeingHitInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private EvtBeingHitInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvtBeingHitInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvtBeingHitInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - peerId_ = input.readUInt32(); - break; - } - case 18: { - emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.Builder subBuilder = null; - if (attackResult_ != null) { - subBuilder = attackResult_.toBuilder(); - } - attackResult_ = input.readMessage(emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attackResult_); - attackResult_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.internal_static_EvtBeingHitInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.internal_static_EvtBeingHitInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.class, emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.Builder.class); - } - - public static final int PEERID_FIELD_NUMBER = 1; - private int peerId_; - /** - * <code>uint32 peerId = 1;</code> - * @return The peerId. - */ - @java.lang.Override - public int getPeerId() { - return peerId_; - } - - public static final int ATTACKRESULT_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult attackResult_; - /** - * <code>.AttackResult attackResult = 2;</code> - * @return Whether the attackResult field is set. - */ - @java.lang.Override - public boolean hasAttackResult() { - return attackResult_ != null; - } - /** - * <code>.AttackResult attackResult = 2;</code> - * @return The attackResult. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult getAttackResult() { - return attackResult_ == null ? emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.getDefaultInstance() : attackResult_; - } - /** - * <code>.AttackResult attackResult = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AttackResultOuterClass.AttackResultOrBuilder getAttackResultOrBuilder() { - return getAttackResult(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (peerId_ != 0) { - output.writeUInt32(1, peerId_); - } - if (attackResult_ != null) { - output.writeMessage(2, getAttackResult()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (peerId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, peerId_); - } - if (attackResult_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAttackResult()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo other = (emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo) obj; - - if (getPeerId() - != other.getPeerId()) return false; - if (hasAttackResult() != other.hasAttackResult()) return false; - if (hasAttackResult()) { - if (!getAttackResult() - .equals(other.getAttackResult())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PEERID_FIELD_NUMBER; - hash = (53 * hash) + getPeerId(); - if (hasAttackResult()) { - hash = (37 * hash) + ATTACKRESULT_FIELD_NUMBER; - hash = (53 * hash) + getAttackResult().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EvtBeingHitInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:EvtBeingHitInfo) - emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.internal_static_EvtBeingHitInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.internal_static_EvtBeingHitInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.class, emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - peerId_ = 0; - - if (attackResultBuilder_ == null) { - attackResult_ = null; - } else { - attackResult_ = null; - attackResultBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.internal_static_EvtBeingHitInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo build() { - emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo buildPartial() { - emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo result = new emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo(this); - result.peerId_ = peerId_; - if (attackResultBuilder_ == null) { - result.attackResult_ = attackResult_; - } else { - result.attackResult_ = attackResultBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo) { - return mergeFrom((emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo other) { - if (other == emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.getDefaultInstance()) return this; - if (other.getPeerId() != 0) { - setPeerId(other.getPeerId()); - } - if (other.hasAttackResult()) { - mergeAttackResult(other.getAttackResult()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int peerId_ ; - /** - * <code>uint32 peerId = 1;</code> - * @return The peerId. - */ - @java.lang.Override - public int getPeerId() { - return peerId_; - } - /** - * <code>uint32 peerId = 1;</code> - * @param value The peerId to set. - * @return This builder for chaining. - */ - public Builder setPeerId(int value) { - - peerId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 peerId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearPeerId() { - - peerId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult attackResult_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult, emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.Builder, emu.grasscutter.net.proto.AttackResultOuterClass.AttackResultOrBuilder> attackResultBuilder_; - /** - * <code>.AttackResult attackResult = 2;</code> - * @return Whether the attackResult field is set. - */ - public boolean hasAttackResult() { - return attackResultBuilder_ != null || attackResult_ != null; - } - /** - * <code>.AttackResult attackResult = 2;</code> - * @return The attackResult. - */ - public emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult getAttackResult() { - if (attackResultBuilder_ == null) { - return attackResult_ == null ? emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.getDefaultInstance() : attackResult_; - } else { - return attackResultBuilder_.getMessage(); - } - } - /** - * <code>.AttackResult attackResult = 2;</code> - */ - public Builder setAttackResult(emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult value) { - if (attackResultBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - attackResult_ = value; - onChanged(); - } else { - attackResultBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.AttackResult attackResult = 2;</code> - */ - public Builder setAttackResult( - emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.Builder builderForValue) { - if (attackResultBuilder_ == null) { - attackResult_ = builderForValue.build(); - onChanged(); - } else { - attackResultBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.AttackResult attackResult = 2;</code> - */ - public Builder mergeAttackResult(emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult value) { - if (attackResultBuilder_ == null) { - if (attackResult_ != null) { - attackResult_ = - emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.newBuilder(attackResult_).mergeFrom(value).buildPartial(); - } else { - attackResult_ = value; - } - onChanged(); - } else { - attackResultBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.AttackResult attackResult = 2;</code> - */ - public Builder clearAttackResult() { - if (attackResultBuilder_ == null) { - attackResult_ = null; - onChanged(); - } else { - attackResult_ = null; - attackResultBuilder_ = null; - } - - return this; - } - /** - * <code>.AttackResult attackResult = 2;</code> - */ - public emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.Builder getAttackResultBuilder() { - - onChanged(); - return getAttackResultFieldBuilder().getBuilder(); - } - /** - * <code>.AttackResult attackResult = 2;</code> - */ - public emu.grasscutter.net.proto.AttackResultOuterClass.AttackResultOrBuilder getAttackResultOrBuilder() { - if (attackResultBuilder_ != null) { - return attackResultBuilder_.getMessageOrBuilder(); - } else { - return attackResult_ == null ? - emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.getDefaultInstance() : attackResult_; - } - } - /** - * <code>.AttackResult attackResult = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult, emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.Builder, emu.grasscutter.net.proto.AttackResultOuterClass.AttackResultOrBuilder> - getAttackResultFieldBuilder() { - if (attackResultBuilder_ == null) { - attackResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult, emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.Builder, emu.grasscutter.net.proto.AttackResultOuterClass.AttackResultOrBuilder>( - getAttackResult(), - getParentForChildren(), - isClean()); - attackResult_ = null; - } - return attackResultBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EvtBeingHitInfo) - } - - // @@protoc_insertion_point(class_scope:EvtBeingHitInfo) - private static final emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo(); - } - - public static emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<EvtBeingHitInfo> - PARSER = new com.google.protobuf.AbstractParser<EvtBeingHitInfo>() { - @java.lang.Override - public EvtBeingHitInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvtBeingHitInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<EvtBeingHitInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<EvtBeingHitInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvtBeingHitInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvtBeingHitInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025EvtBeingHitInfo.proto\032\022AttackResult.pr" + - "oto\"F\n\017EvtBeingHitInfo\022\016\n\006peerId\030\001 \001(\r\022#" + - "\n\014attackResult\030\002 \001(\0132\r.AttackResultB\033\n\031e" + - "mu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AttackResultOuterClass.getDescriptor(), - }); - internal_static_EvtBeingHitInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_EvtBeingHitInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvtBeingHitInfo_descriptor, - new java.lang.String[] { "PeerId", "AttackResult", }); - emu.grasscutter.net.proto.AttackResultOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/EvtBeingHitNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EvtBeingHitNotifyOuterClass.java deleted file mode 100644 index 3d017e91b..000000000 --- a/src/main/java/emu/grasscutter/net/proto/EvtBeingHitNotifyOuterClass.java +++ /dev/null @@ -1,782 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: EvtBeingHitNotify.proto - -package emu.grasscutter.net.proto; - -public final class EvtBeingHitNotifyOuterClass { - private EvtBeingHitNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EvtBeingHitNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:EvtBeingHitNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The enum numeric value on the wire for forwardType. - */ - int getForwardTypeValue(); - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The forwardType. - */ - emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType(); - - /** - * <code>.EvtBeingHitInfo beingHitInfo = 2;</code> - * @return Whether the beingHitInfo field is set. - */ - boolean hasBeingHitInfo(); - /** - * <code>.EvtBeingHitInfo beingHitInfo = 2;</code> - * @return The beingHitInfo. - */ - emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo getBeingHitInfo(); - /** - * <code>.EvtBeingHitInfo beingHitInfo = 2;</code> - */ - emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfoOrBuilder getBeingHitInfoOrBuilder(); - } - /** - * Protobuf type {@code EvtBeingHitNotify} - */ - public static final class EvtBeingHitNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EvtBeingHitNotify) - EvtBeingHitNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvtBeingHitNotify.newBuilder() to construct. - private EvtBeingHitNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private EvtBeingHitNotify() { - forwardType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvtBeingHitNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvtBeingHitNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - forwardType_ = rawValue; - break; - } - case 18: { - emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.Builder subBuilder = null; - if (beingHitInfo_ != null) { - subBuilder = beingHitInfo_.toBuilder(); - } - beingHitInfo_ = input.readMessage(emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(beingHitInfo_); - beingHitInfo_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.internal_static_EvtBeingHitNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.internal_static_EvtBeingHitNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify.class, emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify.Builder.class); - } - - public static final int FORWARDTYPE_FIELD_NUMBER = 1; - private int forwardType_; - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The enum numeric value on the wire for forwardType. - */ - @java.lang.Override public int getForwardTypeValue() { - return forwardType_; - } - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The forwardType. - */ - @java.lang.Override public emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType result = emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.valueOf(forwardType_); - return result == null ? emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.UNRECOGNIZED : result; - } - - public static final int BEINGHITINFO_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo beingHitInfo_; - /** - * <code>.EvtBeingHitInfo beingHitInfo = 2;</code> - * @return Whether the beingHitInfo field is set. - */ - @java.lang.Override - public boolean hasBeingHitInfo() { - return beingHitInfo_ != null; - } - /** - * <code>.EvtBeingHitInfo beingHitInfo = 2;</code> - * @return The beingHitInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo getBeingHitInfo() { - return beingHitInfo_ == null ? emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.getDefaultInstance() : beingHitInfo_; - } - /** - * <code>.EvtBeingHitInfo beingHitInfo = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfoOrBuilder getBeingHitInfoOrBuilder() { - return getBeingHitInfo(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (forwardType_ != emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.ForwardLocal.getNumber()) { - output.writeEnum(1, forwardType_); - } - if (beingHitInfo_ != null) { - output.writeMessage(2, getBeingHitInfo()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (forwardType_ != emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.ForwardLocal.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, forwardType_); - } - if (beingHitInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBeingHitInfo()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify other = (emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify) obj; - - if (forwardType_ != other.forwardType_) return false; - if (hasBeingHitInfo() != other.hasBeingHitInfo()) return false; - if (hasBeingHitInfo()) { - if (!getBeingHitInfo() - .equals(other.getBeingHitInfo())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FORWARDTYPE_FIELD_NUMBER; - hash = (53 * hash) + forwardType_; - if (hasBeingHitInfo()) { - hash = (37 * hash) + BEINGHITINFO_FIELD_NUMBER; - hash = (53 * hash) + getBeingHitInfo().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EvtBeingHitNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:EvtBeingHitNotify) - emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.internal_static_EvtBeingHitNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.internal_static_EvtBeingHitNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify.class, emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - forwardType_ = 0; - - if (beingHitInfoBuilder_ == null) { - beingHitInfo_ = null; - } else { - beingHitInfo_ = null; - beingHitInfoBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.internal_static_EvtBeingHitNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify build() { - emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify buildPartial() { - emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify result = new emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify(this); - result.forwardType_ = forwardType_; - if (beingHitInfoBuilder_ == null) { - result.beingHitInfo_ = beingHitInfo_; - } else { - result.beingHitInfo_ = beingHitInfoBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify) { - return mergeFrom((emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify other) { - if (other == emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify.getDefaultInstance()) return this; - if (other.forwardType_ != 0) { - setForwardTypeValue(other.getForwardTypeValue()); - } - if (other.hasBeingHitInfo()) { - mergeBeingHitInfo(other.getBeingHitInfo()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int forwardType_ = 0; - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The enum numeric value on the wire for forwardType. - */ - @java.lang.Override public int getForwardTypeValue() { - return forwardType_; - } - /** - * <code>.ForwardType forwardType = 1;</code> - * @param value The enum numeric value on the wire for forwardType to set. - * @return This builder for chaining. - */ - public Builder setForwardTypeValue(int value) { - - forwardType_ = value; - onChanged(); - return this; - } - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The forwardType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType result = emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.valueOf(forwardType_); - return result == null ? emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.UNRECOGNIZED : result; - } - /** - * <code>.ForwardType forwardType = 1;</code> - * @param value The forwardType to set. - * @return This builder for chaining. - */ - public Builder setForwardType(emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType value) { - if (value == null) { - throw new NullPointerException(); - } - - forwardType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.ForwardType forwardType = 1;</code> - * @return This builder for chaining. - */ - public Builder clearForwardType() { - - forwardType_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo beingHitInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo, emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.Builder, emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfoOrBuilder> beingHitInfoBuilder_; - /** - * <code>.EvtBeingHitInfo beingHitInfo = 2;</code> - * @return Whether the beingHitInfo field is set. - */ - public boolean hasBeingHitInfo() { - return beingHitInfoBuilder_ != null || beingHitInfo_ != null; - } - /** - * <code>.EvtBeingHitInfo beingHitInfo = 2;</code> - * @return The beingHitInfo. - */ - public emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo getBeingHitInfo() { - if (beingHitInfoBuilder_ == null) { - return beingHitInfo_ == null ? emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.getDefaultInstance() : beingHitInfo_; - } else { - return beingHitInfoBuilder_.getMessage(); - } - } - /** - * <code>.EvtBeingHitInfo beingHitInfo = 2;</code> - */ - public Builder setBeingHitInfo(emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo value) { - if (beingHitInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - beingHitInfo_ = value; - onChanged(); - } else { - beingHitInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.EvtBeingHitInfo beingHitInfo = 2;</code> - */ - public Builder setBeingHitInfo( - emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.Builder builderForValue) { - if (beingHitInfoBuilder_ == null) { - beingHitInfo_ = builderForValue.build(); - onChanged(); - } else { - beingHitInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.EvtBeingHitInfo beingHitInfo = 2;</code> - */ - public Builder mergeBeingHitInfo(emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo value) { - if (beingHitInfoBuilder_ == null) { - if (beingHitInfo_ != null) { - beingHitInfo_ = - emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.newBuilder(beingHitInfo_).mergeFrom(value).buildPartial(); - } else { - beingHitInfo_ = value; - } - onChanged(); - } else { - beingHitInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.EvtBeingHitInfo beingHitInfo = 2;</code> - */ - public Builder clearBeingHitInfo() { - if (beingHitInfoBuilder_ == null) { - beingHitInfo_ = null; - onChanged(); - } else { - beingHitInfo_ = null; - beingHitInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.EvtBeingHitInfo beingHitInfo = 2;</code> - */ - public emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.Builder getBeingHitInfoBuilder() { - - onChanged(); - return getBeingHitInfoFieldBuilder().getBuilder(); - } - /** - * <code>.EvtBeingHitInfo beingHitInfo = 2;</code> - */ - public emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfoOrBuilder getBeingHitInfoOrBuilder() { - if (beingHitInfoBuilder_ != null) { - return beingHitInfoBuilder_.getMessageOrBuilder(); - } else { - return beingHitInfo_ == null ? - emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.getDefaultInstance() : beingHitInfo_; - } - } - /** - * <code>.EvtBeingHitInfo beingHitInfo = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo, emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.Builder, emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfoOrBuilder> - getBeingHitInfoFieldBuilder() { - if (beingHitInfoBuilder_ == null) { - beingHitInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo, emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.Builder, emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfoOrBuilder>( - getBeingHitInfo(), - getParentForChildren(), - isClean()); - beingHitInfo_ = null; - } - return beingHitInfoBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EvtBeingHitNotify) - } - - // @@protoc_insertion_point(class_scope:EvtBeingHitNotify) - private static final emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify(); - } - - public static emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<EvtBeingHitNotify> - PARSER = new com.google.protobuf.AbstractParser<EvtBeingHitNotify>() { - @java.lang.Override - public EvtBeingHitNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvtBeingHitNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<EvtBeingHitNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<EvtBeingHitNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtBeingHitNotifyOuterClass.EvtBeingHitNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvtBeingHitNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvtBeingHitNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027EvtBeingHitNotify.proto\032\025EvtBeingHitIn" + - "fo.proto\032\021ForwardType.proto\"^\n\021EvtBeingH" + - "itNotify\022!\n\013forwardType\030\001 \001(\0162\014.ForwardT" + - "ype\022&\n\014beingHitInfo\030\002 \001(\0132\020.EvtBeingHitI" + - "nfoB\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.ForwardTypeOuterClass.getDescriptor(), - }); - internal_static_EvtBeingHitNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_EvtBeingHitNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvtBeingHitNotify_descriptor, - new java.lang.String[] { "ForwardType", "BeingHitInfo", }); - emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.ForwardTypeOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/EvtBeingHitsCombineNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EvtBeingHitsCombineNotifyOuterClass.java deleted file mode 100644 index a0f6df85b..000000000 --- a/src/main/java/emu/grasscutter/net/proto/EvtBeingHitsCombineNotifyOuterClass.java +++ /dev/null @@ -1,955 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: EvtBeingHitsCombineNotify.proto - -package emu.grasscutter.net.proto; - -public final class EvtBeingHitsCombineNotifyOuterClass { - private EvtBeingHitsCombineNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EvtBeingHitsCombineNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:EvtBeingHitsCombineNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The enum numeric value on the wire for forwardType. - */ - int getForwardTypeValue(); - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The forwardType. - */ - emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType(); - - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - java.util.List<emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo> - getEvtBeingHitInfoListList(); - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo getEvtBeingHitInfoList(int index); - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - int getEvtBeingHitInfoListCount(); - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfoOrBuilder> - getEvtBeingHitInfoListOrBuilderList(); - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfoOrBuilder getEvtBeingHitInfoListOrBuilder( - int index); - } - /** - * Protobuf type {@code EvtBeingHitsCombineNotify} - */ - public static final class EvtBeingHitsCombineNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EvtBeingHitsCombineNotify) - EvtBeingHitsCombineNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvtBeingHitsCombineNotify.newBuilder() to construct. - private EvtBeingHitsCombineNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private EvtBeingHitsCombineNotify() { - forwardType_ = 0; - evtBeingHitInfoList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvtBeingHitsCombineNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvtBeingHitsCombineNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - forwardType_ = rawValue; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - evtBeingHitInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo>(); - mutable_bitField0_ |= 0x00000001; - } - evtBeingHitInfoList_.add( - input.readMessage(emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - evtBeingHitInfoList_ = java.util.Collections.unmodifiableList(evtBeingHitInfoList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.internal_static_EvtBeingHitsCombineNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.internal_static_EvtBeingHitsCombineNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify.class, emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify.Builder.class); - } - - public static final int FORWARDTYPE_FIELD_NUMBER = 1; - private int forwardType_; - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The enum numeric value on the wire for forwardType. - */ - @java.lang.Override public int getForwardTypeValue() { - return forwardType_; - } - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The forwardType. - */ - @java.lang.Override public emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType result = emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.valueOf(forwardType_); - return result == null ? emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.UNRECOGNIZED : result; - } - - public static final int EVTBEINGHITINFOLIST_FIELD_NUMBER = 2; - private java.util.List<emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo> evtBeingHitInfoList_; - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo> getEvtBeingHitInfoListList() { - return evtBeingHitInfoList_; - } - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfoOrBuilder> - getEvtBeingHitInfoListOrBuilderList() { - return evtBeingHitInfoList_; - } - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - @java.lang.Override - public int getEvtBeingHitInfoListCount() { - return evtBeingHitInfoList_.size(); - } - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo getEvtBeingHitInfoList(int index) { - return evtBeingHitInfoList_.get(index); - } - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfoOrBuilder getEvtBeingHitInfoListOrBuilder( - int index) { - return evtBeingHitInfoList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (forwardType_ != emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.ForwardLocal.getNumber()) { - output.writeEnum(1, forwardType_); - } - for (int i = 0; i < evtBeingHitInfoList_.size(); i++) { - output.writeMessage(2, evtBeingHitInfoList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (forwardType_ != emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.ForwardLocal.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, forwardType_); - } - for (int i = 0; i < evtBeingHitInfoList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, evtBeingHitInfoList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify other = (emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify) obj; - - if (forwardType_ != other.forwardType_) return false; - if (!getEvtBeingHitInfoListList() - .equals(other.getEvtBeingHitInfoListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FORWARDTYPE_FIELD_NUMBER; - hash = (53 * hash) + forwardType_; - if (getEvtBeingHitInfoListCount() > 0) { - hash = (37 * hash) + EVTBEINGHITINFOLIST_FIELD_NUMBER; - hash = (53 * hash) + getEvtBeingHitInfoListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EvtBeingHitsCombineNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:EvtBeingHitsCombineNotify) - emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.internal_static_EvtBeingHitsCombineNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.internal_static_EvtBeingHitsCombineNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify.class, emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEvtBeingHitInfoListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - forwardType_ = 0; - - if (evtBeingHitInfoListBuilder_ == null) { - evtBeingHitInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - evtBeingHitInfoListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.internal_static_EvtBeingHitsCombineNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify build() { - emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify buildPartial() { - emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify result = new emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify(this); - int from_bitField0_ = bitField0_; - result.forwardType_ = forwardType_; - if (evtBeingHitInfoListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - evtBeingHitInfoList_ = java.util.Collections.unmodifiableList(evtBeingHitInfoList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.evtBeingHitInfoList_ = evtBeingHitInfoList_; - } else { - result.evtBeingHitInfoList_ = evtBeingHitInfoListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify) { - return mergeFrom((emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify other) { - if (other == emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify.getDefaultInstance()) return this; - if (other.forwardType_ != 0) { - setForwardTypeValue(other.getForwardTypeValue()); - } - if (evtBeingHitInfoListBuilder_ == null) { - if (!other.evtBeingHitInfoList_.isEmpty()) { - if (evtBeingHitInfoList_.isEmpty()) { - evtBeingHitInfoList_ = other.evtBeingHitInfoList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEvtBeingHitInfoListIsMutable(); - evtBeingHitInfoList_.addAll(other.evtBeingHitInfoList_); - } - onChanged(); - } - } else { - if (!other.evtBeingHitInfoList_.isEmpty()) { - if (evtBeingHitInfoListBuilder_.isEmpty()) { - evtBeingHitInfoListBuilder_.dispose(); - evtBeingHitInfoListBuilder_ = null; - evtBeingHitInfoList_ = other.evtBeingHitInfoList_; - bitField0_ = (bitField0_ & ~0x00000001); - evtBeingHitInfoListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEvtBeingHitInfoListFieldBuilder() : null; - } else { - evtBeingHitInfoListBuilder_.addAllMessages(other.evtBeingHitInfoList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int forwardType_ = 0; - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The enum numeric value on the wire for forwardType. - */ - @java.lang.Override public int getForwardTypeValue() { - return forwardType_; - } - /** - * <code>.ForwardType forwardType = 1;</code> - * @param value The enum numeric value on the wire for forwardType to set. - * @return This builder for chaining. - */ - public Builder setForwardTypeValue(int value) { - - forwardType_ = value; - onChanged(); - return this; - } - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The forwardType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType result = emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.valueOf(forwardType_); - return result == null ? emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.UNRECOGNIZED : result; - } - /** - * <code>.ForwardType forwardType = 1;</code> - * @param value The forwardType to set. - * @return This builder for chaining. - */ - public Builder setForwardType(emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType value) { - if (value == null) { - throw new NullPointerException(); - } - - forwardType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.ForwardType forwardType = 1;</code> - * @return This builder for chaining. - */ - public Builder clearForwardType() { - - forwardType_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo> evtBeingHitInfoList_ = - java.util.Collections.emptyList(); - private void ensureEvtBeingHitInfoListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - evtBeingHitInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo>(evtBeingHitInfoList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo, emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.Builder, emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfoOrBuilder> evtBeingHitInfoListBuilder_; - - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo> getEvtBeingHitInfoListList() { - if (evtBeingHitInfoListBuilder_ == null) { - return java.util.Collections.unmodifiableList(evtBeingHitInfoList_); - } else { - return evtBeingHitInfoListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - public int getEvtBeingHitInfoListCount() { - if (evtBeingHitInfoListBuilder_ == null) { - return evtBeingHitInfoList_.size(); - } else { - return evtBeingHitInfoListBuilder_.getCount(); - } - } - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - public emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo getEvtBeingHitInfoList(int index) { - if (evtBeingHitInfoListBuilder_ == null) { - return evtBeingHitInfoList_.get(index); - } else { - return evtBeingHitInfoListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - public Builder setEvtBeingHitInfoList( - int index, emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo value) { - if (evtBeingHitInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEvtBeingHitInfoListIsMutable(); - evtBeingHitInfoList_.set(index, value); - onChanged(); - } else { - evtBeingHitInfoListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - public Builder setEvtBeingHitInfoList( - int index, emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.Builder builderForValue) { - if (evtBeingHitInfoListBuilder_ == null) { - ensureEvtBeingHitInfoListIsMutable(); - evtBeingHitInfoList_.set(index, builderForValue.build()); - onChanged(); - } else { - evtBeingHitInfoListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - public Builder addEvtBeingHitInfoList(emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo value) { - if (evtBeingHitInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEvtBeingHitInfoListIsMutable(); - evtBeingHitInfoList_.add(value); - onChanged(); - } else { - evtBeingHitInfoListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - public Builder addEvtBeingHitInfoList( - int index, emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo value) { - if (evtBeingHitInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEvtBeingHitInfoListIsMutable(); - evtBeingHitInfoList_.add(index, value); - onChanged(); - } else { - evtBeingHitInfoListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - public Builder addEvtBeingHitInfoList( - emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.Builder builderForValue) { - if (evtBeingHitInfoListBuilder_ == null) { - ensureEvtBeingHitInfoListIsMutable(); - evtBeingHitInfoList_.add(builderForValue.build()); - onChanged(); - } else { - evtBeingHitInfoListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - public Builder addEvtBeingHitInfoList( - int index, emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.Builder builderForValue) { - if (evtBeingHitInfoListBuilder_ == null) { - ensureEvtBeingHitInfoListIsMutable(); - evtBeingHitInfoList_.add(index, builderForValue.build()); - onChanged(); - } else { - evtBeingHitInfoListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - public Builder addAllEvtBeingHitInfoList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo> values) { - if (evtBeingHitInfoListBuilder_ == null) { - ensureEvtBeingHitInfoListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, evtBeingHitInfoList_); - onChanged(); - } else { - evtBeingHitInfoListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - public Builder clearEvtBeingHitInfoList() { - if (evtBeingHitInfoListBuilder_ == null) { - evtBeingHitInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - evtBeingHitInfoListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - public Builder removeEvtBeingHitInfoList(int index) { - if (evtBeingHitInfoListBuilder_ == null) { - ensureEvtBeingHitInfoListIsMutable(); - evtBeingHitInfoList_.remove(index); - onChanged(); - } else { - evtBeingHitInfoListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - public emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.Builder getEvtBeingHitInfoListBuilder( - int index) { - return getEvtBeingHitInfoListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - public emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfoOrBuilder getEvtBeingHitInfoListOrBuilder( - int index) { - if (evtBeingHitInfoListBuilder_ == null) { - return evtBeingHitInfoList_.get(index); } else { - return evtBeingHitInfoListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfoOrBuilder> - getEvtBeingHitInfoListOrBuilderList() { - if (evtBeingHitInfoListBuilder_ != null) { - return evtBeingHitInfoListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(evtBeingHitInfoList_); - } - } - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - public emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.Builder addEvtBeingHitInfoListBuilder() { - return getEvtBeingHitInfoListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.getDefaultInstance()); - } - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - public emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.Builder addEvtBeingHitInfoListBuilder( - int index) { - return getEvtBeingHitInfoListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.getDefaultInstance()); - } - /** - * <code>repeated .EvtBeingHitInfo evtBeingHitInfoList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.Builder> - getEvtBeingHitInfoListBuilderList() { - return getEvtBeingHitInfoListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo, emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.Builder, emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfoOrBuilder> - getEvtBeingHitInfoListFieldBuilder() { - if (evtBeingHitInfoListBuilder_ == null) { - evtBeingHitInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo, emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.Builder, emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfoOrBuilder>( - evtBeingHitInfoList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - evtBeingHitInfoList_ = null; - } - return evtBeingHitInfoListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EvtBeingHitsCombineNotify) - } - - // @@protoc_insertion_point(class_scope:EvtBeingHitsCombineNotify) - private static final emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify(); - } - - public static emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<EvtBeingHitsCombineNotify> - PARSER = new com.google.protobuf.AbstractParser<EvtBeingHitsCombineNotify>() { - @java.lang.Override - public EvtBeingHitsCombineNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvtBeingHitsCombineNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<EvtBeingHitsCombineNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<EvtBeingHitsCombineNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtBeingHitsCombineNotifyOuterClass.EvtBeingHitsCombineNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvtBeingHitsCombineNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvtBeingHitsCombineNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037EvtBeingHitsCombineNotify.proto\032\025EvtBe" + - "ingHitInfo.proto\032\021ForwardType.proto\"m\n\031E" + - "vtBeingHitsCombineNotify\022!\n\013forwardType\030" + - "\001 \001(\0162\014.ForwardType\022-\n\023evtBeingHitInfoLi" + - "st\030\002 \003(\0132\020.EvtBeingHitInfoB\033\n\031emu.grassc" + - "utter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.ForwardTypeOuterClass.getDescriptor(), - }); - internal_static_EvtBeingHitsCombineNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_EvtBeingHitsCombineNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvtBeingHitsCombineNotify_descriptor, - new java.lang.String[] { "ForwardType", "EvtBeingHitInfoList", }); - emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.ForwardTypeOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/EvtCreateGadgetNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EvtCreateGadgetNotifyOuterClass.java deleted file mode 100644 index ea4919d16..000000000 --- a/src/main/java/emu/grasscutter/net/proto/EvtCreateGadgetNotifyOuterClass.java +++ /dev/null @@ -1,1835 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: EvtCreateGadgetNotify.proto - -package emu.grasscutter.net.proto; - -public final class EvtCreateGadgetNotifyOuterClass { - private EvtCreateGadgetNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EvtCreateGadgetNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:EvtCreateGadgetNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The enum numeric value on the wire for forwardType. - */ - int getForwardTypeValue(); - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The forwardType. - */ - emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType(); - - /** - * <code>uint32 entityId = 2;</code> - * @return The entityId. - */ - int getEntityId(); - - /** - * <code>uint32 configId = 3;</code> - * @return The configId. - */ - int getConfigId(); - - /** - * <code>uint32 campId = 4;</code> - * @return The campId. - */ - int getCampId(); - - /** - * <code>uint32 campType = 5;</code> - * @return The campType. - */ - int getCampType(); - - /** - * <code>.Vector initPos = 6;</code> - * @return Whether the initPos field is set. - */ - boolean hasInitPos(); - /** - * <code>.Vector initPos = 6;</code> - * @return The initPos. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getInitPos(); - /** - * <code>.Vector initPos = 6;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getInitPosOrBuilder(); - - /** - * <code>.Vector initEulerAngles = 7;</code> - * @return Whether the initEulerAngles field is set. - */ - boolean hasInitEulerAngles(); - /** - * <code>.Vector initEulerAngles = 7;</code> - * @return The initEulerAngles. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getInitEulerAngles(); - /** - * <code>.Vector initEulerAngles = 7;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getInitEulerAnglesOrBuilder(); - - /** - * <code>uint64 guid = 8;</code> - * @return The guid. - */ - long getGuid(); - - /** - * <code>uint32 ownerEntityId = 9;</code> - * @return The ownerEntityId. - */ - int getOwnerEntityId(); - - /** - * <code>uint32 targetEntityId = 10;</code> - * @return The targetEntityId. - */ - int getTargetEntityId(); - - /** - * <code>bool isAsyncLoad = 11;</code> - * @return The isAsyncLoad. - */ - boolean getIsAsyncLoad(); - - /** - * <code>uint32 targetLockPointIndex = 12;</code> - * @return The targetLockPointIndex. - */ - int getTargetLockPointIndex(); - - /** - * <code>uint32 roomId = 13;</code> - * @return The roomId. - */ - int getRoomId(); - - /** - * <code>uint32 propOwnerEntityId = 14;</code> - * @return The propOwnerEntityId. - */ - int getPropOwnerEntityId(); - - /** - * <code>bool sightGroupWithOwner = 15;</code> - * @return The sightGroupWithOwner. - */ - boolean getSightGroupWithOwner(); - } - /** - * Protobuf type {@code EvtCreateGadgetNotify} - */ - public static final class EvtCreateGadgetNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EvtCreateGadgetNotify) - EvtCreateGadgetNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvtCreateGadgetNotify.newBuilder() to construct. - private EvtCreateGadgetNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private EvtCreateGadgetNotify() { - forwardType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvtCreateGadgetNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvtCreateGadgetNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - forwardType_ = rawValue; - break; - } - case 16: { - - entityId_ = input.readUInt32(); - break; - } - case 24: { - - configId_ = input.readUInt32(); - break; - } - case 32: { - - campId_ = input.readUInt32(); - break; - } - case 40: { - - campType_ = input.readUInt32(); - break; - } - case 50: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (initPos_ != null) { - subBuilder = initPos_.toBuilder(); - } - initPos_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(initPos_); - initPos_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (initEulerAngles_ != null) { - subBuilder = initEulerAngles_.toBuilder(); - } - initEulerAngles_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(initEulerAngles_); - initEulerAngles_ = subBuilder.buildPartial(); - } - - break; - } - case 64: { - - guid_ = input.readUInt64(); - break; - } - case 72: { - - ownerEntityId_ = input.readUInt32(); - break; - } - case 80: { - - targetEntityId_ = input.readUInt32(); - break; - } - case 88: { - - isAsyncLoad_ = input.readBool(); - break; - } - case 96: { - - targetLockPointIndex_ = input.readUInt32(); - break; - } - case 104: { - - roomId_ = input.readUInt32(); - break; - } - case 112: { - - propOwnerEntityId_ = input.readUInt32(); - break; - } - case 120: { - - sightGroupWithOwner_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.internal_static_EvtCreateGadgetNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.internal_static_EvtCreateGadgetNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify.class, emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify.Builder.class); - } - - public static final int FORWARDTYPE_FIELD_NUMBER = 1; - private int forwardType_; - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The enum numeric value on the wire for forwardType. - */ - @java.lang.Override public int getForwardTypeValue() { - return forwardType_; - } - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The forwardType. - */ - @java.lang.Override public emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType result = emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.valueOf(forwardType_); - return result == null ? emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.UNRECOGNIZED : result; - } - - public static final int ENTITYID_FIELD_NUMBER = 2; - private int entityId_; - /** - * <code>uint32 entityId = 2;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - - public static final int CONFIGID_FIELD_NUMBER = 3; - private int configId_; - /** - * <code>uint32 configId = 3;</code> - * @return The configId. - */ - @java.lang.Override - public int getConfigId() { - return configId_; - } - - public static final int CAMPID_FIELD_NUMBER = 4; - private int campId_; - /** - * <code>uint32 campId = 4;</code> - * @return The campId. - */ - @java.lang.Override - public int getCampId() { - return campId_; - } - - public static final int CAMPTYPE_FIELD_NUMBER = 5; - private int campType_; - /** - * <code>uint32 campType = 5;</code> - * @return The campType. - */ - @java.lang.Override - public int getCampType() { - return campType_; - } - - public static final int INITPOS_FIELD_NUMBER = 6; - private emu.grasscutter.net.proto.VectorOuterClass.Vector initPos_; - /** - * <code>.Vector initPos = 6;</code> - * @return Whether the initPos field is set. - */ - @java.lang.Override - public boolean hasInitPos() { - return initPos_ != null; - } - /** - * <code>.Vector initPos = 6;</code> - * @return The initPos. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getInitPos() { - return initPos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : initPos_; - } - /** - * <code>.Vector initPos = 6;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getInitPosOrBuilder() { - return getInitPos(); - } - - public static final int INITEULERANGLES_FIELD_NUMBER = 7; - private emu.grasscutter.net.proto.VectorOuterClass.Vector initEulerAngles_; - /** - * <code>.Vector initEulerAngles = 7;</code> - * @return Whether the initEulerAngles field is set. - */ - @java.lang.Override - public boolean hasInitEulerAngles() { - return initEulerAngles_ != null; - } - /** - * <code>.Vector initEulerAngles = 7;</code> - * @return The initEulerAngles. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getInitEulerAngles() { - return initEulerAngles_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : initEulerAngles_; - } - /** - * <code>.Vector initEulerAngles = 7;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getInitEulerAnglesOrBuilder() { - return getInitEulerAngles(); - } - - public static final int GUID_FIELD_NUMBER = 8; - private long guid_; - /** - * <code>uint64 guid = 8;</code> - * @return The guid. - */ - @java.lang.Override - public long getGuid() { - return guid_; - } - - public static final int OWNERENTITYID_FIELD_NUMBER = 9; - private int ownerEntityId_; - /** - * <code>uint32 ownerEntityId = 9;</code> - * @return The ownerEntityId. - */ - @java.lang.Override - public int getOwnerEntityId() { - return ownerEntityId_; - } - - public static final int TARGETENTITYID_FIELD_NUMBER = 10; - private int targetEntityId_; - /** - * <code>uint32 targetEntityId = 10;</code> - * @return The targetEntityId. - */ - @java.lang.Override - public int getTargetEntityId() { - return targetEntityId_; - } - - public static final int ISASYNCLOAD_FIELD_NUMBER = 11; - private boolean isAsyncLoad_; - /** - * <code>bool isAsyncLoad = 11;</code> - * @return The isAsyncLoad. - */ - @java.lang.Override - public boolean getIsAsyncLoad() { - return isAsyncLoad_; - } - - public static final int TARGETLOCKPOINTINDEX_FIELD_NUMBER = 12; - private int targetLockPointIndex_; - /** - * <code>uint32 targetLockPointIndex = 12;</code> - * @return The targetLockPointIndex. - */ - @java.lang.Override - public int getTargetLockPointIndex() { - return targetLockPointIndex_; - } - - public static final int ROOMID_FIELD_NUMBER = 13; - private int roomId_; - /** - * <code>uint32 roomId = 13;</code> - * @return The roomId. - */ - @java.lang.Override - public int getRoomId() { - return roomId_; - } - - public static final int PROPOWNERENTITYID_FIELD_NUMBER = 14; - private int propOwnerEntityId_; - /** - * <code>uint32 propOwnerEntityId = 14;</code> - * @return The propOwnerEntityId. - */ - @java.lang.Override - public int getPropOwnerEntityId() { - return propOwnerEntityId_; - } - - public static final int SIGHTGROUPWITHOWNER_FIELD_NUMBER = 15; - private boolean sightGroupWithOwner_; - /** - * <code>bool sightGroupWithOwner = 15;</code> - * @return The sightGroupWithOwner. - */ - @java.lang.Override - public boolean getSightGroupWithOwner() { - return sightGroupWithOwner_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (forwardType_ != emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.ForwardLocal.getNumber()) { - output.writeEnum(1, forwardType_); - } - if (entityId_ != 0) { - output.writeUInt32(2, entityId_); - } - if (configId_ != 0) { - output.writeUInt32(3, configId_); - } - if (campId_ != 0) { - output.writeUInt32(4, campId_); - } - if (campType_ != 0) { - output.writeUInt32(5, campType_); - } - if (initPos_ != null) { - output.writeMessage(6, getInitPos()); - } - if (initEulerAngles_ != null) { - output.writeMessage(7, getInitEulerAngles()); - } - if (guid_ != 0L) { - output.writeUInt64(8, guid_); - } - if (ownerEntityId_ != 0) { - output.writeUInt32(9, ownerEntityId_); - } - if (targetEntityId_ != 0) { - output.writeUInt32(10, targetEntityId_); - } - if (isAsyncLoad_ != false) { - output.writeBool(11, isAsyncLoad_); - } - if (targetLockPointIndex_ != 0) { - output.writeUInt32(12, targetLockPointIndex_); - } - if (roomId_ != 0) { - output.writeUInt32(13, roomId_); - } - if (propOwnerEntityId_ != 0) { - output.writeUInt32(14, propOwnerEntityId_); - } - if (sightGroupWithOwner_ != false) { - output.writeBool(15, sightGroupWithOwner_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (forwardType_ != emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.ForwardLocal.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, forwardType_); - } - if (entityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, entityId_); - } - if (configId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, configId_); - } - if (campId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, campId_); - } - if (campType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, campType_); - } - if (initPos_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getInitPos()); - } - if (initEulerAngles_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getInitEulerAngles()); - } - if (guid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(8, guid_); - } - if (ownerEntityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(9, ownerEntityId_); - } - if (targetEntityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(10, targetEntityId_); - } - if (isAsyncLoad_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(11, isAsyncLoad_); - } - if (targetLockPointIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(12, targetLockPointIndex_); - } - if (roomId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(13, roomId_); - } - if (propOwnerEntityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(14, propOwnerEntityId_); - } - if (sightGroupWithOwner_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(15, sightGroupWithOwner_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify other = (emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify) obj; - - if (forwardType_ != other.forwardType_) return false; - if (getEntityId() - != other.getEntityId()) return false; - if (getConfigId() - != other.getConfigId()) return false; - if (getCampId() - != other.getCampId()) return false; - if (getCampType() - != other.getCampType()) return false; - if (hasInitPos() != other.hasInitPos()) return false; - if (hasInitPos()) { - if (!getInitPos() - .equals(other.getInitPos())) return false; - } - if (hasInitEulerAngles() != other.hasInitEulerAngles()) return false; - if (hasInitEulerAngles()) { - if (!getInitEulerAngles() - .equals(other.getInitEulerAngles())) return false; - } - if (getGuid() - != other.getGuid()) return false; - if (getOwnerEntityId() - != other.getOwnerEntityId()) return false; - if (getTargetEntityId() - != other.getTargetEntityId()) return false; - if (getIsAsyncLoad() - != other.getIsAsyncLoad()) return false; - if (getTargetLockPointIndex() - != other.getTargetLockPointIndex()) return false; - if (getRoomId() - != other.getRoomId()) return false; - if (getPropOwnerEntityId() - != other.getPropOwnerEntityId()) return false; - if (getSightGroupWithOwner() - != other.getSightGroupWithOwner()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FORWARDTYPE_FIELD_NUMBER; - hash = (53 * hash) + forwardType_; - hash = (37 * hash) + ENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId(); - hash = (37 * hash) + CONFIGID_FIELD_NUMBER; - hash = (53 * hash) + getConfigId(); - hash = (37 * hash) + CAMPID_FIELD_NUMBER; - hash = (53 * hash) + getCampId(); - hash = (37 * hash) + CAMPTYPE_FIELD_NUMBER; - hash = (53 * hash) + getCampType(); - if (hasInitPos()) { - hash = (37 * hash) + INITPOS_FIELD_NUMBER; - hash = (53 * hash) + getInitPos().hashCode(); - } - if (hasInitEulerAngles()) { - hash = (37 * hash) + INITEULERANGLES_FIELD_NUMBER; - hash = (53 * hash) + getInitEulerAngles().hashCode(); - } - hash = (37 * hash) + GUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGuid()); - hash = (37 * hash) + OWNERENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getOwnerEntityId(); - hash = (37 * hash) + TARGETENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getTargetEntityId(); - hash = (37 * hash) + ISASYNCLOAD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsAsyncLoad()); - hash = (37 * hash) + TARGETLOCKPOINTINDEX_FIELD_NUMBER; - hash = (53 * hash) + getTargetLockPointIndex(); - hash = (37 * hash) + ROOMID_FIELD_NUMBER; - hash = (53 * hash) + getRoomId(); - hash = (37 * hash) + PROPOWNERENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getPropOwnerEntityId(); - hash = (37 * hash) + SIGHTGROUPWITHOWNER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSightGroupWithOwner()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EvtCreateGadgetNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:EvtCreateGadgetNotify) - emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.internal_static_EvtCreateGadgetNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.internal_static_EvtCreateGadgetNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify.class, emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - forwardType_ = 0; - - entityId_ = 0; - - configId_ = 0; - - campId_ = 0; - - campType_ = 0; - - if (initPosBuilder_ == null) { - initPos_ = null; - } else { - initPos_ = null; - initPosBuilder_ = null; - } - if (initEulerAnglesBuilder_ == null) { - initEulerAngles_ = null; - } else { - initEulerAngles_ = null; - initEulerAnglesBuilder_ = null; - } - guid_ = 0L; - - ownerEntityId_ = 0; - - targetEntityId_ = 0; - - isAsyncLoad_ = false; - - targetLockPointIndex_ = 0; - - roomId_ = 0; - - propOwnerEntityId_ = 0; - - sightGroupWithOwner_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.internal_static_EvtCreateGadgetNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify build() { - emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify buildPartial() { - emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify result = new emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify(this); - result.forwardType_ = forwardType_; - result.entityId_ = entityId_; - result.configId_ = configId_; - result.campId_ = campId_; - result.campType_ = campType_; - if (initPosBuilder_ == null) { - result.initPos_ = initPos_; - } else { - result.initPos_ = initPosBuilder_.build(); - } - if (initEulerAnglesBuilder_ == null) { - result.initEulerAngles_ = initEulerAngles_; - } else { - result.initEulerAngles_ = initEulerAnglesBuilder_.build(); - } - result.guid_ = guid_; - result.ownerEntityId_ = ownerEntityId_; - result.targetEntityId_ = targetEntityId_; - result.isAsyncLoad_ = isAsyncLoad_; - result.targetLockPointIndex_ = targetLockPointIndex_; - result.roomId_ = roomId_; - result.propOwnerEntityId_ = propOwnerEntityId_; - result.sightGroupWithOwner_ = sightGroupWithOwner_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify) { - return mergeFrom((emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify other) { - if (other == emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify.getDefaultInstance()) return this; - if (other.forwardType_ != 0) { - setForwardTypeValue(other.getForwardTypeValue()); - } - if (other.getEntityId() != 0) { - setEntityId(other.getEntityId()); - } - if (other.getConfigId() != 0) { - setConfigId(other.getConfigId()); - } - if (other.getCampId() != 0) { - setCampId(other.getCampId()); - } - if (other.getCampType() != 0) { - setCampType(other.getCampType()); - } - if (other.hasInitPos()) { - mergeInitPos(other.getInitPos()); - } - if (other.hasInitEulerAngles()) { - mergeInitEulerAngles(other.getInitEulerAngles()); - } - if (other.getGuid() != 0L) { - setGuid(other.getGuid()); - } - if (other.getOwnerEntityId() != 0) { - setOwnerEntityId(other.getOwnerEntityId()); - } - if (other.getTargetEntityId() != 0) { - setTargetEntityId(other.getTargetEntityId()); - } - if (other.getIsAsyncLoad() != false) { - setIsAsyncLoad(other.getIsAsyncLoad()); - } - if (other.getTargetLockPointIndex() != 0) { - setTargetLockPointIndex(other.getTargetLockPointIndex()); - } - if (other.getRoomId() != 0) { - setRoomId(other.getRoomId()); - } - if (other.getPropOwnerEntityId() != 0) { - setPropOwnerEntityId(other.getPropOwnerEntityId()); - } - if (other.getSightGroupWithOwner() != false) { - setSightGroupWithOwner(other.getSightGroupWithOwner()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int forwardType_ = 0; - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The enum numeric value on the wire for forwardType. - */ - @java.lang.Override public int getForwardTypeValue() { - return forwardType_; - } - /** - * <code>.ForwardType forwardType = 1;</code> - * @param value The enum numeric value on the wire for forwardType to set. - * @return This builder for chaining. - */ - public Builder setForwardTypeValue(int value) { - - forwardType_ = value; - onChanged(); - return this; - } - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The forwardType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType result = emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.valueOf(forwardType_); - return result == null ? emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.UNRECOGNIZED : result; - } - /** - * <code>.ForwardType forwardType = 1;</code> - * @param value The forwardType to set. - * @return This builder for chaining. - */ - public Builder setForwardType(emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType value) { - if (value == null) { - throw new NullPointerException(); - } - - forwardType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.ForwardType forwardType = 1;</code> - * @return This builder for chaining. - */ - public Builder clearForwardType() { - - forwardType_ = 0; - onChanged(); - return this; - } - - private int entityId_ ; - /** - * <code>uint32 entityId = 2;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - /** - * <code>uint32 entityId = 2;</code> - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId(int value) { - - entityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 entityId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearEntityId() { - - entityId_ = 0; - onChanged(); - return this; - } - - private int configId_ ; - /** - * <code>uint32 configId = 3;</code> - * @return The configId. - */ - @java.lang.Override - public int getConfigId() { - return configId_; - } - /** - * <code>uint32 configId = 3;</code> - * @param value The configId to set. - * @return This builder for chaining. - */ - public Builder setConfigId(int value) { - - configId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 configId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearConfigId() { - - configId_ = 0; - onChanged(); - return this; - } - - private int campId_ ; - /** - * <code>uint32 campId = 4;</code> - * @return The campId. - */ - @java.lang.Override - public int getCampId() { - return campId_; - } - /** - * <code>uint32 campId = 4;</code> - * @param value The campId to set. - * @return This builder for chaining. - */ - public Builder setCampId(int value) { - - campId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 campId = 4;</code> - * @return This builder for chaining. - */ - public Builder clearCampId() { - - campId_ = 0; - onChanged(); - return this; - } - - private int campType_ ; - /** - * <code>uint32 campType = 5;</code> - * @return The campType. - */ - @java.lang.Override - public int getCampType() { - return campType_; - } - /** - * <code>uint32 campType = 5;</code> - * @param value The campType to set. - * @return This builder for chaining. - */ - public Builder setCampType(int value) { - - campType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 campType = 5;</code> - * @return This builder for chaining. - */ - public Builder clearCampType() { - - campType_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.VectorOuterClass.Vector initPos_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> initPosBuilder_; - /** - * <code>.Vector initPos = 6;</code> - * @return Whether the initPos field is set. - */ - public boolean hasInitPos() { - return initPosBuilder_ != null || initPos_ != null; - } - /** - * <code>.Vector initPos = 6;</code> - * @return The initPos. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getInitPos() { - if (initPosBuilder_ == null) { - return initPos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : initPos_; - } else { - return initPosBuilder_.getMessage(); - } - } - /** - * <code>.Vector initPos = 6;</code> - */ - public Builder setInitPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (initPosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - initPos_ = value; - onChanged(); - } else { - initPosBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Vector initPos = 6;</code> - */ - public Builder setInitPos( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (initPosBuilder_ == null) { - initPos_ = builderForValue.build(); - onChanged(); - } else { - initPosBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Vector initPos = 6;</code> - */ - public Builder mergeInitPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (initPosBuilder_ == null) { - if (initPos_ != null) { - initPos_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(initPos_).mergeFrom(value).buildPartial(); - } else { - initPos_ = value; - } - onChanged(); - } else { - initPosBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Vector initPos = 6;</code> - */ - public Builder clearInitPos() { - if (initPosBuilder_ == null) { - initPos_ = null; - onChanged(); - } else { - initPos_ = null; - initPosBuilder_ = null; - } - - return this; - } - /** - * <code>.Vector initPos = 6;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getInitPosBuilder() { - - onChanged(); - return getInitPosFieldBuilder().getBuilder(); - } - /** - * <code>.Vector initPos = 6;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getInitPosOrBuilder() { - if (initPosBuilder_ != null) { - return initPosBuilder_.getMessageOrBuilder(); - } else { - return initPos_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : initPos_; - } - } - /** - * <code>.Vector initPos = 6;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getInitPosFieldBuilder() { - if (initPosBuilder_ == null) { - initPosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getInitPos(), - getParentForChildren(), - isClean()); - initPos_ = null; - } - return initPosBuilder_; - } - - private emu.grasscutter.net.proto.VectorOuterClass.Vector initEulerAngles_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> initEulerAnglesBuilder_; - /** - * <code>.Vector initEulerAngles = 7;</code> - * @return Whether the initEulerAngles field is set. - */ - public boolean hasInitEulerAngles() { - return initEulerAnglesBuilder_ != null || initEulerAngles_ != null; - } - /** - * <code>.Vector initEulerAngles = 7;</code> - * @return The initEulerAngles. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getInitEulerAngles() { - if (initEulerAnglesBuilder_ == null) { - return initEulerAngles_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : initEulerAngles_; - } else { - return initEulerAnglesBuilder_.getMessage(); - } - } - /** - * <code>.Vector initEulerAngles = 7;</code> - */ - public Builder setInitEulerAngles(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (initEulerAnglesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - initEulerAngles_ = value; - onChanged(); - } else { - initEulerAnglesBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Vector initEulerAngles = 7;</code> - */ - public Builder setInitEulerAngles( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (initEulerAnglesBuilder_ == null) { - initEulerAngles_ = builderForValue.build(); - onChanged(); - } else { - initEulerAnglesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Vector initEulerAngles = 7;</code> - */ - public Builder mergeInitEulerAngles(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (initEulerAnglesBuilder_ == null) { - if (initEulerAngles_ != null) { - initEulerAngles_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(initEulerAngles_).mergeFrom(value).buildPartial(); - } else { - initEulerAngles_ = value; - } - onChanged(); - } else { - initEulerAnglesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Vector initEulerAngles = 7;</code> - */ - public Builder clearInitEulerAngles() { - if (initEulerAnglesBuilder_ == null) { - initEulerAngles_ = null; - onChanged(); - } else { - initEulerAngles_ = null; - initEulerAnglesBuilder_ = null; - } - - return this; - } - /** - * <code>.Vector initEulerAngles = 7;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getInitEulerAnglesBuilder() { - - onChanged(); - return getInitEulerAnglesFieldBuilder().getBuilder(); - } - /** - * <code>.Vector initEulerAngles = 7;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getInitEulerAnglesOrBuilder() { - if (initEulerAnglesBuilder_ != null) { - return initEulerAnglesBuilder_.getMessageOrBuilder(); - } else { - return initEulerAngles_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : initEulerAngles_; - } - } - /** - * <code>.Vector initEulerAngles = 7;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getInitEulerAnglesFieldBuilder() { - if (initEulerAnglesBuilder_ == null) { - initEulerAnglesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getInitEulerAngles(), - getParentForChildren(), - isClean()); - initEulerAngles_ = null; - } - return initEulerAnglesBuilder_; - } - - private long guid_ ; - /** - * <code>uint64 guid = 8;</code> - * @return The guid. - */ - @java.lang.Override - public long getGuid() { - return guid_; - } - /** - * <code>uint64 guid = 8;</code> - * @param value The guid to set. - * @return This builder for chaining. - */ - public Builder setGuid(long value) { - - guid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 guid = 8;</code> - * @return This builder for chaining. - */ - public Builder clearGuid() { - - guid_ = 0L; - onChanged(); - return this; - } - - private int ownerEntityId_ ; - /** - * <code>uint32 ownerEntityId = 9;</code> - * @return The ownerEntityId. - */ - @java.lang.Override - public int getOwnerEntityId() { - return ownerEntityId_; - } - /** - * <code>uint32 ownerEntityId = 9;</code> - * @param value The ownerEntityId to set. - * @return This builder for chaining. - */ - public Builder setOwnerEntityId(int value) { - - ownerEntityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 ownerEntityId = 9;</code> - * @return This builder for chaining. - */ - public Builder clearOwnerEntityId() { - - ownerEntityId_ = 0; - onChanged(); - return this; - } - - private int targetEntityId_ ; - /** - * <code>uint32 targetEntityId = 10;</code> - * @return The targetEntityId. - */ - @java.lang.Override - public int getTargetEntityId() { - return targetEntityId_; - } - /** - * <code>uint32 targetEntityId = 10;</code> - * @param value The targetEntityId to set. - * @return This builder for chaining. - */ - public Builder setTargetEntityId(int value) { - - targetEntityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 targetEntityId = 10;</code> - * @return This builder for chaining. - */ - public Builder clearTargetEntityId() { - - targetEntityId_ = 0; - onChanged(); - return this; - } - - private boolean isAsyncLoad_ ; - /** - * <code>bool isAsyncLoad = 11;</code> - * @return The isAsyncLoad. - */ - @java.lang.Override - public boolean getIsAsyncLoad() { - return isAsyncLoad_; - } - /** - * <code>bool isAsyncLoad = 11;</code> - * @param value The isAsyncLoad to set. - * @return This builder for chaining. - */ - public Builder setIsAsyncLoad(boolean value) { - - isAsyncLoad_ = value; - onChanged(); - return this; - } - /** - * <code>bool isAsyncLoad = 11;</code> - * @return This builder for chaining. - */ - public Builder clearIsAsyncLoad() { - - isAsyncLoad_ = false; - onChanged(); - return this; - } - - private int targetLockPointIndex_ ; - /** - * <code>uint32 targetLockPointIndex = 12;</code> - * @return The targetLockPointIndex. - */ - @java.lang.Override - public int getTargetLockPointIndex() { - return targetLockPointIndex_; - } - /** - * <code>uint32 targetLockPointIndex = 12;</code> - * @param value The targetLockPointIndex to set. - * @return This builder for chaining. - */ - public Builder setTargetLockPointIndex(int value) { - - targetLockPointIndex_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 targetLockPointIndex = 12;</code> - * @return This builder for chaining. - */ - public Builder clearTargetLockPointIndex() { - - targetLockPointIndex_ = 0; - onChanged(); - return this; - } - - private int roomId_ ; - /** - * <code>uint32 roomId = 13;</code> - * @return The roomId. - */ - @java.lang.Override - public int getRoomId() { - return roomId_; - } - /** - * <code>uint32 roomId = 13;</code> - * @param value The roomId to set. - * @return This builder for chaining. - */ - public Builder setRoomId(int value) { - - roomId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 roomId = 13;</code> - * @return This builder for chaining. - */ - public Builder clearRoomId() { - - roomId_ = 0; - onChanged(); - return this; - } - - private int propOwnerEntityId_ ; - /** - * <code>uint32 propOwnerEntityId = 14;</code> - * @return The propOwnerEntityId. - */ - @java.lang.Override - public int getPropOwnerEntityId() { - return propOwnerEntityId_; - } - /** - * <code>uint32 propOwnerEntityId = 14;</code> - * @param value The propOwnerEntityId to set. - * @return This builder for chaining. - */ - public Builder setPropOwnerEntityId(int value) { - - propOwnerEntityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 propOwnerEntityId = 14;</code> - * @return This builder for chaining. - */ - public Builder clearPropOwnerEntityId() { - - propOwnerEntityId_ = 0; - onChanged(); - return this; - } - - private boolean sightGroupWithOwner_ ; - /** - * <code>bool sightGroupWithOwner = 15;</code> - * @return The sightGroupWithOwner. - */ - @java.lang.Override - public boolean getSightGroupWithOwner() { - return sightGroupWithOwner_; - } - /** - * <code>bool sightGroupWithOwner = 15;</code> - * @param value The sightGroupWithOwner to set. - * @return This builder for chaining. - */ - public Builder setSightGroupWithOwner(boolean value) { - - sightGroupWithOwner_ = value; - onChanged(); - return this; - } - /** - * <code>bool sightGroupWithOwner = 15;</code> - * @return This builder for chaining. - */ - public Builder clearSightGroupWithOwner() { - - sightGroupWithOwner_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EvtCreateGadgetNotify) - } - - // @@protoc_insertion_point(class_scope:EvtCreateGadgetNotify) - private static final emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify(); - } - - public static emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<EvtCreateGadgetNotify> - PARSER = new com.google.protobuf.AbstractParser<EvtCreateGadgetNotify>() { - @java.lang.Override - public EvtCreateGadgetNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvtCreateGadgetNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<EvtCreateGadgetNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<EvtCreateGadgetNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvtCreateGadgetNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvtCreateGadgetNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033EvtCreateGadgetNotify.proto\032\021ForwardTy" + - "pe.proto\032\014Vector.proto\"\364\002\n\025EvtCreateGadg" + - "etNotify\022!\n\013forwardType\030\001 \001(\0162\014.ForwardT" + - "ype\022\020\n\010entityId\030\002 \001(\r\022\020\n\010configId\030\003 \001(\r\022" + - "\016\n\006campId\030\004 \001(\r\022\020\n\010campType\030\005 \001(\r\022\030\n\007ini" + - "tPos\030\006 \001(\0132\007.Vector\022 \n\017initEulerAngles\030\007" + - " \001(\0132\007.Vector\022\014\n\004guid\030\010 \001(\004\022\025\n\rownerEnti" + - "tyId\030\t \001(\r\022\026\n\016targetEntityId\030\n \001(\r\022\023\n\013is" + - "AsyncLoad\030\013 \001(\010\022\034\n\024targetLockPointIndex\030" + - "\014 \001(\r\022\016\n\006roomId\030\r \001(\r\022\031\n\021propOwnerEntity" + - "Id\030\016 \001(\r\022\033\n\023sightGroupWithOwner\030\017 \001(\010B\033\n" + - "\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ForwardTypeOuterClass.getDescriptor(), - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(), - }); - internal_static_EvtCreateGadgetNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_EvtCreateGadgetNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvtCreateGadgetNotify_descriptor, - new java.lang.String[] { "ForwardType", "EntityId", "ConfigId", "CampId", "CampType", "InitPos", "InitEulerAngles", "Guid", "OwnerEntityId", "TargetEntityId", "IsAsyncLoad", "TargetLockPointIndex", "RoomId", "PropOwnerEntityId", "SightGroupWithOwner", }); - emu.grasscutter.net.proto.ForwardTypeOuterClass.getDescriptor(); - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/EvtDestroyGadgetNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EvtDestroyGadgetNotifyOuterClass.java deleted file mode 100644 index 799e5880d..000000000 --- a/src/main/java/emu/grasscutter/net/proto/EvtDestroyGadgetNotifyOuterClass.java +++ /dev/null @@ -1,647 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: EvtDestroyGadgetNotify.proto - -package emu.grasscutter.net.proto; - -public final class EvtDestroyGadgetNotifyOuterClass { - private EvtDestroyGadgetNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EvtDestroyGadgetNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:EvtDestroyGadgetNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The enum numeric value on the wire for forwardType. - */ - int getForwardTypeValue(); - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The forwardType. - */ - emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType(); - - /** - * <code>uint32 entityId = 2;</code> - * @return The entityId. - */ - int getEntityId(); - } - /** - * Protobuf type {@code EvtDestroyGadgetNotify} - */ - public static final class EvtDestroyGadgetNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EvtDestroyGadgetNotify) - EvtDestroyGadgetNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvtDestroyGadgetNotify.newBuilder() to construct. - private EvtDestroyGadgetNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private EvtDestroyGadgetNotify() { - forwardType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvtDestroyGadgetNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvtDestroyGadgetNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - forwardType_ = rawValue; - break; - } - case 16: { - - entityId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.internal_static_EvtDestroyGadgetNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.internal_static_EvtDestroyGadgetNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify.class, emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify.Builder.class); - } - - public static final int FORWARDTYPE_FIELD_NUMBER = 1; - private int forwardType_; - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The enum numeric value on the wire for forwardType. - */ - @java.lang.Override public int getForwardTypeValue() { - return forwardType_; - } - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The forwardType. - */ - @java.lang.Override public emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType result = emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.valueOf(forwardType_); - return result == null ? emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.UNRECOGNIZED : result; - } - - public static final int ENTITYID_FIELD_NUMBER = 2; - private int entityId_; - /** - * <code>uint32 entityId = 2;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (forwardType_ != emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.ForwardLocal.getNumber()) { - output.writeEnum(1, forwardType_); - } - if (entityId_ != 0) { - output.writeUInt32(2, entityId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (forwardType_ != emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.ForwardLocal.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, forwardType_); - } - if (entityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, entityId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify other = (emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify) obj; - - if (forwardType_ != other.forwardType_) return false; - if (getEntityId() - != other.getEntityId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FORWARDTYPE_FIELD_NUMBER; - hash = (53 * hash) + forwardType_; - hash = (37 * hash) + ENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EvtDestroyGadgetNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:EvtDestroyGadgetNotify) - emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.internal_static_EvtDestroyGadgetNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.internal_static_EvtDestroyGadgetNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify.class, emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - forwardType_ = 0; - - entityId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.internal_static_EvtDestroyGadgetNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify build() { - emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify buildPartial() { - emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify result = new emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify(this); - result.forwardType_ = forwardType_; - result.entityId_ = entityId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify) { - return mergeFrom((emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify other) { - if (other == emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify.getDefaultInstance()) return this; - if (other.forwardType_ != 0) { - setForwardTypeValue(other.getForwardTypeValue()); - } - if (other.getEntityId() != 0) { - setEntityId(other.getEntityId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int forwardType_ = 0; - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The enum numeric value on the wire for forwardType. - */ - @java.lang.Override public int getForwardTypeValue() { - return forwardType_; - } - /** - * <code>.ForwardType forwardType = 1;</code> - * @param value The enum numeric value on the wire for forwardType to set. - * @return This builder for chaining. - */ - public Builder setForwardTypeValue(int value) { - - forwardType_ = value; - onChanged(); - return this; - } - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The forwardType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType result = emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.valueOf(forwardType_); - return result == null ? emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.UNRECOGNIZED : result; - } - /** - * <code>.ForwardType forwardType = 1;</code> - * @param value The forwardType to set. - * @return This builder for chaining. - */ - public Builder setForwardType(emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType value) { - if (value == null) { - throw new NullPointerException(); - } - - forwardType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.ForwardType forwardType = 1;</code> - * @return This builder for chaining. - */ - public Builder clearForwardType() { - - forwardType_ = 0; - onChanged(); - return this; - } - - private int entityId_ ; - /** - * <code>uint32 entityId = 2;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - /** - * <code>uint32 entityId = 2;</code> - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId(int value) { - - entityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 entityId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearEntityId() { - - entityId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EvtDestroyGadgetNotify) - } - - // @@protoc_insertion_point(class_scope:EvtDestroyGadgetNotify) - private static final emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify(); - } - - public static emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<EvtDestroyGadgetNotify> - PARSER = new com.google.protobuf.AbstractParser<EvtDestroyGadgetNotify>() { - @java.lang.Override - public EvtDestroyGadgetNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvtDestroyGadgetNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<EvtDestroyGadgetNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<EvtDestroyGadgetNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvtDestroyGadgetNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvtDestroyGadgetNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034EvtDestroyGadgetNotify.proto\032\021ForwardT" + - "ype.proto\"M\n\026EvtDestroyGadgetNotify\022!\n\013f" + - "orwardType\030\001 \001(\0162\014.ForwardType\022\020\n\010entity" + - "Id\030\002 \001(\rB\033\n\031emu.grasscutter.net.protob\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ForwardTypeOuterClass.getDescriptor(), - }); - internal_static_EvtDestroyGadgetNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_EvtDestroyGadgetNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvtDestroyGadgetNotify_descriptor, - new java.lang.String[] { "ForwardType", "EntityId", }); - emu.grasscutter.net.proto.ForwardTypeOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/EvtDoSkillSuccNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EvtDoSkillSuccNotifyOuterClass.java deleted file mode 100644 index 61edb141d..000000000 --- a/src/main/java/emu/grasscutter/net/proto/EvtDoSkillSuccNotifyOuterClass.java +++ /dev/null @@ -1,923 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: EvtDoSkillSuccNotify.proto - -package emu.grasscutter.net.proto; - -public final class EvtDoSkillSuccNotifyOuterClass { - private EvtDoSkillSuccNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EvtDoSkillSuccNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:EvtDoSkillSuccNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The enum numeric value on the wire for forwardType. - */ - int getForwardTypeValue(); - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The forwardType. - */ - emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType(); - - /** - * <code>uint32 casterId = 2;</code> - * @return The casterId. - */ - int getCasterId(); - - /** - * <code>uint32 skillId = 3;</code> - * @return The skillId. - */ - int getSkillId(); - - /** - * <code>.Vector forward = 4;</code> - * @return Whether the forward field is set. - */ - boolean hasForward(); - /** - * <code>.Vector forward = 4;</code> - * @return The forward. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getForward(); - /** - * <code>.Vector forward = 4;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getForwardOrBuilder(); - } - /** - * Protobuf type {@code EvtDoSkillSuccNotify} - */ - public static final class EvtDoSkillSuccNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EvtDoSkillSuccNotify) - EvtDoSkillSuccNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvtDoSkillSuccNotify.newBuilder() to construct. - private EvtDoSkillSuccNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private EvtDoSkillSuccNotify() { - forwardType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvtDoSkillSuccNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvtDoSkillSuccNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - forwardType_ = rawValue; - break; - } - case 16: { - - casterId_ = input.readUInt32(); - break; - } - case 24: { - - skillId_ = input.readUInt32(); - break; - } - case 34: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (forward_ != null) { - subBuilder = forward_.toBuilder(); - } - forward_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(forward_); - forward_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.internal_static_EvtDoSkillSuccNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.internal_static_EvtDoSkillSuccNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify.class, emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify.Builder.class); - } - - public static final int FORWARDTYPE_FIELD_NUMBER = 1; - private int forwardType_; - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The enum numeric value on the wire for forwardType. - */ - @java.lang.Override public int getForwardTypeValue() { - return forwardType_; - } - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The forwardType. - */ - @java.lang.Override public emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType result = emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.valueOf(forwardType_); - return result == null ? emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.UNRECOGNIZED : result; - } - - public static final int CASTERID_FIELD_NUMBER = 2; - private int casterId_; - /** - * <code>uint32 casterId = 2;</code> - * @return The casterId. - */ - @java.lang.Override - public int getCasterId() { - return casterId_; - } - - public static final int SKILLID_FIELD_NUMBER = 3; - private int skillId_; - /** - * <code>uint32 skillId = 3;</code> - * @return The skillId. - */ - @java.lang.Override - public int getSkillId() { - return skillId_; - } - - public static final int FORWARD_FIELD_NUMBER = 4; - private emu.grasscutter.net.proto.VectorOuterClass.Vector forward_; - /** - * <code>.Vector forward = 4;</code> - * @return Whether the forward field is set. - */ - @java.lang.Override - public boolean hasForward() { - return forward_ != null; - } - /** - * <code>.Vector forward = 4;</code> - * @return The forward. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getForward() { - return forward_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : forward_; - } - /** - * <code>.Vector forward = 4;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getForwardOrBuilder() { - return getForward(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (forwardType_ != emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.ForwardLocal.getNumber()) { - output.writeEnum(1, forwardType_); - } - if (casterId_ != 0) { - output.writeUInt32(2, casterId_); - } - if (skillId_ != 0) { - output.writeUInt32(3, skillId_); - } - if (forward_ != null) { - output.writeMessage(4, getForward()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (forwardType_ != emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.ForwardLocal.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, forwardType_); - } - if (casterId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, casterId_); - } - if (skillId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, skillId_); - } - if (forward_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getForward()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify other = (emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify) obj; - - if (forwardType_ != other.forwardType_) return false; - if (getCasterId() - != other.getCasterId()) return false; - if (getSkillId() - != other.getSkillId()) return false; - if (hasForward() != other.hasForward()) return false; - if (hasForward()) { - if (!getForward() - .equals(other.getForward())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FORWARDTYPE_FIELD_NUMBER; - hash = (53 * hash) + forwardType_; - hash = (37 * hash) + CASTERID_FIELD_NUMBER; - hash = (53 * hash) + getCasterId(); - hash = (37 * hash) + SKILLID_FIELD_NUMBER; - hash = (53 * hash) + getSkillId(); - if (hasForward()) { - hash = (37 * hash) + FORWARD_FIELD_NUMBER; - hash = (53 * hash) + getForward().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EvtDoSkillSuccNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:EvtDoSkillSuccNotify) - emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.internal_static_EvtDoSkillSuccNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.internal_static_EvtDoSkillSuccNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify.class, emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - forwardType_ = 0; - - casterId_ = 0; - - skillId_ = 0; - - if (forwardBuilder_ == null) { - forward_ = null; - } else { - forward_ = null; - forwardBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.internal_static_EvtDoSkillSuccNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify build() { - emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify buildPartial() { - emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify result = new emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify(this); - result.forwardType_ = forwardType_; - result.casterId_ = casterId_; - result.skillId_ = skillId_; - if (forwardBuilder_ == null) { - result.forward_ = forward_; - } else { - result.forward_ = forwardBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify) { - return mergeFrom((emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify other) { - if (other == emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify.getDefaultInstance()) return this; - if (other.forwardType_ != 0) { - setForwardTypeValue(other.getForwardTypeValue()); - } - if (other.getCasterId() != 0) { - setCasterId(other.getCasterId()); - } - if (other.getSkillId() != 0) { - setSkillId(other.getSkillId()); - } - if (other.hasForward()) { - mergeForward(other.getForward()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int forwardType_ = 0; - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The enum numeric value on the wire for forwardType. - */ - @java.lang.Override public int getForwardTypeValue() { - return forwardType_; - } - /** - * <code>.ForwardType forwardType = 1;</code> - * @param value The enum numeric value on the wire for forwardType to set. - * @return This builder for chaining. - */ - public Builder setForwardTypeValue(int value) { - - forwardType_ = value; - onChanged(); - return this; - } - /** - * <code>.ForwardType forwardType = 1;</code> - * @return The forwardType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType result = emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.valueOf(forwardType_); - return result == null ? emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.UNRECOGNIZED : result; - } - /** - * <code>.ForwardType forwardType = 1;</code> - * @param value The forwardType to set. - * @return This builder for chaining. - */ - public Builder setForwardType(emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType value) { - if (value == null) { - throw new NullPointerException(); - } - - forwardType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.ForwardType forwardType = 1;</code> - * @return This builder for chaining. - */ - public Builder clearForwardType() { - - forwardType_ = 0; - onChanged(); - return this; - } - - private int casterId_ ; - /** - * <code>uint32 casterId = 2;</code> - * @return The casterId. - */ - @java.lang.Override - public int getCasterId() { - return casterId_; - } - /** - * <code>uint32 casterId = 2;</code> - * @param value The casterId to set. - * @return This builder for chaining. - */ - public Builder setCasterId(int value) { - - casterId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 casterId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearCasterId() { - - casterId_ = 0; - onChanged(); - return this; - } - - private int skillId_ ; - /** - * <code>uint32 skillId = 3;</code> - * @return The skillId. - */ - @java.lang.Override - public int getSkillId() { - return skillId_; - } - /** - * <code>uint32 skillId = 3;</code> - * @param value The skillId to set. - * @return This builder for chaining. - */ - public Builder setSkillId(int value) { - - skillId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 skillId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearSkillId() { - - skillId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.VectorOuterClass.Vector forward_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> forwardBuilder_; - /** - * <code>.Vector forward = 4;</code> - * @return Whether the forward field is set. - */ - public boolean hasForward() { - return forwardBuilder_ != null || forward_ != null; - } - /** - * <code>.Vector forward = 4;</code> - * @return The forward. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getForward() { - if (forwardBuilder_ == null) { - return forward_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : forward_; - } else { - return forwardBuilder_.getMessage(); - } - } - /** - * <code>.Vector forward = 4;</code> - */ - public Builder setForward(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (forwardBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - forward_ = value; - onChanged(); - } else { - forwardBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Vector forward = 4;</code> - */ - public Builder setForward( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (forwardBuilder_ == null) { - forward_ = builderForValue.build(); - onChanged(); - } else { - forwardBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Vector forward = 4;</code> - */ - public Builder mergeForward(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (forwardBuilder_ == null) { - if (forward_ != null) { - forward_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(forward_).mergeFrom(value).buildPartial(); - } else { - forward_ = value; - } - onChanged(); - } else { - forwardBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Vector forward = 4;</code> - */ - public Builder clearForward() { - if (forwardBuilder_ == null) { - forward_ = null; - onChanged(); - } else { - forward_ = null; - forwardBuilder_ = null; - } - - return this; - } - /** - * <code>.Vector forward = 4;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getForwardBuilder() { - - onChanged(); - return getForwardFieldBuilder().getBuilder(); - } - /** - * <code>.Vector forward = 4;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getForwardOrBuilder() { - if (forwardBuilder_ != null) { - return forwardBuilder_.getMessageOrBuilder(); - } else { - return forward_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : forward_; - } - } - /** - * <code>.Vector forward = 4;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getForwardFieldBuilder() { - if (forwardBuilder_ == null) { - forwardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getForward(), - getParentForChildren(), - isClean()); - forward_ = null; - } - return forwardBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EvtDoSkillSuccNotify) - } - - // @@protoc_insertion_point(class_scope:EvtDoSkillSuccNotify) - private static final emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify(); - } - - public static emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<EvtDoSkillSuccNotify> - PARSER = new com.google.protobuf.AbstractParser<EvtDoSkillSuccNotify>() { - @java.lang.Override - public EvtDoSkillSuccNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvtDoSkillSuccNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<EvtDoSkillSuccNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<EvtDoSkillSuccNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtDoSkillSuccNotifyOuterClass.EvtDoSkillSuccNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvtDoSkillSuccNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvtDoSkillSuccNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032EvtDoSkillSuccNotify.proto\032\021ForwardTyp" + - "e.proto\032\014Vector.proto\"v\n\024EvtDoSkillSuccN" + - "otify\022!\n\013forwardType\030\001 \001(\0162\014.ForwardType" + - "\022\020\n\010casterId\030\002 \001(\r\022\017\n\007skillId\030\003 \001(\r\022\030\n\007f" + - "orward\030\004 \001(\0132\007.VectorB\033\n\031emu.grasscutter" + - ".net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ForwardTypeOuterClass.getDescriptor(), - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(), - }); - internal_static_EvtDoSkillSuccNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_EvtDoSkillSuccNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvtDoSkillSuccNotify_descriptor, - new java.lang.String[] { "ForwardType", "CasterId", "SkillId", "Forward", }); - emu.grasscutter.net.proto.ForwardTypeOuterClass.getDescriptor(); - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/EvtHittingOtherInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EvtHittingOtherInfoOuterClass.java deleted file mode 100644 index c4ee6b46a..000000000 --- a/src/main/java/emu/grasscutter/net/proto/EvtHittingOtherInfoOuterClass.java +++ /dev/null @@ -1,742 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: EvtHittingOtherInfo.proto - -package emu.grasscutter.net.proto; - -public final class EvtHittingOtherInfoOuterClass { - private EvtHittingOtherInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EvtHittingOtherInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:EvtHittingOtherInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 peerId = 1;</code> - * @return The peerId. - */ - int getPeerId(); - - /** - * <code>.AttackResult attackResult = 2;</code> - * @return Whether the attackResult field is set. - */ - boolean hasAttackResult(); - /** - * <code>.AttackResult attackResult = 2;</code> - * @return The attackResult. - */ - emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult getAttackResult(); - /** - * <code>.AttackResult attackResult = 2;</code> - */ - emu.grasscutter.net.proto.AttackResultOuterClass.AttackResultOrBuilder getAttackResultOrBuilder(); - } - /** - * Protobuf type {@code EvtHittingOtherInfo} - */ - public static final class EvtHittingOtherInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EvtHittingOtherInfo) - EvtHittingOtherInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvtHittingOtherInfo.newBuilder() to construct. - private EvtHittingOtherInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private EvtHittingOtherInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvtHittingOtherInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvtHittingOtherInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - peerId_ = input.readUInt32(); - break; - } - case 18: { - emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.Builder subBuilder = null; - if (attackResult_ != null) { - subBuilder = attackResult_.toBuilder(); - } - attackResult_ = input.readMessage(emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attackResult_); - attackResult_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.internal_static_EvtHittingOtherInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.internal_static_EvtHittingOtherInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo.class, emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo.Builder.class); - } - - public static final int PEERID_FIELD_NUMBER = 1; - private int peerId_; - /** - * <code>uint32 peerId = 1;</code> - * @return The peerId. - */ - @java.lang.Override - public int getPeerId() { - return peerId_; - } - - public static final int ATTACKRESULT_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult attackResult_; - /** - * <code>.AttackResult attackResult = 2;</code> - * @return Whether the attackResult field is set. - */ - @java.lang.Override - public boolean hasAttackResult() { - return attackResult_ != null; - } - /** - * <code>.AttackResult attackResult = 2;</code> - * @return The attackResult. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult getAttackResult() { - return attackResult_ == null ? emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.getDefaultInstance() : attackResult_; - } - /** - * <code>.AttackResult attackResult = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AttackResultOuterClass.AttackResultOrBuilder getAttackResultOrBuilder() { - return getAttackResult(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (peerId_ != 0) { - output.writeUInt32(1, peerId_); - } - if (attackResult_ != null) { - output.writeMessage(2, getAttackResult()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (peerId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, peerId_); - } - if (attackResult_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAttackResult()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo other = (emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo) obj; - - if (getPeerId() - != other.getPeerId()) return false; - if (hasAttackResult() != other.hasAttackResult()) return false; - if (hasAttackResult()) { - if (!getAttackResult() - .equals(other.getAttackResult())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PEERID_FIELD_NUMBER; - hash = (53 * hash) + getPeerId(); - if (hasAttackResult()) { - hash = (37 * hash) + ATTACKRESULT_FIELD_NUMBER; - hash = (53 * hash) + getAttackResult().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EvtHittingOtherInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:EvtHittingOtherInfo) - emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.internal_static_EvtHittingOtherInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.internal_static_EvtHittingOtherInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo.class, emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - peerId_ = 0; - - if (attackResultBuilder_ == null) { - attackResult_ = null; - } else { - attackResult_ = null; - attackResultBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.internal_static_EvtHittingOtherInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo build() { - emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo buildPartial() { - emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo result = new emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo(this); - result.peerId_ = peerId_; - if (attackResultBuilder_ == null) { - result.attackResult_ = attackResult_; - } else { - result.attackResult_ = attackResultBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo) { - return mergeFrom((emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo other) { - if (other == emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo.getDefaultInstance()) return this; - if (other.getPeerId() != 0) { - setPeerId(other.getPeerId()); - } - if (other.hasAttackResult()) { - mergeAttackResult(other.getAttackResult()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int peerId_ ; - /** - * <code>uint32 peerId = 1;</code> - * @return The peerId. - */ - @java.lang.Override - public int getPeerId() { - return peerId_; - } - /** - * <code>uint32 peerId = 1;</code> - * @param value The peerId to set. - * @return This builder for chaining. - */ - public Builder setPeerId(int value) { - - peerId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 peerId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearPeerId() { - - peerId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult attackResult_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult, emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.Builder, emu.grasscutter.net.proto.AttackResultOuterClass.AttackResultOrBuilder> attackResultBuilder_; - /** - * <code>.AttackResult attackResult = 2;</code> - * @return Whether the attackResult field is set. - */ - public boolean hasAttackResult() { - return attackResultBuilder_ != null || attackResult_ != null; - } - /** - * <code>.AttackResult attackResult = 2;</code> - * @return The attackResult. - */ - public emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult getAttackResult() { - if (attackResultBuilder_ == null) { - return attackResult_ == null ? emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.getDefaultInstance() : attackResult_; - } else { - return attackResultBuilder_.getMessage(); - } - } - /** - * <code>.AttackResult attackResult = 2;</code> - */ - public Builder setAttackResult(emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult value) { - if (attackResultBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - attackResult_ = value; - onChanged(); - } else { - attackResultBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.AttackResult attackResult = 2;</code> - */ - public Builder setAttackResult( - emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.Builder builderForValue) { - if (attackResultBuilder_ == null) { - attackResult_ = builderForValue.build(); - onChanged(); - } else { - attackResultBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.AttackResult attackResult = 2;</code> - */ - public Builder mergeAttackResult(emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult value) { - if (attackResultBuilder_ == null) { - if (attackResult_ != null) { - attackResult_ = - emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.newBuilder(attackResult_).mergeFrom(value).buildPartial(); - } else { - attackResult_ = value; - } - onChanged(); - } else { - attackResultBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.AttackResult attackResult = 2;</code> - */ - public Builder clearAttackResult() { - if (attackResultBuilder_ == null) { - attackResult_ = null; - onChanged(); - } else { - attackResult_ = null; - attackResultBuilder_ = null; - } - - return this; - } - /** - * <code>.AttackResult attackResult = 2;</code> - */ - public emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.Builder getAttackResultBuilder() { - - onChanged(); - return getAttackResultFieldBuilder().getBuilder(); - } - /** - * <code>.AttackResult attackResult = 2;</code> - */ - public emu.grasscutter.net.proto.AttackResultOuterClass.AttackResultOrBuilder getAttackResultOrBuilder() { - if (attackResultBuilder_ != null) { - return attackResultBuilder_.getMessageOrBuilder(); - } else { - return attackResult_ == null ? - emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.getDefaultInstance() : attackResult_; - } - } - /** - * <code>.AttackResult attackResult = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult, emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.Builder, emu.grasscutter.net.proto.AttackResultOuterClass.AttackResultOrBuilder> - getAttackResultFieldBuilder() { - if (attackResultBuilder_ == null) { - attackResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult, emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.Builder, emu.grasscutter.net.proto.AttackResultOuterClass.AttackResultOrBuilder>( - getAttackResult(), - getParentForChildren(), - isClean()); - attackResult_ = null; - } - return attackResultBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:EvtHittingOtherInfo) - } - - // @@protoc_insertion_point(class_scope:EvtHittingOtherInfo) - private static final emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo(); - } - - public static emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<EvtHittingOtherInfo> - PARSER = new com.google.protobuf.AbstractParser<EvtHittingOtherInfo>() { - @java.lang.Override - public EvtHittingOtherInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvtHittingOtherInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<EvtHittingOtherInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<EvtHittingOtherInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.EvtHittingOtherInfoOuterClass.EvtHittingOtherInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_EvtHittingOtherInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_EvtHittingOtherInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031EvtHittingOtherInfo.proto\032\022AttackResul" + - "t.proto\"J\n\023EvtHittingOtherInfo\022\016\n\006peerId" + - "\030\001 \001(\r\022#\n\014attackResult\030\002 \001(\0132\r.AttackRes" + - "ultB\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AttackResultOuterClass.getDescriptor(), - }); - internal_static_EvtHittingOtherInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_EvtHittingOtherInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_EvtHittingOtherInfo_descriptor, - new java.lang.String[] { "PeerId", "AttackResult", }); - emu.grasscutter.net.proto.AttackResultOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/FeatureBlockInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/FeatureBlockInfoOuterClass.java deleted file mode 100644 index 86cced2a0..000000000 --- a/src/main/java/emu/grasscutter/net/proto/FeatureBlockInfoOuterClass.java +++ /dev/null @@ -1,606 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: FeatureBlockInfo.proto - -package emu.grasscutter.net.proto; - -public final class FeatureBlockInfoOuterClass { - private FeatureBlockInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface FeatureBlockInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:FeatureBlockInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 featureType = 1;</code> - * @return The featureType. - */ - int getFeatureType(); - - /** - * <code>uint32 endTime = 2;</code> - * @return The endTime. - */ - int getEndTime(); - } - /** - * Protobuf type {@code FeatureBlockInfo} - */ - public static final class FeatureBlockInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:FeatureBlockInfo) - FeatureBlockInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use FeatureBlockInfo.newBuilder() to construct. - private FeatureBlockInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private FeatureBlockInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FeatureBlockInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FeatureBlockInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - featureType_ = input.readUInt32(); - break; - } - case 16: { - - endTime_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.internal_static_FeatureBlockInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.internal_static_FeatureBlockInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo.class, emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo.Builder.class); - } - - public static final int FEATURETYPE_FIELD_NUMBER = 1; - private int featureType_; - /** - * <code>uint32 featureType = 1;</code> - * @return The featureType. - */ - @java.lang.Override - public int getFeatureType() { - return featureType_; - } - - public static final int ENDTIME_FIELD_NUMBER = 2; - private int endTime_; - /** - * <code>uint32 endTime = 2;</code> - * @return The endTime. - */ - @java.lang.Override - public int getEndTime() { - return endTime_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (featureType_ != 0) { - output.writeUInt32(1, featureType_); - } - if (endTime_ != 0) { - output.writeUInt32(2, endTime_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (featureType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, featureType_); - } - if (endTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, endTime_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo other = (emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo) obj; - - if (getFeatureType() - != other.getFeatureType()) return false; - if (getEndTime() - != other.getEndTime()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FEATURETYPE_FIELD_NUMBER; - hash = (53 * hash) + getFeatureType(); - hash = (37 * hash) + ENDTIME_FIELD_NUMBER; - hash = (53 * hash) + getEndTime(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code FeatureBlockInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:FeatureBlockInfo) - emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.internal_static_FeatureBlockInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.internal_static_FeatureBlockInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo.class, emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - featureType_ = 0; - - endTime_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.internal_static_FeatureBlockInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo build() { - emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo buildPartial() { - emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo result = new emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo(this); - result.featureType_ = featureType_; - result.endTime_ = endTime_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo) { - return mergeFrom((emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo other) { - if (other == emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo.getDefaultInstance()) return this; - if (other.getFeatureType() != 0) { - setFeatureType(other.getFeatureType()); - } - if (other.getEndTime() != 0) { - setEndTime(other.getEndTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int featureType_ ; - /** - * <code>uint32 featureType = 1;</code> - * @return The featureType. - */ - @java.lang.Override - public int getFeatureType() { - return featureType_; - } - /** - * <code>uint32 featureType = 1;</code> - * @param value The featureType to set. - * @return This builder for chaining. - */ - public Builder setFeatureType(int value) { - - featureType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 featureType = 1;</code> - * @return This builder for chaining. - */ - public Builder clearFeatureType() { - - featureType_ = 0; - onChanged(); - return this; - } - - private int endTime_ ; - /** - * <code>uint32 endTime = 2;</code> - * @return The endTime. - */ - @java.lang.Override - public int getEndTime() { - return endTime_; - } - /** - * <code>uint32 endTime = 2;</code> - * @param value The endTime to set. - * @return This builder for chaining. - */ - public Builder setEndTime(int value) { - - endTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 endTime = 2;</code> - * @return This builder for chaining. - */ - public Builder clearEndTime() { - - endTime_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:FeatureBlockInfo) - } - - // @@protoc_insertion_point(class_scope:FeatureBlockInfo) - private static final emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo(); - } - - public static emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<FeatureBlockInfo> - PARSER = new com.google.protobuf.AbstractParser<FeatureBlockInfo>() { - @java.lang.Override - public FeatureBlockInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureBlockInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<FeatureBlockInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<FeatureBlockInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_FeatureBlockInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_FeatureBlockInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026FeatureBlockInfo.proto\"8\n\020FeatureBlock" + - "Info\022\023\n\013featureType\030\001 \001(\r\022\017\n\007endTime\030\002 \001" + - "(\rB\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_FeatureBlockInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_FeatureBlockInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_FeatureBlockInfo_descriptor, - new java.lang.String[] { "FeatureType", "EndTime", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/FetterDataOuterClass.java b/src/main/java/emu/grasscutter/net/proto/FetterDataOuterClass.java deleted file mode 100644 index be069d55e..000000000 --- a/src/main/java/emu/grasscutter/net/proto/FetterDataOuterClass.java +++ /dev/null @@ -1,804 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: FetterData.proto - -package emu.grasscutter.net.proto; - -public final class FetterDataOuterClass { - private FetterDataOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface FetterDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:FetterData) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 fetterId = 1;</code> - * @return The fetterId. - */ - int getFetterId(); - - /** - * <code>uint32 fetterState = 2;</code> - * @return The fetterState. - */ - int getFetterState(); - - /** - * <code>repeated uint32 condIndexList = 3;</code> - * @return A list containing the condIndexList. - */ - java.util.List<java.lang.Integer> getCondIndexListList(); - /** - * <code>repeated uint32 condIndexList = 3;</code> - * @return The count of condIndexList. - */ - int getCondIndexListCount(); - /** - * <code>repeated uint32 condIndexList = 3;</code> - * @param index The index of the element to return. - * @return The condIndexList at the given index. - */ - int getCondIndexList(int index); - } - /** - * Protobuf type {@code FetterData} - */ - public static final class FetterData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:FetterData) - FetterDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use FetterData.newBuilder() to construct. - private FetterData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private FetterData() { - condIndexList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FetterData(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FetterData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - fetterId_ = input.readUInt32(); - break; - } - case 16: { - - fetterState_ = input.readUInt32(); - break; - } - case 24: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - condIndexList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - condIndexList_.addInt(input.readUInt32()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - condIndexList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - condIndexList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - condIndexList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.FetterDataOuterClass.internal_static_FetterData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.FetterDataOuterClass.internal_static_FetterData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.FetterDataOuterClass.FetterData.class, emu.grasscutter.net.proto.FetterDataOuterClass.FetterData.Builder.class); - } - - public static final int FETTERID_FIELD_NUMBER = 1; - private int fetterId_; - /** - * <code>uint32 fetterId = 1;</code> - * @return The fetterId. - */ - @java.lang.Override - public int getFetterId() { - return fetterId_; - } - - public static final int FETTERSTATE_FIELD_NUMBER = 2; - private int fetterState_; - /** - * <code>uint32 fetterState = 2;</code> - * @return The fetterState. - */ - @java.lang.Override - public int getFetterState() { - return fetterState_; - } - - public static final int CONDINDEXLIST_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.IntList condIndexList_; - /** - * <code>repeated uint32 condIndexList = 3;</code> - * @return A list containing the condIndexList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getCondIndexListList() { - return condIndexList_; - } - /** - * <code>repeated uint32 condIndexList = 3;</code> - * @return The count of condIndexList. - */ - public int getCondIndexListCount() { - return condIndexList_.size(); - } - /** - * <code>repeated uint32 condIndexList = 3;</code> - * @param index The index of the element to return. - * @return The condIndexList at the given index. - */ - public int getCondIndexList(int index) { - return condIndexList_.getInt(index); - } - private int condIndexListMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (fetterId_ != 0) { - output.writeUInt32(1, fetterId_); - } - if (fetterState_ != 0) { - output.writeUInt32(2, fetterState_); - } - if (getCondIndexListList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(condIndexListMemoizedSerializedSize); - } - for (int i = 0; i < condIndexList_.size(); i++) { - output.writeUInt32NoTag(condIndexList_.getInt(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (fetterId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, fetterId_); - } - if (fetterState_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, fetterState_); - } - { - int dataSize = 0; - for (int i = 0; i < condIndexList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(condIndexList_.getInt(i)); - } - size += dataSize; - if (!getCondIndexListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - condIndexListMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.FetterDataOuterClass.FetterData)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.FetterDataOuterClass.FetterData other = (emu.grasscutter.net.proto.FetterDataOuterClass.FetterData) obj; - - if (getFetterId() - != other.getFetterId()) return false; - if (getFetterState() - != other.getFetterState()) return false; - if (!getCondIndexListList() - .equals(other.getCondIndexListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FETTERID_FIELD_NUMBER; - hash = (53 * hash) + getFetterId(); - hash = (37 * hash) + FETTERSTATE_FIELD_NUMBER; - hash = (53 * hash) + getFetterState(); - if (getCondIndexListCount() > 0) { - hash = (37 * hash) + CONDINDEXLIST_FIELD_NUMBER; - hash = (53 * hash) + getCondIndexListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.FetterDataOuterClass.FetterData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.FetterDataOuterClass.FetterData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.FetterDataOuterClass.FetterData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.FetterDataOuterClass.FetterData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.FetterDataOuterClass.FetterData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.FetterDataOuterClass.FetterData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.FetterDataOuterClass.FetterData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.FetterDataOuterClass.FetterData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.FetterDataOuterClass.FetterData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.FetterDataOuterClass.FetterData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.FetterDataOuterClass.FetterData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.FetterDataOuterClass.FetterData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.FetterDataOuterClass.FetterData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code FetterData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:FetterData) - emu.grasscutter.net.proto.FetterDataOuterClass.FetterDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.FetterDataOuterClass.internal_static_FetterData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.FetterDataOuterClass.internal_static_FetterData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.FetterDataOuterClass.FetterData.class, emu.grasscutter.net.proto.FetterDataOuterClass.FetterData.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.FetterDataOuterClass.FetterData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - fetterId_ = 0; - - fetterState_ = 0; - - condIndexList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.FetterDataOuterClass.internal_static_FetterData_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.FetterDataOuterClass.FetterData getDefaultInstanceForType() { - return emu.grasscutter.net.proto.FetterDataOuterClass.FetterData.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.FetterDataOuterClass.FetterData build() { - emu.grasscutter.net.proto.FetterDataOuterClass.FetterData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.FetterDataOuterClass.FetterData buildPartial() { - emu.grasscutter.net.proto.FetterDataOuterClass.FetterData result = new emu.grasscutter.net.proto.FetterDataOuterClass.FetterData(this); - int from_bitField0_ = bitField0_; - result.fetterId_ = fetterId_; - result.fetterState_ = fetterState_; - if (((bitField0_ & 0x00000001) != 0)) { - condIndexList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.condIndexList_ = condIndexList_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.FetterDataOuterClass.FetterData) { - return mergeFrom((emu.grasscutter.net.proto.FetterDataOuterClass.FetterData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.FetterDataOuterClass.FetterData other) { - if (other == emu.grasscutter.net.proto.FetterDataOuterClass.FetterData.getDefaultInstance()) return this; - if (other.getFetterId() != 0) { - setFetterId(other.getFetterId()); - } - if (other.getFetterState() != 0) { - setFetterState(other.getFetterState()); - } - if (!other.condIndexList_.isEmpty()) { - if (condIndexList_.isEmpty()) { - condIndexList_ = other.condIndexList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCondIndexListIsMutable(); - condIndexList_.addAll(other.condIndexList_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.FetterDataOuterClass.FetterData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.FetterDataOuterClass.FetterData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int fetterId_ ; - /** - * <code>uint32 fetterId = 1;</code> - * @return The fetterId. - */ - @java.lang.Override - public int getFetterId() { - return fetterId_; - } - /** - * <code>uint32 fetterId = 1;</code> - * @param value The fetterId to set. - * @return This builder for chaining. - */ - public Builder setFetterId(int value) { - - fetterId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 fetterId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearFetterId() { - - fetterId_ = 0; - onChanged(); - return this; - } - - private int fetterState_ ; - /** - * <code>uint32 fetterState = 2;</code> - * @return The fetterState. - */ - @java.lang.Override - public int getFetterState() { - return fetterState_; - } - /** - * <code>uint32 fetterState = 2;</code> - * @param value The fetterState to set. - * @return This builder for chaining. - */ - public Builder setFetterState(int value) { - - fetterState_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 fetterState = 2;</code> - * @return This builder for chaining. - */ - public Builder clearFetterState() { - - fetterState_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList condIndexList_ = emptyIntList(); - private void ensureCondIndexListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - condIndexList_ = mutableCopy(condIndexList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 condIndexList = 3;</code> - * @return A list containing the condIndexList. - */ - public java.util.List<java.lang.Integer> - getCondIndexListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(condIndexList_) : condIndexList_; - } - /** - * <code>repeated uint32 condIndexList = 3;</code> - * @return The count of condIndexList. - */ - public int getCondIndexListCount() { - return condIndexList_.size(); - } - /** - * <code>repeated uint32 condIndexList = 3;</code> - * @param index The index of the element to return. - * @return The condIndexList at the given index. - */ - public int getCondIndexList(int index) { - return condIndexList_.getInt(index); - } - /** - * <code>repeated uint32 condIndexList = 3;</code> - * @param index The index to set the value at. - * @param value The condIndexList to set. - * @return This builder for chaining. - */ - public Builder setCondIndexList( - int index, int value) { - ensureCondIndexListIsMutable(); - condIndexList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 condIndexList = 3;</code> - * @param value The condIndexList to add. - * @return This builder for chaining. - */ - public Builder addCondIndexList(int value) { - ensureCondIndexListIsMutable(); - condIndexList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 condIndexList = 3;</code> - * @param values The condIndexList to add. - * @return This builder for chaining. - */ - public Builder addAllCondIndexList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureCondIndexListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, condIndexList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 condIndexList = 3;</code> - * @return This builder for chaining. - */ - public Builder clearCondIndexList() { - condIndexList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:FetterData) - } - - // @@protoc_insertion_point(class_scope:FetterData) - private static final emu.grasscutter.net.proto.FetterDataOuterClass.FetterData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.FetterDataOuterClass.FetterData(); - } - - public static emu.grasscutter.net.proto.FetterDataOuterClass.FetterData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<FetterData> - PARSER = new com.google.protobuf.AbstractParser<FetterData>() { - @java.lang.Override - public FetterData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FetterData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<FetterData> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<FetterData> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.FetterDataOuterClass.FetterData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_FetterData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_FetterData_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020FetterData.proto\"J\n\nFetterData\022\020\n\010fett" + - "erId\030\001 \001(\r\022\023\n\013fetterState\030\002 \001(\r\022\025\n\rcondI" + - "ndexList\030\003 \003(\rB\033\n\031emu.grasscutter.net.pr" + - "otob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_FetterData_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_FetterData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_FetterData_descriptor, - new java.lang.String[] { "FetterId", "FetterState", "CondIndexList", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/FightPropPairOuterClass.java b/src/main/java/emu/grasscutter/net/proto/FightPropPairOuterClass.java deleted file mode 100644 index c807cb205..000000000 --- a/src/main/java/emu/grasscutter/net/proto/FightPropPairOuterClass.java +++ /dev/null @@ -1,608 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: FightPropPair.proto - -package emu.grasscutter.net.proto; - -public final class FightPropPairOuterClass { - private FightPropPairOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface FightPropPairOrBuilder extends - // @@protoc_insertion_point(interface_extends:FightPropPair) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 type = 1;</code> - * @return The type. - */ - int getType(); - - /** - * <code>float propValue = 2;</code> - * @return The propValue. - */ - float getPropValue(); - } - /** - * Protobuf type {@code FightPropPair} - */ - public static final class FightPropPair extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:FightPropPair) - FightPropPairOrBuilder { - private static final long serialVersionUID = 0L; - // Use FightPropPair.newBuilder() to construct. - private FightPropPair(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private FightPropPair() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FightPropPair(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FightPropPair( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - type_ = input.readUInt32(); - break; - } - case 21: { - - propValue_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.FightPropPairOuterClass.internal_static_FightPropPair_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.FightPropPairOuterClass.internal_static_FightPropPair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair.class, emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair.Builder.class); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private int type_; - /** - * <code>uint32 type = 1;</code> - * @return The type. - */ - @java.lang.Override - public int getType() { - return type_; - } - - public static final int PROPVALUE_FIELD_NUMBER = 2; - private float propValue_; - /** - * <code>float propValue = 2;</code> - * @return The propValue. - */ - @java.lang.Override - public float getPropValue() { - return propValue_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != 0) { - output.writeUInt32(1, type_); - } - if (propValue_ != 0F) { - output.writeFloat(2, propValue_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, type_); - } - if (propValue_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, propValue_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair other = (emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair) obj; - - if (getType() - != other.getType()) return false; - if (java.lang.Float.floatToIntBits(getPropValue()) - != java.lang.Float.floatToIntBits( - other.getPropValue())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType(); - hash = (37 * hash) + PROPVALUE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getPropValue()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code FightPropPair} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:FightPropPair) - emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPairOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.FightPropPairOuterClass.internal_static_FightPropPair_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.FightPropPairOuterClass.internal_static_FightPropPair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair.class, emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - type_ = 0; - - propValue_ = 0F; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.FightPropPairOuterClass.internal_static_FightPropPair_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair getDefaultInstanceForType() { - return emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair build() { - emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair buildPartial() { - emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair result = new emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair(this); - result.type_ = type_; - result.propValue_ = propValue_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair) { - return mergeFrom((emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair other) { - if (other == emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair.getDefaultInstance()) return this; - if (other.getType() != 0) { - setType(other.getType()); - } - if (other.getPropValue() != 0F) { - setPropValue(other.getPropValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int type_ ; - /** - * <code>uint32 type = 1;</code> - * @return The type. - */ - @java.lang.Override - public int getType() { - return type_; - } - /** - * <code>uint32 type = 1;</code> - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 type = 1;</code> - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private float propValue_ ; - /** - * <code>float propValue = 2;</code> - * @return The propValue. - */ - @java.lang.Override - public float getPropValue() { - return propValue_; - } - /** - * <code>float propValue = 2;</code> - * @param value The propValue to set. - * @return This builder for chaining. - */ - public Builder setPropValue(float value) { - - propValue_ = value; - onChanged(); - return this; - } - /** - * <code>float propValue = 2;</code> - * @return This builder for chaining. - */ - public Builder clearPropValue() { - - propValue_ = 0F; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:FightPropPair) - } - - // @@protoc_insertion_point(class_scope:FightPropPair) - private static final emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair(); - } - - public static emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<FightPropPair> - PARSER = new com.google.protobuf.AbstractParser<FightPropPair>() { - @java.lang.Override - public FightPropPair parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FightPropPair(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<FightPropPair> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<FightPropPair> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_FightPropPair_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_FightPropPair_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023FightPropPair.proto\"0\n\rFightPropPair\022\014" + - "\n\004type\030\001 \001(\r\022\021\n\tpropValue\030\002 \001(\002B\033\n\031emu.g" + - "rasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_FightPropPair_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_FightPropPair_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_FightPropPair_descriptor, - new java.lang.String[] { "Type", "PropValue", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ForwardTypeOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ForwardTypeOuterClass.java deleted file mode 100644 index b49aef9a3..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ForwardTypeOuterClass.java +++ /dev/null @@ -1,212 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ForwardType.proto - -package emu.grasscutter.net.proto; - -public final class ForwardTypeOuterClass { - private ForwardTypeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code ForwardType} - */ - public enum ForwardType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>ForwardLocal = 0;</code> - */ - ForwardLocal(0), - /** - * <code>ForwardToAll = 1;</code> - */ - ForwardToAll(1), - /** - * <code>ForwardToAllExceptCur = 2;</code> - */ - ForwardToAllExceptCur(2), - /** - * <code>ForwardToHost = 3;</code> - */ - ForwardToHost(3), - /** - * <code>ForwardToAllGuest = 4;</code> - */ - ForwardToAllGuest(4), - /** - * <code>ForwardToPeer = 5;</code> - */ - ForwardToPeer(5), - /** - * <code>ForwardToPeers = 6;</code> - */ - ForwardToPeers(6), - /** - * <code>ForwardOnlyServer = 7;</code> - */ - ForwardOnlyServer(7), - /** - * <code>ForwardToAllExistExceptCur = 8;</code> - */ - ForwardToAllExistExceptCur(8), - UNRECOGNIZED(-1), - ; - - /** - * <code>ForwardLocal = 0;</code> - */ - public static final int ForwardLocal_VALUE = 0; - /** - * <code>ForwardToAll = 1;</code> - */ - public static final int ForwardToAll_VALUE = 1; - /** - * <code>ForwardToAllExceptCur = 2;</code> - */ - public static final int ForwardToAllExceptCur_VALUE = 2; - /** - * <code>ForwardToHost = 3;</code> - */ - public static final int ForwardToHost_VALUE = 3; - /** - * <code>ForwardToAllGuest = 4;</code> - */ - public static final int ForwardToAllGuest_VALUE = 4; - /** - * <code>ForwardToPeer = 5;</code> - */ - public static final int ForwardToPeer_VALUE = 5; - /** - * <code>ForwardToPeers = 6;</code> - */ - public static final int ForwardToPeers_VALUE = 6; - /** - * <code>ForwardOnlyServer = 7;</code> - */ - public static final int ForwardOnlyServer_VALUE = 7; - /** - * <code>ForwardToAllExistExceptCur = 8;</code> - */ - public static final int ForwardToAllExistExceptCur_VALUE = 8; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ForwardType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static ForwardType forNumber(int value) { - switch (value) { - case 0: return ForwardLocal; - case 1: return ForwardToAll; - case 2: return ForwardToAllExceptCur; - case 3: return ForwardToHost; - case 4: return ForwardToAllGuest; - case 5: return ForwardToPeer; - case 6: return ForwardToPeers; - case 7: return ForwardOnlyServer; - case 8: return ForwardToAllExistExceptCur; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<ForwardType> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ForwardType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<ForwardType>() { - public ForwardType findValueByNumber(int number) { - return ForwardType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.ForwardTypeOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final ForwardType[] VALUES = values(); - - public static ForwardType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ForwardType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:ForwardType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\021ForwardType.proto*\324\001\n\013ForwardType\022\020\n\014F" + - "orwardLocal\020\000\022\020\n\014ForwardToAll\020\001\022\031\n\025Forwa" + - "rdToAllExceptCur\020\002\022\021\n\rForwardToHost\020\003\022\025\n" + - "\021ForwardToAllGuest\020\004\022\021\n\rForwardToPeer\020\005\022" + - "\022\n\016ForwardToPeers\020\006\022\025\n\021ForwardOnlyServer" + - "\020\007\022\036\n\032ForwardToAllExistExceptCur\020\010B\033\n\031em" + - "u.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/FriendBriefOuterClass.java b/src/main/java/emu/grasscutter/net/proto/FriendBriefOuterClass.java deleted file mode 100644 index 424620cd3..000000000 --- a/src/main/java/emu/grasscutter/net/proto/FriendBriefOuterClass.java +++ /dev/null @@ -1,2722 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: FriendBrief.proto - -package emu.grasscutter.net.proto; - -public final class FriendBriefOuterClass { - private FriendBriefOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface FriendBriefOrBuilder extends - // @@protoc_insertion_point(interface_extends:FriendBrief) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 uid = 1;</code> - * @return The uid. - */ - int getUid(); - - /** - * <code>string nickname = 2;</code> - * @return The nickname. - */ - java.lang.String getNickname(); - /** - * <code>string nickname = 2;</code> - * @return The bytes for nickname. - */ - com.google.protobuf.ByteString - getNicknameBytes(); - - /** - * <code>uint32 level = 3;</code> - * @return The level. - */ - int getLevel(); - - /** - * <code>uint32 worldLevel = 5;</code> - * @return The worldLevel. - */ - int getWorldLevel(); - - /** - * <code>string signature = 6;</code> - * @return The signature. - */ - java.lang.String getSignature(); - /** - * <code>string signature = 6;</code> - * @return The bytes for signature. - */ - com.google.protobuf.ByteString - getSignatureBytes(); - - /** - * <code>.FriendOnlineState onlineState = 7;</code> - * @return The enum numeric value on the wire for onlineState. - */ - int getOnlineStateValue(); - /** - * <code>.FriendOnlineState onlineState = 7;</code> - * @return The onlineState. - */ - emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState getOnlineState(); - - /** - * <code>uint32 param = 8;</code> - * @return The param. - */ - int getParam(); - - /** - * <code>bool isMpModeAvailable = 10;</code> - * @return The isMpModeAvailable. - */ - boolean getIsMpModeAvailable(); - - /** - * <code>string onlineId = 11;</code> - * @return The onlineId. - */ - java.lang.String getOnlineId(); - /** - * <code>string onlineId = 11;</code> - * @return The bytes for onlineId. - */ - com.google.protobuf.ByteString - getOnlineIdBytes(); - - /** - * <code>uint32 lastActiveTime = 12;</code> - * @return The lastActiveTime. - */ - int getLastActiveTime(); - - /** - * <code>uint32 nameCardId = 13;</code> - * @return The nameCardId. - */ - int getNameCardId(); - - /** - * <code>uint32 mpPlayerNum = 14;</code> - * @return The mpPlayerNum. - */ - int getMpPlayerNum(); - - /** - * <code>bool isChatNoDisturb = 15;</code> - * @return The isChatNoDisturb. - */ - boolean getIsChatNoDisturb(); - - /** - * <code>uint32 chatSequence = 16;</code> - * @return The chatSequence. - */ - int getChatSequence(); - - /** - * <code>string remarkName = 17;</code> - * @return The remarkName. - */ - java.lang.String getRemarkName(); - /** - * <code>string remarkName = 17;</code> - * @return The bytes for remarkName. - */ - com.google.protobuf.ByteString - getRemarkNameBytes(); - - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - java.util.List<emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo> - getShowAvatarInfoListList(); - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo getShowAvatarInfoList(int index); - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - int getShowAvatarInfoListCount(); - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder> - getShowAvatarInfoListOrBuilderList(); - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder getShowAvatarInfoListOrBuilder( - int index); - - /** - * <code>.FriendEnterHomeOption friendEnterHomeOption = 23;</code> - * @return The enum numeric value on the wire for friendEnterHomeOption. - */ - int getFriendEnterHomeOptionValue(); - /** - * <code>.FriendEnterHomeOption friendEnterHomeOption = 23;</code> - * @return The friendEnterHomeOption. - */ - emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption getFriendEnterHomeOption(); - - /** - * <code>.HeadImage avatar = 24;</code> - * @return Whether the avatar field is set. - */ - boolean hasAvatar(); - /** - * <code>.HeadImage avatar = 24;</code> - * @return The avatar. - */ - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage getAvatar(); - /** - * <code>.HeadImage avatar = 24;</code> - */ - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder getAvatarOrBuilder(); - - /** - * <code>uint32 unk1 = 25;</code> - * @return The unk1. - */ - int getUnk1(); - - /** - * <code>uint32 unk2 = 27;</code> - * @return The unk2. - */ - int getUnk2(); - } - /** - * Protobuf type {@code FriendBrief} - */ - public static final class FriendBrief extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:FriendBrief) - FriendBriefOrBuilder { - private static final long serialVersionUID = 0L; - // Use FriendBrief.newBuilder() to construct. - private FriendBrief(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private FriendBrief() { - nickname_ = ""; - signature_ = ""; - onlineState_ = 0; - onlineId_ = ""; - remarkName_ = ""; - showAvatarInfoList_ = java.util.Collections.emptyList(); - friendEnterHomeOption_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FriendBrief(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FriendBrief( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - uid_ = input.readUInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - nickname_ = s; - break; - } - case 24: { - - level_ = input.readUInt32(); - break; - } - case 40: { - - worldLevel_ = input.readUInt32(); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - signature_ = s; - break; - } - case 56: { - int rawValue = input.readEnum(); - - onlineState_ = rawValue; - break; - } - case 64: { - - param_ = input.readUInt32(); - break; - } - case 80: { - - isMpModeAvailable_ = input.readBool(); - break; - } - case 90: { - java.lang.String s = input.readStringRequireUtf8(); - - onlineId_ = s; - break; - } - case 96: { - - lastActiveTime_ = input.readUInt32(); - break; - } - case 104: { - - nameCardId_ = input.readUInt32(); - break; - } - case 112: { - - mpPlayerNum_ = input.readUInt32(); - break; - } - case 120: { - - isChatNoDisturb_ = input.readBool(); - break; - } - case 128: { - - chatSequence_ = input.readUInt32(); - break; - } - case 138: { - java.lang.String s = input.readStringRequireUtf8(); - - remarkName_ = s; - break; - } - case 178: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - showAvatarInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo>(); - mutable_bitField0_ |= 0x00000001; - } - showAvatarInfoList_.add( - input.readMessage(emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.parser(), extensionRegistry)); - break; - } - case 184: { - int rawValue = input.readEnum(); - - friendEnterHomeOption_ = rawValue; - break; - } - case 194: { - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder subBuilder = null; - if (avatar_ != null) { - subBuilder = avatar_.toBuilder(); - } - avatar_ = input.readMessage(emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(avatar_); - avatar_ = subBuilder.buildPartial(); - } - - break; - } - case 200: { - - unk1_ = input.readUInt32(); - break; - } - case 216: { - - unk2_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - showAvatarInfoList_ = java.util.Collections.unmodifiableList(showAvatarInfoList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.FriendBriefOuterClass.internal_static_FriendBrief_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.FriendBriefOuterClass.internal_static_FriendBrief_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.class, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder.class); - } - - public static final int UID_FIELD_NUMBER = 1; - private int uid_; - /** - * <code>uint32 uid = 1;</code> - * @return The uid. - */ - @java.lang.Override - public int getUid() { - return uid_; - } - - public static final int NICKNAME_FIELD_NUMBER = 2; - private volatile java.lang.Object nickname_; - /** - * <code>string nickname = 2;</code> - * @return The nickname. - */ - @java.lang.Override - public java.lang.String getNickname() { - java.lang.Object ref = nickname_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nickname_ = s; - return s; - } - } - /** - * <code>string nickname = 2;</code> - * @return The bytes for nickname. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNicknameBytes() { - java.lang.Object ref = nickname_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nickname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LEVEL_FIELD_NUMBER = 3; - private int level_; - /** - * <code>uint32 level = 3;</code> - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - - public static final int WORLDLEVEL_FIELD_NUMBER = 5; - private int worldLevel_; - /** - * <code>uint32 worldLevel = 5;</code> - * @return The worldLevel. - */ - @java.lang.Override - public int getWorldLevel() { - return worldLevel_; - } - - public static final int SIGNATURE_FIELD_NUMBER = 6; - private volatile java.lang.Object signature_; - /** - * <code>string signature = 6;</code> - * @return The signature. - */ - @java.lang.Override - public java.lang.String getSignature() { - java.lang.Object ref = signature_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signature_ = s; - return s; - } - } - /** - * <code>string signature = 6;</code> - * @return The bytes for signature. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSignatureBytes() { - java.lang.Object ref = signature_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signature_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ONLINESTATE_FIELD_NUMBER = 7; - private int onlineState_; - /** - * <code>.FriendOnlineState onlineState = 7;</code> - * @return The enum numeric value on the wire for onlineState. - */ - @java.lang.Override public int getOnlineStateValue() { - return onlineState_; - } - /** - * <code>.FriendOnlineState onlineState = 7;</code> - * @return The onlineState. - */ - @java.lang.Override public emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState getOnlineState() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState result = emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState.valueOf(onlineState_); - return result == null ? emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState.UNRECOGNIZED : result; - } - - public static final int PARAM_FIELD_NUMBER = 8; - private int param_; - /** - * <code>uint32 param = 8;</code> - * @return The param. - */ - @java.lang.Override - public int getParam() { - return param_; - } - - public static final int ISMPMODEAVAILABLE_FIELD_NUMBER = 10; - private boolean isMpModeAvailable_; - /** - * <code>bool isMpModeAvailable = 10;</code> - * @return The isMpModeAvailable. - */ - @java.lang.Override - public boolean getIsMpModeAvailable() { - return isMpModeAvailable_; - } - - public static final int ONLINEID_FIELD_NUMBER = 11; - private volatile java.lang.Object onlineId_; - /** - * <code>string onlineId = 11;</code> - * @return The onlineId. - */ - @java.lang.Override - public java.lang.String getOnlineId() { - java.lang.Object ref = onlineId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - onlineId_ = s; - return s; - } - } - /** - * <code>string onlineId = 11;</code> - * @return The bytes for onlineId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOnlineIdBytes() { - java.lang.Object ref = onlineId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - onlineId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LASTACTIVETIME_FIELD_NUMBER = 12; - private int lastActiveTime_; - /** - * <code>uint32 lastActiveTime = 12;</code> - * @return The lastActiveTime. - */ - @java.lang.Override - public int getLastActiveTime() { - return lastActiveTime_; - } - - public static final int NAMECARDID_FIELD_NUMBER = 13; - private int nameCardId_; - /** - * <code>uint32 nameCardId = 13;</code> - * @return The nameCardId. - */ - @java.lang.Override - public int getNameCardId() { - return nameCardId_; - } - - public static final int MPPLAYERNUM_FIELD_NUMBER = 14; - private int mpPlayerNum_; - /** - * <code>uint32 mpPlayerNum = 14;</code> - * @return The mpPlayerNum. - */ - @java.lang.Override - public int getMpPlayerNum() { - return mpPlayerNum_; - } - - public static final int ISCHATNODISTURB_FIELD_NUMBER = 15; - private boolean isChatNoDisturb_; - /** - * <code>bool isChatNoDisturb = 15;</code> - * @return The isChatNoDisturb. - */ - @java.lang.Override - public boolean getIsChatNoDisturb() { - return isChatNoDisturb_; - } - - public static final int CHATSEQUENCE_FIELD_NUMBER = 16; - private int chatSequence_; - /** - * <code>uint32 chatSequence = 16;</code> - * @return The chatSequence. - */ - @java.lang.Override - public int getChatSequence() { - return chatSequence_; - } - - public static final int REMARKNAME_FIELD_NUMBER = 17; - private volatile java.lang.Object remarkName_; - /** - * <code>string remarkName = 17;</code> - * @return The remarkName. - */ - @java.lang.Override - public java.lang.String getRemarkName() { - java.lang.Object ref = remarkName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - remarkName_ = s; - return s; - } - } - /** - * <code>string remarkName = 17;</code> - * @return The bytes for remarkName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRemarkNameBytes() { - java.lang.Object ref = remarkName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - remarkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SHOWAVATARINFOLIST_FIELD_NUMBER = 22; - private java.util.List<emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo> showAvatarInfoList_; - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo> getShowAvatarInfoListList() { - return showAvatarInfoList_; - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder> - getShowAvatarInfoListOrBuilderList() { - return showAvatarInfoList_; - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - @java.lang.Override - public int getShowAvatarInfoListCount() { - return showAvatarInfoList_.size(); - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo getShowAvatarInfoList(int index) { - return showAvatarInfoList_.get(index); - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder getShowAvatarInfoListOrBuilder( - int index) { - return showAvatarInfoList_.get(index); - } - - public static final int FRIENDENTERHOMEOPTION_FIELD_NUMBER = 23; - private int friendEnterHomeOption_; - /** - * <code>.FriendEnterHomeOption friendEnterHomeOption = 23;</code> - * @return The enum numeric value on the wire for friendEnterHomeOption. - */ - @java.lang.Override public int getFriendEnterHomeOptionValue() { - return friendEnterHomeOption_; - } - /** - * <code>.FriendEnterHomeOption friendEnterHomeOption = 23;</code> - * @return The friendEnterHomeOption. - */ - @java.lang.Override public emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption getFriendEnterHomeOption() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption result = emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption.valueOf(friendEnterHomeOption_); - return result == null ? emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption.UNRECOGNIZED : result; - } - - public static final int AVATAR_FIELD_NUMBER = 24; - private emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage avatar_; - /** - * <code>.HeadImage avatar = 24;</code> - * @return Whether the avatar field is set. - */ - @java.lang.Override - public boolean hasAvatar() { - return avatar_ != null; - } - /** - * <code>.HeadImage avatar = 24;</code> - * @return The avatar. - */ - @java.lang.Override - public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage getAvatar() { - return avatar_ == null ? emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.getDefaultInstance() : avatar_; - } - /** - * <code>.HeadImage avatar = 24;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder getAvatarOrBuilder() { - return getAvatar(); - } - - public static final int UNK1_FIELD_NUMBER = 25; - private int unk1_; - /** - * <code>uint32 unk1 = 25;</code> - * @return The unk1. - */ - @java.lang.Override - public int getUnk1() { - return unk1_; - } - - public static final int UNK2_FIELD_NUMBER = 27; - private int unk2_; - /** - * <code>uint32 unk2 = 27;</code> - * @return The unk2. - */ - @java.lang.Override - public int getUnk2() { - return unk2_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (uid_ != 0) { - output.writeUInt32(1, uid_); - } - if (!getNicknameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nickname_); - } - if (level_ != 0) { - output.writeUInt32(3, level_); - } - if (worldLevel_ != 0) { - output.writeUInt32(5, worldLevel_); - } - if (!getSignatureBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, signature_); - } - if (onlineState_ != emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState.FRIEND_DISCONNECT.getNumber()) { - output.writeEnum(7, onlineState_); - } - if (param_ != 0) { - output.writeUInt32(8, param_); - } - if (isMpModeAvailable_ != false) { - output.writeBool(10, isMpModeAvailable_); - } - if (!getOnlineIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, onlineId_); - } - if (lastActiveTime_ != 0) { - output.writeUInt32(12, lastActiveTime_); - } - if (nameCardId_ != 0) { - output.writeUInt32(13, nameCardId_); - } - if (mpPlayerNum_ != 0) { - output.writeUInt32(14, mpPlayerNum_); - } - if (isChatNoDisturb_ != false) { - output.writeBool(15, isChatNoDisturb_); - } - if (chatSequence_ != 0) { - output.writeUInt32(16, chatSequence_); - } - if (!getRemarkNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 17, remarkName_); - } - for (int i = 0; i < showAvatarInfoList_.size(); i++) { - output.writeMessage(22, showAvatarInfoList_.get(i)); - } - if (friendEnterHomeOption_ != emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption.NeedConfirm.getNumber()) { - output.writeEnum(23, friendEnterHomeOption_); - } - if (avatar_ != null) { - output.writeMessage(24, getAvatar()); - } - if (unk1_ != 0) { - output.writeUInt32(25, unk1_); - } - if (unk2_ != 0) { - output.writeUInt32(27, unk2_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (uid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, uid_); - } - if (!getNicknameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nickname_); - } - if (level_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, level_); - } - if (worldLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, worldLevel_); - } - if (!getSignatureBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, signature_); - } - if (onlineState_ != emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState.FRIEND_DISCONNECT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, onlineState_); - } - if (param_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(8, param_); - } - if (isMpModeAvailable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(10, isMpModeAvailable_); - } - if (!getOnlineIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, onlineId_); - } - if (lastActiveTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(12, lastActiveTime_); - } - if (nameCardId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(13, nameCardId_); - } - if (mpPlayerNum_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(14, mpPlayerNum_); - } - if (isChatNoDisturb_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(15, isChatNoDisturb_); - } - if (chatSequence_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(16, chatSequence_); - } - if (!getRemarkNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, remarkName_); - } - for (int i = 0; i < showAvatarInfoList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, showAvatarInfoList_.get(i)); - } - if (friendEnterHomeOption_ != emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption.NeedConfirm.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(23, friendEnterHomeOption_); - } - if (avatar_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, getAvatar()); - } - if (unk1_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(25, unk1_); - } - if (unk2_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(27, unk2_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief other = (emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief) obj; - - if (getUid() - != other.getUid()) return false; - if (!getNickname() - .equals(other.getNickname())) return false; - if (getLevel() - != other.getLevel()) return false; - if (getWorldLevel() - != other.getWorldLevel()) return false; - if (!getSignature() - .equals(other.getSignature())) return false; - if (onlineState_ != other.onlineState_) return false; - if (getParam() - != other.getParam()) return false; - if (getIsMpModeAvailable() - != other.getIsMpModeAvailable()) return false; - if (!getOnlineId() - .equals(other.getOnlineId())) return false; - if (getLastActiveTime() - != other.getLastActiveTime()) return false; - if (getNameCardId() - != other.getNameCardId()) return false; - if (getMpPlayerNum() - != other.getMpPlayerNum()) return false; - if (getIsChatNoDisturb() - != other.getIsChatNoDisturb()) return false; - if (getChatSequence() - != other.getChatSequence()) return false; - if (!getRemarkName() - .equals(other.getRemarkName())) return false; - if (!getShowAvatarInfoListList() - .equals(other.getShowAvatarInfoListList())) return false; - if (friendEnterHomeOption_ != other.friendEnterHomeOption_) return false; - if (hasAvatar() != other.hasAvatar()) return false; - if (hasAvatar()) { - if (!getAvatar() - .equals(other.getAvatar())) return false; - } - if (getUnk1() - != other.getUnk1()) return false; - if (getUnk2() - != other.getUnk2()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + UID_FIELD_NUMBER; - hash = (53 * hash) + getUid(); - hash = (37 * hash) + NICKNAME_FIELD_NUMBER; - hash = (53 * hash) + getNickname().hashCode(); - hash = (37 * hash) + LEVEL_FIELD_NUMBER; - hash = (53 * hash) + getLevel(); - hash = (37 * hash) + WORLDLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getWorldLevel(); - hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getSignature().hashCode(); - hash = (37 * hash) + ONLINESTATE_FIELD_NUMBER; - hash = (53 * hash) + onlineState_; - hash = (37 * hash) + PARAM_FIELD_NUMBER; - hash = (53 * hash) + getParam(); - hash = (37 * hash) + ISMPMODEAVAILABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsMpModeAvailable()); - hash = (37 * hash) + ONLINEID_FIELD_NUMBER; - hash = (53 * hash) + getOnlineId().hashCode(); - hash = (37 * hash) + LASTACTIVETIME_FIELD_NUMBER; - hash = (53 * hash) + getLastActiveTime(); - hash = (37 * hash) + NAMECARDID_FIELD_NUMBER; - hash = (53 * hash) + getNameCardId(); - hash = (37 * hash) + MPPLAYERNUM_FIELD_NUMBER; - hash = (53 * hash) + getMpPlayerNum(); - hash = (37 * hash) + ISCHATNODISTURB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsChatNoDisturb()); - hash = (37 * hash) + CHATSEQUENCE_FIELD_NUMBER; - hash = (53 * hash) + getChatSequence(); - hash = (37 * hash) + REMARKNAME_FIELD_NUMBER; - hash = (53 * hash) + getRemarkName().hashCode(); - if (getShowAvatarInfoListCount() > 0) { - hash = (37 * hash) + SHOWAVATARINFOLIST_FIELD_NUMBER; - hash = (53 * hash) + getShowAvatarInfoListList().hashCode(); - } - hash = (37 * hash) + FRIENDENTERHOMEOPTION_FIELD_NUMBER; - hash = (53 * hash) + friendEnterHomeOption_; - if (hasAvatar()) { - hash = (37 * hash) + AVATAR_FIELD_NUMBER; - hash = (53 * hash) + getAvatar().hashCode(); - } - hash = (37 * hash) + UNK1_FIELD_NUMBER; - hash = (53 * hash) + getUnk1(); - hash = (37 * hash) + UNK2_FIELD_NUMBER; - hash = (53 * hash) + getUnk2(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code FriendBrief} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:FriendBrief) - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.FriendBriefOuterClass.internal_static_FriendBrief_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.FriendBriefOuterClass.internal_static_FriendBrief_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.class, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getShowAvatarInfoListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - uid_ = 0; - - nickname_ = ""; - - level_ = 0; - - worldLevel_ = 0; - - signature_ = ""; - - onlineState_ = 0; - - param_ = 0; - - isMpModeAvailable_ = false; - - onlineId_ = ""; - - lastActiveTime_ = 0; - - nameCardId_ = 0; - - mpPlayerNum_ = 0; - - isChatNoDisturb_ = false; - - chatSequence_ = 0; - - remarkName_ = ""; - - if (showAvatarInfoListBuilder_ == null) { - showAvatarInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - showAvatarInfoListBuilder_.clear(); - } - friendEnterHomeOption_ = 0; - - if (avatarBuilder_ == null) { - avatar_ = null; - } else { - avatar_ = null; - avatarBuilder_ = null; - } - unk1_ = 0; - - unk2_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.FriendBriefOuterClass.internal_static_FriendBrief_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getDefaultInstanceForType() { - return emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief build() { - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief buildPartial() { - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief result = new emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief(this); - int from_bitField0_ = bitField0_; - result.uid_ = uid_; - result.nickname_ = nickname_; - result.level_ = level_; - result.worldLevel_ = worldLevel_; - result.signature_ = signature_; - result.onlineState_ = onlineState_; - result.param_ = param_; - result.isMpModeAvailable_ = isMpModeAvailable_; - result.onlineId_ = onlineId_; - result.lastActiveTime_ = lastActiveTime_; - result.nameCardId_ = nameCardId_; - result.mpPlayerNum_ = mpPlayerNum_; - result.isChatNoDisturb_ = isChatNoDisturb_; - result.chatSequence_ = chatSequence_; - result.remarkName_ = remarkName_; - if (showAvatarInfoListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - showAvatarInfoList_ = java.util.Collections.unmodifiableList(showAvatarInfoList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.showAvatarInfoList_ = showAvatarInfoList_; - } else { - result.showAvatarInfoList_ = showAvatarInfoListBuilder_.build(); - } - result.friendEnterHomeOption_ = friendEnterHomeOption_; - if (avatarBuilder_ == null) { - result.avatar_ = avatar_; - } else { - result.avatar_ = avatarBuilder_.build(); - } - result.unk1_ = unk1_; - result.unk2_ = unk2_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief) { - return mergeFrom((emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief other) { - if (other == emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.getDefaultInstance()) return this; - if (other.getUid() != 0) { - setUid(other.getUid()); - } - if (!other.getNickname().isEmpty()) { - nickname_ = other.nickname_; - onChanged(); - } - if (other.getLevel() != 0) { - setLevel(other.getLevel()); - } - if (other.getWorldLevel() != 0) { - setWorldLevel(other.getWorldLevel()); - } - if (!other.getSignature().isEmpty()) { - signature_ = other.signature_; - onChanged(); - } - if (other.onlineState_ != 0) { - setOnlineStateValue(other.getOnlineStateValue()); - } - if (other.getParam() != 0) { - setParam(other.getParam()); - } - if (other.getIsMpModeAvailable() != false) { - setIsMpModeAvailable(other.getIsMpModeAvailable()); - } - if (!other.getOnlineId().isEmpty()) { - onlineId_ = other.onlineId_; - onChanged(); - } - if (other.getLastActiveTime() != 0) { - setLastActiveTime(other.getLastActiveTime()); - } - if (other.getNameCardId() != 0) { - setNameCardId(other.getNameCardId()); - } - if (other.getMpPlayerNum() != 0) { - setMpPlayerNum(other.getMpPlayerNum()); - } - if (other.getIsChatNoDisturb() != false) { - setIsChatNoDisturb(other.getIsChatNoDisturb()); - } - if (other.getChatSequence() != 0) { - setChatSequence(other.getChatSequence()); - } - if (!other.getRemarkName().isEmpty()) { - remarkName_ = other.remarkName_; - onChanged(); - } - if (showAvatarInfoListBuilder_ == null) { - if (!other.showAvatarInfoList_.isEmpty()) { - if (showAvatarInfoList_.isEmpty()) { - showAvatarInfoList_ = other.showAvatarInfoList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureShowAvatarInfoListIsMutable(); - showAvatarInfoList_.addAll(other.showAvatarInfoList_); - } - onChanged(); - } - } else { - if (!other.showAvatarInfoList_.isEmpty()) { - if (showAvatarInfoListBuilder_.isEmpty()) { - showAvatarInfoListBuilder_.dispose(); - showAvatarInfoListBuilder_ = null; - showAvatarInfoList_ = other.showAvatarInfoList_; - bitField0_ = (bitField0_ & ~0x00000001); - showAvatarInfoListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getShowAvatarInfoListFieldBuilder() : null; - } else { - showAvatarInfoListBuilder_.addAllMessages(other.showAvatarInfoList_); - } - } - } - if (other.friendEnterHomeOption_ != 0) { - setFriendEnterHomeOptionValue(other.getFriendEnterHomeOptionValue()); - } - if (other.hasAvatar()) { - mergeAvatar(other.getAvatar()); - } - if (other.getUnk1() != 0) { - setUnk1(other.getUnk1()); - } - if (other.getUnk2() != 0) { - setUnk2(other.getUnk2()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int uid_ ; - /** - * <code>uint32 uid = 1;</code> - * @return The uid. - */ - @java.lang.Override - public int getUid() { - return uid_; - } - /** - * <code>uint32 uid = 1;</code> - * @param value The uid to set. - * @return This builder for chaining. - */ - public Builder setUid(int value) { - - uid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 uid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearUid() { - - uid_ = 0; - onChanged(); - return this; - } - - private java.lang.Object nickname_ = ""; - /** - * <code>string nickname = 2;</code> - * @return The nickname. - */ - public java.lang.String getNickname() { - java.lang.Object ref = nickname_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nickname_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string nickname = 2;</code> - * @return The bytes for nickname. - */ - public com.google.protobuf.ByteString - getNicknameBytes() { - java.lang.Object ref = nickname_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nickname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string nickname = 2;</code> - * @param value The nickname to set. - * @return This builder for chaining. - */ - public Builder setNickname( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nickname_ = value; - onChanged(); - return this; - } - /** - * <code>string nickname = 2;</code> - * @return This builder for chaining. - */ - public Builder clearNickname() { - - nickname_ = getDefaultInstance().getNickname(); - onChanged(); - return this; - } - /** - * <code>string nickname = 2;</code> - * @param value The bytes for nickname to set. - * @return This builder for chaining. - */ - public Builder setNicknameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nickname_ = value; - onChanged(); - return this; - } - - private int level_ ; - /** - * <code>uint32 level = 3;</code> - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - /** - * <code>uint32 level = 3;</code> - * @param value The level to set. - * @return This builder for chaining. - */ - public Builder setLevel(int value) { - - level_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 level = 3;</code> - * @return This builder for chaining. - */ - public Builder clearLevel() { - - level_ = 0; - onChanged(); - return this; - } - - private int worldLevel_ ; - /** - * <code>uint32 worldLevel = 5;</code> - * @return The worldLevel. - */ - @java.lang.Override - public int getWorldLevel() { - return worldLevel_; - } - /** - * <code>uint32 worldLevel = 5;</code> - * @param value The worldLevel to set. - * @return This builder for chaining. - */ - public Builder setWorldLevel(int value) { - - worldLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 worldLevel = 5;</code> - * @return This builder for chaining. - */ - public Builder clearWorldLevel() { - - worldLevel_ = 0; - onChanged(); - return this; - } - - private java.lang.Object signature_ = ""; - /** - * <code>string signature = 6;</code> - * @return The signature. - */ - public java.lang.String getSignature() { - java.lang.Object ref = signature_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signature_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string signature = 6;</code> - * @return The bytes for signature. - */ - public com.google.protobuf.ByteString - getSignatureBytes() { - java.lang.Object ref = signature_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signature_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string signature = 6;</code> - * @param value The signature to set. - * @return This builder for chaining. - */ - public Builder setSignature( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signature_ = value; - onChanged(); - return this; - } - /** - * <code>string signature = 6;</code> - * @return This builder for chaining. - */ - public Builder clearSignature() { - - signature_ = getDefaultInstance().getSignature(); - onChanged(); - return this; - } - /** - * <code>string signature = 6;</code> - * @param value The bytes for signature to set. - * @return This builder for chaining. - */ - public Builder setSignatureBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signature_ = value; - onChanged(); - return this; - } - - private int onlineState_ = 0; - /** - * <code>.FriendOnlineState onlineState = 7;</code> - * @return The enum numeric value on the wire for onlineState. - */ - @java.lang.Override public int getOnlineStateValue() { - return onlineState_; - } - /** - * <code>.FriendOnlineState onlineState = 7;</code> - * @param value The enum numeric value on the wire for onlineState to set. - * @return This builder for chaining. - */ - public Builder setOnlineStateValue(int value) { - - onlineState_ = value; - onChanged(); - return this; - } - /** - * <code>.FriendOnlineState onlineState = 7;</code> - * @return The onlineState. - */ - @java.lang.Override - public emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState getOnlineState() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState result = emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState.valueOf(onlineState_); - return result == null ? emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState.UNRECOGNIZED : result; - } - /** - * <code>.FriendOnlineState onlineState = 7;</code> - * @param value The onlineState to set. - * @return This builder for chaining. - */ - public Builder setOnlineState(emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState value) { - if (value == null) { - throw new NullPointerException(); - } - - onlineState_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.FriendOnlineState onlineState = 7;</code> - * @return This builder for chaining. - */ - public Builder clearOnlineState() { - - onlineState_ = 0; - onChanged(); - return this; - } - - private int param_ ; - /** - * <code>uint32 param = 8;</code> - * @return The param. - */ - @java.lang.Override - public int getParam() { - return param_; - } - /** - * <code>uint32 param = 8;</code> - * @param value The param to set. - * @return This builder for chaining. - */ - public Builder setParam(int value) { - - param_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 param = 8;</code> - * @return This builder for chaining. - */ - public Builder clearParam() { - - param_ = 0; - onChanged(); - return this; - } - - private boolean isMpModeAvailable_ ; - /** - * <code>bool isMpModeAvailable = 10;</code> - * @return The isMpModeAvailable. - */ - @java.lang.Override - public boolean getIsMpModeAvailable() { - return isMpModeAvailable_; - } - /** - * <code>bool isMpModeAvailable = 10;</code> - * @param value The isMpModeAvailable to set. - * @return This builder for chaining. - */ - public Builder setIsMpModeAvailable(boolean value) { - - isMpModeAvailable_ = value; - onChanged(); - return this; - } - /** - * <code>bool isMpModeAvailable = 10;</code> - * @return This builder for chaining. - */ - public Builder clearIsMpModeAvailable() { - - isMpModeAvailable_ = false; - onChanged(); - return this; - } - - private java.lang.Object onlineId_ = ""; - /** - * <code>string onlineId = 11;</code> - * @return The onlineId. - */ - public java.lang.String getOnlineId() { - java.lang.Object ref = onlineId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - onlineId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string onlineId = 11;</code> - * @return The bytes for onlineId. - */ - public com.google.protobuf.ByteString - getOnlineIdBytes() { - java.lang.Object ref = onlineId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - onlineId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string onlineId = 11;</code> - * @param value The onlineId to set. - * @return This builder for chaining. - */ - public Builder setOnlineId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - onlineId_ = value; - onChanged(); - return this; - } - /** - * <code>string onlineId = 11;</code> - * @return This builder for chaining. - */ - public Builder clearOnlineId() { - - onlineId_ = getDefaultInstance().getOnlineId(); - onChanged(); - return this; - } - /** - * <code>string onlineId = 11;</code> - * @param value The bytes for onlineId to set. - * @return This builder for chaining. - */ - public Builder setOnlineIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - onlineId_ = value; - onChanged(); - return this; - } - - private int lastActiveTime_ ; - /** - * <code>uint32 lastActiveTime = 12;</code> - * @return The lastActiveTime. - */ - @java.lang.Override - public int getLastActiveTime() { - return lastActiveTime_; - } - /** - * <code>uint32 lastActiveTime = 12;</code> - * @param value The lastActiveTime to set. - * @return This builder for chaining. - */ - public Builder setLastActiveTime(int value) { - - lastActiveTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 lastActiveTime = 12;</code> - * @return This builder for chaining. - */ - public Builder clearLastActiveTime() { - - lastActiveTime_ = 0; - onChanged(); - return this; - } - - private int nameCardId_ ; - /** - * <code>uint32 nameCardId = 13;</code> - * @return The nameCardId. - */ - @java.lang.Override - public int getNameCardId() { - return nameCardId_; - } - /** - * <code>uint32 nameCardId = 13;</code> - * @param value The nameCardId to set. - * @return This builder for chaining. - */ - public Builder setNameCardId(int value) { - - nameCardId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 nameCardId = 13;</code> - * @return This builder for chaining. - */ - public Builder clearNameCardId() { - - nameCardId_ = 0; - onChanged(); - return this; - } - - private int mpPlayerNum_ ; - /** - * <code>uint32 mpPlayerNum = 14;</code> - * @return The mpPlayerNum. - */ - @java.lang.Override - public int getMpPlayerNum() { - return mpPlayerNum_; - } - /** - * <code>uint32 mpPlayerNum = 14;</code> - * @param value The mpPlayerNum to set. - * @return This builder for chaining. - */ - public Builder setMpPlayerNum(int value) { - - mpPlayerNum_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 mpPlayerNum = 14;</code> - * @return This builder for chaining. - */ - public Builder clearMpPlayerNum() { - - mpPlayerNum_ = 0; - onChanged(); - return this; - } - - private boolean isChatNoDisturb_ ; - /** - * <code>bool isChatNoDisturb = 15;</code> - * @return The isChatNoDisturb. - */ - @java.lang.Override - public boolean getIsChatNoDisturb() { - return isChatNoDisturb_; - } - /** - * <code>bool isChatNoDisturb = 15;</code> - * @param value The isChatNoDisturb to set. - * @return This builder for chaining. - */ - public Builder setIsChatNoDisturb(boolean value) { - - isChatNoDisturb_ = value; - onChanged(); - return this; - } - /** - * <code>bool isChatNoDisturb = 15;</code> - * @return This builder for chaining. - */ - public Builder clearIsChatNoDisturb() { - - isChatNoDisturb_ = false; - onChanged(); - return this; - } - - private int chatSequence_ ; - /** - * <code>uint32 chatSequence = 16;</code> - * @return The chatSequence. - */ - @java.lang.Override - public int getChatSequence() { - return chatSequence_; - } - /** - * <code>uint32 chatSequence = 16;</code> - * @param value The chatSequence to set. - * @return This builder for chaining. - */ - public Builder setChatSequence(int value) { - - chatSequence_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 chatSequence = 16;</code> - * @return This builder for chaining. - */ - public Builder clearChatSequence() { - - chatSequence_ = 0; - onChanged(); - return this; - } - - private java.lang.Object remarkName_ = ""; - /** - * <code>string remarkName = 17;</code> - * @return The remarkName. - */ - public java.lang.String getRemarkName() { - java.lang.Object ref = remarkName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - remarkName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string remarkName = 17;</code> - * @return The bytes for remarkName. - */ - public com.google.protobuf.ByteString - getRemarkNameBytes() { - java.lang.Object ref = remarkName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - remarkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string remarkName = 17;</code> - * @param value The remarkName to set. - * @return This builder for chaining. - */ - public Builder setRemarkName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - remarkName_ = value; - onChanged(); - return this; - } - /** - * <code>string remarkName = 17;</code> - * @return This builder for chaining. - */ - public Builder clearRemarkName() { - - remarkName_ = getDefaultInstance().getRemarkName(); - onChanged(); - return this; - } - /** - * <code>string remarkName = 17;</code> - * @param value The bytes for remarkName to set. - * @return This builder for chaining. - */ - public Builder setRemarkNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - remarkName_ = value; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo> showAvatarInfoList_ = - java.util.Collections.emptyList(); - private void ensureShowAvatarInfoListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - showAvatarInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo>(showAvatarInfoList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder> showAvatarInfoListBuilder_; - - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public java.util.List<emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo> getShowAvatarInfoListList() { - if (showAvatarInfoListBuilder_ == null) { - return java.util.Collections.unmodifiableList(showAvatarInfoList_); - } else { - return showAvatarInfoListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public int getShowAvatarInfoListCount() { - if (showAvatarInfoListBuilder_ == null) { - return showAvatarInfoList_.size(); - } else { - return showAvatarInfoListBuilder_.getCount(); - } - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo getShowAvatarInfoList(int index) { - if (showAvatarInfoListBuilder_ == null) { - return showAvatarInfoList_.get(index); - } else { - return showAvatarInfoListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public Builder setShowAvatarInfoList( - int index, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo value) { - if (showAvatarInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureShowAvatarInfoListIsMutable(); - showAvatarInfoList_.set(index, value); - onChanged(); - } else { - showAvatarInfoListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public Builder setShowAvatarInfoList( - int index, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder builderForValue) { - if (showAvatarInfoListBuilder_ == null) { - ensureShowAvatarInfoListIsMutable(); - showAvatarInfoList_.set(index, builderForValue.build()); - onChanged(); - } else { - showAvatarInfoListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public Builder addShowAvatarInfoList(emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo value) { - if (showAvatarInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureShowAvatarInfoListIsMutable(); - showAvatarInfoList_.add(value); - onChanged(); - } else { - showAvatarInfoListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public Builder addShowAvatarInfoList( - int index, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo value) { - if (showAvatarInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureShowAvatarInfoListIsMutable(); - showAvatarInfoList_.add(index, value); - onChanged(); - } else { - showAvatarInfoListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public Builder addShowAvatarInfoList( - emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder builderForValue) { - if (showAvatarInfoListBuilder_ == null) { - ensureShowAvatarInfoListIsMutable(); - showAvatarInfoList_.add(builderForValue.build()); - onChanged(); - } else { - showAvatarInfoListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public Builder addShowAvatarInfoList( - int index, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder builderForValue) { - if (showAvatarInfoListBuilder_ == null) { - ensureShowAvatarInfoListIsMutable(); - showAvatarInfoList_.add(index, builderForValue.build()); - onChanged(); - } else { - showAvatarInfoListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public Builder addAllShowAvatarInfoList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo> values) { - if (showAvatarInfoListBuilder_ == null) { - ensureShowAvatarInfoListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, showAvatarInfoList_); - onChanged(); - } else { - showAvatarInfoListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public Builder clearShowAvatarInfoList() { - if (showAvatarInfoListBuilder_ == null) { - showAvatarInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - showAvatarInfoListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public Builder removeShowAvatarInfoList(int index) { - if (showAvatarInfoListBuilder_ == null) { - ensureShowAvatarInfoListIsMutable(); - showAvatarInfoList_.remove(index); - onChanged(); - } else { - showAvatarInfoListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder getShowAvatarInfoListBuilder( - int index) { - return getShowAvatarInfoListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder getShowAvatarInfoListOrBuilder( - int index) { - if (showAvatarInfoListBuilder_ == null) { - return showAvatarInfoList_.get(index); } else { - return showAvatarInfoListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder> - getShowAvatarInfoListOrBuilderList() { - if (showAvatarInfoListBuilder_ != null) { - return showAvatarInfoListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(showAvatarInfoList_); - } - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder addShowAvatarInfoListBuilder() { - return getShowAvatarInfoListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.getDefaultInstance()); - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder addShowAvatarInfoListBuilder( - int index) { - return getShowAvatarInfoListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.getDefaultInstance()); - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public java.util.List<emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder> - getShowAvatarInfoListBuilderList() { - return getShowAvatarInfoListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder> - getShowAvatarInfoListFieldBuilder() { - if (showAvatarInfoListBuilder_ == null) { - showAvatarInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder>( - showAvatarInfoList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - showAvatarInfoList_ = null; - } - return showAvatarInfoListBuilder_; - } - - private int friendEnterHomeOption_ = 0; - /** - * <code>.FriendEnterHomeOption friendEnterHomeOption = 23;</code> - * @return The enum numeric value on the wire for friendEnterHomeOption. - */ - @java.lang.Override public int getFriendEnterHomeOptionValue() { - return friendEnterHomeOption_; - } - /** - * <code>.FriendEnterHomeOption friendEnterHomeOption = 23;</code> - * @param value The enum numeric value on the wire for friendEnterHomeOption to set. - * @return This builder for chaining. - */ - public Builder setFriendEnterHomeOptionValue(int value) { - - friendEnterHomeOption_ = value; - onChanged(); - return this; - } - /** - * <code>.FriendEnterHomeOption friendEnterHomeOption = 23;</code> - * @return The friendEnterHomeOption. - */ - @java.lang.Override - public emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption getFriendEnterHomeOption() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption result = emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption.valueOf(friendEnterHomeOption_); - return result == null ? emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption.UNRECOGNIZED : result; - } - /** - * <code>.FriendEnterHomeOption friendEnterHomeOption = 23;</code> - * @param value The friendEnterHomeOption to set. - * @return This builder for chaining. - */ - public Builder setFriendEnterHomeOption(emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption value) { - if (value == null) { - throw new NullPointerException(); - } - - friendEnterHomeOption_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.FriendEnterHomeOption friendEnterHomeOption = 23;</code> - * @return This builder for chaining. - */ - public Builder clearFriendEnterHomeOption() { - - friendEnterHomeOption_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage avatar_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder> avatarBuilder_; - /** - * <code>.HeadImage avatar = 24;</code> - * @return Whether the avatar field is set. - */ - public boolean hasAvatar() { - return avatarBuilder_ != null || avatar_ != null; - } - /** - * <code>.HeadImage avatar = 24;</code> - * @return The avatar. - */ - public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage getAvatar() { - if (avatarBuilder_ == null) { - return avatar_ == null ? emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.getDefaultInstance() : avatar_; - } else { - return avatarBuilder_.getMessage(); - } - } - /** - * <code>.HeadImage avatar = 24;</code> - */ - public Builder setAvatar(emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage value) { - if (avatarBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - avatar_ = value; - onChanged(); - } else { - avatarBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.HeadImage avatar = 24;</code> - */ - public Builder setAvatar( - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder builderForValue) { - if (avatarBuilder_ == null) { - avatar_ = builderForValue.build(); - onChanged(); - } else { - avatarBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.HeadImage avatar = 24;</code> - */ - public Builder mergeAvatar(emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage value) { - if (avatarBuilder_ == null) { - if (avatar_ != null) { - avatar_ = - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.newBuilder(avatar_).mergeFrom(value).buildPartial(); - } else { - avatar_ = value; - } - onChanged(); - } else { - avatarBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.HeadImage avatar = 24;</code> - */ - public Builder clearAvatar() { - if (avatarBuilder_ == null) { - avatar_ = null; - onChanged(); - } else { - avatar_ = null; - avatarBuilder_ = null; - } - - return this; - } - /** - * <code>.HeadImage avatar = 24;</code> - */ - public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder getAvatarBuilder() { - - onChanged(); - return getAvatarFieldBuilder().getBuilder(); - } - /** - * <code>.HeadImage avatar = 24;</code> - */ - public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder getAvatarOrBuilder() { - if (avatarBuilder_ != null) { - return avatarBuilder_.getMessageOrBuilder(); - } else { - return avatar_ == null ? - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.getDefaultInstance() : avatar_; - } - } - /** - * <code>.HeadImage avatar = 24;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder> - getAvatarFieldBuilder() { - if (avatarBuilder_ == null) { - avatarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder>( - getAvatar(), - getParentForChildren(), - isClean()); - avatar_ = null; - } - return avatarBuilder_; - } - - private int unk1_ ; - /** - * <code>uint32 unk1 = 25;</code> - * @return The unk1. - */ - @java.lang.Override - public int getUnk1() { - return unk1_; - } - /** - * <code>uint32 unk1 = 25;</code> - * @param value The unk1 to set. - * @return This builder for chaining. - */ - public Builder setUnk1(int value) { - - unk1_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 unk1 = 25;</code> - * @return This builder for chaining. - */ - public Builder clearUnk1() { - - unk1_ = 0; - onChanged(); - return this; - } - - private int unk2_ ; - /** - * <code>uint32 unk2 = 27;</code> - * @return The unk2. - */ - @java.lang.Override - public int getUnk2() { - return unk2_; - } - /** - * <code>uint32 unk2 = 27;</code> - * @param value The unk2 to set. - * @return This builder for chaining. - */ - public Builder setUnk2(int value) { - - unk2_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 unk2 = 27;</code> - * @return This builder for chaining. - */ - public Builder clearUnk2() { - - unk2_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:FriendBrief) - } - - // @@protoc_insertion_point(class_scope:FriendBrief) - private static final emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief(); - } - - public static emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<FriendBrief> - PARSER = new com.google.protobuf.AbstractParser<FriendBrief>() { - @java.lang.Override - public FriendBrief parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FriendBrief(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<FriendBrief> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<FriendBrief> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_FriendBrief_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_FriendBrief_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\021FriendBrief.proto\032\033FriendEnterHomeOpti" + - "on.proto\032\027FriendOnlineState.proto\032\017HeadI" + - "mage.proto\032\032SocialShowAvatarInfo.proto\"\355" + - "\003\n\013FriendBrief\022\013\n\003uid\030\001 \001(\r\022\020\n\010nickname\030" + - "\002 \001(\t\022\r\n\005level\030\003 \001(\r\022\022\n\nworldLevel\030\005 \001(\r" + - "\022\021\n\tsignature\030\006 \001(\t\022\'\n\013onlineState\030\007 \001(\016" + - "2\022.FriendOnlineState\022\r\n\005param\030\010 \001(\r\022\031\n\021i" + - "sMpModeAvailable\030\n \001(\010\022\020\n\010onlineId\030\013 \001(\t" + - "\022\026\n\016lastActiveTime\030\014 \001(\r\022\022\n\nnameCardId\030\r" + - " \001(\r\022\023\n\013mpPlayerNum\030\016 \001(\r\022\027\n\017isChatNoDis" + - "turb\030\017 \001(\010\022\024\n\014chatSequence\030\020 \001(\r\022\022\n\nrema" + - "rkName\030\021 \001(\t\0221\n\022showAvatarInfoList\030\026 \003(\013" + - "2\025.SocialShowAvatarInfo\0225\n\025friendEnterHo" + - "meOption\030\027 \001(\0162\026.FriendEnterHomeOption\022\032" + - "\n\006avatar\030\030 \001(\0132\n.HeadImage\022\014\n\004unk1\030\031 \001(\r" + - "\022\014\n\004unk2\030\033 \001(\rB\033\n\031emu.grasscutter.net.pr" + - "otob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.getDescriptor(), - emu.grasscutter.net.proto.FriendOnlineStateOuterClass.getDescriptor(), - emu.grasscutter.net.proto.HeadImageOuterClass.getDescriptor(), - emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.getDescriptor(), - }); - internal_static_FriendBrief_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_FriendBrief_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_FriendBrief_descriptor, - new java.lang.String[] { "Uid", "Nickname", "Level", "WorldLevel", "Signature", "OnlineState", "Param", "IsMpModeAvailable", "OnlineId", "LastActiveTime", "NameCardId", "MpPlayerNum", "IsChatNoDisturb", "ChatSequence", "RemarkName", "ShowAvatarInfoList", "FriendEnterHomeOption", "Avatar", "Unk1", "Unk2", }); - emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.getDescriptor(); - emu.grasscutter.net.proto.FriendOnlineStateOuterClass.getDescriptor(); - emu.grasscutter.net.proto.HeadImageOuterClass.getDescriptor(); - emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/FriendEnterHomeOptionOuterClass.java b/src/main/java/emu/grasscutter/net/proto/FriendEnterHomeOptionOuterClass.java deleted file mode 100644 index e87c08783..000000000 --- a/src/main/java/emu/grasscutter/net/proto/FriendEnterHomeOptionOuterClass.java +++ /dev/null @@ -1,155 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: FriendEnterHomeOption.proto - -package emu.grasscutter.net.proto; - -public final class FriendEnterHomeOptionOuterClass { - private FriendEnterHomeOptionOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code FriendEnterHomeOption} - */ - public enum FriendEnterHomeOption - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>NeedConfirm = 0;</code> - */ - NeedConfirm(0), - /** - * <code>Refuse = 1;</code> - */ - Refuse(1), - /** - * <code>Direct = 2;</code> - */ - Direct(2), - UNRECOGNIZED(-1), - ; - - /** - * <code>NeedConfirm = 0;</code> - */ - public static final int NeedConfirm_VALUE = 0; - /** - * <code>Refuse = 1;</code> - */ - public static final int Refuse_VALUE = 1; - /** - * <code>Direct = 2;</code> - */ - public static final int Direct_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static FriendEnterHomeOption valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static FriendEnterHomeOption forNumber(int value) { - switch (value) { - case 0: return NeedConfirm; - case 1: return Refuse; - case 2: return Direct; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<FriendEnterHomeOption> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - FriendEnterHomeOption> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<FriendEnterHomeOption>() { - public FriendEnterHomeOption findValueByNumber(int number) { - return FriendEnterHomeOption.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final FriendEnterHomeOption[] VALUES = values(); - - public static FriendEnterHomeOption valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private FriendEnterHomeOption(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:FriendEnterHomeOption) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033FriendEnterHomeOption.proto*@\n\025FriendE" + - "nterHomeOption\022\017\n\013NeedConfirm\020\000\022\n\n\006Refus" + - "e\020\001\022\n\n\006Direct\020\002B\033\n\031emu.grasscutter.net.p" + - "rotob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/FriendOnlineStateOuterClass.java b/src/main/java/emu/grasscutter/net/proto/FriendOnlineStateOuterClass.java deleted file mode 100644 index d1ce7e6e3..000000000 --- a/src/main/java/emu/grasscutter/net/proto/FriendOnlineStateOuterClass.java +++ /dev/null @@ -1,146 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: FriendOnlineState.proto - -package emu.grasscutter.net.proto; - -public final class FriendOnlineStateOuterClass { - private FriendOnlineStateOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code FriendOnlineState} - */ - public enum FriendOnlineState - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>FRIEND_DISCONNECT = 0;</code> - */ - FRIEND_DISCONNECT(0), - /** - * <code>FRIEND_ONLINE = 1;</code> - */ - FRIEND_ONLINE(1), - UNRECOGNIZED(-1), - ; - - /** - * <code>FRIEND_DISCONNECT = 0;</code> - */ - public static final int FRIEND_DISCONNECT_VALUE = 0; - /** - * <code>FRIEND_ONLINE = 1;</code> - */ - public static final int FRIEND_ONLINE_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static FriendOnlineState valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static FriendOnlineState forNumber(int value) { - switch (value) { - case 0: return FRIEND_DISCONNECT; - case 1: return FRIEND_ONLINE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<FriendOnlineState> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - FriendOnlineState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<FriendOnlineState>() { - public FriendOnlineState findValueByNumber(int number) { - return FriendOnlineState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.FriendOnlineStateOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final FriendOnlineState[] VALUES = values(); - - public static FriendOnlineState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private FriendOnlineState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:FriendOnlineState) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027FriendOnlineState.proto*=\n\021FriendOnlin" + - "eState\022\025\n\021FRIEND_DISCONNECT\020\000\022\021\n\rFRIEND_" + - "ONLINE\020\001B\033\n\031emu.grasscutter.net.protob\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/FurnitureOuterClass.java b/src/main/java/emu/grasscutter/net/proto/FurnitureOuterClass.java deleted file mode 100644 index 3463d6a95..000000000 --- a/src/main/java/emu/grasscutter/net/proto/FurnitureOuterClass.java +++ /dev/null @@ -1,536 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Furniture.proto - -package emu.grasscutter.net.proto; - -public final class FurnitureOuterClass { - private FurnitureOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface FurnitureOrBuilder extends - // @@protoc_insertion_point(interface_extends:Furniture) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 count = 1;</code> - * @return The count. - */ - int getCount(); - } - /** - * Protobuf type {@code Furniture} - */ - public static final class Furniture extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Furniture) - FurnitureOrBuilder { - private static final long serialVersionUID = 0L; - // Use Furniture.newBuilder() to construct. - private Furniture(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Furniture() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Furniture(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Furniture( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - count_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.FurnitureOuterClass.internal_static_Furniture_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.FurnitureOuterClass.internal_static_Furniture_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.class, emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.Builder.class); - } - - public static final int COUNT_FIELD_NUMBER = 1; - private int count_; - /** - * <code>uint32 count = 1;</code> - * @return The count. - */ - @java.lang.Override - public int getCount() { - return count_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (count_ != 0) { - output.writeUInt32(1, count_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (count_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, count_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.FurnitureOuterClass.Furniture)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.FurnitureOuterClass.Furniture other = (emu.grasscutter.net.proto.FurnitureOuterClass.Furniture) obj; - - if (getCount() - != other.getCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + getCount(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.FurnitureOuterClass.Furniture parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.FurnitureOuterClass.Furniture parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.FurnitureOuterClass.Furniture parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.FurnitureOuterClass.Furniture parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.FurnitureOuterClass.Furniture parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.FurnitureOuterClass.Furniture parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.FurnitureOuterClass.Furniture parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.FurnitureOuterClass.Furniture parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.FurnitureOuterClass.Furniture parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.FurnitureOuterClass.Furniture parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.FurnitureOuterClass.Furniture parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.FurnitureOuterClass.Furniture parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.FurnitureOuterClass.Furniture prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Furniture} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:Furniture) - emu.grasscutter.net.proto.FurnitureOuterClass.FurnitureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.FurnitureOuterClass.internal_static_Furniture_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.FurnitureOuterClass.internal_static_Furniture_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.class, emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - count_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.FurnitureOuterClass.internal_static_Furniture_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.FurnitureOuterClass.Furniture getDefaultInstanceForType() { - return emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.FurnitureOuterClass.Furniture build() { - emu.grasscutter.net.proto.FurnitureOuterClass.Furniture result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.FurnitureOuterClass.Furniture buildPartial() { - emu.grasscutter.net.proto.FurnitureOuterClass.Furniture result = new emu.grasscutter.net.proto.FurnitureOuterClass.Furniture(this); - result.count_ = count_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.FurnitureOuterClass.Furniture) { - return mergeFrom((emu.grasscutter.net.proto.FurnitureOuterClass.Furniture)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.FurnitureOuterClass.Furniture other) { - if (other == emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.getDefaultInstance()) return this; - if (other.getCount() != 0) { - setCount(other.getCount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.FurnitureOuterClass.Furniture parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.FurnitureOuterClass.Furniture) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int count_ ; - /** - * <code>uint32 count = 1;</code> - * @return The count. - */ - @java.lang.Override - public int getCount() { - return count_; - } - /** - * <code>uint32 count = 1;</code> - * @param value The count to set. - * @return This builder for chaining. - */ - public Builder setCount(int value) { - - count_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 count = 1;</code> - * @return This builder for chaining. - */ - public Builder clearCount() { - - count_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Furniture) - } - - // @@protoc_insertion_point(class_scope:Furniture) - private static final emu.grasscutter.net.proto.FurnitureOuterClass.Furniture DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.FurnitureOuterClass.Furniture(); - } - - public static emu.grasscutter.net.proto.FurnitureOuterClass.Furniture getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<Furniture> - PARSER = new com.google.protobuf.AbstractParser<Furniture>() { - @java.lang.Override - public Furniture parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Furniture(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<Furniture> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Furniture> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.FurnitureOuterClass.Furniture getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Furniture_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Furniture_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\017Furniture.proto\"\032\n\tFurniture\022\r\n\005count\030" + - "\001 \001(\rB\033\n\031emu.grasscutter.net.protob\006prot" + - "o3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_Furniture_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_Furniture_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Furniture_descriptor, - new java.lang.String[] { "Count", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GachaInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GachaInfoOuterClass.java deleted file mode 100644 index ce3d18fb1..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GachaInfoOuterClass.java +++ /dev/null @@ -1,3062 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GachaInfo.proto - -package emu.grasscutter.net.proto; - -public final class GachaInfoOuterClass { - private GachaInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GachaInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:GachaInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 gachaType = 1;</code> - * @return The gachaType. - */ - int getGachaType(); - - /** - * <code>uint32 scheduleId = 2;</code> - * @return The scheduleId. - */ - int getScheduleId(); - - /** - * <code>uint32 beginTime = 3;</code> - * @return The beginTime. - */ - int getBeginTime(); - - /** - * <code>uint32 endTime = 4;</code> - * @return The endTime. - */ - int getEndTime(); - - /** - * <code>uint32 costItemId = 5;</code> - * @return The costItemId. - */ - int getCostItemId(); - - /** - * <code>uint32 costItemNum = 6;</code> - * @return The costItemNum. - */ - int getCostItemNum(); - - /** - * <code>string gachaPrefabPath = 7;</code> - * @return The gachaPrefabPath. - */ - java.lang.String getGachaPrefabPath(); - /** - * <code>string gachaPrefabPath = 7;</code> - * @return The bytes for gachaPrefabPath. - */ - com.google.protobuf.ByteString - getGachaPrefabPathBytes(); - - /** - * <code>string gachaProbUrl = 8;</code> - * @return The gachaProbUrl. - */ - java.lang.String getGachaProbUrl(); - /** - * <code>string gachaProbUrl = 8;</code> - * @return The bytes for gachaProbUrl. - */ - com.google.protobuf.ByteString - getGachaProbUrlBytes(); - - /** - * <code>string gachaRecordUrl = 9;</code> - * @return The gachaRecordUrl. - */ - java.lang.String getGachaRecordUrl(); - /** - * <code>string gachaRecordUrl = 9;</code> - * @return The bytes for gachaRecordUrl. - */ - com.google.protobuf.ByteString - getGachaRecordUrlBytes(); - - /** - * <code>string gachaPreviewPrefabPath = 10;</code> - * @return The gachaPreviewPrefabPath. - */ - java.lang.String getGachaPreviewPrefabPath(); - /** - * <code>string gachaPreviewPrefabPath = 10;</code> - * @return The bytes for gachaPreviewPrefabPath. - */ - com.google.protobuf.ByteString - getGachaPreviewPrefabPathBytes(); - - /** - * <code>uint32 tenCostItemId = 11;</code> - * @return The tenCostItemId. - */ - int getTenCostItemId(); - - /** - * <code>uint32 tenCostItemNum = 12;</code> - * @return The tenCostItemNum. - */ - int getTenCostItemNum(); - - /** - * <code>uint32 leftGachaTimes = 13;</code> - * @return The leftGachaTimes. - */ - int getLeftGachaTimes(); - - /** - * <code>uint32 gachaTimesLimit = 14;</code> - * @return The gachaTimesLimit. - */ - int getGachaTimesLimit(); - - /** - * <code>uint32 gachaSortId = 15;</code> - * @return The gachaSortId. - */ - int getGachaSortId(); - - /** - * <code>string gachaProbUrlOversea = 16;</code> - * @return The gachaProbUrlOversea. - */ - java.lang.String getGachaProbUrlOversea(); - /** - * <code>string gachaProbUrlOversea = 16;</code> - * @return The bytes for gachaProbUrlOversea. - */ - com.google.protobuf.ByteString - getGachaProbUrlOverseaBytes(); - - /** - * <code>string gachaRecordUrlOversea = 17;</code> - * @return The gachaRecordUrlOversea. - */ - java.lang.String getGachaRecordUrlOversea(); - /** - * <code>string gachaRecordUrlOversea = 17;</code> - * @return The bytes for gachaRecordUrlOversea. - */ - com.google.protobuf.ByteString - getGachaRecordUrlOverseaBytes(); - - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - java.util.List<emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo> - getGachaUpInfoListList(); - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo getGachaUpInfoList(int index); - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - int getGachaUpInfoListCount(); - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfoOrBuilder> - getGachaUpInfoListOrBuilderList(); - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfoOrBuilder getGachaUpInfoListOrBuilder( - int index); - - /** - * <code>string gachaTitlePath = 19;</code> - * @return The gachaTitlePath. - */ - java.lang.String getGachaTitlePath(); - /** - * <code>string gachaTitlePath = 19;</code> - * @return The bytes for gachaTitlePath. - */ - com.google.protobuf.ByteString - getGachaTitlePathBytes(); - - /** - * <code>repeated uint32 mainNameId = 20;</code> - * @return A list containing the mainNameId. - */ - java.util.List<java.lang.Integer> getMainNameIdList(); - /** - * <code>repeated uint32 mainNameId = 20;</code> - * @return The count of mainNameId. - */ - int getMainNameIdCount(); - /** - * <code>repeated uint32 mainNameId = 20;</code> - * @param index The index of the element to return. - * @return The mainNameId at the given index. - */ - int getMainNameId(int index); - - /** - * <code>repeated uint32 subNameId = 21;</code> - * @return A list containing the subNameId. - */ - java.util.List<java.lang.Integer> getSubNameIdList(); - /** - * <code>repeated uint32 subNameId = 21;</code> - * @return The count of subNameId. - */ - int getSubNameIdCount(); - /** - * <code>repeated uint32 subNameId = 21;</code> - * @param index The index of the element to return. - * @return The subNameId at the given index. - */ - int getSubNameId(int index); - } - /** - * Protobuf type {@code GachaInfo} - */ - public static final class GachaInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GachaInfo) - GachaInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use GachaInfo.newBuilder() to construct. - private GachaInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GachaInfo() { - gachaPrefabPath_ = ""; - gachaProbUrl_ = ""; - gachaRecordUrl_ = ""; - gachaPreviewPrefabPath_ = ""; - gachaProbUrlOversea_ = ""; - gachaRecordUrlOversea_ = ""; - gachaUpInfoList_ = java.util.Collections.emptyList(); - gachaTitlePath_ = ""; - mainNameId_ = emptyIntList(); - subNameId_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GachaInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GachaInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - gachaType_ = input.readUInt32(); - break; - } - case 16: { - - scheduleId_ = input.readUInt32(); - break; - } - case 24: { - - beginTime_ = input.readUInt32(); - break; - } - case 32: { - - endTime_ = input.readUInt32(); - break; - } - case 40: { - - costItemId_ = input.readUInt32(); - break; - } - case 48: { - - costItemNum_ = input.readUInt32(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - gachaPrefabPath_ = s; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - gachaProbUrl_ = s; - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); - - gachaRecordUrl_ = s; - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - - gachaPreviewPrefabPath_ = s; - break; - } - case 88: { - - tenCostItemId_ = input.readUInt32(); - break; - } - case 96: { - - tenCostItemNum_ = input.readUInt32(); - break; - } - case 104: { - - leftGachaTimes_ = input.readUInt32(); - break; - } - case 112: { - - gachaTimesLimit_ = input.readUInt32(); - break; - } - case 120: { - - gachaSortId_ = input.readUInt32(); - break; - } - case 130: { - java.lang.String s = input.readStringRequireUtf8(); - - gachaProbUrlOversea_ = s; - break; - } - case 138: { - java.lang.String s = input.readStringRequireUtf8(); - - gachaRecordUrlOversea_ = s; - break; - } - case 146: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - gachaUpInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo>(); - mutable_bitField0_ |= 0x00000001; - } - gachaUpInfoList_.add( - input.readMessage(emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.parser(), extensionRegistry)); - break; - } - case 154: { - java.lang.String s = input.readStringRequireUtf8(); - - gachaTitlePath_ = s; - break; - } - case 160: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - mainNameId_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - mainNameId_.addInt(input.readUInt32()); - break; - } - case 162: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - mainNameId_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - mainNameId_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 168: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - subNameId_ = newIntList(); - mutable_bitField0_ |= 0x00000004; - } - subNameId_.addInt(input.readUInt32()); - break; - } - case 170: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) { - subNameId_ = newIntList(); - mutable_bitField0_ |= 0x00000004; - } - while (input.getBytesUntilLimit() > 0) { - subNameId_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - gachaUpInfoList_ = java.util.Collections.unmodifiableList(gachaUpInfoList_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - mainNameId_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - subNameId_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GachaInfoOuterClass.internal_static_GachaInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GachaInfoOuterClass.internal_static_GachaInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.class, emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.Builder.class); - } - - public static final int GACHATYPE_FIELD_NUMBER = 1; - private int gachaType_; - /** - * <code>uint32 gachaType = 1;</code> - * @return The gachaType. - */ - @java.lang.Override - public int getGachaType() { - return gachaType_; - } - - public static final int SCHEDULEID_FIELD_NUMBER = 2; - private int scheduleId_; - /** - * <code>uint32 scheduleId = 2;</code> - * @return The scheduleId. - */ - @java.lang.Override - public int getScheduleId() { - return scheduleId_; - } - - public static final int BEGINTIME_FIELD_NUMBER = 3; - private int beginTime_; - /** - * <code>uint32 beginTime = 3;</code> - * @return The beginTime. - */ - @java.lang.Override - public int getBeginTime() { - return beginTime_; - } - - public static final int ENDTIME_FIELD_NUMBER = 4; - private int endTime_; - /** - * <code>uint32 endTime = 4;</code> - * @return The endTime. - */ - @java.lang.Override - public int getEndTime() { - return endTime_; - } - - public static final int COSTITEMID_FIELD_NUMBER = 5; - private int costItemId_; - /** - * <code>uint32 costItemId = 5;</code> - * @return The costItemId. - */ - @java.lang.Override - public int getCostItemId() { - return costItemId_; - } - - public static final int COSTITEMNUM_FIELD_NUMBER = 6; - private int costItemNum_; - /** - * <code>uint32 costItemNum = 6;</code> - * @return The costItemNum. - */ - @java.lang.Override - public int getCostItemNum() { - return costItemNum_; - } - - public static final int GACHAPREFABPATH_FIELD_NUMBER = 7; - private volatile java.lang.Object gachaPrefabPath_; - /** - * <code>string gachaPrefabPath = 7;</code> - * @return The gachaPrefabPath. - */ - @java.lang.Override - public java.lang.String getGachaPrefabPath() { - java.lang.Object ref = gachaPrefabPath_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gachaPrefabPath_ = s; - return s; - } - } - /** - * <code>string gachaPrefabPath = 7;</code> - * @return The bytes for gachaPrefabPath. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getGachaPrefabPathBytes() { - java.lang.Object ref = gachaPrefabPath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gachaPrefabPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GACHAPROBURL_FIELD_NUMBER = 8; - private volatile java.lang.Object gachaProbUrl_; - /** - * <code>string gachaProbUrl = 8;</code> - * @return The gachaProbUrl. - */ - @java.lang.Override - public java.lang.String getGachaProbUrl() { - java.lang.Object ref = gachaProbUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gachaProbUrl_ = s; - return s; - } - } - /** - * <code>string gachaProbUrl = 8;</code> - * @return The bytes for gachaProbUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getGachaProbUrlBytes() { - java.lang.Object ref = gachaProbUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gachaProbUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GACHARECORDURL_FIELD_NUMBER = 9; - private volatile java.lang.Object gachaRecordUrl_; - /** - * <code>string gachaRecordUrl = 9;</code> - * @return The gachaRecordUrl. - */ - @java.lang.Override - public java.lang.String getGachaRecordUrl() { - java.lang.Object ref = gachaRecordUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gachaRecordUrl_ = s; - return s; - } - } - /** - * <code>string gachaRecordUrl = 9;</code> - * @return The bytes for gachaRecordUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getGachaRecordUrlBytes() { - java.lang.Object ref = gachaRecordUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gachaRecordUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GACHAPREVIEWPREFABPATH_FIELD_NUMBER = 10; - private volatile java.lang.Object gachaPreviewPrefabPath_; - /** - * <code>string gachaPreviewPrefabPath = 10;</code> - * @return The gachaPreviewPrefabPath. - */ - @java.lang.Override - public java.lang.String getGachaPreviewPrefabPath() { - java.lang.Object ref = gachaPreviewPrefabPath_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gachaPreviewPrefabPath_ = s; - return s; - } - } - /** - * <code>string gachaPreviewPrefabPath = 10;</code> - * @return The bytes for gachaPreviewPrefabPath. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getGachaPreviewPrefabPathBytes() { - java.lang.Object ref = gachaPreviewPrefabPath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gachaPreviewPrefabPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TENCOSTITEMID_FIELD_NUMBER = 11; - private int tenCostItemId_; - /** - * <code>uint32 tenCostItemId = 11;</code> - * @return The tenCostItemId. - */ - @java.lang.Override - public int getTenCostItemId() { - return tenCostItemId_; - } - - public static final int TENCOSTITEMNUM_FIELD_NUMBER = 12; - private int tenCostItemNum_; - /** - * <code>uint32 tenCostItemNum = 12;</code> - * @return The tenCostItemNum. - */ - @java.lang.Override - public int getTenCostItemNum() { - return tenCostItemNum_; - } - - public static final int LEFTGACHATIMES_FIELD_NUMBER = 13; - private int leftGachaTimes_; - /** - * <code>uint32 leftGachaTimes = 13;</code> - * @return The leftGachaTimes. - */ - @java.lang.Override - public int getLeftGachaTimes() { - return leftGachaTimes_; - } - - public static final int GACHATIMESLIMIT_FIELD_NUMBER = 14; - private int gachaTimesLimit_; - /** - * <code>uint32 gachaTimesLimit = 14;</code> - * @return The gachaTimesLimit. - */ - @java.lang.Override - public int getGachaTimesLimit() { - return gachaTimesLimit_; - } - - public static final int GACHASORTID_FIELD_NUMBER = 15; - private int gachaSortId_; - /** - * <code>uint32 gachaSortId = 15;</code> - * @return The gachaSortId. - */ - @java.lang.Override - public int getGachaSortId() { - return gachaSortId_; - } - - public static final int GACHAPROBURLOVERSEA_FIELD_NUMBER = 16; - private volatile java.lang.Object gachaProbUrlOversea_; - /** - * <code>string gachaProbUrlOversea = 16;</code> - * @return The gachaProbUrlOversea. - */ - @java.lang.Override - public java.lang.String getGachaProbUrlOversea() { - java.lang.Object ref = gachaProbUrlOversea_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gachaProbUrlOversea_ = s; - return s; - } - } - /** - * <code>string gachaProbUrlOversea = 16;</code> - * @return The bytes for gachaProbUrlOversea. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getGachaProbUrlOverseaBytes() { - java.lang.Object ref = gachaProbUrlOversea_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gachaProbUrlOversea_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GACHARECORDURLOVERSEA_FIELD_NUMBER = 17; - private volatile java.lang.Object gachaRecordUrlOversea_; - /** - * <code>string gachaRecordUrlOversea = 17;</code> - * @return The gachaRecordUrlOversea. - */ - @java.lang.Override - public java.lang.String getGachaRecordUrlOversea() { - java.lang.Object ref = gachaRecordUrlOversea_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gachaRecordUrlOversea_ = s; - return s; - } - } - /** - * <code>string gachaRecordUrlOversea = 17;</code> - * @return The bytes for gachaRecordUrlOversea. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getGachaRecordUrlOverseaBytes() { - java.lang.Object ref = gachaRecordUrlOversea_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gachaRecordUrlOversea_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GACHAUPINFOLIST_FIELD_NUMBER = 18; - private java.util.List<emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo> gachaUpInfoList_; - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo> getGachaUpInfoListList() { - return gachaUpInfoList_; - } - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfoOrBuilder> - getGachaUpInfoListOrBuilderList() { - return gachaUpInfoList_; - } - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - @java.lang.Override - public int getGachaUpInfoListCount() { - return gachaUpInfoList_.size(); - } - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo getGachaUpInfoList(int index) { - return gachaUpInfoList_.get(index); - } - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfoOrBuilder getGachaUpInfoListOrBuilder( - int index) { - return gachaUpInfoList_.get(index); - } - - public static final int GACHATITLEPATH_FIELD_NUMBER = 19; - private volatile java.lang.Object gachaTitlePath_; - /** - * <code>string gachaTitlePath = 19;</code> - * @return The gachaTitlePath. - */ - @java.lang.Override - public java.lang.String getGachaTitlePath() { - java.lang.Object ref = gachaTitlePath_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gachaTitlePath_ = s; - return s; - } - } - /** - * <code>string gachaTitlePath = 19;</code> - * @return The bytes for gachaTitlePath. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getGachaTitlePathBytes() { - java.lang.Object ref = gachaTitlePath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gachaTitlePath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MAINNAMEID_FIELD_NUMBER = 20; - private com.google.protobuf.Internal.IntList mainNameId_; - /** - * <code>repeated uint32 mainNameId = 20;</code> - * @return A list containing the mainNameId. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getMainNameIdList() { - return mainNameId_; - } - /** - * <code>repeated uint32 mainNameId = 20;</code> - * @return The count of mainNameId. - */ - public int getMainNameIdCount() { - return mainNameId_.size(); - } - /** - * <code>repeated uint32 mainNameId = 20;</code> - * @param index The index of the element to return. - * @return The mainNameId at the given index. - */ - public int getMainNameId(int index) { - return mainNameId_.getInt(index); - } - private int mainNameIdMemoizedSerializedSize = -1; - - public static final int SUBNAMEID_FIELD_NUMBER = 21; - private com.google.protobuf.Internal.IntList subNameId_; - /** - * <code>repeated uint32 subNameId = 21;</code> - * @return A list containing the subNameId. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getSubNameIdList() { - return subNameId_; - } - /** - * <code>repeated uint32 subNameId = 21;</code> - * @return The count of subNameId. - */ - public int getSubNameIdCount() { - return subNameId_.size(); - } - /** - * <code>repeated uint32 subNameId = 21;</code> - * @param index The index of the element to return. - * @return The subNameId at the given index. - */ - public int getSubNameId(int index) { - return subNameId_.getInt(index); - } - private int subNameIdMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (gachaType_ != 0) { - output.writeUInt32(1, gachaType_); - } - if (scheduleId_ != 0) { - output.writeUInt32(2, scheduleId_); - } - if (beginTime_ != 0) { - output.writeUInt32(3, beginTime_); - } - if (endTime_ != 0) { - output.writeUInt32(4, endTime_); - } - if (costItemId_ != 0) { - output.writeUInt32(5, costItemId_); - } - if (costItemNum_ != 0) { - output.writeUInt32(6, costItemNum_); - } - if (!getGachaPrefabPathBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, gachaPrefabPath_); - } - if (!getGachaProbUrlBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, gachaProbUrl_); - } - if (!getGachaRecordUrlBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, gachaRecordUrl_); - } - if (!getGachaPreviewPrefabPathBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, gachaPreviewPrefabPath_); - } - if (tenCostItemId_ != 0) { - output.writeUInt32(11, tenCostItemId_); - } - if (tenCostItemNum_ != 0) { - output.writeUInt32(12, tenCostItemNum_); - } - if (leftGachaTimes_ != 0) { - output.writeUInt32(13, leftGachaTimes_); - } - if (gachaTimesLimit_ != 0) { - output.writeUInt32(14, gachaTimesLimit_); - } - if (gachaSortId_ != 0) { - output.writeUInt32(15, gachaSortId_); - } - if (!getGachaProbUrlOverseaBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 16, gachaProbUrlOversea_); - } - if (!getGachaRecordUrlOverseaBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 17, gachaRecordUrlOversea_); - } - for (int i = 0; i < gachaUpInfoList_.size(); i++) { - output.writeMessage(18, gachaUpInfoList_.get(i)); - } - if (!getGachaTitlePathBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 19, gachaTitlePath_); - } - if (getMainNameIdList().size() > 0) { - output.writeUInt32NoTag(162); - output.writeUInt32NoTag(mainNameIdMemoizedSerializedSize); - } - for (int i = 0; i < mainNameId_.size(); i++) { - output.writeUInt32NoTag(mainNameId_.getInt(i)); - } - if (getSubNameIdList().size() > 0) { - output.writeUInt32NoTag(170); - output.writeUInt32NoTag(subNameIdMemoizedSerializedSize); - } - for (int i = 0; i < subNameId_.size(); i++) { - output.writeUInt32NoTag(subNameId_.getInt(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (gachaType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, gachaType_); - } - if (scheduleId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, scheduleId_); - } - if (beginTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, beginTime_); - } - if (endTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, endTime_); - } - if (costItemId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, costItemId_); - } - if (costItemNum_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, costItemNum_); - } - if (!getGachaPrefabPathBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, gachaPrefabPath_); - } - if (!getGachaProbUrlBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, gachaProbUrl_); - } - if (!getGachaRecordUrlBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, gachaRecordUrl_); - } - if (!getGachaPreviewPrefabPathBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, gachaPreviewPrefabPath_); - } - if (tenCostItemId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(11, tenCostItemId_); - } - if (tenCostItemNum_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(12, tenCostItemNum_); - } - if (leftGachaTimes_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(13, leftGachaTimes_); - } - if (gachaTimesLimit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(14, gachaTimesLimit_); - } - if (gachaSortId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(15, gachaSortId_); - } - if (!getGachaProbUrlOverseaBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, gachaProbUrlOversea_); - } - if (!getGachaRecordUrlOverseaBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, gachaRecordUrlOversea_); - } - for (int i = 0; i < gachaUpInfoList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, gachaUpInfoList_.get(i)); - } - if (!getGachaTitlePathBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, gachaTitlePath_); - } - { - int dataSize = 0; - for (int i = 0; i < mainNameId_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(mainNameId_.getInt(i)); - } - size += dataSize; - if (!getMainNameIdList().isEmpty()) { - size += 2; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - mainNameIdMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < subNameId_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(subNameId_.getInt(i)); - } - size += dataSize; - if (!getSubNameIdList().isEmpty()) { - size += 2; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - subNameIdMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo other = (emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo) obj; - - if (getGachaType() - != other.getGachaType()) return false; - if (getScheduleId() - != other.getScheduleId()) return false; - if (getBeginTime() - != other.getBeginTime()) return false; - if (getEndTime() - != other.getEndTime()) return false; - if (getCostItemId() - != other.getCostItemId()) return false; - if (getCostItemNum() - != other.getCostItemNum()) return false; - if (!getGachaPrefabPath() - .equals(other.getGachaPrefabPath())) return false; - if (!getGachaProbUrl() - .equals(other.getGachaProbUrl())) return false; - if (!getGachaRecordUrl() - .equals(other.getGachaRecordUrl())) return false; - if (!getGachaPreviewPrefabPath() - .equals(other.getGachaPreviewPrefabPath())) return false; - if (getTenCostItemId() - != other.getTenCostItemId()) return false; - if (getTenCostItemNum() - != other.getTenCostItemNum()) return false; - if (getLeftGachaTimes() - != other.getLeftGachaTimes()) return false; - if (getGachaTimesLimit() - != other.getGachaTimesLimit()) return false; - if (getGachaSortId() - != other.getGachaSortId()) return false; - if (!getGachaProbUrlOversea() - .equals(other.getGachaProbUrlOversea())) return false; - if (!getGachaRecordUrlOversea() - .equals(other.getGachaRecordUrlOversea())) return false; - if (!getGachaUpInfoListList() - .equals(other.getGachaUpInfoListList())) return false; - if (!getGachaTitlePath() - .equals(other.getGachaTitlePath())) return false; - if (!getMainNameIdList() - .equals(other.getMainNameIdList())) return false; - if (!getSubNameIdList() - .equals(other.getSubNameIdList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GACHATYPE_FIELD_NUMBER; - hash = (53 * hash) + getGachaType(); - hash = (37 * hash) + SCHEDULEID_FIELD_NUMBER; - hash = (53 * hash) + getScheduleId(); - hash = (37 * hash) + BEGINTIME_FIELD_NUMBER; - hash = (53 * hash) + getBeginTime(); - hash = (37 * hash) + ENDTIME_FIELD_NUMBER; - hash = (53 * hash) + getEndTime(); - hash = (37 * hash) + COSTITEMID_FIELD_NUMBER; - hash = (53 * hash) + getCostItemId(); - hash = (37 * hash) + COSTITEMNUM_FIELD_NUMBER; - hash = (53 * hash) + getCostItemNum(); - hash = (37 * hash) + GACHAPREFABPATH_FIELD_NUMBER; - hash = (53 * hash) + getGachaPrefabPath().hashCode(); - hash = (37 * hash) + GACHAPROBURL_FIELD_NUMBER; - hash = (53 * hash) + getGachaProbUrl().hashCode(); - hash = (37 * hash) + GACHARECORDURL_FIELD_NUMBER; - hash = (53 * hash) + getGachaRecordUrl().hashCode(); - hash = (37 * hash) + GACHAPREVIEWPREFABPATH_FIELD_NUMBER; - hash = (53 * hash) + getGachaPreviewPrefabPath().hashCode(); - hash = (37 * hash) + TENCOSTITEMID_FIELD_NUMBER; - hash = (53 * hash) + getTenCostItemId(); - hash = (37 * hash) + TENCOSTITEMNUM_FIELD_NUMBER; - hash = (53 * hash) + getTenCostItemNum(); - hash = (37 * hash) + LEFTGACHATIMES_FIELD_NUMBER; - hash = (53 * hash) + getLeftGachaTimes(); - hash = (37 * hash) + GACHATIMESLIMIT_FIELD_NUMBER; - hash = (53 * hash) + getGachaTimesLimit(); - hash = (37 * hash) + GACHASORTID_FIELD_NUMBER; - hash = (53 * hash) + getGachaSortId(); - hash = (37 * hash) + GACHAPROBURLOVERSEA_FIELD_NUMBER; - hash = (53 * hash) + getGachaProbUrlOversea().hashCode(); - hash = (37 * hash) + GACHARECORDURLOVERSEA_FIELD_NUMBER; - hash = (53 * hash) + getGachaRecordUrlOversea().hashCode(); - if (getGachaUpInfoListCount() > 0) { - hash = (37 * hash) + GACHAUPINFOLIST_FIELD_NUMBER; - hash = (53 * hash) + getGachaUpInfoListList().hashCode(); - } - hash = (37 * hash) + GACHATITLEPATH_FIELD_NUMBER; - hash = (53 * hash) + getGachaTitlePath().hashCode(); - if (getMainNameIdCount() > 0) { - hash = (37 * hash) + MAINNAMEID_FIELD_NUMBER; - hash = (53 * hash) + getMainNameIdList().hashCode(); - } - if (getSubNameIdCount() > 0) { - hash = (37 * hash) + SUBNAMEID_FIELD_NUMBER; - hash = (53 * hash) + getSubNameIdList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GachaInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GachaInfo) - emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GachaInfoOuterClass.internal_static_GachaInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GachaInfoOuterClass.internal_static_GachaInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.class, emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getGachaUpInfoListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - gachaType_ = 0; - - scheduleId_ = 0; - - beginTime_ = 0; - - endTime_ = 0; - - costItemId_ = 0; - - costItemNum_ = 0; - - gachaPrefabPath_ = ""; - - gachaProbUrl_ = ""; - - gachaRecordUrl_ = ""; - - gachaPreviewPrefabPath_ = ""; - - tenCostItemId_ = 0; - - tenCostItemNum_ = 0; - - leftGachaTimes_ = 0; - - gachaTimesLimit_ = 0; - - gachaSortId_ = 0; - - gachaProbUrlOversea_ = ""; - - gachaRecordUrlOversea_ = ""; - - if (gachaUpInfoListBuilder_ == null) { - gachaUpInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - gachaUpInfoListBuilder_.clear(); - } - gachaTitlePath_ = ""; - - mainNameId_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - subNameId_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GachaInfoOuterClass.internal_static_GachaInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo build() { - emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo buildPartial() { - emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo result = new emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo(this); - int from_bitField0_ = bitField0_; - result.gachaType_ = gachaType_; - result.scheduleId_ = scheduleId_; - result.beginTime_ = beginTime_; - result.endTime_ = endTime_; - result.costItemId_ = costItemId_; - result.costItemNum_ = costItemNum_; - result.gachaPrefabPath_ = gachaPrefabPath_; - result.gachaProbUrl_ = gachaProbUrl_; - result.gachaRecordUrl_ = gachaRecordUrl_; - result.gachaPreviewPrefabPath_ = gachaPreviewPrefabPath_; - result.tenCostItemId_ = tenCostItemId_; - result.tenCostItemNum_ = tenCostItemNum_; - result.leftGachaTimes_ = leftGachaTimes_; - result.gachaTimesLimit_ = gachaTimesLimit_; - result.gachaSortId_ = gachaSortId_; - result.gachaProbUrlOversea_ = gachaProbUrlOversea_; - result.gachaRecordUrlOversea_ = gachaRecordUrlOversea_; - if (gachaUpInfoListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - gachaUpInfoList_ = java.util.Collections.unmodifiableList(gachaUpInfoList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.gachaUpInfoList_ = gachaUpInfoList_; - } else { - result.gachaUpInfoList_ = gachaUpInfoListBuilder_.build(); - } - result.gachaTitlePath_ = gachaTitlePath_; - if (((bitField0_ & 0x00000002) != 0)) { - mainNameId_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.mainNameId_ = mainNameId_; - if (((bitField0_ & 0x00000004) != 0)) { - subNameId_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.subNameId_ = subNameId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo) { - return mergeFrom((emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo other) { - if (other == emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.getDefaultInstance()) return this; - if (other.getGachaType() != 0) { - setGachaType(other.getGachaType()); - } - if (other.getScheduleId() != 0) { - setScheduleId(other.getScheduleId()); - } - if (other.getBeginTime() != 0) { - setBeginTime(other.getBeginTime()); - } - if (other.getEndTime() != 0) { - setEndTime(other.getEndTime()); - } - if (other.getCostItemId() != 0) { - setCostItemId(other.getCostItemId()); - } - if (other.getCostItemNum() != 0) { - setCostItemNum(other.getCostItemNum()); - } - if (!other.getGachaPrefabPath().isEmpty()) { - gachaPrefabPath_ = other.gachaPrefabPath_; - onChanged(); - } - if (!other.getGachaProbUrl().isEmpty()) { - gachaProbUrl_ = other.gachaProbUrl_; - onChanged(); - } - if (!other.getGachaRecordUrl().isEmpty()) { - gachaRecordUrl_ = other.gachaRecordUrl_; - onChanged(); - } - if (!other.getGachaPreviewPrefabPath().isEmpty()) { - gachaPreviewPrefabPath_ = other.gachaPreviewPrefabPath_; - onChanged(); - } - if (other.getTenCostItemId() != 0) { - setTenCostItemId(other.getTenCostItemId()); - } - if (other.getTenCostItemNum() != 0) { - setTenCostItemNum(other.getTenCostItemNum()); - } - if (other.getLeftGachaTimes() != 0) { - setLeftGachaTimes(other.getLeftGachaTimes()); - } - if (other.getGachaTimesLimit() != 0) { - setGachaTimesLimit(other.getGachaTimesLimit()); - } - if (other.getGachaSortId() != 0) { - setGachaSortId(other.getGachaSortId()); - } - if (!other.getGachaProbUrlOversea().isEmpty()) { - gachaProbUrlOversea_ = other.gachaProbUrlOversea_; - onChanged(); - } - if (!other.getGachaRecordUrlOversea().isEmpty()) { - gachaRecordUrlOversea_ = other.gachaRecordUrlOversea_; - onChanged(); - } - if (gachaUpInfoListBuilder_ == null) { - if (!other.gachaUpInfoList_.isEmpty()) { - if (gachaUpInfoList_.isEmpty()) { - gachaUpInfoList_ = other.gachaUpInfoList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureGachaUpInfoListIsMutable(); - gachaUpInfoList_.addAll(other.gachaUpInfoList_); - } - onChanged(); - } - } else { - if (!other.gachaUpInfoList_.isEmpty()) { - if (gachaUpInfoListBuilder_.isEmpty()) { - gachaUpInfoListBuilder_.dispose(); - gachaUpInfoListBuilder_ = null; - gachaUpInfoList_ = other.gachaUpInfoList_; - bitField0_ = (bitField0_ & ~0x00000001); - gachaUpInfoListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGachaUpInfoListFieldBuilder() : null; - } else { - gachaUpInfoListBuilder_.addAllMessages(other.gachaUpInfoList_); - } - } - } - if (!other.getGachaTitlePath().isEmpty()) { - gachaTitlePath_ = other.gachaTitlePath_; - onChanged(); - } - if (!other.mainNameId_.isEmpty()) { - if (mainNameId_.isEmpty()) { - mainNameId_ = other.mainNameId_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMainNameIdIsMutable(); - mainNameId_.addAll(other.mainNameId_); - } - onChanged(); - } - if (!other.subNameId_.isEmpty()) { - if (subNameId_.isEmpty()) { - subNameId_ = other.subNameId_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureSubNameIdIsMutable(); - subNameId_.addAll(other.subNameId_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gachaType_ ; - /** - * <code>uint32 gachaType = 1;</code> - * @return The gachaType. - */ - @java.lang.Override - public int getGachaType() { - return gachaType_; - } - /** - * <code>uint32 gachaType = 1;</code> - * @param value The gachaType to set. - * @return This builder for chaining. - */ - public Builder setGachaType(int value) { - - gachaType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gachaType = 1;</code> - * @return This builder for chaining. - */ - public Builder clearGachaType() { - - gachaType_ = 0; - onChanged(); - return this; - } - - private int scheduleId_ ; - /** - * <code>uint32 scheduleId = 2;</code> - * @return The scheduleId. - */ - @java.lang.Override - public int getScheduleId() { - return scheduleId_; - } - /** - * <code>uint32 scheduleId = 2;</code> - * @param value The scheduleId to set. - * @return This builder for chaining. - */ - public Builder setScheduleId(int value) { - - scheduleId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 scheduleId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearScheduleId() { - - scheduleId_ = 0; - onChanged(); - return this; - } - - private int beginTime_ ; - /** - * <code>uint32 beginTime = 3;</code> - * @return The beginTime. - */ - @java.lang.Override - public int getBeginTime() { - return beginTime_; - } - /** - * <code>uint32 beginTime = 3;</code> - * @param value The beginTime to set. - * @return This builder for chaining. - */ - public Builder setBeginTime(int value) { - - beginTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 beginTime = 3;</code> - * @return This builder for chaining. - */ - public Builder clearBeginTime() { - - beginTime_ = 0; - onChanged(); - return this; - } - - private int endTime_ ; - /** - * <code>uint32 endTime = 4;</code> - * @return The endTime. - */ - @java.lang.Override - public int getEndTime() { - return endTime_; - } - /** - * <code>uint32 endTime = 4;</code> - * @param value The endTime to set. - * @return This builder for chaining. - */ - public Builder setEndTime(int value) { - - endTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 endTime = 4;</code> - * @return This builder for chaining. - */ - public Builder clearEndTime() { - - endTime_ = 0; - onChanged(); - return this; - } - - private int costItemId_ ; - /** - * <code>uint32 costItemId = 5;</code> - * @return The costItemId. - */ - @java.lang.Override - public int getCostItemId() { - return costItemId_; - } - /** - * <code>uint32 costItemId = 5;</code> - * @param value The costItemId to set. - * @return This builder for chaining. - */ - public Builder setCostItemId(int value) { - - costItemId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 costItemId = 5;</code> - * @return This builder for chaining. - */ - public Builder clearCostItemId() { - - costItemId_ = 0; - onChanged(); - return this; - } - - private int costItemNum_ ; - /** - * <code>uint32 costItemNum = 6;</code> - * @return The costItemNum. - */ - @java.lang.Override - public int getCostItemNum() { - return costItemNum_; - } - /** - * <code>uint32 costItemNum = 6;</code> - * @param value The costItemNum to set. - * @return This builder for chaining. - */ - public Builder setCostItemNum(int value) { - - costItemNum_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 costItemNum = 6;</code> - * @return This builder for chaining. - */ - public Builder clearCostItemNum() { - - costItemNum_ = 0; - onChanged(); - return this; - } - - private java.lang.Object gachaPrefabPath_ = ""; - /** - * <code>string gachaPrefabPath = 7;</code> - * @return The gachaPrefabPath. - */ - public java.lang.String getGachaPrefabPath() { - java.lang.Object ref = gachaPrefabPath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gachaPrefabPath_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string gachaPrefabPath = 7;</code> - * @return The bytes for gachaPrefabPath. - */ - public com.google.protobuf.ByteString - getGachaPrefabPathBytes() { - java.lang.Object ref = gachaPrefabPath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gachaPrefabPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string gachaPrefabPath = 7;</code> - * @param value The gachaPrefabPath to set. - * @return This builder for chaining. - */ - public Builder setGachaPrefabPath( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gachaPrefabPath_ = value; - onChanged(); - return this; - } - /** - * <code>string gachaPrefabPath = 7;</code> - * @return This builder for chaining. - */ - public Builder clearGachaPrefabPath() { - - gachaPrefabPath_ = getDefaultInstance().getGachaPrefabPath(); - onChanged(); - return this; - } - /** - * <code>string gachaPrefabPath = 7;</code> - * @param value The bytes for gachaPrefabPath to set. - * @return This builder for chaining. - */ - public Builder setGachaPrefabPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gachaPrefabPath_ = value; - onChanged(); - return this; - } - - private java.lang.Object gachaProbUrl_ = ""; - /** - * <code>string gachaProbUrl = 8;</code> - * @return The gachaProbUrl. - */ - public java.lang.String getGachaProbUrl() { - java.lang.Object ref = gachaProbUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gachaProbUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string gachaProbUrl = 8;</code> - * @return The bytes for gachaProbUrl. - */ - public com.google.protobuf.ByteString - getGachaProbUrlBytes() { - java.lang.Object ref = gachaProbUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gachaProbUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string gachaProbUrl = 8;</code> - * @param value The gachaProbUrl to set. - * @return This builder for chaining. - */ - public Builder setGachaProbUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gachaProbUrl_ = value; - onChanged(); - return this; - } - /** - * <code>string gachaProbUrl = 8;</code> - * @return This builder for chaining. - */ - public Builder clearGachaProbUrl() { - - gachaProbUrl_ = getDefaultInstance().getGachaProbUrl(); - onChanged(); - return this; - } - /** - * <code>string gachaProbUrl = 8;</code> - * @param value The bytes for gachaProbUrl to set. - * @return This builder for chaining. - */ - public Builder setGachaProbUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gachaProbUrl_ = value; - onChanged(); - return this; - } - - private java.lang.Object gachaRecordUrl_ = ""; - /** - * <code>string gachaRecordUrl = 9;</code> - * @return The gachaRecordUrl. - */ - public java.lang.String getGachaRecordUrl() { - java.lang.Object ref = gachaRecordUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gachaRecordUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string gachaRecordUrl = 9;</code> - * @return The bytes for gachaRecordUrl. - */ - public com.google.protobuf.ByteString - getGachaRecordUrlBytes() { - java.lang.Object ref = gachaRecordUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gachaRecordUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string gachaRecordUrl = 9;</code> - * @param value The gachaRecordUrl to set. - * @return This builder for chaining. - */ - public Builder setGachaRecordUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gachaRecordUrl_ = value; - onChanged(); - return this; - } - /** - * <code>string gachaRecordUrl = 9;</code> - * @return This builder for chaining. - */ - public Builder clearGachaRecordUrl() { - - gachaRecordUrl_ = getDefaultInstance().getGachaRecordUrl(); - onChanged(); - return this; - } - /** - * <code>string gachaRecordUrl = 9;</code> - * @param value The bytes for gachaRecordUrl to set. - * @return This builder for chaining. - */ - public Builder setGachaRecordUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gachaRecordUrl_ = value; - onChanged(); - return this; - } - - private java.lang.Object gachaPreviewPrefabPath_ = ""; - /** - * <code>string gachaPreviewPrefabPath = 10;</code> - * @return The gachaPreviewPrefabPath. - */ - public java.lang.String getGachaPreviewPrefabPath() { - java.lang.Object ref = gachaPreviewPrefabPath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gachaPreviewPrefabPath_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string gachaPreviewPrefabPath = 10;</code> - * @return The bytes for gachaPreviewPrefabPath. - */ - public com.google.protobuf.ByteString - getGachaPreviewPrefabPathBytes() { - java.lang.Object ref = gachaPreviewPrefabPath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gachaPreviewPrefabPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string gachaPreviewPrefabPath = 10;</code> - * @param value The gachaPreviewPrefabPath to set. - * @return This builder for chaining. - */ - public Builder setGachaPreviewPrefabPath( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gachaPreviewPrefabPath_ = value; - onChanged(); - return this; - } - /** - * <code>string gachaPreviewPrefabPath = 10;</code> - * @return This builder for chaining. - */ - public Builder clearGachaPreviewPrefabPath() { - - gachaPreviewPrefabPath_ = getDefaultInstance().getGachaPreviewPrefabPath(); - onChanged(); - return this; - } - /** - * <code>string gachaPreviewPrefabPath = 10;</code> - * @param value The bytes for gachaPreviewPrefabPath to set. - * @return This builder for chaining. - */ - public Builder setGachaPreviewPrefabPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gachaPreviewPrefabPath_ = value; - onChanged(); - return this; - } - - private int tenCostItemId_ ; - /** - * <code>uint32 tenCostItemId = 11;</code> - * @return The tenCostItemId. - */ - @java.lang.Override - public int getTenCostItemId() { - return tenCostItemId_; - } - /** - * <code>uint32 tenCostItemId = 11;</code> - * @param value The tenCostItemId to set. - * @return This builder for chaining. - */ - public Builder setTenCostItemId(int value) { - - tenCostItemId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 tenCostItemId = 11;</code> - * @return This builder for chaining. - */ - public Builder clearTenCostItemId() { - - tenCostItemId_ = 0; - onChanged(); - return this; - } - - private int tenCostItemNum_ ; - /** - * <code>uint32 tenCostItemNum = 12;</code> - * @return The tenCostItemNum. - */ - @java.lang.Override - public int getTenCostItemNum() { - return tenCostItemNum_; - } - /** - * <code>uint32 tenCostItemNum = 12;</code> - * @param value The tenCostItemNum to set. - * @return This builder for chaining. - */ - public Builder setTenCostItemNum(int value) { - - tenCostItemNum_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 tenCostItemNum = 12;</code> - * @return This builder for chaining. - */ - public Builder clearTenCostItemNum() { - - tenCostItemNum_ = 0; - onChanged(); - return this; - } - - private int leftGachaTimes_ ; - /** - * <code>uint32 leftGachaTimes = 13;</code> - * @return The leftGachaTimes. - */ - @java.lang.Override - public int getLeftGachaTimes() { - return leftGachaTimes_; - } - /** - * <code>uint32 leftGachaTimes = 13;</code> - * @param value The leftGachaTimes to set. - * @return This builder for chaining. - */ - public Builder setLeftGachaTimes(int value) { - - leftGachaTimes_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 leftGachaTimes = 13;</code> - * @return This builder for chaining. - */ - public Builder clearLeftGachaTimes() { - - leftGachaTimes_ = 0; - onChanged(); - return this; - } - - private int gachaTimesLimit_ ; - /** - * <code>uint32 gachaTimesLimit = 14;</code> - * @return The gachaTimesLimit. - */ - @java.lang.Override - public int getGachaTimesLimit() { - return gachaTimesLimit_; - } - /** - * <code>uint32 gachaTimesLimit = 14;</code> - * @param value The gachaTimesLimit to set. - * @return This builder for chaining. - */ - public Builder setGachaTimesLimit(int value) { - - gachaTimesLimit_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gachaTimesLimit = 14;</code> - * @return This builder for chaining. - */ - public Builder clearGachaTimesLimit() { - - gachaTimesLimit_ = 0; - onChanged(); - return this; - } - - private int gachaSortId_ ; - /** - * <code>uint32 gachaSortId = 15;</code> - * @return The gachaSortId. - */ - @java.lang.Override - public int getGachaSortId() { - return gachaSortId_; - } - /** - * <code>uint32 gachaSortId = 15;</code> - * @param value The gachaSortId to set. - * @return This builder for chaining. - */ - public Builder setGachaSortId(int value) { - - gachaSortId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gachaSortId = 15;</code> - * @return This builder for chaining. - */ - public Builder clearGachaSortId() { - - gachaSortId_ = 0; - onChanged(); - return this; - } - - private java.lang.Object gachaProbUrlOversea_ = ""; - /** - * <code>string gachaProbUrlOversea = 16;</code> - * @return The gachaProbUrlOversea. - */ - public java.lang.String getGachaProbUrlOversea() { - java.lang.Object ref = gachaProbUrlOversea_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gachaProbUrlOversea_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string gachaProbUrlOversea = 16;</code> - * @return The bytes for gachaProbUrlOversea. - */ - public com.google.protobuf.ByteString - getGachaProbUrlOverseaBytes() { - java.lang.Object ref = gachaProbUrlOversea_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gachaProbUrlOversea_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string gachaProbUrlOversea = 16;</code> - * @param value The gachaProbUrlOversea to set. - * @return This builder for chaining. - */ - public Builder setGachaProbUrlOversea( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gachaProbUrlOversea_ = value; - onChanged(); - return this; - } - /** - * <code>string gachaProbUrlOversea = 16;</code> - * @return This builder for chaining. - */ - public Builder clearGachaProbUrlOversea() { - - gachaProbUrlOversea_ = getDefaultInstance().getGachaProbUrlOversea(); - onChanged(); - return this; - } - /** - * <code>string gachaProbUrlOversea = 16;</code> - * @param value The bytes for gachaProbUrlOversea to set. - * @return This builder for chaining. - */ - public Builder setGachaProbUrlOverseaBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gachaProbUrlOversea_ = value; - onChanged(); - return this; - } - - private java.lang.Object gachaRecordUrlOversea_ = ""; - /** - * <code>string gachaRecordUrlOversea = 17;</code> - * @return The gachaRecordUrlOversea. - */ - public java.lang.String getGachaRecordUrlOversea() { - java.lang.Object ref = gachaRecordUrlOversea_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gachaRecordUrlOversea_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string gachaRecordUrlOversea = 17;</code> - * @return The bytes for gachaRecordUrlOversea. - */ - public com.google.protobuf.ByteString - getGachaRecordUrlOverseaBytes() { - java.lang.Object ref = gachaRecordUrlOversea_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gachaRecordUrlOversea_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string gachaRecordUrlOversea = 17;</code> - * @param value The gachaRecordUrlOversea to set. - * @return This builder for chaining. - */ - public Builder setGachaRecordUrlOversea( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gachaRecordUrlOversea_ = value; - onChanged(); - return this; - } - /** - * <code>string gachaRecordUrlOversea = 17;</code> - * @return This builder for chaining. - */ - public Builder clearGachaRecordUrlOversea() { - - gachaRecordUrlOversea_ = getDefaultInstance().getGachaRecordUrlOversea(); - onChanged(); - return this; - } - /** - * <code>string gachaRecordUrlOversea = 17;</code> - * @param value The bytes for gachaRecordUrlOversea to set. - * @return This builder for chaining. - */ - public Builder setGachaRecordUrlOverseaBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gachaRecordUrlOversea_ = value; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo> gachaUpInfoList_ = - java.util.Collections.emptyList(); - private void ensureGachaUpInfoListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - gachaUpInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo>(gachaUpInfoList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo, emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.Builder, emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfoOrBuilder> gachaUpInfoListBuilder_; - - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - public java.util.List<emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo> getGachaUpInfoListList() { - if (gachaUpInfoListBuilder_ == null) { - return java.util.Collections.unmodifiableList(gachaUpInfoList_); - } else { - return gachaUpInfoListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - public int getGachaUpInfoListCount() { - if (gachaUpInfoListBuilder_ == null) { - return gachaUpInfoList_.size(); - } else { - return gachaUpInfoListBuilder_.getCount(); - } - } - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - public emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo getGachaUpInfoList(int index) { - if (gachaUpInfoListBuilder_ == null) { - return gachaUpInfoList_.get(index); - } else { - return gachaUpInfoListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - public Builder setGachaUpInfoList( - int index, emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo value) { - if (gachaUpInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGachaUpInfoListIsMutable(); - gachaUpInfoList_.set(index, value); - onChanged(); - } else { - gachaUpInfoListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - public Builder setGachaUpInfoList( - int index, emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.Builder builderForValue) { - if (gachaUpInfoListBuilder_ == null) { - ensureGachaUpInfoListIsMutable(); - gachaUpInfoList_.set(index, builderForValue.build()); - onChanged(); - } else { - gachaUpInfoListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - public Builder addGachaUpInfoList(emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo value) { - if (gachaUpInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGachaUpInfoListIsMutable(); - gachaUpInfoList_.add(value); - onChanged(); - } else { - gachaUpInfoListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - public Builder addGachaUpInfoList( - int index, emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo value) { - if (gachaUpInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGachaUpInfoListIsMutable(); - gachaUpInfoList_.add(index, value); - onChanged(); - } else { - gachaUpInfoListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - public Builder addGachaUpInfoList( - emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.Builder builderForValue) { - if (gachaUpInfoListBuilder_ == null) { - ensureGachaUpInfoListIsMutable(); - gachaUpInfoList_.add(builderForValue.build()); - onChanged(); - } else { - gachaUpInfoListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - public Builder addGachaUpInfoList( - int index, emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.Builder builderForValue) { - if (gachaUpInfoListBuilder_ == null) { - ensureGachaUpInfoListIsMutable(); - gachaUpInfoList_.add(index, builderForValue.build()); - onChanged(); - } else { - gachaUpInfoListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - public Builder addAllGachaUpInfoList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo> values) { - if (gachaUpInfoListBuilder_ == null) { - ensureGachaUpInfoListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, gachaUpInfoList_); - onChanged(); - } else { - gachaUpInfoListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - public Builder clearGachaUpInfoList() { - if (gachaUpInfoListBuilder_ == null) { - gachaUpInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - gachaUpInfoListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - public Builder removeGachaUpInfoList(int index) { - if (gachaUpInfoListBuilder_ == null) { - ensureGachaUpInfoListIsMutable(); - gachaUpInfoList_.remove(index); - onChanged(); - } else { - gachaUpInfoListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - public emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.Builder getGachaUpInfoListBuilder( - int index) { - return getGachaUpInfoListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - public emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfoOrBuilder getGachaUpInfoListOrBuilder( - int index) { - if (gachaUpInfoListBuilder_ == null) { - return gachaUpInfoList_.get(index); } else { - return gachaUpInfoListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfoOrBuilder> - getGachaUpInfoListOrBuilderList() { - if (gachaUpInfoListBuilder_ != null) { - return gachaUpInfoListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(gachaUpInfoList_); - } - } - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - public emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.Builder addGachaUpInfoListBuilder() { - return getGachaUpInfoListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.getDefaultInstance()); - } - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - public emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.Builder addGachaUpInfoListBuilder( - int index) { - return getGachaUpInfoListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.getDefaultInstance()); - } - /** - * <code>repeated .GachaUpInfo gachaUpInfoList = 18;</code> - */ - public java.util.List<emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.Builder> - getGachaUpInfoListBuilderList() { - return getGachaUpInfoListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo, emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.Builder, emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfoOrBuilder> - getGachaUpInfoListFieldBuilder() { - if (gachaUpInfoListBuilder_ == null) { - gachaUpInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo, emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.Builder, emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfoOrBuilder>( - gachaUpInfoList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - gachaUpInfoList_ = null; - } - return gachaUpInfoListBuilder_; - } - - private java.lang.Object gachaTitlePath_ = ""; - /** - * <code>string gachaTitlePath = 19;</code> - * @return The gachaTitlePath. - */ - public java.lang.String getGachaTitlePath() { - java.lang.Object ref = gachaTitlePath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gachaTitlePath_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string gachaTitlePath = 19;</code> - * @return The bytes for gachaTitlePath. - */ - public com.google.protobuf.ByteString - getGachaTitlePathBytes() { - java.lang.Object ref = gachaTitlePath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gachaTitlePath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string gachaTitlePath = 19;</code> - * @param value The gachaTitlePath to set. - * @return This builder for chaining. - */ - public Builder setGachaTitlePath( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gachaTitlePath_ = value; - onChanged(); - return this; - } - /** - * <code>string gachaTitlePath = 19;</code> - * @return This builder for chaining. - */ - public Builder clearGachaTitlePath() { - - gachaTitlePath_ = getDefaultInstance().getGachaTitlePath(); - onChanged(); - return this; - } - /** - * <code>string gachaTitlePath = 19;</code> - * @param value The bytes for gachaTitlePath to set. - * @return This builder for chaining. - */ - public Builder setGachaTitlePathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gachaTitlePath_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList mainNameId_ = emptyIntList(); - private void ensureMainNameIdIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - mainNameId_ = mutableCopy(mainNameId_); - bitField0_ |= 0x00000002; - } - } - /** - * <code>repeated uint32 mainNameId = 20;</code> - * @return A list containing the mainNameId. - */ - public java.util.List<java.lang.Integer> - getMainNameIdList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(mainNameId_) : mainNameId_; - } - /** - * <code>repeated uint32 mainNameId = 20;</code> - * @return The count of mainNameId. - */ - public int getMainNameIdCount() { - return mainNameId_.size(); - } - /** - * <code>repeated uint32 mainNameId = 20;</code> - * @param index The index of the element to return. - * @return The mainNameId at the given index. - */ - public int getMainNameId(int index) { - return mainNameId_.getInt(index); - } - /** - * <code>repeated uint32 mainNameId = 20;</code> - * @param index The index to set the value at. - * @param value The mainNameId to set. - * @return This builder for chaining. - */ - public Builder setMainNameId( - int index, int value) { - ensureMainNameIdIsMutable(); - mainNameId_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 mainNameId = 20;</code> - * @param value The mainNameId to add. - * @return This builder for chaining. - */ - public Builder addMainNameId(int value) { - ensureMainNameIdIsMutable(); - mainNameId_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 mainNameId = 20;</code> - * @param values The mainNameId to add. - * @return This builder for chaining. - */ - public Builder addAllMainNameId( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureMainNameIdIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, mainNameId_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 mainNameId = 20;</code> - * @return This builder for chaining. - */ - public Builder clearMainNameId() { - mainNameId_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList subNameId_ = emptyIntList(); - private void ensureSubNameIdIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - subNameId_ = mutableCopy(subNameId_); - bitField0_ |= 0x00000004; - } - } - /** - * <code>repeated uint32 subNameId = 21;</code> - * @return A list containing the subNameId. - */ - public java.util.List<java.lang.Integer> - getSubNameIdList() { - return ((bitField0_ & 0x00000004) != 0) ? - java.util.Collections.unmodifiableList(subNameId_) : subNameId_; - } - /** - * <code>repeated uint32 subNameId = 21;</code> - * @return The count of subNameId. - */ - public int getSubNameIdCount() { - return subNameId_.size(); - } - /** - * <code>repeated uint32 subNameId = 21;</code> - * @param index The index of the element to return. - * @return The subNameId at the given index. - */ - public int getSubNameId(int index) { - return subNameId_.getInt(index); - } - /** - * <code>repeated uint32 subNameId = 21;</code> - * @param index The index to set the value at. - * @param value The subNameId to set. - * @return This builder for chaining. - */ - public Builder setSubNameId( - int index, int value) { - ensureSubNameIdIsMutable(); - subNameId_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 subNameId = 21;</code> - * @param value The subNameId to add. - * @return This builder for chaining. - */ - public Builder addSubNameId(int value) { - ensureSubNameIdIsMutable(); - subNameId_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 subNameId = 21;</code> - * @param values The subNameId to add. - * @return This builder for chaining. - */ - public Builder addAllSubNameId( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureSubNameIdIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, subNameId_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 subNameId = 21;</code> - * @return This builder for chaining. - */ - public Builder clearSubNameId() { - subNameId_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GachaInfo) - } - - // @@protoc_insertion_point(class_scope:GachaInfo) - private static final emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo(); - } - - public static emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GachaInfo> - PARSER = new com.google.protobuf.AbstractParser<GachaInfo>() { - @java.lang.Override - public GachaInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GachaInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GachaInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GachaInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GachaInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GachaInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\017GachaInfo.proto\032\021GachaUpInfo.proto\"\375\003\n" + - "\tGachaInfo\022\021\n\tgachaType\030\001 \001(\r\022\022\n\nschedul" + - "eId\030\002 \001(\r\022\021\n\tbeginTime\030\003 \001(\r\022\017\n\007endTime\030" + - "\004 \001(\r\022\022\n\ncostItemId\030\005 \001(\r\022\023\n\013costItemNum" + - "\030\006 \001(\r\022\027\n\017gachaPrefabPath\030\007 \001(\t\022\024\n\014gacha" + - "ProbUrl\030\010 \001(\t\022\026\n\016gachaRecordUrl\030\t \001(\t\022\036\n" + - "\026gachaPreviewPrefabPath\030\n \001(\t\022\025\n\rtenCost" + - "ItemId\030\013 \001(\r\022\026\n\016tenCostItemNum\030\014 \001(\r\022\026\n\016" + - "leftGachaTimes\030\r \001(\r\022\027\n\017gachaTimesLimit\030" + - "\016 \001(\r\022\023\n\013gachaSortId\030\017 \001(\r\022\033\n\023gachaProbU" + - "rlOversea\030\020 \001(\t\022\035\n\025gachaRecordUrlOversea" + - "\030\021 \001(\t\022%\n\017gachaUpInfoList\030\022 \003(\0132\014.GachaU" + - "pInfo\022\026\n\016gachaTitlePath\030\023 \001(\t\022\022\n\nmainNam" + - "eId\030\024 \003(\r\022\021\n\tsubNameId\030\025 \003(\rB\033\n\031emu.gras" + - "scutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.GachaUpInfoOuterClass.getDescriptor(), - }); - internal_static_GachaInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GachaInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GachaInfo_descriptor, - new java.lang.String[] { "GachaType", "ScheduleId", "BeginTime", "EndTime", "CostItemId", "CostItemNum", "GachaPrefabPath", "GachaProbUrl", "GachaRecordUrl", "GachaPreviewPrefabPath", "TenCostItemId", "TenCostItemNum", "LeftGachaTimes", "GachaTimesLimit", "GachaSortId", "GachaProbUrlOversea", "GachaRecordUrlOversea", "GachaUpInfoList", "GachaTitlePath", "MainNameId", "SubNameId", }); - emu.grasscutter.net.proto.GachaUpInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GachaItemOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GachaItemOuterClass.java deleted file mode 100644 index 432275dad..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GachaItemOuterClass.java +++ /dev/null @@ -1,1566 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GachaItem.proto - -package emu.grasscutter.net.proto; - -public final class GachaItemOuterClass { - private GachaItemOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GachaItemOrBuilder extends - // @@protoc_insertion_point(interface_extends:GachaItem) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.ItemParam gachaItem = 1;</code> - * @return Whether the gachaItem field is set. - */ - boolean hasGachaItem(); - /** - * <code>.ItemParam gachaItem = 1;</code> - * @return The gachaItem. - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getGachaItem(); - /** - * <code>.ItemParam gachaItem = 1;</code> - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getGachaItemOrBuilder(); - - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - java.util.List<emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem> - getTransferItemsList(); - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem getTransferItems(int index); - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - int getTransferItemsCount(); - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItemOrBuilder> - getTransferItemsOrBuilderList(); - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItemOrBuilder getTransferItemsOrBuilder( - int index); - - /** - * <code>bool isFlashCard = 3;</code> - * @return The isFlashCard. - */ - boolean getIsFlashCard(); - - /** - * <code>bool isGachaItemNew = 4;</code> - * @return The isGachaItemNew. - */ - boolean getIsGachaItemNew(); - - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> - getTokenItemListList(); - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getTokenItemList(int index); - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - int getTokenItemListCount(); - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getTokenItemListOrBuilderList(); - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getTokenItemListOrBuilder( - int index); - } - /** - * Protobuf type {@code GachaItem} - */ - public static final class GachaItem extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GachaItem) - GachaItemOrBuilder { - private static final long serialVersionUID = 0L; - // Use GachaItem.newBuilder() to construct. - private GachaItem(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GachaItem() { - transferItems_ = java.util.Collections.emptyList(); - tokenItemList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GachaItem(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GachaItem( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder subBuilder = null; - if (gachaItem_ != null) { - subBuilder = gachaItem_.toBuilder(); - } - gachaItem_ = input.readMessage(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gachaItem_); - gachaItem_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - transferItems_ = new java.util.ArrayList<emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem>(); - mutable_bitField0_ |= 0x00000001; - } - transferItems_.add( - input.readMessage(emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.parser(), extensionRegistry)); - break; - } - case 24: { - - isFlashCard_ = input.readBool(); - break; - } - case 32: { - - isGachaItemNew_ = input.readBool(); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - tokenItemList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>(); - mutable_bitField0_ |= 0x00000002; - } - tokenItemList_.add( - input.readMessage(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - transferItems_ = java.util.Collections.unmodifiableList(transferItems_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - tokenItemList_ = java.util.Collections.unmodifiableList(tokenItemList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GachaItemOuterClass.internal_static_GachaItem_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GachaItemOuterClass.internal_static_GachaItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.class, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder.class); - } - - public static final int GACHAITEM_FIELD_NUMBER = 1; - private emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam gachaItem_; - /** - * <code>.ItemParam gachaItem = 1;</code> - * @return Whether the gachaItem field is set. - */ - @java.lang.Override - public boolean hasGachaItem() { - return gachaItem_ != null; - } - /** - * <code>.ItemParam gachaItem = 1;</code> - * @return The gachaItem. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getGachaItem() { - return gachaItem_ == null ? emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance() : gachaItem_; - } - /** - * <code>.ItemParam gachaItem = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getGachaItemOrBuilder() { - return getGachaItem(); - } - - public static final int TRANSFERITEMS_FIELD_NUMBER = 2; - private java.util.List<emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem> transferItems_; - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem> getTransferItemsList() { - return transferItems_; - } - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItemOrBuilder> - getTransferItemsOrBuilderList() { - return transferItems_; - } - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - @java.lang.Override - public int getTransferItemsCount() { - return transferItems_.size(); - } - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem getTransferItems(int index) { - return transferItems_.get(index); - } - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItemOrBuilder getTransferItemsOrBuilder( - int index) { - return transferItems_.get(index); - } - - public static final int ISFLASHCARD_FIELD_NUMBER = 3; - private boolean isFlashCard_; - /** - * <code>bool isFlashCard = 3;</code> - * @return The isFlashCard. - */ - @java.lang.Override - public boolean getIsFlashCard() { - return isFlashCard_; - } - - public static final int ISGACHAITEMNEW_FIELD_NUMBER = 4; - private boolean isGachaItemNew_; - /** - * <code>bool isGachaItemNew = 4;</code> - * @return The isGachaItemNew. - */ - @java.lang.Override - public boolean getIsGachaItemNew() { - return isGachaItemNew_; - } - - public static final int TOKENITEMLIST_FIELD_NUMBER = 5; - private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> tokenItemList_; - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getTokenItemListList() { - return tokenItemList_; - } - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getTokenItemListOrBuilderList() { - return tokenItemList_; - } - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - @java.lang.Override - public int getTokenItemListCount() { - return tokenItemList_.size(); - } - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getTokenItemList(int index) { - return tokenItemList_.get(index); - } - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getTokenItemListOrBuilder( - int index) { - return tokenItemList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (gachaItem_ != null) { - output.writeMessage(1, getGachaItem()); - } - for (int i = 0; i < transferItems_.size(); i++) { - output.writeMessage(2, transferItems_.get(i)); - } - if (isFlashCard_ != false) { - output.writeBool(3, isFlashCard_); - } - if (isGachaItemNew_ != false) { - output.writeBool(4, isGachaItemNew_); - } - for (int i = 0; i < tokenItemList_.size(); i++) { - output.writeMessage(5, tokenItemList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (gachaItem_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getGachaItem()); - } - for (int i = 0; i < transferItems_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, transferItems_.get(i)); - } - if (isFlashCard_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, isFlashCard_); - } - if (isGachaItemNew_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, isGachaItemNew_); - } - for (int i = 0; i < tokenItemList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, tokenItemList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem other = (emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem) obj; - - if (hasGachaItem() != other.hasGachaItem()) return false; - if (hasGachaItem()) { - if (!getGachaItem() - .equals(other.getGachaItem())) return false; - } - if (!getTransferItemsList() - .equals(other.getTransferItemsList())) return false; - if (getIsFlashCard() - != other.getIsFlashCard()) return false; - if (getIsGachaItemNew() - != other.getIsGachaItemNew()) return false; - if (!getTokenItemListList() - .equals(other.getTokenItemListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasGachaItem()) { - hash = (37 * hash) + GACHAITEM_FIELD_NUMBER; - hash = (53 * hash) + getGachaItem().hashCode(); - } - if (getTransferItemsCount() > 0) { - hash = (37 * hash) + TRANSFERITEMS_FIELD_NUMBER; - hash = (53 * hash) + getTransferItemsList().hashCode(); - } - hash = (37 * hash) + ISFLASHCARD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsFlashCard()); - hash = (37 * hash) + ISGACHAITEMNEW_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsGachaItemNew()); - if (getTokenItemListCount() > 0) { - hash = (37 * hash) + TOKENITEMLIST_FIELD_NUMBER; - hash = (53 * hash) + getTokenItemListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GachaItem} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GachaItem) - emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GachaItemOuterClass.internal_static_GachaItem_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GachaItemOuterClass.internal_static_GachaItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.class, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTransferItemsFieldBuilder(); - getTokenItemListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (gachaItemBuilder_ == null) { - gachaItem_ = null; - } else { - gachaItem_ = null; - gachaItemBuilder_ = null; - } - if (transferItemsBuilder_ == null) { - transferItems_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - transferItemsBuilder_.clear(); - } - isFlashCard_ = false; - - isGachaItemNew_ = false; - - if (tokenItemListBuilder_ == null) { - tokenItemList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - tokenItemListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GachaItemOuterClass.internal_static_GachaItem_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem build() { - emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem buildPartial() { - emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem result = new emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem(this); - int from_bitField0_ = bitField0_; - if (gachaItemBuilder_ == null) { - result.gachaItem_ = gachaItem_; - } else { - result.gachaItem_ = gachaItemBuilder_.build(); - } - if (transferItemsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - transferItems_ = java.util.Collections.unmodifiableList(transferItems_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.transferItems_ = transferItems_; - } else { - result.transferItems_ = transferItemsBuilder_.build(); - } - result.isFlashCard_ = isFlashCard_; - result.isGachaItemNew_ = isGachaItemNew_; - if (tokenItemListBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - tokenItemList_ = java.util.Collections.unmodifiableList(tokenItemList_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.tokenItemList_ = tokenItemList_; - } else { - result.tokenItemList_ = tokenItemListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem) { - return mergeFrom((emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem other) { - if (other == emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.getDefaultInstance()) return this; - if (other.hasGachaItem()) { - mergeGachaItem(other.getGachaItem()); - } - if (transferItemsBuilder_ == null) { - if (!other.transferItems_.isEmpty()) { - if (transferItems_.isEmpty()) { - transferItems_ = other.transferItems_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTransferItemsIsMutable(); - transferItems_.addAll(other.transferItems_); - } - onChanged(); - } - } else { - if (!other.transferItems_.isEmpty()) { - if (transferItemsBuilder_.isEmpty()) { - transferItemsBuilder_.dispose(); - transferItemsBuilder_ = null; - transferItems_ = other.transferItems_; - bitField0_ = (bitField0_ & ~0x00000001); - transferItemsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTransferItemsFieldBuilder() : null; - } else { - transferItemsBuilder_.addAllMessages(other.transferItems_); - } - } - } - if (other.getIsFlashCard() != false) { - setIsFlashCard(other.getIsFlashCard()); - } - if (other.getIsGachaItemNew() != false) { - setIsGachaItemNew(other.getIsGachaItemNew()); - } - if (tokenItemListBuilder_ == null) { - if (!other.tokenItemList_.isEmpty()) { - if (tokenItemList_.isEmpty()) { - tokenItemList_ = other.tokenItemList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureTokenItemListIsMutable(); - tokenItemList_.addAll(other.tokenItemList_); - } - onChanged(); - } - } else { - if (!other.tokenItemList_.isEmpty()) { - if (tokenItemListBuilder_.isEmpty()) { - tokenItemListBuilder_.dispose(); - tokenItemListBuilder_ = null; - tokenItemList_ = other.tokenItemList_; - bitField0_ = (bitField0_ & ~0x00000002); - tokenItemListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTokenItemListFieldBuilder() : null; - } else { - tokenItemListBuilder_.addAllMessages(other.tokenItemList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam gachaItem_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> gachaItemBuilder_; - /** - * <code>.ItemParam gachaItem = 1;</code> - * @return Whether the gachaItem field is set. - */ - public boolean hasGachaItem() { - return gachaItemBuilder_ != null || gachaItem_ != null; - } - /** - * <code>.ItemParam gachaItem = 1;</code> - * @return The gachaItem. - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getGachaItem() { - if (gachaItemBuilder_ == null) { - return gachaItem_ == null ? emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance() : gachaItem_; - } else { - return gachaItemBuilder_.getMessage(); - } - } - /** - * <code>.ItemParam gachaItem = 1;</code> - */ - public Builder setGachaItem(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (gachaItemBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gachaItem_ = value; - onChanged(); - } else { - gachaItemBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.ItemParam gachaItem = 1;</code> - */ - public Builder setGachaItem( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (gachaItemBuilder_ == null) { - gachaItem_ = builderForValue.build(); - onChanged(); - } else { - gachaItemBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.ItemParam gachaItem = 1;</code> - */ - public Builder mergeGachaItem(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (gachaItemBuilder_ == null) { - if (gachaItem_ != null) { - gachaItem_ = - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.newBuilder(gachaItem_).mergeFrom(value).buildPartial(); - } else { - gachaItem_ = value; - } - onChanged(); - } else { - gachaItemBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.ItemParam gachaItem = 1;</code> - */ - public Builder clearGachaItem() { - if (gachaItemBuilder_ == null) { - gachaItem_ = null; - onChanged(); - } else { - gachaItem_ = null; - gachaItemBuilder_ = null; - } - - return this; - } - /** - * <code>.ItemParam gachaItem = 1;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getGachaItemBuilder() { - - onChanged(); - return getGachaItemFieldBuilder().getBuilder(); - } - /** - * <code>.ItemParam gachaItem = 1;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getGachaItemOrBuilder() { - if (gachaItemBuilder_ != null) { - return gachaItemBuilder_.getMessageOrBuilder(); - } else { - return gachaItem_ == null ? - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance() : gachaItem_; - } - } - /** - * <code>.ItemParam gachaItem = 1;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getGachaItemFieldBuilder() { - if (gachaItemBuilder_ == null) { - gachaItemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>( - getGachaItem(), - getParentForChildren(), - isClean()); - gachaItem_ = null; - } - return gachaItemBuilder_; - } - - private java.util.List<emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem> transferItems_ = - java.util.Collections.emptyList(); - private void ensureTransferItemsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - transferItems_ = new java.util.ArrayList<emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem>(transferItems_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem, emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.Builder, emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItemOrBuilder> transferItemsBuilder_; - - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem> getTransferItemsList() { - if (transferItemsBuilder_ == null) { - return java.util.Collections.unmodifiableList(transferItems_); - } else { - return transferItemsBuilder_.getMessageList(); - } - } - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - public int getTransferItemsCount() { - if (transferItemsBuilder_ == null) { - return transferItems_.size(); - } else { - return transferItemsBuilder_.getCount(); - } - } - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - public emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem getTransferItems(int index) { - if (transferItemsBuilder_ == null) { - return transferItems_.get(index); - } else { - return transferItemsBuilder_.getMessage(index); - } - } - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - public Builder setTransferItems( - int index, emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem value) { - if (transferItemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransferItemsIsMutable(); - transferItems_.set(index, value); - onChanged(); - } else { - transferItemsBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - public Builder setTransferItems( - int index, emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.Builder builderForValue) { - if (transferItemsBuilder_ == null) { - ensureTransferItemsIsMutable(); - transferItems_.set(index, builderForValue.build()); - onChanged(); - } else { - transferItemsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - public Builder addTransferItems(emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem value) { - if (transferItemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransferItemsIsMutable(); - transferItems_.add(value); - onChanged(); - } else { - transferItemsBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - public Builder addTransferItems( - int index, emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem value) { - if (transferItemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransferItemsIsMutable(); - transferItems_.add(index, value); - onChanged(); - } else { - transferItemsBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - public Builder addTransferItems( - emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.Builder builderForValue) { - if (transferItemsBuilder_ == null) { - ensureTransferItemsIsMutable(); - transferItems_.add(builderForValue.build()); - onChanged(); - } else { - transferItemsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - public Builder addTransferItems( - int index, emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.Builder builderForValue) { - if (transferItemsBuilder_ == null) { - ensureTransferItemsIsMutable(); - transferItems_.add(index, builderForValue.build()); - onChanged(); - } else { - transferItemsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - public Builder addAllTransferItems( - java.lang.Iterable<? extends emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem> values) { - if (transferItemsBuilder_ == null) { - ensureTransferItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, transferItems_); - onChanged(); - } else { - transferItemsBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - public Builder clearTransferItems() { - if (transferItemsBuilder_ == null) { - transferItems_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - transferItemsBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - public Builder removeTransferItems(int index) { - if (transferItemsBuilder_ == null) { - ensureTransferItemsIsMutable(); - transferItems_.remove(index); - onChanged(); - } else { - transferItemsBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - public emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.Builder getTransferItemsBuilder( - int index) { - return getTransferItemsFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - public emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItemOrBuilder getTransferItemsOrBuilder( - int index) { - if (transferItemsBuilder_ == null) { - return transferItems_.get(index); } else { - return transferItemsBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItemOrBuilder> - getTransferItemsOrBuilderList() { - if (transferItemsBuilder_ != null) { - return transferItemsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(transferItems_); - } - } - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - public emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.Builder addTransferItemsBuilder() { - return getTransferItemsFieldBuilder().addBuilder( - emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.getDefaultInstance()); - } - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - public emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.Builder addTransferItemsBuilder( - int index) { - return getTransferItemsFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.getDefaultInstance()); - } - /** - * <code>repeated .GachaTransferItem transferItems = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.Builder> - getTransferItemsBuilderList() { - return getTransferItemsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem, emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.Builder, emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItemOrBuilder> - getTransferItemsFieldBuilder() { - if (transferItemsBuilder_ == null) { - transferItemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem, emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.Builder, emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItemOrBuilder>( - transferItems_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - transferItems_ = null; - } - return transferItemsBuilder_; - } - - private boolean isFlashCard_ ; - /** - * <code>bool isFlashCard = 3;</code> - * @return The isFlashCard. - */ - @java.lang.Override - public boolean getIsFlashCard() { - return isFlashCard_; - } - /** - * <code>bool isFlashCard = 3;</code> - * @param value The isFlashCard to set. - * @return This builder for chaining. - */ - public Builder setIsFlashCard(boolean value) { - - isFlashCard_ = value; - onChanged(); - return this; - } - /** - * <code>bool isFlashCard = 3;</code> - * @return This builder for chaining. - */ - public Builder clearIsFlashCard() { - - isFlashCard_ = false; - onChanged(); - return this; - } - - private boolean isGachaItemNew_ ; - /** - * <code>bool isGachaItemNew = 4;</code> - * @return The isGachaItemNew. - */ - @java.lang.Override - public boolean getIsGachaItemNew() { - return isGachaItemNew_; - } - /** - * <code>bool isGachaItemNew = 4;</code> - * @param value The isGachaItemNew to set. - * @return This builder for chaining. - */ - public Builder setIsGachaItemNew(boolean value) { - - isGachaItemNew_ = value; - onChanged(); - return this; - } - /** - * <code>bool isGachaItemNew = 4;</code> - * @return This builder for chaining. - */ - public Builder clearIsGachaItemNew() { - - isGachaItemNew_ = false; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> tokenItemList_ = - java.util.Collections.emptyList(); - private void ensureTokenItemListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - tokenItemList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>(tokenItemList_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> tokenItemListBuilder_; - - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getTokenItemListList() { - if (tokenItemListBuilder_ == null) { - return java.util.Collections.unmodifiableList(tokenItemList_); - } else { - return tokenItemListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - public int getTokenItemListCount() { - if (tokenItemListBuilder_ == null) { - return tokenItemList_.size(); - } else { - return tokenItemListBuilder_.getCount(); - } - } - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getTokenItemList(int index) { - if (tokenItemListBuilder_ == null) { - return tokenItemList_.get(index); - } else { - return tokenItemListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - public Builder setTokenItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (tokenItemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTokenItemListIsMutable(); - tokenItemList_.set(index, value); - onChanged(); - } else { - tokenItemListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - public Builder setTokenItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (tokenItemListBuilder_ == null) { - ensureTokenItemListIsMutable(); - tokenItemList_.set(index, builderForValue.build()); - onChanged(); - } else { - tokenItemListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - public Builder addTokenItemList(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (tokenItemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTokenItemListIsMutable(); - tokenItemList_.add(value); - onChanged(); - } else { - tokenItemListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - public Builder addTokenItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (tokenItemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTokenItemListIsMutable(); - tokenItemList_.add(index, value); - onChanged(); - } else { - tokenItemListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - public Builder addTokenItemList( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (tokenItemListBuilder_ == null) { - ensureTokenItemListIsMutable(); - tokenItemList_.add(builderForValue.build()); - onChanged(); - } else { - tokenItemListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - public Builder addTokenItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (tokenItemListBuilder_ == null) { - ensureTokenItemListIsMutable(); - tokenItemList_.add(index, builderForValue.build()); - onChanged(); - } else { - tokenItemListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - public Builder addAllTokenItemList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> values) { - if (tokenItemListBuilder_ == null) { - ensureTokenItemListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tokenItemList_); - onChanged(); - } else { - tokenItemListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - public Builder clearTokenItemList() { - if (tokenItemListBuilder_ == null) { - tokenItemList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - tokenItemListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - public Builder removeTokenItemList(int index) { - if (tokenItemListBuilder_ == null) { - ensureTokenItemListIsMutable(); - tokenItemList_.remove(index); - onChanged(); - } else { - tokenItemListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getTokenItemListBuilder( - int index) { - return getTokenItemListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getTokenItemListOrBuilder( - int index) { - if (tokenItemListBuilder_ == null) { - return tokenItemList_.get(index); } else { - return tokenItemListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getTokenItemListOrBuilderList() { - if (tokenItemListBuilder_ != null) { - return tokenItemListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tokenItemList_); - } - } - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addTokenItemListBuilder() { - return getTokenItemListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); - } - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addTokenItemListBuilder( - int index) { - return getTokenItemListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); - } - /** - * <code>repeated .ItemParam tokenItemList = 5;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder> - getTokenItemListBuilderList() { - return getTokenItemListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getTokenItemListFieldBuilder() { - if (tokenItemListBuilder_ == null) { - tokenItemListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>( - tokenItemList_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - tokenItemList_ = null; - } - return tokenItemListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GachaItem) - } - - // @@protoc_insertion_point(class_scope:GachaItem) - private static final emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem(); - } - - public static emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GachaItem> - PARSER = new com.google.protobuf.AbstractParser<GachaItem>() { - @java.lang.Override - public GachaItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GachaItem(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GachaItem> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GachaItem> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GachaItem_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GachaItem_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\017GachaItem.proto\032\027GachaTransferItem.pro" + - "to\032\017ItemParam.proto\"\245\001\n\tGachaItem\022\035\n\tgac" + - "haItem\030\001 \001(\0132\n.ItemParam\022)\n\rtransferItem" + - "s\030\002 \003(\0132\022.GachaTransferItem\022\023\n\013isFlashCa" + - "rd\030\003 \001(\010\022\026\n\016isGachaItemNew\030\004 \001(\010\022!\n\rtoke" + - "nItemList\030\005 \003(\0132\n.ItemParamB\033\n\031emu.grass" + - "cutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.GachaTransferItemOuterClass.getDescriptor(), - emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(), - }); - internal_static_GachaItem_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GachaItem_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GachaItem_descriptor, - new java.lang.String[] { "GachaItem", "TransferItems", "IsFlashCard", "IsGachaItemNew", "TokenItemList", }); - emu.grasscutter.net.proto.GachaTransferItemOuterClass.getDescriptor(); - emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GachaTransferItemOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GachaTransferItemOuterClass.java deleted file mode 100644 index c8f0256e7..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GachaTransferItemOuterClass.java +++ /dev/null @@ -1,743 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GachaTransferItem.proto - -package emu.grasscutter.net.proto; - -public final class GachaTransferItemOuterClass { - private GachaTransferItemOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GachaTransferItemOrBuilder extends - // @@protoc_insertion_point(interface_extends:GachaTransferItem) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.ItemParam item = 1;</code> - * @return Whether the item field is set. - */ - boolean hasItem(); - /** - * <code>.ItemParam item = 1;</code> - * @return The item. - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItem(); - /** - * <code>.ItemParam item = 1;</code> - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemOrBuilder(); - - /** - * <code>bool isTransferItemNew = 2;</code> - * @return The isTransferItemNew. - */ - boolean getIsTransferItemNew(); - } - /** - * Protobuf type {@code GachaTransferItem} - */ - public static final class GachaTransferItem extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GachaTransferItem) - GachaTransferItemOrBuilder { - private static final long serialVersionUID = 0L; - // Use GachaTransferItem.newBuilder() to construct. - private GachaTransferItem(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GachaTransferItem() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GachaTransferItem(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GachaTransferItem( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder subBuilder = null; - if (item_ != null) { - subBuilder = item_.toBuilder(); - } - item_ = input.readMessage(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(item_); - item_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - isTransferItemNew_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GachaTransferItemOuterClass.internal_static_GachaTransferItem_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GachaTransferItemOuterClass.internal_static_GachaTransferItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.class, emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.Builder.class); - } - - public static final int ITEM_FIELD_NUMBER = 1; - private emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam item_; - /** - * <code>.ItemParam item = 1;</code> - * @return Whether the item field is set. - */ - @java.lang.Override - public boolean hasItem() { - return item_ != null; - } - /** - * <code>.ItemParam item = 1;</code> - * @return The item. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItem() { - return item_ == null ? emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance() : item_; - } - /** - * <code>.ItemParam item = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemOrBuilder() { - return getItem(); - } - - public static final int ISTRANSFERITEMNEW_FIELD_NUMBER = 2; - private boolean isTransferItemNew_; - /** - * <code>bool isTransferItemNew = 2;</code> - * @return The isTransferItemNew. - */ - @java.lang.Override - public boolean getIsTransferItemNew() { - return isTransferItemNew_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (item_ != null) { - output.writeMessage(1, getItem()); - } - if (isTransferItemNew_ != false) { - output.writeBool(2, isTransferItemNew_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (item_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getItem()); - } - if (isTransferItemNew_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isTransferItemNew_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem other = (emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem) obj; - - if (hasItem() != other.hasItem()) return false; - if (hasItem()) { - if (!getItem() - .equals(other.getItem())) return false; - } - if (getIsTransferItemNew() - != other.getIsTransferItemNew()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasItem()) { - hash = (37 * hash) + ITEM_FIELD_NUMBER; - hash = (53 * hash) + getItem().hashCode(); - } - hash = (37 * hash) + ISTRANSFERITEMNEW_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsTransferItemNew()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GachaTransferItem} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GachaTransferItem) - emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GachaTransferItemOuterClass.internal_static_GachaTransferItem_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GachaTransferItemOuterClass.internal_static_GachaTransferItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.class, emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (itemBuilder_ == null) { - item_ = null; - } else { - item_ = null; - itemBuilder_ = null; - } - isTransferItemNew_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GachaTransferItemOuterClass.internal_static_GachaTransferItem_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem build() { - emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem buildPartial() { - emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem result = new emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem(this); - if (itemBuilder_ == null) { - result.item_ = item_; - } else { - result.item_ = itemBuilder_.build(); - } - result.isTransferItemNew_ = isTransferItemNew_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem) { - return mergeFrom((emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem other) { - if (other == emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.getDefaultInstance()) return this; - if (other.hasItem()) { - mergeItem(other.getItem()); - } - if (other.getIsTransferItemNew() != false) { - setIsTransferItemNew(other.getIsTransferItemNew()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam item_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> itemBuilder_; - /** - * <code>.ItemParam item = 1;</code> - * @return Whether the item field is set. - */ - public boolean hasItem() { - return itemBuilder_ != null || item_ != null; - } - /** - * <code>.ItemParam item = 1;</code> - * @return The item. - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItem() { - if (itemBuilder_ == null) { - return item_ == null ? emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance() : item_; - } else { - return itemBuilder_.getMessage(); - } - } - /** - * <code>.ItemParam item = 1;</code> - */ - public Builder setItem(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (itemBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - item_ = value; - onChanged(); - } else { - itemBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.ItemParam item = 1;</code> - */ - public Builder setItem( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (itemBuilder_ == null) { - item_ = builderForValue.build(); - onChanged(); - } else { - itemBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.ItemParam item = 1;</code> - */ - public Builder mergeItem(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (itemBuilder_ == null) { - if (item_ != null) { - item_ = - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.newBuilder(item_).mergeFrom(value).buildPartial(); - } else { - item_ = value; - } - onChanged(); - } else { - itemBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.ItemParam item = 1;</code> - */ - public Builder clearItem() { - if (itemBuilder_ == null) { - item_ = null; - onChanged(); - } else { - item_ = null; - itemBuilder_ = null; - } - - return this; - } - /** - * <code>.ItemParam item = 1;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getItemBuilder() { - - onChanged(); - return getItemFieldBuilder().getBuilder(); - } - /** - * <code>.ItemParam item = 1;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemOrBuilder() { - if (itemBuilder_ != null) { - return itemBuilder_.getMessageOrBuilder(); - } else { - return item_ == null ? - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance() : item_; - } - } - /** - * <code>.ItemParam item = 1;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getItemFieldBuilder() { - if (itemBuilder_ == null) { - itemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>( - getItem(), - getParentForChildren(), - isClean()); - item_ = null; - } - return itemBuilder_; - } - - private boolean isTransferItemNew_ ; - /** - * <code>bool isTransferItemNew = 2;</code> - * @return The isTransferItemNew. - */ - @java.lang.Override - public boolean getIsTransferItemNew() { - return isTransferItemNew_; - } - /** - * <code>bool isTransferItemNew = 2;</code> - * @param value The isTransferItemNew to set. - * @return This builder for chaining. - */ - public Builder setIsTransferItemNew(boolean value) { - - isTransferItemNew_ = value; - onChanged(); - return this; - } - /** - * <code>bool isTransferItemNew = 2;</code> - * @return This builder for chaining. - */ - public Builder clearIsTransferItemNew() { - - isTransferItemNew_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GachaTransferItem) - } - - // @@protoc_insertion_point(class_scope:GachaTransferItem) - private static final emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem(); - } - - public static emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GachaTransferItem> - PARSER = new com.google.protobuf.AbstractParser<GachaTransferItem>() { - @java.lang.Override - public GachaTransferItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GachaTransferItem(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GachaTransferItem> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GachaTransferItem> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GachaTransferItem_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GachaTransferItem_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027GachaTransferItem.proto\032\017ItemParam.pro" + - "to\"H\n\021GachaTransferItem\022\030\n\004item\030\001 \001(\0132\n." + - "ItemParam\022\031\n\021isTransferItemNew\030\002 \001(\010B\033\n\031" + - "emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(), - }); - internal_static_GachaTransferItem_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GachaTransferItem_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GachaTransferItem_descriptor, - new java.lang.String[] { "Item", "IsTransferItemNew", }); - emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GachaUpInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GachaUpInfoOuterClass.java deleted file mode 100644 index c3fb522fb..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GachaUpInfoOuterClass.java +++ /dev/null @@ -1,733 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GachaUpInfo.proto - -package emu.grasscutter.net.proto; - -public final class GachaUpInfoOuterClass { - private GachaUpInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GachaUpInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:GachaUpInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 itemParentType = 1;</code> - * @return The itemParentType. - */ - int getItemParentType(); - - /** - * <code>repeated uint32 itemIdList = 2;</code> - * @return A list containing the itemIdList. - */ - java.util.List<java.lang.Integer> getItemIdListList(); - /** - * <code>repeated uint32 itemIdList = 2;</code> - * @return The count of itemIdList. - */ - int getItemIdListCount(); - /** - * <code>repeated uint32 itemIdList = 2;</code> - * @param index The index of the element to return. - * @return The itemIdList at the given index. - */ - int getItemIdList(int index); - } - /** - * Protobuf type {@code GachaUpInfo} - */ - public static final class GachaUpInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GachaUpInfo) - GachaUpInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use GachaUpInfo.newBuilder() to construct. - private GachaUpInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GachaUpInfo() { - itemIdList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GachaUpInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GachaUpInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - itemParentType_ = input.readUInt32(); - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - itemIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - itemIdList_.addInt(input.readUInt32()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - itemIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - itemIdList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - itemIdList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GachaUpInfoOuterClass.internal_static_GachaUpInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GachaUpInfoOuterClass.internal_static_GachaUpInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.class, emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.Builder.class); - } - - public static final int ITEMPARENTTYPE_FIELD_NUMBER = 1; - private int itemParentType_; - /** - * <code>uint32 itemParentType = 1;</code> - * @return The itemParentType. - */ - @java.lang.Override - public int getItemParentType() { - return itemParentType_; - } - - public static final int ITEMIDLIST_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.IntList itemIdList_; - /** - * <code>repeated uint32 itemIdList = 2;</code> - * @return A list containing the itemIdList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getItemIdListList() { - return itemIdList_; - } - /** - * <code>repeated uint32 itemIdList = 2;</code> - * @return The count of itemIdList. - */ - public int getItemIdListCount() { - return itemIdList_.size(); - } - /** - * <code>repeated uint32 itemIdList = 2;</code> - * @param index The index of the element to return. - * @return The itemIdList at the given index. - */ - public int getItemIdList(int index) { - return itemIdList_.getInt(index); - } - private int itemIdListMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (itemParentType_ != 0) { - output.writeUInt32(1, itemParentType_); - } - if (getItemIdListList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(itemIdListMemoizedSerializedSize); - } - for (int i = 0; i < itemIdList_.size(); i++) { - output.writeUInt32NoTag(itemIdList_.getInt(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (itemParentType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, itemParentType_); - } - { - int dataSize = 0; - for (int i = 0; i < itemIdList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(itemIdList_.getInt(i)); - } - size += dataSize; - if (!getItemIdListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - itemIdListMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo other = (emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo) obj; - - if (getItemParentType() - != other.getItemParentType()) return false; - if (!getItemIdListList() - .equals(other.getItemIdListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ITEMPARENTTYPE_FIELD_NUMBER; - hash = (53 * hash) + getItemParentType(); - if (getItemIdListCount() > 0) { - hash = (37 * hash) + ITEMIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getItemIdListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GachaUpInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GachaUpInfo) - emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GachaUpInfoOuterClass.internal_static_GachaUpInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GachaUpInfoOuterClass.internal_static_GachaUpInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.class, emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - itemParentType_ = 0; - - itemIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GachaUpInfoOuterClass.internal_static_GachaUpInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo build() { - emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo buildPartial() { - emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo result = new emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo(this); - int from_bitField0_ = bitField0_; - result.itemParentType_ = itemParentType_; - if (((bitField0_ & 0x00000001) != 0)) { - itemIdList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.itemIdList_ = itemIdList_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo) { - return mergeFrom((emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo other) { - if (other == emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.getDefaultInstance()) return this; - if (other.getItemParentType() != 0) { - setItemParentType(other.getItemParentType()); - } - if (!other.itemIdList_.isEmpty()) { - if (itemIdList_.isEmpty()) { - itemIdList_ = other.itemIdList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureItemIdListIsMutable(); - itemIdList_.addAll(other.itemIdList_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int itemParentType_ ; - /** - * <code>uint32 itemParentType = 1;</code> - * @return The itemParentType. - */ - @java.lang.Override - public int getItemParentType() { - return itemParentType_; - } - /** - * <code>uint32 itemParentType = 1;</code> - * @param value The itemParentType to set. - * @return This builder for chaining. - */ - public Builder setItemParentType(int value) { - - itemParentType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 itemParentType = 1;</code> - * @return This builder for chaining. - */ - public Builder clearItemParentType() { - - itemParentType_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList itemIdList_ = emptyIntList(); - private void ensureItemIdListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - itemIdList_ = mutableCopy(itemIdList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 itemIdList = 2;</code> - * @return A list containing the itemIdList. - */ - public java.util.List<java.lang.Integer> - getItemIdListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(itemIdList_) : itemIdList_; - } - /** - * <code>repeated uint32 itemIdList = 2;</code> - * @return The count of itemIdList. - */ - public int getItemIdListCount() { - return itemIdList_.size(); - } - /** - * <code>repeated uint32 itemIdList = 2;</code> - * @param index The index of the element to return. - * @return The itemIdList at the given index. - */ - public int getItemIdList(int index) { - return itemIdList_.getInt(index); - } - /** - * <code>repeated uint32 itemIdList = 2;</code> - * @param index The index to set the value at. - * @param value The itemIdList to set. - * @return This builder for chaining. - */ - public Builder setItemIdList( - int index, int value) { - ensureItemIdListIsMutable(); - itemIdList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 itemIdList = 2;</code> - * @param value The itemIdList to add. - * @return This builder for chaining. - */ - public Builder addItemIdList(int value) { - ensureItemIdListIsMutable(); - itemIdList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 itemIdList = 2;</code> - * @param values The itemIdList to add. - * @return This builder for chaining. - */ - public Builder addAllItemIdList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureItemIdListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, itemIdList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 itemIdList = 2;</code> - * @return This builder for chaining. - */ - public Builder clearItemIdList() { - itemIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GachaUpInfo) - } - - // @@protoc_insertion_point(class_scope:GachaUpInfo) - private static final emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo(); - } - - public static emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GachaUpInfo> - PARSER = new com.google.protobuf.AbstractParser<GachaUpInfo>() { - @java.lang.Override - public GachaUpInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GachaUpInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GachaUpInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GachaUpInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GachaUpInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GachaUpInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\021GachaUpInfo.proto\"9\n\013GachaUpInfo\022\026\n\016it" + - "emParentType\030\001 \001(\r\022\022\n\nitemIdList\030\002 \003(\rB\033" + - "\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_GachaUpInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GachaUpInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GachaUpInfo_descriptor, - new java.lang.String[] { "ItemParentType", "ItemIdList", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GadgetBornTypeOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GadgetBornTypeOuterClass.java deleted file mode 100644 index 1ef7a917d..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GadgetBornTypeOuterClass.java +++ /dev/null @@ -1,193 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GadgetBornType.proto - -package emu.grasscutter.net.proto; - -public final class GadgetBornTypeOuterClass { - private GadgetBornTypeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code GadgetBornType} - */ - public enum GadgetBornType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>GadgetBornNone = 0;</code> - */ - GadgetBornNone(0), - /** - * <code>GadgetBornInAir = 1;</code> - */ - GadgetBornInAir(1), - /** - * <code>GadgetBornPlayer = 2;</code> - */ - GadgetBornPlayer(2), - /** - * <code>GadgetBornMonsterHit = 3;</code> - */ - GadgetBornMonsterHit(3), - /** - * <code>GadgetBornMonsterDie = 4;</code> - */ - GadgetBornMonsterDie(4), - /** - * <code>GadgetBornGadget = 5;</code> - */ - GadgetBornGadget(5), - /** - * <code>GadgetBornGround = 6;</code> - */ - GadgetBornGround(6), - UNRECOGNIZED(-1), - ; - - /** - * <code>GadgetBornNone = 0;</code> - */ - public static final int GadgetBornNone_VALUE = 0; - /** - * <code>GadgetBornInAir = 1;</code> - */ - public static final int GadgetBornInAir_VALUE = 1; - /** - * <code>GadgetBornPlayer = 2;</code> - */ - public static final int GadgetBornPlayer_VALUE = 2; - /** - * <code>GadgetBornMonsterHit = 3;</code> - */ - public static final int GadgetBornMonsterHit_VALUE = 3; - /** - * <code>GadgetBornMonsterDie = 4;</code> - */ - public static final int GadgetBornMonsterDie_VALUE = 4; - /** - * <code>GadgetBornGadget = 5;</code> - */ - public static final int GadgetBornGadget_VALUE = 5; - /** - * <code>GadgetBornGround = 6;</code> - */ - public static final int GadgetBornGround_VALUE = 6; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static GadgetBornType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static GadgetBornType forNumber(int value) { - switch (value) { - case 0: return GadgetBornNone; - case 1: return GadgetBornInAir; - case 2: return GadgetBornPlayer; - case 3: return GadgetBornMonsterHit; - case 4: return GadgetBornMonsterDie; - case 5: return GadgetBornGadget; - case 6: return GadgetBornGround; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<GadgetBornType> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - GadgetBornType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<GadgetBornType>() { - public GadgetBornType findValueByNumber(int number) { - return GadgetBornType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.GadgetBornTypeOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final GadgetBornType[] VALUES = values(); - - public static GadgetBornType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private GadgetBornType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:GadgetBornType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024GadgetBornType.proto*\257\001\n\016GadgetBornTyp" + - "e\022\022\n\016GadgetBornNone\020\000\022\023\n\017GadgetBornInAir" + - "\020\001\022\024\n\020GadgetBornPlayer\020\002\022\030\n\024GadgetBornMo" + - "nsterHit\020\003\022\030\n\024GadgetBornMonsterDie\020\004\022\024\n\020" + - "GadgetBornGadget\020\005\022\024\n\020GadgetBornGround\020\006" + - "B\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GadgetClientParamOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GadgetClientParamOuterClass.java deleted file mode 100644 index 149e9f9c8..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GadgetClientParamOuterClass.java +++ /dev/null @@ -1,890 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GadgetClientParam.proto - -package emu.grasscutter.net.proto; - -public final class GadgetClientParamOuterClass { - private GadgetClientParamOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GadgetClientParamOrBuilder extends - // @@protoc_insertion_point(interface_extends:GadgetClientParam) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 campId = 1;</code> - * @return The campId. - */ - int getCampId(); - - /** - * <code>uint32 campType = 2;</code> - * @return The campType. - */ - int getCampType(); - - /** - * <code>uint64 guid = 3;</code> - * @return The guid. - */ - long getGuid(); - - /** - * <code>uint32 ownerEntityId = 4;</code> - * @return The ownerEntityId. - */ - int getOwnerEntityId(); - - /** - * <code>uint32 targetEntityId = 5;</code> - * @return The targetEntityId. - */ - int getTargetEntityId(); - - /** - * <code>bool asyncLoad = 6;</code> - * @return The asyncLoad. - */ - boolean getAsyncLoad(); - } - /** - * Protobuf type {@code GadgetClientParam} - */ - public static final class GadgetClientParam extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GadgetClientParam) - GadgetClientParamOrBuilder { - private static final long serialVersionUID = 0L; - // Use GadgetClientParam.newBuilder() to construct. - private GadgetClientParam(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GadgetClientParam() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GadgetClientParam(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GadgetClientParam( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - campId_ = input.readUInt32(); - break; - } - case 16: { - - campType_ = input.readUInt32(); - break; - } - case 24: { - - guid_ = input.readUInt64(); - break; - } - case 32: { - - ownerEntityId_ = input.readUInt32(); - break; - } - case 40: { - - targetEntityId_ = input.readUInt32(); - break; - } - case 48: { - - asyncLoad_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GadgetClientParamOuterClass.internal_static_GadgetClientParam_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GadgetClientParamOuterClass.internal_static_GadgetClientParam_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam.class, emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam.Builder.class); - } - - public static final int CAMPID_FIELD_NUMBER = 1; - private int campId_; - /** - * <code>uint32 campId = 1;</code> - * @return The campId. - */ - @java.lang.Override - public int getCampId() { - return campId_; - } - - public static final int CAMPTYPE_FIELD_NUMBER = 2; - private int campType_; - /** - * <code>uint32 campType = 2;</code> - * @return The campType. - */ - @java.lang.Override - public int getCampType() { - return campType_; - } - - public static final int GUID_FIELD_NUMBER = 3; - private long guid_; - /** - * <code>uint64 guid = 3;</code> - * @return The guid. - */ - @java.lang.Override - public long getGuid() { - return guid_; - } - - public static final int OWNERENTITYID_FIELD_NUMBER = 4; - private int ownerEntityId_; - /** - * <code>uint32 ownerEntityId = 4;</code> - * @return The ownerEntityId. - */ - @java.lang.Override - public int getOwnerEntityId() { - return ownerEntityId_; - } - - public static final int TARGETENTITYID_FIELD_NUMBER = 5; - private int targetEntityId_; - /** - * <code>uint32 targetEntityId = 5;</code> - * @return The targetEntityId. - */ - @java.lang.Override - public int getTargetEntityId() { - return targetEntityId_; - } - - public static final int ASYNCLOAD_FIELD_NUMBER = 6; - private boolean asyncLoad_; - /** - * <code>bool asyncLoad = 6;</code> - * @return The asyncLoad. - */ - @java.lang.Override - public boolean getAsyncLoad() { - return asyncLoad_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (campId_ != 0) { - output.writeUInt32(1, campId_); - } - if (campType_ != 0) { - output.writeUInt32(2, campType_); - } - if (guid_ != 0L) { - output.writeUInt64(3, guid_); - } - if (ownerEntityId_ != 0) { - output.writeUInt32(4, ownerEntityId_); - } - if (targetEntityId_ != 0) { - output.writeUInt32(5, targetEntityId_); - } - if (asyncLoad_ != false) { - output.writeBool(6, asyncLoad_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (campId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, campId_); - } - if (campType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, campType_); - } - if (guid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, guid_); - } - if (ownerEntityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, ownerEntityId_); - } - if (targetEntityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, targetEntityId_); - } - if (asyncLoad_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, asyncLoad_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam other = (emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam) obj; - - if (getCampId() - != other.getCampId()) return false; - if (getCampType() - != other.getCampType()) return false; - if (getGuid() - != other.getGuid()) return false; - if (getOwnerEntityId() - != other.getOwnerEntityId()) return false; - if (getTargetEntityId() - != other.getTargetEntityId()) return false; - if (getAsyncLoad() - != other.getAsyncLoad()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CAMPID_FIELD_NUMBER; - hash = (53 * hash) + getCampId(); - hash = (37 * hash) + CAMPTYPE_FIELD_NUMBER; - hash = (53 * hash) + getCampType(); - hash = (37 * hash) + GUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGuid()); - hash = (37 * hash) + OWNERENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getOwnerEntityId(); - hash = (37 * hash) + TARGETENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getTargetEntityId(); - hash = (37 * hash) + ASYNCLOAD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAsyncLoad()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GadgetClientParam} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GadgetClientParam) - emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParamOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GadgetClientParamOuterClass.internal_static_GadgetClientParam_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GadgetClientParamOuterClass.internal_static_GadgetClientParam_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam.class, emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - campId_ = 0; - - campType_ = 0; - - guid_ = 0L; - - ownerEntityId_ = 0; - - targetEntityId_ = 0; - - asyncLoad_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GadgetClientParamOuterClass.internal_static_GadgetClientParam_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam build() { - emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam buildPartial() { - emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam result = new emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam(this); - result.campId_ = campId_; - result.campType_ = campType_; - result.guid_ = guid_; - result.ownerEntityId_ = ownerEntityId_; - result.targetEntityId_ = targetEntityId_; - result.asyncLoad_ = asyncLoad_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam) { - return mergeFrom((emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam other) { - if (other == emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam.getDefaultInstance()) return this; - if (other.getCampId() != 0) { - setCampId(other.getCampId()); - } - if (other.getCampType() != 0) { - setCampType(other.getCampType()); - } - if (other.getGuid() != 0L) { - setGuid(other.getGuid()); - } - if (other.getOwnerEntityId() != 0) { - setOwnerEntityId(other.getOwnerEntityId()); - } - if (other.getTargetEntityId() != 0) { - setTargetEntityId(other.getTargetEntityId()); - } - if (other.getAsyncLoad() != false) { - setAsyncLoad(other.getAsyncLoad()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int campId_ ; - /** - * <code>uint32 campId = 1;</code> - * @return The campId. - */ - @java.lang.Override - public int getCampId() { - return campId_; - } - /** - * <code>uint32 campId = 1;</code> - * @param value The campId to set. - * @return This builder for chaining. - */ - public Builder setCampId(int value) { - - campId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 campId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearCampId() { - - campId_ = 0; - onChanged(); - return this; - } - - private int campType_ ; - /** - * <code>uint32 campType = 2;</code> - * @return The campType. - */ - @java.lang.Override - public int getCampType() { - return campType_; - } - /** - * <code>uint32 campType = 2;</code> - * @param value The campType to set. - * @return This builder for chaining. - */ - public Builder setCampType(int value) { - - campType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 campType = 2;</code> - * @return This builder for chaining. - */ - public Builder clearCampType() { - - campType_ = 0; - onChanged(); - return this; - } - - private long guid_ ; - /** - * <code>uint64 guid = 3;</code> - * @return The guid. - */ - @java.lang.Override - public long getGuid() { - return guid_; - } - /** - * <code>uint64 guid = 3;</code> - * @param value The guid to set. - * @return This builder for chaining. - */ - public Builder setGuid(long value) { - - guid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 guid = 3;</code> - * @return This builder for chaining. - */ - public Builder clearGuid() { - - guid_ = 0L; - onChanged(); - return this; - } - - private int ownerEntityId_ ; - /** - * <code>uint32 ownerEntityId = 4;</code> - * @return The ownerEntityId. - */ - @java.lang.Override - public int getOwnerEntityId() { - return ownerEntityId_; - } - /** - * <code>uint32 ownerEntityId = 4;</code> - * @param value The ownerEntityId to set. - * @return This builder for chaining. - */ - public Builder setOwnerEntityId(int value) { - - ownerEntityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 ownerEntityId = 4;</code> - * @return This builder for chaining. - */ - public Builder clearOwnerEntityId() { - - ownerEntityId_ = 0; - onChanged(); - return this; - } - - private int targetEntityId_ ; - /** - * <code>uint32 targetEntityId = 5;</code> - * @return The targetEntityId. - */ - @java.lang.Override - public int getTargetEntityId() { - return targetEntityId_; - } - /** - * <code>uint32 targetEntityId = 5;</code> - * @param value The targetEntityId to set. - * @return This builder for chaining. - */ - public Builder setTargetEntityId(int value) { - - targetEntityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 targetEntityId = 5;</code> - * @return This builder for chaining. - */ - public Builder clearTargetEntityId() { - - targetEntityId_ = 0; - onChanged(); - return this; - } - - private boolean asyncLoad_ ; - /** - * <code>bool asyncLoad = 6;</code> - * @return The asyncLoad. - */ - @java.lang.Override - public boolean getAsyncLoad() { - return asyncLoad_; - } - /** - * <code>bool asyncLoad = 6;</code> - * @param value The asyncLoad to set. - * @return This builder for chaining. - */ - public Builder setAsyncLoad(boolean value) { - - asyncLoad_ = value; - onChanged(); - return this; - } - /** - * <code>bool asyncLoad = 6;</code> - * @return This builder for chaining. - */ - public Builder clearAsyncLoad() { - - asyncLoad_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GadgetClientParam) - } - - // @@protoc_insertion_point(class_scope:GadgetClientParam) - private static final emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam(); - } - - public static emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GadgetClientParam> - PARSER = new com.google.protobuf.AbstractParser<GadgetClientParam>() { - @java.lang.Override - public GadgetClientParam parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GadgetClientParam(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GadgetClientParam> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GadgetClientParam> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GadgetClientParam_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GadgetClientParam_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027GadgetClientParam.proto\"\205\001\n\021GadgetClie" + - "ntParam\022\016\n\006campId\030\001 \001(\r\022\020\n\010campType\030\002 \001(" + - "\r\022\014\n\004guid\030\003 \001(\004\022\025\n\rownerEntityId\030\004 \001(\r\022\026" + - "\n\016targetEntityId\030\005 \001(\r\022\021\n\tasyncLoad\030\006 \001(" + - "\010B\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_GadgetClientParam_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GadgetClientParam_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GadgetClientParam_descriptor, - new java.lang.String[] { "CampId", "CampType", "Guid", "OwnerEntityId", "TargetEntityId", "AsyncLoad", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GadgetCrucibleInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GadgetCrucibleInfoOuterClass.java deleted file mode 100644 index c629a7d47..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GadgetCrucibleInfoOuterClass.java +++ /dev/null @@ -1,466 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GadgetCrucibleInfo.proto - -package emu.grasscutter.net.proto; - -public final class GadgetCrucibleInfoOuterClass { - private GadgetCrucibleInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GadgetCrucibleInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:GadgetCrucibleInfo) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code GadgetCrucibleInfo} - */ - public static final class GadgetCrucibleInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GadgetCrucibleInfo) - GadgetCrucibleInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use GadgetCrucibleInfo.newBuilder() to construct. - private GadgetCrucibleInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GadgetCrucibleInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GadgetCrucibleInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GadgetCrucibleInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.internal_static_GadgetCrucibleInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.internal_static_GadgetCrucibleInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo.class, emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo other = (emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GadgetCrucibleInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GadgetCrucibleInfo) - emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.internal_static_GadgetCrucibleInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.internal_static_GadgetCrucibleInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo.class, emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.internal_static_GadgetCrucibleInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo build() { - emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo buildPartial() { - emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo result = new emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo) { - return mergeFrom((emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo other) { - if (other == emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GadgetCrucibleInfo) - } - - // @@protoc_insertion_point(class_scope:GadgetCrucibleInfo) - private static final emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo(); - } - - public static emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GadgetCrucibleInfo> - PARSER = new com.google.protobuf.AbstractParser<GadgetCrucibleInfo>() { - @java.lang.Override - public GadgetCrucibleInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GadgetCrucibleInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GadgetCrucibleInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GadgetCrucibleInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GadgetCrucibleInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GadgetCrucibleInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030GadgetCrucibleInfo.proto\"\024\n\022GadgetCruc" + - "ibleInfoB\033\n\031emu.grasscutter.net.protob\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_GadgetCrucibleInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GadgetCrucibleInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GadgetCrucibleInfo_descriptor, - new java.lang.String[] { }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GadgetInteractReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GadgetInteractReqOuterClass.java deleted file mode 100644 index 0c2c0da25..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GadgetInteractReqOuterClass.java +++ /dev/null @@ -1,899 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GadgetInteractReq.proto - -package emu.grasscutter.net.proto; - -public final class GadgetInteractReqOuterClass { - private GadgetInteractReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GadgetInteractReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:GadgetInteractReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 gadgetEntityId = 1;</code> - * @return The gadgetEntityId. - */ - int getGadgetEntityId(); - - /** - * <code>.InterOpType opType = 2;</code> - * @return The enum numeric value on the wire for opType. - */ - int getOpTypeValue(); - /** - * <code>.InterOpType opType = 2;</code> - * @return The opType. - */ - emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType getOpType(); - - /** - * <code>uint32 gadgetId = 3;</code> - * @return The gadgetId. - */ - int getGadgetId(); - - /** - * <code>bool isUseCondenseResin = 4;</code> - * @return The isUseCondenseResin. - */ - boolean getIsUseCondenseResin(); - - /** - * <code>.ResinCostType resinCostType = 5;</code> - * @return The enum numeric value on the wire for resinCostType. - */ - int getResinCostTypeValue(); - /** - * <code>.ResinCostType resinCostType = 5;</code> - * @return The resinCostType. - */ - emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType getResinCostType(); - } - /** - * Protobuf type {@code GadgetInteractReq} - */ - public static final class GadgetInteractReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GadgetInteractReq) - GadgetInteractReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use GadgetInteractReq.newBuilder() to construct. - private GadgetInteractReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GadgetInteractReq() { - opType_ = 0; - resinCostType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GadgetInteractReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GadgetInteractReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - gadgetEntityId_ = input.readUInt32(); - break; - } - case 16: { - int rawValue = input.readEnum(); - - opType_ = rawValue; - break; - } - case 24: { - - gadgetId_ = input.readUInt32(); - break; - } - case 32: { - - isUseCondenseResin_ = input.readBool(); - break; - } - case 40: { - int rawValue = input.readEnum(); - - resinCostType_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GadgetInteractReqOuterClass.internal_static_GadgetInteractReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GadgetInteractReqOuterClass.internal_static_GadgetInteractReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq.class, emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq.Builder.class); - } - - public static final int GADGETENTITYID_FIELD_NUMBER = 1; - private int gadgetEntityId_; - /** - * <code>uint32 gadgetEntityId = 1;</code> - * @return The gadgetEntityId. - */ - @java.lang.Override - public int getGadgetEntityId() { - return gadgetEntityId_; - } - - public static final int OPTYPE_FIELD_NUMBER = 2; - private int opType_; - /** - * <code>.InterOpType opType = 2;</code> - * @return The enum numeric value on the wire for opType. - */ - @java.lang.Override public int getOpTypeValue() { - return opType_; - } - /** - * <code>.InterOpType opType = 2;</code> - * @return The opType. - */ - @java.lang.Override public emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType getOpType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType result = emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.valueOf(opType_); - return result == null ? emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.UNRECOGNIZED : result; - } - - public static final int GADGETID_FIELD_NUMBER = 3; - private int gadgetId_; - /** - * <code>uint32 gadgetId = 3;</code> - * @return The gadgetId. - */ - @java.lang.Override - public int getGadgetId() { - return gadgetId_; - } - - public static final int ISUSECONDENSERESIN_FIELD_NUMBER = 4; - private boolean isUseCondenseResin_; - /** - * <code>bool isUseCondenseResin = 4;</code> - * @return The isUseCondenseResin. - */ - @java.lang.Override - public boolean getIsUseCondenseResin() { - return isUseCondenseResin_; - } - - public static final int RESINCOSTTYPE_FIELD_NUMBER = 5; - private int resinCostType_; - /** - * <code>.ResinCostType resinCostType = 5;</code> - * @return The enum numeric value on the wire for resinCostType. - */ - @java.lang.Override public int getResinCostTypeValue() { - return resinCostType_; - } - /** - * <code>.ResinCostType resinCostType = 5;</code> - * @return The resinCostType. - */ - @java.lang.Override public emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType getResinCostType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType result = emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType.valueOf(resinCostType_); - return result == null ? emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (gadgetEntityId_ != 0) { - output.writeUInt32(1, gadgetEntityId_); - } - if (opType_ != emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.InterOpFinish.getNumber()) { - output.writeEnum(2, opType_); - } - if (gadgetId_ != 0) { - output.writeUInt32(3, gadgetId_); - } - if (isUseCondenseResin_ != false) { - output.writeBool(4, isUseCondenseResin_); - } - if (resinCostType_ != emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType.CostNone.getNumber()) { - output.writeEnum(5, resinCostType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (gadgetEntityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, gadgetEntityId_); - } - if (opType_ != emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.InterOpFinish.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, opType_); - } - if (gadgetId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, gadgetId_); - } - if (isUseCondenseResin_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, isUseCondenseResin_); - } - if (resinCostType_ != emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType.CostNone.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, resinCostType_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq other = (emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq) obj; - - if (getGadgetEntityId() - != other.getGadgetEntityId()) return false; - if (opType_ != other.opType_) return false; - if (getGadgetId() - != other.getGadgetId()) return false; - if (getIsUseCondenseResin() - != other.getIsUseCondenseResin()) return false; - if (resinCostType_ != other.resinCostType_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GADGETENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getGadgetEntityId(); - hash = (37 * hash) + OPTYPE_FIELD_NUMBER; - hash = (53 * hash) + opType_; - hash = (37 * hash) + GADGETID_FIELD_NUMBER; - hash = (53 * hash) + getGadgetId(); - hash = (37 * hash) + ISUSECONDENSERESIN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsUseCondenseResin()); - hash = (37 * hash) + RESINCOSTTYPE_FIELD_NUMBER; - hash = (53 * hash) + resinCostType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GadgetInteractReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GadgetInteractReq) - emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GadgetInteractReqOuterClass.internal_static_GadgetInteractReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GadgetInteractReqOuterClass.internal_static_GadgetInteractReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq.class, emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - gadgetEntityId_ = 0; - - opType_ = 0; - - gadgetId_ = 0; - - isUseCondenseResin_ = false; - - resinCostType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GadgetInteractReqOuterClass.internal_static_GadgetInteractReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq build() { - emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq buildPartial() { - emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq result = new emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq(this); - result.gadgetEntityId_ = gadgetEntityId_; - result.opType_ = opType_; - result.gadgetId_ = gadgetId_; - result.isUseCondenseResin_ = isUseCondenseResin_; - result.resinCostType_ = resinCostType_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq) { - return mergeFrom((emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq other) { - if (other == emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq.getDefaultInstance()) return this; - if (other.getGadgetEntityId() != 0) { - setGadgetEntityId(other.getGadgetEntityId()); - } - if (other.opType_ != 0) { - setOpTypeValue(other.getOpTypeValue()); - } - if (other.getGadgetId() != 0) { - setGadgetId(other.getGadgetId()); - } - if (other.getIsUseCondenseResin() != false) { - setIsUseCondenseResin(other.getIsUseCondenseResin()); - } - if (other.resinCostType_ != 0) { - setResinCostTypeValue(other.getResinCostTypeValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int gadgetEntityId_ ; - /** - * <code>uint32 gadgetEntityId = 1;</code> - * @return The gadgetEntityId. - */ - @java.lang.Override - public int getGadgetEntityId() { - return gadgetEntityId_; - } - /** - * <code>uint32 gadgetEntityId = 1;</code> - * @param value The gadgetEntityId to set. - * @return This builder for chaining. - */ - public Builder setGadgetEntityId(int value) { - - gadgetEntityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gadgetEntityId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearGadgetEntityId() { - - gadgetEntityId_ = 0; - onChanged(); - return this; - } - - private int opType_ = 0; - /** - * <code>.InterOpType opType = 2;</code> - * @return The enum numeric value on the wire for opType. - */ - @java.lang.Override public int getOpTypeValue() { - return opType_; - } - /** - * <code>.InterOpType opType = 2;</code> - * @param value The enum numeric value on the wire for opType to set. - * @return This builder for chaining. - */ - public Builder setOpTypeValue(int value) { - - opType_ = value; - onChanged(); - return this; - } - /** - * <code>.InterOpType opType = 2;</code> - * @return The opType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType getOpType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType result = emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.valueOf(opType_); - return result == null ? emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.UNRECOGNIZED : result; - } - /** - * <code>.InterOpType opType = 2;</code> - * @param value The opType to set. - * @return This builder for chaining. - */ - public Builder setOpType(emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType value) { - if (value == null) { - throw new NullPointerException(); - } - - opType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.InterOpType opType = 2;</code> - * @return This builder for chaining. - */ - public Builder clearOpType() { - - opType_ = 0; - onChanged(); - return this; - } - - private int gadgetId_ ; - /** - * <code>uint32 gadgetId = 3;</code> - * @return The gadgetId. - */ - @java.lang.Override - public int getGadgetId() { - return gadgetId_; - } - /** - * <code>uint32 gadgetId = 3;</code> - * @param value The gadgetId to set. - * @return This builder for chaining. - */ - public Builder setGadgetId(int value) { - - gadgetId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gadgetId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearGadgetId() { - - gadgetId_ = 0; - onChanged(); - return this; - } - - private boolean isUseCondenseResin_ ; - /** - * <code>bool isUseCondenseResin = 4;</code> - * @return The isUseCondenseResin. - */ - @java.lang.Override - public boolean getIsUseCondenseResin() { - return isUseCondenseResin_; - } - /** - * <code>bool isUseCondenseResin = 4;</code> - * @param value The isUseCondenseResin to set. - * @return This builder for chaining. - */ - public Builder setIsUseCondenseResin(boolean value) { - - isUseCondenseResin_ = value; - onChanged(); - return this; - } - /** - * <code>bool isUseCondenseResin = 4;</code> - * @return This builder for chaining. - */ - public Builder clearIsUseCondenseResin() { - - isUseCondenseResin_ = false; - onChanged(); - return this; - } - - private int resinCostType_ = 0; - /** - * <code>.ResinCostType resinCostType = 5;</code> - * @return The enum numeric value on the wire for resinCostType. - */ - @java.lang.Override public int getResinCostTypeValue() { - return resinCostType_; - } - /** - * <code>.ResinCostType resinCostType = 5;</code> - * @param value The enum numeric value on the wire for resinCostType to set. - * @return This builder for chaining. - */ - public Builder setResinCostTypeValue(int value) { - - resinCostType_ = value; - onChanged(); - return this; - } - /** - * <code>.ResinCostType resinCostType = 5;</code> - * @return The resinCostType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType getResinCostType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType result = emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType.valueOf(resinCostType_); - return result == null ? emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType.UNRECOGNIZED : result; - } - /** - * <code>.ResinCostType resinCostType = 5;</code> - * @param value The resinCostType to set. - * @return This builder for chaining. - */ - public Builder setResinCostType(emu.grasscutter.net.proto.ResinCostTypeOuterClass.ResinCostType value) { - if (value == null) { - throw new NullPointerException(); - } - - resinCostType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.ResinCostType resinCostType = 5;</code> - * @return This builder for chaining. - */ - public Builder clearResinCostType() { - - resinCostType_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GadgetInteractReq) - } - - // @@protoc_insertion_point(class_scope:GadgetInteractReq) - private static final emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq(); - } - - public static emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GadgetInteractReq> - PARSER = new com.google.protobuf.AbstractParser<GadgetInteractReq>() { - @java.lang.Override - public GadgetInteractReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GadgetInteractReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GadgetInteractReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GadgetInteractReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GadgetInteractReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GadgetInteractReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027GadgetInteractReq.proto\032\021InterOpType.p" + - "roto\032\023ResinCostType.proto\"\236\001\n\021GadgetInte" + - "ractReq\022\026\n\016gadgetEntityId\030\001 \001(\r\022\034\n\006opTyp" + - "e\030\002 \001(\0162\014.InterOpType\022\020\n\010gadgetId\030\003 \001(\r\022" + - "\032\n\022isUseCondenseResin\030\004 \001(\010\022%\n\rresinCost" + - "Type\030\005 \001(\0162\016.ResinCostTypeB\033\n\031emu.grassc" + - "utter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.InterOpTypeOuterClass.getDescriptor(), - emu.grasscutter.net.proto.ResinCostTypeOuterClass.getDescriptor(), - }); - internal_static_GadgetInteractReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GadgetInteractReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GadgetInteractReq_descriptor, - new java.lang.String[] { "GadgetEntityId", "OpType", "GadgetId", "IsUseCondenseResin", "ResinCostType", }); - emu.grasscutter.net.proto.InterOpTypeOuterClass.getDescriptor(); - emu.grasscutter.net.proto.ResinCostTypeOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GadgetInteractRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GadgetInteractRspOuterClass.java deleted file mode 100644 index 3c0b57c2e..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GadgetInteractRspOuterClass.java +++ /dev/null @@ -1,898 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GadgetInteractRsp.proto - -package emu.grasscutter.net.proto; - -public final class GadgetInteractRspOuterClass { - private GadgetInteractRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GadgetInteractRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:GadgetInteractRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint32 gadgetEntityId = 2;</code> - * @return The gadgetEntityId. - */ - int getGadgetEntityId(); - - /** - * <code>.InteractType interactType = 3;</code> - * @return The enum numeric value on the wire for interactType. - */ - int getInteractTypeValue(); - /** - * <code>.InteractType interactType = 3;</code> - * @return The interactType. - */ - emu.grasscutter.net.proto.InteractTypeOuterClass.InteractType getInteractType(); - - /** - * <code>.InterOpType opType = 4;</code> - * @return The enum numeric value on the wire for opType. - */ - int getOpTypeValue(); - /** - * <code>.InterOpType opType = 4;</code> - * @return The opType. - */ - emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType getOpType(); - - /** - * <code>uint32 gadgetId = 5;</code> - * @return The gadgetId. - */ - int getGadgetId(); - } - /** - * Protobuf type {@code GadgetInteractRsp} - */ - public static final class GadgetInteractRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GadgetInteractRsp) - GadgetInteractRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use GadgetInteractRsp.newBuilder() to construct. - private GadgetInteractRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GadgetInteractRsp() { - interactType_ = 0; - opType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GadgetInteractRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GadgetInteractRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - gadgetEntityId_ = input.readUInt32(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - interactType_ = rawValue; - break; - } - case 32: { - int rawValue = input.readEnum(); - - opType_ = rawValue; - break; - } - case 40: { - - gadgetId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GadgetInteractRspOuterClass.internal_static_GadgetInteractRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GadgetInteractRspOuterClass.internal_static_GadgetInteractRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp.class, emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int GADGETENTITYID_FIELD_NUMBER = 2; - private int gadgetEntityId_; - /** - * <code>uint32 gadgetEntityId = 2;</code> - * @return The gadgetEntityId. - */ - @java.lang.Override - public int getGadgetEntityId() { - return gadgetEntityId_; - } - - public static final int INTERACTTYPE_FIELD_NUMBER = 3; - private int interactType_; - /** - * <code>.InteractType interactType = 3;</code> - * @return The enum numeric value on the wire for interactType. - */ - @java.lang.Override public int getInteractTypeValue() { - return interactType_; - } - /** - * <code>.InteractType interactType = 3;</code> - * @return The interactType. - */ - @java.lang.Override public emu.grasscutter.net.proto.InteractTypeOuterClass.InteractType getInteractType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.InteractTypeOuterClass.InteractType result = emu.grasscutter.net.proto.InteractTypeOuterClass.InteractType.valueOf(interactType_); - return result == null ? emu.grasscutter.net.proto.InteractTypeOuterClass.InteractType.UNRECOGNIZED : result; - } - - public static final int OPTYPE_FIELD_NUMBER = 4; - private int opType_; - /** - * <code>.InterOpType opType = 4;</code> - * @return The enum numeric value on the wire for opType. - */ - @java.lang.Override public int getOpTypeValue() { - return opType_; - } - /** - * <code>.InterOpType opType = 4;</code> - * @return The opType. - */ - @java.lang.Override public emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType getOpType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType result = emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.valueOf(opType_); - return result == null ? emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.UNRECOGNIZED : result; - } - - public static final int GADGETID_FIELD_NUMBER = 5; - private int gadgetId_; - /** - * <code>uint32 gadgetId = 5;</code> - * @return The gadgetId. - */ - @java.lang.Override - public int getGadgetId() { - return gadgetId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (gadgetEntityId_ != 0) { - output.writeUInt32(2, gadgetEntityId_); - } - if (interactType_ != emu.grasscutter.net.proto.InteractTypeOuterClass.InteractType.InteractNone.getNumber()) { - output.writeEnum(3, interactType_); - } - if (opType_ != emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.InterOpFinish.getNumber()) { - output.writeEnum(4, opType_); - } - if (gadgetId_ != 0) { - output.writeUInt32(5, gadgetId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (gadgetEntityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, gadgetEntityId_); - } - if (interactType_ != emu.grasscutter.net.proto.InteractTypeOuterClass.InteractType.InteractNone.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, interactType_); - } - if (opType_ != emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.InterOpFinish.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, opType_); - } - if (gadgetId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, gadgetId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp other = (emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getGadgetEntityId() - != other.getGadgetEntityId()) return false; - if (interactType_ != other.interactType_) return false; - if (opType_ != other.opType_) return false; - if (getGadgetId() - != other.getGadgetId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + GADGETENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getGadgetEntityId(); - hash = (37 * hash) + INTERACTTYPE_FIELD_NUMBER; - hash = (53 * hash) + interactType_; - hash = (37 * hash) + OPTYPE_FIELD_NUMBER; - hash = (53 * hash) + opType_; - hash = (37 * hash) + GADGETID_FIELD_NUMBER; - hash = (53 * hash) + getGadgetId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GadgetInteractRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GadgetInteractRsp) - emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GadgetInteractRspOuterClass.internal_static_GadgetInteractRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GadgetInteractRspOuterClass.internal_static_GadgetInteractRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp.class, emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - gadgetEntityId_ = 0; - - interactType_ = 0; - - opType_ = 0; - - gadgetId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GadgetInteractRspOuterClass.internal_static_GadgetInteractRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp build() { - emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp buildPartial() { - emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp result = new emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp(this); - result.retcode_ = retcode_; - result.gadgetEntityId_ = gadgetEntityId_; - result.interactType_ = interactType_; - result.opType_ = opType_; - result.gadgetId_ = gadgetId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp) { - return mergeFrom((emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp other) { - if (other == emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getGadgetEntityId() != 0) { - setGadgetEntityId(other.getGadgetEntityId()); - } - if (other.interactType_ != 0) { - setInteractTypeValue(other.getInteractTypeValue()); - } - if (other.opType_ != 0) { - setOpTypeValue(other.getOpTypeValue()); - } - if (other.getGadgetId() != 0) { - setGadgetId(other.getGadgetId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int gadgetEntityId_ ; - /** - * <code>uint32 gadgetEntityId = 2;</code> - * @return The gadgetEntityId. - */ - @java.lang.Override - public int getGadgetEntityId() { - return gadgetEntityId_; - } - /** - * <code>uint32 gadgetEntityId = 2;</code> - * @param value The gadgetEntityId to set. - * @return This builder for chaining. - */ - public Builder setGadgetEntityId(int value) { - - gadgetEntityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gadgetEntityId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearGadgetEntityId() { - - gadgetEntityId_ = 0; - onChanged(); - return this; - } - - private int interactType_ = 0; - /** - * <code>.InteractType interactType = 3;</code> - * @return The enum numeric value on the wire for interactType. - */ - @java.lang.Override public int getInteractTypeValue() { - return interactType_; - } - /** - * <code>.InteractType interactType = 3;</code> - * @param value The enum numeric value on the wire for interactType to set. - * @return This builder for chaining. - */ - public Builder setInteractTypeValue(int value) { - - interactType_ = value; - onChanged(); - return this; - } - /** - * <code>.InteractType interactType = 3;</code> - * @return The interactType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.InteractTypeOuterClass.InteractType getInteractType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.InteractTypeOuterClass.InteractType result = emu.grasscutter.net.proto.InteractTypeOuterClass.InteractType.valueOf(interactType_); - return result == null ? emu.grasscutter.net.proto.InteractTypeOuterClass.InteractType.UNRECOGNIZED : result; - } - /** - * <code>.InteractType interactType = 3;</code> - * @param value The interactType to set. - * @return This builder for chaining. - */ - public Builder setInteractType(emu.grasscutter.net.proto.InteractTypeOuterClass.InteractType value) { - if (value == null) { - throw new NullPointerException(); - } - - interactType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.InteractType interactType = 3;</code> - * @return This builder for chaining. - */ - public Builder clearInteractType() { - - interactType_ = 0; - onChanged(); - return this; - } - - private int opType_ = 0; - /** - * <code>.InterOpType opType = 4;</code> - * @return The enum numeric value on the wire for opType. - */ - @java.lang.Override public int getOpTypeValue() { - return opType_; - } - /** - * <code>.InterOpType opType = 4;</code> - * @param value The enum numeric value on the wire for opType to set. - * @return This builder for chaining. - */ - public Builder setOpTypeValue(int value) { - - opType_ = value; - onChanged(); - return this; - } - /** - * <code>.InterOpType opType = 4;</code> - * @return The opType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType getOpType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType result = emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.valueOf(opType_); - return result == null ? emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType.UNRECOGNIZED : result; - } - /** - * <code>.InterOpType opType = 4;</code> - * @param value The opType to set. - * @return This builder for chaining. - */ - public Builder setOpType(emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType value) { - if (value == null) { - throw new NullPointerException(); - } - - opType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.InterOpType opType = 4;</code> - * @return This builder for chaining. - */ - public Builder clearOpType() { - - opType_ = 0; - onChanged(); - return this; - } - - private int gadgetId_ ; - /** - * <code>uint32 gadgetId = 5;</code> - * @return The gadgetId. - */ - @java.lang.Override - public int getGadgetId() { - return gadgetId_; - } - /** - * <code>uint32 gadgetId = 5;</code> - * @param value The gadgetId to set. - * @return This builder for chaining. - */ - public Builder setGadgetId(int value) { - - gadgetId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gadgetId = 5;</code> - * @return This builder for chaining. - */ - public Builder clearGadgetId() { - - gadgetId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GadgetInteractRsp) - } - - // @@protoc_insertion_point(class_scope:GadgetInteractRsp) - private static final emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp(); - } - - public static emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GadgetInteractRsp> - PARSER = new com.google.protobuf.AbstractParser<GadgetInteractRsp>() { - @java.lang.Override - public GadgetInteractRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GadgetInteractRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GadgetInteractRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GadgetInteractRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GadgetInteractRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GadgetInteractRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027GadgetInteractRsp.proto\032\021InterOpType.p" + - "roto\032\022InteractType.proto\"\221\001\n\021GadgetInter" + - "actRsp\022\017\n\007retcode\030\001 \001(\005\022\026\n\016gadgetEntityI" + - "d\030\002 \001(\r\022#\n\014interactType\030\003 \001(\0162\r.Interact" + - "Type\022\034\n\006opType\030\004 \001(\0162\014.InterOpType\022\020\n\010ga" + - "dgetId\030\005 \001(\rB\033\n\031emu.grasscutter.net.prot" + - "ob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.InterOpTypeOuterClass.getDescriptor(), - emu.grasscutter.net.proto.InteractTypeOuterClass.getDescriptor(), - }); - internal_static_GadgetInteractRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GadgetInteractRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GadgetInteractRsp_descriptor, - new java.lang.String[] { "Retcode", "GadgetEntityId", "InteractType", "OpType", "GadgetId", }); - emu.grasscutter.net.proto.InterOpTypeOuterClass.getDescriptor(); - emu.grasscutter.net.proto.InteractTypeOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GadgetPlayInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GadgetPlayInfoOuterClass.java deleted file mode 100644 index 09c9db655..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GadgetPlayInfoOuterClass.java +++ /dev/null @@ -1,1319 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GadgetPlayInfo.proto - -package emu.grasscutter.net.proto; - -public final class GadgetPlayInfoOuterClass { - private GadgetPlayInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GadgetPlayInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:GadgetPlayInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 playType = 1;</code> - * @return The playType. - */ - int getPlayType(); - - /** - * <code>uint32 duration = 2;</code> - * @return The duration. - */ - int getDuration(); - - /** - * <code>repeated uint32 progressStageList = 3;</code> - * @return A list containing the progressStageList. - */ - java.util.List<java.lang.Integer> getProgressStageListList(); - /** - * <code>repeated uint32 progressStageList = 3;</code> - * @return The count of progressStageList. - */ - int getProgressStageListCount(); - /** - * <code>repeated uint32 progressStageList = 3;</code> - * @param index The index of the element to return. - * @return The progressStageList at the given index. - */ - int getProgressStageList(int index); - - /** - * <code>uint32 startCd = 4;</code> - * @return The startCd. - */ - int getStartCd(); - - /** - * <code>uint32 startTime = 5;</code> - * @return The startTime. - */ - int getStartTime(); - - /** - * <code>uint32 progress = 6;</code> - * @return The progress. - */ - int getProgress(); - - /** - * <code>.GadgetCrucibleInfo crucibleInfo = 21;</code> - * @return Whether the crucibleInfo field is set. - */ - boolean hasCrucibleInfo(); - /** - * <code>.GadgetCrucibleInfo crucibleInfo = 21;</code> - * @return The crucibleInfo. - */ - emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo getCrucibleInfo(); - /** - * <code>.GadgetCrucibleInfo crucibleInfo = 21;</code> - */ - emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfoOrBuilder getCrucibleInfoOrBuilder(); - - public emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo.PlayInfoCase getPlayInfoCase(); - } - /** - * Protobuf type {@code GadgetPlayInfo} - */ - public static final class GadgetPlayInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GadgetPlayInfo) - GadgetPlayInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use GadgetPlayInfo.newBuilder() to construct. - private GadgetPlayInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GadgetPlayInfo() { - progressStageList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GadgetPlayInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GadgetPlayInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - playType_ = input.readUInt32(); - break; - } - case 16: { - - duration_ = input.readUInt32(); - break; - } - case 24: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - progressStageList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - progressStageList_.addInt(input.readUInt32()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - progressStageList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - progressStageList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 32: { - - startCd_ = input.readUInt32(); - break; - } - case 40: { - - startTime_ = input.readUInt32(); - break; - } - case 48: { - - progress_ = input.readUInt32(); - break; - } - case 170: { - emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo.Builder subBuilder = null; - if (playInfoCase_ == 21) { - subBuilder = ((emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo) playInfo_).toBuilder(); - } - playInfo_ = - input.readMessage(emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo) playInfo_); - playInfo_ = subBuilder.buildPartial(); - } - playInfoCase_ = 21; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - progressStageList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.internal_static_GadgetPlayInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.internal_static_GadgetPlayInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo.class, emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo.Builder.class); - } - - private int playInfoCase_ = 0; - private java.lang.Object playInfo_; - public enum PlayInfoCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - CRUCIBLEINFO(21), - PLAYINFO_NOT_SET(0); - private final int value; - private PlayInfoCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PlayInfoCase valueOf(int value) { - return forNumber(value); - } - - public static PlayInfoCase forNumber(int value) { - switch (value) { - case 21: return CRUCIBLEINFO; - case 0: return PLAYINFO_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public PlayInfoCase - getPlayInfoCase() { - return PlayInfoCase.forNumber( - playInfoCase_); - } - - public static final int PLAYTYPE_FIELD_NUMBER = 1; - private int playType_; - /** - * <code>uint32 playType = 1;</code> - * @return The playType. - */ - @java.lang.Override - public int getPlayType() { - return playType_; - } - - public static final int DURATION_FIELD_NUMBER = 2; - private int duration_; - /** - * <code>uint32 duration = 2;</code> - * @return The duration. - */ - @java.lang.Override - public int getDuration() { - return duration_; - } - - public static final int PROGRESSSTAGELIST_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.IntList progressStageList_; - /** - * <code>repeated uint32 progressStageList = 3;</code> - * @return A list containing the progressStageList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getProgressStageListList() { - return progressStageList_; - } - /** - * <code>repeated uint32 progressStageList = 3;</code> - * @return The count of progressStageList. - */ - public int getProgressStageListCount() { - return progressStageList_.size(); - } - /** - * <code>repeated uint32 progressStageList = 3;</code> - * @param index The index of the element to return. - * @return The progressStageList at the given index. - */ - public int getProgressStageList(int index) { - return progressStageList_.getInt(index); - } - private int progressStageListMemoizedSerializedSize = -1; - - public static final int STARTCD_FIELD_NUMBER = 4; - private int startCd_; - /** - * <code>uint32 startCd = 4;</code> - * @return The startCd. - */ - @java.lang.Override - public int getStartCd() { - return startCd_; - } - - public static final int STARTTIME_FIELD_NUMBER = 5; - private int startTime_; - /** - * <code>uint32 startTime = 5;</code> - * @return The startTime. - */ - @java.lang.Override - public int getStartTime() { - return startTime_; - } - - public static final int PROGRESS_FIELD_NUMBER = 6; - private int progress_; - /** - * <code>uint32 progress = 6;</code> - * @return The progress. - */ - @java.lang.Override - public int getProgress() { - return progress_; - } - - public static final int CRUCIBLEINFO_FIELD_NUMBER = 21; - /** - * <code>.GadgetCrucibleInfo crucibleInfo = 21;</code> - * @return Whether the crucibleInfo field is set. - */ - @java.lang.Override - public boolean hasCrucibleInfo() { - return playInfoCase_ == 21; - } - /** - * <code>.GadgetCrucibleInfo crucibleInfo = 21;</code> - * @return The crucibleInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo getCrucibleInfo() { - if (playInfoCase_ == 21) { - return (emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo) playInfo_; - } - return emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo.getDefaultInstance(); - } - /** - * <code>.GadgetCrucibleInfo crucibleInfo = 21;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfoOrBuilder getCrucibleInfoOrBuilder() { - if (playInfoCase_ == 21) { - return (emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo) playInfo_; - } - return emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (playType_ != 0) { - output.writeUInt32(1, playType_); - } - if (duration_ != 0) { - output.writeUInt32(2, duration_); - } - if (getProgressStageListList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(progressStageListMemoizedSerializedSize); - } - for (int i = 0; i < progressStageList_.size(); i++) { - output.writeUInt32NoTag(progressStageList_.getInt(i)); - } - if (startCd_ != 0) { - output.writeUInt32(4, startCd_); - } - if (startTime_ != 0) { - output.writeUInt32(5, startTime_); - } - if (progress_ != 0) { - output.writeUInt32(6, progress_); - } - if (playInfoCase_ == 21) { - output.writeMessage(21, (emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo) playInfo_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (playType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, playType_); - } - if (duration_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, duration_); - } - { - int dataSize = 0; - for (int i = 0; i < progressStageList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(progressStageList_.getInt(i)); - } - size += dataSize; - if (!getProgressStageListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - progressStageListMemoizedSerializedSize = dataSize; - } - if (startCd_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, startCd_); - } - if (startTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, startTime_); - } - if (progress_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, progress_); - } - if (playInfoCase_ == 21) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, (emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo) playInfo_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo other = (emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo) obj; - - if (getPlayType() - != other.getPlayType()) return false; - if (getDuration() - != other.getDuration()) return false; - if (!getProgressStageListList() - .equals(other.getProgressStageListList())) return false; - if (getStartCd() - != other.getStartCd()) return false; - if (getStartTime() - != other.getStartTime()) return false; - if (getProgress() - != other.getProgress()) return false; - if (!getPlayInfoCase().equals(other.getPlayInfoCase())) return false; - switch (playInfoCase_) { - case 21: - if (!getCrucibleInfo() - .equals(other.getCrucibleInfo())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PLAYTYPE_FIELD_NUMBER; - hash = (53 * hash) + getPlayType(); - hash = (37 * hash) + DURATION_FIELD_NUMBER; - hash = (53 * hash) + getDuration(); - if (getProgressStageListCount() > 0) { - hash = (37 * hash) + PROGRESSSTAGELIST_FIELD_NUMBER; - hash = (53 * hash) + getProgressStageListList().hashCode(); - } - hash = (37 * hash) + STARTCD_FIELD_NUMBER; - hash = (53 * hash) + getStartCd(); - hash = (37 * hash) + STARTTIME_FIELD_NUMBER; - hash = (53 * hash) + getStartTime(); - hash = (37 * hash) + PROGRESS_FIELD_NUMBER; - hash = (53 * hash) + getProgress(); - switch (playInfoCase_) { - case 21: - hash = (37 * hash) + CRUCIBLEINFO_FIELD_NUMBER; - hash = (53 * hash) + getCrucibleInfo().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GadgetPlayInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GadgetPlayInfo) - emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.internal_static_GadgetPlayInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.internal_static_GadgetPlayInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo.class, emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - playType_ = 0; - - duration_ = 0; - - progressStageList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - startCd_ = 0; - - startTime_ = 0; - - progress_ = 0; - - playInfoCase_ = 0; - playInfo_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.internal_static_GadgetPlayInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo build() { - emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo buildPartial() { - emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo result = new emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo(this); - int from_bitField0_ = bitField0_; - result.playType_ = playType_; - result.duration_ = duration_; - if (((bitField0_ & 0x00000001) != 0)) { - progressStageList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.progressStageList_ = progressStageList_; - result.startCd_ = startCd_; - result.startTime_ = startTime_; - result.progress_ = progress_; - if (playInfoCase_ == 21) { - if (crucibleInfoBuilder_ == null) { - result.playInfo_ = playInfo_; - } else { - result.playInfo_ = crucibleInfoBuilder_.build(); - } - } - result.playInfoCase_ = playInfoCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo) { - return mergeFrom((emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo other) { - if (other == emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo.getDefaultInstance()) return this; - if (other.getPlayType() != 0) { - setPlayType(other.getPlayType()); - } - if (other.getDuration() != 0) { - setDuration(other.getDuration()); - } - if (!other.progressStageList_.isEmpty()) { - if (progressStageList_.isEmpty()) { - progressStageList_ = other.progressStageList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureProgressStageListIsMutable(); - progressStageList_.addAll(other.progressStageList_); - } - onChanged(); - } - if (other.getStartCd() != 0) { - setStartCd(other.getStartCd()); - } - if (other.getStartTime() != 0) { - setStartTime(other.getStartTime()); - } - if (other.getProgress() != 0) { - setProgress(other.getProgress()); - } - switch (other.getPlayInfoCase()) { - case CRUCIBLEINFO: { - mergeCrucibleInfo(other.getCrucibleInfo()); - break; - } - case PLAYINFO_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int playInfoCase_ = 0; - private java.lang.Object playInfo_; - public PlayInfoCase - getPlayInfoCase() { - return PlayInfoCase.forNumber( - playInfoCase_); - } - - public Builder clearPlayInfo() { - playInfoCase_ = 0; - playInfo_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private int playType_ ; - /** - * <code>uint32 playType = 1;</code> - * @return The playType. - */ - @java.lang.Override - public int getPlayType() { - return playType_; - } - /** - * <code>uint32 playType = 1;</code> - * @param value The playType to set. - * @return This builder for chaining. - */ - public Builder setPlayType(int value) { - - playType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 playType = 1;</code> - * @return This builder for chaining. - */ - public Builder clearPlayType() { - - playType_ = 0; - onChanged(); - return this; - } - - private int duration_ ; - /** - * <code>uint32 duration = 2;</code> - * @return The duration. - */ - @java.lang.Override - public int getDuration() { - return duration_; - } - /** - * <code>uint32 duration = 2;</code> - * @param value The duration to set. - * @return This builder for chaining. - */ - public Builder setDuration(int value) { - - duration_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 duration = 2;</code> - * @return This builder for chaining. - */ - public Builder clearDuration() { - - duration_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList progressStageList_ = emptyIntList(); - private void ensureProgressStageListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - progressStageList_ = mutableCopy(progressStageList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 progressStageList = 3;</code> - * @return A list containing the progressStageList. - */ - public java.util.List<java.lang.Integer> - getProgressStageListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(progressStageList_) : progressStageList_; - } - /** - * <code>repeated uint32 progressStageList = 3;</code> - * @return The count of progressStageList. - */ - public int getProgressStageListCount() { - return progressStageList_.size(); - } - /** - * <code>repeated uint32 progressStageList = 3;</code> - * @param index The index of the element to return. - * @return The progressStageList at the given index. - */ - public int getProgressStageList(int index) { - return progressStageList_.getInt(index); - } - /** - * <code>repeated uint32 progressStageList = 3;</code> - * @param index The index to set the value at. - * @param value The progressStageList to set. - * @return This builder for chaining. - */ - public Builder setProgressStageList( - int index, int value) { - ensureProgressStageListIsMutable(); - progressStageList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 progressStageList = 3;</code> - * @param value The progressStageList to add. - * @return This builder for chaining. - */ - public Builder addProgressStageList(int value) { - ensureProgressStageListIsMutable(); - progressStageList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 progressStageList = 3;</code> - * @param values The progressStageList to add. - * @return This builder for chaining. - */ - public Builder addAllProgressStageList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureProgressStageListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, progressStageList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 progressStageList = 3;</code> - * @return This builder for chaining. - */ - public Builder clearProgressStageList() { - progressStageList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private int startCd_ ; - /** - * <code>uint32 startCd = 4;</code> - * @return The startCd. - */ - @java.lang.Override - public int getStartCd() { - return startCd_; - } - /** - * <code>uint32 startCd = 4;</code> - * @param value The startCd to set. - * @return This builder for chaining. - */ - public Builder setStartCd(int value) { - - startCd_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 startCd = 4;</code> - * @return This builder for chaining. - */ - public Builder clearStartCd() { - - startCd_ = 0; - onChanged(); - return this; - } - - private int startTime_ ; - /** - * <code>uint32 startTime = 5;</code> - * @return The startTime. - */ - @java.lang.Override - public int getStartTime() { - return startTime_; - } - /** - * <code>uint32 startTime = 5;</code> - * @param value The startTime to set. - * @return This builder for chaining. - */ - public Builder setStartTime(int value) { - - startTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 startTime = 5;</code> - * @return This builder for chaining. - */ - public Builder clearStartTime() { - - startTime_ = 0; - onChanged(); - return this; - } - - private int progress_ ; - /** - * <code>uint32 progress = 6;</code> - * @return The progress. - */ - @java.lang.Override - public int getProgress() { - return progress_; - } - /** - * <code>uint32 progress = 6;</code> - * @param value The progress to set. - * @return This builder for chaining. - */ - public Builder setProgress(int value) { - - progress_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 progress = 6;</code> - * @return This builder for chaining. - */ - public Builder clearProgress() { - - progress_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo, emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo.Builder, emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfoOrBuilder> crucibleInfoBuilder_; - /** - * <code>.GadgetCrucibleInfo crucibleInfo = 21;</code> - * @return Whether the crucibleInfo field is set. - */ - @java.lang.Override - public boolean hasCrucibleInfo() { - return playInfoCase_ == 21; - } - /** - * <code>.GadgetCrucibleInfo crucibleInfo = 21;</code> - * @return The crucibleInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo getCrucibleInfo() { - if (crucibleInfoBuilder_ == null) { - if (playInfoCase_ == 21) { - return (emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo) playInfo_; - } - return emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo.getDefaultInstance(); - } else { - if (playInfoCase_ == 21) { - return crucibleInfoBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo.getDefaultInstance(); - } - } - /** - * <code>.GadgetCrucibleInfo crucibleInfo = 21;</code> - */ - public Builder setCrucibleInfo(emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo value) { - if (crucibleInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - playInfo_ = value; - onChanged(); - } else { - crucibleInfoBuilder_.setMessage(value); - } - playInfoCase_ = 21; - return this; - } - /** - * <code>.GadgetCrucibleInfo crucibleInfo = 21;</code> - */ - public Builder setCrucibleInfo( - emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo.Builder builderForValue) { - if (crucibleInfoBuilder_ == null) { - playInfo_ = builderForValue.build(); - onChanged(); - } else { - crucibleInfoBuilder_.setMessage(builderForValue.build()); - } - playInfoCase_ = 21; - return this; - } - /** - * <code>.GadgetCrucibleInfo crucibleInfo = 21;</code> - */ - public Builder mergeCrucibleInfo(emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo value) { - if (crucibleInfoBuilder_ == null) { - if (playInfoCase_ == 21 && - playInfo_ != emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo.getDefaultInstance()) { - playInfo_ = emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo.newBuilder((emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo) playInfo_) - .mergeFrom(value).buildPartial(); - } else { - playInfo_ = value; - } - onChanged(); - } else { - if (playInfoCase_ == 21) { - crucibleInfoBuilder_.mergeFrom(value); - } - crucibleInfoBuilder_.setMessage(value); - } - playInfoCase_ = 21; - return this; - } - /** - * <code>.GadgetCrucibleInfo crucibleInfo = 21;</code> - */ - public Builder clearCrucibleInfo() { - if (crucibleInfoBuilder_ == null) { - if (playInfoCase_ == 21) { - playInfoCase_ = 0; - playInfo_ = null; - onChanged(); - } - } else { - if (playInfoCase_ == 21) { - playInfoCase_ = 0; - playInfo_ = null; - } - crucibleInfoBuilder_.clear(); - } - return this; - } - /** - * <code>.GadgetCrucibleInfo crucibleInfo = 21;</code> - */ - public emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo.Builder getCrucibleInfoBuilder() { - return getCrucibleInfoFieldBuilder().getBuilder(); - } - /** - * <code>.GadgetCrucibleInfo crucibleInfo = 21;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfoOrBuilder getCrucibleInfoOrBuilder() { - if ((playInfoCase_ == 21) && (crucibleInfoBuilder_ != null)) { - return crucibleInfoBuilder_.getMessageOrBuilder(); - } else { - if (playInfoCase_ == 21) { - return (emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo) playInfo_; - } - return emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo.getDefaultInstance(); - } - } - /** - * <code>.GadgetCrucibleInfo crucibleInfo = 21;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo, emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo.Builder, emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfoOrBuilder> - getCrucibleInfoFieldBuilder() { - if (crucibleInfoBuilder_ == null) { - if (!(playInfoCase_ == 21)) { - playInfo_ = emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo.getDefaultInstance(); - } - crucibleInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo, emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo.Builder, emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfoOrBuilder>( - (emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo) playInfo_, - getParentForChildren(), - isClean()); - playInfo_ = null; - } - playInfoCase_ = 21; - onChanged();; - return crucibleInfoBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GadgetPlayInfo) - } - - // @@protoc_insertion_point(class_scope:GadgetPlayInfo) - private static final emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo(); - } - - public static emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GadgetPlayInfo> - PARSER = new com.google.protobuf.AbstractParser<GadgetPlayInfo>() { - @java.lang.Override - public GadgetPlayInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GadgetPlayInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GadgetPlayInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GadgetPlayInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GadgetPlayInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GadgetPlayInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024GadgetPlayInfo.proto\032\030GadgetCrucibleIn" + - "fo.proto\"\276\001\n\016GadgetPlayInfo\022\020\n\010playType\030" + - "\001 \001(\r\022\020\n\010duration\030\002 \001(\r\022\031\n\021progressStage" + - "List\030\003 \003(\r\022\017\n\007startCd\030\004 \001(\r\022\021\n\tstartTime" + - "\030\005 \001(\r\022\020\n\010progress\030\006 \001(\r\022+\n\014crucibleInfo" + - "\030\025 \001(\0132\023.GadgetCrucibleInfoH\000B\n\n\010playInf" + - "oB\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.getDescriptor(), - }); - internal_static_GadgetPlayInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GadgetPlayInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GadgetPlayInfo_descriptor, - new java.lang.String[] { "PlayType", "Duration", "ProgressStageList", "StartCd", "StartTime", "Progress", "CrucibleInfo", "PlayInfo", }); - emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GetActivityInfoRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GetActivityInfoRspOuterClass.java deleted file mode 100644 index 1db37555e..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GetActivityInfoRspOuterClass.java +++ /dev/null @@ -1,1109 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GetActivityInfoRsp.proto - -package emu.grasscutter.net.proto; - -public final class GetActivityInfoRspOuterClass { - private GetActivityInfoRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GetActivityInfoRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:GetActivityInfoRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - java.util.List<emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo> - getActivityInfoListList(); - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo getActivityInfoList(int index); - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - int getActivityInfoListCount(); - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfoOrBuilder> - getActivityInfoListOrBuilderList(); - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfoOrBuilder getActivityInfoListOrBuilder( - int index); - - /** - * <code>repeated uint32 activatedSaleIdList = 3;</code> - * @return A list containing the activatedSaleIdList. - */ - java.util.List<java.lang.Integer> getActivatedSaleIdListList(); - /** - * <code>repeated uint32 activatedSaleIdList = 3;</code> - * @return The count of activatedSaleIdList. - */ - int getActivatedSaleIdListCount(); - /** - * <code>repeated uint32 activatedSaleIdList = 3;</code> - * @param index The index of the element to return. - * @return The activatedSaleIdList at the given index. - */ - int getActivatedSaleIdList(int index); - } - /** - * Protobuf type {@code GetActivityInfoRsp} - */ - public static final class GetActivityInfoRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GetActivityInfoRsp) - GetActivityInfoRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetActivityInfoRsp.newBuilder() to construct. - private GetActivityInfoRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GetActivityInfoRsp() { - activityInfoList_ = java.util.Collections.emptyList(); - activatedSaleIdList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetActivityInfoRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetActivityInfoRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - activityInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo>(); - mutable_bitField0_ |= 0x00000001; - } - activityInfoList_.add( - input.readMessage(emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo.parser(), extensionRegistry)); - break; - } - case 24: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - activatedSaleIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - activatedSaleIdList_.addInt(input.readUInt32()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - activatedSaleIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - activatedSaleIdList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - activityInfoList_ = java.util.Collections.unmodifiableList(activityInfoList_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - activatedSaleIdList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.internal_static_GetActivityInfoRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.internal_static_GetActivityInfoRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp.class, emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int ACTIVITYINFOLIST_FIELD_NUMBER = 2; - private java.util.List<emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo> activityInfoList_; - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo> getActivityInfoListList() { - return activityInfoList_; - } - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfoOrBuilder> - getActivityInfoListOrBuilderList() { - return activityInfoList_; - } - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - @java.lang.Override - public int getActivityInfoListCount() { - return activityInfoList_.size(); - } - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo getActivityInfoList(int index) { - return activityInfoList_.get(index); - } - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfoOrBuilder getActivityInfoListOrBuilder( - int index) { - return activityInfoList_.get(index); - } - - public static final int ACTIVATEDSALEIDLIST_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.IntList activatedSaleIdList_; - /** - * <code>repeated uint32 activatedSaleIdList = 3;</code> - * @return A list containing the activatedSaleIdList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getActivatedSaleIdListList() { - return activatedSaleIdList_; - } - /** - * <code>repeated uint32 activatedSaleIdList = 3;</code> - * @return The count of activatedSaleIdList. - */ - public int getActivatedSaleIdListCount() { - return activatedSaleIdList_.size(); - } - /** - * <code>repeated uint32 activatedSaleIdList = 3;</code> - * @param index The index of the element to return. - * @return The activatedSaleIdList at the given index. - */ - public int getActivatedSaleIdList(int index) { - return activatedSaleIdList_.getInt(index); - } - private int activatedSaleIdListMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - for (int i = 0; i < activityInfoList_.size(); i++) { - output.writeMessage(2, activityInfoList_.get(i)); - } - if (getActivatedSaleIdListList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(activatedSaleIdListMemoizedSerializedSize); - } - for (int i = 0; i < activatedSaleIdList_.size(); i++) { - output.writeUInt32NoTag(activatedSaleIdList_.getInt(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - for (int i = 0; i < activityInfoList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, activityInfoList_.get(i)); - } - { - int dataSize = 0; - for (int i = 0; i < activatedSaleIdList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(activatedSaleIdList_.getInt(i)); - } - size += dataSize; - if (!getActivatedSaleIdListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - activatedSaleIdListMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp other = (emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (!getActivityInfoListList() - .equals(other.getActivityInfoListList())) return false; - if (!getActivatedSaleIdListList() - .equals(other.getActivatedSaleIdListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - if (getActivityInfoListCount() > 0) { - hash = (37 * hash) + ACTIVITYINFOLIST_FIELD_NUMBER; - hash = (53 * hash) + getActivityInfoListList().hashCode(); - } - if (getActivatedSaleIdListCount() > 0) { - hash = (37 * hash) + ACTIVATEDSALEIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getActivatedSaleIdListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GetActivityInfoRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GetActivityInfoRsp) - emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.internal_static_GetActivityInfoRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.internal_static_GetActivityInfoRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp.class, emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getActivityInfoListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - if (activityInfoListBuilder_ == null) { - activityInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - activityInfoListBuilder_.clear(); - } - activatedSaleIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.internal_static_GetActivityInfoRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp build() { - emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp buildPartial() { - emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp result = new emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp(this); - int from_bitField0_ = bitField0_; - result.retcode_ = retcode_; - if (activityInfoListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - activityInfoList_ = java.util.Collections.unmodifiableList(activityInfoList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.activityInfoList_ = activityInfoList_; - } else { - result.activityInfoList_ = activityInfoListBuilder_.build(); - } - if (((bitField0_ & 0x00000002) != 0)) { - activatedSaleIdList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.activatedSaleIdList_ = activatedSaleIdList_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp) { - return mergeFrom((emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp other) { - if (other == emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (activityInfoListBuilder_ == null) { - if (!other.activityInfoList_.isEmpty()) { - if (activityInfoList_.isEmpty()) { - activityInfoList_ = other.activityInfoList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureActivityInfoListIsMutable(); - activityInfoList_.addAll(other.activityInfoList_); - } - onChanged(); - } - } else { - if (!other.activityInfoList_.isEmpty()) { - if (activityInfoListBuilder_.isEmpty()) { - activityInfoListBuilder_.dispose(); - activityInfoListBuilder_ = null; - activityInfoList_ = other.activityInfoList_; - bitField0_ = (bitField0_ & ~0x00000001); - activityInfoListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getActivityInfoListFieldBuilder() : null; - } else { - activityInfoListBuilder_.addAllMessages(other.activityInfoList_); - } - } - } - if (!other.activatedSaleIdList_.isEmpty()) { - if (activatedSaleIdList_.isEmpty()) { - activatedSaleIdList_ = other.activatedSaleIdList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureActivatedSaleIdListIsMutable(); - activatedSaleIdList_.addAll(other.activatedSaleIdList_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo> activityInfoList_ = - java.util.Collections.emptyList(); - private void ensureActivityInfoListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - activityInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo>(activityInfoList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo, emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo.Builder, emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfoOrBuilder> activityInfoListBuilder_; - - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo> getActivityInfoListList() { - if (activityInfoListBuilder_ == null) { - return java.util.Collections.unmodifiableList(activityInfoList_); - } else { - return activityInfoListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - public int getActivityInfoListCount() { - if (activityInfoListBuilder_ == null) { - return activityInfoList_.size(); - } else { - return activityInfoListBuilder_.getCount(); - } - } - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - public emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo getActivityInfoList(int index) { - if (activityInfoListBuilder_ == null) { - return activityInfoList_.get(index); - } else { - return activityInfoListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - public Builder setActivityInfoList( - int index, emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo value) { - if (activityInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureActivityInfoListIsMutable(); - activityInfoList_.set(index, value); - onChanged(); - } else { - activityInfoListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - public Builder setActivityInfoList( - int index, emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo.Builder builderForValue) { - if (activityInfoListBuilder_ == null) { - ensureActivityInfoListIsMutable(); - activityInfoList_.set(index, builderForValue.build()); - onChanged(); - } else { - activityInfoListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - public Builder addActivityInfoList(emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo value) { - if (activityInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureActivityInfoListIsMutable(); - activityInfoList_.add(value); - onChanged(); - } else { - activityInfoListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - public Builder addActivityInfoList( - int index, emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo value) { - if (activityInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureActivityInfoListIsMutable(); - activityInfoList_.add(index, value); - onChanged(); - } else { - activityInfoListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - public Builder addActivityInfoList( - emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo.Builder builderForValue) { - if (activityInfoListBuilder_ == null) { - ensureActivityInfoListIsMutable(); - activityInfoList_.add(builderForValue.build()); - onChanged(); - } else { - activityInfoListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - public Builder addActivityInfoList( - int index, emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo.Builder builderForValue) { - if (activityInfoListBuilder_ == null) { - ensureActivityInfoListIsMutable(); - activityInfoList_.add(index, builderForValue.build()); - onChanged(); - } else { - activityInfoListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - public Builder addAllActivityInfoList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo> values) { - if (activityInfoListBuilder_ == null) { - ensureActivityInfoListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, activityInfoList_); - onChanged(); - } else { - activityInfoListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - public Builder clearActivityInfoList() { - if (activityInfoListBuilder_ == null) { - activityInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - activityInfoListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - public Builder removeActivityInfoList(int index) { - if (activityInfoListBuilder_ == null) { - ensureActivityInfoListIsMutable(); - activityInfoList_.remove(index); - onChanged(); - } else { - activityInfoListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - public emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo.Builder getActivityInfoListBuilder( - int index) { - return getActivityInfoListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - public emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfoOrBuilder getActivityInfoListOrBuilder( - int index) { - if (activityInfoListBuilder_ == null) { - return activityInfoList_.get(index); } else { - return activityInfoListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfoOrBuilder> - getActivityInfoListOrBuilderList() { - if (activityInfoListBuilder_ != null) { - return activityInfoListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(activityInfoList_); - } - } - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - public emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo.Builder addActivityInfoListBuilder() { - return getActivityInfoListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo.getDefaultInstance()); - } - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - public emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo.Builder addActivityInfoListBuilder( - int index) { - return getActivityInfoListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo.getDefaultInstance()); - } - /** - * <code>repeated .ActivityInfo activityInfoList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo.Builder> - getActivityInfoListBuilderList() { - return getActivityInfoListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo, emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo.Builder, emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfoOrBuilder> - getActivityInfoListFieldBuilder() { - if (activityInfoListBuilder_ == null) { - activityInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo, emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo.Builder, emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfoOrBuilder>( - activityInfoList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - activityInfoList_ = null; - } - return activityInfoListBuilder_; - } - - private com.google.protobuf.Internal.IntList activatedSaleIdList_ = emptyIntList(); - private void ensureActivatedSaleIdListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - activatedSaleIdList_ = mutableCopy(activatedSaleIdList_); - bitField0_ |= 0x00000002; - } - } - /** - * <code>repeated uint32 activatedSaleIdList = 3;</code> - * @return A list containing the activatedSaleIdList. - */ - public java.util.List<java.lang.Integer> - getActivatedSaleIdListList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(activatedSaleIdList_) : activatedSaleIdList_; - } - /** - * <code>repeated uint32 activatedSaleIdList = 3;</code> - * @return The count of activatedSaleIdList. - */ - public int getActivatedSaleIdListCount() { - return activatedSaleIdList_.size(); - } - /** - * <code>repeated uint32 activatedSaleIdList = 3;</code> - * @param index The index of the element to return. - * @return The activatedSaleIdList at the given index. - */ - public int getActivatedSaleIdList(int index) { - return activatedSaleIdList_.getInt(index); - } - /** - * <code>repeated uint32 activatedSaleIdList = 3;</code> - * @param index The index to set the value at. - * @param value The activatedSaleIdList to set. - * @return This builder for chaining. - */ - public Builder setActivatedSaleIdList( - int index, int value) { - ensureActivatedSaleIdListIsMutable(); - activatedSaleIdList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 activatedSaleIdList = 3;</code> - * @param value The activatedSaleIdList to add. - * @return This builder for chaining. - */ - public Builder addActivatedSaleIdList(int value) { - ensureActivatedSaleIdListIsMutable(); - activatedSaleIdList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 activatedSaleIdList = 3;</code> - * @param values The activatedSaleIdList to add. - * @return This builder for chaining. - */ - public Builder addAllActivatedSaleIdList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureActivatedSaleIdListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, activatedSaleIdList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 activatedSaleIdList = 3;</code> - * @return This builder for chaining. - */ - public Builder clearActivatedSaleIdList() { - activatedSaleIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GetActivityInfoRsp) - } - - // @@protoc_insertion_point(class_scope:GetActivityInfoRsp) - private static final emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp(); - } - - public static emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GetActivityInfoRsp> - PARSER = new com.google.protobuf.AbstractParser<GetActivityInfoRsp>() { - @java.lang.Override - public GetActivityInfoRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetActivityInfoRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GetActivityInfoRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GetActivityInfoRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GetActivityInfoRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GetActivityInfoRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030GetActivityInfoRsp.proto\032\022ActivityInfo" + - ".proto\"k\n\022GetActivityInfoRsp\022\017\n\007retcode\030" + - "\001 \001(\005\022\'\n\020activityInfoList\030\002 \003(\0132\r.Activi" + - "tyInfo\022\033\n\023activatedSaleIdList\030\003 \003(\rB\033\n\031e" + - "mu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ActivityInfoOuterClass.getDescriptor(), - }); - internal_static_GetActivityInfoRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GetActivityInfoRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GetActivityInfoRsp_descriptor, - new java.lang.String[] { "Retcode", "ActivityInfoList", "ActivatedSaleIdList", }); - emu.grasscutter.net.proto.ActivityInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GetAllUnlockNameCardRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GetAllUnlockNameCardRspOuterClass.java deleted file mode 100644 index 9e4e6c89e..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GetAllUnlockNameCardRspOuterClass.java +++ /dev/null @@ -1,734 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GetAllUnlockNameCardRsp.proto - -package emu.grasscutter.net.proto; - -public final class GetAllUnlockNameCardRspOuterClass { - private GetAllUnlockNameCardRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GetAllUnlockNameCardRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:GetAllUnlockNameCardRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>repeated uint32 nameCardList = 2;</code> - * @return A list containing the nameCardList. - */ - java.util.List<java.lang.Integer> getNameCardListList(); - /** - * <code>repeated uint32 nameCardList = 2;</code> - * @return The count of nameCardList. - */ - int getNameCardListCount(); - /** - * <code>repeated uint32 nameCardList = 2;</code> - * @param index The index of the element to return. - * @return The nameCardList at the given index. - */ - int getNameCardList(int index); - } - /** - * Protobuf type {@code GetAllUnlockNameCardRsp} - */ - public static final class GetAllUnlockNameCardRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GetAllUnlockNameCardRsp) - GetAllUnlockNameCardRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetAllUnlockNameCardRsp.newBuilder() to construct. - private GetAllUnlockNameCardRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GetAllUnlockNameCardRsp() { - nameCardList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetAllUnlockNameCardRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetAllUnlockNameCardRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - nameCardList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - nameCardList_.addInt(input.readUInt32()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - nameCardList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - nameCardList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - nameCardList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.internal_static_GetAllUnlockNameCardRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.internal_static_GetAllUnlockNameCardRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp.class, emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int NAMECARDLIST_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.IntList nameCardList_; - /** - * <code>repeated uint32 nameCardList = 2;</code> - * @return A list containing the nameCardList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getNameCardListList() { - return nameCardList_; - } - /** - * <code>repeated uint32 nameCardList = 2;</code> - * @return The count of nameCardList. - */ - public int getNameCardListCount() { - return nameCardList_.size(); - } - /** - * <code>repeated uint32 nameCardList = 2;</code> - * @param index The index of the element to return. - * @return The nameCardList at the given index. - */ - public int getNameCardList(int index) { - return nameCardList_.getInt(index); - } - private int nameCardListMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (getNameCardListList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(nameCardListMemoizedSerializedSize); - } - for (int i = 0; i < nameCardList_.size(); i++) { - output.writeUInt32NoTag(nameCardList_.getInt(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - { - int dataSize = 0; - for (int i = 0; i < nameCardList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(nameCardList_.getInt(i)); - } - size += dataSize; - if (!getNameCardListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - nameCardListMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp other = (emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (!getNameCardListList() - .equals(other.getNameCardListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - if (getNameCardListCount() > 0) { - hash = (37 * hash) + NAMECARDLIST_FIELD_NUMBER; - hash = (53 * hash) + getNameCardListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GetAllUnlockNameCardRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GetAllUnlockNameCardRsp) - emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.internal_static_GetAllUnlockNameCardRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.internal_static_GetAllUnlockNameCardRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp.class, emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - nameCardList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.internal_static_GetAllUnlockNameCardRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp build() { - emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp buildPartial() { - emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp result = new emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp(this); - int from_bitField0_ = bitField0_; - result.retcode_ = retcode_; - if (((bitField0_ & 0x00000001) != 0)) { - nameCardList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nameCardList_ = nameCardList_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp) { - return mergeFrom((emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp other) { - if (other == emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (!other.nameCardList_.isEmpty()) { - if (nameCardList_.isEmpty()) { - nameCardList_ = other.nameCardList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNameCardListIsMutable(); - nameCardList_.addAll(other.nameCardList_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList nameCardList_ = emptyIntList(); - private void ensureNameCardListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nameCardList_ = mutableCopy(nameCardList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 nameCardList = 2;</code> - * @return A list containing the nameCardList. - */ - public java.util.List<java.lang.Integer> - getNameCardListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(nameCardList_) : nameCardList_; - } - /** - * <code>repeated uint32 nameCardList = 2;</code> - * @return The count of nameCardList. - */ - public int getNameCardListCount() { - return nameCardList_.size(); - } - /** - * <code>repeated uint32 nameCardList = 2;</code> - * @param index The index of the element to return. - * @return The nameCardList at the given index. - */ - public int getNameCardList(int index) { - return nameCardList_.getInt(index); - } - /** - * <code>repeated uint32 nameCardList = 2;</code> - * @param index The index to set the value at. - * @param value The nameCardList to set. - * @return This builder for chaining. - */ - public Builder setNameCardList( - int index, int value) { - ensureNameCardListIsMutable(); - nameCardList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 nameCardList = 2;</code> - * @param value The nameCardList to add. - * @return This builder for chaining. - */ - public Builder addNameCardList(int value) { - ensureNameCardListIsMutable(); - nameCardList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 nameCardList = 2;</code> - * @param values The nameCardList to add. - * @return This builder for chaining. - */ - public Builder addAllNameCardList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureNameCardListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nameCardList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 nameCardList = 2;</code> - * @return This builder for chaining. - */ - public Builder clearNameCardList() { - nameCardList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GetAllUnlockNameCardRsp) - } - - // @@protoc_insertion_point(class_scope:GetAllUnlockNameCardRsp) - private static final emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp(); - } - - public static emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GetAllUnlockNameCardRsp> - PARSER = new com.google.protobuf.AbstractParser<GetAllUnlockNameCardRsp>() { - @java.lang.Override - public GetAllUnlockNameCardRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAllUnlockNameCardRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GetAllUnlockNameCardRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GetAllUnlockNameCardRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GetAllUnlockNameCardRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GetAllUnlockNameCardRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035GetAllUnlockNameCardRsp.proto\"@\n\027GetAl" + - "lUnlockNameCardRsp\022\017\n\007retcode\030\001 \001(\005\022\024\n\014n" + - "ameCardList\030\002 \003(\rB\033\n\031emu.grasscutter.net" + - ".protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_GetAllUnlockNameCardRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GetAllUnlockNameCardRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GetAllUnlockNameCardRsp_descriptor, - new java.lang.String[] { "Retcode", "NameCardList", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GetAuthkeyReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GetAuthkeyReqOuterClass.java deleted file mode 100644 index d9181fdfb..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GetAuthkeyReqOuterClass.java +++ /dev/null @@ -1,757 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GetAuthkeyReq.proto - -package emu.grasscutter.net.proto; - -public final class GetAuthkeyReqOuterClass { - private GetAuthkeyReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GetAuthkeyReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:GetAuthkeyReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>string authAppid = 1;</code> - * @return The authAppid. - */ - java.lang.String getAuthAppid(); - /** - * <code>string authAppid = 1;</code> - * @return The bytes for authAppid. - */ - com.google.protobuf.ByteString - getAuthAppidBytes(); - - /** - * <code>uint32 signType = 2;</code> - * @return The signType. - */ - int getSignType(); - - /** - * <code>uint32 authkeyVer = 3;</code> - * @return The authkeyVer. - */ - int getAuthkeyVer(); - } - /** - * Protobuf type {@code GetAuthkeyReq} - */ - public static final class GetAuthkeyReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GetAuthkeyReq) - GetAuthkeyReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetAuthkeyReq.newBuilder() to construct. - private GetAuthkeyReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GetAuthkeyReq() { - authAppid_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetAuthkeyReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetAuthkeyReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - authAppid_ = s; - break; - } - case 16: { - - signType_ = input.readUInt32(); - break; - } - case 24: { - - authkeyVer_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.internal_static_GetAuthkeyReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.internal_static_GetAuthkeyReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq.class, emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq.Builder.class); - } - - public static final int AUTHAPPID_FIELD_NUMBER = 1; - private volatile java.lang.Object authAppid_; - /** - * <code>string authAppid = 1;</code> - * @return The authAppid. - */ - @java.lang.Override - public java.lang.String getAuthAppid() { - java.lang.Object ref = authAppid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - authAppid_ = s; - return s; - } - } - /** - * <code>string authAppid = 1;</code> - * @return The bytes for authAppid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAuthAppidBytes() { - java.lang.Object ref = authAppid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - authAppid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SIGNTYPE_FIELD_NUMBER = 2; - private int signType_; - /** - * <code>uint32 signType = 2;</code> - * @return The signType. - */ - @java.lang.Override - public int getSignType() { - return signType_; - } - - public static final int AUTHKEYVER_FIELD_NUMBER = 3; - private int authkeyVer_; - /** - * <code>uint32 authkeyVer = 3;</code> - * @return The authkeyVer. - */ - @java.lang.Override - public int getAuthkeyVer() { - return authkeyVer_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAuthAppidBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, authAppid_); - } - if (signType_ != 0) { - output.writeUInt32(2, signType_); - } - if (authkeyVer_ != 0) { - output.writeUInt32(3, authkeyVer_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAuthAppidBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, authAppid_); - } - if (signType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, signType_); - } - if (authkeyVer_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, authkeyVer_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq other = (emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq) obj; - - if (!getAuthAppid() - .equals(other.getAuthAppid())) return false; - if (getSignType() - != other.getSignType()) return false; - if (getAuthkeyVer() - != other.getAuthkeyVer()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AUTHAPPID_FIELD_NUMBER; - hash = (53 * hash) + getAuthAppid().hashCode(); - hash = (37 * hash) + SIGNTYPE_FIELD_NUMBER; - hash = (53 * hash) + getSignType(); - hash = (37 * hash) + AUTHKEYVER_FIELD_NUMBER; - hash = (53 * hash) + getAuthkeyVer(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GetAuthkeyReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GetAuthkeyReq) - emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.internal_static_GetAuthkeyReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.internal_static_GetAuthkeyReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq.class, emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - authAppid_ = ""; - - signType_ = 0; - - authkeyVer_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.internal_static_GetAuthkeyReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq build() { - emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq buildPartial() { - emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq result = new emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq(this); - result.authAppid_ = authAppid_; - result.signType_ = signType_; - result.authkeyVer_ = authkeyVer_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq) { - return mergeFrom((emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq other) { - if (other == emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq.getDefaultInstance()) return this; - if (!other.getAuthAppid().isEmpty()) { - authAppid_ = other.authAppid_; - onChanged(); - } - if (other.getSignType() != 0) { - setSignType(other.getSignType()); - } - if (other.getAuthkeyVer() != 0) { - setAuthkeyVer(other.getAuthkeyVer()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object authAppid_ = ""; - /** - * <code>string authAppid = 1;</code> - * @return The authAppid. - */ - public java.lang.String getAuthAppid() { - java.lang.Object ref = authAppid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - authAppid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string authAppid = 1;</code> - * @return The bytes for authAppid. - */ - public com.google.protobuf.ByteString - getAuthAppidBytes() { - java.lang.Object ref = authAppid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - authAppid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string authAppid = 1;</code> - * @param value The authAppid to set. - * @return This builder for chaining. - */ - public Builder setAuthAppid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - authAppid_ = value; - onChanged(); - return this; - } - /** - * <code>string authAppid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAuthAppid() { - - authAppid_ = getDefaultInstance().getAuthAppid(); - onChanged(); - return this; - } - /** - * <code>string authAppid = 1;</code> - * @param value The bytes for authAppid to set. - * @return This builder for chaining. - */ - public Builder setAuthAppidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - authAppid_ = value; - onChanged(); - return this; - } - - private int signType_ ; - /** - * <code>uint32 signType = 2;</code> - * @return The signType. - */ - @java.lang.Override - public int getSignType() { - return signType_; - } - /** - * <code>uint32 signType = 2;</code> - * @param value The signType to set. - * @return This builder for chaining. - */ - public Builder setSignType(int value) { - - signType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 signType = 2;</code> - * @return This builder for chaining. - */ - public Builder clearSignType() { - - signType_ = 0; - onChanged(); - return this; - } - - private int authkeyVer_ ; - /** - * <code>uint32 authkeyVer = 3;</code> - * @return The authkeyVer. - */ - @java.lang.Override - public int getAuthkeyVer() { - return authkeyVer_; - } - /** - * <code>uint32 authkeyVer = 3;</code> - * @param value The authkeyVer to set. - * @return This builder for chaining. - */ - public Builder setAuthkeyVer(int value) { - - authkeyVer_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 authkeyVer = 3;</code> - * @return This builder for chaining. - */ - public Builder clearAuthkeyVer() { - - authkeyVer_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GetAuthkeyReq) - } - - // @@protoc_insertion_point(class_scope:GetAuthkeyReq) - private static final emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq(); - } - - public static emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GetAuthkeyReq> - PARSER = new com.google.protobuf.AbstractParser<GetAuthkeyReq>() { - @java.lang.Override - public GetAuthkeyReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAuthkeyReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GetAuthkeyReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GetAuthkeyReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetAuthkeyReqOuterClass.GetAuthkeyReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GetAuthkeyReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GetAuthkeyReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023GetAuthkeyReq.proto\"H\n\rGetAuthkeyReq\022\021" + - "\n\tauthAppid\030\001 \001(\t\022\020\n\010signType\030\002 \001(\r\022\022\n\na" + - "uthkeyVer\030\003 \001(\rB\033\n\031emu.grasscutter.net.p" + - "rotob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_GetAuthkeyReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GetAuthkeyReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GetAuthkeyReq_descriptor, - new java.lang.String[] { "AuthAppid", "SignType", "AuthkeyVer", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GetAuthkeyRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GetAuthkeyRspOuterClass.java deleted file mode 100644 index fc41b8bb6..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GetAuthkeyRspOuterClass.java +++ /dev/null @@ -1,1128 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GetAuthkeyRsp.proto - -package emu.grasscutter.net.proto; - -public final class GetAuthkeyRspOuterClass { - private GetAuthkeyRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GetAuthkeyRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:GetAuthkeyRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>string authkey = 2;</code> - * @return The authkey. - */ - java.lang.String getAuthkey(); - /** - * <code>string authkey = 2;</code> - * @return The bytes for authkey. - */ - com.google.protobuf.ByteString - getAuthkeyBytes(); - - /** - * <code>string authAppid = 3;</code> - * @return The authAppid. - */ - java.lang.String getAuthAppid(); - /** - * <code>string authAppid = 3;</code> - * @return The bytes for authAppid. - */ - com.google.protobuf.ByteString - getAuthAppidBytes(); - - /** - * <code>uint32 signType = 4;</code> - * @return The signType. - */ - int getSignType(); - - /** - * <code>uint32 authkeyVer = 5;</code> - * @return The authkeyVer. - */ - int getAuthkeyVer(); - - /** - * <code>string gameBiz = 6;</code> - * @return The gameBiz. - */ - java.lang.String getGameBiz(); - /** - * <code>string gameBiz = 6;</code> - * @return The bytes for gameBiz. - */ - com.google.protobuf.ByteString - getGameBizBytes(); - } - /** - * Protobuf type {@code GetAuthkeyRsp} - */ - public static final class GetAuthkeyRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GetAuthkeyRsp) - GetAuthkeyRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetAuthkeyRsp.newBuilder() to construct. - private GetAuthkeyRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GetAuthkeyRsp() { - authkey_ = ""; - authAppid_ = ""; - gameBiz_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetAuthkeyRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetAuthkeyRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - authkey_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - authAppid_ = s; - break; - } - case 32: { - - signType_ = input.readUInt32(); - break; - } - case 40: { - - authkeyVer_ = input.readUInt32(); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - gameBiz_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.internal_static_GetAuthkeyRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.internal_static_GetAuthkeyRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp.class, emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int AUTHKEY_FIELD_NUMBER = 2; - private volatile java.lang.Object authkey_; - /** - * <code>string authkey = 2;</code> - * @return The authkey. - */ - @java.lang.Override - public java.lang.String getAuthkey() { - java.lang.Object ref = authkey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - authkey_ = s; - return s; - } - } - /** - * <code>string authkey = 2;</code> - * @return The bytes for authkey. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAuthkeyBytes() { - java.lang.Object ref = authkey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - authkey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AUTHAPPID_FIELD_NUMBER = 3; - private volatile java.lang.Object authAppid_; - /** - * <code>string authAppid = 3;</code> - * @return The authAppid. - */ - @java.lang.Override - public java.lang.String getAuthAppid() { - java.lang.Object ref = authAppid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - authAppid_ = s; - return s; - } - } - /** - * <code>string authAppid = 3;</code> - * @return The bytes for authAppid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAuthAppidBytes() { - java.lang.Object ref = authAppid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - authAppid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SIGNTYPE_FIELD_NUMBER = 4; - private int signType_; - /** - * <code>uint32 signType = 4;</code> - * @return The signType. - */ - @java.lang.Override - public int getSignType() { - return signType_; - } - - public static final int AUTHKEYVER_FIELD_NUMBER = 5; - private int authkeyVer_; - /** - * <code>uint32 authkeyVer = 5;</code> - * @return The authkeyVer. - */ - @java.lang.Override - public int getAuthkeyVer() { - return authkeyVer_; - } - - public static final int GAMEBIZ_FIELD_NUMBER = 6; - private volatile java.lang.Object gameBiz_; - /** - * <code>string gameBiz = 6;</code> - * @return The gameBiz. - */ - @java.lang.Override - public java.lang.String getGameBiz() { - java.lang.Object ref = gameBiz_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gameBiz_ = s; - return s; - } - } - /** - * <code>string gameBiz = 6;</code> - * @return The bytes for gameBiz. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getGameBizBytes() { - java.lang.Object ref = gameBiz_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gameBiz_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (!getAuthkeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, authkey_); - } - if (!getAuthAppidBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, authAppid_); - } - if (signType_ != 0) { - output.writeUInt32(4, signType_); - } - if (authkeyVer_ != 0) { - output.writeUInt32(5, authkeyVer_); - } - if (!getGameBizBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, gameBiz_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (!getAuthkeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, authkey_); - } - if (!getAuthAppidBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, authAppid_); - } - if (signType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, signType_); - } - if (authkeyVer_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, authkeyVer_); - } - if (!getGameBizBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, gameBiz_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp other = (emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (!getAuthkey() - .equals(other.getAuthkey())) return false; - if (!getAuthAppid() - .equals(other.getAuthAppid())) return false; - if (getSignType() - != other.getSignType()) return false; - if (getAuthkeyVer() - != other.getAuthkeyVer()) return false; - if (!getGameBiz() - .equals(other.getGameBiz())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + AUTHKEY_FIELD_NUMBER; - hash = (53 * hash) + getAuthkey().hashCode(); - hash = (37 * hash) + AUTHAPPID_FIELD_NUMBER; - hash = (53 * hash) + getAuthAppid().hashCode(); - hash = (37 * hash) + SIGNTYPE_FIELD_NUMBER; - hash = (53 * hash) + getSignType(); - hash = (37 * hash) + AUTHKEYVER_FIELD_NUMBER; - hash = (53 * hash) + getAuthkeyVer(); - hash = (37 * hash) + GAMEBIZ_FIELD_NUMBER; - hash = (53 * hash) + getGameBiz().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GetAuthkeyRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GetAuthkeyRsp) - emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.internal_static_GetAuthkeyRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.internal_static_GetAuthkeyRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp.class, emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - authkey_ = ""; - - authAppid_ = ""; - - signType_ = 0; - - authkeyVer_ = 0; - - gameBiz_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.internal_static_GetAuthkeyRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp build() { - emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp buildPartial() { - emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp result = new emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp(this); - result.retcode_ = retcode_; - result.authkey_ = authkey_; - result.authAppid_ = authAppid_; - result.signType_ = signType_; - result.authkeyVer_ = authkeyVer_; - result.gameBiz_ = gameBiz_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp) { - return mergeFrom((emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp other) { - if (other == emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (!other.getAuthkey().isEmpty()) { - authkey_ = other.authkey_; - onChanged(); - } - if (!other.getAuthAppid().isEmpty()) { - authAppid_ = other.authAppid_; - onChanged(); - } - if (other.getSignType() != 0) { - setSignType(other.getSignType()); - } - if (other.getAuthkeyVer() != 0) { - setAuthkeyVer(other.getAuthkeyVer()); - } - if (!other.getGameBiz().isEmpty()) { - gameBiz_ = other.gameBiz_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private java.lang.Object authkey_ = ""; - /** - * <code>string authkey = 2;</code> - * @return The authkey. - */ - public java.lang.String getAuthkey() { - java.lang.Object ref = authkey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - authkey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string authkey = 2;</code> - * @return The bytes for authkey. - */ - public com.google.protobuf.ByteString - getAuthkeyBytes() { - java.lang.Object ref = authkey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - authkey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string authkey = 2;</code> - * @param value The authkey to set. - * @return This builder for chaining. - */ - public Builder setAuthkey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - authkey_ = value; - onChanged(); - return this; - } - /** - * <code>string authkey = 2;</code> - * @return This builder for chaining. - */ - public Builder clearAuthkey() { - - authkey_ = getDefaultInstance().getAuthkey(); - onChanged(); - return this; - } - /** - * <code>string authkey = 2;</code> - * @param value The bytes for authkey to set. - * @return This builder for chaining. - */ - public Builder setAuthkeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - authkey_ = value; - onChanged(); - return this; - } - - private java.lang.Object authAppid_ = ""; - /** - * <code>string authAppid = 3;</code> - * @return The authAppid. - */ - public java.lang.String getAuthAppid() { - java.lang.Object ref = authAppid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - authAppid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string authAppid = 3;</code> - * @return The bytes for authAppid. - */ - public com.google.protobuf.ByteString - getAuthAppidBytes() { - java.lang.Object ref = authAppid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - authAppid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string authAppid = 3;</code> - * @param value The authAppid to set. - * @return This builder for chaining. - */ - public Builder setAuthAppid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - authAppid_ = value; - onChanged(); - return this; - } - /** - * <code>string authAppid = 3;</code> - * @return This builder for chaining. - */ - public Builder clearAuthAppid() { - - authAppid_ = getDefaultInstance().getAuthAppid(); - onChanged(); - return this; - } - /** - * <code>string authAppid = 3;</code> - * @param value The bytes for authAppid to set. - * @return This builder for chaining. - */ - public Builder setAuthAppidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - authAppid_ = value; - onChanged(); - return this; - } - - private int signType_ ; - /** - * <code>uint32 signType = 4;</code> - * @return The signType. - */ - @java.lang.Override - public int getSignType() { - return signType_; - } - /** - * <code>uint32 signType = 4;</code> - * @param value The signType to set. - * @return This builder for chaining. - */ - public Builder setSignType(int value) { - - signType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 signType = 4;</code> - * @return This builder for chaining. - */ - public Builder clearSignType() { - - signType_ = 0; - onChanged(); - return this; - } - - private int authkeyVer_ ; - /** - * <code>uint32 authkeyVer = 5;</code> - * @return The authkeyVer. - */ - @java.lang.Override - public int getAuthkeyVer() { - return authkeyVer_; - } - /** - * <code>uint32 authkeyVer = 5;</code> - * @param value The authkeyVer to set. - * @return This builder for chaining. - */ - public Builder setAuthkeyVer(int value) { - - authkeyVer_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 authkeyVer = 5;</code> - * @return This builder for chaining. - */ - public Builder clearAuthkeyVer() { - - authkeyVer_ = 0; - onChanged(); - return this; - } - - private java.lang.Object gameBiz_ = ""; - /** - * <code>string gameBiz = 6;</code> - * @return The gameBiz. - */ - public java.lang.String getGameBiz() { - java.lang.Object ref = gameBiz_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gameBiz_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string gameBiz = 6;</code> - * @return The bytes for gameBiz. - */ - public com.google.protobuf.ByteString - getGameBizBytes() { - java.lang.Object ref = gameBiz_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gameBiz_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string gameBiz = 6;</code> - * @param value The gameBiz to set. - * @return This builder for chaining. - */ - public Builder setGameBiz( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gameBiz_ = value; - onChanged(); - return this; - } - /** - * <code>string gameBiz = 6;</code> - * @return This builder for chaining. - */ - public Builder clearGameBiz() { - - gameBiz_ = getDefaultInstance().getGameBiz(); - onChanged(); - return this; - } - /** - * <code>string gameBiz = 6;</code> - * @param value The bytes for gameBiz to set. - * @return This builder for chaining. - */ - public Builder setGameBizBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gameBiz_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GetAuthkeyRsp) - } - - // @@protoc_insertion_point(class_scope:GetAuthkeyRsp) - private static final emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp(); - } - - public static emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GetAuthkeyRsp> - PARSER = new com.google.protobuf.AbstractParser<GetAuthkeyRsp>() { - @java.lang.Override - public GetAuthkeyRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAuthkeyRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GetAuthkeyRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GetAuthkeyRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GetAuthkeyRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GetAuthkeyRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023GetAuthkeyRsp.proto\"{\n\rGetAuthkeyRsp\022\017" + - "\n\007retcode\030\001 \001(\005\022\017\n\007authkey\030\002 \001(\t\022\021\n\tauth" + - "Appid\030\003 \001(\t\022\020\n\010signType\030\004 \001(\r\022\022\n\nauthkey" + - "Ver\030\005 \001(\r\022\017\n\007gameBiz\030\006 \001(\tB\033\n\031emu.grassc" + - "utter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_GetAuthkeyRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GetAuthkeyRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GetAuthkeyRsp_descriptor, - new java.lang.String[] { "Retcode", "Authkey", "AuthAppid", "SignType", "AuthkeyVer", "GameBiz", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GetGachaInfoRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GetGachaInfoRspOuterClass.java deleted file mode 100644 index 27d99297c..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GetGachaInfoRspOuterClass.java +++ /dev/null @@ -1,985 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GetGachaInfoRsp.proto - -package emu.grasscutter.net.proto; - -public final class GetGachaInfoRspOuterClass { - private GetGachaInfoRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GetGachaInfoRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:GetGachaInfoRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - java.util.List<emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo> - getGachaInfoListList(); - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo getGachaInfoList(int index); - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - int getGachaInfoListCount(); - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfoOrBuilder> - getGachaInfoListOrBuilderList(); - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfoOrBuilder getGachaInfoListOrBuilder( - int index); - - /** - * <code>uint32 gachaRandom = 3;</code> - * @return The gachaRandom. - */ - int getGachaRandom(); - } - /** - * Protobuf type {@code GetGachaInfoRsp} - */ - public static final class GetGachaInfoRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GetGachaInfoRsp) - GetGachaInfoRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetGachaInfoRsp.newBuilder() to construct. - private GetGachaInfoRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GetGachaInfoRsp() { - gachaInfoList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetGachaInfoRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetGachaInfoRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - gachaInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo>(); - mutable_bitField0_ |= 0x00000001; - } - gachaInfoList_.add( - input.readMessage(emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.parser(), extensionRegistry)); - break; - } - case 24: { - - gachaRandom_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - gachaInfoList_ = java.util.Collections.unmodifiableList(gachaInfoList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.internal_static_GetGachaInfoRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.internal_static_GetGachaInfoRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp.class, emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int GACHAINFOLIST_FIELD_NUMBER = 2; - private java.util.List<emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo> gachaInfoList_; - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo> getGachaInfoListList() { - return gachaInfoList_; - } - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfoOrBuilder> - getGachaInfoListOrBuilderList() { - return gachaInfoList_; - } - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - @java.lang.Override - public int getGachaInfoListCount() { - return gachaInfoList_.size(); - } - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo getGachaInfoList(int index) { - return gachaInfoList_.get(index); - } - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfoOrBuilder getGachaInfoListOrBuilder( - int index) { - return gachaInfoList_.get(index); - } - - public static final int GACHARANDOM_FIELD_NUMBER = 3; - private int gachaRandom_; - /** - * <code>uint32 gachaRandom = 3;</code> - * @return The gachaRandom. - */ - @java.lang.Override - public int getGachaRandom() { - return gachaRandom_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - for (int i = 0; i < gachaInfoList_.size(); i++) { - output.writeMessage(2, gachaInfoList_.get(i)); - } - if (gachaRandom_ != 0) { - output.writeUInt32(3, gachaRandom_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - for (int i = 0; i < gachaInfoList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, gachaInfoList_.get(i)); - } - if (gachaRandom_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, gachaRandom_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp other = (emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (!getGachaInfoListList() - .equals(other.getGachaInfoListList())) return false; - if (getGachaRandom() - != other.getGachaRandom()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - if (getGachaInfoListCount() > 0) { - hash = (37 * hash) + GACHAINFOLIST_FIELD_NUMBER; - hash = (53 * hash) + getGachaInfoListList().hashCode(); - } - hash = (37 * hash) + GACHARANDOM_FIELD_NUMBER; - hash = (53 * hash) + getGachaRandom(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GetGachaInfoRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GetGachaInfoRsp) - emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.internal_static_GetGachaInfoRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.internal_static_GetGachaInfoRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp.class, emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getGachaInfoListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - if (gachaInfoListBuilder_ == null) { - gachaInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - gachaInfoListBuilder_.clear(); - } - gachaRandom_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.internal_static_GetGachaInfoRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp build() { - emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp buildPartial() { - emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp result = new emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp(this); - int from_bitField0_ = bitField0_; - result.retcode_ = retcode_; - if (gachaInfoListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - gachaInfoList_ = java.util.Collections.unmodifiableList(gachaInfoList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.gachaInfoList_ = gachaInfoList_; - } else { - result.gachaInfoList_ = gachaInfoListBuilder_.build(); - } - result.gachaRandom_ = gachaRandom_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp) { - return mergeFrom((emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp other) { - if (other == emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (gachaInfoListBuilder_ == null) { - if (!other.gachaInfoList_.isEmpty()) { - if (gachaInfoList_.isEmpty()) { - gachaInfoList_ = other.gachaInfoList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureGachaInfoListIsMutable(); - gachaInfoList_.addAll(other.gachaInfoList_); - } - onChanged(); - } - } else { - if (!other.gachaInfoList_.isEmpty()) { - if (gachaInfoListBuilder_.isEmpty()) { - gachaInfoListBuilder_.dispose(); - gachaInfoListBuilder_ = null; - gachaInfoList_ = other.gachaInfoList_; - bitField0_ = (bitField0_ & ~0x00000001); - gachaInfoListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGachaInfoListFieldBuilder() : null; - } else { - gachaInfoListBuilder_.addAllMessages(other.gachaInfoList_); - } - } - } - if (other.getGachaRandom() != 0) { - setGachaRandom(other.getGachaRandom()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo> gachaInfoList_ = - java.util.Collections.emptyList(); - private void ensureGachaInfoListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - gachaInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo>(gachaInfoList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo, emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.Builder, emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfoOrBuilder> gachaInfoListBuilder_; - - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo> getGachaInfoListList() { - if (gachaInfoListBuilder_ == null) { - return java.util.Collections.unmodifiableList(gachaInfoList_); - } else { - return gachaInfoListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - public int getGachaInfoListCount() { - if (gachaInfoListBuilder_ == null) { - return gachaInfoList_.size(); - } else { - return gachaInfoListBuilder_.getCount(); - } - } - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - public emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo getGachaInfoList(int index) { - if (gachaInfoListBuilder_ == null) { - return gachaInfoList_.get(index); - } else { - return gachaInfoListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - public Builder setGachaInfoList( - int index, emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo value) { - if (gachaInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGachaInfoListIsMutable(); - gachaInfoList_.set(index, value); - onChanged(); - } else { - gachaInfoListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - public Builder setGachaInfoList( - int index, emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.Builder builderForValue) { - if (gachaInfoListBuilder_ == null) { - ensureGachaInfoListIsMutable(); - gachaInfoList_.set(index, builderForValue.build()); - onChanged(); - } else { - gachaInfoListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - public Builder addGachaInfoList(emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo value) { - if (gachaInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGachaInfoListIsMutable(); - gachaInfoList_.add(value); - onChanged(); - } else { - gachaInfoListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - public Builder addGachaInfoList( - int index, emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo value) { - if (gachaInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGachaInfoListIsMutable(); - gachaInfoList_.add(index, value); - onChanged(); - } else { - gachaInfoListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - public Builder addGachaInfoList( - emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.Builder builderForValue) { - if (gachaInfoListBuilder_ == null) { - ensureGachaInfoListIsMutable(); - gachaInfoList_.add(builderForValue.build()); - onChanged(); - } else { - gachaInfoListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - public Builder addGachaInfoList( - int index, emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.Builder builderForValue) { - if (gachaInfoListBuilder_ == null) { - ensureGachaInfoListIsMutable(); - gachaInfoList_.add(index, builderForValue.build()); - onChanged(); - } else { - gachaInfoListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - public Builder addAllGachaInfoList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo> values) { - if (gachaInfoListBuilder_ == null) { - ensureGachaInfoListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, gachaInfoList_); - onChanged(); - } else { - gachaInfoListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - public Builder clearGachaInfoList() { - if (gachaInfoListBuilder_ == null) { - gachaInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - gachaInfoListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - public Builder removeGachaInfoList(int index) { - if (gachaInfoListBuilder_ == null) { - ensureGachaInfoListIsMutable(); - gachaInfoList_.remove(index); - onChanged(); - } else { - gachaInfoListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - public emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.Builder getGachaInfoListBuilder( - int index) { - return getGachaInfoListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - public emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfoOrBuilder getGachaInfoListOrBuilder( - int index) { - if (gachaInfoListBuilder_ == null) { - return gachaInfoList_.get(index); } else { - return gachaInfoListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfoOrBuilder> - getGachaInfoListOrBuilderList() { - if (gachaInfoListBuilder_ != null) { - return gachaInfoListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(gachaInfoList_); - } - } - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - public emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.Builder addGachaInfoListBuilder() { - return getGachaInfoListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.getDefaultInstance()); - } - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - public emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.Builder addGachaInfoListBuilder( - int index) { - return getGachaInfoListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.getDefaultInstance()); - } - /** - * <code>repeated .GachaInfo gachaInfoList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.Builder> - getGachaInfoListBuilderList() { - return getGachaInfoListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo, emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.Builder, emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfoOrBuilder> - getGachaInfoListFieldBuilder() { - if (gachaInfoListBuilder_ == null) { - gachaInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo, emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.Builder, emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfoOrBuilder>( - gachaInfoList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - gachaInfoList_ = null; - } - return gachaInfoListBuilder_; - } - - private int gachaRandom_ ; - /** - * <code>uint32 gachaRandom = 3;</code> - * @return The gachaRandom. - */ - @java.lang.Override - public int getGachaRandom() { - return gachaRandom_; - } - /** - * <code>uint32 gachaRandom = 3;</code> - * @param value The gachaRandom to set. - * @return This builder for chaining. - */ - public Builder setGachaRandom(int value) { - - gachaRandom_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gachaRandom = 3;</code> - * @return This builder for chaining. - */ - public Builder clearGachaRandom() { - - gachaRandom_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GetGachaInfoRsp) - } - - // @@protoc_insertion_point(class_scope:GetGachaInfoRsp) - private static final emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp(); - } - - public static emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GetGachaInfoRsp> - PARSER = new com.google.protobuf.AbstractParser<GetGachaInfoRsp>() { - @java.lang.Override - public GetGachaInfoRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetGachaInfoRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GetGachaInfoRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GetGachaInfoRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GetGachaInfoRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GetGachaInfoRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025GetGachaInfoRsp.proto\032\017GachaInfo.proto" + - "\"Z\n\017GetGachaInfoRsp\022\017\n\007retcode\030\001 \001(\005\022!\n\r" + - "gachaInfoList\030\002 \003(\0132\n.GachaInfo\022\023\n\013gacha" + - "Random\030\003 \001(\rB\033\n\031emu.grasscutter.net.prot" + - "ob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.GachaInfoOuterClass.getDescriptor(), - }); - internal_static_GetGachaInfoRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GetGachaInfoRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GetGachaInfoRsp_descriptor, - new java.lang.String[] { "Retcode", "GachaInfoList", "GachaRandom", }); - emu.grasscutter.net.proto.GachaInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GetPlayerAskFriendListRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GetPlayerAskFriendListRspOuterClass.java deleted file mode 100644 index 6fd153d32..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GetPlayerAskFriendListRspOuterClass.java +++ /dev/null @@ -1,915 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GetPlayerAskFriendListRsp.proto - -package emu.grasscutter.net.proto; - -public final class GetPlayerAskFriendListRspOuterClass { - private GetPlayerAskFriendListRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GetPlayerAskFriendListRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:GetPlayerAskFriendListRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - java.util.List<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief> - getAskFriendListList(); - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getAskFriendList(int index); - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - int getAskFriendListCount(); - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder> - getAskFriendListOrBuilderList(); - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder getAskFriendListOrBuilder( - int index); - } - /** - * Protobuf type {@code GetPlayerAskFriendListRsp} - */ - public static final class GetPlayerAskFriendListRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GetPlayerAskFriendListRsp) - GetPlayerAskFriendListRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetPlayerAskFriendListRsp.newBuilder() to construct. - private GetPlayerAskFriendListRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GetPlayerAskFriendListRsp() { - askFriendList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetPlayerAskFriendListRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetPlayerAskFriendListRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - askFriendList_ = new java.util.ArrayList<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief>(); - mutable_bitField0_ |= 0x00000001; - } - askFriendList_.add( - input.readMessage(emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - askFriendList_ = java.util.Collections.unmodifiableList(askFriendList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.internal_static_GetPlayerAskFriendListRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.internal_static_GetPlayerAskFriendListRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp.class, emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int ASKFRIENDLIST_FIELD_NUMBER = 2; - private java.util.List<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief> askFriendList_; - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief> getAskFriendListList() { - return askFriendList_; - } - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder> - getAskFriendListOrBuilderList() { - return askFriendList_; - } - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - @java.lang.Override - public int getAskFriendListCount() { - return askFriendList_.size(); - } - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getAskFriendList(int index) { - return askFriendList_.get(index); - } - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder getAskFriendListOrBuilder( - int index) { - return askFriendList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - for (int i = 0; i < askFriendList_.size(); i++) { - output.writeMessage(2, askFriendList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - for (int i = 0; i < askFriendList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, askFriendList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp other = (emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (!getAskFriendListList() - .equals(other.getAskFriendListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - if (getAskFriendListCount() > 0) { - hash = (37 * hash) + ASKFRIENDLIST_FIELD_NUMBER; - hash = (53 * hash) + getAskFriendListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GetPlayerAskFriendListRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GetPlayerAskFriendListRsp) - emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.internal_static_GetPlayerAskFriendListRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.internal_static_GetPlayerAskFriendListRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp.class, emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAskFriendListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - if (askFriendListBuilder_ == null) { - askFriendList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - askFriendListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.internal_static_GetPlayerAskFriendListRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp build() { - emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp buildPartial() { - emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp result = new emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp(this); - int from_bitField0_ = bitField0_; - result.retcode_ = retcode_; - if (askFriendListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - askFriendList_ = java.util.Collections.unmodifiableList(askFriendList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.askFriendList_ = askFriendList_; - } else { - result.askFriendList_ = askFriendListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp) { - return mergeFrom((emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp other) { - if (other == emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (askFriendListBuilder_ == null) { - if (!other.askFriendList_.isEmpty()) { - if (askFriendList_.isEmpty()) { - askFriendList_ = other.askFriendList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAskFriendListIsMutable(); - askFriendList_.addAll(other.askFriendList_); - } - onChanged(); - } - } else { - if (!other.askFriendList_.isEmpty()) { - if (askFriendListBuilder_.isEmpty()) { - askFriendListBuilder_.dispose(); - askFriendListBuilder_ = null; - askFriendList_ = other.askFriendList_; - bitField0_ = (bitField0_ & ~0x00000001); - askFriendListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAskFriendListFieldBuilder() : null; - } else { - askFriendListBuilder_.addAllMessages(other.askFriendList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief> askFriendList_ = - java.util.Collections.emptyList(); - private void ensureAskFriendListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - askFriendList_ = new java.util.ArrayList<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief>(askFriendList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder> askFriendListBuilder_; - - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief> getAskFriendListList() { - if (askFriendListBuilder_ == null) { - return java.util.Collections.unmodifiableList(askFriendList_); - } else { - return askFriendListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - public int getAskFriendListCount() { - if (askFriendListBuilder_ == null) { - return askFriendList_.size(); - } else { - return askFriendListBuilder_.getCount(); - } - } - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getAskFriendList(int index) { - if (askFriendListBuilder_ == null) { - return askFriendList_.get(index); - } else { - return askFriendListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - public Builder setAskFriendList( - int index, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief value) { - if (askFriendListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAskFriendListIsMutable(); - askFriendList_.set(index, value); - onChanged(); - } else { - askFriendListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - public Builder setAskFriendList( - int index, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder builderForValue) { - if (askFriendListBuilder_ == null) { - ensureAskFriendListIsMutable(); - askFriendList_.set(index, builderForValue.build()); - onChanged(); - } else { - askFriendListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - public Builder addAskFriendList(emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief value) { - if (askFriendListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAskFriendListIsMutable(); - askFriendList_.add(value); - onChanged(); - } else { - askFriendListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - public Builder addAskFriendList( - int index, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief value) { - if (askFriendListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAskFriendListIsMutable(); - askFriendList_.add(index, value); - onChanged(); - } else { - askFriendListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - public Builder addAskFriendList( - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder builderForValue) { - if (askFriendListBuilder_ == null) { - ensureAskFriendListIsMutable(); - askFriendList_.add(builderForValue.build()); - onChanged(); - } else { - askFriendListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - public Builder addAskFriendList( - int index, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder builderForValue) { - if (askFriendListBuilder_ == null) { - ensureAskFriendListIsMutable(); - askFriendList_.add(index, builderForValue.build()); - onChanged(); - } else { - askFriendListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - public Builder addAllAskFriendList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief> values) { - if (askFriendListBuilder_ == null) { - ensureAskFriendListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, askFriendList_); - onChanged(); - } else { - askFriendListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - public Builder clearAskFriendList() { - if (askFriendListBuilder_ == null) { - askFriendList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - askFriendListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - public Builder removeAskFriendList(int index) { - if (askFriendListBuilder_ == null) { - ensureAskFriendListIsMutable(); - askFriendList_.remove(index); - onChanged(); - } else { - askFriendListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder getAskFriendListBuilder( - int index) { - return getAskFriendListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder getAskFriendListOrBuilder( - int index) { - if (askFriendListBuilder_ == null) { - return askFriendList_.get(index); } else { - return askFriendListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder> - getAskFriendListOrBuilderList() { - if (askFriendListBuilder_ != null) { - return askFriendListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(askFriendList_); - } - } - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder addAskFriendListBuilder() { - return getAskFriendListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.getDefaultInstance()); - } - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder addAskFriendListBuilder( - int index) { - return getAskFriendListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.getDefaultInstance()); - } - /** - * <code>repeated .FriendBrief askFriendList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder> - getAskFriendListBuilderList() { - return getAskFriendListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder> - getAskFriendListFieldBuilder() { - if (askFriendListBuilder_ == null) { - askFriendListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder>( - askFriendList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - askFriendList_ = null; - } - return askFriendListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GetPlayerAskFriendListRsp) - } - - // @@protoc_insertion_point(class_scope:GetPlayerAskFriendListRsp) - private static final emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp(); - } - - public static emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GetPlayerAskFriendListRsp> - PARSER = new com.google.protobuf.AbstractParser<GetPlayerAskFriendListRsp>() { - @java.lang.Override - public GetPlayerAskFriendListRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPlayerAskFriendListRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GetPlayerAskFriendListRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GetPlayerAskFriendListRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GetPlayerAskFriendListRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GetPlayerAskFriendListRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037GetPlayerAskFriendListRsp.proto\032\021Frien" + - "dBrief.proto\"Q\n\031GetPlayerAskFriendListRs" + - "p\022\017\n\007retcode\030\001 \001(\005\022#\n\raskFriendList\030\002 \003(" + - "\0132\014.FriendBriefB\033\n\031emu.grasscutter.net.p" + - "rotob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.FriendBriefOuterClass.getDescriptor(), - }); - internal_static_GetPlayerAskFriendListRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GetPlayerAskFriendListRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GetPlayerAskFriendListRsp_descriptor, - new java.lang.String[] { "Retcode", "AskFriendList", }); - emu.grasscutter.net.proto.FriendBriefOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GetPlayerBlacklistRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GetPlayerBlacklistRspOuterClass.java deleted file mode 100644 index 17d64db6f..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GetPlayerBlacklistRspOuterClass.java +++ /dev/null @@ -1,914 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GetPlayerBlacklistRsp.proto - -package emu.grasscutter.net.proto; - -public final class GetPlayerBlacklistRspOuterClass { - private GetPlayerBlacklistRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GetPlayerBlacklistRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:GetPlayerBlacklistRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - java.util.List<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief> - getBlacklistList(); - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getBlacklist(int index); - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - int getBlacklistCount(); - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder> - getBlacklistOrBuilderList(); - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder getBlacklistOrBuilder( - int index); - } - /** - * Protobuf type {@code GetPlayerBlacklistRsp} - */ - public static final class GetPlayerBlacklistRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GetPlayerBlacklistRsp) - GetPlayerBlacklistRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetPlayerBlacklistRsp.newBuilder() to construct. - private GetPlayerBlacklistRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GetPlayerBlacklistRsp() { - blacklist_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetPlayerBlacklistRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetPlayerBlacklistRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - blacklist_ = new java.util.ArrayList<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief>(); - mutable_bitField0_ |= 0x00000001; - } - blacklist_.add( - input.readMessage(emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - blacklist_ = java.util.Collections.unmodifiableList(blacklist_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.internal_static_GetPlayerBlacklistRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.internal_static_GetPlayerBlacklistRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp.class, emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int BLACKLIST_FIELD_NUMBER = 2; - private java.util.List<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief> blacklist_; - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief> getBlacklistList() { - return blacklist_; - } - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder> - getBlacklistOrBuilderList() { - return blacklist_; - } - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - @java.lang.Override - public int getBlacklistCount() { - return blacklist_.size(); - } - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getBlacklist(int index) { - return blacklist_.get(index); - } - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder getBlacklistOrBuilder( - int index) { - return blacklist_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - for (int i = 0; i < blacklist_.size(); i++) { - output.writeMessage(2, blacklist_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - for (int i = 0; i < blacklist_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, blacklist_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp other = (emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (!getBlacklistList() - .equals(other.getBlacklistList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - if (getBlacklistCount() > 0) { - hash = (37 * hash) + BLACKLIST_FIELD_NUMBER; - hash = (53 * hash) + getBlacklistList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GetPlayerBlacklistRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GetPlayerBlacklistRsp) - emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.internal_static_GetPlayerBlacklistRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.internal_static_GetPlayerBlacklistRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp.class, emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getBlacklistFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - if (blacklistBuilder_ == null) { - blacklist_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - blacklistBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.internal_static_GetPlayerBlacklistRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp build() { - emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp buildPartial() { - emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp result = new emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp(this); - int from_bitField0_ = bitField0_; - result.retcode_ = retcode_; - if (blacklistBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - blacklist_ = java.util.Collections.unmodifiableList(blacklist_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.blacklist_ = blacklist_; - } else { - result.blacklist_ = blacklistBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp) { - return mergeFrom((emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp other) { - if (other == emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (blacklistBuilder_ == null) { - if (!other.blacklist_.isEmpty()) { - if (blacklist_.isEmpty()) { - blacklist_ = other.blacklist_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBlacklistIsMutable(); - blacklist_.addAll(other.blacklist_); - } - onChanged(); - } - } else { - if (!other.blacklist_.isEmpty()) { - if (blacklistBuilder_.isEmpty()) { - blacklistBuilder_.dispose(); - blacklistBuilder_ = null; - blacklist_ = other.blacklist_; - bitField0_ = (bitField0_ & ~0x00000001); - blacklistBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBlacklistFieldBuilder() : null; - } else { - blacklistBuilder_.addAllMessages(other.blacklist_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief> blacklist_ = - java.util.Collections.emptyList(); - private void ensureBlacklistIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - blacklist_ = new java.util.ArrayList<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief>(blacklist_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder> blacklistBuilder_; - - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief> getBlacklistList() { - if (blacklistBuilder_ == null) { - return java.util.Collections.unmodifiableList(blacklist_); - } else { - return blacklistBuilder_.getMessageList(); - } - } - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - public int getBlacklistCount() { - if (blacklistBuilder_ == null) { - return blacklist_.size(); - } else { - return blacklistBuilder_.getCount(); - } - } - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getBlacklist(int index) { - if (blacklistBuilder_ == null) { - return blacklist_.get(index); - } else { - return blacklistBuilder_.getMessage(index); - } - } - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - public Builder setBlacklist( - int index, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief value) { - if (blacklistBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlacklistIsMutable(); - blacklist_.set(index, value); - onChanged(); - } else { - blacklistBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - public Builder setBlacklist( - int index, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder builderForValue) { - if (blacklistBuilder_ == null) { - ensureBlacklistIsMutable(); - blacklist_.set(index, builderForValue.build()); - onChanged(); - } else { - blacklistBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - public Builder addBlacklist(emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief value) { - if (blacklistBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlacklistIsMutable(); - blacklist_.add(value); - onChanged(); - } else { - blacklistBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - public Builder addBlacklist( - int index, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief value) { - if (blacklistBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlacklistIsMutable(); - blacklist_.add(index, value); - onChanged(); - } else { - blacklistBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - public Builder addBlacklist( - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder builderForValue) { - if (blacklistBuilder_ == null) { - ensureBlacklistIsMutable(); - blacklist_.add(builderForValue.build()); - onChanged(); - } else { - blacklistBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - public Builder addBlacklist( - int index, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder builderForValue) { - if (blacklistBuilder_ == null) { - ensureBlacklistIsMutable(); - blacklist_.add(index, builderForValue.build()); - onChanged(); - } else { - blacklistBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - public Builder addAllBlacklist( - java.lang.Iterable<? extends emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief> values) { - if (blacklistBuilder_ == null) { - ensureBlacklistIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, blacklist_); - onChanged(); - } else { - blacklistBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - public Builder clearBlacklist() { - if (blacklistBuilder_ == null) { - blacklist_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - blacklistBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - public Builder removeBlacklist(int index) { - if (blacklistBuilder_ == null) { - ensureBlacklistIsMutable(); - blacklist_.remove(index); - onChanged(); - } else { - blacklistBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder getBlacklistBuilder( - int index) { - return getBlacklistFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder getBlacklistOrBuilder( - int index) { - if (blacklistBuilder_ == null) { - return blacklist_.get(index); } else { - return blacklistBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder> - getBlacklistOrBuilderList() { - if (blacklistBuilder_ != null) { - return blacklistBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(blacklist_); - } - } - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder addBlacklistBuilder() { - return getBlacklistFieldBuilder().addBuilder( - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.getDefaultInstance()); - } - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder addBlacklistBuilder( - int index) { - return getBlacklistFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.getDefaultInstance()); - } - /** - * <code>repeated .FriendBrief blacklist = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder> - getBlacklistBuilderList() { - return getBlacklistFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder> - getBlacklistFieldBuilder() { - if (blacklistBuilder_ == null) { - blacklistBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder>( - blacklist_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - blacklist_ = null; - } - return blacklistBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GetPlayerBlacklistRsp) - } - - // @@protoc_insertion_point(class_scope:GetPlayerBlacklistRsp) - private static final emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp(); - } - - public static emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GetPlayerBlacklistRsp> - PARSER = new com.google.protobuf.AbstractParser<GetPlayerBlacklistRsp>() { - @java.lang.Override - public GetPlayerBlacklistRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPlayerBlacklistRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GetPlayerBlacklistRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GetPlayerBlacklistRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerBlacklistRspOuterClass.GetPlayerBlacklistRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GetPlayerBlacklistRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GetPlayerBlacklistRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033GetPlayerBlacklistRsp.proto\032\021FriendBri" + - "ef.proto\"I\n\025GetPlayerBlacklistRsp\022\017\n\007ret" + - "code\030\001 \001(\005\022\037\n\tblacklist\030\002 \003(\0132\014.FriendBr" + - "iefB\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.FriendBriefOuterClass.getDescriptor(), - }); - internal_static_GetPlayerBlacklistRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GetPlayerBlacklistRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GetPlayerBlacklistRsp_descriptor, - new java.lang.String[] { "Retcode", "Blacklist", }); - emu.grasscutter.net.proto.FriendBriefOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GetPlayerFriendListRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GetPlayerFriendListRspOuterClass.java deleted file mode 100644 index e0a1500c4..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GetPlayerFriendListRspOuterClass.java +++ /dev/null @@ -1,1287 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GetPlayerFriendListRsp.proto - -package emu.grasscutter.net.proto; - -public final class GetPlayerFriendListRspOuterClass { - private GetPlayerFriendListRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GetPlayerFriendListRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:GetPlayerFriendListRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - java.util.List<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief> - getFriendListList(); - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getFriendList(int index); - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - int getFriendListCount(); - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder> - getFriendListOrBuilderList(); - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder getFriendListOrBuilder( - int index); - - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - java.util.List<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief> - getAskFriendListList(); - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getAskFriendList(int index); - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - int getAskFriendListCount(); - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder> - getAskFriendListOrBuilderList(); - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder getAskFriendListOrBuilder( - int index); - } - /** - * Protobuf type {@code GetPlayerFriendListRsp} - */ - public static final class GetPlayerFriendListRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GetPlayerFriendListRsp) - GetPlayerFriendListRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetPlayerFriendListRsp.newBuilder() to construct. - private GetPlayerFriendListRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GetPlayerFriendListRsp() { - friendList_ = java.util.Collections.emptyList(); - askFriendList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetPlayerFriendListRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetPlayerFriendListRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - friendList_ = new java.util.ArrayList<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief>(); - mutable_bitField0_ |= 0x00000001; - } - friendList_.add( - input.readMessage(emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - askFriendList_ = new java.util.ArrayList<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief>(); - mutable_bitField0_ |= 0x00000002; - } - askFriendList_.add( - input.readMessage(emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - friendList_ = java.util.Collections.unmodifiableList(friendList_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - askFriendList_ = java.util.Collections.unmodifiableList(askFriendList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.internal_static_GetPlayerFriendListRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.internal_static_GetPlayerFriendListRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp.class, emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int FRIENDLIST_FIELD_NUMBER = 2; - private java.util.List<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief> friendList_; - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief> getFriendListList() { - return friendList_; - } - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder> - getFriendListOrBuilderList() { - return friendList_; - } - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - @java.lang.Override - public int getFriendListCount() { - return friendList_.size(); - } - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getFriendList(int index) { - return friendList_.get(index); - } - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder getFriendListOrBuilder( - int index) { - return friendList_.get(index); - } - - public static final int ASKFRIENDLIST_FIELD_NUMBER = 3; - private java.util.List<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief> askFriendList_; - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief> getAskFriendListList() { - return askFriendList_; - } - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder> - getAskFriendListOrBuilderList() { - return askFriendList_; - } - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - @java.lang.Override - public int getAskFriendListCount() { - return askFriendList_.size(); - } - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getAskFriendList(int index) { - return askFriendList_.get(index); - } - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder getAskFriendListOrBuilder( - int index) { - return askFriendList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - for (int i = 0; i < friendList_.size(); i++) { - output.writeMessage(2, friendList_.get(i)); - } - for (int i = 0; i < askFriendList_.size(); i++) { - output.writeMessage(3, askFriendList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - for (int i = 0; i < friendList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, friendList_.get(i)); - } - for (int i = 0; i < askFriendList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, askFriendList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp other = (emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (!getFriendListList() - .equals(other.getFriendListList())) return false; - if (!getAskFriendListList() - .equals(other.getAskFriendListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - if (getFriendListCount() > 0) { - hash = (37 * hash) + FRIENDLIST_FIELD_NUMBER; - hash = (53 * hash) + getFriendListList().hashCode(); - } - if (getAskFriendListCount() > 0) { - hash = (37 * hash) + ASKFRIENDLIST_FIELD_NUMBER; - hash = (53 * hash) + getAskFriendListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GetPlayerFriendListRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GetPlayerFriendListRsp) - emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.internal_static_GetPlayerFriendListRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.internal_static_GetPlayerFriendListRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp.class, emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getFriendListFieldBuilder(); - getAskFriendListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - if (friendListBuilder_ == null) { - friendList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - friendListBuilder_.clear(); - } - if (askFriendListBuilder_ == null) { - askFriendList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - askFriendListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.internal_static_GetPlayerFriendListRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp build() { - emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp buildPartial() { - emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp result = new emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp(this); - int from_bitField0_ = bitField0_; - result.retcode_ = retcode_; - if (friendListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - friendList_ = java.util.Collections.unmodifiableList(friendList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.friendList_ = friendList_; - } else { - result.friendList_ = friendListBuilder_.build(); - } - if (askFriendListBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - askFriendList_ = java.util.Collections.unmodifiableList(askFriendList_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.askFriendList_ = askFriendList_; - } else { - result.askFriendList_ = askFriendListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp) { - return mergeFrom((emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp other) { - if (other == emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (friendListBuilder_ == null) { - if (!other.friendList_.isEmpty()) { - if (friendList_.isEmpty()) { - friendList_ = other.friendList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFriendListIsMutable(); - friendList_.addAll(other.friendList_); - } - onChanged(); - } - } else { - if (!other.friendList_.isEmpty()) { - if (friendListBuilder_.isEmpty()) { - friendListBuilder_.dispose(); - friendListBuilder_ = null; - friendList_ = other.friendList_; - bitField0_ = (bitField0_ & ~0x00000001); - friendListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFriendListFieldBuilder() : null; - } else { - friendListBuilder_.addAllMessages(other.friendList_); - } - } - } - if (askFriendListBuilder_ == null) { - if (!other.askFriendList_.isEmpty()) { - if (askFriendList_.isEmpty()) { - askFriendList_ = other.askFriendList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureAskFriendListIsMutable(); - askFriendList_.addAll(other.askFriendList_); - } - onChanged(); - } - } else { - if (!other.askFriendList_.isEmpty()) { - if (askFriendListBuilder_.isEmpty()) { - askFriendListBuilder_.dispose(); - askFriendListBuilder_ = null; - askFriendList_ = other.askFriendList_; - bitField0_ = (bitField0_ & ~0x00000002); - askFriendListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAskFriendListFieldBuilder() : null; - } else { - askFriendListBuilder_.addAllMessages(other.askFriendList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief> friendList_ = - java.util.Collections.emptyList(); - private void ensureFriendListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - friendList_ = new java.util.ArrayList<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief>(friendList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder> friendListBuilder_; - - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief> getFriendListList() { - if (friendListBuilder_ == null) { - return java.util.Collections.unmodifiableList(friendList_); - } else { - return friendListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - public int getFriendListCount() { - if (friendListBuilder_ == null) { - return friendList_.size(); - } else { - return friendListBuilder_.getCount(); - } - } - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getFriendList(int index) { - if (friendListBuilder_ == null) { - return friendList_.get(index); - } else { - return friendListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - public Builder setFriendList( - int index, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief value) { - if (friendListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFriendListIsMutable(); - friendList_.set(index, value); - onChanged(); - } else { - friendListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - public Builder setFriendList( - int index, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder builderForValue) { - if (friendListBuilder_ == null) { - ensureFriendListIsMutable(); - friendList_.set(index, builderForValue.build()); - onChanged(); - } else { - friendListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - public Builder addFriendList(emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief value) { - if (friendListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFriendListIsMutable(); - friendList_.add(value); - onChanged(); - } else { - friendListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - public Builder addFriendList( - int index, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief value) { - if (friendListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFriendListIsMutable(); - friendList_.add(index, value); - onChanged(); - } else { - friendListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - public Builder addFriendList( - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder builderForValue) { - if (friendListBuilder_ == null) { - ensureFriendListIsMutable(); - friendList_.add(builderForValue.build()); - onChanged(); - } else { - friendListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - public Builder addFriendList( - int index, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder builderForValue) { - if (friendListBuilder_ == null) { - ensureFriendListIsMutable(); - friendList_.add(index, builderForValue.build()); - onChanged(); - } else { - friendListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - public Builder addAllFriendList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief> values) { - if (friendListBuilder_ == null) { - ensureFriendListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, friendList_); - onChanged(); - } else { - friendListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - public Builder clearFriendList() { - if (friendListBuilder_ == null) { - friendList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - friendListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - public Builder removeFriendList(int index) { - if (friendListBuilder_ == null) { - ensureFriendListIsMutable(); - friendList_.remove(index); - onChanged(); - } else { - friendListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder getFriendListBuilder( - int index) { - return getFriendListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder getFriendListOrBuilder( - int index) { - if (friendListBuilder_ == null) { - return friendList_.get(index); } else { - return friendListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder> - getFriendListOrBuilderList() { - if (friendListBuilder_ != null) { - return friendListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(friendList_); - } - } - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder addFriendListBuilder() { - return getFriendListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.getDefaultInstance()); - } - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder addFriendListBuilder( - int index) { - return getFriendListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.getDefaultInstance()); - } - /** - * <code>repeated .FriendBrief friendList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder> - getFriendListBuilderList() { - return getFriendListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder> - getFriendListFieldBuilder() { - if (friendListBuilder_ == null) { - friendListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder>( - friendList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - friendList_ = null; - } - return friendListBuilder_; - } - - private java.util.List<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief> askFriendList_ = - java.util.Collections.emptyList(); - private void ensureAskFriendListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - askFriendList_ = new java.util.ArrayList<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief>(askFriendList_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder> askFriendListBuilder_; - - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - public java.util.List<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief> getAskFriendListList() { - if (askFriendListBuilder_ == null) { - return java.util.Collections.unmodifiableList(askFriendList_); - } else { - return askFriendListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - public int getAskFriendListCount() { - if (askFriendListBuilder_ == null) { - return askFriendList_.size(); - } else { - return askFriendListBuilder_.getCount(); - } - } - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getAskFriendList(int index) { - if (askFriendListBuilder_ == null) { - return askFriendList_.get(index); - } else { - return askFriendListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - public Builder setAskFriendList( - int index, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief value) { - if (askFriendListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAskFriendListIsMutable(); - askFriendList_.set(index, value); - onChanged(); - } else { - askFriendListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - public Builder setAskFriendList( - int index, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder builderForValue) { - if (askFriendListBuilder_ == null) { - ensureAskFriendListIsMutable(); - askFriendList_.set(index, builderForValue.build()); - onChanged(); - } else { - askFriendListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - public Builder addAskFriendList(emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief value) { - if (askFriendListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAskFriendListIsMutable(); - askFriendList_.add(value); - onChanged(); - } else { - askFriendListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - public Builder addAskFriendList( - int index, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief value) { - if (askFriendListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAskFriendListIsMutable(); - askFriendList_.add(index, value); - onChanged(); - } else { - askFriendListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - public Builder addAskFriendList( - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder builderForValue) { - if (askFriendListBuilder_ == null) { - ensureAskFriendListIsMutable(); - askFriendList_.add(builderForValue.build()); - onChanged(); - } else { - askFriendListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - public Builder addAskFriendList( - int index, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder builderForValue) { - if (askFriendListBuilder_ == null) { - ensureAskFriendListIsMutable(); - askFriendList_.add(index, builderForValue.build()); - onChanged(); - } else { - askFriendListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - public Builder addAllAskFriendList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief> values) { - if (askFriendListBuilder_ == null) { - ensureAskFriendListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, askFriendList_); - onChanged(); - } else { - askFriendListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - public Builder clearAskFriendList() { - if (askFriendListBuilder_ == null) { - askFriendList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - askFriendListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - public Builder removeAskFriendList(int index) { - if (askFriendListBuilder_ == null) { - ensureAskFriendListIsMutable(); - askFriendList_.remove(index); - onChanged(); - } else { - askFriendListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder getAskFriendListBuilder( - int index) { - return getAskFriendListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder getAskFriendListOrBuilder( - int index) { - if (askFriendListBuilder_ == null) { - return askFriendList_.get(index); } else { - return askFriendListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder> - getAskFriendListOrBuilderList() { - if (askFriendListBuilder_ != null) { - return askFriendListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(askFriendList_); - } - } - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder addAskFriendListBuilder() { - return getAskFriendListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.getDefaultInstance()); - } - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder addAskFriendListBuilder( - int index) { - return getAskFriendListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.getDefaultInstance()); - } - /** - * <code>repeated .FriendBrief askFriendList = 3;</code> - */ - public java.util.List<emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder> - getAskFriendListBuilderList() { - return getAskFriendListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder> - getAskFriendListFieldBuilder() { - if (askFriendListBuilder_ == null) { - askFriendListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder>( - askFriendList_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - askFriendList_ = null; - } - return askFriendListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GetPlayerFriendListRsp) - } - - // @@protoc_insertion_point(class_scope:GetPlayerFriendListRsp) - private static final emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp(); - } - - public static emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GetPlayerFriendListRsp> - PARSER = new com.google.protobuf.AbstractParser<GetPlayerFriendListRsp>() { - @java.lang.Override - public GetPlayerFriendListRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPlayerFriendListRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GetPlayerFriendListRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GetPlayerFriendListRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GetPlayerFriendListRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GetPlayerFriendListRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034GetPlayerFriendListRsp.proto\032\021FriendBr" + - "ief.proto\"p\n\026GetPlayerFriendListRsp\022\017\n\007r" + - "etcode\030\001 \001(\005\022 \n\nfriendList\030\002 \003(\0132\014.Frien" + - "dBrief\022#\n\raskFriendList\030\003 \003(\0132\014.FriendBr" + - "iefB\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.FriendBriefOuterClass.getDescriptor(), - }); - internal_static_GetPlayerFriendListRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GetPlayerFriendListRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GetPlayerFriendListRsp_descriptor, - new java.lang.String[] { "Retcode", "FriendList", "AskFriendList", }); - emu.grasscutter.net.proto.FriendBriefOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GetPlayerSocialDetailReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GetPlayerSocialDetailReqOuterClass.java deleted file mode 100644 index a3de68c08..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GetPlayerSocialDetailReqOuterClass.java +++ /dev/null @@ -1,536 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GetPlayerSocialDetailReq.proto - -package emu.grasscutter.net.proto; - -public final class GetPlayerSocialDetailReqOuterClass { - private GetPlayerSocialDetailReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GetPlayerSocialDetailReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:GetPlayerSocialDetailReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 uid = 1;</code> - * @return The uid. - */ - int getUid(); - } - /** - * Protobuf type {@code GetPlayerSocialDetailReq} - */ - public static final class GetPlayerSocialDetailReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GetPlayerSocialDetailReq) - GetPlayerSocialDetailReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetPlayerSocialDetailReq.newBuilder() to construct. - private GetPlayerSocialDetailReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GetPlayerSocialDetailReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetPlayerSocialDetailReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetPlayerSocialDetailReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - uid_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.internal_static_GetPlayerSocialDetailReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.internal_static_GetPlayerSocialDetailReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq.class, emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq.Builder.class); - } - - public static final int UID_FIELD_NUMBER = 1; - private int uid_; - /** - * <code>uint32 uid = 1;</code> - * @return The uid. - */ - @java.lang.Override - public int getUid() { - return uid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (uid_ != 0) { - output.writeUInt32(1, uid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (uid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, uid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq other = (emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq) obj; - - if (getUid() - != other.getUid()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + UID_FIELD_NUMBER; - hash = (53 * hash) + getUid(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GetPlayerSocialDetailReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GetPlayerSocialDetailReq) - emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.internal_static_GetPlayerSocialDetailReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.internal_static_GetPlayerSocialDetailReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq.class, emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - uid_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.internal_static_GetPlayerSocialDetailReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq build() { - emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq buildPartial() { - emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq result = new emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq(this); - result.uid_ = uid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq) { - return mergeFrom((emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq other) { - if (other == emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq.getDefaultInstance()) return this; - if (other.getUid() != 0) { - setUid(other.getUid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int uid_ ; - /** - * <code>uint32 uid = 1;</code> - * @return The uid. - */ - @java.lang.Override - public int getUid() { - return uid_; - } - /** - * <code>uint32 uid = 1;</code> - * @param value The uid to set. - * @return This builder for chaining. - */ - public Builder setUid(int value) { - - uid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 uid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearUid() { - - uid_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GetPlayerSocialDetailReq) - } - - // @@protoc_insertion_point(class_scope:GetPlayerSocialDetailReq) - private static final emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq(); - } - - public static emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GetPlayerSocialDetailReq> - PARSER = new com.google.protobuf.AbstractParser<GetPlayerSocialDetailReq>() { - @java.lang.Override - public GetPlayerSocialDetailReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPlayerSocialDetailReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GetPlayerSocialDetailReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GetPlayerSocialDetailReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GetPlayerSocialDetailReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GetPlayerSocialDetailReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\036GetPlayerSocialDetailReq.proto\"\'\n\030GetP" + - "layerSocialDetailReq\022\013\n\003uid\030\001 \001(\rB\033\n\031emu" + - ".grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_GetPlayerSocialDetailReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GetPlayerSocialDetailReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GetPlayerSocialDetailReq_descriptor, - new java.lang.String[] { "Uid", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GetPlayerSocialDetailRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GetPlayerSocialDetailRspOuterClass.java deleted file mode 100644 index 463397ebc..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GetPlayerSocialDetailRspOuterClass.java +++ /dev/null @@ -1,743 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GetPlayerSocialDetailRsp.proto - -package emu.grasscutter.net.proto; - -public final class GetPlayerSocialDetailRspOuterClass { - private GetPlayerSocialDetailRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GetPlayerSocialDetailRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:GetPlayerSocialDetailRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>.SocialDetail detailData = 2;</code> - * @return Whether the detailData field is set. - */ - boolean hasDetailData(); - /** - * <code>.SocialDetail detailData = 2;</code> - * @return The detailData. - */ - emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail getDetailData(); - /** - * <code>.SocialDetail detailData = 2;</code> - */ - emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetailOrBuilder getDetailDataOrBuilder(); - } - /** - * Protobuf type {@code GetPlayerSocialDetailRsp} - */ - public static final class GetPlayerSocialDetailRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GetPlayerSocialDetailRsp) - GetPlayerSocialDetailRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetPlayerSocialDetailRsp.newBuilder() to construct. - private GetPlayerSocialDetailRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GetPlayerSocialDetailRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetPlayerSocialDetailRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetPlayerSocialDetailRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 18: { - emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail.Builder subBuilder = null; - if (detailData_ != null) { - subBuilder = detailData_.toBuilder(); - } - detailData_ = input.readMessage(emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(detailData_); - detailData_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.internal_static_GetPlayerSocialDetailRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.internal_static_GetPlayerSocialDetailRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp.class, emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int DETAILDATA_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail detailData_; - /** - * <code>.SocialDetail detailData = 2;</code> - * @return Whether the detailData field is set. - */ - @java.lang.Override - public boolean hasDetailData() { - return detailData_ != null; - } - /** - * <code>.SocialDetail detailData = 2;</code> - * @return The detailData. - */ - @java.lang.Override - public emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail getDetailData() { - return detailData_ == null ? emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail.getDefaultInstance() : detailData_; - } - /** - * <code>.SocialDetail detailData = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetailOrBuilder getDetailDataOrBuilder() { - return getDetailData(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (detailData_ != null) { - output.writeMessage(2, getDetailData()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (detailData_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDetailData()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp other = (emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (hasDetailData() != other.hasDetailData()) return false; - if (hasDetailData()) { - if (!getDetailData() - .equals(other.getDetailData())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - if (hasDetailData()) { - hash = (37 * hash) + DETAILDATA_FIELD_NUMBER; - hash = (53 * hash) + getDetailData().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GetPlayerSocialDetailRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GetPlayerSocialDetailRsp) - emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.internal_static_GetPlayerSocialDetailRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.internal_static_GetPlayerSocialDetailRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp.class, emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - if (detailDataBuilder_ == null) { - detailData_ = null; - } else { - detailData_ = null; - detailDataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.internal_static_GetPlayerSocialDetailRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp build() { - emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp buildPartial() { - emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp result = new emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp(this); - result.retcode_ = retcode_; - if (detailDataBuilder_ == null) { - result.detailData_ = detailData_; - } else { - result.detailData_ = detailDataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp) { - return mergeFrom((emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp other) { - if (other == emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.hasDetailData()) { - mergeDetailData(other.getDetailData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail detailData_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail, emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail.Builder, emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetailOrBuilder> detailDataBuilder_; - /** - * <code>.SocialDetail detailData = 2;</code> - * @return Whether the detailData field is set. - */ - public boolean hasDetailData() { - return detailDataBuilder_ != null || detailData_ != null; - } - /** - * <code>.SocialDetail detailData = 2;</code> - * @return The detailData. - */ - public emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail getDetailData() { - if (detailDataBuilder_ == null) { - return detailData_ == null ? emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail.getDefaultInstance() : detailData_; - } else { - return detailDataBuilder_.getMessage(); - } - } - /** - * <code>.SocialDetail detailData = 2;</code> - */ - public Builder setDetailData(emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail value) { - if (detailDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - detailData_ = value; - onChanged(); - } else { - detailDataBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.SocialDetail detailData = 2;</code> - */ - public Builder setDetailData( - emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail.Builder builderForValue) { - if (detailDataBuilder_ == null) { - detailData_ = builderForValue.build(); - onChanged(); - } else { - detailDataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.SocialDetail detailData = 2;</code> - */ - public Builder mergeDetailData(emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail value) { - if (detailDataBuilder_ == null) { - if (detailData_ != null) { - detailData_ = - emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail.newBuilder(detailData_).mergeFrom(value).buildPartial(); - } else { - detailData_ = value; - } - onChanged(); - } else { - detailDataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.SocialDetail detailData = 2;</code> - */ - public Builder clearDetailData() { - if (detailDataBuilder_ == null) { - detailData_ = null; - onChanged(); - } else { - detailData_ = null; - detailDataBuilder_ = null; - } - - return this; - } - /** - * <code>.SocialDetail detailData = 2;</code> - */ - public emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail.Builder getDetailDataBuilder() { - - onChanged(); - return getDetailDataFieldBuilder().getBuilder(); - } - /** - * <code>.SocialDetail detailData = 2;</code> - */ - public emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetailOrBuilder getDetailDataOrBuilder() { - if (detailDataBuilder_ != null) { - return detailDataBuilder_.getMessageOrBuilder(); - } else { - return detailData_ == null ? - emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail.getDefaultInstance() : detailData_; - } - } - /** - * <code>.SocialDetail detailData = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail, emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail.Builder, emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetailOrBuilder> - getDetailDataFieldBuilder() { - if (detailDataBuilder_ == null) { - detailDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail, emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail.Builder, emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetailOrBuilder>( - getDetailData(), - getParentForChildren(), - isClean()); - detailData_ = null; - } - return detailDataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GetPlayerSocialDetailRsp) - } - - // @@protoc_insertion_point(class_scope:GetPlayerSocialDetailRsp) - private static final emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp(); - } - - public static emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GetPlayerSocialDetailRsp> - PARSER = new com.google.protobuf.AbstractParser<GetPlayerSocialDetailRsp>() { - @java.lang.Override - public GetPlayerSocialDetailRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPlayerSocialDetailRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GetPlayerSocialDetailRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GetPlayerSocialDetailRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GetPlayerSocialDetailRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GetPlayerSocialDetailRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\036GetPlayerSocialDetailRsp.proto\032\022Social" + - "Detail.proto\"N\n\030GetPlayerSocialDetailRsp" + - "\022\017\n\007retcode\030\001 \001(\005\022!\n\ndetailData\030\002 \001(\0132\r." + - "SocialDetailB\033\n\031emu.grasscutter.net.prot" + - "ob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.SocialDetailOuterClass.getDescriptor(), - }); - internal_static_GetPlayerSocialDetailRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GetPlayerSocialDetailRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GetPlayerSocialDetailRsp_descriptor, - new java.lang.String[] { "Retcode", "DetailData", }); - emu.grasscutter.net.proto.SocialDetailOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GetPlayerTokenReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GetPlayerTokenReqOuterClass.java deleted file mode 100644 index a086d4708..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GetPlayerTokenReqOuterClass.java +++ /dev/null @@ -1,980 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GetPlayerTokenReq.proto - -package emu.grasscutter.net.proto; - -public final class GetPlayerTokenReqOuterClass { - private GetPlayerTokenReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GetPlayerTokenReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:GetPlayerTokenReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 accountType = 1;</code> - * @return The accountType. - */ - int getAccountType(); - - /** - * <code>string accountUid = 2;</code> - * @return The accountUid. - */ - java.lang.String getAccountUid(); - /** - * <code>string accountUid = 2;</code> - * @return The bytes for accountUid. - */ - com.google.protobuf.ByteString - getAccountUidBytes(); - - /** - * <code>string accountToken = 3;</code> - * @return The accountToken. - */ - java.lang.String getAccountToken(); - /** - * <code>string accountToken = 3;</code> - * @return The bytes for accountToken. - */ - com.google.protobuf.ByteString - getAccountTokenBytes(); - - /** - * <code>uint64 platformType = 7;</code> - * @return The platformType. - */ - long getPlatformType(); - - /** - * <code>uint64 schannelId = 11;</code> - * @return The schannelId. - */ - long getSchannelId(); - } - /** - * Protobuf type {@code GetPlayerTokenReq} - */ - public static final class GetPlayerTokenReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GetPlayerTokenReq) - GetPlayerTokenReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetPlayerTokenReq.newBuilder() to construct. - private GetPlayerTokenReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GetPlayerTokenReq() { - accountUid_ = ""; - accountToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetPlayerTokenReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetPlayerTokenReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - accountType_ = input.readUInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - accountUid_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - accountToken_ = s; - break; - } - case 56: { - - platformType_ = input.readUInt64(); - break; - } - case 88: { - - schannelId_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.internal_static_GetPlayerTokenReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.internal_static_GetPlayerTokenReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq.class, emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq.Builder.class); - } - - public static final int ACCOUNTTYPE_FIELD_NUMBER = 1; - private int accountType_; - /** - * <code>uint32 accountType = 1;</code> - * @return The accountType. - */ - @java.lang.Override - public int getAccountType() { - return accountType_; - } - - public static final int ACCOUNTUID_FIELD_NUMBER = 2; - private volatile java.lang.Object accountUid_; - /** - * <code>string accountUid = 2;</code> - * @return The accountUid. - */ - @java.lang.Override - public java.lang.String getAccountUid() { - java.lang.Object ref = accountUid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - accountUid_ = s; - return s; - } - } - /** - * <code>string accountUid = 2;</code> - * @return The bytes for accountUid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAccountUidBytes() { - java.lang.Object ref = accountUid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - accountUid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ACCOUNTTOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object accountToken_; - /** - * <code>string accountToken = 3;</code> - * @return The accountToken. - */ - @java.lang.Override - public java.lang.String getAccountToken() { - java.lang.Object ref = accountToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - accountToken_ = s; - return s; - } - } - /** - * <code>string accountToken = 3;</code> - * @return The bytes for accountToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAccountTokenBytes() { - java.lang.Object ref = accountToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - accountToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PLATFORMTYPE_FIELD_NUMBER = 7; - private long platformType_; - /** - * <code>uint64 platformType = 7;</code> - * @return The platformType. - */ - @java.lang.Override - public long getPlatformType() { - return platformType_; - } - - public static final int SCHANNELID_FIELD_NUMBER = 11; - private long schannelId_; - /** - * <code>uint64 schannelId = 11;</code> - * @return The schannelId. - */ - @java.lang.Override - public long getSchannelId() { - return schannelId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (accountType_ != 0) { - output.writeUInt32(1, accountType_); - } - if (!getAccountUidBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, accountUid_); - } - if (!getAccountTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, accountToken_); - } - if (platformType_ != 0L) { - output.writeUInt64(7, platformType_); - } - if (schannelId_ != 0L) { - output.writeUInt64(11, schannelId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (accountType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, accountType_); - } - if (!getAccountUidBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, accountUid_); - } - if (!getAccountTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, accountToken_); - } - if (platformType_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(7, platformType_); - } - if (schannelId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(11, schannelId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq other = (emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq) obj; - - if (getAccountType() - != other.getAccountType()) return false; - if (!getAccountUid() - .equals(other.getAccountUid())) return false; - if (!getAccountToken() - .equals(other.getAccountToken())) return false; - if (getPlatformType() - != other.getPlatformType()) return false; - if (getSchannelId() - != other.getSchannelId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ACCOUNTTYPE_FIELD_NUMBER; - hash = (53 * hash) + getAccountType(); - hash = (37 * hash) + ACCOUNTUID_FIELD_NUMBER; - hash = (53 * hash) + getAccountUid().hashCode(); - hash = (37 * hash) + ACCOUNTTOKEN_FIELD_NUMBER; - hash = (53 * hash) + getAccountToken().hashCode(); - hash = (37 * hash) + PLATFORMTYPE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPlatformType()); - hash = (37 * hash) + SCHANNELID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSchannelId()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GetPlayerTokenReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GetPlayerTokenReq) - emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.internal_static_GetPlayerTokenReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.internal_static_GetPlayerTokenReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq.class, emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - accountType_ = 0; - - accountUid_ = ""; - - accountToken_ = ""; - - platformType_ = 0L; - - schannelId_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.internal_static_GetPlayerTokenReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq build() { - emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq buildPartial() { - emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq result = new emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq(this); - result.accountType_ = accountType_; - result.accountUid_ = accountUid_; - result.accountToken_ = accountToken_; - result.platformType_ = platformType_; - result.schannelId_ = schannelId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq) { - return mergeFrom((emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq other) { - if (other == emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq.getDefaultInstance()) return this; - if (other.getAccountType() != 0) { - setAccountType(other.getAccountType()); - } - if (!other.getAccountUid().isEmpty()) { - accountUid_ = other.accountUid_; - onChanged(); - } - if (!other.getAccountToken().isEmpty()) { - accountToken_ = other.accountToken_; - onChanged(); - } - if (other.getPlatformType() != 0L) { - setPlatformType(other.getPlatformType()); - } - if (other.getSchannelId() != 0L) { - setSchannelId(other.getSchannelId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int accountType_ ; - /** - * <code>uint32 accountType = 1;</code> - * @return The accountType. - */ - @java.lang.Override - public int getAccountType() { - return accountType_; - } - /** - * <code>uint32 accountType = 1;</code> - * @param value The accountType to set. - * @return This builder for chaining. - */ - public Builder setAccountType(int value) { - - accountType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 accountType = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAccountType() { - - accountType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object accountUid_ = ""; - /** - * <code>string accountUid = 2;</code> - * @return The accountUid. - */ - public java.lang.String getAccountUid() { - java.lang.Object ref = accountUid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - accountUid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string accountUid = 2;</code> - * @return The bytes for accountUid. - */ - public com.google.protobuf.ByteString - getAccountUidBytes() { - java.lang.Object ref = accountUid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - accountUid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string accountUid = 2;</code> - * @param value The accountUid to set. - * @return This builder for chaining. - */ - public Builder setAccountUid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - accountUid_ = value; - onChanged(); - return this; - } - /** - * <code>string accountUid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearAccountUid() { - - accountUid_ = getDefaultInstance().getAccountUid(); - onChanged(); - return this; - } - /** - * <code>string accountUid = 2;</code> - * @param value The bytes for accountUid to set. - * @return This builder for chaining. - */ - public Builder setAccountUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - accountUid_ = value; - onChanged(); - return this; - } - - private java.lang.Object accountToken_ = ""; - /** - * <code>string accountToken = 3;</code> - * @return The accountToken. - */ - public java.lang.String getAccountToken() { - java.lang.Object ref = accountToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - accountToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string accountToken = 3;</code> - * @return The bytes for accountToken. - */ - public com.google.protobuf.ByteString - getAccountTokenBytes() { - java.lang.Object ref = accountToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - accountToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string accountToken = 3;</code> - * @param value The accountToken to set. - * @return This builder for chaining. - */ - public Builder setAccountToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - accountToken_ = value; - onChanged(); - return this; - } - /** - * <code>string accountToken = 3;</code> - * @return This builder for chaining. - */ - public Builder clearAccountToken() { - - accountToken_ = getDefaultInstance().getAccountToken(); - onChanged(); - return this; - } - /** - * <code>string accountToken = 3;</code> - * @param value The bytes for accountToken to set. - * @return This builder for chaining. - */ - public Builder setAccountTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - accountToken_ = value; - onChanged(); - return this; - } - - private long platformType_ ; - /** - * <code>uint64 platformType = 7;</code> - * @return The platformType. - */ - @java.lang.Override - public long getPlatformType() { - return platformType_; - } - /** - * <code>uint64 platformType = 7;</code> - * @param value The platformType to set. - * @return This builder for chaining. - */ - public Builder setPlatformType(long value) { - - platformType_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 platformType = 7;</code> - * @return This builder for chaining. - */ - public Builder clearPlatformType() { - - platformType_ = 0L; - onChanged(); - return this; - } - - private long schannelId_ ; - /** - * <code>uint64 schannelId = 11;</code> - * @return The schannelId. - */ - @java.lang.Override - public long getSchannelId() { - return schannelId_; - } - /** - * <code>uint64 schannelId = 11;</code> - * @param value The schannelId to set. - * @return This builder for chaining. - */ - public Builder setSchannelId(long value) { - - schannelId_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 schannelId = 11;</code> - * @return This builder for chaining. - */ - public Builder clearSchannelId() { - - schannelId_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GetPlayerTokenReq) - } - - // @@protoc_insertion_point(class_scope:GetPlayerTokenReq) - private static final emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq(); - } - - public static emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GetPlayerTokenReq> - PARSER = new com.google.protobuf.AbstractParser<GetPlayerTokenReq>() { - @java.lang.Override - public GetPlayerTokenReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPlayerTokenReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GetPlayerTokenReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GetPlayerTokenReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GetPlayerTokenReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GetPlayerTokenReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027GetPlayerTokenReq.proto\"|\n\021GetPlayerTo" + - "kenReq\022\023\n\013accountType\030\001 \001(\r\022\022\n\naccountUi" + - "d\030\002 \001(\t\022\024\n\014accountToken\030\003 \001(\t\022\024\n\014platfor" + - "mType\030\007 \001(\004\022\022\n\nschannelId\030\013 \001(\004B\033\n\031emu.g" + - "rasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_GetPlayerTokenReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GetPlayerTokenReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GetPlayerTokenReq_descriptor, - new java.lang.String[] { "AccountType", "AccountUid", "AccountToken", "PlatformType", "SchannelId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GetPlayerTokenRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GetPlayerTokenRspOuterClass.java deleted file mode 100644 index 589ac01f3..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GetPlayerTokenRspOuterClass.java +++ /dev/null @@ -1,1709 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GetPlayerTokenRsp.proto - -package emu.grasscutter.net.proto; - -public final class GetPlayerTokenRspOuterClass { - private GetPlayerTokenRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GetPlayerTokenRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:GetPlayerTokenRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 playerUid = 3;</code> - * @return The playerUid. - */ - int getPlayerUid(); - - /** - * <code>string accountToken = 4;</code> - * @return The accountToken. - */ - java.lang.String getAccountToken(); - /** - * <code>string accountToken = 4;</code> - * @return The bytes for accountToken. - */ - com.google.protobuf.ByteString - getAccountTokenBytes(); - - /** - * <code>int32 accountType = 6;</code> - * @return The accountType. - */ - int getAccountType(); - - /** - * <code>bool isProficientPlayer = 8;</code> - * @return The isProficientPlayer. - */ - boolean getIsProficientPlayer(); - - /** - * <code>uint32 gmUid = 10;</code> - * @return The gmUid. - */ - int getGmUid(); - - /** - * <code>uint64 secretKey = 11;</code> - * @return The secretKey. - */ - long getSecretKey(); - - /** - * <code>bytes secretKeyBuffer = 12;</code> - * @return The secretKeyBuffer. - */ - com.google.protobuf.ByteString getSecretKeyBuffer(); - - /** - * <code>uint64 platformType = 13;</code> - * @return The platformType. - */ - long getPlatformType(); - - /** - * <code>uint32 channelId = 16;</code> - * @return The channelId. - */ - int getChannelId(); - - /** - * <code>string countryCode = 19;</code> - * @return The countryCode. - */ - java.lang.String getCountryCode(); - /** - * <code>string countryCode = 19;</code> - * @return The bytes for countryCode. - */ - com.google.protobuf.ByteString - getCountryCodeBytes(); - - /** - * <code>string unk1 = 22;</code> - * @return The unk1. - */ - java.lang.String getUnk1(); - /** - * <code>string unk1 = 22;</code> - * @return The bytes for unk1. - */ - com.google.protobuf.ByteString - getUnk1Bytes(); - - /** - * <code>uint32 unk3 = 23;</code> - * @return The unk3. - */ - int getUnk3(); - - /** - * <code>string clientIp = 24;</code> - * @return The clientIp. - */ - java.lang.String getClientIp(); - /** - * <code>string clientIp = 24;</code> - * @return The bytes for clientIp. - */ - com.google.protobuf.ByteString - getClientIpBytes(); - } - /** - * Protobuf type {@code GetPlayerTokenRsp} - */ - public static final class GetPlayerTokenRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GetPlayerTokenRsp) - GetPlayerTokenRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetPlayerTokenRsp.newBuilder() to construct. - private GetPlayerTokenRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GetPlayerTokenRsp() { - accountToken_ = ""; - secretKeyBuffer_ = com.google.protobuf.ByteString.EMPTY; - countryCode_ = ""; - unk1_ = ""; - clientIp_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetPlayerTokenRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetPlayerTokenRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 24: { - - playerUid_ = input.readUInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - accountToken_ = s; - break; - } - case 48: { - - accountType_ = input.readInt32(); - break; - } - case 64: { - - isProficientPlayer_ = input.readBool(); - break; - } - case 80: { - - gmUid_ = input.readUInt32(); - break; - } - case 88: { - - secretKey_ = input.readUInt64(); - break; - } - case 98: { - - secretKeyBuffer_ = input.readBytes(); - break; - } - case 104: { - - platformType_ = input.readUInt64(); - break; - } - case 128: { - - channelId_ = input.readUInt32(); - break; - } - case 154: { - java.lang.String s = input.readStringRequireUtf8(); - - countryCode_ = s; - break; - } - case 178: { - java.lang.String s = input.readStringRequireUtf8(); - - unk1_ = s; - break; - } - case 184: { - - unk3_ = input.readUInt32(); - break; - } - case 194: { - java.lang.String s = input.readStringRequireUtf8(); - - clientIp_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.internal_static_GetPlayerTokenRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.internal_static_GetPlayerTokenRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp.class, emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp.Builder.class); - } - - public static final int PLAYERUID_FIELD_NUMBER = 3; - private int playerUid_; - /** - * <code>uint32 playerUid = 3;</code> - * @return The playerUid. - */ - @java.lang.Override - public int getPlayerUid() { - return playerUid_; - } - - public static final int ACCOUNTTOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object accountToken_; - /** - * <code>string accountToken = 4;</code> - * @return The accountToken. - */ - @java.lang.Override - public java.lang.String getAccountToken() { - java.lang.Object ref = accountToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - accountToken_ = s; - return s; - } - } - /** - * <code>string accountToken = 4;</code> - * @return The bytes for accountToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAccountTokenBytes() { - java.lang.Object ref = accountToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - accountToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ACCOUNTTYPE_FIELD_NUMBER = 6; - private int accountType_; - /** - * <code>int32 accountType = 6;</code> - * @return The accountType. - */ - @java.lang.Override - public int getAccountType() { - return accountType_; - } - - public static final int ISPROFICIENTPLAYER_FIELD_NUMBER = 8; - private boolean isProficientPlayer_; - /** - * <code>bool isProficientPlayer = 8;</code> - * @return The isProficientPlayer. - */ - @java.lang.Override - public boolean getIsProficientPlayer() { - return isProficientPlayer_; - } - - public static final int GMUID_FIELD_NUMBER = 10; - private int gmUid_; - /** - * <code>uint32 gmUid = 10;</code> - * @return The gmUid. - */ - @java.lang.Override - public int getGmUid() { - return gmUid_; - } - - public static final int SECRETKEY_FIELD_NUMBER = 11; - private long secretKey_; - /** - * <code>uint64 secretKey = 11;</code> - * @return The secretKey. - */ - @java.lang.Override - public long getSecretKey() { - return secretKey_; - } - - public static final int SECRETKEYBUFFER_FIELD_NUMBER = 12; - private com.google.protobuf.ByteString secretKeyBuffer_; - /** - * <code>bytes secretKeyBuffer = 12;</code> - * @return The secretKeyBuffer. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSecretKeyBuffer() { - return secretKeyBuffer_; - } - - public static final int PLATFORMTYPE_FIELD_NUMBER = 13; - private long platformType_; - /** - * <code>uint64 platformType = 13;</code> - * @return The platformType. - */ - @java.lang.Override - public long getPlatformType() { - return platformType_; - } - - public static final int CHANNELID_FIELD_NUMBER = 16; - private int channelId_; - /** - * <code>uint32 channelId = 16;</code> - * @return The channelId. - */ - @java.lang.Override - public int getChannelId() { - return channelId_; - } - - public static final int COUNTRYCODE_FIELD_NUMBER = 19; - private volatile java.lang.Object countryCode_; - /** - * <code>string countryCode = 19;</code> - * @return The countryCode. - */ - @java.lang.Override - public java.lang.String getCountryCode() { - java.lang.Object ref = countryCode_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - countryCode_ = s; - return s; - } - } - /** - * <code>string countryCode = 19;</code> - * @return The bytes for countryCode. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCountryCodeBytes() { - java.lang.Object ref = countryCode_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - countryCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UNK1_FIELD_NUMBER = 22; - private volatile java.lang.Object unk1_; - /** - * <code>string unk1 = 22;</code> - * @return The unk1. - */ - @java.lang.Override - public java.lang.String getUnk1() { - java.lang.Object ref = unk1_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - unk1_ = s; - return s; - } - } - /** - * <code>string unk1 = 22;</code> - * @return The bytes for unk1. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUnk1Bytes() { - java.lang.Object ref = unk1_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - unk1_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UNK3_FIELD_NUMBER = 23; - private int unk3_; - /** - * <code>uint32 unk3 = 23;</code> - * @return The unk3. - */ - @java.lang.Override - public int getUnk3() { - return unk3_; - } - - public static final int CLIENTIP_FIELD_NUMBER = 24; - private volatile java.lang.Object clientIp_; - /** - * <code>string clientIp = 24;</code> - * @return The clientIp. - */ - @java.lang.Override - public java.lang.String getClientIp() { - java.lang.Object ref = clientIp_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientIp_ = s; - return s; - } - } - /** - * <code>string clientIp = 24;</code> - * @return The bytes for clientIp. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClientIpBytes() { - java.lang.Object ref = clientIp_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientIp_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (playerUid_ != 0) { - output.writeUInt32(3, playerUid_); - } - if (!getAccountTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, accountToken_); - } - if (accountType_ != 0) { - output.writeInt32(6, accountType_); - } - if (isProficientPlayer_ != false) { - output.writeBool(8, isProficientPlayer_); - } - if (gmUid_ != 0) { - output.writeUInt32(10, gmUid_); - } - if (secretKey_ != 0L) { - output.writeUInt64(11, secretKey_); - } - if (!secretKeyBuffer_.isEmpty()) { - output.writeBytes(12, secretKeyBuffer_); - } - if (platformType_ != 0L) { - output.writeUInt64(13, platformType_); - } - if (channelId_ != 0) { - output.writeUInt32(16, channelId_); - } - if (!getCountryCodeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 19, countryCode_); - } - if (!getUnk1Bytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 22, unk1_); - } - if (unk3_ != 0) { - output.writeUInt32(23, unk3_); - } - if (!getClientIpBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 24, clientIp_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (playerUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, playerUid_); - } - if (!getAccountTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, accountToken_); - } - if (accountType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, accountType_); - } - if (isProficientPlayer_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, isProficientPlayer_); - } - if (gmUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(10, gmUid_); - } - if (secretKey_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(11, secretKey_); - } - if (!secretKeyBuffer_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, secretKeyBuffer_); - } - if (platformType_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(13, platformType_); - } - if (channelId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(16, channelId_); - } - if (!getCountryCodeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, countryCode_); - } - if (!getUnk1Bytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, unk1_); - } - if (unk3_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(23, unk3_); - } - if (!getClientIpBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, clientIp_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp other = (emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp) obj; - - if (getPlayerUid() - != other.getPlayerUid()) return false; - if (!getAccountToken() - .equals(other.getAccountToken())) return false; - if (getAccountType() - != other.getAccountType()) return false; - if (getIsProficientPlayer() - != other.getIsProficientPlayer()) return false; - if (getGmUid() - != other.getGmUid()) return false; - if (getSecretKey() - != other.getSecretKey()) return false; - if (!getSecretKeyBuffer() - .equals(other.getSecretKeyBuffer())) return false; - if (getPlatformType() - != other.getPlatformType()) return false; - if (getChannelId() - != other.getChannelId()) return false; - if (!getCountryCode() - .equals(other.getCountryCode())) return false; - if (!getUnk1() - .equals(other.getUnk1())) return false; - if (getUnk3() - != other.getUnk3()) return false; - if (!getClientIp() - .equals(other.getClientIp())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PLAYERUID_FIELD_NUMBER; - hash = (53 * hash) + getPlayerUid(); - hash = (37 * hash) + ACCOUNTTOKEN_FIELD_NUMBER; - hash = (53 * hash) + getAccountToken().hashCode(); - hash = (37 * hash) + ACCOUNTTYPE_FIELD_NUMBER; - hash = (53 * hash) + getAccountType(); - hash = (37 * hash) + ISPROFICIENTPLAYER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsProficientPlayer()); - hash = (37 * hash) + GMUID_FIELD_NUMBER; - hash = (53 * hash) + getGmUid(); - hash = (37 * hash) + SECRETKEY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSecretKey()); - hash = (37 * hash) + SECRETKEYBUFFER_FIELD_NUMBER; - hash = (53 * hash) + getSecretKeyBuffer().hashCode(); - hash = (37 * hash) + PLATFORMTYPE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPlatformType()); - hash = (37 * hash) + CHANNELID_FIELD_NUMBER; - hash = (53 * hash) + getChannelId(); - hash = (37 * hash) + COUNTRYCODE_FIELD_NUMBER; - hash = (53 * hash) + getCountryCode().hashCode(); - hash = (37 * hash) + UNK1_FIELD_NUMBER; - hash = (53 * hash) + getUnk1().hashCode(); - hash = (37 * hash) + UNK3_FIELD_NUMBER; - hash = (53 * hash) + getUnk3(); - hash = (37 * hash) + CLIENTIP_FIELD_NUMBER; - hash = (53 * hash) + getClientIp().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GetPlayerTokenRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GetPlayerTokenRsp) - emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.internal_static_GetPlayerTokenRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.internal_static_GetPlayerTokenRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp.class, emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - playerUid_ = 0; - - accountToken_ = ""; - - accountType_ = 0; - - isProficientPlayer_ = false; - - gmUid_ = 0; - - secretKey_ = 0L; - - secretKeyBuffer_ = com.google.protobuf.ByteString.EMPTY; - - platformType_ = 0L; - - channelId_ = 0; - - countryCode_ = ""; - - unk1_ = ""; - - unk3_ = 0; - - clientIp_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.internal_static_GetPlayerTokenRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp build() { - emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp buildPartial() { - emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp result = new emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp(this); - result.playerUid_ = playerUid_; - result.accountToken_ = accountToken_; - result.accountType_ = accountType_; - result.isProficientPlayer_ = isProficientPlayer_; - result.gmUid_ = gmUid_; - result.secretKey_ = secretKey_; - result.secretKeyBuffer_ = secretKeyBuffer_; - result.platformType_ = platformType_; - result.channelId_ = channelId_; - result.countryCode_ = countryCode_; - result.unk1_ = unk1_; - result.unk3_ = unk3_; - result.clientIp_ = clientIp_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp) { - return mergeFrom((emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp other) { - if (other == emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp.getDefaultInstance()) return this; - if (other.getPlayerUid() != 0) { - setPlayerUid(other.getPlayerUid()); - } - if (!other.getAccountToken().isEmpty()) { - accountToken_ = other.accountToken_; - onChanged(); - } - if (other.getAccountType() != 0) { - setAccountType(other.getAccountType()); - } - if (other.getIsProficientPlayer() != false) { - setIsProficientPlayer(other.getIsProficientPlayer()); - } - if (other.getGmUid() != 0) { - setGmUid(other.getGmUid()); - } - if (other.getSecretKey() != 0L) { - setSecretKey(other.getSecretKey()); - } - if (other.getSecretKeyBuffer() != com.google.protobuf.ByteString.EMPTY) { - setSecretKeyBuffer(other.getSecretKeyBuffer()); - } - if (other.getPlatformType() != 0L) { - setPlatformType(other.getPlatformType()); - } - if (other.getChannelId() != 0) { - setChannelId(other.getChannelId()); - } - if (!other.getCountryCode().isEmpty()) { - countryCode_ = other.countryCode_; - onChanged(); - } - if (!other.getUnk1().isEmpty()) { - unk1_ = other.unk1_; - onChanged(); - } - if (other.getUnk3() != 0) { - setUnk3(other.getUnk3()); - } - if (!other.getClientIp().isEmpty()) { - clientIp_ = other.clientIp_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int playerUid_ ; - /** - * <code>uint32 playerUid = 3;</code> - * @return The playerUid. - */ - @java.lang.Override - public int getPlayerUid() { - return playerUid_; - } - /** - * <code>uint32 playerUid = 3;</code> - * @param value The playerUid to set. - * @return This builder for chaining. - */ - public Builder setPlayerUid(int value) { - - playerUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 playerUid = 3;</code> - * @return This builder for chaining. - */ - public Builder clearPlayerUid() { - - playerUid_ = 0; - onChanged(); - return this; - } - - private java.lang.Object accountToken_ = ""; - /** - * <code>string accountToken = 4;</code> - * @return The accountToken. - */ - public java.lang.String getAccountToken() { - java.lang.Object ref = accountToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - accountToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string accountToken = 4;</code> - * @return The bytes for accountToken. - */ - public com.google.protobuf.ByteString - getAccountTokenBytes() { - java.lang.Object ref = accountToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - accountToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string accountToken = 4;</code> - * @param value The accountToken to set. - * @return This builder for chaining. - */ - public Builder setAccountToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - accountToken_ = value; - onChanged(); - return this; - } - /** - * <code>string accountToken = 4;</code> - * @return This builder for chaining. - */ - public Builder clearAccountToken() { - - accountToken_ = getDefaultInstance().getAccountToken(); - onChanged(); - return this; - } - /** - * <code>string accountToken = 4;</code> - * @param value The bytes for accountToken to set. - * @return This builder for chaining. - */ - public Builder setAccountTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - accountToken_ = value; - onChanged(); - return this; - } - - private int accountType_ ; - /** - * <code>int32 accountType = 6;</code> - * @return The accountType. - */ - @java.lang.Override - public int getAccountType() { - return accountType_; - } - /** - * <code>int32 accountType = 6;</code> - * @param value The accountType to set. - * @return This builder for chaining. - */ - public Builder setAccountType(int value) { - - accountType_ = value; - onChanged(); - return this; - } - /** - * <code>int32 accountType = 6;</code> - * @return This builder for chaining. - */ - public Builder clearAccountType() { - - accountType_ = 0; - onChanged(); - return this; - } - - private boolean isProficientPlayer_ ; - /** - * <code>bool isProficientPlayer = 8;</code> - * @return The isProficientPlayer. - */ - @java.lang.Override - public boolean getIsProficientPlayer() { - return isProficientPlayer_; - } - /** - * <code>bool isProficientPlayer = 8;</code> - * @param value The isProficientPlayer to set. - * @return This builder for chaining. - */ - public Builder setIsProficientPlayer(boolean value) { - - isProficientPlayer_ = value; - onChanged(); - return this; - } - /** - * <code>bool isProficientPlayer = 8;</code> - * @return This builder for chaining. - */ - public Builder clearIsProficientPlayer() { - - isProficientPlayer_ = false; - onChanged(); - return this; - } - - private int gmUid_ ; - /** - * <code>uint32 gmUid = 10;</code> - * @return The gmUid. - */ - @java.lang.Override - public int getGmUid() { - return gmUid_; - } - /** - * <code>uint32 gmUid = 10;</code> - * @param value The gmUid to set. - * @return This builder for chaining. - */ - public Builder setGmUid(int value) { - - gmUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gmUid = 10;</code> - * @return This builder for chaining. - */ - public Builder clearGmUid() { - - gmUid_ = 0; - onChanged(); - return this; - } - - private long secretKey_ ; - /** - * <code>uint64 secretKey = 11;</code> - * @return The secretKey. - */ - @java.lang.Override - public long getSecretKey() { - return secretKey_; - } - /** - * <code>uint64 secretKey = 11;</code> - * @param value The secretKey to set. - * @return This builder for chaining. - */ - public Builder setSecretKey(long value) { - - secretKey_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 secretKey = 11;</code> - * @return This builder for chaining. - */ - public Builder clearSecretKey() { - - secretKey_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString secretKeyBuffer_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>bytes secretKeyBuffer = 12;</code> - * @return The secretKeyBuffer. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSecretKeyBuffer() { - return secretKeyBuffer_; - } - /** - * <code>bytes secretKeyBuffer = 12;</code> - * @param value The secretKeyBuffer to set. - * @return This builder for chaining. - */ - public Builder setSecretKeyBuffer(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - secretKeyBuffer_ = value; - onChanged(); - return this; - } - /** - * <code>bytes secretKeyBuffer = 12;</code> - * @return This builder for chaining. - */ - public Builder clearSecretKeyBuffer() { - - secretKeyBuffer_ = getDefaultInstance().getSecretKeyBuffer(); - onChanged(); - return this; - } - - private long platformType_ ; - /** - * <code>uint64 platformType = 13;</code> - * @return The platformType. - */ - @java.lang.Override - public long getPlatformType() { - return platformType_; - } - /** - * <code>uint64 platformType = 13;</code> - * @param value The platformType to set. - * @return This builder for chaining. - */ - public Builder setPlatformType(long value) { - - platformType_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 platformType = 13;</code> - * @return This builder for chaining. - */ - public Builder clearPlatformType() { - - platformType_ = 0L; - onChanged(); - return this; - } - - private int channelId_ ; - /** - * <code>uint32 channelId = 16;</code> - * @return The channelId. - */ - @java.lang.Override - public int getChannelId() { - return channelId_; - } - /** - * <code>uint32 channelId = 16;</code> - * @param value The channelId to set. - * @return This builder for chaining. - */ - public Builder setChannelId(int value) { - - channelId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 channelId = 16;</code> - * @return This builder for chaining. - */ - public Builder clearChannelId() { - - channelId_ = 0; - onChanged(); - return this; - } - - private java.lang.Object countryCode_ = ""; - /** - * <code>string countryCode = 19;</code> - * @return The countryCode. - */ - public java.lang.String getCountryCode() { - java.lang.Object ref = countryCode_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - countryCode_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string countryCode = 19;</code> - * @return The bytes for countryCode. - */ - public com.google.protobuf.ByteString - getCountryCodeBytes() { - java.lang.Object ref = countryCode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - countryCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string countryCode = 19;</code> - * @param value The countryCode to set. - * @return This builder for chaining. - */ - public Builder setCountryCode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - countryCode_ = value; - onChanged(); - return this; - } - /** - * <code>string countryCode = 19;</code> - * @return This builder for chaining. - */ - public Builder clearCountryCode() { - - countryCode_ = getDefaultInstance().getCountryCode(); - onChanged(); - return this; - } - /** - * <code>string countryCode = 19;</code> - * @param value The bytes for countryCode to set. - * @return This builder for chaining. - */ - public Builder setCountryCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - countryCode_ = value; - onChanged(); - return this; - } - - private java.lang.Object unk1_ = ""; - /** - * <code>string unk1 = 22;</code> - * @return The unk1. - */ - public java.lang.String getUnk1() { - java.lang.Object ref = unk1_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - unk1_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string unk1 = 22;</code> - * @return The bytes for unk1. - */ - public com.google.protobuf.ByteString - getUnk1Bytes() { - java.lang.Object ref = unk1_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - unk1_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string unk1 = 22;</code> - * @param value The unk1 to set. - * @return This builder for chaining. - */ - public Builder setUnk1( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - unk1_ = value; - onChanged(); - return this; - } - /** - * <code>string unk1 = 22;</code> - * @return This builder for chaining. - */ - public Builder clearUnk1() { - - unk1_ = getDefaultInstance().getUnk1(); - onChanged(); - return this; - } - /** - * <code>string unk1 = 22;</code> - * @param value The bytes for unk1 to set. - * @return This builder for chaining. - */ - public Builder setUnk1Bytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - unk1_ = value; - onChanged(); - return this; - } - - private int unk3_ ; - /** - * <code>uint32 unk3 = 23;</code> - * @return The unk3. - */ - @java.lang.Override - public int getUnk3() { - return unk3_; - } - /** - * <code>uint32 unk3 = 23;</code> - * @param value The unk3 to set. - * @return This builder for chaining. - */ - public Builder setUnk3(int value) { - - unk3_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 unk3 = 23;</code> - * @return This builder for chaining. - */ - public Builder clearUnk3() { - - unk3_ = 0; - onChanged(); - return this; - } - - private java.lang.Object clientIp_ = ""; - /** - * <code>string clientIp = 24;</code> - * @return The clientIp. - */ - public java.lang.String getClientIp() { - java.lang.Object ref = clientIp_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientIp_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string clientIp = 24;</code> - * @return The bytes for clientIp. - */ - public com.google.protobuf.ByteString - getClientIpBytes() { - java.lang.Object ref = clientIp_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientIp_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string clientIp = 24;</code> - * @param value The clientIp to set. - * @return This builder for chaining. - */ - public Builder setClientIp( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientIp_ = value; - onChanged(); - return this; - } - /** - * <code>string clientIp = 24;</code> - * @return This builder for chaining. - */ - public Builder clearClientIp() { - - clientIp_ = getDefaultInstance().getClientIp(); - onChanged(); - return this; - } - /** - * <code>string clientIp = 24;</code> - * @param value The bytes for clientIp to set. - * @return This builder for chaining. - */ - public Builder setClientIpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientIp_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GetPlayerTokenRsp) - } - - // @@protoc_insertion_point(class_scope:GetPlayerTokenRsp) - private static final emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp(); - } - - public static emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GetPlayerTokenRsp> - PARSER = new com.google.protobuf.AbstractParser<GetPlayerTokenRsp>() { - @java.lang.Override - public GetPlayerTokenRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPlayerTokenRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GetPlayerTokenRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GetPlayerTokenRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GetPlayerTokenRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GetPlayerTokenRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027GetPlayerTokenRsp.proto\"\224\002\n\021GetPlayerT" + - "okenRsp\022\021\n\tplayerUid\030\003 \001(\r\022\024\n\014accountTok" + - "en\030\004 \001(\t\022\023\n\013accountType\030\006 \001(\005\022\032\n\022isProfi" + - "cientPlayer\030\010 \001(\010\022\r\n\005gmUid\030\n \001(\r\022\021\n\tsecr" + - "etKey\030\013 \001(\004\022\027\n\017secretKeyBuffer\030\014 \001(\014\022\024\n\014" + - "platformType\030\r \001(\004\022\021\n\tchannelId\030\020 \001(\r\022\023\n" + - "\013countryCode\030\023 \001(\t\022\014\n\004unk1\030\026 \001(\t\022\014\n\004unk3" + - "\030\027 \001(\r\022\020\n\010clientIp\030\030 \001(\tB\033\n\031emu.grasscut" + - "ter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_GetPlayerTokenRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GetPlayerTokenRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GetPlayerTokenRsp_descriptor, - new java.lang.String[] { "PlayerUid", "AccountToken", "AccountType", "IsProficientPlayer", "GmUid", "SecretKey", "SecretKeyBuffer", "PlatformType", "ChannelId", "CountryCode", "Unk1", "Unk3", "ClientIp", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GetSceneAreaReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GetSceneAreaReqOuterClass.java deleted file mode 100644 index 0176372e6..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GetSceneAreaReqOuterClass.java +++ /dev/null @@ -1,606 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GetSceneAreaReq.proto - -package emu.grasscutter.net.proto; - -public final class GetSceneAreaReqOuterClass { - private GetSceneAreaReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GetSceneAreaReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:GetSceneAreaReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - int getSceneId(); - - /** - * <code>uint32 belongUid = 2;</code> - * @return The belongUid. - */ - int getBelongUid(); - } - /** - * Protobuf type {@code GetSceneAreaReq} - */ - public static final class GetSceneAreaReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GetSceneAreaReq) - GetSceneAreaReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetSceneAreaReq.newBuilder() to construct. - private GetSceneAreaReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GetSceneAreaReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetSceneAreaReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetSceneAreaReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - sceneId_ = input.readUInt32(); - break; - } - case 16: { - - belongUid_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.internal_static_GetSceneAreaReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.internal_static_GetSceneAreaReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq.class, emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq.Builder.class); - } - - public static final int SCENEID_FIELD_NUMBER = 1; - private int sceneId_; - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - - public static final int BELONGUID_FIELD_NUMBER = 2; - private int belongUid_; - /** - * <code>uint32 belongUid = 2;</code> - * @return The belongUid. - */ - @java.lang.Override - public int getBelongUid() { - return belongUid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (sceneId_ != 0) { - output.writeUInt32(1, sceneId_); - } - if (belongUid_ != 0) { - output.writeUInt32(2, belongUid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sceneId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, sceneId_); - } - if (belongUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, belongUid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq other = (emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq) obj; - - if (getSceneId() - != other.getSceneId()) return false; - if (getBelongUid() - != other.getBelongUid()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SCENEID_FIELD_NUMBER; - hash = (53 * hash) + getSceneId(); - hash = (37 * hash) + BELONGUID_FIELD_NUMBER; - hash = (53 * hash) + getBelongUid(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GetSceneAreaReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GetSceneAreaReq) - emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.internal_static_GetSceneAreaReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.internal_static_GetSceneAreaReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq.class, emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sceneId_ = 0; - - belongUid_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.internal_static_GetSceneAreaReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq build() { - emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq buildPartial() { - emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq result = new emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq(this); - result.sceneId_ = sceneId_; - result.belongUid_ = belongUid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq) { - return mergeFrom((emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq other) { - if (other == emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq.getDefaultInstance()) return this; - if (other.getSceneId() != 0) { - setSceneId(other.getSceneId()); - } - if (other.getBelongUid() != 0) { - setBelongUid(other.getBelongUid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int sceneId_ ; - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - /** - * <code>uint32 sceneId = 1;</code> - * @param value The sceneId to set. - * @return This builder for chaining. - */ - public Builder setSceneId(int value) { - - sceneId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 sceneId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearSceneId() { - - sceneId_ = 0; - onChanged(); - return this; - } - - private int belongUid_ ; - /** - * <code>uint32 belongUid = 2;</code> - * @return The belongUid. - */ - @java.lang.Override - public int getBelongUid() { - return belongUid_; - } - /** - * <code>uint32 belongUid = 2;</code> - * @param value The belongUid to set. - * @return This builder for chaining. - */ - public Builder setBelongUid(int value) { - - belongUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 belongUid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearBelongUid() { - - belongUid_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GetSceneAreaReq) - } - - // @@protoc_insertion_point(class_scope:GetSceneAreaReq) - private static final emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq(); - } - - public static emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GetSceneAreaReq> - PARSER = new com.google.protobuf.AbstractParser<GetSceneAreaReq>() { - @java.lang.Override - public GetSceneAreaReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSceneAreaReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GetSceneAreaReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GetSceneAreaReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GetSceneAreaReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GetSceneAreaReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025GetSceneAreaReq.proto\"5\n\017GetSceneAreaR" + - "eq\022\017\n\007sceneId\030\001 \001(\r\022\021\n\tbelongUid\030\002 \001(\rB\033" + - "\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_GetSceneAreaReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GetSceneAreaReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GetSceneAreaReq_descriptor, - new java.lang.String[] { "SceneId", "BelongUid", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GetSceneAreaRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GetSceneAreaRspOuterClass.java deleted file mode 100644 index 05eb4e07a..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GetSceneAreaRspOuterClass.java +++ /dev/null @@ -1,1179 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GetSceneAreaRsp.proto - -package emu.grasscutter.net.proto; - -public final class GetSceneAreaRspOuterClass { - private GetSceneAreaRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GetSceneAreaRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:GetSceneAreaRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint32 sceneId = 2;</code> - * @return The sceneId. - */ - int getSceneId(); - - /** - * <code>repeated uint32 areaIdList = 3;</code> - * @return A list containing the areaIdList. - */ - java.util.List<java.lang.Integer> getAreaIdListList(); - /** - * <code>repeated uint32 areaIdList = 3;</code> - * @return The count of areaIdList. - */ - int getAreaIdListCount(); - /** - * <code>repeated uint32 areaIdList = 3;</code> - * @param index The index of the element to return. - * @return The areaIdList at the given index. - */ - int getAreaIdList(int index); - - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - java.util.List<emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo> - getCityInfoListList(); - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo getCityInfoList(int index); - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - int getCityInfoListCount(); - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.CityInfoOuterClass.CityInfoOrBuilder> - getCityInfoListOrBuilderList(); - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - emu.grasscutter.net.proto.CityInfoOuterClass.CityInfoOrBuilder getCityInfoListOrBuilder( - int index); - } - /** - * Protobuf type {@code GetSceneAreaRsp} - */ - public static final class GetSceneAreaRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GetSceneAreaRsp) - GetSceneAreaRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetSceneAreaRsp.newBuilder() to construct. - private GetSceneAreaRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GetSceneAreaRsp() { - areaIdList_ = emptyIntList(); - cityInfoList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetSceneAreaRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetSceneAreaRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - sceneId_ = input.readUInt32(); - break; - } - case 24: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - areaIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - areaIdList_.addInt(input.readUInt32()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - areaIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - areaIdList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - cityInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo>(); - mutable_bitField0_ |= 0x00000002; - } - cityInfoList_.add( - input.readMessage(emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - areaIdList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - cityInfoList_ = java.util.Collections.unmodifiableList(cityInfoList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.internal_static_GetSceneAreaRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.internal_static_GetSceneAreaRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp.class, emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int SCENEID_FIELD_NUMBER = 2; - private int sceneId_; - /** - * <code>uint32 sceneId = 2;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - - public static final int AREAIDLIST_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.IntList areaIdList_; - /** - * <code>repeated uint32 areaIdList = 3;</code> - * @return A list containing the areaIdList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getAreaIdListList() { - return areaIdList_; - } - /** - * <code>repeated uint32 areaIdList = 3;</code> - * @return The count of areaIdList. - */ - public int getAreaIdListCount() { - return areaIdList_.size(); - } - /** - * <code>repeated uint32 areaIdList = 3;</code> - * @param index The index of the element to return. - * @return The areaIdList at the given index. - */ - public int getAreaIdList(int index) { - return areaIdList_.getInt(index); - } - private int areaIdListMemoizedSerializedSize = -1; - - public static final int CITYINFOLIST_FIELD_NUMBER = 4; - private java.util.List<emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo> cityInfoList_; - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo> getCityInfoListList() { - return cityInfoList_; - } - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.CityInfoOuterClass.CityInfoOrBuilder> - getCityInfoListOrBuilderList() { - return cityInfoList_; - } - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - @java.lang.Override - public int getCityInfoListCount() { - return cityInfoList_.size(); - } - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo getCityInfoList(int index) { - return cityInfoList_.get(index); - } - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.CityInfoOuterClass.CityInfoOrBuilder getCityInfoListOrBuilder( - int index) { - return cityInfoList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (sceneId_ != 0) { - output.writeUInt32(2, sceneId_); - } - if (getAreaIdListList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(areaIdListMemoizedSerializedSize); - } - for (int i = 0; i < areaIdList_.size(); i++) { - output.writeUInt32NoTag(areaIdList_.getInt(i)); - } - for (int i = 0; i < cityInfoList_.size(); i++) { - output.writeMessage(4, cityInfoList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (sceneId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, sceneId_); - } - { - int dataSize = 0; - for (int i = 0; i < areaIdList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(areaIdList_.getInt(i)); - } - size += dataSize; - if (!getAreaIdListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - areaIdListMemoizedSerializedSize = dataSize; - } - for (int i = 0; i < cityInfoList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, cityInfoList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp other = (emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getSceneId() - != other.getSceneId()) return false; - if (!getAreaIdListList() - .equals(other.getAreaIdListList())) return false; - if (!getCityInfoListList() - .equals(other.getCityInfoListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + SCENEID_FIELD_NUMBER; - hash = (53 * hash) + getSceneId(); - if (getAreaIdListCount() > 0) { - hash = (37 * hash) + AREAIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getAreaIdListList().hashCode(); - } - if (getCityInfoListCount() > 0) { - hash = (37 * hash) + CITYINFOLIST_FIELD_NUMBER; - hash = (53 * hash) + getCityInfoListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GetSceneAreaRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GetSceneAreaRsp) - emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.internal_static_GetSceneAreaRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.internal_static_GetSceneAreaRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp.class, emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getCityInfoListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - sceneId_ = 0; - - areaIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - if (cityInfoListBuilder_ == null) { - cityInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - cityInfoListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.internal_static_GetSceneAreaRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp build() { - emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp buildPartial() { - emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp result = new emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp(this); - int from_bitField0_ = bitField0_; - result.retcode_ = retcode_; - result.sceneId_ = sceneId_; - if (((bitField0_ & 0x00000001) != 0)) { - areaIdList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.areaIdList_ = areaIdList_; - if (cityInfoListBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - cityInfoList_ = java.util.Collections.unmodifiableList(cityInfoList_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.cityInfoList_ = cityInfoList_; - } else { - result.cityInfoList_ = cityInfoListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp) { - return mergeFrom((emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp other) { - if (other == emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getSceneId() != 0) { - setSceneId(other.getSceneId()); - } - if (!other.areaIdList_.isEmpty()) { - if (areaIdList_.isEmpty()) { - areaIdList_ = other.areaIdList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAreaIdListIsMutable(); - areaIdList_.addAll(other.areaIdList_); - } - onChanged(); - } - if (cityInfoListBuilder_ == null) { - if (!other.cityInfoList_.isEmpty()) { - if (cityInfoList_.isEmpty()) { - cityInfoList_ = other.cityInfoList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureCityInfoListIsMutable(); - cityInfoList_.addAll(other.cityInfoList_); - } - onChanged(); - } - } else { - if (!other.cityInfoList_.isEmpty()) { - if (cityInfoListBuilder_.isEmpty()) { - cityInfoListBuilder_.dispose(); - cityInfoListBuilder_ = null; - cityInfoList_ = other.cityInfoList_; - bitField0_ = (bitField0_ & ~0x00000002); - cityInfoListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCityInfoListFieldBuilder() : null; - } else { - cityInfoListBuilder_.addAllMessages(other.cityInfoList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int sceneId_ ; - /** - * <code>uint32 sceneId = 2;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - /** - * <code>uint32 sceneId = 2;</code> - * @param value The sceneId to set. - * @return This builder for chaining. - */ - public Builder setSceneId(int value) { - - sceneId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 sceneId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearSceneId() { - - sceneId_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList areaIdList_ = emptyIntList(); - private void ensureAreaIdListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - areaIdList_ = mutableCopy(areaIdList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 areaIdList = 3;</code> - * @return A list containing the areaIdList. - */ - public java.util.List<java.lang.Integer> - getAreaIdListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(areaIdList_) : areaIdList_; - } - /** - * <code>repeated uint32 areaIdList = 3;</code> - * @return The count of areaIdList. - */ - public int getAreaIdListCount() { - return areaIdList_.size(); - } - /** - * <code>repeated uint32 areaIdList = 3;</code> - * @param index The index of the element to return. - * @return The areaIdList at the given index. - */ - public int getAreaIdList(int index) { - return areaIdList_.getInt(index); - } - /** - * <code>repeated uint32 areaIdList = 3;</code> - * @param index The index to set the value at. - * @param value The areaIdList to set. - * @return This builder for chaining. - */ - public Builder setAreaIdList( - int index, int value) { - ensureAreaIdListIsMutable(); - areaIdList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 areaIdList = 3;</code> - * @param value The areaIdList to add. - * @return This builder for chaining. - */ - public Builder addAreaIdList(int value) { - ensureAreaIdListIsMutable(); - areaIdList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 areaIdList = 3;</code> - * @param values The areaIdList to add. - * @return This builder for chaining. - */ - public Builder addAllAreaIdList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureAreaIdListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, areaIdList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 areaIdList = 3;</code> - * @return This builder for chaining. - */ - public Builder clearAreaIdList() { - areaIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo> cityInfoList_ = - java.util.Collections.emptyList(); - private void ensureCityInfoListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - cityInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo>(cityInfoList_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo, emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo.Builder, emu.grasscutter.net.proto.CityInfoOuterClass.CityInfoOrBuilder> cityInfoListBuilder_; - - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - public java.util.List<emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo> getCityInfoListList() { - if (cityInfoListBuilder_ == null) { - return java.util.Collections.unmodifiableList(cityInfoList_); - } else { - return cityInfoListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - public int getCityInfoListCount() { - if (cityInfoListBuilder_ == null) { - return cityInfoList_.size(); - } else { - return cityInfoListBuilder_.getCount(); - } - } - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - public emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo getCityInfoList(int index) { - if (cityInfoListBuilder_ == null) { - return cityInfoList_.get(index); - } else { - return cityInfoListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - public Builder setCityInfoList( - int index, emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo value) { - if (cityInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCityInfoListIsMutable(); - cityInfoList_.set(index, value); - onChanged(); - } else { - cityInfoListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - public Builder setCityInfoList( - int index, emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo.Builder builderForValue) { - if (cityInfoListBuilder_ == null) { - ensureCityInfoListIsMutable(); - cityInfoList_.set(index, builderForValue.build()); - onChanged(); - } else { - cityInfoListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - public Builder addCityInfoList(emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo value) { - if (cityInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCityInfoListIsMutable(); - cityInfoList_.add(value); - onChanged(); - } else { - cityInfoListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - public Builder addCityInfoList( - int index, emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo value) { - if (cityInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCityInfoListIsMutable(); - cityInfoList_.add(index, value); - onChanged(); - } else { - cityInfoListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - public Builder addCityInfoList( - emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo.Builder builderForValue) { - if (cityInfoListBuilder_ == null) { - ensureCityInfoListIsMutable(); - cityInfoList_.add(builderForValue.build()); - onChanged(); - } else { - cityInfoListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - public Builder addCityInfoList( - int index, emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo.Builder builderForValue) { - if (cityInfoListBuilder_ == null) { - ensureCityInfoListIsMutable(); - cityInfoList_.add(index, builderForValue.build()); - onChanged(); - } else { - cityInfoListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - public Builder addAllCityInfoList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo> values) { - if (cityInfoListBuilder_ == null) { - ensureCityInfoListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, cityInfoList_); - onChanged(); - } else { - cityInfoListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - public Builder clearCityInfoList() { - if (cityInfoListBuilder_ == null) { - cityInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - cityInfoListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - public Builder removeCityInfoList(int index) { - if (cityInfoListBuilder_ == null) { - ensureCityInfoListIsMutable(); - cityInfoList_.remove(index); - onChanged(); - } else { - cityInfoListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - public emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo.Builder getCityInfoListBuilder( - int index) { - return getCityInfoListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - public emu.grasscutter.net.proto.CityInfoOuterClass.CityInfoOrBuilder getCityInfoListOrBuilder( - int index) { - if (cityInfoListBuilder_ == null) { - return cityInfoList_.get(index); } else { - return cityInfoListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.CityInfoOuterClass.CityInfoOrBuilder> - getCityInfoListOrBuilderList() { - if (cityInfoListBuilder_ != null) { - return cityInfoListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(cityInfoList_); - } - } - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - public emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo.Builder addCityInfoListBuilder() { - return getCityInfoListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo.getDefaultInstance()); - } - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - public emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo.Builder addCityInfoListBuilder( - int index) { - return getCityInfoListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo.getDefaultInstance()); - } - /** - * <code>repeated .CityInfo cityInfoList = 4;</code> - */ - public java.util.List<emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo.Builder> - getCityInfoListBuilderList() { - return getCityInfoListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo, emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo.Builder, emu.grasscutter.net.proto.CityInfoOuterClass.CityInfoOrBuilder> - getCityInfoListFieldBuilder() { - if (cityInfoListBuilder_ == null) { - cityInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo, emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo.Builder, emu.grasscutter.net.proto.CityInfoOuterClass.CityInfoOrBuilder>( - cityInfoList_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - cityInfoList_ = null; - } - return cityInfoListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GetSceneAreaRsp) - } - - // @@protoc_insertion_point(class_scope:GetSceneAreaRsp) - private static final emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp(); - } - - public static emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GetSceneAreaRsp> - PARSER = new com.google.protobuf.AbstractParser<GetSceneAreaRsp>() { - @java.lang.Override - public GetSceneAreaRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSceneAreaRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GetSceneAreaRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GetSceneAreaRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GetSceneAreaRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GetSceneAreaRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025GetSceneAreaRsp.proto\032\016CityInfo.proto\"" + - "h\n\017GetSceneAreaRsp\022\017\n\007retcode\030\001 \001(\005\022\017\n\007s" + - "ceneId\030\002 \001(\r\022\022\n\nareaIdList\030\003 \003(\r\022\037\n\014city" + - "InfoList\030\004 \003(\0132\t.CityInfoB\033\n\031emu.grasscu" + - "tter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.CityInfoOuterClass.getDescriptor(), - }); - internal_static_GetSceneAreaRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GetSceneAreaRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GetSceneAreaRsp_descriptor, - new java.lang.String[] { "Retcode", "SceneId", "AreaIdList", "CityInfoList", }); - emu.grasscutter.net.proto.CityInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GetScenePointReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GetScenePointReqOuterClass.java deleted file mode 100644 index 01a27b723..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GetScenePointReqOuterClass.java +++ /dev/null @@ -1,606 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GetScenePointReq.proto - -package emu.grasscutter.net.proto; - -public final class GetScenePointReqOuterClass { - private GetScenePointReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GetScenePointReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:GetScenePointReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - int getSceneId(); - - /** - * <code>uint32 belongUid = 2;</code> - * @return The belongUid. - */ - int getBelongUid(); - } - /** - * Protobuf type {@code GetScenePointReq} - */ - public static final class GetScenePointReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GetScenePointReq) - GetScenePointReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetScenePointReq.newBuilder() to construct. - private GetScenePointReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GetScenePointReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetScenePointReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetScenePointReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - sceneId_ = input.readUInt32(); - break; - } - case 16: { - - belongUid_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetScenePointReqOuterClass.internal_static_GetScenePointReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetScenePointReqOuterClass.internal_static_GetScenePointReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq.class, emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq.Builder.class); - } - - public static final int SCENEID_FIELD_NUMBER = 1; - private int sceneId_; - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - - public static final int BELONGUID_FIELD_NUMBER = 2; - private int belongUid_; - /** - * <code>uint32 belongUid = 2;</code> - * @return The belongUid. - */ - @java.lang.Override - public int getBelongUid() { - return belongUid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (sceneId_ != 0) { - output.writeUInt32(1, sceneId_); - } - if (belongUid_ != 0) { - output.writeUInt32(2, belongUid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sceneId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, sceneId_); - } - if (belongUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, belongUid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq other = (emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq) obj; - - if (getSceneId() - != other.getSceneId()) return false; - if (getBelongUid() - != other.getBelongUid()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SCENEID_FIELD_NUMBER; - hash = (53 * hash) + getSceneId(); - hash = (37 * hash) + BELONGUID_FIELD_NUMBER; - hash = (53 * hash) + getBelongUid(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GetScenePointReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GetScenePointReq) - emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetScenePointReqOuterClass.internal_static_GetScenePointReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetScenePointReqOuterClass.internal_static_GetScenePointReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq.class, emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sceneId_ = 0; - - belongUid_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GetScenePointReqOuterClass.internal_static_GetScenePointReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq build() { - emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq buildPartial() { - emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq result = new emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq(this); - result.sceneId_ = sceneId_; - result.belongUid_ = belongUid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq) { - return mergeFrom((emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq other) { - if (other == emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq.getDefaultInstance()) return this; - if (other.getSceneId() != 0) { - setSceneId(other.getSceneId()); - } - if (other.getBelongUid() != 0) { - setBelongUid(other.getBelongUid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int sceneId_ ; - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - /** - * <code>uint32 sceneId = 1;</code> - * @param value The sceneId to set. - * @return This builder for chaining. - */ - public Builder setSceneId(int value) { - - sceneId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 sceneId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearSceneId() { - - sceneId_ = 0; - onChanged(); - return this; - } - - private int belongUid_ ; - /** - * <code>uint32 belongUid = 2;</code> - * @return The belongUid. - */ - @java.lang.Override - public int getBelongUid() { - return belongUid_; - } - /** - * <code>uint32 belongUid = 2;</code> - * @param value The belongUid to set. - * @return This builder for chaining. - */ - public Builder setBelongUid(int value) { - - belongUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 belongUid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearBelongUid() { - - belongUid_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GetScenePointReq) - } - - // @@protoc_insertion_point(class_scope:GetScenePointReq) - private static final emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq(); - } - - public static emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GetScenePointReq> - PARSER = new com.google.protobuf.AbstractParser<GetScenePointReq>() { - @java.lang.Override - public GetScenePointReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScenePointReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GetScenePointReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GetScenePointReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GetScenePointReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GetScenePointReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026GetScenePointReq.proto\"6\n\020GetScenePoin" + - "tReq\022\017\n\007sceneId\030\001 \001(\r\022\021\n\tbelongUid\030\002 \001(\r" + - "B\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_GetScenePointReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GetScenePointReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GetScenePointReq_descriptor, - new java.lang.String[] { "SceneId", "BelongUid", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GetScenePointRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GetScenePointRspOuterClass.java deleted file mode 100644 index 3f11e6406..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GetScenePointRspOuterClass.java +++ /dev/null @@ -1,2037 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GetScenePointRsp.proto - -package emu.grasscutter.net.proto; - -public final class GetScenePointRspOuterClass { - private GetScenePointRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GetScenePointRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:GetScenePointRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint32 sceneId = 2;</code> - * @return The sceneId. - */ - int getSceneId(); - - /** - * <code>repeated uint32 unlockedPointList = 3;</code> - * @return A list containing the unlockedPointList. - */ - java.util.List<java.lang.Integer> getUnlockedPointListList(); - /** - * <code>repeated uint32 unlockedPointList = 3;</code> - * @return The count of unlockedPointList. - */ - int getUnlockedPointListCount(); - /** - * <code>repeated uint32 unlockedPointList = 3;</code> - * @param index The index of the element to return. - * @return The unlockedPointList at the given index. - */ - int getUnlockedPointList(int index); - - /** - * <code>uint32 belongUid = 4;</code> - * @return The belongUid. - */ - int getBelongUid(); - - /** - * <code>repeated uint32 unlockAreaList = 5;</code> - * @return A list containing the unlockAreaList. - */ - java.util.List<java.lang.Integer> getUnlockAreaListList(); - /** - * <code>repeated uint32 unlockAreaList = 5;</code> - * @return The count of unlockAreaList. - */ - int getUnlockAreaListCount(); - /** - * <code>repeated uint32 unlockAreaList = 5;</code> - * @param index The index of the element to return. - * @return The unlockAreaList at the given index. - */ - int getUnlockAreaList(int index); - - /** - * <code>repeated uint32 lockedPointList = 6;</code> - * @return A list containing the lockedPointList. - */ - java.util.List<java.lang.Integer> getLockedPointListList(); - /** - * <code>repeated uint32 lockedPointList = 6;</code> - * @return The count of lockedPointList. - */ - int getLockedPointListCount(); - /** - * <code>repeated uint32 lockedPointList = 6;</code> - * @param index The index of the element to return. - * @return The lockedPointList at the given index. - */ - int getLockedPointList(int index); - - /** - * <code>repeated uint32 toBeExploreDungeonEntryList = 7;</code> - * @return A list containing the toBeExploreDungeonEntryList. - */ - java.util.List<java.lang.Integer> getToBeExploreDungeonEntryListList(); - /** - * <code>repeated uint32 toBeExploreDungeonEntryList = 7;</code> - * @return The count of toBeExploreDungeonEntryList. - */ - int getToBeExploreDungeonEntryListCount(); - /** - * <code>repeated uint32 toBeExploreDungeonEntryList = 7;</code> - * @param index The index of the element to return. - * @return The toBeExploreDungeonEntryList at the given index. - */ - int getToBeExploreDungeonEntryList(int index); - - /** - * <code>repeated uint32 notExploredDungeonEntryList = 8;</code> - * @return A list containing the notExploredDungeonEntryList. - */ - java.util.List<java.lang.Integer> getNotExploredDungeonEntryListList(); - /** - * <code>repeated uint32 notExploredDungeonEntryList = 8;</code> - * @return The count of notExploredDungeonEntryList. - */ - int getNotExploredDungeonEntryListCount(); - /** - * <code>repeated uint32 notExploredDungeonEntryList = 8;</code> - * @param index The index of the element to return. - * @return The notExploredDungeonEntryList at the given index. - */ - int getNotExploredDungeonEntryList(int index); - - /** - * <code>repeated uint32 groupUnlimitPointList = 9;</code> - * @return A list containing the groupUnlimitPointList. - */ - java.util.List<java.lang.Integer> getGroupUnlimitPointListList(); - /** - * <code>repeated uint32 groupUnlimitPointList = 9;</code> - * @return The count of groupUnlimitPointList. - */ - int getGroupUnlimitPointListCount(); - /** - * <code>repeated uint32 groupUnlimitPointList = 9;</code> - * @param index The index of the element to return. - * @return The groupUnlimitPointList at the given index. - */ - int getGroupUnlimitPointList(int index); - - /** - * <code>repeated uint32 notInteractDungeonEntryList = 10;</code> - * @return A list containing the notInteractDungeonEntryList. - */ - java.util.List<java.lang.Integer> getNotInteractDungeonEntryListList(); - /** - * <code>repeated uint32 notInteractDungeonEntryList = 10;</code> - * @return The count of notInteractDungeonEntryList. - */ - int getNotInteractDungeonEntryListCount(); - /** - * <code>repeated uint32 notInteractDungeonEntryList = 10;</code> - * @param index The index of the element to return. - * @return The notInteractDungeonEntryList at the given index. - */ - int getNotInteractDungeonEntryList(int index); - } - /** - * Protobuf type {@code GetScenePointRsp} - */ - public static final class GetScenePointRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GetScenePointRsp) - GetScenePointRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetScenePointRsp.newBuilder() to construct. - private GetScenePointRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GetScenePointRsp() { - unlockedPointList_ = emptyIntList(); - unlockAreaList_ = emptyIntList(); - lockedPointList_ = emptyIntList(); - toBeExploreDungeonEntryList_ = emptyIntList(); - notExploredDungeonEntryList_ = emptyIntList(); - groupUnlimitPointList_ = emptyIntList(); - notInteractDungeonEntryList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetScenePointRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetScenePointRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - sceneId_ = input.readUInt32(); - break; - } - case 24: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - unlockedPointList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - unlockedPointList_.addInt(input.readUInt32()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - unlockedPointList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - unlockedPointList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 32: { - - belongUid_ = input.readUInt32(); - break; - } - case 40: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unlockAreaList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - unlockAreaList_.addInt(input.readUInt32()); - break; - } - case 42: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - unlockAreaList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - unlockAreaList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 48: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - lockedPointList_ = newIntList(); - mutable_bitField0_ |= 0x00000004; - } - lockedPointList_.addInt(input.readUInt32()); - break; - } - case 50: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) { - lockedPointList_ = newIntList(); - mutable_bitField0_ |= 0x00000004; - } - while (input.getBytesUntilLimit() > 0) { - lockedPointList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 56: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - toBeExploreDungeonEntryList_ = newIntList(); - mutable_bitField0_ |= 0x00000008; - } - toBeExploreDungeonEntryList_.addInt(input.readUInt32()); - break; - } - case 58: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000008) != 0) && input.getBytesUntilLimit() > 0) { - toBeExploreDungeonEntryList_ = newIntList(); - mutable_bitField0_ |= 0x00000008; - } - while (input.getBytesUntilLimit() > 0) { - toBeExploreDungeonEntryList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 64: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - notExploredDungeonEntryList_ = newIntList(); - mutable_bitField0_ |= 0x00000010; - } - notExploredDungeonEntryList_.addInt(input.readUInt32()); - break; - } - case 66: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000010) != 0) && input.getBytesUntilLimit() > 0) { - notExploredDungeonEntryList_ = newIntList(); - mutable_bitField0_ |= 0x00000010; - } - while (input.getBytesUntilLimit() > 0) { - notExploredDungeonEntryList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 72: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - groupUnlimitPointList_ = newIntList(); - mutable_bitField0_ |= 0x00000020; - } - groupUnlimitPointList_.addInt(input.readUInt32()); - break; - } - case 74: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000020) != 0) && input.getBytesUntilLimit() > 0) { - groupUnlimitPointList_ = newIntList(); - mutable_bitField0_ |= 0x00000020; - } - while (input.getBytesUntilLimit() > 0) { - groupUnlimitPointList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 80: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - notInteractDungeonEntryList_ = newIntList(); - mutable_bitField0_ |= 0x00000040; - } - notInteractDungeonEntryList_.addInt(input.readUInt32()); - break; - } - case 82: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000040) != 0) && input.getBytesUntilLimit() > 0) { - notInteractDungeonEntryList_ = newIntList(); - mutable_bitField0_ |= 0x00000040; - } - while (input.getBytesUntilLimit() > 0) { - notInteractDungeonEntryList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - unlockedPointList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - unlockAreaList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - lockedPointList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - toBeExploreDungeonEntryList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - notExploredDungeonEntryList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000020) != 0)) { - groupUnlimitPointList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000040) != 0)) { - notInteractDungeonEntryList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetScenePointRspOuterClass.internal_static_GetScenePointRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetScenePointRspOuterClass.internal_static_GetScenePointRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp.class, emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int SCENEID_FIELD_NUMBER = 2; - private int sceneId_; - /** - * <code>uint32 sceneId = 2;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - - public static final int UNLOCKEDPOINTLIST_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.IntList unlockedPointList_; - /** - * <code>repeated uint32 unlockedPointList = 3;</code> - * @return A list containing the unlockedPointList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getUnlockedPointListList() { - return unlockedPointList_; - } - /** - * <code>repeated uint32 unlockedPointList = 3;</code> - * @return The count of unlockedPointList. - */ - public int getUnlockedPointListCount() { - return unlockedPointList_.size(); - } - /** - * <code>repeated uint32 unlockedPointList = 3;</code> - * @param index The index of the element to return. - * @return The unlockedPointList at the given index. - */ - public int getUnlockedPointList(int index) { - return unlockedPointList_.getInt(index); - } - private int unlockedPointListMemoizedSerializedSize = -1; - - public static final int BELONGUID_FIELD_NUMBER = 4; - private int belongUid_; - /** - * <code>uint32 belongUid = 4;</code> - * @return The belongUid. - */ - @java.lang.Override - public int getBelongUid() { - return belongUid_; - } - - public static final int UNLOCKAREALIST_FIELD_NUMBER = 5; - private com.google.protobuf.Internal.IntList unlockAreaList_; - /** - * <code>repeated uint32 unlockAreaList = 5;</code> - * @return A list containing the unlockAreaList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getUnlockAreaListList() { - return unlockAreaList_; - } - /** - * <code>repeated uint32 unlockAreaList = 5;</code> - * @return The count of unlockAreaList. - */ - public int getUnlockAreaListCount() { - return unlockAreaList_.size(); - } - /** - * <code>repeated uint32 unlockAreaList = 5;</code> - * @param index The index of the element to return. - * @return The unlockAreaList at the given index. - */ - public int getUnlockAreaList(int index) { - return unlockAreaList_.getInt(index); - } - private int unlockAreaListMemoizedSerializedSize = -1; - - public static final int LOCKEDPOINTLIST_FIELD_NUMBER = 6; - private com.google.protobuf.Internal.IntList lockedPointList_; - /** - * <code>repeated uint32 lockedPointList = 6;</code> - * @return A list containing the lockedPointList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getLockedPointListList() { - return lockedPointList_; - } - /** - * <code>repeated uint32 lockedPointList = 6;</code> - * @return The count of lockedPointList. - */ - public int getLockedPointListCount() { - return lockedPointList_.size(); - } - /** - * <code>repeated uint32 lockedPointList = 6;</code> - * @param index The index of the element to return. - * @return The lockedPointList at the given index. - */ - public int getLockedPointList(int index) { - return lockedPointList_.getInt(index); - } - private int lockedPointListMemoizedSerializedSize = -1; - - public static final int TOBEEXPLOREDUNGEONENTRYLIST_FIELD_NUMBER = 7; - private com.google.protobuf.Internal.IntList toBeExploreDungeonEntryList_; - /** - * <code>repeated uint32 toBeExploreDungeonEntryList = 7;</code> - * @return A list containing the toBeExploreDungeonEntryList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getToBeExploreDungeonEntryListList() { - return toBeExploreDungeonEntryList_; - } - /** - * <code>repeated uint32 toBeExploreDungeonEntryList = 7;</code> - * @return The count of toBeExploreDungeonEntryList. - */ - public int getToBeExploreDungeonEntryListCount() { - return toBeExploreDungeonEntryList_.size(); - } - /** - * <code>repeated uint32 toBeExploreDungeonEntryList = 7;</code> - * @param index The index of the element to return. - * @return The toBeExploreDungeonEntryList at the given index. - */ - public int getToBeExploreDungeonEntryList(int index) { - return toBeExploreDungeonEntryList_.getInt(index); - } - private int toBeExploreDungeonEntryListMemoizedSerializedSize = -1; - - public static final int NOTEXPLOREDDUNGEONENTRYLIST_FIELD_NUMBER = 8; - private com.google.protobuf.Internal.IntList notExploredDungeonEntryList_; - /** - * <code>repeated uint32 notExploredDungeonEntryList = 8;</code> - * @return A list containing the notExploredDungeonEntryList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getNotExploredDungeonEntryListList() { - return notExploredDungeonEntryList_; - } - /** - * <code>repeated uint32 notExploredDungeonEntryList = 8;</code> - * @return The count of notExploredDungeonEntryList. - */ - public int getNotExploredDungeonEntryListCount() { - return notExploredDungeonEntryList_.size(); - } - /** - * <code>repeated uint32 notExploredDungeonEntryList = 8;</code> - * @param index The index of the element to return. - * @return The notExploredDungeonEntryList at the given index. - */ - public int getNotExploredDungeonEntryList(int index) { - return notExploredDungeonEntryList_.getInt(index); - } - private int notExploredDungeonEntryListMemoizedSerializedSize = -1; - - public static final int GROUPUNLIMITPOINTLIST_FIELD_NUMBER = 9; - private com.google.protobuf.Internal.IntList groupUnlimitPointList_; - /** - * <code>repeated uint32 groupUnlimitPointList = 9;</code> - * @return A list containing the groupUnlimitPointList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getGroupUnlimitPointListList() { - return groupUnlimitPointList_; - } - /** - * <code>repeated uint32 groupUnlimitPointList = 9;</code> - * @return The count of groupUnlimitPointList. - */ - public int getGroupUnlimitPointListCount() { - return groupUnlimitPointList_.size(); - } - /** - * <code>repeated uint32 groupUnlimitPointList = 9;</code> - * @param index The index of the element to return. - * @return The groupUnlimitPointList at the given index. - */ - public int getGroupUnlimitPointList(int index) { - return groupUnlimitPointList_.getInt(index); - } - private int groupUnlimitPointListMemoizedSerializedSize = -1; - - public static final int NOTINTERACTDUNGEONENTRYLIST_FIELD_NUMBER = 10; - private com.google.protobuf.Internal.IntList notInteractDungeonEntryList_; - /** - * <code>repeated uint32 notInteractDungeonEntryList = 10;</code> - * @return A list containing the notInteractDungeonEntryList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getNotInteractDungeonEntryListList() { - return notInteractDungeonEntryList_; - } - /** - * <code>repeated uint32 notInteractDungeonEntryList = 10;</code> - * @return The count of notInteractDungeonEntryList. - */ - public int getNotInteractDungeonEntryListCount() { - return notInteractDungeonEntryList_.size(); - } - /** - * <code>repeated uint32 notInteractDungeonEntryList = 10;</code> - * @param index The index of the element to return. - * @return The notInteractDungeonEntryList at the given index. - */ - public int getNotInteractDungeonEntryList(int index) { - return notInteractDungeonEntryList_.getInt(index); - } - private int notInteractDungeonEntryListMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (sceneId_ != 0) { - output.writeUInt32(2, sceneId_); - } - if (getUnlockedPointListList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(unlockedPointListMemoizedSerializedSize); - } - for (int i = 0; i < unlockedPointList_.size(); i++) { - output.writeUInt32NoTag(unlockedPointList_.getInt(i)); - } - if (belongUid_ != 0) { - output.writeUInt32(4, belongUid_); - } - if (getUnlockAreaListList().size() > 0) { - output.writeUInt32NoTag(42); - output.writeUInt32NoTag(unlockAreaListMemoizedSerializedSize); - } - for (int i = 0; i < unlockAreaList_.size(); i++) { - output.writeUInt32NoTag(unlockAreaList_.getInt(i)); - } - if (getLockedPointListList().size() > 0) { - output.writeUInt32NoTag(50); - output.writeUInt32NoTag(lockedPointListMemoizedSerializedSize); - } - for (int i = 0; i < lockedPointList_.size(); i++) { - output.writeUInt32NoTag(lockedPointList_.getInt(i)); - } - if (getToBeExploreDungeonEntryListList().size() > 0) { - output.writeUInt32NoTag(58); - output.writeUInt32NoTag(toBeExploreDungeonEntryListMemoizedSerializedSize); - } - for (int i = 0; i < toBeExploreDungeonEntryList_.size(); i++) { - output.writeUInt32NoTag(toBeExploreDungeonEntryList_.getInt(i)); - } - if (getNotExploredDungeonEntryListList().size() > 0) { - output.writeUInt32NoTag(66); - output.writeUInt32NoTag(notExploredDungeonEntryListMemoizedSerializedSize); - } - for (int i = 0; i < notExploredDungeonEntryList_.size(); i++) { - output.writeUInt32NoTag(notExploredDungeonEntryList_.getInt(i)); - } - if (getGroupUnlimitPointListList().size() > 0) { - output.writeUInt32NoTag(74); - output.writeUInt32NoTag(groupUnlimitPointListMemoizedSerializedSize); - } - for (int i = 0; i < groupUnlimitPointList_.size(); i++) { - output.writeUInt32NoTag(groupUnlimitPointList_.getInt(i)); - } - if (getNotInteractDungeonEntryListList().size() > 0) { - output.writeUInt32NoTag(82); - output.writeUInt32NoTag(notInteractDungeonEntryListMemoizedSerializedSize); - } - for (int i = 0; i < notInteractDungeonEntryList_.size(); i++) { - output.writeUInt32NoTag(notInteractDungeonEntryList_.getInt(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (sceneId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, sceneId_); - } - { - int dataSize = 0; - for (int i = 0; i < unlockedPointList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(unlockedPointList_.getInt(i)); - } - size += dataSize; - if (!getUnlockedPointListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - unlockedPointListMemoizedSerializedSize = dataSize; - } - if (belongUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, belongUid_); - } - { - int dataSize = 0; - for (int i = 0; i < unlockAreaList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(unlockAreaList_.getInt(i)); - } - size += dataSize; - if (!getUnlockAreaListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - unlockAreaListMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < lockedPointList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(lockedPointList_.getInt(i)); - } - size += dataSize; - if (!getLockedPointListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - lockedPointListMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < toBeExploreDungeonEntryList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(toBeExploreDungeonEntryList_.getInt(i)); - } - size += dataSize; - if (!getToBeExploreDungeonEntryListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - toBeExploreDungeonEntryListMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < notExploredDungeonEntryList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(notExploredDungeonEntryList_.getInt(i)); - } - size += dataSize; - if (!getNotExploredDungeonEntryListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - notExploredDungeonEntryListMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < groupUnlimitPointList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(groupUnlimitPointList_.getInt(i)); - } - size += dataSize; - if (!getGroupUnlimitPointListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - groupUnlimitPointListMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < notInteractDungeonEntryList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(notInteractDungeonEntryList_.getInt(i)); - } - size += dataSize; - if (!getNotInteractDungeonEntryListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - notInteractDungeonEntryListMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp other = (emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getSceneId() - != other.getSceneId()) return false; - if (!getUnlockedPointListList() - .equals(other.getUnlockedPointListList())) return false; - if (getBelongUid() - != other.getBelongUid()) return false; - if (!getUnlockAreaListList() - .equals(other.getUnlockAreaListList())) return false; - if (!getLockedPointListList() - .equals(other.getLockedPointListList())) return false; - if (!getToBeExploreDungeonEntryListList() - .equals(other.getToBeExploreDungeonEntryListList())) return false; - if (!getNotExploredDungeonEntryListList() - .equals(other.getNotExploredDungeonEntryListList())) return false; - if (!getGroupUnlimitPointListList() - .equals(other.getGroupUnlimitPointListList())) return false; - if (!getNotInteractDungeonEntryListList() - .equals(other.getNotInteractDungeonEntryListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + SCENEID_FIELD_NUMBER; - hash = (53 * hash) + getSceneId(); - if (getUnlockedPointListCount() > 0) { - hash = (37 * hash) + UNLOCKEDPOINTLIST_FIELD_NUMBER; - hash = (53 * hash) + getUnlockedPointListList().hashCode(); - } - hash = (37 * hash) + BELONGUID_FIELD_NUMBER; - hash = (53 * hash) + getBelongUid(); - if (getUnlockAreaListCount() > 0) { - hash = (37 * hash) + UNLOCKAREALIST_FIELD_NUMBER; - hash = (53 * hash) + getUnlockAreaListList().hashCode(); - } - if (getLockedPointListCount() > 0) { - hash = (37 * hash) + LOCKEDPOINTLIST_FIELD_NUMBER; - hash = (53 * hash) + getLockedPointListList().hashCode(); - } - if (getToBeExploreDungeonEntryListCount() > 0) { - hash = (37 * hash) + TOBEEXPLOREDUNGEONENTRYLIST_FIELD_NUMBER; - hash = (53 * hash) + getToBeExploreDungeonEntryListList().hashCode(); - } - if (getNotExploredDungeonEntryListCount() > 0) { - hash = (37 * hash) + NOTEXPLOREDDUNGEONENTRYLIST_FIELD_NUMBER; - hash = (53 * hash) + getNotExploredDungeonEntryListList().hashCode(); - } - if (getGroupUnlimitPointListCount() > 0) { - hash = (37 * hash) + GROUPUNLIMITPOINTLIST_FIELD_NUMBER; - hash = (53 * hash) + getGroupUnlimitPointListList().hashCode(); - } - if (getNotInteractDungeonEntryListCount() > 0) { - hash = (37 * hash) + NOTINTERACTDUNGEONENTRYLIST_FIELD_NUMBER; - hash = (53 * hash) + getNotInteractDungeonEntryListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GetScenePointRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GetScenePointRsp) - emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetScenePointRspOuterClass.internal_static_GetScenePointRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetScenePointRspOuterClass.internal_static_GetScenePointRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp.class, emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - sceneId_ = 0; - - unlockedPointList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - belongUid_ = 0; - - unlockAreaList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - lockedPointList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000004); - toBeExploreDungeonEntryList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000008); - notExploredDungeonEntryList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000010); - groupUnlimitPointList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000020); - notInteractDungeonEntryList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GetScenePointRspOuterClass.internal_static_GetScenePointRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp build() { - emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp buildPartial() { - emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp result = new emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp(this); - int from_bitField0_ = bitField0_; - result.retcode_ = retcode_; - result.sceneId_ = sceneId_; - if (((bitField0_ & 0x00000001) != 0)) { - unlockedPointList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.unlockedPointList_ = unlockedPointList_; - result.belongUid_ = belongUid_; - if (((bitField0_ & 0x00000002) != 0)) { - unlockAreaList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.unlockAreaList_ = unlockAreaList_; - if (((bitField0_ & 0x00000004) != 0)) { - lockedPointList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.lockedPointList_ = lockedPointList_; - if (((bitField0_ & 0x00000008) != 0)) { - toBeExploreDungeonEntryList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.toBeExploreDungeonEntryList_ = toBeExploreDungeonEntryList_; - if (((bitField0_ & 0x00000010) != 0)) { - notExploredDungeonEntryList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.notExploredDungeonEntryList_ = notExploredDungeonEntryList_; - if (((bitField0_ & 0x00000020) != 0)) { - groupUnlimitPointList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.groupUnlimitPointList_ = groupUnlimitPointList_; - if (((bitField0_ & 0x00000040) != 0)) { - notInteractDungeonEntryList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.notInteractDungeonEntryList_ = notInteractDungeonEntryList_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp) { - return mergeFrom((emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp other) { - if (other == emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getSceneId() != 0) { - setSceneId(other.getSceneId()); - } - if (!other.unlockedPointList_.isEmpty()) { - if (unlockedPointList_.isEmpty()) { - unlockedPointList_ = other.unlockedPointList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureUnlockedPointListIsMutable(); - unlockedPointList_.addAll(other.unlockedPointList_); - } - onChanged(); - } - if (other.getBelongUid() != 0) { - setBelongUid(other.getBelongUid()); - } - if (!other.unlockAreaList_.isEmpty()) { - if (unlockAreaList_.isEmpty()) { - unlockAreaList_ = other.unlockAreaList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureUnlockAreaListIsMutable(); - unlockAreaList_.addAll(other.unlockAreaList_); - } - onChanged(); - } - if (!other.lockedPointList_.isEmpty()) { - if (lockedPointList_.isEmpty()) { - lockedPointList_ = other.lockedPointList_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureLockedPointListIsMutable(); - lockedPointList_.addAll(other.lockedPointList_); - } - onChanged(); - } - if (!other.toBeExploreDungeonEntryList_.isEmpty()) { - if (toBeExploreDungeonEntryList_.isEmpty()) { - toBeExploreDungeonEntryList_ = other.toBeExploreDungeonEntryList_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureToBeExploreDungeonEntryListIsMutable(); - toBeExploreDungeonEntryList_.addAll(other.toBeExploreDungeonEntryList_); - } - onChanged(); - } - if (!other.notExploredDungeonEntryList_.isEmpty()) { - if (notExploredDungeonEntryList_.isEmpty()) { - notExploredDungeonEntryList_ = other.notExploredDungeonEntryList_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureNotExploredDungeonEntryListIsMutable(); - notExploredDungeonEntryList_.addAll(other.notExploredDungeonEntryList_); - } - onChanged(); - } - if (!other.groupUnlimitPointList_.isEmpty()) { - if (groupUnlimitPointList_.isEmpty()) { - groupUnlimitPointList_ = other.groupUnlimitPointList_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureGroupUnlimitPointListIsMutable(); - groupUnlimitPointList_.addAll(other.groupUnlimitPointList_); - } - onChanged(); - } - if (!other.notInteractDungeonEntryList_.isEmpty()) { - if (notInteractDungeonEntryList_.isEmpty()) { - notInteractDungeonEntryList_ = other.notInteractDungeonEntryList_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureNotInteractDungeonEntryListIsMutable(); - notInteractDungeonEntryList_.addAll(other.notInteractDungeonEntryList_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int sceneId_ ; - /** - * <code>uint32 sceneId = 2;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - /** - * <code>uint32 sceneId = 2;</code> - * @param value The sceneId to set. - * @return This builder for chaining. - */ - public Builder setSceneId(int value) { - - sceneId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 sceneId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearSceneId() { - - sceneId_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList unlockedPointList_ = emptyIntList(); - private void ensureUnlockedPointListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - unlockedPointList_ = mutableCopy(unlockedPointList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 unlockedPointList = 3;</code> - * @return A list containing the unlockedPointList. - */ - public java.util.List<java.lang.Integer> - getUnlockedPointListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(unlockedPointList_) : unlockedPointList_; - } - /** - * <code>repeated uint32 unlockedPointList = 3;</code> - * @return The count of unlockedPointList. - */ - public int getUnlockedPointListCount() { - return unlockedPointList_.size(); - } - /** - * <code>repeated uint32 unlockedPointList = 3;</code> - * @param index The index of the element to return. - * @return The unlockedPointList at the given index. - */ - public int getUnlockedPointList(int index) { - return unlockedPointList_.getInt(index); - } - /** - * <code>repeated uint32 unlockedPointList = 3;</code> - * @param index The index to set the value at. - * @param value The unlockedPointList to set. - * @return This builder for chaining. - */ - public Builder setUnlockedPointList( - int index, int value) { - ensureUnlockedPointListIsMutable(); - unlockedPointList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 unlockedPointList = 3;</code> - * @param value The unlockedPointList to add. - * @return This builder for chaining. - */ - public Builder addUnlockedPointList(int value) { - ensureUnlockedPointListIsMutable(); - unlockedPointList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 unlockedPointList = 3;</code> - * @param values The unlockedPointList to add. - * @return This builder for chaining. - */ - public Builder addAllUnlockedPointList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureUnlockedPointListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unlockedPointList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 unlockedPointList = 3;</code> - * @return This builder for chaining. - */ - public Builder clearUnlockedPointList() { - unlockedPointList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private int belongUid_ ; - /** - * <code>uint32 belongUid = 4;</code> - * @return The belongUid. - */ - @java.lang.Override - public int getBelongUid() { - return belongUid_; - } - /** - * <code>uint32 belongUid = 4;</code> - * @param value The belongUid to set. - * @return This builder for chaining. - */ - public Builder setBelongUid(int value) { - - belongUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 belongUid = 4;</code> - * @return This builder for chaining. - */ - public Builder clearBelongUid() { - - belongUid_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList unlockAreaList_ = emptyIntList(); - private void ensureUnlockAreaListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - unlockAreaList_ = mutableCopy(unlockAreaList_); - bitField0_ |= 0x00000002; - } - } - /** - * <code>repeated uint32 unlockAreaList = 5;</code> - * @return A list containing the unlockAreaList. - */ - public java.util.List<java.lang.Integer> - getUnlockAreaListList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(unlockAreaList_) : unlockAreaList_; - } - /** - * <code>repeated uint32 unlockAreaList = 5;</code> - * @return The count of unlockAreaList. - */ - public int getUnlockAreaListCount() { - return unlockAreaList_.size(); - } - /** - * <code>repeated uint32 unlockAreaList = 5;</code> - * @param index The index of the element to return. - * @return The unlockAreaList at the given index. - */ - public int getUnlockAreaList(int index) { - return unlockAreaList_.getInt(index); - } - /** - * <code>repeated uint32 unlockAreaList = 5;</code> - * @param index The index to set the value at. - * @param value The unlockAreaList to set. - * @return This builder for chaining. - */ - public Builder setUnlockAreaList( - int index, int value) { - ensureUnlockAreaListIsMutable(); - unlockAreaList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 unlockAreaList = 5;</code> - * @param value The unlockAreaList to add. - * @return This builder for chaining. - */ - public Builder addUnlockAreaList(int value) { - ensureUnlockAreaListIsMutable(); - unlockAreaList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 unlockAreaList = 5;</code> - * @param values The unlockAreaList to add. - * @return This builder for chaining. - */ - public Builder addAllUnlockAreaList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureUnlockAreaListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unlockAreaList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 unlockAreaList = 5;</code> - * @return This builder for chaining. - */ - public Builder clearUnlockAreaList() { - unlockAreaList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList lockedPointList_ = emptyIntList(); - private void ensureLockedPointListIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - lockedPointList_ = mutableCopy(lockedPointList_); - bitField0_ |= 0x00000004; - } - } - /** - * <code>repeated uint32 lockedPointList = 6;</code> - * @return A list containing the lockedPointList. - */ - public java.util.List<java.lang.Integer> - getLockedPointListList() { - return ((bitField0_ & 0x00000004) != 0) ? - java.util.Collections.unmodifiableList(lockedPointList_) : lockedPointList_; - } - /** - * <code>repeated uint32 lockedPointList = 6;</code> - * @return The count of lockedPointList. - */ - public int getLockedPointListCount() { - return lockedPointList_.size(); - } - /** - * <code>repeated uint32 lockedPointList = 6;</code> - * @param index The index of the element to return. - * @return The lockedPointList at the given index. - */ - public int getLockedPointList(int index) { - return lockedPointList_.getInt(index); - } - /** - * <code>repeated uint32 lockedPointList = 6;</code> - * @param index The index to set the value at. - * @param value The lockedPointList to set. - * @return This builder for chaining. - */ - public Builder setLockedPointList( - int index, int value) { - ensureLockedPointListIsMutable(); - lockedPointList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 lockedPointList = 6;</code> - * @param value The lockedPointList to add. - * @return This builder for chaining. - */ - public Builder addLockedPointList(int value) { - ensureLockedPointListIsMutable(); - lockedPointList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 lockedPointList = 6;</code> - * @param values The lockedPointList to add. - * @return This builder for chaining. - */ - public Builder addAllLockedPointList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureLockedPointListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, lockedPointList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 lockedPointList = 6;</code> - * @return This builder for chaining. - */ - public Builder clearLockedPointList() { - lockedPointList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList toBeExploreDungeonEntryList_ = emptyIntList(); - private void ensureToBeExploreDungeonEntryListIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - toBeExploreDungeonEntryList_ = mutableCopy(toBeExploreDungeonEntryList_); - bitField0_ |= 0x00000008; - } - } - /** - * <code>repeated uint32 toBeExploreDungeonEntryList = 7;</code> - * @return A list containing the toBeExploreDungeonEntryList. - */ - public java.util.List<java.lang.Integer> - getToBeExploreDungeonEntryListList() { - return ((bitField0_ & 0x00000008) != 0) ? - java.util.Collections.unmodifiableList(toBeExploreDungeonEntryList_) : toBeExploreDungeonEntryList_; - } - /** - * <code>repeated uint32 toBeExploreDungeonEntryList = 7;</code> - * @return The count of toBeExploreDungeonEntryList. - */ - public int getToBeExploreDungeonEntryListCount() { - return toBeExploreDungeonEntryList_.size(); - } - /** - * <code>repeated uint32 toBeExploreDungeonEntryList = 7;</code> - * @param index The index of the element to return. - * @return The toBeExploreDungeonEntryList at the given index. - */ - public int getToBeExploreDungeonEntryList(int index) { - return toBeExploreDungeonEntryList_.getInt(index); - } - /** - * <code>repeated uint32 toBeExploreDungeonEntryList = 7;</code> - * @param index The index to set the value at. - * @param value The toBeExploreDungeonEntryList to set. - * @return This builder for chaining. - */ - public Builder setToBeExploreDungeonEntryList( - int index, int value) { - ensureToBeExploreDungeonEntryListIsMutable(); - toBeExploreDungeonEntryList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 toBeExploreDungeonEntryList = 7;</code> - * @param value The toBeExploreDungeonEntryList to add. - * @return This builder for chaining. - */ - public Builder addToBeExploreDungeonEntryList(int value) { - ensureToBeExploreDungeonEntryListIsMutable(); - toBeExploreDungeonEntryList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 toBeExploreDungeonEntryList = 7;</code> - * @param values The toBeExploreDungeonEntryList to add. - * @return This builder for chaining. - */ - public Builder addAllToBeExploreDungeonEntryList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureToBeExploreDungeonEntryListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, toBeExploreDungeonEntryList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 toBeExploreDungeonEntryList = 7;</code> - * @return This builder for chaining. - */ - public Builder clearToBeExploreDungeonEntryList() { - toBeExploreDungeonEntryList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList notExploredDungeonEntryList_ = emptyIntList(); - private void ensureNotExploredDungeonEntryListIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - notExploredDungeonEntryList_ = mutableCopy(notExploredDungeonEntryList_); - bitField0_ |= 0x00000010; - } - } - /** - * <code>repeated uint32 notExploredDungeonEntryList = 8;</code> - * @return A list containing the notExploredDungeonEntryList. - */ - public java.util.List<java.lang.Integer> - getNotExploredDungeonEntryListList() { - return ((bitField0_ & 0x00000010) != 0) ? - java.util.Collections.unmodifiableList(notExploredDungeonEntryList_) : notExploredDungeonEntryList_; - } - /** - * <code>repeated uint32 notExploredDungeonEntryList = 8;</code> - * @return The count of notExploredDungeonEntryList. - */ - public int getNotExploredDungeonEntryListCount() { - return notExploredDungeonEntryList_.size(); - } - /** - * <code>repeated uint32 notExploredDungeonEntryList = 8;</code> - * @param index The index of the element to return. - * @return The notExploredDungeonEntryList at the given index. - */ - public int getNotExploredDungeonEntryList(int index) { - return notExploredDungeonEntryList_.getInt(index); - } - /** - * <code>repeated uint32 notExploredDungeonEntryList = 8;</code> - * @param index The index to set the value at. - * @param value The notExploredDungeonEntryList to set. - * @return This builder for chaining. - */ - public Builder setNotExploredDungeonEntryList( - int index, int value) { - ensureNotExploredDungeonEntryListIsMutable(); - notExploredDungeonEntryList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 notExploredDungeonEntryList = 8;</code> - * @param value The notExploredDungeonEntryList to add. - * @return This builder for chaining. - */ - public Builder addNotExploredDungeonEntryList(int value) { - ensureNotExploredDungeonEntryListIsMutable(); - notExploredDungeonEntryList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 notExploredDungeonEntryList = 8;</code> - * @param values The notExploredDungeonEntryList to add. - * @return This builder for chaining. - */ - public Builder addAllNotExploredDungeonEntryList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureNotExploredDungeonEntryListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notExploredDungeonEntryList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 notExploredDungeonEntryList = 8;</code> - * @return This builder for chaining. - */ - public Builder clearNotExploredDungeonEntryList() { - notExploredDungeonEntryList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList groupUnlimitPointList_ = emptyIntList(); - private void ensureGroupUnlimitPointListIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - groupUnlimitPointList_ = mutableCopy(groupUnlimitPointList_); - bitField0_ |= 0x00000020; - } - } - /** - * <code>repeated uint32 groupUnlimitPointList = 9;</code> - * @return A list containing the groupUnlimitPointList. - */ - public java.util.List<java.lang.Integer> - getGroupUnlimitPointListList() { - return ((bitField0_ & 0x00000020) != 0) ? - java.util.Collections.unmodifiableList(groupUnlimitPointList_) : groupUnlimitPointList_; - } - /** - * <code>repeated uint32 groupUnlimitPointList = 9;</code> - * @return The count of groupUnlimitPointList. - */ - public int getGroupUnlimitPointListCount() { - return groupUnlimitPointList_.size(); - } - /** - * <code>repeated uint32 groupUnlimitPointList = 9;</code> - * @param index The index of the element to return. - * @return The groupUnlimitPointList at the given index. - */ - public int getGroupUnlimitPointList(int index) { - return groupUnlimitPointList_.getInt(index); - } - /** - * <code>repeated uint32 groupUnlimitPointList = 9;</code> - * @param index The index to set the value at. - * @param value The groupUnlimitPointList to set. - * @return This builder for chaining. - */ - public Builder setGroupUnlimitPointList( - int index, int value) { - ensureGroupUnlimitPointListIsMutable(); - groupUnlimitPointList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 groupUnlimitPointList = 9;</code> - * @param value The groupUnlimitPointList to add. - * @return This builder for chaining. - */ - public Builder addGroupUnlimitPointList(int value) { - ensureGroupUnlimitPointListIsMutable(); - groupUnlimitPointList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 groupUnlimitPointList = 9;</code> - * @param values The groupUnlimitPointList to add. - * @return This builder for chaining. - */ - public Builder addAllGroupUnlimitPointList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureGroupUnlimitPointListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, groupUnlimitPointList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 groupUnlimitPointList = 9;</code> - * @return This builder for chaining. - */ - public Builder clearGroupUnlimitPointList() { - groupUnlimitPointList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList notInteractDungeonEntryList_ = emptyIntList(); - private void ensureNotInteractDungeonEntryListIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - notInteractDungeonEntryList_ = mutableCopy(notInteractDungeonEntryList_); - bitField0_ |= 0x00000040; - } - } - /** - * <code>repeated uint32 notInteractDungeonEntryList = 10;</code> - * @return A list containing the notInteractDungeonEntryList. - */ - public java.util.List<java.lang.Integer> - getNotInteractDungeonEntryListList() { - return ((bitField0_ & 0x00000040) != 0) ? - java.util.Collections.unmodifiableList(notInteractDungeonEntryList_) : notInteractDungeonEntryList_; - } - /** - * <code>repeated uint32 notInteractDungeonEntryList = 10;</code> - * @return The count of notInteractDungeonEntryList. - */ - public int getNotInteractDungeonEntryListCount() { - return notInteractDungeonEntryList_.size(); - } - /** - * <code>repeated uint32 notInteractDungeonEntryList = 10;</code> - * @param index The index of the element to return. - * @return The notInteractDungeonEntryList at the given index. - */ - public int getNotInteractDungeonEntryList(int index) { - return notInteractDungeonEntryList_.getInt(index); - } - /** - * <code>repeated uint32 notInteractDungeonEntryList = 10;</code> - * @param index The index to set the value at. - * @param value The notInteractDungeonEntryList to set. - * @return This builder for chaining. - */ - public Builder setNotInteractDungeonEntryList( - int index, int value) { - ensureNotInteractDungeonEntryListIsMutable(); - notInteractDungeonEntryList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 notInteractDungeonEntryList = 10;</code> - * @param value The notInteractDungeonEntryList to add. - * @return This builder for chaining. - */ - public Builder addNotInteractDungeonEntryList(int value) { - ensureNotInteractDungeonEntryListIsMutable(); - notInteractDungeonEntryList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 notInteractDungeonEntryList = 10;</code> - * @param values The notInteractDungeonEntryList to add. - * @return This builder for chaining. - */ - public Builder addAllNotInteractDungeonEntryList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureNotInteractDungeonEntryListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notInteractDungeonEntryList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 notInteractDungeonEntryList = 10;</code> - * @return This builder for chaining. - */ - public Builder clearNotInteractDungeonEntryList() { - notInteractDungeonEntryList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GetScenePointRsp) - } - - // @@protoc_insertion_point(class_scope:GetScenePointRsp) - private static final emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp(); - } - - public static emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GetScenePointRsp> - PARSER = new com.google.protobuf.AbstractParser<GetScenePointRsp>() { - @java.lang.Override - public GetScenePointRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScenePointRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GetScenePointRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GetScenePointRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GetScenePointRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GetScenePointRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026GetScenePointRsp.proto\"\241\002\n\020GetScenePoi" + - "ntRsp\022\017\n\007retcode\030\001 \001(\005\022\017\n\007sceneId\030\002 \001(\r\022" + - "\031\n\021unlockedPointList\030\003 \003(\r\022\021\n\tbelongUid\030" + - "\004 \001(\r\022\026\n\016unlockAreaList\030\005 \003(\r\022\027\n\017lockedP" + - "ointList\030\006 \003(\r\022#\n\033toBeExploreDungeonEntr" + - "yList\030\007 \003(\r\022#\n\033notExploredDungeonEntryLi" + - "st\030\010 \003(\r\022\035\n\025groupUnlimitPointList\030\t \003(\r\022" + - "#\n\033notInteractDungeonEntryList\030\n \003(\rB\033\n\031" + - "emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_GetScenePointRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GetScenePointRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GetScenePointRsp_descriptor, - new java.lang.String[] { "Retcode", "SceneId", "UnlockedPointList", "BelongUid", "UnlockAreaList", "LockedPointList", "ToBeExploreDungeonEntryList", "NotExploredDungeonEntryList", "GroupUnlimitPointList", "NotInteractDungeonEntryList", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GetShopReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GetShopReqOuterClass.java deleted file mode 100644 index e2c10d573..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GetShopReqOuterClass.java +++ /dev/null @@ -1,536 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GetShopReq.proto - -package emu.grasscutter.net.proto; - -public final class GetShopReqOuterClass { - private GetShopReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GetShopReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:GetShopReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 shopType = 1;</code> - * @return The shopType. - */ - int getShopType(); - } - /** - * Protobuf type {@code GetShopReq} - */ - public static final class GetShopReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GetShopReq) - GetShopReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetShopReq.newBuilder() to construct. - private GetShopReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GetShopReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetShopReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetShopReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - shopType_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetShopReqOuterClass.internal_static_GetShopReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetShopReqOuterClass.internal_static_GetShopReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq.class, emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq.Builder.class); - } - - public static final int SHOPTYPE_FIELD_NUMBER = 1; - private int shopType_; - /** - * <code>uint32 shopType = 1;</code> - * @return The shopType. - */ - @java.lang.Override - public int getShopType() { - return shopType_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (shopType_ != 0) { - output.writeUInt32(1, shopType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (shopType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, shopType_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq other = (emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq) obj; - - if (getShopType() - != other.getShopType()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SHOPTYPE_FIELD_NUMBER; - hash = (53 * hash) + getShopType(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GetShopReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GetShopReq) - emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetShopReqOuterClass.internal_static_GetShopReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetShopReqOuterClass.internal_static_GetShopReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq.class, emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - shopType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GetShopReqOuterClass.internal_static_GetShopReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq build() { - emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq buildPartial() { - emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq result = new emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq(this); - result.shopType_ = shopType_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq) { - return mergeFrom((emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq other) { - if (other == emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq.getDefaultInstance()) return this; - if (other.getShopType() != 0) { - setShopType(other.getShopType()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int shopType_ ; - /** - * <code>uint32 shopType = 1;</code> - * @return The shopType. - */ - @java.lang.Override - public int getShopType() { - return shopType_; - } - /** - * <code>uint32 shopType = 1;</code> - * @param value The shopType to set. - * @return This builder for chaining. - */ - public Builder setShopType(int value) { - - shopType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 shopType = 1;</code> - * @return This builder for chaining. - */ - public Builder clearShopType() { - - shopType_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GetShopReq) - } - - // @@protoc_insertion_point(class_scope:GetShopReq) - private static final emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq(); - } - - public static emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GetShopReq> - PARSER = new com.google.protobuf.AbstractParser<GetShopReq>() { - @java.lang.Override - public GetShopReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetShopReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GetShopReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GetShopReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GetShopReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GetShopReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020GetShopReq.proto\"\036\n\nGetShopReq\022\020\n\010shop" + - "Type\030\001 \001(\rB\033\n\031emu.grasscutter.net.protob" + - "\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_GetShopReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GetShopReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GetShopReq_descriptor, - new java.lang.String[] { "ShopType", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GetShopRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GetShopRspOuterClass.java deleted file mode 100644 index 5a2a030d2..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GetShopRspOuterClass.java +++ /dev/null @@ -1,741 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GetShopRsp.proto - -package emu.grasscutter.net.proto; - -public final class GetShopRspOuterClass { - private GetShopRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GetShopRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:GetShopRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>.Shop shop = 2;</code> - * @return Whether the shop field is set. - */ - boolean hasShop(); - /** - * <code>.Shop shop = 2;</code> - * @return The shop. - */ - emu.grasscutter.net.proto.ShopOuterClass.Shop getShop(); - /** - * <code>.Shop shop = 2;</code> - */ - emu.grasscutter.net.proto.ShopOuterClass.ShopOrBuilder getShopOrBuilder(); - } - /** - * Protobuf type {@code GetShopRsp} - */ - public static final class GetShopRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GetShopRsp) - GetShopRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetShopRsp.newBuilder() to construct. - private GetShopRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GetShopRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetShopRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetShopRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 18: { - emu.grasscutter.net.proto.ShopOuterClass.Shop.Builder subBuilder = null; - if (shop_ != null) { - subBuilder = shop_.toBuilder(); - } - shop_ = input.readMessage(emu.grasscutter.net.proto.ShopOuterClass.Shop.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(shop_); - shop_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetShopRspOuterClass.internal_static_GetShopRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetShopRspOuterClass.internal_static_GetShopRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp.class, emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int SHOP_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.ShopOuterClass.Shop shop_; - /** - * <code>.Shop shop = 2;</code> - * @return Whether the shop field is set. - */ - @java.lang.Override - public boolean hasShop() { - return shop_ != null; - } - /** - * <code>.Shop shop = 2;</code> - * @return The shop. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ShopOuterClass.Shop getShop() { - return shop_ == null ? emu.grasscutter.net.proto.ShopOuterClass.Shop.getDefaultInstance() : shop_; - } - /** - * <code>.Shop shop = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ShopOuterClass.ShopOrBuilder getShopOrBuilder() { - return getShop(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (shop_ != null) { - output.writeMessage(2, getShop()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (shop_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getShop()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp other = (emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (hasShop() != other.hasShop()) return false; - if (hasShop()) { - if (!getShop() - .equals(other.getShop())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - if (hasShop()) { - hash = (37 * hash) + SHOP_FIELD_NUMBER; - hash = (53 * hash) + getShop().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GetShopRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GetShopRsp) - emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetShopRspOuterClass.internal_static_GetShopRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetShopRspOuterClass.internal_static_GetShopRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp.class, emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - if (shopBuilder_ == null) { - shop_ = null; - } else { - shop_ = null; - shopBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GetShopRspOuterClass.internal_static_GetShopRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp build() { - emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp buildPartial() { - emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp result = new emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp(this); - result.retcode_ = retcode_; - if (shopBuilder_ == null) { - result.shop_ = shop_; - } else { - result.shop_ = shopBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp) { - return mergeFrom((emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp other) { - if (other == emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.hasShop()) { - mergeShop(other.getShop()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.ShopOuterClass.Shop shop_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ShopOuterClass.Shop, emu.grasscutter.net.proto.ShopOuterClass.Shop.Builder, emu.grasscutter.net.proto.ShopOuterClass.ShopOrBuilder> shopBuilder_; - /** - * <code>.Shop shop = 2;</code> - * @return Whether the shop field is set. - */ - public boolean hasShop() { - return shopBuilder_ != null || shop_ != null; - } - /** - * <code>.Shop shop = 2;</code> - * @return The shop. - */ - public emu.grasscutter.net.proto.ShopOuterClass.Shop getShop() { - if (shopBuilder_ == null) { - return shop_ == null ? emu.grasscutter.net.proto.ShopOuterClass.Shop.getDefaultInstance() : shop_; - } else { - return shopBuilder_.getMessage(); - } - } - /** - * <code>.Shop shop = 2;</code> - */ - public Builder setShop(emu.grasscutter.net.proto.ShopOuterClass.Shop value) { - if (shopBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - shop_ = value; - onChanged(); - } else { - shopBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Shop shop = 2;</code> - */ - public Builder setShop( - emu.grasscutter.net.proto.ShopOuterClass.Shop.Builder builderForValue) { - if (shopBuilder_ == null) { - shop_ = builderForValue.build(); - onChanged(); - } else { - shopBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Shop shop = 2;</code> - */ - public Builder mergeShop(emu.grasscutter.net.proto.ShopOuterClass.Shop value) { - if (shopBuilder_ == null) { - if (shop_ != null) { - shop_ = - emu.grasscutter.net.proto.ShopOuterClass.Shop.newBuilder(shop_).mergeFrom(value).buildPartial(); - } else { - shop_ = value; - } - onChanged(); - } else { - shopBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Shop shop = 2;</code> - */ - public Builder clearShop() { - if (shopBuilder_ == null) { - shop_ = null; - onChanged(); - } else { - shop_ = null; - shopBuilder_ = null; - } - - return this; - } - /** - * <code>.Shop shop = 2;</code> - */ - public emu.grasscutter.net.proto.ShopOuterClass.Shop.Builder getShopBuilder() { - - onChanged(); - return getShopFieldBuilder().getBuilder(); - } - /** - * <code>.Shop shop = 2;</code> - */ - public emu.grasscutter.net.proto.ShopOuterClass.ShopOrBuilder getShopOrBuilder() { - if (shopBuilder_ != null) { - return shopBuilder_.getMessageOrBuilder(); - } else { - return shop_ == null ? - emu.grasscutter.net.proto.ShopOuterClass.Shop.getDefaultInstance() : shop_; - } - } - /** - * <code>.Shop shop = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ShopOuterClass.Shop, emu.grasscutter.net.proto.ShopOuterClass.Shop.Builder, emu.grasscutter.net.proto.ShopOuterClass.ShopOrBuilder> - getShopFieldBuilder() { - if (shopBuilder_ == null) { - shopBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ShopOuterClass.Shop, emu.grasscutter.net.proto.ShopOuterClass.Shop.Builder, emu.grasscutter.net.proto.ShopOuterClass.ShopOrBuilder>( - getShop(), - getParentForChildren(), - isClean()); - shop_ = null; - } - return shopBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GetShopRsp) - } - - // @@protoc_insertion_point(class_scope:GetShopRsp) - private static final emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp(); - } - - public static emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GetShopRsp> - PARSER = new com.google.protobuf.AbstractParser<GetShopRsp>() { - @java.lang.Override - public GetShopRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetShopRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GetShopRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GetShopRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GetShopRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GetShopRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020GetShopRsp.proto\032\nShop.proto\"2\n\nGetSho" + - "pRsp\022\017\n\007retcode\030\001 \001(\005\022\023\n\004shop\030\002 \001(\0132\005.Sh" + - "opB\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ShopOuterClass.getDescriptor(), - }); - internal_static_GetShopRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GetShopRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GetShopRsp_descriptor, - new java.lang.String[] { "Retcode", "Shop", }); - emu.grasscutter.net.proto.ShopOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GetShopmallDataRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GetShopmallDataRspOuterClass.java deleted file mode 100644 index 94afcdbd5..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GetShopmallDataRspOuterClass.java +++ /dev/null @@ -1,734 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GetShopmallDataRsp.proto - -package emu.grasscutter.net.proto; - -public final class GetShopmallDataRspOuterClass { - private GetShopmallDataRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GetShopmallDataRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:GetShopmallDataRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>repeated uint32 shopTypeList = 2;</code> - * @return A list containing the shopTypeList. - */ - java.util.List<java.lang.Integer> getShopTypeListList(); - /** - * <code>repeated uint32 shopTypeList = 2;</code> - * @return The count of shopTypeList. - */ - int getShopTypeListCount(); - /** - * <code>repeated uint32 shopTypeList = 2;</code> - * @param index The index of the element to return. - * @return The shopTypeList at the given index. - */ - int getShopTypeList(int index); - } - /** - * Protobuf type {@code GetShopmallDataRsp} - */ - public static final class GetShopmallDataRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GetShopmallDataRsp) - GetShopmallDataRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetShopmallDataRsp.newBuilder() to construct. - private GetShopmallDataRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GetShopmallDataRsp() { - shopTypeList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetShopmallDataRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetShopmallDataRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - shopTypeList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - shopTypeList_.addInt(input.readUInt32()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - shopTypeList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - shopTypeList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - shopTypeList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.internal_static_GetShopmallDataRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.internal_static_GetShopmallDataRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp.class, emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int SHOPTYPELIST_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.IntList shopTypeList_; - /** - * <code>repeated uint32 shopTypeList = 2;</code> - * @return A list containing the shopTypeList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getShopTypeListList() { - return shopTypeList_; - } - /** - * <code>repeated uint32 shopTypeList = 2;</code> - * @return The count of shopTypeList. - */ - public int getShopTypeListCount() { - return shopTypeList_.size(); - } - /** - * <code>repeated uint32 shopTypeList = 2;</code> - * @param index The index of the element to return. - * @return The shopTypeList at the given index. - */ - public int getShopTypeList(int index) { - return shopTypeList_.getInt(index); - } - private int shopTypeListMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (getShopTypeListList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(shopTypeListMemoizedSerializedSize); - } - for (int i = 0; i < shopTypeList_.size(); i++) { - output.writeUInt32NoTag(shopTypeList_.getInt(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - { - int dataSize = 0; - for (int i = 0; i < shopTypeList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(shopTypeList_.getInt(i)); - } - size += dataSize; - if (!getShopTypeListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - shopTypeListMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp other = (emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (!getShopTypeListList() - .equals(other.getShopTypeListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - if (getShopTypeListCount() > 0) { - hash = (37 * hash) + SHOPTYPELIST_FIELD_NUMBER; - hash = (53 * hash) + getShopTypeListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GetShopmallDataRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GetShopmallDataRsp) - emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.internal_static_GetShopmallDataRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.internal_static_GetShopmallDataRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp.class, emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - shopTypeList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.internal_static_GetShopmallDataRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp build() { - emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp buildPartial() { - emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp result = new emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp(this); - int from_bitField0_ = bitField0_; - result.retcode_ = retcode_; - if (((bitField0_ & 0x00000001) != 0)) { - shopTypeList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.shopTypeList_ = shopTypeList_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp) { - return mergeFrom((emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp other) { - if (other == emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (!other.shopTypeList_.isEmpty()) { - if (shopTypeList_.isEmpty()) { - shopTypeList_ = other.shopTypeList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureShopTypeListIsMutable(); - shopTypeList_.addAll(other.shopTypeList_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList shopTypeList_ = emptyIntList(); - private void ensureShopTypeListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - shopTypeList_ = mutableCopy(shopTypeList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 shopTypeList = 2;</code> - * @return A list containing the shopTypeList. - */ - public java.util.List<java.lang.Integer> - getShopTypeListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(shopTypeList_) : shopTypeList_; - } - /** - * <code>repeated uint32 shopTypeList = 2;</code> - * @return The count of shopTypeList. - */ - public int getShopTypeListCount() { - return shopTypeList_.size(); - } - /** - * <code>repeated uint32 shopTypeList = 2;</code> - * @param index The index of the element to return. - * @return The shopTypeList at the given index. - */ - public int getShopTypeList(int index) { - return shopTypeList_.getInt(index); - } - /** - * <code>repeated uint32 shopTypeList = 2;</code> - * @param index The index to set the value at. - * @param value The shopTypeList to set. - * @return This builder for chaining. - */ - public Builder setShopTypeList( - int index, int value) { - ensureShopTypeListIsMutable(); - shopTypeList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 shopTypeList = 2;</code> - * @param value The shopTypeList to add. - * @return This builder for chaining. - */ - public Builder addShopTypeList(int value) { - ensureShopTypeListIsMutable(); - shopTypeList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 shopTypeList = 2;</code> - * @param values The shopTypeList to add. - * @return This builder for chaining. - */ - public Builder addAllShopTypeList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureShopTypeListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, shopTypeList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 shopTypeList = 2;</code> - * @return This builder for chaining. - */ - public Builder clearShopTypeList() { - shopTypeList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GetShopmallDataRsp) - } - - // @@protoc_insertion_point(class_scope:GetShopmallDataRsp) - private static final emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp(); - } - - public static emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GetShopmallDataRsp> - PARSER = new com.google.protobuf.AbstractParser<GetShopmallDataRsp>() { - @java.lang.Override - public GetShopmallDataRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetShopmallDataRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GetShopmallDataRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GetShopmallDataRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GetShopmallDataRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GetShopmallDataRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030GetShopmallDataRsp.proto\";\n\022GetShopmal" + - "lDataRsp\022\017\n\007retcode\030\001 \001(\005\022\024\n\014shopTypeLis" + - "t\030\002 \003(\rB\033\n\031emu.grasscutter.net.protob\006pr" + - "oto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_GetShopmallDataRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GetShopmallDataRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GetShopmallDataRsp_descriptor, - new java.lang.String[] { "Retcode", "ShopTypeList", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/GetWorldMpInfoRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/GetWorldMpInfoRspOuterClass.java deleted file mode 100644 index e9c70443f..000000000 --- a/src/main/java/emu/grasscutter/net/proto/GetWorldMpInfoRspOuterClass.java +++ /dev/null @@ -1,678 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GetWorldMpInfoRsp.proto - -package emu.grasscutter.net.proto; - -public final class GetWorldMpInfoRspOuterClass { - private GetWorldMpInfoRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GetWorldMpInfoRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:GetWorldMpInfoRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>bool isInMpMode = 2;</code> - * @return The isInMpMode. - */ - boolean getIsInMpMode(); - - /** - * <code>uint32 quitMpValidTime = 3;</code> - * @return The quitMpValidTime. - */ - int getQuitMpValidTime(); - } - /** - * Protobuf type {@code GetWorldMpInfoRsp} - */ - public static final class GetWorldMpInfoRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GetWorldMpInfoRsp) - GetWorldMpInfoRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetWorldMpInfoRsp.newBuilder() to construct. - private GetWorldMpInfoRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private GetWorldMpInfoRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetWorldMpInfoRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetWorldMpInfoRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - isInMpMode_ = input.readBool(); - break; - } - case 24: { - - quitMpValidTime_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.internal_static_GetWorldMpInfoRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.internal_static_GetWorldMpInfoRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp.class, emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int ISINMPMODE_FIELD_NUMBER = 2; - private boolean isInMpMode_; - /** - * <code>bool isInMpMode = 2;</code> - * @return The isInMpMode. - */ - @java.lang.Override - public boolean getIsInMpMode() { - return isInMpMode_; - } - - public static final int QUITMPVALIDTIME_FIELD_NUMBER = 3; - private int quitMpValidTime_; - /** - * <code>uint32 quitMpValidTime = 3;</code> - * @return The quitMpValidTime. - */ - @java.lang.Override - public int getQuitMpValidTime() { - return quitMpValidTime_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (isInMpMode_ != false) { - output.writeBool(2, isInMpMode_); - } - if (quitMpValidTime_ != 0) { - output.writeUInt32(3, quitMpValidTime_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (isInMpMode_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isInMpMode_); - } - if (quitMpValidTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, quitMpValidTime_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp other = (emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getIsInMpMode() - != other.getIsInMpMode()) return false; - if (getQuitMpValidTime() - != other.getQuitMpValidTime()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + ISINMPMODE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsInMpMode()); - hash = (37 * hash) + QUITMPVALIDTIME_FIELD_NUMBER; - hash = (53 * hash) + getQuitMpValidTime(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GetWorldMpInfoRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:GetWorldMpInfoRsp) - emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.internal_static_GetWorldMpInfoRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.internal_static_GetWorldMpInfoRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp.class, emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - isInMpMode_ = false; - - quitMpValidTime_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.internal_static_GetWorldMpInfoRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp build() { - emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp buildPartial() { - emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp result = new emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp(this); - result.retcode_ = retcode_; - result.isInMpMode_ = isInMpMode_; - result.quitMpValidTime_ = quitMpValidTime_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp) { - return mergeFrom((emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp other) { - if (other == emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getIsInMpMode() != false) { - setIsInMpMode(other.getIsInMpMode()); - } - if (other.getQuitMpValidTime() != 0) { - setQuitMpValidTime(other.getQuitMpValidTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private boolean isInMpMode_ ; - /** - * <code>bool isInMpMode = 2;</code> - * @return The isInMpMode. - */ - @java.lang.Override - public boolean getIsInMpMode() { - return isInMpMode_; - } - /** - * <code>bool isInMpMode = 2;</code> - * @param value The isInMpMode to set. - * @return This builder for chaining. - */ - public Builder setIsInMpMode(boolean value) { - - isInMpMode_ = value; - onChanged(); - return this; - } - /** - * <code>bool isInMpMode = 2;</code> - * @return This builder for chaining. - */ - public Builder clearIsInMpMode() { - - isInMpMode_ = false; - onChanged(); - return this; - } - - private int quitMpValidTime_ ; - /** - * <code>uint32 quitMpValidTime = 3;</code> - * @return The quitMpValidTime. - */ - @java.lang.Override - public int getQuitMpValidTime() { - return quitMpValidTime_; - } - /** - * <code>uint32 quitMpValidTime = 3;</code> - * @param value The quitMpValidTime to set. - * @return This builder for chaining. - */ - public Builder setQuitMpValidTime(int value) { - - quitMpValidTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 quitMpValidTime = 3;</code> - * @return This builder for chaining. - */ - public Builder clearQuitMpValidTime() { - - quitMpValidTime_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GetWorldMpInfoRsp) - } - - // @@protoc_insertion_point(class_scope:GetWorldMpInfoRsp) - private static final emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp(); - } - - public static emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<GetWorldMpInfoRsp> - PARSER = new com.google.protobuf.AbstractParser<GetWorldMpInfoRsp>() { - @java.lang.Override - public GetWorldMpInfoRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetWorldMpInfoRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<GetWorldMpInfoRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<GetWorldMpInfoRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GetWorldMpInfoRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GetWorldMpInfoRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027GetWorldMpInfoRsp.proto\"Q\n\021GetWorldMpI" + - "nfoRsp\022\017\n\007retcode\030\001 \001(\005\022\022\n\nisInMpMode\030\002 " + - "\001(\010\022\027\n\017quitMpValidTime\030\003 \001(\rB\033\n\031emu.gras" + - "scutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_GetWorldMpInfoRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GetWorldMpInfoRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GetWorldMpInfoRsp_descriptor, - new java.lang.String[] { "Retcode", "IsInMpMode", "QuitMpValidTime", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/H5ActivityIdsNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/H5ActivityIdsNotifyOuterClass.java deleted file mode 100644 index fbdefa2dc..000000000 --- a/src/main/java/emu/grasscutter/net/proto/H5ActivityIdsNotifyOuterClass.java +++ /dev/null @@ -1,800 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: H5ActivityIdsNotify.proto - -package emu.grasscutter.net.proto; - -public final class H5ActivityIdsNotifyOuterClass { - private H5ActivityIdsNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface H5ActivityIdsNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:H5ActivityIdsNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>map<uint32, uint32> h5ActivityMap = 1;</code> - */ - int getH5ActivityMapCount(); - /** - * <code>map<uint32, uint32> h5ActivityMap = 1;</code> - */ - boolean containsH5ActivityMap( - int key); - /** - * Use {@link #getH5ActivityMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Integer> - getH5ActivityMap(); - /** - * <code>map<uint32, uint32> h5ActivityMap = 1;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Integer> - getH5ActivityMapMap(); - /** - * <code>map<uint32, uint32> h5ActivityMap = 1;</code> - */ - - int getH5ActivityMapOrDefault( - int key, - int defaultValue); - /** - * <code>map<uint32, uint32> h5ActivityMap = 1;</code> - */ - - int getH5ActivityMapOrThrow( - int key); - } - /** - * Protobuf type {@code H5ActivityIdsNotify} - */ - public static final class H5ActivityIdsNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:H5ActivityIdsNotify) - H5ActivityIdsNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use H5ActivityIdsNotify.newBuilder() to construct. - private H5ActivityIdsNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private H5ActivityIdsNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new H5ActivityIdsNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private H5ActivityIdsNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - h5ActivityMap_ = com.google.protobuf.MapField.newMapField( - H5ActivityMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - h5ActivityMap__ = input.readMessage( - H5ActivityMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - h5ActivityMap_.getMutableMap().put( - h5ActivityMap__.getKey(), h5ActivityMap__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.internal_static_H5ActivityIdsNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetH5ActivityMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.internal_static_H5ActivityIdsNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify.class, emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify.Builder.class); - } - - public static final int H5ACTIVITYMAP_FIELD_NUMBER = 1; - private static final class H5ActivityMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Integer>newDefaultInstance( - emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.internal_static_H5ActivityIdsNotify_H5ActivityMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> h5ActivityMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetH5ActivityMap() { - if (h5ActivityMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - H5ActivityMapDefaultEntryHolder.defaultEntry); - } - return h5ActivityMap_; - } - - public int getH5ActivityMapCount() { - return internalGetH5ActivityMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> h5ActivityMap = 1;</code> - */ - - @java.lang.Override - public boolean containsH5ActivityMap( - int key) { - - return internalGetH5ActivityMap().getMap().containsKey(key); - } - /** - * Use {@link #getH5ActivityMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getH5ActivityMap() { - return getH5ActivityMapMap(); - } - /** - * <code>map<uint32, uint32> h5ActivityMap = 1;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getH5ActivityMapMap() { - return internalGetH5ActivityMap().getMap(); - } - /** - * <code>map<uint32, uint32> h5ActivityMap = 1;</code> - */ - @java.lang.Override - - public int getH5ActivityMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetH5ActivityMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> h5ActivityMap = 1;</code> - */ - @java.lang.Override - - public int getH5ActivityMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetH5ActivityMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetH5ActivityMap(), - H5ActivityMapDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry - : internalGetH5ActivityMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - h5ActivityMap__ = H5ActivityMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, h5ActivityMap__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify other = (emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify) obj; - - if (!internalGetH5ActivityMap().equals( - other.internalGetH5ActivityMap())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetH5ActivityMap().getMap().isEmpty()) { - hash = (37 * hash) + H5ACTIVITYMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetH5ActivityMap().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code H5ActivityIdsNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:H5ActivityIdsNotify) - emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.internal_static_H5ActivityIdsNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetH5ActivityMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableH5ActivityMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.internal_static_H5ActivityIdsNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify.class, emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableH5ActivityMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.internal_static_H5ActivityIdsNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify build() { - emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify buildPartial() { - emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify result = new emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify(this); - int from_bitField0_ = bitField0_; - result.h5ActivityMap_ = internalGetH5ActivityMap(); - result.h5ActivityMap_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify) { - return mergeFrom((emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify other) { - if (other == emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify.getDefaultInstance()) return this; - internalGetMutableH5ActivityMap().mergeFrom( - other.internalGetH5ActivityMap()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> h5ActivityMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetH5ActivityMap() { - if (h5ActivityMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - H5ActivityMapDefaultEntryHolder.defaultEntry); - } - return h5ActivityMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetMutableH5ActivityMap() { - onChanged();; - if (h5ActivityMap_ == null) { - h5ActivityMap_ = com.google.protobuf.MapField.newMapField( - H5ActivityMapDefaultEntryHolder.defaultEntry); - } - if (!h5ActivityMap_.isMutable()) { - h5ActivityMap_ = h5ActivityMap_.copy(); - } - return h5ActivityMap_; - } - - public int getH5ActivityMapCount() { - return internalGetH5ActivityMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> h5ActivityMap = 1;</code> - */ - - @java.lang.Override - public boolean containsH5ActivityMap( - int key) { - - return internalGetH5ActivityMap().getMap().containsKey(key); - } - /** - * Use {@link #getH5ActivityMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getH5ActivityMap() { - return getH5ActivityMapMap(); - } - /** - * <code>map<uint32, uint32> h5ActivityMap = 1;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getH5ActivityMapMap() { - return internalGetH5ActivityMap().getMap(); - } - /** - * <code>map<uint32, uint32> h5ActivityMap = 1;</code> - */ - @java.lang.Override - - public int getH5ActivityMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetH5ActivityMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> h5ActivityMap = 1;</code> - */ - @java.lang.Override - - public int getH5ActivityMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetH5ActivityMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearH5ActivityMap() { - internalGetMutableH5ActivityMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, uint32> h5ActivityMap = 1;</code> - */ - - public Builder removeH5ActivityMap( - int key) { - - internalGetMutableH5ActivityMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> - getMutableH5ActivityMap() { - return internalGetMutableH5ActivityMap().getMutableMap(); - } - /** - * <code>map<uint32, uint32> h5ActivityMap = 1;</code> - */ - public Builder putH5ActivityMap( - int key, - int value) { - - - internalGetMutableH5ActivityMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, uint32> h5ActivityMap = 1;</code> - */ - - public Builder putAllH5ActivityMap( - java.util.Map<java.lang.Integer, java.lang.Integer> values) { - internalGetMutableH5ActivityMap().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:H5ActivityIdsNotify) - } - - // @@protoc_insertion_point(class_scope:H5ActivityIdsNotify) - private static final emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify(); - } - - public static emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<H5ActivityIdsNotify> - PARSER = new com.google.protobuf.AbstractParser<H5ActivityIdsNotify>() { - @java.lang.Override - public H5ActivityIdsNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new H5ActivityIdsNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<H5ActivityIdsNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<H5ActivityIdsNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_H5ActivityIdsNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_H5ActivityIdsNotify_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_H5ActivityIdsNotify_H5ActivityMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_H5ActivityIdsNotify_H5ActivityMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031H5ActivityIdsNotify.proto\"\213\001\n\023H5Activi" + - "tyIdsNotify\022>\n\rh5ActivityMap\030\001 \003(\0132\'.H5A" + - "ctivityIdsNotify.H5ActivityMapEntry\0324\n\022H" + - "5ActivityMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030" + - "\002 \001(\r:\0028\001B\033\n\031emu.grasscutter.net.protob\006" + - "proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_H5ActivityIdsNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_H5ActivityIdsNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_H5ActivityIdsNotify_descriptor, - new java.lang.String[] { "H5ActivityMap", }); - internal_static_H5ActivityIdsNotify_H5ActivityMapEntry_descriptor = - internal_static_H5ActivityIdsNotify_descriptor.getNestedTypes().get(0); - internal_static_H5ActivityIdsNotify_H5ActivityMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_H5ActivityIdsNotify_H5ActivityMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/HeadImageOuterClass.java b/src/main/java/emu/grasscutter/net/proto/HeadImageOuterClass.java deleted file mode 100644 index 9f0d98994..000000000 --- a/src/main/java/emu/grasscutter/net/proto/HeadImageOuterClass.java +++ /dev/null @@ -1,536 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: HeadImage.proto - -package emu.grasscutter.net.proto; - -public final class HeadImageOuterClass { - private HeadImageOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface HeadImageOrBuilder extends - // @@protoc_insertion_point(interface_extends:HeadImage) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 avatarId = 1;</code> - * @return The avatarId. - */ - int getAvatarId(); - } - /** - * Protobuf type {@code HeadImage} - */ - public static final class HeadImage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:HeadImage) - HeadImageOrBuilder { - private static final long serialVersionUID = 0L; - // Use HeadImage.newBuilder() to construct. - private HeadImage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private HeadImage() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new HeadImage(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HeadImage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - avatarId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.HeadImageOuterClass.internal_static_HeadImage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.HeadImageOuterClass.internal_static_HeadImage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.class, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder.class); - } - - public static final int AVATARID_FIELD_NUMBER = 1; - private int avatarId_; - /** - * <code>uint32 avatarId = 1;</code> - * @return The avatarId. - */ - @java.lang.Override - public int getAvatarId() { - return avatarId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (avatarId_ != 0) { - output.writeUInt32(1, avatarId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (avatarId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, avatarId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage other = (emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage) obj; - - if (getAvatarId() - != other.getAvatarId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AVATARID_FIELD_NUMBER; - hash = (53 * hash) + getAvatarId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code HeadImage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:HeadImage) - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.HeadImageOuterClass.internal_static_HeadImage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.HeadImageOuterClass.internal_static_HeadImage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.class, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - avatarId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.HeadImageOuterClass.internal_static_HeadImage_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage getDefaultInstanceForType() { - return emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage build() { - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage buildPartial() { - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage result = new emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage(this); - result.avatarId_ = avatarId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage) { - return mergeFrom((emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage other) { - if (other == emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.getDefaultInstance()) return this; - if (other.getAvatarId() != 0) { - setAvatarId(other.getAvatarId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int avatarId_ ; - /** - * <code>uint32 avatarId = 1;</code> - * @return The avatarId. - */ - @java.lang.Override - public int getAvatarId() { - return avatarId_; - } - /** - * <code>uint32 avatarId = 1;</code> - * @param value The avatarId to set. - * @return This builder for chaining. - */ - public Builder setAvatarId(int value) { - - avatarId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 avatarId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarId() { - - avatarId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:HeadImage) - } - - // @@protoc_insertion_point(class_scope:HeadImage) - private static final emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage(); - } - - public static emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<HeadImage> - PARSER = new com.google.protobuf.AbstractParser<HeadImage>() { - @java.lang.Override - public HeadImage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HeadImage(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<HeadImage> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<HeadImage> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_HeadImage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_HeadImage_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\017HeadImage.proto\"\035\n\tHeadImage\022\020\n\010avatar" + - "Id\030\001 \001(\rB\033\n\031emu.grasscutter.net.protob\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_HeadImage_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_HeadImage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_HeadImage_descriptor, - new java.lang.String[] { "AvatarId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/HitColliderTypeOuterClass.java b/src/main/java/emu/grasscutter/net/proto/HitColliderTypeOuterClass.java deleted file mode 100644 index 459ffbb97..000000000 --- a/src/main/java/emu/grasscutter/net/proto/HitColliderTypeOuterClass.java +++ /dev/null @@ -1,165 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: HitColliderType.proto - -package emu.grasscutter.net.proto; - -public final class HitColliderTypeOuterClass { - private HitColliderTypeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code HitColliderType} - */ - public enum HitColliderType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>HitColliderInvalid = 0;</code> - */ - HitColliderInvalid(0), - /** - * <code>HitColliderHitBox = 1;</code> - */ - HitColliderHitBox(1), - /** - * <code>HitColliderWetHitBox = 2;</code> - */ - HitColliderWetHitBox(2), - /** - * <code>HitColliderHeadBox = 3;</code> - */ - HitColliderHeadBox(3), - UNRECOGNIZED(-1), - ; - - /** - * <code>HitColliderInvalid = 0;</code> - */ - public static final int HitColliderInvalid_VALUE = 0; - /** - * <code>HitColliderHitBox = 1;</code> - */ - public static final int HitColliderHitBox_VALUE = 1; - /** - * <code>HitColliderWetHitBox = 2;</code> - */ - public static final int HitColliderWetHitBox_VALUE = 2; - /** - * <code>HitColliderHeadBox = 3;</code> - */ - public static final int HitColliderHeadBox_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static HitColliderType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static HitColliderType forNumber(int value) { - switch (value) { - case 0: return HitColliderInvalid; - case 1: return HitColliderHitBox; - case 2: return HitColliderWetHitBox; - case 3: return HitColliderHeadBox; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<HitColliderType> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - HitColliderType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<HitColliderType>() { - public HitColliderType findValueByNumber(int number) { - return HitColliderType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.HitColliderTypeOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final HitColliderType[] VALUES = values(); - - public static HitColliderType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private HitColliderType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:HitColliderType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025HitColliderType.proto*r\n\017HitColliderTy" + - "pe\022\026\n\022HitColliderInvalid\020\000\022\025\n\021HitCollide" + - "rHitBox\020\001\022\030\n\024HitColliderWetHitBox\020\002\022\026\n\022H" + - "itColliderHeadBox\020\003B\033\n\031emu.grasscutter.n" + - "et.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/HitCollisionOuterClass.java b/src/main/java/emu/grasscutter/net/proto/HitCollisionOuterClass.java deleted file mode 100644 index 2a6b217c6..000000000 --- a/src/main/java/emu/grasscutter/net/proto/HitCollisionOuterClass.java +++ /dev/null @@ -1,1202 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: HitCollision.proto - -package emu.grasscutter.net.proto; - -public final class HitCollisionOuterClass { - private HitCollisionOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface HitCollisionOrBuilder extends - // @@protoc_insertion_point(interface_extends:HitCollision) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.HitColliderType hitColliderType = 1;</code> - * @return The enum numeric value on the wire for hitColliderType. - */ - int getHitColliderTypeValue(); - /** - * <code>.HitColliderType hitColliderType = 1;</code> - * @return The hitColliderType. - */ - emu.grasscutter.net.proto.HitColliderTypeOuterClass.HitColliderType getHitColliderType(); - - /** - * <code>int32 hitBoxIndex = 2;</code> - * @return The hitBoxIndex. - */ - int getHitBoxIndex(); - - /** - * <code>.Vector hitPoint = 3;</code> - * @return Whether the hitPoint field is set. - */ - boolean hasHitPoint(); - /** - * <code>.Vector hitPoint = 3;</code> - * @return The hitPoint. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getHitPoint(); - /** - * <code>.Vector hitPoint = 3;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getHitPointOrBuilder(); - - /** - * <code>.Vector hitDir = 4;</code> - * @return Whether the hitDir field is set. - */ - boolean hasHitDir(); - /** - * <code>.Vector hitDir = 4;</code> - * @return The hitDir. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getHitDir(); - /** - * <code>.Vector hitDir = 4;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getHitDirOrBuilder(); - - /** - * <code>float attackeeHitForceAngle = 5;</code> - * @return The attackeeHitForceAngle. - */ - float getAttackeeHitForceAngle(); - - /** - * <code>float attackeeHitEntityAngle = 6;</code> - * @return The attackeeHitEntityAngle. - */ - float getAttackeeHitEntityAngle(); - } - /** - * Protobuf type {@code HitCollision} - */ - public static final class HitCollision extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:HitCollision) - HitCollisionOrBuilder { - private static final long serialVersionUID = 0L; - // Use HitCollision.newBuilder() to construct. - private HitCollision(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private HitCollision() { - hitColliderType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new HitCollision(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HitCollision( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - hitColliderType_ = rawValue; - break; - } - case 16: { - - hitBoxIndex_ = input.readInt32(); - break; - } - case 26: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (hitPoint_ != null) { - subBuilder = hitPoint_.toBuilder(); - } - hitPoint_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(hitPoint_); - hitPoint_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (hitDir_ != null) { - subBuilder = hitDir_.toBuilder(); - } - hitDir_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(hitDir_); - hitDir_ = subBuilder.buildPartial(); - } - - break; - } - case 45: { - - attackeeHitForceAngle_ = input.readFloat(); - break; - } - case 53: { - - attackeeHitEntityAngle_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.HitCollisionOuterClass.internal_static_HitCollision_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.HitCollisionOuterClass.internal_static_HitCollision_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision.class, emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision.Builder.class); - } - - public static final int HITCOLLIDERTYPE_FIELD_NUMBER = 1; - private int hitColliderType_; - /** - * <code>.HitColliderType hitColliderType = 1;</code> - * @return The enum numeric value on the wire for hitColliderType. - */ - @java.lang.Override public int getHitColliderTypeValue() { - return hitColliderType_; - } - /** - * <code>.HitColliderType hitColliderType = 1;</code> - * @return The hitColliderType. - */ - @java.lang.Override public emu.grasscutter.net.proto.HitColliderTypeOuterClass.HitColliderType getHitColliderType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.HitColliderTypeOuterClass.HitColliderType result = emu.grasscutter.net.proto.HitColliderTypeOuterClass.HitColliderType.valueOf(hitColliderType_); - return result == null ? emu.grasscutter.net.proto.HitColliderTypeOuterClass.HitColliderType.UNRECOGNIZED : result; - } - - public static final int HITBOXINDEX_FIELD_NUMBER = 2; - private int hitBoxIndex_; - /** - * <code>int32 hitBoxIndex = 2;</code> - * @return The hitBoxIndex. - */ - @java.lang.Override - public int getHitBoxIndex() { - return hitBoxIndex_; - } - - public static final int HITPOINT_FIELD_NUMBER = 3; - private emu.grasscutter.net.proto.VectorOuterClass.Vector hitPoint_; - /** - * <code>.Vector hitPoint = 3;</code> - * @return Whether the hitPoint field is set. - */ - @java.lang.Override - public boolean hasHitPoint() { - return hitPoint_ != null; - } - /** - * <code>.Vector hitPoint = 3;</code> - * @return The hitPoint. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getHitPoint() { - return hitPoint_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : hitPoint_; - } - /** - * <code>.Vector hitPoint = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getHitPointOrBuilder() { - return getHitPoint(); - } - - public static final int HITDIR_FIELD_NUMBER = 4; - private emu.grasscutter.net.proto.VectorOuterClass.Vector hitDir_; - /** - * <code>.Vector hitDir = 4;</code> - * @return Whether the hitDir field is set. - */ - @java.lang.Override - public boolean hasHitDir() { - return hitDir_ != null; - } - /** - * <code>.Vector hitDir = 4;</code> - * @return The hitDir. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getHitDir() { - return hitDir_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : hitDir_; - } - /** - * <code>.Vector hitDir = 4;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getHitDirOrBuilder() { - return getHitDir(); - } - - public static final int ATTACKEEHITFORCEANGLE_FIELD_NUMBER = 5; - private float attackeeHitForceAngle_; - /** - * <code>float attackeeHitForceAngle = 5;</code> - * @return The attackeeHitForceAngle. - */ - @java.lang.Override - public float getAttackeeHitForceAngle() { - return attackeeHitForceAngle_; - } - - public static final int ATTACKEEHITENTITYANGLE_FIELD_NUMBER = 6; - private float attackeeHitEntityAngle_; - /** - * <code>float attackeeHitEntityAngle = 6;</code> - * @return The attackeeHitEntityAngle. - */ - @java.lang.Override - public float getAttackeeHitEntityAngle() { - return attackeeHitEntityAngle_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (hitColliderType_ != emu.grasscutter.net.proto.HitColliderTypeOuterClass.HitColliderType.HitColliderInvalid.getNumber()) { - output.writeEnum(1, hitColliderType_); - } - if (hitBoxIndex_ != 0) { - output.writeInt32(2, hitBoxIndex_); - } - if (hitPoint_ != null) { - output.writeMessage(3, getHitPoint()); - } - if (hitDir_ != null) { - output.writeMessage(4, getHitDir()); - } - if (attackeeHitForceAngle_ != 0F) { - output.writeFloat(5, attackeeHitForceAngle_); - } - if (attackeeHitEntityAngle_ != 0F) { - output.writeFloat(6, attackeeHitEntityAngle_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (hitColliderType_ != emu.grasscutter.net.proto.HitColliderTypeOuterClass.HitColliderType.HitColliderInvalid.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, hitColliderType_); - } - if (hitBoxIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, hitBoxIndex_); - } - if (hitPoint_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getHitPoint()); - } - if (hitDir_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getHitDir()); - } - if (attackeeHitForceAngle_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, attackeeHitForceAngle_); - } - if (attackeeHitEntityAngle_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(6, attackeeHitEntityAngle_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision other = (emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision) obj; - - if (hitColliderType_ != other.hitColliderType_) return false; - if (getHitBoxIndex() - != other.getHitBoxIndex()) return false; - if (hasHitPoint() != other.hasHitPoint()) return false; - if (hasHitPoint()) { - if (!getHitPoint() - .equals(other.getHitPoint())) return false; - } - if (hasHitDir() != other.hasHitDir()) return false; - if (hasHitDir()) { - if (!getHitDir() - .equals(other.getHitDir())) return false; - } - if (java.lang.Float.floatToIntBits(getAttackeeHitForceAngle()) - != java.lang.Float.floatToIntBits( - other.getAttackeeHitForceAngle())) return false; - if (java.lang.Float.floatToIntBits(getAttackeeHitEntityAngle()) - != java.lang.Float.floatToIntBits( - other.getAttackeeHitEntityAngle())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HITCOLLIDERTYPE_FIELD_NUMBER; - hash = (53 * hash) + hitColliderType_; - hash = (37 * hash) + HITBOXINDEX_FIELD_NUMBER; - hash = (53 * hash) + getHitBoxIndex(); - if (hasHitPoint()) { - hash = (37 * hash) + HITPOINT_FIELD_NUMBER; - hash = (53 * hash) + getHitPoint().hashCode(); - } - if (hasHitDir()) { - hash = (37 * hash) + HITDIR_FIELD_NUMBER; - hash = (53 * hash) + getHitDir().hashCode(); - } - hash = (37 * hash) + ATTACKEEHITFORCEANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getAttackeeHitForceAngle()); - hash = (37 * hash) + ATTACKEEHITENTITYANGLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getAttackeeHitEntityAngle()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code HitCollision} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:HitCollision) - emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollisionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.HitCollisionOuterClass.internal_static_HitCollision_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.HitCollisionOuterClass.internal_static_HitCollision_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision.class, emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - hitColliderType_ = 0; - - hitBoxIndex_ = 0; - - if (hitPointBuilder_ == null) { - hitPoint_ = null; - } else { - hitPoint_ = null; - hitPointBuilder_ = null; - } - if (hitDirBuilder_ == null) { - hitDir_ = null; - } else { - hitDir_ = null; - hitDirBuilder_ = null; - } - attackeeHitForceAngle_ = 0F; - - attackeeHitEntityAngle_ = 0F; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.HitCollisionOuterClass.internal_static_HitCollision_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision getDefaultInstanceForType() { - return emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision build() { - emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision buildPartial() { - emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision result = new emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision(this); - result.hitColliderType_ = hitColliderType_; - result.hitBoxIndex_ = hitBoxIndex_; - if (hitPointBuilder_ == null) { - result.hitPoint_ = hitPoint_; - } else { - result.hitPoint_ = hitPointBuilder_.build(); - } - if (hitDirBuilder_ == null) { - result.hitDir_ = hitDir_; - } else { - result.hitDir_ = hitDirBuilder_.build(); - } - result.attackeeHitForceAngle_ = attackeeHitForceAngle_; - result.attackeeHitEntityAngle_ = attackeeHitEntityAngle_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision) { - return mergeFrom((emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision other) { - if (other == emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision.getDefaultInstance()) return this; - if (other.hitColliderType_ != 0) { - setHitColliderTypeValue(other.getHitColliderTypeValue()); - } - if (other.getHitBoxIndex() != 0) { - setHitBoxIndex(other.getHitBoxIndex()); - } - if (other.hasHitPoint()) { - mergeHitPoint(other.getHitPoint()); - } - if (other.hasHitDir()) { - mergeHitDir(other.getHitDir()); - } - if (other.getAttackeeHitForceAngle() != 0F) { - setAttackeeHitForceAngle(other.getAttackeeHitForceAngle()); - } - if (other.getAttackeeHitEntityAngle() != 0F) { - setAttackeeHitEntityAngle(other.getAttackeeHitEntityAngle()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int hitColliderType_ = 0; - /** - * <code>.HitColliderType hitColliderType = 1;</code> - * @return The enum numeric value on the wire for hitColliderType. - */ - @java.lang.Override public int getHitColliderTypeValue() { - return hitColliderType_; - } - /** - * <code>.HitColliderType hitColliderType = 1;</code> - * @param value The enum numeric value on the wire for hitColliderType to set. - * @return This builder for chaining. - */ - public Builder setHitColliderTypeValue(int value) { - - hitColliderType_ = value; - onChanged(); - return this; - } - /** - * <code>.HitColliderType hitColliderType = 1;</code> - * @return The hitColliderType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.HitColliderTypeOuterClass.HitColliderType getHitColliderType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.HitColliderTypeOuterClass.HitColliderType result = emu.grasscutter.net.proto.HitColliderTypeOuterClass.HitColliderType.valueOf(hitColliderType_); - return result == null ? emu.grasscutter.net.proto.HitColliderTypeOuterClass.HitColliderType.UNRECOGNIZED : result; - } - /** - * <code>.HitColliderType hitColliderType = 1;</code> - * @param value The hitColliderType to set. - * @return This builder for chaining. - */ - public Builder setHitColliderType(emu.grasscutter.net.proto.HitColliderTypeOuterClass.HitColliderType value) { - if (value == null) { - throw new NullPointerException(); - } - - hitColliderType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.HitColliderType hitColliderType = 1;</code> - * @return This builder for chaining. - */ - public Builder clearHitColliderType() { - - hitColliderType_ = 0; - onChanged(); - return this; - } - - private int hitBoxIndex_ ; - /** - * <code>int32 hitBoxIndex = 2;</code> - * @return The hitBoxIndex. - */ - @java.lang.Override - public int getHitBoxIndex() { - return hitBoxIndex_; - } - /** - * <code>int32 hitBoxIndex = 2;</code> - * @param value The hitBoxIndex to set. - * @return This builder for chaining. - */ - public Builder setHitBoxIndex(int value) { - - hitBoxIndex_ = value; - onChanged(); - return this; - } - /** - * <code>int32 hitBoxIndex = 2;</code> - * @return This builder for chaining. - */ - public Builder clearHitBoxIndex() { - - hitBoxIndex_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.VectorOuterClass.Vector hitPoint_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> hitPointBuilder_; - /** - * <code>.Vector hitPoint = 3;</code> - * @return Whether the hitPoint field is set. - */ - public boolean hasHitPoint() { - return hitPointBuilder_ != null || hitPoint_ != null; - } - /** - * <code>.Vector hitPoint = 3;</code> - * @return The hitPoint. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getHitPoint() { - if (hitPointBuilder_ == null) { - return hitPoint_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : hitPoint_; - } else { - return hitPointBuilder_.getMessage(); - } - } - /** - * <code>.Vector hitPoint = 3;</code> - */ - public Builder setHitPoint(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (hitPointBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - hitPoint_ = value; - onChanged(); - } else { - hitPointBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Vector hitPoint = 3;</code> - */ - public Builder setHitPoint( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (hitPointBuilder_ == null) { - hitPoint_ = builderForValue.build(); - onChanged(); - } else { - hitPointBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Vector hitPoint = 3;</code> - */ - public Builder mergeHitPoint(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (hitPointBuilder_ == null) { - if (hitPoint_ != null) { - hitPoint_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(hitPoint_).mergeFrom(value).buildPartial(); - } else { - hitPoint_ = value; - } - onChanged(); - } else { - hitPointBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Vector hitPoint = 3;</code> - */ - public Builder clearHitPoint() { - if (hitPointBuilder_ == null) { - hitPoint_ = null; - onChanged(); - } else { - hitPoint_ = null; - hitPointBuilder_ = null; - } - - return this; - } - /** - * <code>.Vector hitPoint = 3;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getHitPointBuilder() { - - onChanged(); - return getHitPointFieldBuilder().getBuilder(); - } - /** - * <code>.Vector hitPoint = 3;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getHitPointOrBuilder() { - if (hitPointBuilder_ != null) { - return hitPointBuilder_.getMessageOrBuilder(); - } else { - return hitPoint_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : hitPoint_; - } - } - /** - * <code>.Vector hitPoint = 3;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getHitPointFieldBuilder() { - if (hitPointBuilder_ == null) { - hitPointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getHitPoint(), - getParentForChildren(), - isClean()); - hitPoint_ = null; - } - return hitPointBuilder_; - } - - private emu.grasscutter.net.proto.VectorOuterClass.Vector hitDir_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> hitDirBuilder_; - /** - * <code>.Vector hitDir = 4;</code> - * @return Whether the hitDir field is set. - */ - public boolean hasHitDir() { - return hitDirBuilder_ != null || hitDir_ != null; - } - /** - * <code>.Vector hitDir = 4;</code> - * @return The hitDir. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getHitDir() { - if (hitDirBuilder_ == null) { - return hitDir_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : hitDir_; - } else { - return hitDirBuilder_.getMessage(); - } - } - /** - * <code>.Vector hitDir = 4;</code> - */ - public Builder setHitDir(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (hitDirBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - hitDir_ = value; - onChanged(); - } else { - hitDirBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Vector hitDir = 4;</code> - */ - public Builder setHitDir( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (hitDirBuilder_ == null) { - hitDir_ = builderForValue.build(); - onChanged(); - } else { - hitDirBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Vector hitDir = 4;</code> - */ - public Builder mergeHitDir(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (hitDirBuilder_ == null) { - if (hitDir_ != null) { - hitDir_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(hitDir_).mergeFrom(value).buildPartial(); - } else { - hitDir_ = value; - } - onChanged(); - } else { - hitDirBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Vector hitDir = 4;</code> - */ - public Builder clearHitDir() { - if (hitDirBuilder_ == null) { - hitDir_ = null; - onChanged(); - } else { - hitDir_ = null; - hitDirBuilder_ = null; - } - - return this; - } - /** - * <code>.Vector hitDir = 4;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getHitDirBuilder() { - - onChanged(); - return getHitDirFieldBuilder().getBuilder(); - } - /** - * <code>.Vector hitDir = 4;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getHitDirOrBuilder() { - if (hitDirBuilder_ != null) { - return hitDirBuilder_.getMessageOrBuilder(); - } else { - return hitDir_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : hitDir_; - } - } - /** - * <code>.Vector hitDir = 4;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getHitDirFieldBuilder() { - if (hitDirBuilder_ == null) { - hitDirBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getHitDir(), - getParentForChildren(), - isClean()); - hitDir_ = null; - } - return hitDirBuilder_; - } - - private float attackeeHitForceAngle_ ; - /** - * <code>float attackeeHitForceAngle = 5;</code> - * @return The attackeeHitForceAngle. - */ - @java.lang.Override - public float getAttackeeHitForceAngle() { - return attackeeHitForceAngle_; - } - /** - * <code>float attackeeHitForceAngle = 5;</code> - * @param value The attackeeHitForceAngle to set. - * @return This builder for chaining. - */ - public Builder setAttackeeHitForceAngle(float value) { - - attackeeHitForceAngle_ = value; - onChanged(); - return this; - } - /** - * <code>float attackeeHitForceAngle = 5;</code> - * @return This builder for chaining. - */ - public Builder clearAttackeeHitForceAngle() { - - attackeeHitForceAngle_ = 0F; - onChanged(); - return this; - } - - private float attackeeHitEntityAngle_ ; - /** - * <code>float attackeeHitEntityAngle = 6;</code> - * @return The attackeeHitEntityAngle. - */ - @java.lang.Override - public float getAttackeeHitEntityAngle() { - return attackeeHitEntityAngle_; - } - /** - * <code>float attackeeHitEntityAngle = 6;</code> - * @param value The attackeeHitEntityAngle to set. - * @return This builder for chaining. - */ - public Builder setAttackeeHitEntityAngle(float value) { - - attackeeHitEntityAngle_ = value; - onChanged(); - return this; - } - /** - * <code>float attackeeHitEntityAngle = 6;</code> - * @return This builder for chaining. - */ - public Builder clearAttackeeHitEntityAngle() { - - attackeeHitEntityAngle_ = 0F; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:HitCollision) - } - - // @@protoc_insertion_point(class_scope:HitCollision) - private static final emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision(); - } - - public static emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<HitCollision> - PARSER = new com.google.protobuf.AbstractParser<HitCollision>() { - @java.lang.Override - public HitCollision parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HitCollision(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<HitCollision> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<HitCollision> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_HitCollision_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_HitCollision_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\022HitCollision.proto\032\025HitColliderType.pr" + - "oto\032\014Vector.proto\"\301\001\n\014HitCollision\022)\n\017hi" + - "tColliderType\030\001 \001(\0162\020.HitColliderType\022\023\n" + - "\013hitBoxIndex\030\002 \001(\005\022\031\n\010hitPoint\030\003 \001(\0132\007.V" + - "ector\022\027\n\006hitDir\030\004 \001(\0132\007.Vector\022\035\n\025attack" + - "eeHitForceAngle\030\005 \001(\002\022\036\n\026attackeeHitEnti" + - "tyAngle\030\006 \001(\002B\033\n\031emu.grasscutter.net.pro" + - "tob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.HitColliderTypeOuterClass.getDescriptor(), - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(), - }); - internal_static_HitCollision_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_HitCollision_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_HitCollision_descriptor, - new java.lang.String[] { "HitColliderType", "HitBoxIndex", "HitPoint", "HitDir", "AttackeeHitForceAngle", "AttackeeHitEntityAngle", }); - emu.grasscutter.net.proto.HitColliderTypeOuterClass.getDescriptor(); - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/HostPlayerNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/HostPlayerNotifyOuterClass.java deleted file mode 100644 index 24c5d96eb..000000000 --- a/src/main/java/emu/grasscutter/net/proto/HostPlayerNotifyOuterClass.java +++ /dev/null @@ -1,606 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: HostPlayerNotify.proto - -package emu.grasscutter.net.proto; - -public final class HostPlayerNotifyOuterClass { - private HostPlayerNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface HostPlayerNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:HostPlayerNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 hostUid = 1;</code> - * @return The hostUid. - */ - int getHostUid(); - - /** - * <code>uint32 hostPeerId = 2;</code> - * @return The hostPeerId. - */ - int getHostPeerId(); - } - /** - * Protobuf type {@code HostPlayerNotify} - */ - public static final class HostPlayerNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:HostPlayerNotify) - HostPlayerNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use HostPlayerNotify.newBuilder() to construct. - private HostPlayerNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private HostPlayerNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new HostPlayerNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HostPlayerNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - hostUid_ = input.readUInt32(); - break; - } - case 16: { - - hostPeerId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.internal_static_HostPlayerNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.internal_static_HostPlayerNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify.class, emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify.Builder.class); - } - - public static final int HOSTUID_FIELD_NUMBER = 1; - private int hostUid_; - /** - * <code>uint32 hostUid = 1;</code> - * @return The hostUid. - */ - @java.lang.Override - public int getHostUid() { - return hostUid_; - } - - public static final int HOSTPEERID_FIELD_NUMBER = 2; - private int hostPeerId_; - /** - * <code>uint32 hostPeerId = 2;</code> - * @return The hostPeerId. - */ - @java.lang.Override - public int getHostPeerId() { - return hostPeerId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (hostUid_ != 0) { - output.writeUInt32(1, hostUid_); - } - if (hostPeerId_ != 0) { - output.writeUInt32(2, hostPeerId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (hostUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, hostUid_); - } - if (hostPeerId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, hostPeerId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify other = (emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify) obj; - - if (getHostUid() - != other.getHostUid()) return false; - if (getHostPeerId() - != other.getHostPeerId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HOSTUID_FIELD_NUMBER; - hash = (53 * hash) + getHostUid(); - hash = (37 * hash) + HOSTPEERID_FIELD_NUMBER; - hash = (53 * hash) + getHostPeerId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code HostPlayerNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:HostPlayerNotify) - emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.internal_static_HostPlayerNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.internal_static_HostPlayerNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify.class, emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - hostUid_ = 0; - - hostPeerId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.internal_static_HostPlayerNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify build() { - emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify buildPartial() { - emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify result = new emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify(this); - result.hostUid_ = hostUid_; - result.hostPeerId_ = hostPeerId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify) { - return mergeFrom((emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify other) { - if (other == emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify.getDefaultInstance()) return this; - if (other.getHostUid() != 0) { - setHostUid(other.getHostUid()); - } - if (other.getHostPeerId() != 0) { - setHostPeerId(other.getHostPeerId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int hostUid_ ; - /** - * <code>uint32 hostUid = 1;</code> - * @return The hostUid. - */ - @java.lang.Override - public int getHostUid() { - return hostUid_; - } - /** - * <code>uint32 hostUid = 1;</code> - * @param value The hostUid to set. - * @return This builder for chaining. - */ - public Builder setHostUid(int value) { - - hostUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 hostUid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearHostUid() { - - hostUid_ = 0; - onChanged(); - return this; - } - - private int hostPeerId_ ; - /** - * <code>uint32 hostPeerId = 2;</code> - * @return The hostPeerId. - */ - @java.lang.Override - public int getHostPeerId() { - return hostPeerId_; - } - /** - * <code>uint32 hostPeerId = 2;</code> - * @param value The hostPeerId to set. - * @return This builder for chaining. - */ - public Builder setHostPeerId(int value) { - - hostPeerId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 hostPeerId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearHostPeerId() { - - hostPeerId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:HostPlayerNotify) - } - - // @@protoc_insertion_point(class_scope:HostPlayerNotify) - private static final emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify(); - } - - public static emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<HostPlayerNotify> - PARSER = new com.google.protobuf.AbstractParser<HostPlayerNotify>() { - @java.lang.Override - public HostPlayerNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HostPlayerNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<HostPlayerNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<HostPlayerNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_HostPlayerNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_HostPlayerNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026HostPlayerNotify.proto\"7\n\020HostPlayerNo" + - "tify\022\017\n\007hostUid\030\001 \001(\r\022\022\n\nhostPeerId\030\002 \001(" + - "\rB\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_HostPlayerNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_HostPlayerNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_HostPlayerNotify_descriptor, - new java.lang.String[] { "HostUid", "HostPeerId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/InterOpTypeOuterClass.java b/src/main/java/emu/grasscutter/net/proto/InterOpTypeOuterClass.java deleted file mode 100644 index 6e20c322a..000000000 --- a/src/main/java/emu/grasscutter/net/proto/InterOpTypeOuterClass.java +++ /dev/null @@ -1,145 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: InterOpType.proto - -package emu.grasscutter.net.proto; - -public final class InterOpTypeOuterClass { - private InterOpTypeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code InterOpType} - */ - public enum InterOpType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>InterOpFinish = 0;</code> - */ - InterOpFinish(0), - /** - * <code>InterOpStart = 1;</code> - */ - InterOpStart(1), - UNRECOGNIZED(-1), - ; - - /** - * <code>InterOpFinish = 0;</code> - */ - public static final int InterOpFinish_VALUE = 0; - /** - * <code>InterOpStart = 1;</code> - */ - public static final int InterOpStart_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static InterOpType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static InterOpType forNumber(int value) { - switch (value) { - case 0: return InterOpFinish; - case 1: return InterOpStart; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<InterOpType> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - InterOpType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<InterOpType>() { - public InterOpType findValueByNumber(int number) { - return InterOpType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.InterOpTypeOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final InterOpType[] VALUES = values(); - - public static InterOpType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private InterOpType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:InterOpType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\021InterOpType.proto*2\n\013InterOpType\022\021\n\rIn" + - "terOpFinish\020\000\022\020\n\014InterOpStart\020\001B\033\n\031emu.g" + - "rasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/InteractTypeOuterClass.java b/src/main/java/emu/grasscutter/net/proto/InteractTypeOuterClass.java deleted file mode 100644 index 3cae0e6e6..000000000 --- a/src/main/java/emu/grasscutter/net/proto/InteractTypeOuterClass.java +++ /dev/null @@ -1,232 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: InteractType.proto - -package emu.grasscutter.net.proto; - -public final class InteractTypeOuterClass { - private InteractTypeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code InteractType} - */ - public enum InteractType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>InteractNone = 0;</code> - */ - InteractNone(0), - /** - * <code>InteractPickItem = 1;</code> - */ - InteractPickItem(1), - /** - * <code>InteractGather = 2;</code> - */ - InteractGather(2), - /** - * <code>InteractOpenChest = 3;</code> - */ - InteractOpenChest(3), - /** - * <code>InteractOpenStatue = 4;</code> - */ - InteractOpenStatue(4), - /** - * <code>InteractConsum = 5;</code> - */ - InteractConsum(5), - /** - * <code>InteractMpPlayReward = 6;</code> - */ - InteractMpPlayReward(6), - /** - * <code>InteractView = 7;</code> - */ - InteractView(7), - /** - * <code>InteractGeneralReward = 8;</code> - */ - InteractGeneralReward(8), - /** - * <code>InteractMiracleRing = 9;</code> - */ - InteractMiracleRing(9), - /** - * <code>InteractFoundation = 10;</code> - */ - InteractFoundation(10), - UNRECOGNIZED(-1), - ; - - /** - * <code>InteractNone = 0;</code> - */ - public static final int InteractNone_VALUE = 0; - /** - * <code>InteractPickItem = 1;</code> - */ - public static final int InteractPickItem_VALUE = 1; - /** - * <code>InteractGather = 2;</code> - */ - public static final int InteractGather_VALUE = 2; - /** - * <code>InteractOpenChest = 3;</code> - */ - public static final int InteractOpenChest_VALUE = 3; - /** - * <code>InteractOpenStatue = 4;</code> - */ - public static final int InteractOpenStatue_VALUE = 4; - /** - * <code>InteractConsum = 5;</code> - */ - public static final int InteractConsum_VALUE = 5; - /** - * <code>InteractMpPlayReward = 6;</code> - */ - public static final int InteractMpPlayReward_VALUE = 6; - /** - * <code>InteractView = 7;</code> - */ - public static final int InteractView_VALUE = 7; - /** - * <code>InteractGeneralReward = 8;</code> - */ - public static final int InteractGeneralReward_VALUE = 8; - /** - * <code>InteractMiracleRing = 9;</code> - */ - public static final int InteractMiracleRing_VALUE = 9; - /** - * <code>InteractFoundation = 10;</code> - */ - public static final int InteractFoundation_VALUE = 10; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static InteractType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static InteractType forNumber(int value) { - switch (value) { - case 0: return InteractNone; - case 1: return InteractPickItem; - case 2: return InteractGather; - case 3: return InteractOpenChest; - case 4: return InteractOpenStatue; - case 5: return InteractConsum; - case 6: return InteractMpPlayReward; - case 7: return InteractView; - case 8: return InteractGeneralReward; - case 9: return InteractMiracleRing; - case 10: return InteractFoundation; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<InteractType> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - InteractType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<InteractType>() { - public InteractType findValueByNumber(int number) { - return InteractType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.InteractTypeOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final InteractType[] VALUES = values(); - - public static InteractType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private InteractType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:InteractType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\022InteractType.proto*\205\002\n\014InteractType\022\020\n" + - "\014InteractNone\020\000\022\024\n\020InteractPickItem\020\001\022\022\n" + - "\016InteractGather\020\002\022\025\n\021InteractOpenChest\020\003" + - "\022\026\n\022InteractOpenStatue\020\004\022\022\n\016InteractCons" + - "um\020\005\022\030\n\024InteractMpPlayReward\020\006\022\020\n\014Intera" + - "ctView\020\007\022\031\n\025InteractGeneralReward\020\010\022\027\n\023I" + - "nteractMiracleRing\020\t\022\026\n\022InteractFoundati" + - "on\020\nB\033\n\031emu.grasscutter.net.protob\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ItemAddHintNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ItemAddHintNotifyOuterClass.java deleted file mode 100644 index 0b5d4aee6..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ItemAddHintNotifyOuterClass.java +++ /dev/null @@ -1,1707 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ItemAddHintNotify.proto - -package emu.grasscutter.net.proto; - -public final class ItemAddHintNotifyOuterClass { - private ItemAddHintNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ItemAddHintNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:ItemAddHintNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - java.util.List<emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint> - getItemListList(); - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint getItemList(int index); - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - int getItemListCount(); - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.ItemHintOuterClass.ItemHintOrBuilder> - getItemListOrBuilderList(); - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - emu.grasscutter.net.proto.ItemHintOuterClass.ItemHintOrBuilder getItemListOrBuilder( - int index); - - /** - * <code>.Vector position = 2;</code> - * @return Whether the position field is set. - */ - boolean hasPosition(); - /** - * <code>.Vector position = 2;</code> - * @return The position. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getPosition(); - /** - * <code>.Vector position = 2;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPositionOrBuilder(); - - /** - * <code>bool isPositionValid = 3;</code> - * @return The isPositionValid. - */ - boolean getIsPositionValid(); - - /** - * <code>uint32 reason = 4;</code> - * @return The reason. - */ - int getReason(); - - /** - * <code>uint32 questId = 5;</code> - * @return The questId. - */ - int getQuestId(); - - /** - * <code>bool isTransferedFromAvatarCard = 6;</code> - * @return The isTransferedFromAvatarCard. - */ - boolean getIsTransferedFromAvatarCard(); - - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - java.util.List<emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint> - getOverflowTransformedItemListList(); - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint getOverflowTransformedItemList(int index); - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - int getOverflowTransformedItemListCount(); - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.ItemHintOuterClass.ItemHintOrBuilder> - getOverflowTransformedItemListOrBuilderList(); - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - emu.grasscutter.net.proto.ItemHintOuterClass.ItemHintOrBuilder getOverflowTransformedItemListOrBuilder( - int index); - } - /** - * Protobuf type {@code ItemAddHintNotify} - */ - public static final class ItemAddHintNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ItemAddHintNotify) - ItemAddHintNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use ItemAddHintNotify.newBuilder() to construct. - private ItemAddHintNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ItemAddHintNotify() { - itemList_ = java.util.Collections.emptyList(); - overflowTransformedItemList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ItemAddHintNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ItemAddHintNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - itemList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint>(); - mutable_bitField0_ |= 0x00000001; - } - itemList_.add( - input.readMessage(emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.parser(), extensionRegistry)); - break; - } - case 18: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (position_ != null) { - subBuilder = position_.toBuilder(); - } - position_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(position_); - position_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - isPositionValid_ = input.readBool(); - break; - } - case 32: { - - reason_ = input.readUInt32(); - break; - } - case 40: { - - questId_ = input.readUInt32(); - break; - } - case 48: { - - isTransferedFromAvatarCard_ = input.readBool(); - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - overflowTransformedItemList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint>(); - mutable_bitField0_ |= 0x00000002; - } - overflowTransformedItemList_.add( - input.readMessage(emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - itemList_ = java.util.Collections.unmodifiableList(itemList_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - overflowTransformedItemList_ = java.util.Collections.unmodifiableList(overflowTransformedItemList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.internal_static_ItemAddHintNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.internal_static_ItemAddHintNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify.class, emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify.Builder.class); - } - - public static final int ITEMLIST_FIELD_NUMBER = 1; - private java.util.List<emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint> itemList_; - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint> getItemListList() { - return itemList_; - } - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.ItemHintOuterClass.ItemHintOrBuilder> - getItemListOrBuilderList() { - return itemList_; - } - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - @java.lang.Override - public int getItemListCount() { - return itemList_.size(); - } - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint getItemList(int index) { - return itemList_.get(index); - } - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHintOrBuilder getItemListOrBuilder( - int index) { - return itemList_.get(index); - } - - public static final int POSITION_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.VectorOuterClass.Vector position_; - /** - * <code>.Vector position = 2;</code> - * @return Whether the position field is set. - */ - @java.lang.Override - public boolean hasPosition() { - return position_ != null; - } - /** - * <code>.Vector position = 2;</code> - * @return The position. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getPosition() { - return position_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : position_; - } - /** - * <code>.Vector position = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPositionOrBuilder() { - return getPosition(); - } - - public static final int ISPOSITIONVALID_FIELD_NUMBER = 3; - private boolean isPositionValid_; - /** - * <code>bool isPositionValid = 3;</code> - * @return The isPositionValid. - */ - @java.lang.Override - public boolean getIsPositionValid() { - return isPositionValid_; - } - - public static final int REASON_FIELD_NUMBER = 4; - private int reason_; - /** - * <code>uint32 reason = 4;</code> - * @return The reason. - */ - @java.lang.Override - public int getReason() { - return reason_; - } - - public static final int QUESTID_FIELD_NUMBER = 5; - private int questId_; - /** - * <code>uint32 questId = 5;</code> - * @return The questId. - */ - @java.lang.Override - public int getQuestId() { - return questId_; - } - - public static final int ISTRANSFEREDFROMAVATARCARD_FIELD_NUMBER = 6; - private boolean isTransferedFromAvatarCard_; - /** - * <code>bool isTransferedFromAvatarCard = 6;</code> - * @return The isTransferedFromAvatarCard. - */ - @java.lang.Override - public boolean getIsTransferedFromAvatarCard() { - return isTransferedFromAvatarCard_; - } - - public static final int OVERFLOWTRANSFORMEDITEMLIST_FIELD_NUMBER = 7; - private java.util.List<emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint> overflowTransformedItemList_; - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint> getOverflowTransformedItemListList() { - return overflowTransformedItemList_; - } - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.ItemHintOuterClass.ItemHintOrBuilder> - getOverflowTransformedItemListOrBuilderList() { - return overflowTransformedItemList_; - } - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - @java.lang.Override - public int getOverflowTransformedItemListCount() { - return overflowTransformedItemList_.size(); - } - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint getOverflowTransformedItemList(int index) { - return overflowTransformedItemList_.get(index); - } - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHintOrBuilder getOverflowTransformedItemListOrBuilder( - int index) { - return overflowTransformedItemList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < itemList_.size(); i++) { - output.writeMessage(1, itemList_.get(i)); - } - if (position_ != null) { - output.writeMessage(2, getPosition()); - } - if (isPositionValid_ != false) { - output.writeBool(3, isPositionValid_); - } - if (reason_ != 0) { - output.writeUInt32(4, reason_); - } - if (questId_ != 0) { - output.writeUInt32(5, questId_); - } - if (isTransferedFromAvatarCard_ != false) { - output.writeBool(6, isTransferedFromAvatarCard_); - } - for (int i = 0; i < overflowTransformedItemList_.size(); i++) { - output.writeMessage(7, overflowTransformedItemList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < itemList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, itemList_.get(i)); - } - if (position_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPosition()); - } - if (isPositionValid_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, isPositionValid_); - } - if (reason_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, reason_); - } - if (questId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, questId_); - } - if (isTransferedFromAvatarCard_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, isTransferedFromAvatarCard_); - } - for (int i = 0; i < overflowTransformedItemList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, overflowTransformedItemList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify other = (emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify) obj; - - if (!getItemListList() - .equals(other.getItemListList())) return false; - if (hasPosition() != other.hasPosition()) return false; - if (hasPosition()) { - if (!getPosition() - .equals(other.getPosition())) return false; - } - if (getIsPositionValid() - != other.getIsPositionValid()) return false; - if (getReason() - != other.getReason()) return false; - if (getQuestId() - != other.getQuestId()) return false; - if (getIsTransferedFromAvatarCard() - != other.getIsTransferedFromAvatarCard()) return false; - if (!getOverflowTransformedItemListList() - .equals(other.getOverflowTransformedItemListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getItemListCount() > 0) { - hash = (37 * hash) + ITEMLIST_FIELD_NUMBER; - hash = (53 * hash) + getItemListList().hashCode(); - } - if (hasPosition()) { - hash = (37 * hash) + POSITION_FIELD_NUMBER; - hash = (53 * hash) + getPosition().hashCode(); - } - hash = (37 * hash) + ISPOSITIONVALID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsPositionValid()); - hash = (37 * hash) + REASON_FIELD_NUMBER; - hash = (53 * hash) + getReason(); - hash = (37 * hash) + QUESTID_FIELD_NUMBER; - hash = (53 * hash) + getQuestId(); - hash = (37 * hash) + ISTRANSFEREDFROMAVATARCARD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsTransferedFromAvatarCard()); - if (getOverflowTransformedItemListCount() > 0) { - hash = (37 * hash) + OVERFLOWTRANSFORMEDITEMLIST_FIELD_NUMBER; - hash = (53 * hash) + getOverflowTransformedItemListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ItemAddHintNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ItemAddHintNotify) - emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.internal_static_ItemAddHintNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.internal_static_ItemAddHintNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify.class, emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getItemListFieldBuilder(); - getOverflowTransformedItemListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (itemListBuilder_ == null) { - itemList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - itemListBuilder_.clear(); - } - if (positionBuilder_ == null) { - position_ = null; - } else { - position_ = null; - positionBuilder_ = null; - } - isPositionValid_ = false; - - reason_ = 0; - - questId_ = 0; - - isTransferedFromAvatarCard_ = false; - - if (overflowTransformedItemListBuilder_ == null) { - overflowTransformedItemList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - overflowTransformedItemListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.internal_static_ItemAddHintNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify build() { - emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify buildPartial() { - emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify result = new emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify(this); - int from_bitField0_ = bitField0_; - if (itemListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - itemList_ = java.util.Collections.unmodifiableList(itemList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.itemList_ = itemList_; - } else { - result.itemList_ = itemListBuilder_.build(); - } - if (positionBuilder_ == null) { - result.position_ = position_; - } else { - result.position_ = positionBuilder_.build(); - } - result.isPositionValid_ = isPositionValid_; - result.reason_ = reason_; - result.questId_ = questId_; - result.isTransferedFromAvatarCard_ = isTransferedFromAvatarCard_; - if (overflowTransformedItemListBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - overflowTransformedItemList_ = java.util.Collections.unmodifiableList(overflowTransformedItemList_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.overflowTransformedItemList_ = overflowTransformedItemList_; - } else { - result.overflowTransformedItemList_ = overflowTransformedItemListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify) { - return mergeFrom((emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify other) { - if (other == emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify.getDefaultInstance()) return this; - if (itemListBuilder_ == null) { - if (!other.itemList_.isEmpty()) { - if (itemList_.isEmpty()) { - itemList_ = other.itemList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureItemListIsMutable(); - itemList_.addAll(other.itemList_); - } - onChanged(); - } - } else { - if (!other.itemList_.isEmpty()) { - if (itemListBuilder_.isEmpty()) { - itemListBuilder_.dispose(); - itemListBuilder_ = null; - itemList_ = other.itemList_; - bitField0_ = (bitField0_ & ~0x00000001); - itemListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getItemListFieldBuilder() : null; - } else { - itemListBuilder_.addAllMessages(other.itemList_); - } - } - } - if (other.hasPosition()) { - mergePosition(other.getPosition()); - } - if (other.getIsPositionValid() != false) { - setIsPositionValid(other.getIsPositionValid()); - } - if (other.getReason() != 0) { - setReason(other.getReason()); - } - if (other.getQuestId() != 0) { - setQuestId(other.getQuestId()); - } - if (other.getIsTransferedFromAvatarCard() != false) { - setIsTransferedFromAvatarCard(other.getIsTransferedFromAvatarCard()); - } - if (overflowTransformedItemListBuilder_ == null) { - if (!other.overflowTransformedItemList_.isEmpty()) { - if (overflowTransformedItemList_.isEmpty()) { - overflowTransformedItemList_ = other.overflowTransformedItemList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureOverflowTransformedItemListIsMutable(); - overflowTransformedItemList_.addAll(other.overflowTransformedItemList_); - } - onChanged(); - } - } else { - if (!other.overflowTransformedItemList_.isEmpty()) { - if (overflowTransformedItemListBuilder_.isEmpty()) { - overflowTransformedItemListBuilder_.dispose(); - overflowTransformedItemListBuilder_ = null; - overflowTransformedItemList_ = other.overflowTransformedItemList_; - bitField0_ = (bitField0_ & ~0x00000002); - overflowTransformedItemListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOverflowTransformedItemListFieldBuilder() : null; - } else { - overflowTransformedItemListBuilder_.addAllMessages(other.overflowTransformedItemList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List<emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint> itemList_ = - java.util.Collections.emptyList(); - private void ensureItemListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - itemList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint>(itemList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint, emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder, emu.grasscutter.net.proto.ItemHintOuterClass.ItemHintOrBuilder> itemListBuilder_; - - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint> getItemListList() { - if (itemListBuilder_ == null) { - return java.util.Collections.unmodifiableList(itemList_); - } else { - return itemListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - public int getItemListCount() { - if (itemListBuilder_ == null) { - return itemList_.size(); - } else { - return itemListBuilder_.getCount(); - } - } - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint getItemList(int index) { - if (itemListBuilder_ == null) { - return itemList_.get(index); - } else { - return itemListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - public Builder setItemList( - int index, emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint value) { - if (itemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemListIsMutable(); - itemList_.set(index, value); - onChanged(); - } else { - itemListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - public Builder setItemList( - int index, emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder builderForValue) { - if (itemListBuilder_ == null) { - ensureItemListIsMutable(); - itemList_.set(index, builderForValue.build()); - onChanged(); - } else { - itemListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - public Builder addItemList(emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint value) { - if (itemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemListIsMutable(); - itemList_.add(value); - onChanged(); - } else { - itemListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - public Builder addItemList( - int index, emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint value) { - if (itemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemListIsMutable(); - itemList_.add(index, value); - onChanged(); - } else { - itemListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - public Builder addItemList( - emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder builderForValue) { - if (itemListBuilder_ == null) { - ensureItemListIsMutable(); - itemList_.add(builderForValue.build()); - onChanged(); - } else { - itemListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - public Builder addItemList( - int index, emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder builderForValue) { - if (itemListBuilder_ == null) { - ensureItemListIsMutable(); - itemList_.add(index, builderForValue.build()); - onChanged(); - } else { - itemListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - public Builder addAllItemList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint> values) { - if (itemListBuilder_ == null) { - ensureItemListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, itemList_); - onChanged(); - } else { - itemListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - public Builder clearItemList() { - if (itemListBuilder_ == null) { - itemList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - itemListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - public Builder removeItemList(int index) { - if (itemListBuilder_ == null) { - ensureItemListIsMutable(); - itemList_.remove(index); - onChanged(); - } else { - itemListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder getItemListBuilder( - int index) { - return getItemListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHintOrBuilder getItemListOrBuilder( - int index) { - if (itemListBuilder_ == null) { - return itemList_.get(index); } else { - return itemListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.ItemHintOuterClass.ItemHintOrBuilder> - getItemListOrBuilderList() { - if (itemListBuilder_ != null) { - return itemListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(itemList_); - } - } - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder addItemListBuilder() { - return getItemListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.getDefaultInstance()); - } - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder addItemListBuilder( - int index) { - return getItemListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.getDefaultInstance()); - } - /** - * <code>repeated .ItemHint itemList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder> - getItemListBuilderList() { - return getItemListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint, emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder, emu.grasscutter.net.proto.ItemHintOuterClass.ItemHintOrBuilder> - getItemListFieldBuilder() { - if (itemListBuilder_ == null) { - itemListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint, emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder, emu.grasscutter.net.proto.ItemHintOuterClass.ItemHintOrBuilder>( - itemList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - itemList_ = null; - } - return itemListBuilder_; - } - - private emu.grasscutter.net.proto.VectorOuterClass.Vector position_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> positionBuilder_; - /** - * <code>.Vector position = 2;</code> - * @return Whether the position field is set. - */ - public boolean hasPosition() { - return positionBuilder_ != null || position_ != null; - } - /** - * <code>.Vector position = 2;</code> - * @return The position. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getPosition() { - if (positionBuilder_ == null) { - return position_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : position_; - } else { - return positionBuilder_.getMessage(); - } - } - /** - * <code>.Vector position = 2;</code> - */ - public Builder setPosition(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (positionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - position_ = value; - onChanged(); - } else { - positionBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Vector position = 2;</code> - */ - public Builder setPosition( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (positionBuilder_ == null) { - position_ = builderForValue.build(); - onChanged(); - } else { - positionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Vector position = 2;</code> - */ - public Builder mergePosition(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (positionBuilder_ == null) { - if (position_ != null) { - position_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(position_).mergeFrom(value).buildPartial(); - } else { - position_ = value; - } - onChanged(); - } else { - positionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Vector position = 2;</code> - */ - public Builder clearPosition() { - if (positionBuilder_ == null) { - position_ = null; - onChanged(); - } else { - position_ = null; - positionBuilder_ = null; - } - - return this; - } - /** - * <code>.Vector position = 2;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getPositionBuilder() { - - onChanged(); - return getPositionFieldBuilder().getBuilder(); - } - /** - * <code>.Vector position = 2;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPositionOrBuilder() { - if (positionBuilder_ != null) { - return positionBuilder_.getMessageOrBuilder(); - } else { - return position_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : position_; - } - } - /** - * <code>.Vector position = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getPositionFieldBuilder() { - if (positionBuilder_ == null) { - positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getPosition(), - getParentForChildren(), - isClean()); - position_ = null; - } - return positionBuilder_; - } - - private boolean isPositionValid_ ; - /** - * <code>bool isPositionValid = 3;</code> - * @return The isPositionValid. - */ - @java.lang.Override - public boolean getIsPositionValid() { - return isPositionValid_; - } - /** - * <code>bool isPositionValid = 3;</code> - * @param value The isPositionValid to set. - * @return This builder for chaining. - */ - public Builder setIsPositionValid(boolean value) { - - isPositionValid_ = value; - onChanged(); - return this; - } - /** - * <code>bool isPositionValid = 3;</code> - * @return This builder for chaining. - */ - public Builder clearIsPositionValid() { - - isPositionValid_ = false; - onChanged(); - return this; - } - - private int reason_ ; - /** - * <code>uint32 reason = 4;</code> - * @return The reason. - */ - @java.lang.Override - public int getReason() { - return reason_; - } - /** - * <code>uint32 reason = 4;</code> - * @param value The reason to set. - * @return This builder for chaining. - */ - public Builder setReason(int value) { - - reason_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 reason = 4;</code> - * @return This builder for chaining. - */ - public Builder clearReason() { - - reason_ = 0; - onChanged(); - return this; - } - - private int questId_ ; - /** - * <code>uint32 questId = 5;</code> - * @return The questId. - */ - @java.lang.Override - public int getQuestId() { - return questId_; - } - /** - * <code>uint32 questId = 5;</code> - * @param value The questId to set. - * @return This builder for chaining. - */ - public Builder setQuestId(int value) { - - questId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 questId = 5;</code> - * @return This builder for chaining. - */ - public Builder clearQuestId() { - - questId_ = 0; - onChanged(); - return this; - } - - private boolean isTransferedFromAvatarCard_ ; - /** - * <code>bool isTransferedFromAvatarCard = 6;</code> - * @return The isTransferedFromAvatarCard. - */ - @java.lang.Override - public boolean getIsTransferedFromAvatarCard() { - return isTransferedFromAvatarCard_; - } - /** - * <code>bool isTransferedFromAvatarCard = 6;</code> - * @param value The isTransferedFromAvatarCard to set. - * @return This builder for chaining. - */ - public Builder setIsTransferedFromAvatarCard(boolean value) { - - isTransferedFromAvatarCard_ = value; - onChanged(); - return this; - } - /** - * <code>bool isTransferedFromAvatarCard = 6;</code> - * @return This builder for chaining. - */ - public Builder clearIsTransferedFromAvatarCard() { - - isTransferedFromAvatarCard_ = false; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint> overflowTransformedItemList_ = - java.util.Collections.emptyList(); - private void ensureOverflowTransformedItemListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - overflowTransformedItemList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint>(overflowTransformedItemList_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint, emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder, emu.grasscutter.net.proto.ItemHintOuterClass.ItemHintOrBuilder> overflowTransformedItemListBuilder_; - - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint> getOverflowTransformedItemListList() { - if (overflowTransformedItemListBuilder_ == null) { - return java.util.Collections.unmodifiableList(overflowTransformedItemList_); - } else { - return overflowTransformedItemListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - public int getOverflowTransformedItemListCount() { - if (overflowTransformedItemListBuilder_ == null) { - return overflowTransformedItemList_.size(); - } else { - return overflowTransformedItemListBuilder_.getCount(); - } - } - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint getOverflowTransformedItemList(int index) { - if (overflowTransformedItemListBuilder_ == null) { - return overflowTransformedItemList_.get(index); - } else { - return overflowTransformedItemListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - public Builder setOverflowTransformedItemList( - int index, emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint value) { - if (overflowTransformedItemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOverflowTransformedItemListIsMutable(); - overflowTransformedItemList_.set(index, value); - onChanged(); - } else { - overflowTransformedItemListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - public Builder setOverflowTransformedItemList( - int index, emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder builderForValue) { - if (overflowTransformedItemListBuilder_ == null) { - ensureOverflowTransformedItemListIsMutable(); - overflowTransformedItemList_.set(index, builderForValue.build()); - onChanged(); - } else { - overflowTransformedItemListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - public Builder addOverflowTransformedItemList(emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint value) { - if (overflowTransformedItemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOverflowTransformedItemListIsMutable(); - overflowTransformedItemList_.add(value); - onChanged(); - } else { - overflowTransformedItemListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - public Builder addOverflowTransformedItemList( - int index, emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint value) { - if (overflowTransformedItemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOverflowTransformedItemListIsMutable(); - overflowTransformedItemList_.add(index, value); - onChanged(); - } else { - overflowTransformedItemListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - public Builder addOverflowTransformedItemList( - emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder builderForValue) { - if (overflowTransformedItemListBuilder_ == null) { - ensureOverflowTransformedItemListIsMutable(); - overflowTransformedItemList_.add(builderForValue.build()); - onChanged(); - } else { - overflowTransformedItemListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - public Builder addOverflowTransformedItemList( - int index, emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder builderForValue) { - if (overflowTransformedItemListBuilder_ == null) { - ensureOverflowTransformedItemListIsMutable(); - overflowTransformedItemList_.add(index, builderForValue.build()); - onChanged(); - } else { - overflowTransformedItemListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - public Builder addAllOverflowTransformedItemList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint> values) { - if (overflowTransformedItemListBuilder_ == null) { - ensureOverflowTransformedItemListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, overflowTransformedItemList_); - onChanged(); - } else { - overflowTransformedItemListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - public Builder clearOverflowTransformedItemList() { - if (overflowTransformedItemListBuilder_ == null) { - overflowTransformedItemList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - overflowTransformedItemListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - public Builder removeOverflowTransformedItemList(int index) { - if (overflowTransformedItemListBuilder_ == null) { - ensureOverflowTransformedItemListIsMutable(); - overflowTransformedItemList_.remove(index); - onChanged(); - } else { - overflowTransformedItemListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder getOverflowTransformedItemListBuilder( - int index) { - return getOverflowTransformedItemListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHintOrBuilder getOverflowTransformedItemListOrBuilder( - int index) { - if (overflowTransformedItemListBuilder_ == null) { - return overflowTransformedItemList_.get(index); } else { - return overflowTransformedItemListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.ItemHintOuterClass.ItemHintOrBuilder> - getOverflowTransformedItemListOrBuilderList() { - if (overflowTransformedItemListBuilder_ != null) { - return overflowTransformedItemListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(overflowTransformedItemList_); - } - } - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder addOverflowTransformedItemListBuilder() { - return getOverflowTransformedItemListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.getDefaultInstance()); - } - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder addOverflowTransformedItemListBuilder( - int index) { - return getOverflowTransformedItemListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.getDefaultInstance()); - } - /** - * <code>repeated .ItemHint overflowTransformedItemList = 7;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder> - getOverflowTransformedItemListBuilderList() { - return getOverflowTransformedItemListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint, emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder, emu.grasscutter.net.proto.ItemHintOuterClass.ItemHintOrBuilder> - getOverflowTransformedItemListFieldBuilder() { - if (overflowTransformedItemListBuilder_ == null) { - overflowTransformedItemListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint, emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder, emu.grasscutter.net.proto.ItemHintOuterClass.ItemHintOrBuilder>( - overflowTransformedItemList_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - overflowTransformedItemList_ = null; - } - return overflowTransformedItemListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ItemAddHintNotify) - } - - // @@protoc_insertion_point(class_scope:ItemAddHintNotify) - private static final emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify(); - } - - public static emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ItemAddHintNotify> - PARSER = new com.google.protobuf.AbstractParser<ItemAddHintNotify>() { - @java.lang.Override - public ItemAddHintNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ItemAddHintNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ItemAddHintNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ItemAddHintNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ItemAddHintNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ItemAddHintNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027ItemAddHintNotify.proto\032\016ItemHint.prot" + - "o\032\014Vector.proto\"\331\001\n\021ItemAddHintNotify\022\033\n" + - "\010itemList\030\001 \003(\0132\t.ItemHint\022\031\n\010position\030\002" + - " \001(\0132\007.Vector\022\027\n\017isPositionValid\030\003 \001(\010\022\016" + - "\n\006reason\030\004 \001(\r\022\017\n\007questId\030\005 \001(\r\022\"\n\032isTra" + - "nsferedFromAvatarCard\030\006 \001(\010\022.\n\033overflowT" + - "ransformedItemList\030\007 \003(\0132\t.ItemHintB\033\n\031e" + - "mu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ItemHintOuterClass.getDescriptor(), - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(), - }); - internal_static_ItemAddHintNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ItemAddHintNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ItemAddHintNotify_descriptor, - new java.lang.String[] { "ItemList", "Position", "IsPositionValid", "Reason", "QuestId", "IsTransferedFromAvatarCard", "OverflowTransformedItemList", }); - emu.grasscutter.net.proto.ItemHintOuterClass.getDescriptor(); - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ItemExceedLimitNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ItemExceedLimitNotifyOuterClass.java deleted file mode 100644 index ea9dafdee..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ItemExceedLimitNotifyOuterClass.java +++ /dev/null @@ -1,879 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ItemExceedLimitNotify.proto - -package emu.grasscutter.net.proto; - -public final class ItemExceedLimitNotifyOuterClass { - private ItemExceedLimitNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ItemExceedLimitNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:ItemExceedLimitNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>bool isMaterialExceedLimit = 1;</code> - * @return The isMaterialExceedLimit. - */ - boolean getIsMaterialExceedLimit(); - - /** - * <code>bool isWeaponExceedLimit = 2;</code> - * @return The isWeaponExceedLimit. - */ - boolean getIsWeaponExceedLimit(); - - /** - * <code>bool isReliquaryExceedLimit = 3;</code> - * @return The isReliquaryExceedLimit. - */ - boolean getIsReliquaryExceedLimit(); - - /** - * <code>repeated uint32 itemIdList = 4;</code> - * @return A list containing the itemIdList. - */ - java.util.List<java.lang.Integer> getItemIdListList(); - /** - * <code>repeated uint32 itemIdList = 4;</code> - * @return The count of itemIdList. - */ - int getItemIdListCount(); - /** - * <code>repeated uint32 itemIdList = 4;</code> - * @param index The index of the element to return. - * @return The itemIdList at the given index. - */ - int getItemIdList(int index); - } - /** - * Protobuf type {@code ItemExceedLimitNotify} - */ - public static final class ItemExceedLimitNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ItemExceedLimitNotify) - ItemExceedLimitNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use ItemExceedLimitNotify.newBuilder() to construct. - private ItemExceedLimitNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ItemExceedLimitNotify() { - itemIdList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ItemExceedLimitNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ItemExceedLimitNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - isMaterialExceedLimit_ = input.readBool(); - break; - } - case 16: { - - isWeaponExceedLimit_ = input.readBool(); - break; - } - case 24: { - - isReliquaryExceedLimit_ = input.readBool(); - break; - } - case 32: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - itemIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - itemIdList_.addInt(input.readUInt32()); - break; - } - case 34: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - itemIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - itemIdList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - itemIdList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.internal_static_ItemExceedLimitNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.internal_static_ItemExceedLimitNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify.class, emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify.Builder.class); - } - - public static final int ISMATERIALEXCEEDLIMIT_FIELD_NUMBER = 1; - private boolean isMaterialExceedLimit_; - /** - * <code>bool isMaterialExceedLimit = 1;</code> - * @return The isMaterialExceedLimit. - */ - @java.lang.Override - public boolean getIsMaterialExceedLimit() { - return isMaterialExceedLimit_; - } - - public static final int ISWEAPONEXCEEDLIMIT_FIELD_NUMBER = 2; - private boolean isWeaponExceedLimit_; - /** - * <code>bool isWeaponExceedLimit = 2;</code> - * @return The isWeaponExceedLimit. - */ - @java.lang.Override - public boolean getIsWeaponExceedLimit() { - return isWeaponExceedLimit_; - } - - public static final int ISRELIQUARYEXCEEDLIMIT_FIELD_NUMBER = 3; - private boolean isReliquaryExceedLimit_; - /** - * <code>bool isReliquaryExceedLimit = 3;</code> - * @return The isReliquaryExceedLimit. - */ - @java.lang.Override - public boolean getIsReliquaryExceedLimit() { - return isReliquaryExceedLimit_; - } - - public static final int ITEMIDLIST_FIELD_NUMBER = 4; - private com.google.protobuf.Internal.IntList itemIdList_; - /** - * <code>repeated uint32 itemIdList = 4;</code> - * @return A list containing the itemIdList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getItemIdListList() { - return itemIdList_; - } - /** - * <code>repeated uint32 itemIdList = 4;</code> - * @return The count of itemIdList. - */ - public int getItemIdListCount() { - return itemIdList_.size(); - } - /** - * <code>repeated uint32 itemIdList = 4;</code> - * @param index The index of the element to return. - * @return The itemIdList at the given index. - */ - public int getItemIdList(int index) { - return itemIdList_.getInt(index); - } - private int itemIdListMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (isMaterialExceedLimit_ != false) { - output.writeBool(1, isMaterialExceedLimit_); - } - if (isWeaponExceedLimit_ != false) { - output.writeBool(2, isWeaponExceedLimit_); - } - if (isReliquaryExceedLimit_ != false) { - output.writeBool(3, isReliquaryExceedLimit_); - } - if (getItemIdListList().size() > 0) { - output.writeUInt32NoTag(34); - output.writeUInt32NoTag(itemIdListMemoizedSerializedSize); - } - for (int i = 0; i < itemIdList_.size(); i++) { - output.writeUInt32NoTag(itemIdList_.getInt(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (isMaterialExceedLimit_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, isMaterialExceedLimit_); - } - if (isWeaponExceedLimit_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isWeaponExceedLimit_); - } - if (isReliquaryExceedLimit_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, isReliquaryExceedLimit_); - } - { - int dataSize = 0; - for (int i = 0; i < itemIdList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(itemIdList_.getInt(i)); - } - size += dataSize; - if (!getItemIdListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - itemIdListMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify other = (emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify) obj; - - if (getIsMaterialExceedLimit() - != other.getIsMaterialExceedLimit()) return false; - if (getIsWeaponExceedLimit() - != other.getIsWeaponExceedLimit()) return false; - if (getIsReliquaryExceedLimit() - != other.getIsReliquaryExceedLimit()) return false; - if (!getItemIdListList() - .equals(other.getItemIdListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ISMATERIALEXCEEDLIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsMaterialExceedLimit()); - hash = (37 * hash) + ISWEAPONEXCEEDLIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsWeaponExceedLimit()); - hash = (37 * hash) + ISRELIQUARYEXCEEDLIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsReliquaryExceedLimit()); - if (getItemIdListCount() > 0) { - hash = (37 * hash) + ITEMIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getItemIdListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ItemExceedLimitNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ItemExceedLimitNotify) - emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.internal_static_ItemExceedLimitNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.internal_static_ItemExceedLimitNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify.class, emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - isMaterialExceedLimit_ = false; - - isWeaponExceedLimit_ = false; - - isReliquaryExceedLimit_ = false; - - itemIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.internal_static_ItemExceedLimitNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify build() { - emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify buildPartial() { - emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify result = new emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify(this); - int from_bitField0_ = bitField0_; - result.isMaterialExceedLimit_ = isMaterialExceedLimit_; - result.isWeaponExceedLimit_ = isWeaponExceedLimit_; - result.isReliquaryExceedLimit_ = isReliquaryExceedLimit_; - if (((bitField0_ & 0x00000001) != 0)) { - itemIdList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.itemIdList_ = itemIdList_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify) { - return mergeFrom((emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify other) { - if (other == emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify.getDefaultInstance()) return this; - if (other.getIsMaterialExceedLimit() != false) { - setIsMaterialExceedLimit(other.getIsMaterialExceedLimit()); - } - if (other.getIsWeaponExceedLimit() != false) { - setIsWeaponExceedLimit(other.getIsWeaponExceedLimit()); - } - if (other.getIsReliquaryExceedLimit() != false) { - setIsReliquaryExceedLimit(other.getIsReliquaryExceedLimit()); - } - if (!other.itemIdList_.isEmpty()) { - if (itemIdList_.isEmpty()) { - itemIdList_ = other.itemIdList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureItemIdListIsMutable(); - itemIdList_.addAll(other.itemIdList_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private boolean isMaterialExceedLimit_ ; - /** - * <code>bool isMaterialExceedLimit = 1;</code> - * @return The isMaterialExceedLimit. - */ - @java.lang.Override - public boolean getIsMaterialExceedLimit() { - return isMaterialExceedLimit_; - } - /** - * <code>bool isMaterialExceedLimit = 1;</code> - * @param value The isMaterialExceedLimit to set. - * @return This builder for chaining. - */ - public Builder setIsMaterialExceedLimit(boolean value) { - - isMaterialExceedLimit_ = value; - onChanged(); - return this; - } - /** - * <code>bool isMaterialExceedLimit = 1;</code> - * @return This builder for chaining. - */ - public Builder clearIsMaterialExceedLimit() { - - isMaterialExceedLimit_ = false; - onChanged(); - return this; - } - - private boolean isWeaponExceedLimit_ ; - /** - * <code>bool isWeaponExceedLimit = 2;</code> - * @return The isWeaponExceedLimit. - */ - @java.lang.Override - public boolean getIsWeaponExceedLimit() { - return isWeaponExceedLimit_; - } - /** - * <code>bool isWeaponExceedLimit = 2;</code> - * @param value The isWeaponExceedLimit to set. - * @return This builder for chaining. - */ - public Builder setIsWeaponExceedLimit(boolean value) { - - isWeaponExceedLimit_ = value; - onChanged(); - return this; - } - /** - * <code>bool isWeaponExceedLimit = 2;</code> - * @return This builder for chaining. - */ - public Builder clearIsWeaponExceedLimit() { - - isWeaponExceedLimit_ = false; - onChanged(); - return this; - } - - private boolean isReliquaryExceedLimit_ ; - /** - * <code>bool isReliquaryExceedLimit = 3;</code> - * @return The isReliquaryExceedLimit. - */ - @java.lang.Override - public boolean getIsReliquaryExceedLimit() { - return isReliquaryExceedLimit_; - } - /** - * <code>bool isReliquaryExceedLimit = 3;</code> - * @param value The isReliquaryExceedLimit to set. - * @return This builder for chaining. - */ - public Builder setIsReliquaryExceedLimit(boolean value) { - - isReliquaryExceedLimit_ = value; - onChanged(); - return this; - } - /** - * <code>bool isReliquaryExceedLimit = 3;</code> - * @return This builder for chaining. - */ - public Builder clearIsReliquaryExceedLimit() { - - isReliquaryExceedLimit_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList itemIdList_ = emptyIntList(); - private void ensureItemIdListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - itemIdList_ = mutableCopy(itemIdList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 itemIdList = 4;</code> - * @return A list containing the itemIdList. - */ - public java.util.List<java.lang.Integer> - getItemIdListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(itemIdList_) : itemIdList_; - } - /** - * <code>repeated uint32 itemIdList = 4;</code> - * @return The count of itemIdList. - */ - public int getItemIdListCount() { - return itemIdList_.size(); - } - /** - * <code>repeated uint32 itemIdList = 4;</code> - * @param index The index of the element to return. - * @return The itemIdList at the given index. - */ - public int getItemIdList(int index) { - return itemIdList_.getInt(index); - } - /** - * <code>repeated uint32 itemIdList = 4;</code> - * @param index The index to set the value at. - * @param value The itemIdList to set. - * @return This builder for chaining. - */ - public Builder setItemIdList( - int index, int value) { - ensureItemIdListIsMutable(); - itemIdList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 itemIdList = 4;</code> - * @param value The itemIdList to add. - * @return This builder for chaining. - */ - public Builder addItemIdList(int value) { - ensureItemIdListIsMutable(); - itemIdList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 itemIdList = 4;</code> - * @param values The itemIdList to add. - * @return This builder for chaining. - */ - public Builder addAllItemIdList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureItemIdListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, itemIdList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 itemIdList = 4;</code> - * @return This builder for chaining. - */ - public Builder clearItemIdList() { - itemIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ItemExceedLimitNotify) - } - - // @@protoc_insertion_point(class_scope:ItemExceedLimitNotify) - private static final emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify(); - } - - public static emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ItemExceedLimitNotify> - PARSER = new com.google.protobuf.AbstractParser<ItemExceedLimitNotify>() { - @java.lang.Override - public ItemExceedLimitNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ItemExceedLimitNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ItemExceedLimitNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ItemExceedLimitNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemExceedLimitNotifyOuterClass.ItemExceedLimitNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ItemExceedLimitNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ItemExceedLimitNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033ItemExceedLimitNotify.proto\"\207\001\n\025ItemEx" + - "ceedLimitNotify\022\035\n\025isMaterialExceedLimit" + - "\030\001 \001(\010\022\033\n\023isWeaponExceedLimit\030\002 \001(\010\022\036\n\026i" + - "sReliquaryExceedLimit\030\003 \001(\010\022\022\n\nitemIdLis" + - "t\030\004 \003(\rB\033\n\031emu.grasscutter.net.protob\006pr" + - "oto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ItemExceedLimitNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ItemExceedLimitNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ItemExceedLimitNotify_descriptor, - new java.lang.String[] { "IsMaterialExceedLimit", "IsWeaponExceedLimit", "IsReliquaryExceedLimit", "ItemIdList", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ItemGivingReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ItemGivingReqOuterClass.java deleted file mode 100644 index c93b3e08f..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ItemGivingReqOuterClass.java +++ /dev/null @@ -1,1245 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ItemGivingReq.proto - -package emu.grasscutter.net.proto; - -public final class ItemGivingReqOuterClass { - private ItemGivingReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ItemGivingReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:ItemGivingReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 givingId = 1;</code> - * @return The givingId. - */ - int getGivingId(); - - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> - getItemParamListList(); - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index); - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - int getItemParamListCount(); - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getItemParamListOrBuilderList(); - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder( - int index); - - /** - * <code>map<uint64, uint32> itemGuidCountMap = 3;</code> - */ - int getItemGuidCountMapCount(); - /** - * <code>map<uint64, uint32> itemGuidCountMap = 3;</code> - */ - boolean containsItemGuidCountMap( - long key); - /** - * Use {@link #getItemGuidCountMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Long, java.lang.Integer> - getItemGuidCountMap(); - /** - * <code>map<uint64, uint32> itemGuidCountMap = 3;</code> - */ - java.util.Map<java.lang.Long, java.lang.Integer> - getItemGuidCountMapMap(); - /** - * <code>map<uint64, uint32> itemGuidCountMap = 3;</code> - */ - - int getItemGuidCountMapOrDefault( - long key, - int defaultValue); - /** - * <code>map<uint64, uint32> itemGuidCountMap = 3;</code> - */ - - int getItemGuidCountMapOrThrow( - long key); - } - /** - * Protobuf type {@code ItemGivingReq} - */ - public static final class ItemGivingReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ItemGivingReq) - ItemGivingReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use ItemGivingReq.newBuilder() to construct. - private ItemGivingReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ItemGivingReq() { - itemParamList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ItemGivingReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ItemGivingReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - givingId_ = input.readUInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - itemParamList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>(); - mutable_bitField0_ |= 0x00000001; - } - itemParamList_.add( - input.readMessage(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - itemGuidCountMap_ = com.google.protobuf.MapField.newMapField( - ItemGuidCountMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry<java.lang.Long, java.lang.Integer> - itemGuidCountMap__ = input.readMessage( - ItemGuidCountMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - itemGuidCountMap_.getMutableMap().put( - itemGuidCountMap__.getKey(), itemGuidCountMap__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - itemParamList_ = java.util.Collections.unmodifiableList(itemParamList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ItemGivingReqOuterClass.internal_static_ItemGivingReq_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetItemGuidCountMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ItemGivingReqOuterClass.internal_static_ItemGivingReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.class, emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.Builder.class); - } - - public static final int GIVINGID_FIELD_NUMBER = 1; - private int givingId_; - /** - * <code>uint32 givingId = 1;</code> - * @return The givingId. - */ - @java.lang.Override - public int getGivingId() { - return givingId_; - } - - public static final int ITEMPARAMLIST_FIELD_NUMBER = 2; - private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> itemParamList_; - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getItemParamListList() { - return itemParamList_; - } - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getItemParamListOrBuilderList() { - return itemParamList_; - } - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - @java.lang.Override - public int getItemParamListCount() { - return itemParamList_.size(); - } - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) { - return itemParamList_.get(index); - } - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder( - int index) { - return itemParamList_.get(index); - } - - public static final int ITEMGUIDCOUNTMAP_FIELD_NUMBER = 3; - private static final class ItemGuidCountMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Long, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Long, java.lang.Integer>newDefaultInstance( - emu.grasscutter.net.proto.ItemGivingReqOuterClass.internal_static_ItemGivingReq_ItemGuidCountMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT64, - 0L, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.Long, java.lang.Integer> itemGuidCountMap_; - private com.google.protobuf.MapField<java.lang.Long, java.lang.Integer> - internalGetItemGuidCountMap() { - if (itemGuidCountMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ItemGuidCountMapDefaultEntryHolder.defaultEntry); - } - return itemGuidCountMap_; - } - - public int getItemGuidCountMapCount() { - return internalGetItemGuidCountMap().getMap().size(); - } - /** - * <code>map<uint64, uint32> itemGuidCountMap = 3;</code> - */ - - @java.lang.Override - public boolean containsItemGuidCountMap( - long key) { - - return internalGetItemGuidCountMap().getMap().containsKey(key); - } - /** - * Use {@link #getItemGuidCountMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Long, java.lang.Integer> getItemGuidCountMap() { - return getItemGuidCountMapMap(); - } - /** - * <code>map<uint64, uint32> itemGuidCountMap = 3;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Long, java.lang.Integer> getItemGuidCountMapMap() { - return internalGetItemGuidCountMap().getMap(); - } - /** - * <code>map<uint64, uint32> itemGuidCountMap = 3;</code> - */ - @java.lang.Override - - public int getItemGuidCountMapOrDefault( - long key, - int defaultValue) { - - java.util.Map<java.lang.Long, java.lang.Integer> map = - internalGetItemGuidCountMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint64, uint32> itemGuidCountMap = 3;</code> - */ - @java.lang.Override - - public int getItemGuidCountMapOrThrow( - long key) { - - java.util.Map<java.lang.Long, java.lang.Integer> map = - internalGetItemGuidCountMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (givingId_ != 0) { - output.writeUInt32(1, givingId_); - } - for (int i = 0; i < itemParamList_.size(); i++) { - output.writeMessage(2, itemParamList_.get(i)); - } - com.google.protobuf.GeneratedMessageV3 - .serializeLongMapTo( - output, - internalGetItemGuidCountMap(), - ItemGuidCountMapDefaultEntryHolder.defaultEntry, - 3); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (givingId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, givingId_); - } - for (int i = 0; i < itemParamList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, itemParamList_.get(i)); - } - for (java.util.Map.Entry<java.lang.Long, java.lang.Integer> entry - : internalGetItemGuidCountMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Long, java.lang.Integer> - itemGuidCountMap__ = ItemGuidCountMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, itemGuidCountMap__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq other = (emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq) obj; - - if (getGivingId() - != other.getGivingId()) return false; - if (!getItemParamListList() - .equals(other.getItemParamListList())) return false; - if (!internalGetItemGuidCountMap().equals( - other.internalGetItemGuidCountMap())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GIVINGID_FIELD_NUMBER; - hash = (53 * hash) + getGivingId(); - if (getItemParamListCount() > 0) { - hash = (37 * hash) + ITEMPARAMLIST_FIELD_NUMBER; - hash = (53 * hash) + getItemParamListList().hashCode(); - } - if (!internalGetItemGuidCountMap().getMap().isEmpty()) { - hash = (37 * hash) + ITEMGUIDCOUNTMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetItemGuidCountMap().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ItemGivingReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ItemGivingReq) - emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ItemGivingReqOuterClass.internal_static_ItemGivingReq_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetItemGuidCountMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 3: - return internalGetMutableItemGuidCountMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ItemGivingReqOuterClass.internal_static_ItemGivingReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.class, emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getItemParamListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - givingId_ = 0; - - if (itemParamListBuilder_ == null) { - itemParamList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - itemParamListBuilder_.clear(); - } - internalGetMutableItemGuidCountMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ItemGivingReqOuterClass.internal_static_ItemGivingReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq build() { - emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq buildPartial() { - emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq result = new emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq(this); - int from_bitField0_ = bitField0_; - result.givingId_ = givingId_; - if (itemParamListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - itemParamList_ = java.util.Collections.unmodifiableList(itemParamList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.itemParamList_ = itemParamList_; - } else { - result.itemParamList_ = itemParamListBuilder_.build(); - } - result.itemGuidCountMap_ = internalGetItemGuidCountMap(); - result.itemGuidCountMap_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq) { - return mergeFrom((emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq other) { - if (other == emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.getDefaultInstance()) return this; - if (other.getGivingId() != 0) { - setGivingId(other.getGivingId()); - } - if (itemParamListBuilder_ == null) { - if (!other.itemParamList_.isEmpty()) { - if (itemParamList_.isEmpty()) { - itemParamList_ = other.itemParamList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureItemParamListIsMutable(); - itemParamList_.addAll(other.itemParamList_); - } - onChanged(); - } - } else { - if (!other.itemParamList_.isEmpty()) { - if (itemParamListBuilder_.isEmpty()) { - itemParamListBuilder_.dispose(); - itemParamListBuilder_ = null; - itemParamList_ = other.itemParamList_; - bitField0_ = (bitField0_ & ~0x00000001); - itemParamListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getItemParamListFieldBuilder() : null; - } else { - itemParamListBuilder_.addAllMessages(other.itemParamList_); - } - } - } - internalGetMutableItemGuidCountMap().mergeFrom( - other.internalGetItemGuidCountMap()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int givingId_ ; - /** - * <code>uint32 givingId = 1;</code> - * @return The givingId. - */ - @java.lang.Override - public int getGivingId() { - return givingId_; - } - /** - * <code>uint32 givingId = 1;</code> - * @param value The givingId to set. - * @return This builder for chaining. - */ - public Builder setGivingId(int value) { - - givingId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 givingId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearGivingId() { - - givingId_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> itemParamList_ = - java.util.Collections.emptyList(); - private void ensureItemParamListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - itemParamList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>(itemParamList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> itemParamListBuilder_; - - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getItemParamListList() { - if (itemParamListBuilder_ == null) { - return java.util.Collections.unmodifiableList(itemParamList_); - } else { - return itemParamListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - public int getItemParamListCount() { - if (itemParamListBuilder_ == null) { - return itemParamList_.size(); - } else { - return itemParamListBuilder_.getCount(); - } - } - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) { - if (itemParamListBuilder_ == null) { - return itemParamList_.get(index); - } else { - return itemParamListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - public Builder setItemParamList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (itemParamListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemParamListIsMutable(); - itemParamList_.set(index, value); - onChanged(); - } else { - itemParamListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - public Builder setItemParamList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - itemParamList_.set(index, builderForValue.build()); - onChanged(); - } else { - itemParamListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - public Builder addItemParamList(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (itemParamListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemParamListIsMutable(); - itemParamList_.add(value); - onChanged(); - } else { - itemParamListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - public Builder addItemParamList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (itemParamListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemParamListIsMutable(); - itemParamList_.add(index, value); - onChanged(); - } else { - itemParamListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - public Builder addItemParamList( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - itemParamList_.add(builderForValue.build()); - onChanged(); - } else { - itemParamListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - public Builder addItemParamList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - itemParamList_.add(index, builderForValue.build()); - onChanged(); - } else { - itemParamListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - public Builder addAllItemParamList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> values) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, itemParamList_); - onChanged(); - } else { - itemParamListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - public Builder clearItemParamList() { - if (itemParamListBuilder_ == null) { - itemParamList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - itemParamListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - public Builder removeItemParamList(int index) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - itemParamList_.remove(index); - onChanged(); - } else { - itemParamListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getItemParamListBuilder( - int index) { - return getItemParamListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder( - int index) { - if (itemParamListBuilder_ == null) { - return itemParamList_.get(index); } else { - return itemParamListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getItemParamListOrBuilderList() { - if (itemParamListBuilder_ != null) { - return itemParamListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(itemParamList_); - } - } - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder() { - return getItemParamListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); - } - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder( - int index) { - return getItemParamListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); - } - /** - * <code>repeated .ItemParam itemParamList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder> - getItemParamListBuilderList() { - return getItemParamListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getItemParamListFieldBuilder() { - if (itemParamListBuilder_ == null) { - itemParamListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>( - itemParamList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - itemParamList_ = null; - } - return itemParamListBuilder_; - } - - private com.google.protobuf.MapField< - java.lang.Long, java.lang.Integer> itemGuidCountMap_; - private com.google.protobuf.MapField<java.lang.Long, java.lang.Integer> - internalGetItemGuidCountMap() { - if (itemGuidCountMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ItemGuidCountMapDefaultEntryHolder.defaultEntry); - } - return itemGuidCountMap_; - } - private com.google.protobuf.MapField<java.lang.Long, java.lang.Integer> - internalGetMutableItemGuidCountMap() { - onChanged();; - if (itemGuidCountMap_ == null) { - itemGuidCountMap_ = com.google.protobuf.MapField.newMapField( - ItemGuidCountMapDefaultEntryHolder.defaultEntry); - } - if (!itemGuidCountMap_.isMutable()) { - itemGuidCountMap_ = itemGuidCountMap_.copy(); - } - return itemGuidCountMap_; - } - - public int getItemGuidCountMapCount() { - return internalGetItemGuidCountMap().getMap().size(); - } - /** - * <code>map<uint64, uint32> itemGuidCountMap = 3;</code> - */ - - @java.lang.Override - public boolean containsItemGuidCountMap( - long key) { - - return internalGetItemGuidCountMap().getMap().containsKey(key); - } - /** - * Use {@link #getItemGuidCountMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Long, java.lang.Integer> getItemGuidCountMap() { - return getItemGuidCountMapMap(); - } - /** - * <code>map<uint64, uint32> itemGuidCountMap = 3;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Long, java.lang.Integer> getItemGuidCountMapMap() { - return internalGetItemGuidCountMap().getMap(); - } - /** - * <code>map<uint64, uint32> itemGuidCountMap = 3;</code> - */ - @java.lang.Override - - public int getItemGuidCountMapOrDefault( - long key, - int defaultValue) { - - java.util.Map<java.lang.Long, java.lang.Integer> map = - internalGetItemGuidCountMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint64, uint32> itemGuidCountMap = 3;</code> - */ - @java.lang.Override - - public int getItemGuidCountMapOrThrow( - long key) { - - java.util.Map<java.lang.Long, java.lang.Integer> map = - internalGetItemGuidCountMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearItemGuidCountMap() { - internalGetMutableItemGuidCountMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint64, uint32> itemGuidCountMap = 3;</code> - */ - - public Builder removeItemGuidCountMap( - long key) { - - internalGetMutableItemGuidCountMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Long, java.lang.Integer> - getMutableItemGuidCountMap() { - return internalGetMutableItemGuidCountMap().getMutableMap(); - } - /** - * <code>map<uint64, uint32> itemGuidCountMap = 3;</code> - */ - public Builder putItemGuidCountMap( - long key, - int value) { - - - internalGetMutableItemGuidCountMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint64, uint32> itemGuidCountMap = 3;</code> - */ - - public Builder putAllItemGuidCountMap( - java.util.Map<java.lang.Long, java.lang.Integer> values) { - internalGetMutableItemGuidCountMap().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ItemGivingReq) - } - - // @@protoc_insertion_point(class_scope:ItemGivingReq) - private static final emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq(); - } - - public static emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ItemGivingReq> - PARSER = new com.google.protobuf.AbstractParser<ItemGivingReq>() { - @java.lang.Override - public ItemGivingReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ItemGivingReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ItemGivingReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ItemGivingReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ItemGivingReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ItemGivingReq_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ItemGivingReq_ItemGuidCountMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ItemGivingReq_ItemGuidCountMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023ItemGivingReq.proto\032\017ItemParam.proto\"\275" + - "\001\n\rItemGivingReq\022\020\n\010givingId\030\001 \001(\r\022!\n\rit" + - "emParamList\030\002 \003(\0132\n.ItemParam\022>\n\020itemGui" + - "dCountMap\030\003 \003(\0132$.ItemGivingReq.ItemGuid" + - "CountMapEntry\0327\n\025ItemGuidCountMapEntry\022\013" + - "\n\003key\030\001 \001(\004\022\r\n\005value\030\002 \001(\r:\0028\001B\033\n\031emu.gr" + - "asscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(), - }); - internal_static_ItemGivingReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ItemGivingReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ItemGivingReq_descriptor, - new java.lang.String[] { "GivingId", "ItemParamList", "ItemGuidCountMap", }); - internal_static_ItemGivingReq_ItemGuidCountMapEntry_descriptor = - internal_static_ItemGivingReq_descriptor.getNestedTypes().get(0); - internal_static_ItemGivingReq_ItemGuidCountMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ItemGivingReq_ItemGuidCountMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ItemGivingRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ItemGivingRspOuterClass.java deleted file mode 100644 index 106a260c7..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ItemGivingRspOuterClass.java +++ /dev/null @@ -1,606 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ItemGivingRsp.proto - -package emu.grasscutter.net.proto; - -public final class ItemGivingRspOuterClass { - private ItemGivingRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ItemGivingRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:ItemGivingRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint32 givingId = 2;</code> - * @return The givingId. - */ - int getGivingId(); - } - /** - * Protobuf type {@code ItemGivingRsp} - */ - public static final class ItemGivingRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ItemGivingRsp) - ItemGivingRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use ItemGivingRsp.newBuilder() to construct. - private ItemGivingRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ItemGivingRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ItemGivingRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ItemGivingRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - givingId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ItemGivingRspOuterClass.internal_static_ItemGivingRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ItemGivingRspOuterClass.internal_static_ItemGivingRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp.class, emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int GIVINGID_FIELD_NUMBER = 2; - private int givingId_; - /** - * <code>uint32 givingId = 2;</code> - * @return The givingId. - */ - @java.lang.Override - public int getGivingId() { - return givingId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (givingId_ != 0) { - output.writeUInt32(2, givingId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (givingId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, givingId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp other = (emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getGivingId() - != other.getGivingId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + GIVINGID_FIELD_NUMBER; - hash = (53 * hash) + getGivingId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ItemGivingRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ItemGivingRsp) - emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ItemGivingRspOuterClass.internal_static_ItemGivingRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ItemGivingRspOuterClass.internal_static_ItemGivingRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp.class, emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - givingId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ItemGivingRspOuterClass.internal_static_ItemGivingRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp build() { - emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp buildPartial() { - emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp result = new emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp(this); - result.retcode_ = retcode_; - result.givingId_ = givingId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp) { - return mergeFrom((emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp other) { - if (other == emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getGivingId() != 0) { - setGivingId(other.getGivingId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int givingId_ ; - /** - * <code>uint32 givingId = 2;</code> - * @return The givingId. - */ - @java.lang.Override - public int getGivingId() { - return givingId_; - } - /** - * <code>uint32 givingId = 2;</code> - * @param value The givingId to set. - * @return This builder for chaining. - */ - public Builder setGivingId(int value) { - - givingId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 givingId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearGivingId() { - - givingId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ItemGivingRsp) - } - - // @@protoc_insertion_point(class_scope:ItemGivingRsp) - private static final emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp(); - } - - public static emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ItemGivingRsp> - PARSER = new com.google.protobuf.AbstractParser<ItemGivingRsp>() { - @java.lang.Override - public ItemGivingRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ItemGivingRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ItemGivingRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ItemGivingRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemGivingRspOuterClass.ItemGivingRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ItemGivingRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ItemGivingRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023ItemGivingRsp.proto\"2\n\rItemGivingRsp\022\017" + - "\n\007retcode\030\001 \001(\005\022\020\n\010givingId\030\002 \001(\rB\033\n\031emu" + - ".grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ItemGivingRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ItemGivingRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ItemGivingRsp_descriptor, - new java.lang.String[] { "Retcode", "GivingId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ItemHintOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ItemHintOuterClass.java deleted file mode 100644 index 87397ac2a..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ItemHintOuterClass.java +++ /dev/null @@ -1,677 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ItemHint.proto - -package emu.grasscutter.net.proto; - -public final class ItemHintOuterClass { - private ItemHintOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ItemHintOrBuilder extends - // @@protoc_insertion_point(interface_extends:ItemHint) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 itemId = 1;</code> - * @return The itemId. - */ - int getItemId(); - - /** - * <code>uint32 count = 2;</code> - * @return The count. - */ - int getCount(); - - /** - * <code>bool isNew = 3;</code> - * @return The isNew. - */ - boolean getIsNew(); - } - /** - * Protobuf type {@code ItemHint} - */ - public static final class ItemHint extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ItemHint) - ItemHintOrBuilder { - private static final long serialVersionUID = 0L; - // Use ItemHint.newBuilder() to construct. - private ItemHint(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ItemHint() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ItemHint(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ItemHint( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - itemId_ = input.readUInt32(); - break; - } - case 16: { - - count_ = input.readUInt32(); - break; - } - case 24: { - - isNew_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ItemHintOuterClass.internal_static_ItemHint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ItemHintOuterClass.internal_static_ItemHint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.class, emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder.class); - } - - public static final int ITEMID_FIELD_NUMBER = 1; - private int itemId_; - /** - * <code>uint32 itemId = 1;</code> - * @return The itemId. - */ - @java.lang.Override - public int getItemId() { - return itemId_; - } - - public static final int COUNT_FIELD_NUMBER = 2; - private int count_; - /** - * <code>uint32 count = 2;</code> - * @return The count. - */ - @java.lang.Override - public int getCount() { - return count_; - } - - public static final int ISNEW_FIELD_NUMBER = 3; - private boolean isNew_; - /** - * <code>bool isNew = 3;</code> - * @return The isNew. - */ - @java.lang.Override - public boolean getIsNew() { - return isNew_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (itemId_ != 0) { - output.writeUInt32(1, itemId_); - } - if (count_ != 0) { - output.writeUInt32(2, count_); - } - if (isNew_ != false) { - output.writeBool(3, isNew_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (itemId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, itemId_); - } - if (count_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, count_); - } - if (isNew_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, isNew_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint other = (emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint) obj; - - if (getItemId() - != other.getItemId()) return false; - if (getCount() - != other.getCount()) return false; - if (getIsNew() - != other.getIsNew()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ITEMID_FIELD_NUMBER; - hash = (53 * hash) + getItemId(); - hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + getCount(); - hash = (37 * hash) + ISNEW_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsNew()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ItemHint} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ItemHint) - emu.grasscutter.net.proto.ItemHintOuterClass.ItemHintOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ItemHintOuterClass.internal_static_ItemHint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ItemHintOuterClass.internal_static_ItemHint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.class, emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - itemId_ = 0; - - count_ = 0; - - isNew_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ItemHintOuterClass.internal_static_ItemHint_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint build() { - emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint buildPartial() { - emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint result = new emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint(this); - result.itemId_ = itemId_; - result.count_ = count_; - result.isNew_ = isNew_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint) { - return mergeFrom((emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint other) { - if (other == emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.getDefaultInstance()) return this; - if (other.getItemId() != 0) { - setItemId(other.getItemId()); - } - if (other.getCount() != 0) { - setCount(other.getCount()); - } - if (other.getIsNew() != false) { - setIsNew(other.getIsNew()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int itemId_ ; - /** - * <code>uint32 itemId = 1;</code> - * @return The itemId. - */ - @java.lang.Override - public int getItemId() { - return itemId_; - } - /** - * <code>uint32 itemId = 1;</code> - * @param value The itemId to set. - * @return This builder for chaining. - */ - public Builder setItemId(int value) { - - itemId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 itemId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearItemId() { - - itemId_ = 0; - onChanged(); - return this; - } - - private int count_ ; - /** - * <code>uint32 count = 2;</code> - * @return The count. - */ - @java.lang.Override - public int getCount() { - return count_; - } - /** - * <code>uint32 count = 2;</code> - * @param value The count to set. - * @return This builder for chaining. - */ - public Builder setCount(int value) { - - count_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 count = 2;</code> - * @return This builder for chaining. - */ - public Builder clearCount() { - - count_ = 0; - onChanged(); - return this; - } - - private boolean isNew_ ; - /** - * <code>bool isNew = 3;</code> - * @return The isNew. - */ - @java.lang.Override - public boolean getIsNew() { - return isNew_; - } - /** - * <code>bool isNew = 3;</code> - * @param value The isNew to set. - * @return This builder for chaining. - */ - public Builder setIsNew(boolean value) { - - isNew_ = value; - onChanged(); - return this; - } - /** - * <code>bool isNew = 3;</code> - * @return This builder for chaining. - */ - public Builder clearIsNew() { - - isNew_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ItemHint) - } - - // @@protoc_insertion_point(class_scope:ItemHint) - private static final emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint(); - } - - public static emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ItemHint> - PARSER = new com.google.protobuf.AbstractParser<ItemHint>() { - @java.lang.Override - public ItemHint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ItemHint(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ItemHint> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ItemHint> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ItemHint_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ItemHint_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\016ItemHint.proto\"8\n\010ItemHint\022\016\n\006itemId\030\001" + - " \001(\r\022\r\n\005count\030\002 \001(\r\022\r\n\005isNew\030\003 \001(\010B\033\n\031em" + - "u.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ItemHint_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ItemHint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ItemHint_descriptor, - new java.lang.String[] { "ItemId", "Count", "IsNew", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ItemOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ItemOuterClass.java deleted file mode 100644 index ce521bd08..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ItemOuterClass.java +++ /dev/null @@ -1,1374 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Item.proto - -package emu.grasscutter.net.proto; - -public final class ItemOuterClass { - private ItemOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ItemOrBuilder extends - // @@protoc_insertion_point(interface_extends:Item) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 itemId = 1;</code> - * @return The itemId. - */ - int getItemId(); - - /** - * <code>uint64 guid = 2;</code> - * @return The guid. - */ - long getGuid(); - - /** - * <code>.Material material = 5;</code> - * @return Whether the material field is set. - */ - boolean hasMaterial(); - /** - * <code>.Material material = 5;</code> - * @return The material. - */ - emu.grasscutter.net.proto.MaterialOuterClass.Material getMaterial(); - /** - * <code>.Material material = 5;</code> - */ - emu.grasscutter.net.proto.MaterialOuterClass.MaterialOrBuilder getMaterialOrBuilder(); - - /** - * <code>.Equip equip = 6;</code> - * @return Whether the equip field is set. - */ - boolean hasEquip(); - /** - * <code>.Equip equip = 6;</code> - * @return The equip. - */ - emu.grasscutter.net.proto.EquipOuterClass.Equip getEquip(); - /** - * <code>.Equip equip = 6;</code> - */ - emu.grasscutter.net.proto.EquipOuterClass.EquipOrBuilder getEquipOrBuilder(); - - /** - * <code>.Furniture furniture = 7;</code> - * @return Whether the furniture field is set. - */ - boolean hasFurniture(); - /** - * <code>.Furniture furniture = 7;</code> - * @return The furniture. - */ - emu.grasscutter.net.proto.FurnitureOuterClass.Furniture getFurniture(); - /** - * <code>.Furniture furniture = 7;</code> - */ - emu.grasscutter.net.proto.FurnitureOuterClass.FurnitureOrBuilder getFurnitureOrBuilder(); - - public emu.grasscutter.net.proto.ItemOuterClass.Item.DetailCase getDetailCase(); - } - /** - * Protobuf type {@code Item} - */ - public static final class Item extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Item) - ItemOrBuilder { - private static final long serialVersionUID = 0L; - // Use Item.newBuilder() to construct. - private Item(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Item() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Item(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Item( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - itemId_ = input.readUInt32(); - break; - } - case 16: { - - guid_ = input.readUInt64(); - break; - } - case 42: { - emu.grasscutter.net.proto.MaterialOuterClass.Material.Builder subBuilder = null; - if (detailCase_ == 5) { - subBuilder = ((emu.grasscutter.net.proto.MaterialOuterClass.Material) detail_).toBuilder(); - } - detail_ = - input.readMessage(emu.grasscutter.net.proto.MaterialOuterClass.Material.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.MaterialOuterClass.Material) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 5; - break; - } - case 50: { - emu.grasscutter.net.proto.EquipOuterClass.Equip.Builder subBuilder = null; - if (detailCase_ == 6) { - subBuilder = ((emu.grasscutter.net.proto.EquipOuterClass.Equip) detail_).toBuilder(); - } - detail_ = - input.readMessage(emu.grasscutter.net.proto.EquipOuterClass.Equip.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.EquipOuterClass.Equip) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 6; - break; - } - case 58: { - emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.Builder subBuilder = null; - if (detailCase_ == 7) { - subBuilder = ((emu.grasscutter.net.proto.FurnitureOuterClass.Furniture) detail_).toBuilder(); - } - detail_ = - input.readMessage(emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.FurnitureOuterClass.Furniture) detail_); - detail_ = subBuilder.buildPartial(); - } - detailCase_ = 7; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ItemOuterClass.internal_static_Item_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ItemOuterClass.internal_static_Item_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ItemOuterClass.Item.class, emu.grasscutter.net.proto.ItemOuterClass.Item.Builder.class); - } - - private int detailCase_ = 0; - private java.lang.Object detail_; - public enum DetailCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - MATERIAL(5), - EQUIP(6), - FURNITURE(7), - DETAIL_NOT_SET(0); - private final int value; - private DetailCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DetailCase valueOf(int value) { - return forNumber(value); - } - - public static DetailCase forNumber(int value) { - switch (value) { - case 5: return MATERIAL; - case 6: return EQUIP; - case 7: return FURNITURE; - case 0: return DETAIL_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public DetailCase - getDetailCase() { - return DetailCase.forNumber( - detailCase_); - } - - public static final int ITEMID_FIELD_NUMBER = 1; - private int itemId_; - /** - * <code>uint32 itemId = 1;</code> - * @return The itemId. - */ - @java.lang.Override - public int getItemId() { - return itemId_; - } - - public static final int GUID_FIELD_NUMBER = 2; - private long guid_; - /** - * <code>uint64 guid = 2;</code> - * @return The guid. - */ - @java.lang.Override - public long getGuid() { - return guid_; - } - - public static final int MATERIAL_FIELD_NUMBER = 5; - /** - * <code>.Material material = 5;</code> - * @return Whether the material field is set. - */ - @java.lang.Override - public boolean hasMaterial() { - return detailCase_ == 5; - } - /** - * <code>.Material material = 5;</code> - * @return The material. - */ - @java.lang.Override - public emu.grasscutter.net.proto.MaterialOuterClass.Material getMaterial() { - if (detailCase_ == 5) { - return (emu.grasscutter.net.proto.MaterialOuterClass.Material) detail_; - } - return emu.grasscutter.net.proto.MaterialOuterClass.Material.getDefaultInstance(); - } - /** - * <code>.Material material = 5;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.MaterialOuterClass.MaterialOrBuilder getMaterialOrBuilder() { - if (detailCase_ == 5) { - return (emu.grasscutter.net.proto.MaterialOuterClass.Material) detail_; - } - return emu.grasscutter.net.proto.MaterialOuterClass.Material.getDefaultInstance(); - } - - public static final int EQUIP_FIELD_NUMBER = 6; - /** - * <code>.Equip equip = 6;</code> - * @return Whether the equip field is set. - */ - @java.lang.Override - public boolean hasEquip() { - return detailCase_ == 6; - } - /** - * <code>.Equip equip = 6;</code> - * @return The equip. - */ - @java.lang.Override - public emu.grasscutter.net.proto.EquipOuterClass.Equip getEquip() { - if (detailCase_ == 6) { - return (emu.grasscutter.net.proto.EquipOuterClass.Equip) detail_; - } - return emu.grasscutter.net.proto.EquipOuterClass.Equip.getDefaultInstance(); - } - /** - * <code>.Equip equip = 6;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.EquipOuterClass.EquipOrBuilder getEquipOrBuilder() { - if (detailCase_ == 6) { - return (emu.grasscutter.net.proto.EquipOuterClass.Equip) detail_; - } - return emu.grasscutter.net.proto.EquipOuterClass.Equip.getDefaultInstance(); - } - - public static final int FURNITURE_FIELD_NUMBER = 7; - /** - * <code>.Furniture furniture = 7;</code> - * @return Whether the furniture field is set. - */ - @java.lang.Override - public boolean hasFurniture() { - return detailCase_ == 7; - } - /** - * <code>.Furniture furniture = 7;</code> - * @return The furniture. - */ - @java.lang.Override - public emu.grasscutter.net.proto.FurnitureOuterClass.Furniture getFurniture() { - if (detailCase_ == 7) { - return (emu.grasscutter.net.proto.FurnitureOuterClass.Furniture) detail_; - } - return emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.getDefaultInstance(); - } - /** - * <code>.Furniture furniture = 7;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.FurnitureOuterClass.FurnitureOrBuilder getFurnitureOrBuilder() { - if (detailCase_ == 7) { - return (emu.grasscutter.net.proto.FurnitureOuterClass.Furniture) detail_; - } - return emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (itemId_ != 0) { - output.writeUInt32(1, itemId_); - } - if (guid_ != 0L) { - output.writeUInt64(2, guid_); - } - if (detailCase_ == 5) { - output.writeMessage(5, (emu.grasscutter.net.proto.MaterialOuterClass.Material) detail_); - } - if (detailCase_ == 6) { - output.writeMessage(6, (emu.grasscutter.net.proto.EquipOuterClass.Equip) detail_); - } - if (detailCase_ == 7) { - output.writeMessage(7, (emu.grasscutter.net.proto.FurnitureOuterClass.Furniture) detail_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (itemId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, itemId_); - } - if (guid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, guid_); - } - if (detailCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (emu.grasscutter.net.proto.MaterialOuterClass.Material) detail_); - } - if (detailCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (emu.grasscutter.net.proto.EquipOuterClass.Equip) detail_); - } - if (detailCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (emu.grasscutter.net.proto.FurnitureOuterClass.Furniture) detail_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ItemOuterClass.Item)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ItemOuterClass.Item other = (emu.grasscutter.net.proto.ItemOuterClass.Item) obj; - - if (getItemId() - != other.getItemId()) return false; - if (getGuid() - != other.getGuid()) return false; - if (!getDetailCase().equals(other.getDetailCase())) return false; - switch (detailCase_) { - case 5: - if (!getMaterial() - .equals(other.getMaterial())) return false; - break; - case 6: - if (!getEquip() - .equals(other.getEquip())) return false; - break; - case 7: - if (!getFurniture() - .equals(other.getFurniture())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ITEMID_FIELD_NUMBER; - hash = (53 * hash) + getItemId(); - hash = (37 * hash) + GUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGuid()); - switch (detailCase_) { - case 5: - hash = (37 * hash) + MATERIAL_FIELD_NUMBER; - hash = (53 * hash) + getMaterial().hashCode(); - break; - case 6: - hash = (37 * hash) + EQUIP_FIELD_NUMBER; - hash = (53 * hash) + getEquip().hashCode(); - break; - case 7: - hash = (37 * hash) + FURNITURE_FIELD_NUMBER; - hash = (53 * hash) + getFurniture().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ItemOuterClass.Item parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ItemOuterClass.Item parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemOuterClass.Item parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ItemOuterClass.Item parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemOuterClass.Item parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ItemOuterClass.Item parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemOuterClass.Item parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ItemOuterClass.Item parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemOuterClass.Item parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ItemOuterClass.Item parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemOuterClass.Item parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ItemOuterClass.Item parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ItemOuterClass.Item prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Item} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:Item) - emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ItemOuterClass.internal_static_Item_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ItemOuterClass.internal_static_Item_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ItemOuterClass.Item.class, emu.grasscutter.net.proto.ItemOuterClass.Item.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ItemOuterClass.Item.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - itemId_ = 0; - - guid_ = 0L; - - detailCase_ = 0; - detail_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ItemOuterClass.internal_static_Item_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemOuterClass.Item getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ItemOuterClass.Item.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemOuterClass.Item build() { - emu.grasscutter.net.proto.ItemOuterClass.Item result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemOuterClass.Item buildPartial() { - emu.grasscutter.net.proto.ItemOuterClass.Item result = new emu.grasscutter.net.proto.ItemOuterClass.Item(this); - result.itemId_ = itemId_; - result.guid_ = guid_; - if (detailCase_ == 5) { - if (materialBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = materialBuilder_.build(); - } - } - if (detailCase_ == 6) { - if (equipBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = equipBuilder_.build(); - } - } - if (detailCase_ == 7) { - if (furnitureBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = furnitureBuilder_.build(); - } - } - result.detailCase_ = detailCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ItemOuterClass.Item) { - return mergeFrom((emu.grasscutter.net.proto.ItemOuterClass.Item)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ItemOuterClass.Item other) { - if (other == emu.grasscutter.net.proto.ItemOuterClass.Item.getDefaultInstance()) return this; - if (other.getItemId() != 0) { - setItemId(other.getItemId()); - } - if (other.getGuid() != 0L) { - setGuid(other.getGuid()); - } - switch (other.getDetailCase()) { - case MATERIAL: { - mergeMaterial(other.getMaterial()); - break; - } - case EQUIP: { - mergeEquip(other.getEquip()); - break; - } - case FURNITURE: { - mergeFurniture(other.getFurniture()); - break; - } - case DETAIL_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ItemOuterClass.Item parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ItemOuterClass.Item) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int detailCase_ = 0; - private java.lang.Object detail_; - public DetailCase - getDetailCase() { - return DetailCase.forNumber( - detailCase_); - } - - public Builder clearDetail() { - detailCase_ = 0; - detail_ = null; - onChanged(); - return this; - } - - - private int itemId_ ; - /** - * <code>uint32 itemId = 1;</code> - * @return The itemId. - */ - @java.lang.Override - public int getItemId() { - return itemId_; - } - /** - * <code>uint32 itemId = 1;</code> - * @param value The itemId to set. - * @return This builder for chaining. - */ - public Builder setItemId(int value) { - - itemId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 itemId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearItemId() { - - itemId_ = 0; - onChanged(); - return this; - } - - private long guid_ ; - /** - * <code>uint64 guid = 2;</code> - * @return The guid. - */ - @java.lang.Override - public long getGuid() { - return guid_; - } - /** - * <code>uint64 guid = 2;</code> - * @param value The guid to set. - * @return This builder for chaining. - */ - public Builder setGuid(long value) { - - guid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 guid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearGuid() { - - guid_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MaterialOuterClass.Material, emu.grasscutter.net.proto.MaterialOuterClass.Material.Builder, emu.grasscutter.net.proto.MaterialOuterClass.MaterialOrBuilder> materialBuilder_; - /** - * <code>.Material material = 5;</code> - * @return Whether the material field is set. - */ - @java.lang.Override - public boolean hasMaterial() { - return detailCase_ == 5; - } - /** - * <code>.Material material = 5;</code> - * @return The material. - */ - @java.lang.Override - public emu.grasscutter.net.proto.MaterialOuterClass.Material getMaterial() { - if (materialBuilder_ == null) { - if (detailCase_ == 5) { - return (emu.grasscutter.net.proto.MaterialOuterClass.Material) detail_; - } - return emu.grasscutter.net.proto.MaterialOuterClass.Material.getDefaultInstance(); - } else { - if (detailCase_ == 5) { - return materialBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.MaterialOuterClass.Material.getDefaultInstance(); - } - } - /** - * <code>.Material material = 5;</code> - */ - public Builder setMaterial(emu.grasscutter.net.proto.MaterialOuterClass.Material value) { - if (materialBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - detail_ = value; - onChanged(); - } else { - materialBuilder_.setMessage(value); - } - detailCase_ = 5; - return this; - } - /** - * <code>.Material material = 5;</code> - */ - public Builder setMaterial( - emu.grasscutter.net.proto.MaterialOuterClass.Material.Builder builderForValue) { - if (materialBuilder_ == null) { - detail_ = builderForValue.build(); - onChanged(); - } else { - materialBuilder_.setMessage(builderForValue.build()); - } - detailCase_ = 5; - return this; - } - /** - * <code>.Material material = 5;</code> - */ - public Builder mergeMaterial(emu.grasscutter.net.proto.MaterialOuterClass.Material value) { - if (materialBuilder_ == null) { - if (detailCase_ == 5 && - detail_ != emu.grasscutter.net.proto.MaterialOuterClass.Material.getDefaultInstance()) { - detail_ = emu.grasscutter.net.proto.MaterialOuterClass.Material.newBuilder((emu.grasscutter.net.proto.MaterialOuterClass.Material) detail_) - .mergeFrom(value).buildPartial(); - } else { - detail_ = value; - } - onChanged(); - } else { - if (detailCase_ == 5) { - materialBuilder_.mergeFrom(value); - } - materialBuilder_.setMessage(value); - } - detailCase_ = 5; - return this; - } - /** - * <code>.Material material = 5;</code> - */ - public Builder clearMaterial() { - if (materialBuilder_ == null) { - if (detailCase_ == 5) { - detailCase_ = 0; - detail_ = null; - onChanged(); - } - } else { - if (detailCase_ == 5) { - detailCase_ = 0; - detail_ = null; - } - materialBuilder_.clear(); - } - return this; - } - /** - * <code>.Material material = 5;</code> - */ - public emu.grasscutter.net.proto.MaterialOuterClass.Material.Builder getMaterialBuilder() { - return getMaterialFieldBuilder().getBuilder(); - } - /** - * <code>.Material material = 5;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.MaterialOuterClass.MaterialOrBuilder getMaterialOrBuilder() { - if ((detailCase_ == 5) && (materialBuilder_ != null)) { - return materialBuilder_.getMessageOrBuilder(); - } else { - if (detailCase_ == 5) { - return (emu.grasscutter.net.proto.MaterialOuterClass.Material) detail_; - } - return emu.grasscutter.net.proto.MaterialOuterClass.Material.getDefaultInstance(); - } - } - /** - * <code>.Material material = 5;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MaterialOuterClass.Material, emu.grasscutter.net.proto.MaterialOuterClass.Material.Builder, emu.grasscutter.net.proto.MaterialOuterClass.MaterialOrBuilder> - getMaterialFieldBuilder() { - if (materialBuilder_ == null) { - if (!(detailCase_ == 5)) { - detail_ = emu.grasscutter.net.proto.MaterialOuterClass.Material.getDefaultInstance(); - } - materialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MaterialOuterClass.Material, emu.grasscutter.net.proto.MaterialOuterClass.Material.Builder, emu.grasscutter.net.proto.MaterialOuterClass.MaterialOrBuilder>( - (emu.grasscutter.net.proto.MaterialOuterClass.Material) detail_, - getParentForChildren(), - isClean()); - detail_ = null; - } - detailCase_ = 5; - onChanged();; - return materialBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.EquipOuterClass.Equip, emu.grasscutter.net.proto.EquipOuterClass.Equip.Builder, emu.grasscutter.net.proto.EquipOuterClass.EquipOrBuilder> equipBuilder_; - /** - * <code>.Equip equip = 6;</code> - * @return Whether the equip field is set. - */ - @java.lang.Override - public boolean hasEquip() { - return detailCase_ == 6; - } - /** - * <code>.Equip equip = 6;</code> - * @return The equip. - */ - @java.lang.Override - public emu.grasscutter.net.proto.EquipOuterClass.Equip getEquip() { - if (equipBuilder_ == null) { - if (detailCase_ == 6) { - return (emu.grasscutter.net.proto.EquipOuterClass.Equip) detail_; - } - return emu.grasscutter.net.proto.EquipOuterClass.Equip.getDefaultInstance(); - } else { - if (detailCase_ == 6) { - return equipBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.EquipOuterClass.Equip.getDefaultInstance(); - } - } - /** - * <code>.Equip equip = 6;</code> - */ - public Builder setEquip(emu.grasscutter.net.proto.EquipOuterClass.Equip value) { - if (equipBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - detail_ = value; - onChanged(); - } else { - equipBuilder_.setMessage(value); - } - detailCase_ = 6; - return this; - } - /** - * <code>.Equip equip = 6;</code> - */ - public Builder setEquip( - emu.grasscutter.net.proto.EquipOuterClass.Equip.Builder builderForValue) { - if (equipBuilder_ == null) { - detail_ = builderForValue.build(); - onChanged(); - } else { - equipBuilder_.setMessage(builderForValue.build()); - } - detailCase_ = 6; - return this; - } - /** - * <code>.Equip equip = 6;</code> - */ - public Builder mergeEquip(emu.grasscutter.net.proto.EquipOuterClass.Equip value) { - if (equipBuilder_ == null) { - if (detailCase_ == 6 && - detail_ != emu.grasscutter.net.proto.EquipOuterClass.Equip.getDefaultInstance()) { - detail_ = emu.grasscutter.net.proto.EquipOuterClass.Equip.newBuilder((emu.grasscutter.net.proto.EquipOuterClass.Equip) detail_) - .mergeFrom(value).buildPartial(); - } else { - detail_ = value; - } - onChanged(); - } else { - if (detailCase_ == 6) { - equipBuilder_.mergeFrom(value); - } - equipBuilder_.setMessage(value); - } - detailCase_ = 6; - return this; - } - /** - * <code>.Equip equip = 6;</code> - */ - public Builder clearEquip() { - if (equipBuilder_ == null) { - if (detailCase_ == 6) { - detailCase_ = 0; - detail_ = null; - onChanged(); - } - } else { - if (detailCase_ == 6) { - detailCase_ = 0; - detail_ = null; - } - equipBuilder_.clear(); - } - return this; - } - /** - * <code>.Equip equip = 6;</code> - */ - public emu.grasscutter.net.proto.EquipOuterClass.Equip.Builder getEquipBuilder() { - return getEquipFieldBuilder().getBuilder(); - } - /** - * <code>.Equip equip = 6;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.EquipOuterClass.EquipOrBuilder getEquipOrBuilder() { - if ((detailCase_ == 6) && (equipBuilder_ != null)) { - return equipBuilder_.getMessageOrBuilder(); - } else { - if (detailCase_ == 6) { - return (emu.grasscutter.net.proto.EquipOuterClass.Equip) detail_; - } - return emu.grasscutter.net.proto.EquipOuterClass.Equip.getDefaultInstance(); - } - } - /** - * <code>.Equip equip = 6;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.EquipOuterClass.Equip, emu.grasscutter.net.proto.EquipOuterClass.Equip.Builder, emu.grasscutter.net.proto.EquipOuterClass.EquipOrBuilder> - getEquipFieldBuilder() { - if (equipBuilder_ == null) { - if (!(detailCase_ == 6)) { - detail_ = emu.grasscutter.net.proto.EquipOuterClass.Equip.getDefaultInstance(); - } - equipBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.EquipOuterClass.Equip, emu.grasscutter.net.proto.EquipOuterClass.Equip.Builder, emu.grasscutter.net.proto.EquipOuterClass.EquipOrBuilder>( - (emu.grasscutter.net.proto.EquipOuterClass.Equip) detail_, - getParentForChildren(), - isClean()); - detail_ = null; - } - detailCase_ = 6; - onChanged();; - return equipBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.FurnitureOuterClass.Furniture, emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.Builder, emu.grasscutter.net.proto.FurnitureOuterClass.FurnitureOrBuilder> furnitureBuilder_; - /** - * <code>.Furniture furniture = 7;</code> - * @return Whether the furniture field is set. - */ - @java.lang.Override - public boolean hasFurniture() { - return detailCase_ == 7; - } - /** - * <code>.Furniture furniture = 7;</code> - * @return The furniture. - */ - @java.lang.Override - public emu.grasscutter.net.proto.FurnitureOuterClass.Furniture getFurniture() { - if (furnitureBuilder_ == null) { - if (detailCase_ == 7) { - return (emu.grasscutter.net.proto.FurnitureOuterClass.Furniture) detail_; - } - return emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.getDefaultInstance(); - } else { - if (detailCase_ == 7) { - return furnitureBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.getDefaultInstance(); - } - } - /** - * <code>.Furniture furniture = 7;</code> - */ - public Builder setFurniture(emu.grasscutter.net.proto.FurnitureOuterClass.Furniture value) { - if (furnitureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - detail_ = value; - onChanged(); - } else { - furnitureBuilder_.setMessage(value); - } - detailCase_ = 7; - return this; - } - /** - * <code>.Furniture furniture = 7;</code> - */ - public Builder setFurniture( - emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.Builder builderForValue) { - if (furnitureBuilder_ == null) { - detail_ = builderForValue.build(); - onChanged(); - } else { - furnitureBuilder_.setMessage(builderForValue.build()); - } - detailCase_ = 7; - return this; - } - /** - * <code>.Furniture furniture = 7;</code> - */ - public Builder mergeFurniture(emu.grasscutter.net.proto.FurnitureOuterClass.Furniture value) { - if (furnitureBuilder_ == null) { - if (detailCase_ == 7 && - detail_ != emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.getDefaultInstance()) { - detail_ = emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.newBuilder((emu.grasscutter.net.proto.FurnitureOuterClass.Furniture) detail_) - .mergeFrom(value).buildPartial(); - } else { - detail_ = value; - } - onChanged(); - } else { - if (detailCase_ == 7) { - furnitureBuilder_.mergeFrom(value); - } - furnitureBuilder_.setMessage(value); - } - detailCase_ = 7; - return this; - } - /** - * <code>.Furniture furniture = 7;</code> - */ - public Builder clearFurniture() { - if (furnitureBuilder_ == null) { - if (detailCase_ == 7) { - detailCase_ = 0; - detail_ = null; - onChanged(); - } - } else { - if (detailCase_ == 7) { - detailCase_ = 0; - detail_ = null; - } - furnitureBuilder_.clear(); - } - return this; - } - /** - * <code>.Furniture furniture = 7;</code> - */ - public emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.Builder getFurnitureBuilder() { - return getFurnitureFieldBuilder().getBuilder(); - } - /** - * <code>.Furniture furniture = 7;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.FurnitureOuterClass.FurnitureOrBuilder getFurnitureOrBuilder() { - if ((detailCase_ == 7) && (furnitureBuilder_ != null)) { - return furnitureBuilder_.getMessageOrBuilder(); - } else { - if (detailCase_ == 7) { - return (emu.grasscutter.net.proto.FurnitureOuterClass.Furniture) detail_; - } - return emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.getDefaultInstance(); - } - } - /** - * <code>.Furniture furniture = 7;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.FurnitureOuterClass.Furniture, emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.Builder, emu.grasscutter.net.proto.FurnitureOuterClass.FurnitureOrBuilder> - getFurnitureFieldBuilder() { - if (furnitureBuilder_ == null) { - if (!(detailCase_ == 7)) { - detail_ = emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.getDefaultInstance(); - } - furnitureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.FurnitureOuterClass.Furniture, emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.Builder, emu.grasscutter.net.proto.FurnitureOuterClass.FurnitureOrBuilder>( - (emu.grasscutter.net.proto.FurnitureOuterClass.Furniture) detail_, - getParentForChildren(), - isClean()); - detail_ = null; - } - detailCase_ = 7; - onChanged();; - return furnitureBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Item) - } - - // @@protoc_insertion_point(class_scope:Item) - private static final emu.grasscutter.net.proto.ItemOuterClass.Item DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ItemOuterClass.Item(); - } - - public static emu.grasscutter.net.proto.ItemOuterClass.Item getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<Item> - PARSER = new com.google.protobuf.AbstractParser<Item>() { - @java.lang.Override - public Item parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Item(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<Item> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Item> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemOuterClass.Item getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Item_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Item_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\nItem.proto\032\013Equip.proto\032\017Furniture.pro" + - "to\032\016Material.proto\"\207\001\n\004Item\022\016\n\006itemId\030\001 " + - "\001(\r\022\014\n\004guid\030\002 \001(\004\022\035\n\010material\030\005 \001(\0132\t.Ma" + - "terialH\000\022\027\n\005equip\030\006 \001(\0132\006.EquipH\000\022\037\n\tfur" + - "niture\030\007 \001(\0132\n.FurnitureH\000B\010\n\006detailB\033\n\031" + - "emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.EquipOuterClass.getDescriptor(), - emu.grasscutter.net.proto.FurnitureOuterClass.getDescriptor(), - emu.grasscutter.net.proto.MaterialOuterClass.getDescriptor(), - }); - internal_static_Item_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_Item_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Item_descriptor, - new java.lang.String[] { "ItemId", "Guid", "Material", "Equip", "Furniture", "Detail", }); - emu.grasscutter.net.proto.EquipOuterClass.getDescriptor(); - emu.grasscutter.net.proto.FurnitureOuterClass.getDescriptor(); - emu.grasscutter.net.proto.MaterialOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ItemParamOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ItemParamOuterClass.java deleted file mode 100644 index fe916babf..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ItemParamOuterClass.java +++ /dev/null @@ -1,606 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ItemParam.proto - -package emu.grasscutter.net.proto; - -public final class ItemParamOuterClass { - private ItemParamOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ItemParamOrBuilder extends - // @@protoc_insertion_point(interface_extends:ItemParam) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 itemId = 1;</code> - * @return The itemId. - */ - int getItemId(); - - /** - * <code>uint32 count = 2;</code> - * @return The count. - */ - int getCount(); - } - /** - * Protobuf type {@code ItemParam} - */ - public static final class ItemParam extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ItemParam) - ItemParamOrBuilder { - private static final long serialVersionUID = 0L; - // Use ItemParam.newBuilder() to construct. - private ItemParam(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ItemParam() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ItemParam(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ItemParam( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - itemId_ = input.readUInt32(); - break; - } - case 16: { - - count_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ItemParamOuterClass.internal_static_ItemParam_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ItemParamOuterClass.internal_static_ItemParam_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.class, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder.class); - } - - public static final int ITEMID_FIELD_NUMBER = 1; - private int itemId_; - /** - * <code>uint32 itemId = 1;</code> - * @return The itemId. - */ - @java.lang.Override - public int getItemId() { - return itemId_; - } - - public static final int COUNT_FIELD_NUMBER = 2; - private int count_; - /** - * <code>uint32 count = 2;</code> - * @return The count. - */ - @java.lang.Override - public int getCount() { - return count_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (itemId_ != 0) { - output.writeUInt32(1, itemId_); - } - if (count_ != 0) { - output.writeUInt32(2, count_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (itemId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, itemId_); - } - if (count_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, count_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam other = (emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam) obj; - - if (getItemId() - != other.getItemId()) return false; - if (getCount() - != other.getCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ITEMID_FIELD_NUMBER; - hash = (53 * hash) + getItemId(); - hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + getCount(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ItemParam} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ItemParam) - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ItemParamOuterClass.internal_static_ItemParam_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ItemParamOuterClass.internal_static_ItemParam_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.class, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - itemId_ = 0; - - count_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ItemParamOuterClass.internal_static_ItemParam_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam build() { - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam buildPartial() { - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam result = new emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam(this); - result.itemId_ = itemId_; - result.count_ = count_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam) { - return mergeFrom((emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam other) { - if (other == emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()) return this; - if (other.getItemId() != 0) { - setItemId(other.getItemId()); - } - if (other.getCount() != 0) { - setCount(other.getCount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int itemId_ ; - /** - * <code>uint32 itemId = 1;</code> - * @return The itemId. - */ - @java.lang.Override - public int getItemId() { - return itemId_; - } - /** - * <code>uint32 itemId = 1;</code> - * @param value The itemId to set. - * @return This builder for chaining. - */ - public Builder setItemId(int value) { - - itemId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 itemId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearItemId() { - - itemId_ = 0; - onChanged(); - return this; - } - - private int count_ ; - /** - * <code>uint32 count = 2;</code> - * @return The count. - */ - @java.lang.Override - public int getCount() { - return count_; - } - /** - * <code>uint32 count = 2;</code> - * @param value The count to set. - * @return This builder for chaining. - */ - public Builder setCount(int value) { - - count_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 count = 2;</code> - * @return This builder for chaining. - */ - public Builder clearCount() { - - count_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ItemParam) - } - - // @@protoc_insertion_point(class_scope:ItemParam) - private static final emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam(); - } - - public static emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ItemParam> - PARSER = new com.google.protobuf.AbstractParser<ItemParam>() { - @java.lang.Override - public ItemParam parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ItemParam(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ItemParam> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ItemParam> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ItemParam_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ItemParam_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\017ItemParam.proto\"*\n\tItemParam\022\016\n\006itemId" + - "\030\001 \001(\r\022\r\n\005count\030\002 \001(\rB\033\n\031emu.grasscutter" + - ".net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ItemParam_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ItemParam_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ItemParam_descriptor, - new java.lang.String[] { "ItemId", "Count", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/LifeStateChangeNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/LifeStateChangeNotifyOuterClass.java deleted file mode 100644 index d9d4bc16e..000000000 --- a/src/main/java/emu/grasscutter/net/proto/LifeStateChangeNotifyOuterClass.java +++ /dev/null @@ -1,1009 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: LifeStateChangeNotify.proto - -package emu.grasscutter.net.proto; - -public final class LifeStateChangeNotifyOuterClass { - private LifeStateChangeNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface LifeStateChangeNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:LifeStateChangeNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - int getEntityId(); - - /** - * <code>uint32 lifeState = 2;</code> - * @return The lifeState. - */ - int getLifeState(); - - /** - * <code>uint32 sourceEntityId = 3;</code> - * @return The sourceEntityId. - */ - int getSourceEntityId(); - - /** - * <code>string attackTag = 4;</code> - * @return The attackTag. - */ - java.lang.String getAttackTag(); - /** - * <code>string attackTag = 4;</code> - * @return The bytes for attackTag. - */ - com.google.protobuf.ByteString - getAttackTagBytes(); - - /** - * <code>.PlayerDieType dieType = 5;</code> - * @return The enum numeric value on the wire for dieType. - */ - int getDieTypeValue(); - /** - * <code>.PlayerDieType dieType = 5;</code> - * @return The dieType. - */ - emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType getDieType(); - - /** - * <code>uint32 moveReliableSeq = 6;</code> - * @return The moveReliableSeq. - */ - int getMoveReliableSeq(); - } - /** - * Protobuf type {@code LifeStateChangeNotify} - */ - public static final class LifeStateChangeNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:LifeStateChangeNotify) - LifeStateChangeNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use LifeStateChangeNotify.newBuilder() to construct. - private LifeStateChangeNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private LifeStateChangeNotify() { - attackTag_ = ""; - dieType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LifeStateChangeNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LifeStateChangeNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - entityId_ = input.readUInt32(); - break; - } - case 16: { - - lifeState_ = input.readUInt32(); - break; - } - case 24: { - - sourceEntityId_ = input.readUInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - attackTag_ = s; - break; - } - case 40: { - int rawValue = input.readEnum(); - - dieType_ = rawValue; - break; - } - case 48: { - - moveReliableSeq_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.internal_static_LifeStateChangeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.internal_static_LifeStateChangeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify.class, emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify.Builder.class); - } - - public static final int ENTITYID_FIELD_NUMBER = 1; - private int entityId_; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - - public static final int LIFESTATE_FIELD_NUMBER = 2; - private int lifeState_; - /** - * <code>uint32 lifeState = 2;</code> - * @return The lifeState. - */ - @java.lang.Override - public int getLifeState() { - return lifeState_; - } - - public static final int SOURCEENTITYID_FIELD_NUMBER = 3; - private int sourceEntityId_; - /** - * <code>uint32 sourceEntityId = 3;</code> - * @return The sourceEntityId. - */ - @java.lang.Override - public int getSourceEntityId() { - return sourceEntityId_; - } - - public static final int ATTACKTAG_FIELD_NUMBER = 4; - private volatile java.lang.Object attackTag_; - /** - * <code>string attackTag = 4;</code> - * @return The attackTag. - */ - @java.lang.Override - public java.lang.String getAttackTag() { - java.lang.Object ref = attackTag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - attackTag_ = s; - return s; - } - } - /** - * <code>string attackTag = 4;</code> - * @return The bytes for attackTag. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAttackTagBytes() { - java.lang.Object ref = attackTag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - attackTag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIETYPE_FIELD_NUMBER = 5; - private int dieType_; - /** - * <code>.PlayerDieType dieType = 5;</code> - * @return The enum numeric value on the wire for dieType. - */ - @java.lang.Override public int getDieTypeValue() { - return dieType_; - } - /** - * <code>.PlayerDieType dieType = 5;</code> - * @return The dieType. - */ - @java.lang.Override public emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType getDieType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType result = emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.valueOf(dieType_); - return result == null ? emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.UNRECOGNIZED : result; - } - - public static final int MOVERELIABLESEQ_FIELD_NUMBER = 6; - private int moveReliableSeq_; - /** - * <code>uint32 moveReliableSeq = 6;</code> - * @return The moveReliableSeq. - */ - @java.lang.Override - public int getMoveReliableSeq() { - return moveReliableSeq_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (entityId_ != 0) { - output.writeUInt32(1, entityId_); - } - if (lifeState_ != 0) { - output.writeUInt32(2, lifeState_); - } - if (sourceEntityId_ != 0) { - output.writeUInt32(3, sourceEntityId_); - } - if (!getAttackTagBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, attackTag_); - } - if (dieType_ != emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.PlayerDieNone.getNumber()) { - output.writeEnum(5, dieType_); - } - if (moveReliableSeq_ != 0) { - output.writeUInt32(6, moveReliableSeq_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, entityId_); - } - if (lifeState_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, lifeState_); - } - if (sourceEntityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, sourceEntityId_); - } - if (!getAttackTagBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, attackTag_); - } - if (dieType_ != emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.PlayerDieNone.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, dieType_); - } - if (moveReliableSeq_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, moveReliableSeq_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify other = (emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify) obj; - - if (getEntityId() - != other.getEntityId()) return false; - if (getLifeState() - != other.getLifeState()) return false; - if (getSourceEntityId() - != other.getSourceEntityId()) return false; - if (!getAttackTag() - .equals(other.getAttackTag())) return false; - if (dieType_ != other.dieType_) return false; - if (getMoveReliableSeq() - != other.getMoveReliableSeq()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId(); - hash = (37 * hash) + LIFESTATE_FIELD_NUMBER; - hash = (53 * hash) + getLifeState(); - hash = (37 * hash) + SOURCEENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getSourceEntityId(); - hash = (37 * hash) + ATTACKTAG_FIELD_NUMBER; - hash = (53 * hash) + getAttackTag().hashCode(); - hash = (37 * hash) + DIETYPE_FIELD_NUMBER; - hash = (53 * hash) + dieType_; - hash = (37 * hash) + MOVERELIABLESEQ_FIELD_NUMBER; - hash = (53 * hash) + getMoveReliableSeq(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code LifeStateChangeNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:LifeStateChangeNotify) - emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.internal_static_LifeStateChangeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.internal_static_LifeStateChangeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify.class, emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - entityId_ = 0; - - lifeState_ = 0; - - sourceEntityId_ = 0; - - attackTag_ = ""; - - dieType_ = 0; - - moveReliableSeq_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.internal_static_LifeStateChangeNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify build() { - emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify buildPartial() { - emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify result = new emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify(this); - result.entityId_ = entityId_; - result.lifeState_ = lifeState_; - result.sourceEntityId_ = sourceEntityId_; - result.attackTag_ = attackTag_; - result.dieType_ = dieType_; - result.moveReliableSeq_ = moveReliableSeq_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify) { - return mergeFrom((emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify other) { - if (other == emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify.getDefaultInstance()) return this; - if (other.getEntityId() != 0) { - setEntityId(other.getEntityId()); - } - if (other.getLifeState() != 0) { - setLifeState(other.getLifeState()); - } - if (other.getSourceEntityId() != 0) { - setSourceEntityId(other.getSourceEntityId()); - } - if (!other.getAttackTag().isEmpty()) { - attackTag_ = other.attackTag_; - onChanged(); - } - if (other.dieType_ != 0) { - setDieTypeValue(other.getDieTypeValue()); - } - if (other.getMoveReliableSeq() != 0) { - setMoveReliableSeq(other.getMoveReliableSeq()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int entityId_ ; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - /** - * <code>uint32 entityId = 1;</code> - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId(int value) { - - entityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 entityId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearEntityId() { - - entityId_ = 0; - onChanged(); - return this; - } - - private int lifeState_ ; - /** - * <code>uint32 lifeState = 2;</code> - * @return The lifeState. - */ - @java.lang.Override - public int getLifeState() { - return lifeState_; - } - /** - * <code>uint32 lifeState = 2;</code> - * @param value The lifeState to set. - * @return This builder for chaining. - */ - public Builder setLifeState(int value) { - - lifeState_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 lifeState = 2;</code> - * @return This builder for chaining. - */ - public Builder clearLifeState() { - - lifeState_ = 0; - onChanged(); - return this; - } - - private int sourceEntityId_ ; - /** - * <code>uint32 sourceEntityId = 3;</code> - * @return The sourceEntityId. - */ - @java.lang.Override - public int getSourceEntityId() { - return sourceEntityId_; - } - /** - * <code>uint32 sourceEntityId = 3;</code> - * @param value The sourceEntityId to set. - * @return This builder for chaining. - */ - public Builder setSourceEntityId(int value) { - - sourceEntityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 sourceEntityId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearSourceEntityId() { - - sourceEntityId_ = 0; - onChanged(); - return this; - } - - private java.lang.Object attackTag_ = ""; - /** - * <code>string attackTag = 4;</code> - * @return The attackTag. - */ - public java.lang.String getAttackTag() { - java.lang.Object ref = attackTag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - attackTag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string attackTag = 4;</code> - * @return The bytes for attackTag. - */ - public com.google.protobuf.ByteString - getAttackTagBytes() { - java.lang.Object ref = attackTag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - attackTag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string attackTag = 4;</code> - * @param value The attackTag to set. - * @return This builder for chaining. - */ - public Builder setAttackTag( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - attackTag_ = value; - onChanged(); - return this; - } - /** - * <code>string attackTag = 4;</code> - * @return This builder for chaining. - */ - public Builder clearAttackTag() { - - attackTag_ = getDefaultInstance().getAttackTag(); - onChanged(); - return this; - } - /** - * <code>string attackTag = 4;</code> - * @param value The bytes for attackTag to set. - * @return This builder for chaining. - */ - public Builder setAttackTagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - attackTag_ = value; - onChanged(); - return this; - } - - private int dieType_ = 0; - /** - * <code>.PlayerDieType dieType = 5;</code> - * @return The enum numeric value on the wire for dieType. - */ - @java.lang.Override public int getDieTypeValue() { - return dieType_; - } - /** - * <code>.PlayerDieType dieType = 5;</code> - * @param value The enum numeric value on the wire for dieType to set. - * @return This builder for chaining. - */ - public Builder setDieTypeValue(int value) { - - dieType_ = value; - onChanged(); - return this; - } - /** - * <code>.PlayerDieType dieType = 5;</code> - * @return The dieType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType getDieType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType result = emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.valueOf(dieType_); - return result == null ? emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.UNRECOGNIZED : result; - } - /** - * <code>.PlayerDieType dieType = 5;</code> - * @param value The dieType to set. - * @return This builder for chaining. - */ - public Builder setDieType(emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType value) { - if (value == null) { - throw new NullPointerException(); - } - - dieType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.PlayerDieType dieType = 5;</code> - * @return This builder for chaining. - */ - public Builder clearDieType() { - - dieType_ = 0; - onChanged(); - return this; - } - - private int moveReliableSeq_ ; - /** - * <code>uint32 moveReliableSeq = 6;</code> - * @return The moveReliableSeq. - */ - @java.lang.Override - public int getMoveReliableSeq() { - return moveReliableSeq_; - } - /** - * <code>uint32 moveReliableSeq = 6;</code> - * @param value The moveReliableSeq to set. - * @return This builder for chaining. - */ - public Builder setMoveReliableSeq(int value) { - - moveReliableSeq_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 moveReliableSeq = 6;</code> - * @return This builder for chaining. - */ - public Builder clearMoveReliableSeq() { - - moveReliableSeq_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:LifeStateChangeNotify) - } - - // @@protoc_insertion_point(class_scope:LifeStateChangeNotify) - private static final emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify(); - } - - public static emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<LifeStateChangeNotify> - PARSER = new com.google.protobuf.AbstractParser<LifeStateChangeNotify>() { - @java.lang.Override - public LifeStateChangeNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LifeStateChangeNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<LifeStateChangeNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<LifeStateChangeNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_LifeStateChangeNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_LifeStateChangeNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033LifeStateChangeNotify.proto\032\023PlayerDie" + - "Type.proto\"\241\001\n\025LifeStateChangeNotify\022\020\n\010" + - "entityId\030\001 \001(\r\022\021\n\tlifeState\030\002 \001(\r\022\026\n\016sou" + - "rceEntityId\030\003 \001(\r\022\021\n\tattackTag\030\004 \001(\t\022\037\n\007" + - "dieType\030\005 \001(\0162\016.PlayerDieType\022\027\n\017moveRel" + - "iableSeq\030\006 \001(\rB\033\n\031emu.grasscutter.net.pr" + - "otob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.PlayerDieTypeOuterClass.getDescriptor(), - }); - internal_static_LifeStateChangeNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_LifeStateChangeNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_LifeStateChangeNotify_descriptor, - new java.lang.String[] { "EntityId", "LifeState", "SourceEntityId", "AttackTag", "DieType", "MoveReliableSeq", }); - emu.grasscutter.net.proto.PlayerDieTypeOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/MPLevelEntityInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/MPLevelEntityInfoOuterClass.java deleted file mode 100644 index c84f920ac..000000000 --- a/src/main/java/emu/grasscutter/net/proto/MPLevelEntityInfoOuterClass.java +++ /dev/null @@ -1,813 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: MPLevelEntityInfo.proto - -package emu.grasscutter.net.proto; - -public final class MPLevelEntityInfoOuterClass { - private MPLevelEntityInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface MPLevelEntityInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:MPLevelEntityInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - int getEntityId(); - - /** - * <code>uint32 authorityPeerId = 2;</code> - * @return The authorityPeerId. - */ - int getAuthorityPeerId(); - - /** - * <code>.AbilitySyncStateInfo abilityInfo = 3;</code> - * @return Whether the abilityInfo field is set. - */ - boolean hasAbilityInfo(); - /** - * <code>.AbilitySyncStateInfo abilityInfo = 3;</code> - * @return The abilityInfo. - */ - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getAbilityInfo(); - /** - * <code>.AbilitySyncStateInfo abilityInfo = 3;</code> - */ - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getAbilityInfoOrBuilder(); - } - /** - * Protobuf type {@code MPLevelEntityInfo} - */ - public static final class MPLevelEntityInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:MPLevelEntityInfo) - MPLevelEntityInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use MPLevelEntityInfo.newBuilder() to construct. - private MPLevelEntityInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private MPLevelEntityInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MPLevelEntityInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MPLevelEntityInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - entityId_ = input.readUInt32(); - break; - } - case 16: { - - authorityPeerId_ = input.readUInt32(); - break; - } - case 26: { - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder subBuilder = null; - if (abilityInfo_ != null) { - subBuilder = abilityInfo_.toBuilder(); - } - abilityInfo_ = input.readMessage(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abilityInfo_); - abilityInfo_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.internal_static_MPLevelEntityInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.internal_static_MPLevelEntityInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo.class, emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo.Builder.class); - } - - public static final int ENTITYID_FIELD_NUMBER = 1; - private int entityId_; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - - public static final int AUTHORITYPEERID_FIELD_NUMBER = 2; - private int authorityPeerId_; - /** - * <code>uint32 authorityPeerId = 2;</code> - * @return The authorityPeerId. - */ - @java.lang.Override - public int getAuthorityPeerId() { - return authorityPeerId_; - } - - public static final int ABILITYINFO_FIELD_NUMBER = 3; - private emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo abilityInfo_; - /** - * <code>.AbilitySyncStateInfo abilityInfo = 3;</code> - * @return Whether the abilityInfo field is set. - */ - @java.lang.Override - public boolean hasAbilityInfo() { - return abilityInfo_ != null; - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 3;</code> - * @return The abilityInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getAbilityInfo() { - return abilityInfo_ == null ? emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : abilityInfo_; - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getAbilityInfoOrBuilder() { - return getAbilityInfo(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (entityId_ != 0) { - output.writeUInt32(1, entityId_); - } - if (authorityPeerId_ != 0) { - output.writeUInt32(2, authorityPeerId_); - } - if (abilityInfo_ != null) { - output.writeMessage(3, getAbilityInfo()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, entityId_); - } - if (authorityPeerId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, authorityPeerId_); - } - if (abilityInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getAbilityInfo()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo other = (emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo) obj; - - if (getEntityId() - != other.getEntityId()) return false; - if (getAuthorityPeerId() - != other.getAuthorityPeerId()) return false; - if (hasAbilityInfo() != other.hasAbilityInfo()) return false; - if (hasAbilityInfo()) { - if (!getAbilityInfo() - .equals(other.getAbilityInfo())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId(); - hash = (37 * hash) + AUTHORITYPEERID_FIELD_NUMBER; - hash = (53 * hash) + getAuthorityPeerId(); - if (hasAbilityInfo()) { - hash = (37 * hash) + ABILITYINFO_FIELD_NUMBER; - hash = (53 * hash) + getAbilityInfo().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code MPLevelEntityInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:MPLevelEntityInfo) - emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.internal_static_MPLevelEntityInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.internal_static_MPLevelEntityInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo.class, emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - entityId_ = 0; - - authorityPeerId_ = 0; - - if (abilityInfoBuilder_ == null) { - abilityInfo_ = null; - } else { - abilityInfo_ = null; - abilityInfoBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.internal_static_MPLevelEntityInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo build() { - emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo buildPartial() { - emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo result = new emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo(this); - result.entityId_ = entityId_; - result.authorityPeerId_ = authorityPeerId_; - if (abilityInfoBuilder_ == null) { - result.abilityInfo_ = abilityInfo_; - } else { - result.abilityInfo_ = abilityInfoBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo) { - return mergeFrom((emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo other) { - if (other == emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo.getDefaultInstance()) return this; - if (other.getEntityId() != 0) { - setEntityId(other.getEntityId()); - } - if (other.getAuthorityPeerId() != 0) { - setAuthorityPeerId(other.getAuthorityPeerId()); - } - if (other.hasAbilityInfo()) { - mergeAbilityInfo(other.getAbilityInfo()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int entityId_ ; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - /** - * <code>uint32 entityId = 1;</code> - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId(int value) { - - entityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 entityId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearEntityId() { - - entityId_ = 0; - onChanged(); - return this; - } - - private int authorityPeerId_ ; - /** - * <code>uint32 authorityPeerId = 2;</code> - * @return The authorityPeerId. - */ - @java.lang.Override - public int getAuthorityPeerId() { - return authorityPeerId_; - } - /** - * <code>uint32 authorityPeerId = 2;</code> - * @param value The authorityPeerId to set. - * @return This builder for chaining. - */ - public Builder setAuthorityPeerId(int value) { - - authorityPeerId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 authorityPeerId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearAuthorityPeerId() { - - authorityPeerId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo abilityInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder> abilityInfoBuilder_; - /** - * <code>.AbilitySyncStateInfo abilityInfo = 3;</code> - * @return Whether the abilityInfo field is set. - */ - public boolean hasAbilityInfo() { - return abilityInfoBuilder_ != null || abilityInfo_ != null; - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 3;</code> - * @return The abilityInfo. - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getAbilityInfo() { - if (abilityInfoBuilder_ == null) { - return abilityInfo_ == null ? emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : abilityInfo_; - } else { - return abilityInfoBuilder_.getMessage(); - } - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 3;</code> - */ - public Builder setAbilityInfo(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo value) { - if (abilityInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - abilityInfo_ = value; - onChanged(); - } else { - abilityInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 3;</code> - */ - public Builder setAbilityInfo( - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder builderForValue) { - if (abilityInfoBuilder_ == null) { - abilityInfo_ = builderForValue.build(); - onChanged(); - } else { - abilityInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 3;</code> - */ - public Builder mergeAbilityInfo(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo value) { - if (abilityInfoBuilder_ == null) { - if (abilityInfo_ != null) { - abilityInfo_ = - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.newBuilder(abilityInfo_).mergeFrom(value).buildPartial(); - } else { - abilityInfo_ = value; - } - onChanged(); - } else { - abilityInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 3;</code> - */ - public Builder clearAbilityInfo() { - if (abilityInfoBuilder_ == null) { - abilityInfo_ = null; - onChanged(); - } else { - abilityInfo_ = null; - abilityInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 3;</code> - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder getAbilityInfoBuilder() { - - onChanged(); - return getAbilityInfoFieldBuilder().getBuilder(); - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 3;</code> - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getAbilityInfoOrBuilder() { - if (abilityInfoBuilder_ != null) { - return abilityInfoBuilder_.getMessageOrBuilder(); - } else { - return abilityInfo_ == null ? - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : abilityInfo_; - } - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 3;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder> - getAbilityInfoFieldBuilder() { - if (abilityInfoBuilder_ == null) { - abilityInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder>( - getAbilityInfo(), - getParentForChildren(), - isClean()); - abilityInfo_ = null; - } - return abilityInfoBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:MPLevelEntityInfo) - } - - // @@protoc_insertion_point(class_scope:MPLevelEntityInfo) - private static final emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo(); - } - - public static emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<MPLevelEntityInfo> - PARSER = new com.google.protobuf.AbstractParser<MPLevelEntityInfo>() { - @java.lang.Override - public MPLevelEntityInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MPLevelEntityInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<MPLevelEntityInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<MPLevelEntityInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_MPLevelEntityInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_MPLevelEntityInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027MPLevelEntityInfo.proto\032\032AbilitySyncSt" + - "ateInfo.proto\"j\n\021MPLevelEntityInfo\022\020\n\010en" + - "tityId\030\001 \001(\r\022\027\n\017authorityPeerId\030\002 \001(\r\022*\n" + - "\013abilityInfo\030\003 \001(\0132\025.AbilitySyncStateInf" + - "oB\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.getDescriptor(), - }); - internal_static_MPLevelEntityInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_MPLevelEntityInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_MPLevelEntityInfo_descriptor, - new java.lang.String[] { "EntityId", "AuthorityPeerId", "AbilityInfo", }); - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/MapMarkFromTypeOuterClass.java b/src/main/java/emu/grasscutter/net/proto/MapMarkFromTypeOuterClass.java deleted file mode 100644 index cdd2e8d8d..000000000 --- a/src/main/java/emu/grasscutter/net/proto/MapMarkFromTypeOuterClass.java +++ /dev/null @@ -1,155 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: MapMarkFromType.proto - -package emu.grasscutter.net.proto; - -public final class MapMarkFromTypeOuterClass { - private MapMarkFromTypeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code MapMarkFromType} - */ - public enum MapMarkFromType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>None = 0;</code> - */ - None(0), - /** - * <code>MonsterType = 1;</code> - */ - MonsterType(1), - /** - * <code>QuestType = 2;</code> - */ - QuestType(2), - UNRECOGNIZED(-1), - ; - - /** - * <code>None = 0;</code> - */ - public static final int None_VALUE = 0; - /** - * <code>MonsterType = 1;</code> - */ - public static final int MonsterType_VALUE = 1; - /** - * <code>QuestType = 2;</code> - */ - public static final int QuestType_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MapMarkFromType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static MapMarkFromType forNumber(int value) { - switch (value) { - case 0: return None; - case 1: return MonsterType; - case 2: return QuestType; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<MapMarkFromType> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - MapMarkFromType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<MapMarkFromType>() { - public MapMarkFromType findValueByNumber(int number) { - return MapMarkFromType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.MapMarkFromTypeOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final MapMarkFromType[] VALUES = values(); - - public static MapMarkFromType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private MapMarkFromType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:MapMarkFromType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025MapMarkFromType.proto*;\n\017MapMarkFromTy" + - "pe\022\010\n\004None\020\000\022\017\n\013MonsterType\020\001\022\r\n\tQuestTy" + - "pe\020\002B\033\n\031emu.grasscutter.net.protob\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/MapMarkPointOuterClass.java b/src/main/java/emu/grasscutter/net/proto/MapMarkPointOuterClass.java deleted file mode 100644 index da5b42222..000000000 --- a/src/main/java/emu/grasscutter/net/proto/MapMarkPointOuterClass.java +++ /dev/null @@ -1,1254 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: MapMarkPoint.proto - -package emu.grasscutter.net.proto; - -public final class MapMarkPointOuterClass { - private MapMarkPointOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface MapMarkPointOrBuilder extends - // @@protoc_insertion_point(interface_extends:MapMarkPoint) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - int getSceneId(); - - /** - * <code>string name = 2;</code> - * @return The name. - */ - java.lang.String getName(); - /** - * <code>string name = 2;</code> - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * <code>.Vector pos = 3;</code> - * @return Whether the pos field is set. - */ - boolean hasPos(); - /** - * <code>.Vector pos = 3;</code> - * @return The pos. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getPos(); - /** - * <code>.Vector pos = 3;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOrBuilder(); - - /** - * <code>.MapMarkPointType pointType = 4;</code> - * @return The enum numeric value on the wire for pointType. - */ - int getPointTypeValue(); - /** - * <code>.MapMarkPointType pointType = 4;</code> - * @return The pointType. - */ - emu.grasscutter.net.proto.MapMarkPointTypeOuterClass.MapMarkPointType getPointType(); - - /** - * <code>uint32 monsterId = 5;</code> - * @return The monsterId. - */ - int getMonsterId(); - - /** - * <code>.MapMarkFromType fromType = 6;</code> - * @return The enum numeric value on the wire for fromType. - */ - int getFromTypeValue(); - /** - * <code>.MapMarkFromType fromType = 6;</code> - * @return The fromType. - */ - emu.grasscutter.net.proto.MapMarkFromTypeOuterClass.MapMarkFromType getFromType(); - - /** - * <code>uint32 questId = 7;</code> - * @return The questId. - */ - int getQuestId(); - } - /** - * Protobuf type {@code MapMarkPoint} - */ - public static final class MapMarkPoint extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:MapMarkPoint) - MapMarkPointOrBuilder { - private static final long serialVersionUID = 0L; - // Use MapMarkPoint.newBuilder() to construct. - private MapMarkPoint(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private MapMarkPoint() { - name_ = ""; - pointType_ = 0; - fromType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MapMarkPoint(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MapMarkPoint( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - sceneId_ = input.readUInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 26: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (pos_ != null) { - subBuilder = pos_.toBuilder(); - } - pos_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pos_); - pos_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - int rawValue = input.readEnum(); - - pointType_ = rawValue; - break; - } - case 40: { - - monsterId_ = input.readUInt32(); - break; - } - case 48: { - int rawValue = input.readEnum(); - - fromType_ = rawValue; - break; - } - case 56: { - - questId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.MapMarkPointOuterClass.internal_static_MapMarkPoint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.MapMarkPointOuterClass.internal_static_MapMarkPoint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.class, emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.Builder.class); - } - - public static final int SCENEID_FIELD_NUMBER = 1; - private int sceneId_; - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * <code>string name = 2;</code> - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * <code>string name = 2;</code> - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int POS_FIELD_NUMBER = 3; - private emu.grasscutter.net.proto.VectorOuterClass.Vector pos_; - /** - * <code>.Vector pos = 3;</code> - * @return Whether the pos field is set. - */ - @java.lang.Override - public boolean hasPos() { - return pos_ != null; - } - /** - * <code>.Vector pos = 3;</code> - * @return The pos. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getPos() { - return pos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : pos_; - } - /** - * <code>.Vector pos = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOrBuilder() { - return getPos(); - } - - public static final int POINTTYPE_FIELD_NUMBER = 4; - private int pointType_; - /** - * <code>.MapMarkPointType pointType = 4;</code> - * @return The enum numeric value on the wire for pointType. - */ - @java.lang.Override public int getPointTypeValue() { - return pointType_; - } - /** - * <code>.MapMarkPointType pointType = 4;</code> - * @return The pointType. - */ - @java.lang.Override public emu.grasscutter.net.proto.MapMarkPointTypeOuterClass.MapMarkPointType getPointType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.MapMarkPointTypeOuterClass.MapMarkPointType result = emu.grasscutter.net.proto.MapMarkPointTypeOuterClass.MapMarkPointType.valueOf(pointType_); - return result == null ? emu.grasscutter.net.proto.MapMarkPointTypeOuterClass.MapMarkPointType.UNRECOGNIZED : result; - } - - public static final int MONSTERID_FIELD_NUMBER = 5; - private int monsterId_; - /** - * <code>uint32 monsterId = 5;</code> - * @return The monsterId. - */ - @java.lang.Override - public int getMonsterId() { - return monsterId_; - } - - public static final int FROMTYPE_FIELD_NUMBER = 6; - private int fromType_; - /** - * <code>.MapMarkFromType fromType = 6;</code> - * @return The enum numeric value on the wire for fromType. - */ - @java.lang.Override public int getFromTypeValue() { - return fromType_; - } - /** - * <code>.MapMarkFromType fromType = 6;</code> - * @return The fromType. - */ - @java.lang.Override public emu.grasscutter.net.proto.MapMarkFromTypeOuterClass.MapMarkFromType getFromType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.MapMarkFromTypeOuterClass.MapMarkFromType result = emu.grasscutter.net.proto.MapMarkFromTypeOuterClass.MapMarkFromType.valueOf(fromType_); - return result == null ? emu.grasscutter.net.proto.MapMarkFromTypeOuterClass.MapMarkFromType.UNRECOGNIZED : result; - } - - public static final int QUESTID_FIELD_NUMBER = 7; - private int questId_; - /** - * <code>uint32 questId = 7;</code> - * @return The questId. - */ - @java.lang.Override - public int getQuestId() { - return questId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (sceneId_ != 0) { - output.writeUInt32(1, sceneId_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - if (pos_ != null) { - output.writeMessage(3, getPos()); - } - if (pointType_ != emu.grasscutter.net.proto.MapMarkPointTypeOuterClass.MapMarkPointType.Npc.getNumber()) { - output.writeEnum(4, pointType_); - } - if (monsterId_ != 0) { - output.writeUInt32(5, monsterId_); - } - if (fromType_ != emu.grasscutter.net.proto.MapMarkFromTypeOuterClass.MapMarkFromType.None.getNumber()) { - output.writeEnum(6, fromType_); - } - if (questId_ != 0) { - output.writeUInt32(7, questId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sceneId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, sceneId_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - if (pos_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPos()); - } - if (pointType_ != emu.grasscutter.net.proto.MapMarkPointTypeOuterClass.MapMarkPointType.Npc.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, pointType_); - } - if (monsterId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, monsterId_); - } - if (fromType_ != emu.grasscutter.net.proto.MapMarkFromTypeOuterClass.MapMarkFromType.None.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, fromType_); - } - if (questId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(7, questId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint other = (emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint) obj; - - if (getSceneId() - != other.getSceneId()) return false; - if (!getName() - .equals(other.getName())) return false; - if (hasPos() != other.hasPos()) return false; - if (hasPos()) { - if (!getPos() - .equals(other.getPos())) return false; - } - if (pointType_ != other.pointType_) return false; - if (getMonsterId() - != other.getMonsterId()) return false; - if (fromType_ != other.fromType_) return false; - if (getQuestId() - != other.getQuestId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SCENEID_FIELD_NUMBER; - hash = (53 * hash) + getSceneId(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasPos()) { - hash = (37 * hash) + POS_FIELD_NUMBER; - hash = (53 * hash) + getPos().hashCode(); - } - hash = (37 * hash) + POINTTYPE_FIELD_NUMBER; - hash = (53 * hash) + pointType_; - hash = (37 * hash) + MONSTERID_FIELD_NUMBER; - hash = (53 * hash) + getMonsterId(); - hash = (37 * hash) + FROMTYPE_FIELD_NUMBER; - hash = (53 * hash) + fromType_; - hash = (37 * hash) + QUESTID_FIELD_NUMBER; - hash = (53 * hash) + getQuestId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code MapMarkPoint} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:MapMarkPoint) - emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPointOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.MapMarkPointOuterClass.internal_static_MapMarkPoint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.MapMarkPointOuterClass.internal_static_MapMarkPoint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.class, emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sceneId_ = 0; - - name_ = ""; - - if (posBuilder_ == null) { - pos_ = null; - } else { - pos_ = null; - posBuilder_ = null; - } - pointType_ = 0; - - monsterId_ = 0; - - fromType_ = 0; - - questId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.MapMarkPointOuterClass.internal_static_MapMarkPoint_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint getDefaultInstanceForType() { - return emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint build() { - emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint buildPartial() { - emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint result = new emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint(this); - result.sceneId_ = sceneId_; - result.name_ = name_; - if (posBuilder_ == null) { - result.pos_ = pos_; - } else { - result.pos_ = posBuilder_.build(); - } - result.pointType_ = pointType_; - result.monsterId_ = monsterId_; - result.fromType_ = fromType_; - result.questId_ = questId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint) { - return mergeFrom((emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint other) { - if (other == emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.getDefaultInstance()) return this; - if (other.getSceneId() != 0) { - setSceneId(other.getSceneId()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasPos()) { - mergePos(other.getPos()); - } - if (other.pointType_ != 0) { - setPointTypeValue(other.getPointTypeValue()); - } - if (other.getMonsterId() != 0) { - setMonsterId(other.getMonsterId()); - } - if (other.fromType_ != 0) { - setFromTypeValue(other.getFromTypeValue()); - } - if (other.getQuestId() != 0) { - setQuestId(other.getQuestId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int sceneId_ ; - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - /** - * <code>uint32 sceneId = 1;</code> - * @param value The sceneId to set. - * @return This builder for chaining. - */ - public Builder setSceneId(int value) { - - sceneId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 sceneId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearSceneId() { - - sceneId_ = 0; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * <code>string name = 2;</code> - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string name = 2;</code> - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string name = 2;</code> - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * <code>string name = 2;</code> - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * <code>string name = 2;</code> - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.VectorOuterClass.Vector pos_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> posBuilder_; - /** - * <code>.Vector pos = 3;</code> - * @return Whether the pos field is set. - */ - public boolean hasPos() { - return posBuilder_ != null || pos_ != null; - } - /** - * <code>.Vector pos = 3;</code> - * @return The pos. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getPos() { - if (posBuilder_ == null) { - return pos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : pos_; - } else { - return posBuilder_.getMessage(); - } - } - /** - * <code>.Vector pos = 3;</code> - */ - public Builder setPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (posBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pos_ = value; - onChanged(); - } else { - posBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Vector pos = 3;</code> - */ - public Builder setPos( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (posBuilder_ == null) { - pos_ = builderForValue.build(); - onChanged(); - } else { - posBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Vector pos = 3;</code> - */ - public Builder mergePos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (posBuilder_ == null) { - if (pos_ != null) { - pos_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(pos_).mergeFrom(value).buildPartial(); - } else { - pos_ = value; - } - onChanged(); - } else { - posBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Vector pos = 3;</code> - */ - public Builder clearPos() { - if (posBuilder_ == null) { - pos_ = null; - onChanged(); - } else { - pos_ = null; - posBuilder_ = null; - } - - return this; - } - /** - * <code>.Vector pos = 3;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getPosBuilder() { - - onChanged(); - return getPosFieldBuilder().getBuilder(); - } - /** - * <code>.Vector pos = 3;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOrBuilder() { - if (posBuilder_ != null) { - return posBuilder_.getMessageOrBuilder(); - } else { - return pos_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : pos_; - } - } - /** - * <code>.Vector pos = 3;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getPosFieldBuilder() { - if (posBuilder_ == null) { - posBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getPos(), - getParentForChildren(), - isClean()); - pos_ = null; - } - return posBuilder_; - } - - private int pointType_ = 0; - /** - * <code>.MapMarkPointType pointType = 4;</code> - * @return The enum numeric value on the wire for pointType. - */ - @java.lang.Override public int getPointTypeValue() { - return pointType_; - } - /** - * <code>.MapMarkPointType pointType = 4;</code> - * @param value The enum numeric value on the wire for pointType to set. - * @return This builder for chaining. - */ - public Builder setPointTypeValue(int value) { - - pointType_ = value; - onChanged(); - return this; - } - /** - * <code>.MapMarkPointType pointType = 4;</code> - * @return The pointType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.MapMarkPointTypeOuterClass.MapMarkPointType getPointType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.MapMarkPointTypeOuterClass.MapMarkPointType result = emu.grasscutter.net.proto.MapMarkPointTypeOuterClass.MapMarkPointType.valueOf(pointType_); - return result == null ? emu.grasscutter.net.proto.MapMarkPointTypeOuterClass.MapMarkPointType.UNRECOGNIZED : result; - } - /** - * <code>.MapMarkPointType pointType = 4;</code> - * @param value The pointType to set. - * @return This builder for chaining. - */ - public Builder setPointType(emu.grasscutter.net.proto.MapMarkPointTypeOuterClass.MapMarkPointType value) { - if (value == null) { - throw new NullPointerException(); - } - - pointType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.MapMarkPointType pointType = 4;</code> - * @return This builder for chaining. - */ - public Builder clearPointType() { - - pointType_ = 0; - onChanged(); - return this; - } - - private int monsterId_ ; - /** - * <code>uint32 monsterId = 5;</code> - * @return The monsterId. - */ - @java.lang.Override - public int getMonsterId() { - return monsterId_; - } - /** - * <code>uint32 monsterId = 5;</code> - * @param value The monsterId to set. - * @return This builder for chaining. - */ - public Builder setMonsterId(int value) { - - monsterId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 monsterId = 5;</code> - * @return This builder for chaining. - */ - public Builder clearMonsterId() { - - monsterId_ = 0; - onChanged(); - return this; - } - - private int fromType_ = 0; - /** - * <code>.MapMarkFromType fromType = 6;</code> - * @return The enum numeric value on the wire for fromType. - */ - @java.lang.Override public int getFromTypeValue() { - return fromType_; - } - /** - * <code>.MapMarkFromType fromType = 6;</code> - * @param value The enum numeric value on the wire for fromType to set. - * @return This builder for chaining. - */ - public Builder setFromTypeValue(int value) { - - fromType_ = value; - onChanged(); - return this; - } - /** - * <code>.MapMarkFromType fromType = 6;</code> - * @return The fromType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.MapMarkFromTypeOuterClass.MapMarkFromType getFromType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.MapMarkFromTypeOuterClass.MapMarkFromType result = emu.grasscutter.net.proto.MapMarkFromTypeOuterClass.MapMarkFromType.valueOf(fromType_); - return result == null ? emu.grasscutter.net.proto.MapMarkFromTypeOuterClass.MapMarkFromType.UNRECOGNIZED : result; - } - /** - * <code>.MapMarkFromType fromType = 6;</code> - * @param value The fromType to set. - * @return This builder for chaining. - */ - public Builder setFromType(emu.grasscutter.net.proto.MapMarkFromTypeOuterClass.MapMarkFromType value) { - if (value == null) { - throw new NullPointerException(); - } - - fromType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.MapMarkFromType fromType = 6;</code> - * @return This builder for chaining. - */ - public Builder clearFromType() { - - fromType_ = 0; - onChanged(); - return this; - } - - private int questId_ ; - /** - * <code>uint32 questId = 7;</code> - * @return The questId. - */ - @java.lang.Override - public int getQuestId() { - return questId_; - } - /** - * <code>uint32 questId = 7;</code> - * @param value The questId to set. - * @return This builder for chaining. - */ - public Builder setQuestId(int value) { - - questId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 questId = 7;</code> - * @return This builder for chaining. - */ - public Builder clearQuestId() { - - questId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:MapMarkPoint) - } - - // @@protoc_insertion_point(class_scope:MapMarkPoint) - private static final emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint(); - } - - public static emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<MapMarkPoint> - PARSER = new com.google.protobuf.AbstractParser<MapMarkPoint>() { - @java.lang.Override - public MapMarkPoint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MapMarkPoint(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<MapMarkPoint> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<MapMarkPoint> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_MapMarkPoint_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_MapMarkPoint_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\022MapMarkPoint.proto\032\025MapMarkFromType.pr" + - "oto\032\026MapMarkPointType.proto\032\014Vector.prot" + - "o\"\261\001\n\014MapMarkPoint\022\017\n\007sceneId\030\001 \001(\r\022\014\n\004n" + - "ame\030\002 \001(\t\022\024\n\003pos\030\003 \001(\0132\007.Vector\022$\n\tpoint" + - "Type\030\004 \001(\0162\021.MapMarkPointType\022\021\n\tmonster" + - "Id\030\005 \001(\r\022\"\n\010fromType\030\006 \001(\0162\020.MapMarkFrom" + - "Type\022\017\n\007questId\030\007 \001(\rB\033\n\031emu.grasscutter" + - ".net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.MapMarkFromTypeOuterClass.getDescriptor(), - emu.grasscutter.net.proto.MapMarkPointTypeOuterClass.getDescriptor(), - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(), - }); - internal_static_MapMarkPoint_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_MapMarkPoint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_MapMarkPoint_descriptor, - new java.lang.String[] { "SceneId", "Name", "Pos", "PointType", "MonsterId", "FromType", "QuestId", }); - emu.grasscutter.net.proto.MapMarkFromTypeOuterClass.getDescriptor(); - emu.grasscutter.net.proto.MapMarkPointTypeOuterClass.getDescriptor(); - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/MapMarkPointTypeOuterClass.java b/src/main/java/emu/grasscutter/net/proto/MapMarkPointTypeOuterClass.java deleted file mode 100644 index 28498c3fa..000000000 --- a/src/main/java/emu/grasscutter/net/proto/MapMarkPointTypeOuterClass.java +++ /dev/null @@ -1,182 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: MapMarkPointType.proto - -package emu.grasscutter.net.proto; - -public final class MapMarkPointTypeOuterClass { - private MapMarkPointTypeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code MapMarkPointType} - */ - public enum MapMarkPointType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>Npc = 0;</code> - */ - Npc(0), - /** - * <code>Quest = 1;</code> - */ - Quest(1), - /** - * <code>Special = 2;</code> - */ - Special(2), - /** - * <code>Mine = 3;</code> - */ - Mine(3), - /** - * <code>Collection = 4;</code> - */ - Collection(4), - /** - * <code>Monster = 5;</code> - */ - Monster(5), - UNRECOGNIZED(-1), - ; - - /** - * <code>Npc = 0;</code> - */ - public static final int Npc_VALUE = 0; - /** - * <code>Quest = 1;</code> - */ - public static final int Quest_VALUE = 1; - /** - * <code>Special = 2;</code> - */ - public static final int Special_VALUE = 2; - /** - * <code>Mine = 3;</code> - */ - public static final int Mine_VALUE = 3; - /** - * <code>Collection = 4;</code> - */ - public static final int Collection_VALUE = 4; - /** - * <code>Monster = 5;</code> - */ - public static final int Monster_VALUE = 5; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MapMarkPointType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static MapMarkPointType forNumber(int value) { - switch (value) { - case 0: return Npc; - case 1: return Quest; - case 2: return Special; - case 3: return Mine; - case 4: return Collection; - case 5: return Monster; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<MapMarkPointType> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - MapMarkPointType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<MapMarkPointType>() { - public MapMarkPointType findValueByNumber(int number) { - return MapMarkPointType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.MapMarkPointTypeOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final MapMarkPointType[] VALUES = values(); - - public static MapMarkPointType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private MapMarkPointType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:MapMarkPointType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026MapMarkPointType.proto*Z\n\020MapMarkPoint" + - "Type\022\007\n\003Npc\020\000\022\t\n\005Quest\020\001\022\013\n\007Special\020\002\022\010\n" + - "\004Mine\020\003\022\016\n\nCollection\020\004\022\013\n\007Monster\020\005B\033\n\031" + - "emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/MarkMapReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/MarkMapReqOuterClass.java deleted file mode 100644 index c54f602b8..000000000 --- a/src/main/java/emu/grasscutter/net/proto/MarkMapReqOuterClass.java +++ /dev/null @@ -1,985 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: MarkMapReq.proto - -package emu.grasscutter.net.proto; - -public final class MarkMapReqOuterClass { - private MarkMapReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface MarkMapReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:MarkMapReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.Operation op = 1;</code> - * @return The enum numeric value on the wire for op. - */ - int getOpValue(); - /** - * <code>.Operation op = 1;</code> - * @return The op. - */ - emu.grasscutter.net.proto.OperationOuterClass.Operation getOp(); - - /** - * <code>.MapMarkPoint old = 2;</code> - * @return Whether the old field is set. - */ - boolean hasOld(); - /** - * <code>.MapMarkPoint old = 2;</code> - * @return The old. - */ - emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint getOld(); - /** - * <code>.MapMarkPoint old = 2;</code> - */ - emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPointOrBuilder getOldOrBuilder(); - - /** - * <code>.MapMarkPoint mark = 3;</code> - * @return Whether the mark field is set. - */ - boolean hasMark(); - /** - * <code>.MapMarkPoint mark = 3;</code> - * @return The mark. - */ - emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint getMark(); - /** - * <code>.MapMarkPoint mark = 3;</code> - */ - emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPointOrBuilder getMarkOrBuilder(); - } - /** - * Protobuf type {@code MarkMapReq} - */ - public static final class MarkMapReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:MarkMapReq) - MarkMapReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use MarkMapReq.newBuilder() to construct. - private MarkMapReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private MarkMapReq() { - op_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MarkMapReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MarkMapReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - op_ = rawValue; - break; - } - case 18: { - emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.Builder subBuilder = null; - if (old_ != null) { - subBuilder = old_.toBuilder(); - } - old_ = input.readMessage(emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(old_); - old_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.Builder subBuilder = null; - if (mark_ != null) { - subBuilder = mark_.toBuilder(); - } - mark_ = input.readMessage(emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(mark_); - mark_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.MarkMapReqOuterClass.internal_static_MarkMapReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.MarkMapReqOuterClass.internal_static_MarkMapReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq.class, emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq.Builder.class); - } - - public static final int OP_FIELD_NUMBER = 1; - private int op_; - /** - * <code>.Operation op = 1;</code> - * @return The enum numeric value on the wire for op. - */ - @java.lang.Override public int getOpValue() { - return op_; - } - /** - * <code>.Operation op = 1;</code> - * @return The op. - */ - @java.lang.Override public emu.grasscutter.net.proto.OperationOuterClass.Operation getOp() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.OperationOuterClass.Operation result = emu.grasscutter.net.proto.OperationOuterClass.Operation.valueOf(op_); - return result == null ? emu.grasscutter.net.proto.OperationOuterClass.Operation.UNRECOGNIZED : result; - } - - public static final int OLD_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint old_; - /** - * <code>.MapMarkPoint old = 2;</code> - * @return Whether the old field is set. - */ - @java.lang.Override - public boolean hasOld() { - return old_ != null; - } - /** - * <code>.MapMarkPoint old = 2;</code> - * @return The old. - */ - @java.lang.Override - public emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint getOld() { - return old_ == null ? emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.getDefaultInstance() : old_; - } - /** - * <code>.MapMarkPoint old = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPointOrBuilder getOldOrBuilder() { - return getOld(); - } - - public static final int MARK_FIELD_NUMBER = 3; - private emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint mark_; - /** - * <code>.MapMarkPoint mark = 3;</code> - * @return Whether the mark field is set. - */ - @java.lang.Override - public boolean hasMark() { - return mark_ != null; - } - /** - * <code>.MapMarkPoint mark = 3;</code> - * @return The mark. - */ - @java.lang.Override - public emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint getMark() { - return mark_ == null ? emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.getDefaultInstance() : mark_; - } - /** - * <code>.MapMarkPoint mark = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPointOrBuilder getMarkOrBuilder() { - return getMark(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (op_ != emu.grasscutter.net.proto.OperationOuterClass.Operation.Add.getNumber()) { - output.writeEnum(1, op_); - } - if (old_ != null) { - output.writeMessage(2, getOld()); - } - if (mark_ != null) { - output.writeMessage(3, getMark()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (op_ != emu.grasscutter.net.proto.OperationOuterClass.Operation.Add.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, op_); - } - if (old_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOld()); - } - if (mark_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMark()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq other = (emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq) obj; - - if (op_ != other.op_) return false; - if (hasOld() != other.hasOld()) return false; - if (hasOld()) { - if (!getOld() - .equals(other.getOld())) return false; - } - if (hasMark() != other.hasMark()) return false; - if (hasMark()) { - if (!getMark() - .equals(other.getMark())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OP_FIELD_NUMBER; - hash = (53 * hash) + op_; - if (hasOld()) { - hash = (37 * hash) + OLD_FIELD_NUMBER; - hash = (53 * hash) + getOld().hashCode(); - } - if (hasMark()) { - hash = (37 * hash) + MARK_FIELD_NUMBER; - hash = (53 * hash) + getMark().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code MarkMapReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:MarkMapReq) - emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.MarkMapReqOuterClass.internal_static_MarkMapReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.MarkMapReqOuterClass.internal_static_MarkMapReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq.class, emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - op_ = 0; - - if (oldBuilder_ == null) { - old_ = null; - } else { - old_ = null; - oldBuilder_ = null; - } - if (markBuilder_ == null) { - mark_ = null; - } else { - mark_ = null; - markBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.MarkMapReqOuterClass.internal_static_MarkMapReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq build() { - emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq buildPartial() { - emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq result = new emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq(this); - result.op_ = op_; - if (oldBuilder_ == null) { - result.old_ = old_; - } else { - result.old_ = oldBuilder_.build(); - } - if (markBuilder_ == null) { - result.mark_ = mark_; - } else { - result.mark_ = markBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq) { - return mergeFrom((emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq other) { - if (other == emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq.getDefaultInstance()) return this; - if (other.op_ != 0) { - setOpValue(other.getOpValue()); - } - if (other.hasOld()) { - mergeOld(other.getOld()); - } - if (other.hasMark()) { - mergeMark(other.getMark()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int op_ = 0; - /** - * <code>.Operation op = 1;</code> - * @return The enum numeric value on the wire for op. - */ - @java.lang.Override public int getOpValue() { - return op_; - } - /** - * <code>.Operation op = 1;</code> - * @param value The enum numeric value on the wire for op to set. - * @return This builder for chaining. - */ - public Builder setOpValue(int value) { - - op_ = value; - onChanged(); - return this; - } - /** - * <code>.Operation op = 1;</code> - * @return The op. - */ - @java.lang.Override - public emu.grasscutter.net.proto.OperationOuterClass.Operation getOp() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.OperationOuterClass.Operation result = emu.grasscutter.net.proto.OperationOuterClass.Operation.valueOf(op_); - return result == null ? emu.grasscutter.net.proto.OperationOuterClass.Operation.UNRECOGNIZED : result; - } - /** - * <code>.Operation op = 1;</code> - * @param value The op to set. - * @return This builder for chaining. - */ - public Builder setOp(emu.grasscutter.net.proto.OperationOuterClass.Operation value) { - if (value == null) { - throw new NullPointerException(); - } - - op_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.Operation op = 1;</code> - * @return This builder for chaining. - */ - public Builder clearOp() { - - op_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint old_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint, emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.Builder, emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPointOrBuilder> oldBuilder_; - /** - * <code>.MapMarkPoint old = 2;</code> - * @return Whether the old field is set. - */ - public boolean hasOld() { - return oldBuilder_ != null || old_ != null; - } - /** - * <code>.MapMarkPoint old = 2;</code> - * @return The old. - */ - public emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint getOld() { - if (oldBuilder_ == null) { - return old_ == null ? emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.getDefaultInstance() : old_; - } else { - return oldBuilder_.getMessage(); - } - } - /** - * <code>.MapMarkPoint old = 2;</code> - */ - public Builder setOld(emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint value) { - if (oldBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - old_ = value; - onChanged(); - } else { - oldBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.MapMarkPoint old = 2;</code> - */ - public Builder setOld( - emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.Builder builderForValue) { - if (oldBuilder_ == null) { - old_ = builderForValue.build(); - onChanged(); - } else { - oldBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.MapMarkPoint old = 2;</code> - */ - public Builder mergeOld(emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint value) { - if (oldBuilder_ == null) { - if (old_ != null) { - old_ = - emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.newBuilder(old_).mergeFrom(value).buildPartial(); - } else { - old_ = value; - } - onChanged(); - } else { - oldBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.MapMarkPoint old = 2;</code> - */ - public Builder clearOld() { - if (oldBuilder_ == null) { - old_ = null; - onChanged(); - } else { - old_ = null; - oldBuilder_ = null; - } - - return this; - } - /** - * <code>.MapMarkPoint old = 2;</code> - */ - public emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.Builder getOldBuilder() { - - onChanged(); - return getOldFieldBuilder().getBuilder(); - } - /** - * <code>.MapMarkPoint old = 2;</code> - */ - public emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPointOrBuilder getOldOrBuilder() { - if (oldBuilder_ != null) { - return oldBuilder_.getMessageOrBuilder(); - } else { - return old_ == null ? - emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.getDefaultInstance() : old_; - } - } - /** - * <code>.MapMarkPoint old = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint, emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.Builder, emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPointOrBuilder> - getOldFieldBuilder() { - if (oldBuilder_ == null) { - oldBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint, emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.Builder, emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPointOrBuilder>( - getOld(), - getParentForChildren(), - isClean()); - old_ = null; - } - return oldBuilder_; - } - - private emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint mark_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint, emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.Builder, emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPointOrBuilder> markBuilder_; - /** - * <code>.MapMarkPoint mark = 3;</code> - * @return Whether the mark field is set. - */ - public boolean hasMark() { - return markBuilder_ != null || mark_ != null; - } - /** - * <code>.MapMarkPoint mark = 3;</code> - * @return The mark. - */ - public emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint getMark() { - if (markBuilder_ == null) { - return mark_ == null ? emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.getDefaultInstance() : mark_; - } else { - return markBuilder_.getMessage(); - } - } - /** - * <code>.MapMarkPoint mark = 3;</code> - */ - public Builder setMark(emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint value) { - if (markBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - mark_ = value; - onChanged(); - } else { - markBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.MapMarkPoint mark = 3;</code> - */ - public Builder setMark( - emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.Builder builderForValue) { - if (markBuilder_ == null) { - mark_ = builderForValue.build(); - onChanged(); - } else { - markBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.MapMarkPoint mark = 3;</code> - */ - public Builder mergeMark(emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint value) { - if (markBuilder_ == null) { - if (mark_ != null) { - mark_ = - emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.newBuilder(mark_).mergeFrom(value).buildPartial(); - } else { - mark_ = value; - } - onChanged(); - } else { - markBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.MapMarkPoint mark = 3;</code> - */ - public Builder clearMark() { - if (markBuilder_ == null) { - mark_ = null; - onChanged(); - } else { - mark_ = null; - markBuilder_ = null; - } - - return this; - } - /** - * <code>.MapMarkPoint mark = 3;</code> - */ - public emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.Builder getMarkBuilder() { - - onChanged(); - return getMarkFieldBuilder().getBuilder(); - } - /** - * <code>.MapMarkPoint mark = 3;</code> - */ - public emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPointOrBuilder getMarkOrBuilder() { - if (markBuilder_ != null) { - return markBuilder_.getMessageOrBuilder(); - } else { - return mark_ == null ? - emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.getDefaultInstance() : mark_; - } - } - /** - * <code>.MapMarkPoint mark = 3;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint, emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.Builder, emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPointOrBuilder> - getMarkFieldBuilder() { - if (markBuilder_ == null) { - markBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint, emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.Builder, emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPointOrBuilder>( - getMark(), - getParentForChildren(), - isClean()); - mark_ = null; - } - return markBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:MarkMapReq) - } - - // @@protoc_insertion_point(class_scope:MarkMapReq) - private static final emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq(); - } - - public static emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<MarkMapReq> - PARSER = new com.google.protobuf.AbstractParser<MarkMapReq>() { - @java.lang.Override - public MarkMapReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MarkMapReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<MarkMapReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<MarkMapReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MarkMapReqOuterClass.MarkMapReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_MarkMapReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_MarkMapReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020MarkMapReq.proto\032\022MapMarkPoint.proto\032\017" + - "Operation.proto\"]\n\nMarkMapReq\022\026\n\002op\030\001 \001(" + - "\0162\n.Operation\022\032\n\003old\030\002 \001(\0132\r.MapMarkPoin" + - "t\022\033\n\004mark\030\003 \001(\0132\r.MapMarkPointB\033\n\031emu.gr" + - "asscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.MapMarkPointOuterClass.getDescriptor(), - emu.grasscutter.net.proto.OperationOuterClass.getDescriptor(), - }); - internal_static_MarkMapReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_MarkMapReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_MarkMapReq_descriptor, - new java.lang.String[] { "Op", "Old", "Mark", }); - emu.grasscutter.net.proto.MapMarkPointOuterClass.getDescriptor(); - emu.grasscutter.net.proto.OperationOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/MassivePropParamOuterClass.java b/src/main/java/emu/grasscutter/net/proto/MassivePropParamOuterClass.java deleted file mode 100644 index c6af0f964..000000000 --- a/src/main/java/emu/grasscutter/net/proto/MassivePropParamOuterClass.java +++ /dev/null @@ -1,872 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: MassivePropParam.proto - -package emu.grasscutter.net.proto; - -public final class MassivePropParamOuterClass { - private MassivePropParamOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface MassivePropParamOrBuilder extends - // @@protoc_insertion_point(interface_extends:MassivePropParam) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 elementReactionType = 1;</code> - * @return The elementReactionType. - */ - int getElementReactionType(); - - /** - * <code>uint32 casterId = 2;</code> - * @return The casterId. - */ - int getCasterId(); - - /** - * <code>repeated float paramList = 3;</code> - * @return A list containing the paramList. - */ - java.util.List<java.lang.Float> getParamListList(); - /** - * <code>repeated float paramList = 3;</code> - * @return The count of paramList. - */ - int getParamListCount(); - /** - * <code>repeated float paramList = 3;</code> - * @param index The index of the element to return. - * @return The paramList at the given index. - */ - float getParamList(int index); - - /** - * <code>uint32 syncFlag = 4;</code> - * @return The syncFlag. - */ - int getSyncFlag(); - } - /** - * Protobuf type {@code MassivePropParam} - */ - public static final class MassivePropParam extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:MassivePropParam) - MassivePropParamOrBuilder { - private static final long serialVersionUID = 0L; - // Use MassivePropParam.newBuilder() to construct. - private MassivePropParam(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private MassivePropParam() { - paramList_ = emptyFloatList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MassivePropParam(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MassivePropParam( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - elementReactionType_ = input.readInt32(); - break; - } - case 16: { - - casterId_ = input.readUInt32(); - break; - } - case 29: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - paramList_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - paramList_.addFloat(input.readFloat()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - paramList_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - paramList_.addFloat(input.readFloat()); - } - input.popLimit(limit); - break; - } - case 32: { - - syncFlag_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - paramList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.MassivePropParamOuterClass.internal_static_MassivePropParam_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.MassivePropParamOuterClass.internal_static_MassivePropParam_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam.class, emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam.Builder.class); - } - - public static final int ELEMENTREACTIONTYPE_FIELD_NUMBER = 1; - private int elementReactionType_; - /** - * <code>int32 elementReactionType = 1;</code> - * @return The elementReactionType. - */ - @java.lang.Override - public int getElementReactionType() { - return elementReactionType_; - } - - public static final int CASTERID_FIELD_NUMBER = 2; - private int casterId_; - /** - * <code>uint32 casterId = 2;</code> - * @return The casterId. - */ - @java.lang.Override - public int getCasterId() { - return casterId_; - } - - public static final int PARAMLIST_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.FloatList paramList_; - /** - * <code>repeated float paramList = 3;</code> - * @return A list containing the paramList. - */ - @java.lang.Override - public java.util.List<java.lang.Float> - getParamListList() { - return paramList_; - } - /** - * <code>repeated float paramList = 3;</code> - * @return The count of paramList. - */ - public int getParamListCount() { - return paramList_.size(); - } - /** - * <code>repeated float paramList = 3;</code> - * @param index The index of the element to return. - * @return The paramList at the given index. - */ - public float getParamList(int index) { - return paramList_.getFloat(index); - } - private int paramListMemoizedSerializedSize = -1; - - public static final int SYNCFLAG_FIELD_NUMBER = 4; - private int syncFlag_; - /** - * <code>uint32 syncFlag = 4;</code> - * @return The syncFlag. - */ - @java.lang.Override - public int getSyncFlag() { - return syncFlag_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (elementReactionType_ != 0) { - output.writeInt32(1, elementReactionType_); - } - if (casterId_ != 0) { - output.writeUInt32(2, casterId_); - } - if (getParamListList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(paramListMemoizedSerializedSize); - } - for (int i = 0; i < paramList_.size(); i++) { - output.writeFloatNoTag(paramList_.getFloat(i)); - } - if (syncFlag_ != 0) { - output.writeUInt32(4, syncFlag_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (elementReactionType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, elementReactionType_); - } - if (casterId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, casterId_); - } - { - int dataSize = 0; - dataSize = 4 * getParamListList().size(); - size += dataSize; - if (!getParamListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - paramListMemoizedSerializedSize = dataSize; - } - if (syncFlag_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, syncFlag_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam other = (emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam) obj; - - if (getElementReactionType() - != other.getElementReactionType()) return false; - if (getCasterId() - != other.getCasterId()) return false; - if (!getParamListList() - .equals(other.getParamListList())) return false; - if (getSyncFlag() - != other.getSyncFlag()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ELEMENTREACTIONTYPE_FIELD_NUMBER; - hash = (53 * hash) + getElementReactionType(); - hash = (37 * hash) + CASTERID_FIELD_NUMBER; - hash = (53 * hash) + getCasterId(); - if (getParamListCount() > 0) { - hash = (37 * hash) + PARAMLIST_FIELD_NUMBER; - hash = (53 * hash) + getParamListList().hashCode(); - } - hash = (37 * hash) + SYNCFLAG_FIELD_NUMBER; - hash = (53 * hash) + getSyncFlag(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code MassivePropParam} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:MassivePropParam) - emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParamOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.MassivePropParamOuterClass.internal_static_MassivePropParam_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.MassivePropParamOuterClass.internal_static_MassivePropParam_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam.class, emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - elementReactionType_ = 0; - - casterId_ = 0; - - paramList_ = emptyFloatList(); - bitField0_ = (bitField0_ & ~0x00000001); - syncFlag_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.MassivePropParamOuterClass.internal_static_MassivePropParam_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam getDefaultInstanceForType() { - return emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam build() { - emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam buildPartial() { - emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam result = new emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam(this); - int from_bitField0_ = bitField0_; - result.elementReactionType_ = elementReactionType_; - result.casterId_ = casterId_; - if (((bitField0_ & 0x00000001) != 0)) { - paramList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.paramList_ = paramList_; - result.syncFlag_ = syncFlag_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam) { - return mergeFrom((emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam other) { - if (other == emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam.getDefaultInstance()) return this; - if (other.getElementReactionType() != 0) { - setElementReactionType(other.getElementReactionType()); - } - if (other.getCasterId() != 0) { - setCasterId(other.getCasterId()); - } - if (!other.paramList_.isEmpty()) { - if (paramList_.isEmpty()) { - paramList_ = other.paramList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureParamListIsMutable(); - paramList_.addAll(other.paramList_); - } - onChanged(); - } - if (other.getSyncFlag() != 0) { - setSyncFlag(other.getSyncFlag()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int elementReactionType_ ; - /** - * <code>int32 elementReactionType = 1;</code> - * @return The elementReactionType. - */ - @java.lang.Override - public int getElementReactionType() { - return elementReactionType_; - } - /** - * <code>int32 elementReactionType = 1;</code> - * @param value The elementReactionType to set. - * @return This builder for chaining. - */ - public Builder setElementReactionType(int value) { - - elementReactionType_ = value; - onChanged(); - return this; - } - /** - * <code>int32 elementReactionType = 1;</code> - * @return This builder for chaining. - */ - public Builder clearElementReactionType() { - - elementReactionType_ = 0; - onChanged(); - return this; - } - - private int casterId_ ; - /** - * <code>uint32 casterId = 2;</code> - * @return The casterId. - */ - @java.lang.Override - public int getCasterId() { - return casterId_; - } - /** - * <code>uint32 casterId = 2;</code> - * @param value The casterId to set. - * @return This builder for chaining. - */ - public Builder setCasterId(int value) { - - casterId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 casterId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearCasterId() { - - casterId_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.FloatList paramList_ = emptyFloatList(); - private void ensureParamListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - paramList_ = mutableCopy(paramList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated float paramList = 3;</code> - * @return A list containing the paramList. - */ - public java.util.List<java.lang.Float> - getParamListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(paramList_) : paramList_; - } - /** - * <code>repeated float paramList = 3;</code> - * @return The count of paramList. - */ - public int getParamListCount() { - return paramList_.size(); - } - /** - * <code>repeated float paramList = 3;</code> - * @param index The index of the element to return. - * @return The paramList at the given index. - */ - public float getParamList(int index) { - return paramList_.getFloat(index); - } - /** - * <code>repeated float paramList = 3;</code> - * @param index The index to set the value at. - * @param value The paramList to set. - * @return This builder for chaining. - */ - public Builder setParamList( - int index, float value) { - ensureParamListIsMutable(); - paramList_.setFloat(index, value); - onChanged(); - return this; - } - /** - * <code>repeated float paramList = 3;</code> - * @param value The paramList to add. - * @return This builder for chaining. - */ - public Builder addParamList(float value) { - ensureParamListIsMutable(); - paramList_.addFloat(value); - onChanged(); - return this; - } - /** - * <code>repeated float paramList = 3;</code> - * @param values The paramList to add. - * @return This builder for chaining. - */ - public Builder addAllParamList( - java.lang.Iterable<? extends java.lang.Float> values) { - ensureParamListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, paramList_); - onChanged(); - return this; - } - /** - * <code>repeated float paramList = 3;</code> - * @return This builder for chaining. - */ - public Builder clearParamList() { - paramList_ = emptyFloatList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private int syncFlag_ ; - /** - * <code>uint32 syncFlag = 4;</code> - * @return The syncFlag. - */ - @java.lang.Override - public int getSyncFlag() { - return syncFlag_; - } - /** - * <code>uint32 syncFlag = 4;</code> - * @param value The syncFlag to set. - * @return This builder for chaining. - */ - public Builder setSyncFlag(int value) { - - syncFlag_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 syncFlag = 4;</code> - * @return This builder for chaining. - */ - public Builder clearSyncFlag() { - - syncFlag_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:MassivePropParam) - } - - // @@protoc_insertion_point(class_scope:MassivePropParam) - private static final emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam(); - } - - public static emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<MassivePropParam> - PARSER = new com.google.protobuf.AbstractParser<MassivePropParam>() { - @java.lang.Override - public MassivePropParam parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MassivePropParam(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<MassivePropParam> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<MassivePropParam> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_MassivePropParam_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_MassivePropParam_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026MassivePropParam.proto\"f\n\020MassivePropP" + - "aram\022\033\n\023elementReactionType\030\001 \001(\005\022\020\n\010cas" + - "terId\030\002 \001(\r\022\021\n\tparamList\030\003 \003(\002\022\020\n\010syncFl" + - "ag\030\004 \001(\rB\033\n\031emu.grasscutter.net.protob\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_MassivePropParam_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_MassivePropParam_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_MassivePropParam_descriptor, - new java.lang.String[] { "ElementReactionType", "CasterId", "ParamList", "SyncFlag", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/MassivePropSyncInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/MassivePropSyncInfoOuterClass.java deleted file mode 100644 index 083f1ebde..000000000 --- a/src/main/java/emu/grasscutter/net/proto/MassivePropSyncInfoOuterClass.java +++ /dev/null @@ -1,874 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: MassivePropSyncInfo.proto - -package emu.grasscutter.net.proto; - -public final class MassivePropSyncInfoOuterClass { - private MassivePropSyncInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface MassivePropSyncInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:MassivePropSyncInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int64 id = 1;</code> - * @return The id. - */ - long getId(); - - /** - * <code>map<int32, .MassivePropParam> propMap = 2;</code> - */ - int getPropMapCount(); - /** - * <code>map<int32, .MassivePropParam> propMap = 2;</code> - */ - boolean containsPropMap( - int key); - /** - * Use {@link #getPropMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam> - getPropMap(); - /** - * <code>map<int32, .MassivePropParam> propMap = 2;</code> - */ - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam> - getPropMapMap(); - /** - * <code>map<int32, .MassivePropParam> propMap = 2;</code> - */ - - emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam getPropMapOrDefault( - int key, - emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam defaultValue); - /** - * <code>map<int32, .MassivePropParam> propMap = 2;</code> - */ - - emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam getPropMapOrThrow( - int key); - } - /** - * Protobuf type {@code MassivePropSyncInfo} - */ - public static final class MassivePropSyncInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:MassivePropSyncInfo) - MassivePropSyncInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use MassivePropSyncInfo.newBuilder() to construct. - private MassivePropSyncInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private MassivePropSyncInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MassivePropSyncInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MassivePropSyncInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - id_ = input.readInt64(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - propMap_ = com.google.protobuf.MapField.newMapField( - PropMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.Integer, emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam> - propMap__ = input.readMessage( - PropMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - propMap_.getMutableMap().put( - propMap__.getKey(), propMap__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.internal_static_MassivePropSyncInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.internal_static_MassivePropSyncInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.class, emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private long id_; - /** - * <code>int64 id = 1;</code> - * @return The id. - */ - @java.lang.Override - public long getId() { - return id_; - } - - public static final int PROPMAP_FIELD_NUMBER = 2; - private static final class PropMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam>newDefaultInstance( - emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.internal_static_MassivePropSyncInfo_PropMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.Integer, emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam> propMap_; - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam> - internalGetPropMap() { - if (propMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropMapDefaultEntryHolder.defaultEntry); - } - return propMap_; - } - - public int getPropMapCount() { - return internalGetPropMap().getMap().size(); - } - /** - * <code>map<int32, .MassivePropParam> propMap = 2;</code> - */ - - @java.lang.Override - public boolean containsPropMap( - int key) { - - return internalGetPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam> getPropMap() { - return getPropMapMap(); - } - /** - * <code>map<int32, .MassivePropParam> propMap = 2;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam> getPropMapMap() { - return internalGetPropMap().getMap(); - } - /** - * <code>map<int32, .MassivePropParam> propMap = 2;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam getPropMapOrDefault( - int key, - emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam defaultValue) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam> map = - internalGetPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<int32, .MassivePropParam> propMap = 2;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam getPropMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam> map = - internalGetPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (id_ != 0L) { - output.writeInt64(1, id_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetPropMap(), - PropMapDefaultEntryHolder.defaultEntry, - 2); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (id_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, id_); - } - for (java.util.Map.Entry<java.lang.Integer, emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam> entry - : internalGetPropMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam> - propMap__ = PropMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, propMap__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo other = (emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo) obj; - - if (getId() - != other.getId()) return false; - if (!internalGetPropMap().equals( - other.internalGetPropMap())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getId()); - if (!internalGetPropMap().getMap().isEmpty()) { - hash = (37 * hash) + PROPMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetPropMap().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code MassivePropSyncInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:MassivePropSyncInfo) - emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.internal_static_MassivePropSyncInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutablePropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.internal_static_MassivePropSyncInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.class, emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = 0L; - - internalGetMutablePropMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.internal_static_MassivePropSyncInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo build() { - emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo buildPartial() { - emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo result = new emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo(this); - int from_bitField0_ = bitField0_; - result.id_ = id_; - result.propMap_ = internalGetPropMap(); - result.propMap_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo) { - return mergeFrom((emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo other) { - if (other == emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.getDefaultInstance()) return this; - if (other.getId() != 0L) { - setId(other.getId()); - } - internalGetMutablePropMap().mergeFrom( - other.internalGetPropMap()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long id_ ; - /** - * <code>int64 id = 1;</code> - * @return The id. - */ - @java.lang.Override - public long getId() { - return id_; - } - /** - * <code>int64 id = 1;</code> - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId(long value) { - - id_ = value; - onChanged(); - return this; - } - /** - * <code>int64 id = 1;</code> - * @return This builder for chaining. - */ - public Builder clearId() { - - id_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam> propMap_; - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam> - internalGetPropMap() { - if (propMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropMapDefaultEntryHolder.defaultEntry); - } - return propMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam> - internalGetMutablePropMap() { - onChanged();; - if (propMap_ == null) { - propMap_ = com.google.protobuf.MapField.newMapField( - PropMapDefaultEntryHolder.defaultEntry); - } - if (!propMap_.isMutable()) { - propMap_ = propMap_.copy(); - } - return propMap_; - } - - public int getPropMapCount() { - return internalGetPropMap().getMap().size(); - } - /** - * <code>map<int32, .MassivePropParam> propMap = 2;</code> - */ - - @java.lang.Override - public boolean containsPropMap( - int key) { - - return internalGetPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam> getPropMap() { - return getPropMapMap(); - } - /** - * <code>map<int32, .MassivePropParam> propMap = 2;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam> getPropMapMap() { - return internalGetPropMap().getMap(); - } - /** - * <code>map<int32, .MassivePropParam> propMap = 2;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam getPropMapOrDefault( - int key, - emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam defaultValue) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam> map = - internalGetPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<int32, .MassivePropParam> propMap = 2;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam getPropMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam> map = - internalGetPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearPropMap() { - internalGetMutablePropMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<int32, .MassivePropParam> propMap = 2;</code> - */ - - public Builder removePropMap( - int key) { - - internalGetMutablePropMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam> - getMutablePropMap() { - return internalGetMutablePropMap().getMutableMap(); - } - /** - * <code>map<int32, .MassivePropParam> propMap = 2;</code> - */ - public Builder putPropMap( - int key, - emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam value) { - - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutablePropMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<int32, .MassivePropParam> propMap = 2;</code> - */ - - public Builder putAllPropMap( - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam> values) { - internalGetMutablePropMap().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:MassivePropSyncInfo) - } - - // @@protoc_insertion_point(class_scope:MassivePropSyncInfo) - private static final emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo(); - } - - public static emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<MassivePropSyncInfo> - PARSER = new com.google.protobuf.AbstractParser<MassivePropSyncInfo>() { - @java.lang.Override - public MassivePropSyncInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MassivePropSyncInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<MassivePropSyncInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<MassivePropSyncInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_MassivePropSyncInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_MassivePropSyncInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_MassivePropSyncInfo_PropMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_MassivePropSyncInfo_PropMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031MassivePropSyncInfo.proto\032\026MassiveProp" + - "Param.proto\"\230\001\n\023MassivePropSyncInfo\022\n\n\002i" + - "d\030\001 \001(\003\0222\n\007propMap\030\002 \003(\0132!.MassivePropSy" + - "ncInfo.PropMapEntry\032A\n\014PropMapEntry\022\013\n\003k" + - "ey\030\001 \001(\005\022 \n\005value\030\002 \001(\0132\021.MassivePropPar" + - "am:\0028\001B\033\n\031emu.grasscutter.net.protob\006pro" + - "to3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.MassivePropParamOuterClass.getDescriptor(), - }); - internal_static_MassivePropSyncInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_MassivePropSyncInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_MassivePropSyncInfo_descriptor, - new java.lang.String[] { "Id", "PropMap", }); - internal_static_MassivePropSyncInfo_PropMapEntry_descriptor = - internal_static_MassivePropSyncInfo_descriptor.getNestedTypes().get(0); - internal_static_MassivePropSyncInfo_PropMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_MassivePropSyncInfo_PropMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - emu.grasscutter.net.proto.MassivePropParamOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/MaterialDeleteInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/MaterialDeleteInfoOuterClass.java deleted file mode 100644 index c4b182828..000000000 --- a/src/main/java/emu/grasscutter/net/proto/MaterialDeleteInfoOuterClass.java +++ /dev/null @@ -1,1307 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: MaterialDeleteInfo.proto - -package emu.grasscutter.net.proto; - -public final class MaterialDeleteInfoOuterClass { - private MaterialDeleteInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface MaterialDeleteInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:MaterialDeleteInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>bool hasDeleteConfig = 1;</code> - * @return The hasDeleteConfig. - */ - boolean getHasDeleteConfig(); - - /** - * <code>.CountDownDelete countDownDelete = 2;</code> - * @return Whether the countDownDelete field is set. - */ - boolean hasCountDownDelete(); - /** - * <code>.CountDownDelete countDownDelete = 2;</code> - * @return The countDownDelete. - */ - emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete getCountDownDelete(); - /** - * <code>.CountDownDelete countDownDelete = 2;</code> - */ - emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDeleteOrBuilder getCountDownDeleteOrBuilder(); - - /** - * <code>.DateTimeDelete dateDelete = 3;</code> - * @return Whether the dateDelete field is set. - */ - boolean hasDateDelete(); - /** - * <code>.DateTimeDelete dateDelete = 3;</code> - * @return The dateDelete. - */ - emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete getDateDelete(); - /** - * <code>.DateTimeDelete dateDelete = 3;</code> - */ - emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDeleteOrBuilder getDateDeleteOrBuilder(); - - /** - * <code>.DelayWeekCountDownDelete delayWeekCountDownDelete = 4;</code> - * @return Whether the delayWeekCountDownDelete field is set. - */ - boolean hasDelayWeekCountDownDelete(); - /** - * <code>.DelayWeekCountDownDelete delayWeekCountDownDelete = 4;</code> - * @return The delayWeekCountDownDelete. - */ - emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete getDelayWeekCountDownDelete(); - /** - * <code>.DelayWeekCountDownDelete delayWeekCountDownDelete = 4;</code> - */ - emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDeleteOrBuilder getDelayWeekCountDownDeleteOrBuilder(); - - public emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.DeleteInfoCase getDeleteInfoCase(); - } - /** - * Protobuf type {@code MaterialDeleteInfo} - */ - public static final class MaterialDeleteInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:MaterialDeleteInfo) - MaterialDeleteInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use MaterialDeleteInfo.newBuilder() to construct. - private MaterialDeleteInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private MaterialDeleteInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MaterialDeleteInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MaterialDeleteInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - hasDeleteConfig_ = input.readBool(); - break; - } - case 18: { - emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete.Builder subBuilder = null; - if (deleteInfoCase_ == 2) { - subBuilder = ((emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete) deleteInfo_).toBuilder(); - } - deleteInfo_ = - input.readMessage(emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete) deleteInfo_); - deleteInfo_ = subBuilder.buildPartial(); - } - deleteInfoCase_ = 2; - break; - } - case 26: { - emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete.Builder subBuilder = null; - if (deleteInfoCase_ == 3) { - subBuilder = ((emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete) deleteInfo_).toBuilder(); - } - deleteInfo_ = - input.readMessage(emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete) deleteInfo_); - deleteInfo_ = subBuilder.buildPartial(); - } - deleteInfoCase_ = 3; - break; - } - case 34: { - emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete.Builder subBuilder = null; - if (deleteInfoCase_ == 4) { - subBuilder = ((emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete) deleteInfo_).toBuilder(); - } - deleteInfo_ = - input.readMessage(emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete) deleteInfo_); - deleteInfo_ = subBuilder.buildPartial(); - } - deleteInfoCase_ = 4; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.internal_static_MaterialDeleteInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.internal_static_MaterialDeleteInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.class, emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.Builder.class); - } - - private int deleteInfoCase_ = 0; - private java.lang.Object deleteInfo_; - public enum DeleteInfoCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - COUNTDOWNDELETE(2), - DATEDELETE(3), - DELAYWEEKCOUNTDOWNDELETE(4), - DELETEINFO_NOT_SET(0); - private final int value; - private DeleteInfoCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DeleteInfoCase valueOf(int value) { - return forNumber(value); - } - - public static DeleteInfoCase forNumber(int value) { - switch (value) { - case 2: return COUNTDOWNDELETE; - case 3: return DATEDELETE; - case 4: return DELAYWEEKCOUNTDOWNDELETE; - case 0: return DELETEINFO_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public DeleteInfoCase - getDeleteInfoCase() { - return DeleteInfoCase.forNumber( - deleteInfoCase_); - } - - public static final int HASDELETECONFIG_FIELD_NUMBER = 1; - private boolean hasDeleteConfig_; - /** - * <code>bool hasDeleteConfig = 1;</code> - * @return The hasDeleteConfig. - */ - @java.lang.Override - public boolean getHasDeleteConfig() { - return hasDeleteConfig_; - } - - public static final int COUNTDOWNDELETE_FIELD_NUMBER = 2; - /** - * <code>.CountDownDelete countDownDelete = 2;</code> - * @return Whether the countDownDelete field is set. - */ - @java.lang.Override - public boolean hasCountDownDelete() { - return deleteInfoCase_ == 2; - } - /** - * <code>.CountDownDelete countDownDelete = 2;</code> - * @return The countDownDelete. - */ - @java.lang.Override - public emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete getCountDownDelete() { - if (deleteInfoCase_ == 2) { - return (emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete) deleteInfo_; - } - return emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete.getDefaultInstance(); - } - /** - * <code>.CountDownDelete countDownDelete = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDeleteOrBuilder getCountDownDeleteOrBuilder() { - if (deleteInfoCase_ == 2) { - return (emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete) deleteInfo_; - } - return emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete.getDefaultInstance(); - } - - public static final int DATEDELETE_FIELD_NUMBER = 3; - /** - * <code>.DateTimeDelete dateDelete = 3;</code> - * @return Whether the dateDelete field is set. - */ - @java.lang.Override - public boolean hasDateDelete() { - return deleteInfoCase_ == 3; - } - /** - * <code>.DateTimeDelete dateDelete = 3;</code> - * @return The dateDelete. - */ - @java.lang.Override - public emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete getDateDelete() { - if (deleteInfoCase_ == 3) { - return (emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete) deleteInfo_; - } - return emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete.getDefaultInstance(); - } - /** - * <code>.DateTimeDelete dateDelete = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDeleteOrBuilder getDateDeleteOrBuilder() { - if (deleteInfoCase_ == 3) { - return (emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete) deleteInfo_; - } - return emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete.getDefaultInstance(); - } - - public static final int DELAYWEEKCOUNTDOWNDELETE_FIELD_NUMBER = 4; - /** - * <code>.DelayWeekCountDownDelete delayWeekCountDownDelete = 4;</code> - * @return Whether the delayWeekCountDownDelete field is set. - */ - @java.lang.Override - public boolean hasDelayWeekCountDownDelete() { - return deleteInfoCase_ == 4; - } - /** - * <code>.DelayWeekCountDownDelete delayWeekCountDownDelete = 4;</code> - * @return The delayWeekCountDownDelete. - */ - @java.lang.Override - public emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete getDelayWeekCountDownDelete() { - if (deleteInfoCase_ == 4) { - return (emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete) deleteInfo_; - } - return emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete.getDefaultInstance(); - } - /** - * <code>.DelayWeekCountDownDelete delayWeekCountDownDelete = 4;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDeleteOrBuilder getDelayWeekCountDownDeleteOrBuilder() { - if (deleteInfoCase_ == 4) { - return (emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete) deleteInfo_; - } - return emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (hasDeleteConfig_ != false) { - output.writeBool(1, hasDeleteConfig_); - } - if (deleteInfoCase_ == 2) { - output.writeMessage(2, (emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete) deleteInfo_); - } - if (deleteInfoCase_ == 3) { - output.writeMessage(3, (emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete) deleteInfo_); - } - if (deleteInfoCase_ == 4) { - output.writeMessage(4, (emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete) deleteInfo_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (hasDeleteConfig_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, hasDeleteConfig_); - } - if (deleteInfoCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete) deleteInfo_); - } - if (deleteInfoCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete) deleteInfo_); - } - if (deleteInfoCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete) deleteInfo_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo other = (emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo) obj; - - if (getHasDeleteConfig() - != other.getHasDeleteConfig()) return false; - if (!getDeleteInfoCase().equals(other.getDeleteInfoCase())) return false; - switch (deleteInfoCase_) { - case 2: - if (!getCountDownDelete() - .equals(other.getCountDownDelete())) return false; - break; - case 3: - if (!getDateDelete() - .equals(other.getDateDelete())) return false; - break; - case 4: - if (!getDelayWeekCountDownDelete() - .equals(other.getDelayWeekCountDownDelete())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HASDELETECONFIG_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getHasDeleteConfig()); - switch (deleteInfoCase_) { - case 2: - hash = (37 * hash) + COUNTDOWNDELETE_FIELD_NUMBER; - hash = (53 * hash) + getCountDownDelete().hashCode(); - break; - case 3: - hash = (37 * hash) + DATEDELETE_FIELD_NUMBER; - hash = (53 * hash) + getDateDelete().hashCode(); - break; - case 4: - hash = (37 * hash) + DELAYWEEKCOUNTDOWNDELETE_FIELD_NUMBER; - hash = (53 * hash) + getDelayWeekCountDownDelete().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code MaterialDeleteInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:MaterialDeleteInfo) - emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.internal_static_MaterialDeleteInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.internal_static_MaterialDeleteInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.class, emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - hasDeleteConfig_ = false; - - deleteInfoCase_ = 0; - deleteInfo_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.internal_static_MaterialDeleteInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo build() { - emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo buildPartial() { - emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo result = new emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo(this); - result.hasDeleteConfig_ = hasDeleteConfig_; - if (deleteInfoCase_ == 2) { - if (countDownDeleteBuilder_ == null) { - result.deleteInfo_ = deleteInfo_; - } else { - result.deleteInfo_ = countDownDeleteBuilder_.build(); - } - } - if (deleteInfoCase_ == 3) { - if (dateDeleteBuilder_ == null) { - result.deleteInfo_ = deleteInfo_; - } else { - result.deleteInfo_ = dateDeleteBuilder_.build(); - } - } - if (deleteInfoCase_ == 4) { - if (delayWeekCountDownDeleteBuilder_ == null) { - result.deleteInfo_ = deleteInfo_; - } else { - result.deleteInfo_ = delayWeekCountDownDeleteBuilder_.build(); - } - } - result.deleteInfoCase_ = deleteInfoCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo) { - return mergeFrom((emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo other) { - if (other == emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.getDefaultInstance()) return this; - if (other.getHasDeleteConfig() != false) { - setHasDeleteConfig(other.getHasDeleteConfig()); - } - switch (other.getDeleteInfoCase()) { - case COUNTDOWNDELETE: { - mergeCountDownDelete(other.getCountDownDelete()); - break; - } - case DATEDELETE: { - mergeDateDelete(other.getDateDelete()); - break; - } - case DELAYWEEKCOUNTDOWNDELETE: { - mergeDelayWeekCountDownDelete(other.getDelayWeekCountDownDelete()); - break; - } - case DELETEINFO_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int deleteInfoCase_ = 0; - private java.lang.Object deleteInfo_; - public DeleteInfoCase - getDeleteInfoCase() { - return DeleteInfoCase.forNumber( - deleteInfoCase_); - } - - public Builder clearDeleteInfo() { - deleteInfoCase_ = 0; - deleteInfo_ = null; - onChanged(); - return this; - } - - - private boolean hasDeleteConfig_ ; - /** - * <code>bool hasDeleteConfig = 1;</code> - * @return The hasDeleteConfig. - */ - @java.lang.Override - public boolean getHasDeleteConfig() { - return hasDeleteConfig_; - } - /** - * <code>bool hasDeleteConfig = 1;</code> - * @param value The hasDeleteConfig to set. - * @return This builder for chaining. - */ - public Builder setHasDeleteConfig(boolean value) { - - hasDeleteConfig_ = value; - onChanged(); - return this; - } - /** - * <code>bool hasDeleteConfig = 1;</code> - * @return This builder for chaining. - */ - public Builder clearHasDeleteConfig() { - - hasDeleteConfig_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete, emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete.Builder, emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDeleteOrBuilder> countDownDeleteBuilder_; - /** - * <code>.CountDownDelete countDownDelete = 2;</code> - * @return Whether the countDownDelete field is set. - */ - @java.lang.Override - public boolean hasCountDownDelete() { - return deleteInfoCase_ == 2; - } - /** - * <code>.CountDownDelete countDownDelete = 2;</code> - * @return The countDownDelete. - */ - @java.lang.Override - public emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete getCountDownDelete() { - if (countDownDeleteBuilder_ == null) { - if (deleteInfoCase_ == 2) { - return (emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete) deleteInfo_; - } - return emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete.getDefaultInstance(); - } else { - if (deleteInfoCase_ == 2) { - return countDownDeleteBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete.getDefaultInstance(); - } - } - /** - * <code>.CountDownDelete countDownDelete = 2;</code> - */ - public Builder setCountDownDelete(emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete value) { - if (countDownDeleteBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deleteInfo_ = value; - onChanged(); - } else { - countDownDeleteBuilder_.setMessage(value); - } - deleteInfoCase_ = 2; - return this; - } - /** - * <code>.CountDownDelete countDownDelete = 2;</code> - */ - public Builder setCountDownDelete( - emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete.Builder builderForValue) { - if (countDownDeleteBuilder_ == null) { - deleteInfo_ = builderForValue.build(); - onChanged(); - } else { - countDownDeleteBuilder_.setMessage(builderForValue.build()); - } - deleteInfoCase_ = 2; - return this; - } - /** - * <code>.CountDownDelete countDownDelete = 2;</code> - */ - public Builder mergeCountDownDelete(emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete value) { - if (countDownDeleteBuilder_ == null) { - if (deleteInfoCase_ == 2 && - deleteInfo_ != emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete.getDefaultInstance()) { - deleteInfo_ = emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete.newBuilder((emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete) deleteInfo_) - .mergeFrom(value).buildPartial(); - } else { - deleteInfo_ = value; - } - onChanged(); - } else { - if (deleteInfoCase_ == 2) { - countDownDeleteBuilder_.mergeFrom(value); - } - countDownDeleteBuilder_.setMessage(value); - } - deleteInfoCase_ = 2; - return this; - } - /** - * <code>.CountDownDelete countDownDelete = 2;</code> - */ - public Builder clearCountDownDelete() { - if (countDownDeleteBuilder_ == null) { - if (deleteInfoCase_ == 2) { - deleteInfoCase_ = 0; - deleteInfo_ = null; - onChanged(); - } - } else { - if (deleteInfoCase_ == 2) { - deleteInfoCase_ = 0; - deleteInfo_ = null; - } - countDownDeleteBuilder_.clear(); - } - return this; - } - /** - * <code>.CountDownDelete countDownDelete = 2;</code> - */ - public emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete.Builder getCountDownDeleteBuilder() { - return getCountDownDeleteFieldBuilder().getBuilder(); - } - /** - * <code>.CountDownDelete countDownDelete = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDeleteOrBuilder getCountDownDeleteOrBuilder() { - if ((deleteInfoCase_ == 2) && (countDownDeleteBuilder_ != null)) { - return countDownDeleteBuilder_.getMessageOrBuilder(); - } else { - if (deleteInfoCase_ == 2) { - return (emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete) deleteInfo_; - } - return emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete.getDefaultInstance(); - } - } - /** - * <code>.CountDownDelete countDownDelete = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete, emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete.Builder, emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDeleteOrBuilder> - getCountDownDeleteFieldBuilder() { - if (countDownDeleteBuilder_ == null) { - if (!(deleteInfoCase_ == 2)) { - deleteInfo_ = emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete.getDefaultInstance(); - } - countDownDeleteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete, emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete.Builder, emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDeleteOrBuilder>( - (emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete) deleteInfo_, - getParentForChildren(), - isClean()); - deleteInfo_ = null; - } - deleteInfoCase_ = 2; - onChanged();; - return countDownDeleteBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete, emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete.Builder, emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDeleteOrBuilder> dateDeleteBuilder_; - /** - * <code>.DateTimeDelete dateDelete = 3;</code> - * @return Whether the dateDelete field is set. - */ - @java.lang.Override - public boolean hasDateDelete() { - return deleteInfoCase_ == 3; - } - /** - * <code>.DateTimeDelete dateDelete = 3;</code> - * @return The dateDelete. - */ - @java.lang.Override - public emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete getDateDelete() { - if (dateDeleteBuilder_ == null) { - if (deleteInfoCase_ == 3) { - return (emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete) deleteInfo_; - } - return emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete.getDefaultInstance(); - } else { - if (deleteInfoCase_ == 3) { - return dateDeleteBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete.getDefaultInstance(); - } - } - /** - * <code>.DateTimeDelete dateDelete = 3;</code> - */ - public Builder setDateDelete(emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete value) { - if (dateDeleteBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deleteInfo_ = value; - onChanged(); - } else { - dateDeleteBuilder_.setMessage(value); - } - deleteInfoCase_ = 3; - return this; - } - /** - * <code>.DateTimeDelete dateDelete = 3;</code> - */ - public Builder setDateDelete( - emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete.Builder builderForValue) { - if (dateDeleteBuilder_ == null) { - deleteInfo_ = builderForValue.build(); - onChanged(); - } else { - dateDeleteBuilder_.setMessage(builderForValue.build()); - } - deleteInfoCase_ = 3; - return this; - } - /** - * <code>.DateTimeDelete dateDelete = 3;</code> - */ - public Builder mergeDateDelete(emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete value) { - if (dateDeleteBuilder_ == null) { - if (deleteInfoCase_ == 3 && - deleteInfo_ != emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete.getDefaultInstance()) { - deleteInfo_ = emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete.newBuilder((emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete) deleteInfo_) - .mergeFrom(value).buildPartial(); - } else { - deleteInfo_ = value; - } - onChanged(); - } else { - if (deleteInfoCase_ == 3) { - dateDeleteBuilder_.mergeFrom(value); - } - dateDeleteBuilder_.setMessage(value); - } - deleteInfoCase_ = 3; - return this; - } - /** - * <code>.DateTimeDelete dateDelete = 3;</code> - */ - public Builder clearDateDelete() { - if (dateDeleteBuilder_ == null) { - if (deleteInfoCase_ == 3) { - deleteInfoCase_ = 0; - deleteInfo_ = null; - onChanged(); - } - } else { - if (deleteInfoCase_ == 3) { - deleteInfoCase_ = 0; - deleteInfo_ = null; - } - dateDeleteBuilder_.clear(); - } - return this; - } - /** - * <code>.DateTimeDelete dateDelete = 3;</code> - */ - public emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete.Builder getDateDeleteBuilder() { - return getDateDeleteFieldBuilder().getBuilder(); - } - /** - * <code>.DateTimeDelete dateDelete = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDeleteOrBuilder getDateDeleteOrBuilder() { - if ((deleteInfoCase_ == 3) && (dateDeleteBuilder_ != null)) { - return dateDeleteBuilder_.getMessageOrBuilder(); - } else { - if (deleteInfoCase_ == 3) { - return (emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete) deleteInfo_; - } - return emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete.getDefaultInstance(); - } - } - /** - * <code>.DateTimeDelete dateDelete = 3;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete, emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete.Builder, emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDeleteOrBuilder> - getDateDeleteFieldBuilder() { - if (dateDeleteBuilder_ == null) { - if (!(deleteInfoCase_ == 3)) { - deleteInfo_ = emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete.getDefaultInstance(); - } - dateDeleteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete, emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete.Builder, emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDeleteOrBuilder>( - (emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete) deleteInfo_, - getParentForChildren(), - isClean()); - deleteInfo_ = null; - } - deleteInfoCase_ = 3; - onChanged();; - return dateDeleteBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete, emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete.Builder, emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDeleteOrBuilder> delayWeekCountDownDeleteBuilder_; - /** - * <code>.DelayWeekCountDownDelete delayWeekCountDownDelete = 4;</code> - * @return Whether the delayWeekCountDownDelete field is set. - */ - @java.lang.Override - public boolean hasDelayWeekCountDownDelete() { - return deleteInfoCase_ == 4; - } - /** - * <code>.DelayWeekCountDownDelete delayWeekCountDownDelete = 4;</code> - * @return The delayWeekCountDownDelete. - */ - @java.lang.Override - public emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete getDelayWeekCountDownDelete() { - if (delayWeekCountDownDeleteBuilder_ == null) { - if (deleteInfoCase_ == 4) { - return (emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete) deleteInfo_; - } - return emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete.getDefaultInstance(); - } else { - if (deleteInfoCase_ == 4) { - return delayWeekCountDownDeleteBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete.getDefaultInstance(); - } - } - /** - * <code>.DelayWeekCountDownDelete delayWeekCountDownDelete = 4;</code> - */ - public Builder setDelayWeekCountDownDelete(emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete value) { - if (delayWeekCountDownDeleteBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deleteInfo_ = value; - onChanged(); - } else { - delayWeekCountDownDeleteBuilder_.setMessage(value); - } - deleteInfoCase_ = 4; - return this; - } - /** - * <code>.DelayWeekCountDownDelete delayWeekCountDownDelete = 4;</code> - */ - public Builder setDelayWeekCountDownDelete( - emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete.Builder builderForValue) { - if (delayWeekCountDownDeleteBuilder_ == null) { - deleteInfo_ = builderForValue.build(); - onChanged(); - } else { - delayWeekCountDownDeleteBuilder_.setMessage(builderForValue.build()); - } - deleteInfoCase_ = 4; - return this; - } - /** - * <code>.DelayWeekCountDownDelete delayWeekCountDownDelete = 4;</code> - */ - public Builder mergeDelayWeekCountDownDelete(emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete value) { - if (delayWeekCountDownDeleteBuilder_ == null) { - if (deleteInfoCase_ == 4 && - deleteInfo_ != emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete.getDefaultInstance()) { - deleteInfo_ = emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete.newBuilder((emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete) deleteInfo_) - .mergeFrom(value).buildPartial(); - } else { - deleteInfo_ = value; - } - onChanged(); - } else { - if (deleteInfoCase_ == 4) { - delayWeekCountDownDeleteBuilder_.mergeFrom(value); - } - delayWeekCountDownDeleteBuilder_.setMessage(value); - } - deleteInfoCase_ = 4; - return this; - } - /** - * <code>.DelayWeekCountDownDelete delayWeekCountDownDelete = 4;</code> - */ - public Builder clearDelayWeekCountDownDelete() { - if (delayWeekCountDownDeleteBuilder_ == null) { - if (deleteInfoCase_ == 4) { - deleteInfoCase_ = 0; - deleteInfo_ = null; - onChanged(); - } - } else { - if (deleteInfoCase_ == 4) { - deleteInfoCase_ = 0; - deleteInfo_ = null; - } - delayWeekCountDownDeleteBuilder_.clear(); - } - return this; - } - /** - * <code>.DelayWeekCountDownDelete delayWeekCountDownDelete = 4;</code> - */ - public emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete.Builder getDelayWeekCountDownDeleteBuilder() { - return getDelayWeekCountDownDeleteFieldBuilder().getBuilder(); - } - /** - * <code>.DelayWeekCountDownDelete delayWeekCountDownDelete = 4;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDeleteOrBuilder getDelayWeekCountDownDeleteOrBuilder() { - if ((deleteInfoCase_ == 4) && (delayWeekCountDownDeleteBuilder_ != null)) { - return delayWeekCountDownDeleteBuilder_.getMessageOrBuilder(); - } else { - if (deleteInfoCase_ == 4) { - return (emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete) deleteInfo_; - } - return emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete.getDefaultInstance(); - } - } - /** - * <code>.DelayWeekCountDownDelete delayWeekCountDownDelete = 4;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete, emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete.Builder, emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDeleteOrBuilder> - getDelayWeekCountDownDeleteFieldBuilder() { - if (delayWeekCountDownDeleteBuilder_ == null) { - if (!(deleteInfoCase_ == 4)) { - deleteInfo_ = emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete.getDefaultInstance(); - } - delayWeekCountDownDeleteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete, emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete.Builder, emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDeleteOrBuilder>( - (emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete) deleteInfo_, - getParentForChildren(), - isClean()); - deleteInfo_ = null; - } - deleteInfoCase_ = 4; - onChanged();; - return delayWeekCountDownDeleteBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:MaterialDeleteInfo) - } - - // @@protoc_insertion_point(class_scope:MaterialDeleteInfo) - private static final emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo(); - } - - public static emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<MaterialDeleteInfo> - PARSER = new com.google.protobuf.AbstractParser<MaterialDeleteInfo>() { - @java.lang.Override - public MaterialDeleteInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MaterialDeleteInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<MaterialDeleteInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<MaterialDeleteInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_MaterialDeleteInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_MaterialDeleteInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030MaterialDeleteInfo.proto\032\025CountDownDel" + - "ete.proto\032\024DateTimeDelete.proto\032\036DelayWe" + - "ekCountDownDelete.proto\"\316\001\n\022MaterialDele" + - "teInfo\022\027\n\017hasDeleteConfig\030\001 \001(\010\022+\n\017count" + - "DownDelete\030\002 \001(\0132\020.CountDownDeleteH\000\022%\n\n" + - "dateDelete\030\003 \001(\0132\017.DateTimeDeleteH\000\022=\n\030d" + - "elayWeekCountDownDelete\030\004 \001(\0132\031.DelayWee" + - "kCountDownDeleteH\000B\014\n\ndeleteInfoB\033\n\031emu." + - "grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.CountDownDeleteOuterClass.getDescriptor(), - emu.grasscutter.net.proto.DateTimeDeleteOuterClass.getDescriptor(), - emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.getDescriptor(), - }); - internal_static_MaterialDeleteInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_MaterialDeleteInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_MaterialDeleteInfo_descriptor, - new java.lang.String[] { "HasDeleteConfig", "CountDownDelete", "DateDelete", "DelayWeekCountDownDelete", "DeleteInfo", }); - emu.grasscutter.net.proto.CountDownDeleteOuterClass.getDescriptor(); - emu.grasscutter.net.proto.DateTimeDeleteOuterClass.getDescriptor(); - emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/MaterialInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/MaterialInfoOuterClass.java deleted file mode 100644 index f45c560d9..000000000 --- a/src/main/java/emu/grasscutter/net/proto/MaterialInfoOuterClass.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: MaterialInfo.proto - -package emu.grasscutter.net.proto; - -public final class MaterialInfoOuterClass { - private MaterialInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface MaterialInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:MaterialInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 guid = 1;</code> - * @return The guid. - */ - long getGuid(); - - /** - * <code>uint32 count = 2;</code> - * @return The count. - */ - int getCount(); - } - /** - * Protobuf type {@code MaterialInfo} - */ - public static final class MaterialInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:MaterialInfo) - MaterialInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use MaterialInfo.newBuilder() to construct. - private MaterialInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private MaterialInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MaterialInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MaterialInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - guid_ = input.readUInt64(); - break; - } - case 16: { - - count_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.MaterialInfoOuterClass.internal_static_MaterialInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.MaterialInfoOuterClass.internal_static_MaterialInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo.class, emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo.Builder.class); - } - - public static final int GUID_FIELD_NUMBER = 1; - private long guid_; - /** - * <code>uint64 guid = 1;</code> - * @return The guid. - */ - @java.lang.Override - public long getGuid() { - return guid_; - } - - public static final int COUNT_FIELD_NUMBER = 2; - private int count_; - /** - * <code>uint32 count = 2;</code> - * @return The count. - */ - @java.lang.Override - public int getCount() { - return count_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (guid_ != 0L) { - output.writeUInt64(1, guid_); - } - if (count_ != 0) { - output.writeUInt32(2, count_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (guid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, guid_); - } - if (count_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, count_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo other = (emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo) obj; - - if (getGuid() - != other.getGuid()) return false; - if (getCount() - != other.getCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGuid()); - hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + getCount(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code MaterialInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:MaterialInfo) - emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.MaterialInfoOuterClass.internal_static_MaterialInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.MaterialInfoOuterClass.internal_static_MaterialInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo.class, emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - guid_ = 0L; - - count_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.MaterialInfoOuterClass.internal_static_MaterialInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo build() { - emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo buildPartial() { - emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo result = new emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo(this); - result.guid_ = guid_; - result.count_ = count_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo) { - return mergeFrom((emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo other) { - if (other == emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo.getDefaultInstance()) return this; - if (other.getGuid() != 0L) { - setGuid(other.getGuid()); - } - if (other.getCount() != 0) { - setCount(other.getCount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long guid_ ; - /** - * <code>uint64 guid = 1;</code> - * @return The guid. - */ - @java.lang.Override - public long getGuid() { - return guid_; - } - /** - * <code>uint64 guid = 1;</code> - * @param value The guid to set. - * @return This builder for chaining. - */ - public Builder setGuid(long value) { - - guid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 guid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearGuid() { - - guid_ = 0L; - onChanged(); - return this; - } - - private int count_ ; - /** - * <code>uint32 count = 2;</code> - * @return The count. - */ - @java.lang.Override - public int getCount() { - return count_; - } - /** - * <code>uint32 count = 2;</code> - * @param value The count to set. - * @return This builder for chaining. - */ - public Builder setCount(int value) { - - count_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 count = 2;</code> - * @return This builder for chaining. - */ - public Builder clearCount() { - - count_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:MaterialInfo) - } - - // @@protoc_insertion_point(class_scope:MaterialInfo) - private static final emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo(); - } - - public static emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<MaterialInfo> - PARSER = new com.google.protobuf.AbstractParser<MaterialInfo>() { - @java.lang.Override - public MaterialInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MaterialInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<MaterialInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<MaterialInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_MaterialInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_MaterialInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\022MaterialInfo.proto\"+\n\014MaterialInfo\022\014\n\004" + - "guid\030\001 \001(\004\022\r\n\005count\030\002 \001(\rB\033\n\031emu.grasscu" + - "tter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_MaterialInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_MaterialInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_MaterialInfo_descriptor, - new java.lang.String[] { "Guid", "Count", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/MaterialOuterClass.java b/src/main/java/emu/grasscutter/net/proto/MaterialOuterClass.java deleted file mode 100644 index 70feb0221..000000000 --- a/src/main/java/emu/grasscutter/net/proto/MaterialOuterClass.java +++ /dev/null @@ -1,742 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Material.proto - -package emu.grasscutter.net.proto; - -public final class MaterialOuterClass { - private MaterialOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface MaterialOrBuilder extends - // @@protoc_insertion_point(interface_extends:Material) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 count = 1;</code> - * @return The count. - */ - int getCount(); - - /** - * <code>.MaterialDeleteInfo deleteInfo = 2;</code> - * @return Whether the deleteInfo field is set. - */ - boolean hasDeleteInfo(); - /** - * <code>.MaterialDeleteInfo deleteInfo = 2;</code> - * @return The deleteInfo. - */ - emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo getDeleteInfo(); - /** - * <code>.MaterialDeleteInfo deleteInfo = 2;</code> - */ - emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfoOrBuilder getDeleteInfoOrBuilder(); - } - /** - * Protobuf type {@code Material} - */ - public static final class Material extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Material) - MaterialOrBuilder { - private static final long serialVersionUID = 0L; - // Use Material.newBuilder() to construct. - private Material(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Material() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Material(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Material( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - count_ = input.readUInt32(); - break; - } - case 18: { - emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.Builder subBuilder = null; - if (deleteInfo_ != null) { - subBuilder = deleteInfo_.toBuilder(); - } - deleteInfo_ = input.readMessage(emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deleteInfo_); - deleteInfo_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.MaterialOuterClass.internal_static_Material_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.MaterialOuterClass.internal_static_Material_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.MaterialOuterClass.Material.class, emu.grasscutter.net.proto.MaterialOuterClass.Material.Builder.class); - } - - public static final int COUNT_FIELD_NUMBER = 1; - private int count_; - /** - * <code>uint32 count = 1;</code> - * @return The count. - */ - @java.lang.Override - public int getCount() { - return count_; - } - - public static final int DELETEINFO_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo deleteInfo_; - /** - * <code>.MaterialDeleteInfo deleteInfo = 2;</code> - * @return Whether the deleteInfo field is set. - */ - @java.lang.Override - public boolean hasDeleteInfo() { - return deleteInfo_ != null; - } - /** - * <code>.MaterialDeleteInfo deleteInfo = 2;</code> - * @return The deleteInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo getDeleteInfo() { - return deleteInfo_ == null ? emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.getDefaultInstance() : deleteInfo_; - } - /** - * <code>.MaterialDeleteInfo deleteInfo = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfoOrBuilder getDeleteInfoOrBuilder() { - return getDeleteInfo(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (count_ != 0) { - output.writeUInt32(1, count_); - } - if (deleteInfo_ != null) { - output.writeMessage(2, getDeleteInfo()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (count_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, count_); - } - if (deleteInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDeleteInfo()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.MaterialOuterClass.Material)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.MaterialOuterClass.Material other = (emu.grasscutter.net.proto.MaterialOuterClass.Material) obj; - - if (getCount() - != other.getCount()) return false; - if (hasDeleteInfo() != other.hasDeleteInfo()) return false; - if (hasDeleteInfo()) { - if (!getDeleteInfo() - .equals(other.getDeleteInfo())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + getCount(); - if (hasDeleteInfo()) { - hash = (37 * hash) + DELETEINFO_FIELD_NUMBER; - hash = (53 * hash) + getDeleteInfo().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.MaterialOuterClass.Material parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MaterialOuterClass.Material parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MaterialOuterClass.Material parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MaterialOuterClass.Material parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MaterialOuterClass.Material parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MaterialOuterClass.Material parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MaterialOuterClass.Material parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MaterialOuterClass.Material parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.MaterialOuterClass.Material parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MaterialOuterClass.Material parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.MaterialOuterClass.Material parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MaterialOuterClass.Material parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.MaterialOuterClass.Material prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Material} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:Material) - emu.grasscutter.net.proto.MaterialOuterClass.MaterialOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.MaterialOuterClass.internal_static_Material_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.MaterialOuterClass.internal_static_Material_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.MaterialOuterClass.Material.class, emu.grasscutter.net.proto.MaterialOuterClass.Material.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.MaterialOuterClass.Material.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - count_ = 0; - - if (deleteInfoBuilder_ == null) { - deleteInfo_ = null; - } else { - deleteInfo_ = null; - deleteInfoBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.MaterialOuterClass.internal_static_Material_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MaterialOuterClass.Material getDefaultInstanceForType() { - return emu.grasscutter.net.proto.MaterialOuterClass.Material.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.MaterialOuterClass.Material build() { - emu.grasscutter.net.proto.MaterialOuterClass.Material result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MaterialOuterClass.Material buildPartial() { - emu.grasscutter.net.proto.MaterialOuterClass.Material result = new emu.grasscutter.net.proto.MaterialOuterClass.Material(this); - result.count_ = count_; - if (deleteInfoBuilder_ == null) { - result.deleteInfo_ = deleteInfo_; - } else { - result.deleteInfo_ = deleteInfoBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.MaterialOuterClass.Material) { - return mergeFrom((emu.grasscutter.net.proto.MaterialOuterClass.Material)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.MaterialOuterClass.Material other) { - if (other == emu.grasscutter.net.proto.MaterialOuterClass.Material.getDefaultInstance()) return this; - if (other.getCount() != 0) { - setCount(other.getCount()); - } - if (other.hasDeleteInfo()) { - mergeDeleteInfo(other.getDeleteInfo()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.MaterialOuterClass.Material parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.MaterialOuterClass.Material) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int count_ ; - /** - * <code>uint32 count = 1;</code> - * @return The count. - */ - @java.lang.Override - public int getCount() { - return count_; - } - /** - * <code>uint32 count = 1;</code> - * @param value The count to set. - * @return This builder for chaining. - */ - public Builder setCount(int value) { - - count_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 count = 1;</code> - * @return This builder for chaining. - */ - public Builder clearCount() { - - count_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo deleteInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo, emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.Builder, emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfoOrBuilder> deleteInfoBuilder_; - /** - * <code>.MaterialDeleteInfo deleteInfo = 2;</code> - * @return Whether the deleteInfo field is set. - */ - public boolean hasDeleteInfo() { - return deleteInfoBuilder_ != null || deleteInfo_ != null; - } - /** - * <code>.MaterialDeleteInfo deleteInfo = 2;</code> - * @return The deleteInfo. - */ - public emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo getDeleteInfo() { - if (deleteInfoBuilder_ == null) { - return deleteInfo_ == null ? emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.getDefaultInstance() : deleteInfo_; - } else { - return deleteInfoBuilder_.getMessage(); - } - } - /** - * <code>.MaterialDeleteInfo deleteInfo = 2;</code> - */ - public Builder setDeleteInfo(emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo value) { - if (deleteInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deleteInfo_ = value; - onChanged(); - } else { - deleteInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.MaterialDeleteInfo deleteInfo = 2;</code> - */ - public Builder setDeleteInfo( - emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.Builder builderForValue) { - if (deleteInfoBuilder_ == null) { - deleteInfo_ = builderForValue.build(); - onChanged(); - } else { - deleteInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.MaterialDeleteInfo deleteInfo = 2;</code> - */ - public Builder mergeDeleteInfo(emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo value) { - if (deleteInfoBuilder_ == null) { - if (deleteInfo_ != null) { - deleteInfo_ = - emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.newBuilder(deleteInfo_).mergeFrom(value).buildPartial(); - } else { - deleteInfo_ = value; - } - onChanged(); - } else { - deleteInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.MaterialDeleteInfo deleteInfo = 2;</code> - */ - public Builder clearDeleteInfo() { - if (deleteInfoBuilder_ == null) { - deleteInfo_ = null; - onChanged(); - } else { - deleteInfo_ = null; - deleteInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.MaterialDeleteInfo deleteInfo = 2;</code> - */ - public emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.Builder getDeleteInfoBuilder() { - - onChanged(); - return getDeleteInfoFieldBuilder().getBuilder(); - } - /** - * <code>.MaterialDeleteInfo deleteInfo = 2;</code> - */ - public emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfoOrBuilder getDeleteInfoOrBuilder() { - if (deleteInfoBuilder_ != null) { - return deleteInfoBuilder_.getMessageOrBuilder(); - } else { - return deleteInfo_ == null ? - emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.getDefaultInstance() : deleteInfo_; - } - } - /** - * <code>.MaterialDeleteInfo deleteInfo = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo, emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.Builder, emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfoOrBuilder> - getDeleteInfoFieldBuilder() { - if (deleteInfoBuilder_ == null) { - deleteInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo, emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.Builder, emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfoOrBuilder>( - getDeleteInfo(), - getParentForChildren(), - isClean()); - deleteInfo_ = null; - } - return deleteInfoBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Material) - } - - // @@protoc_insertion_point(class_scope:Material) - private static final emu.grasscutter.net.proto.MaterialOuterClass.Material DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.MaterialOuterClass.Material(); - } - - public static emu.grasscutter.net.proto.MaterialOuterClass.Material getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<Material> - PARSER = new com.google.protobuf.AbstractParser<Material>() { - @java.lang.Override - public Material parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Material(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<Material> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Material> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MaterialOuterClass.Material getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Material_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Material_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\016Material.proto\032\030MaterialDeleteInfo.pro" + - "to\"B\n\010Material\022\r\n\005count\030\001 \001(\r\022\'\n\ndeleteI" + - "nfo\030\002 \001(\0132\023.MaterialDeleteInfoB\033\n\031emu.gr" + - "asscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.getDescriptor(), - }); - internal_static_Material_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_Material_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Material_descriptor, - new java.lang.String[] { "Count", "DeleteInfo", }); - emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/MathQuaternionOuterClass.java b/src/main/java/emu/grasscutter/net/proto/MathQuaternionOuterClass.java deleted file mode 100644 index a8e139b16..000000000 --- a/src/main/java/emu/grasscutter/net/proto/MathQuaternionOuterClass.java +++ /dev/null @@ -1,755 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: MathQuaternion.proto - -package emu.grasscutter.net.proto; - -public final class MathQuaternionOuterClass { - private MathQuaternionOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface MathQuaternionOrBuilder extends - // @@protoc_insertion_point(interface_extends:MathQuaternion) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>float x = 1;</code> - * @return The x. - */ - float getX(); - - /** - * <code>float y = 2;</code> - * @return The y. - */ - float getY(); - - /** - * <code>float z = 3;</code> - * @return The z. - */ - float getZ(); - - /** - * <code>float w = 4;</code> - * @return The w. - */ - float getW(); - } - /** - * Protobuf type {@code MathQuaternion} - */ - public static final class MathQuaternion extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:MathQuaternion) - MathQuaternionOrBuilder { - private static final long serialVersionUID = 0L; - // Use MathQuaternion.newBuilder() to construct. - private MathQuaternion(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private MathQuaternion() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MathQuaternion(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MathQuaternion( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 13: { - - x_ = input.readFloat(); - break; - } - case 21: { - - y_ = input.readFloat(); - break; - } - case 29: { - - z_ = input.readFloat(); - break; - } - case 37: { - - w_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.MathQuaternionOuterClass.internal_static_MathQuaternion_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.MathQuaternionOuterClass.internal_static_MathQuaternion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.class, emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder.class); - } - - public static final int X_FIELD_NUMBER = 1; - private float x_; - /** - * <code>float x = 1;</code> - * @return The x. - */ - @java.lang.Override - public float getX() { - return x_; - } - - public static final int Y_FIELD_NUMBER = 2; - private float y_; - /** - * <code>float y = 2;</code> - * @return The y. - */ - @java.lang.Override - public float getY() { - return y_; - } - - public static final int Z_FIELD_NUMBER = 3; - private float z_; - /** - * <code>float z = 3;</code> - * @return The z. - */ - @java.lang.Override - public float getZ() { - return z_; - } - - public static final int W_FIELD_NUMBER = 4; - private float w_; - /** - * <code>float w = 4;</code> - * @return The w. - */ - @java.lang.Override - public float getW() { - return w_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (x_ != 0F) { - output.writeFloat(1, x_); - } - if (y_ != 0F) { - output.writeFloat(2, y_); - } - if (z_ != 0F) { - output.writeFloat(3, z_); - } - if (w_ != 0F) { - output.writeFloat(4, w_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (x_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, x_); - } - if (y_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, y_); - } - if (z_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, z_); - } - if (w_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, w_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion other = (emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion) obj; - - if (java.lang.Float.floatToIntBits(getX()) - != java.lang.Float.floatToIntBits( - other.getX())) return false; - if (java.lang.Float.floatToIntBits(getY()) - != java.lang.Float.floatToIntBits( - other.getY())) return false; - if (java.lang.Float.floatToIntBits(getZ()) - != java.lang.Float.floatToIntBits( - other.getZ())) return false; - if (java.lang.Float.floatToIntBits(getW()) - != java.lang.Float.floatToIntBits( - other.getW())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getX()); - hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getY()); - hash = (37 * hash) + Z_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getZ()); - hash = (37 * hash) + W_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getW()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code MathQuaternion} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:MathQuaternion) - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.MathQuaternionOuterClass.internal_static_MathQuaternion_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.MathQuaternionOuterClass.internal_static_MathQuaternion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.class, emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - x_ = 0F; - - y_ = 0F; - - z_ = 0F; - - w_ = 0F; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.MathQuaternionOuterClass.internal_static_MathQuaternion_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion getDefaultInstanceForType() { - return emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion build() { - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion buildPartial() { - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion result = new emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion(this); - result.x_ = x_; - result.y_ = y_; - result.z_ = z_; - result.w_ = w_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion) { - return mergeFrom((emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion other) { - if (other == emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.getDefaultInstance()) return this; - if (other.getX() != 0F) { - setX(other.getX()); - } - if (other.getY() != 0F) { - setY(other.getY()); - } - if (other.getZ() != 0F) { - setZ(other.getZ()); - } - if (other.getW() != 0F) { - setW(other.getW()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private float x_ ; - /** - * <code>float x = 1;</code> - * @return The x. - */ - @java.lang.Override - public float getX() { - return x_; - } - /** - * <code>float x = 1;</code> - * @param value The x to set. - * @return This builder for chaining. - */ - public Builder setX(float value) { - - x_ = value; - onChanged(); - return this; - } - /** - * <code>float x = 1;</code> - * @return This builder for chaining. - */ - public Builder clearX() { - - x_ = 0F; - onChanged(); - return this; - } - - private float y_ ; - /** - * <code>float y = 2;</code> - * @return The y. - */ - @java.lang.Override - public float getY() { - return y_; - } - /** - * <code>float y = 2;</code> - * @param value The y to set. - * @return This builder for chaining. - */ - public Builder setY(float value) { - - y_ = value; - onChanged(); - return this; - } - /** - * <code>float y = 2;</code> - * @return This builder for chaining. - */ - public Builder clearY() { - - y_ = 0F; - onChanged(); - return this; - } - - private float z_ ; - /** - * <code>float z = 3;</code> - * @return The z. - */ - @java.lang.Override - public float getZ() { - return z_; - } - /** - * <code>float z = 3;</code> - * @param value The z to set. - * @return This builder for chaining. - */ - public Builder setZ(float value) { - - z_ = value; - onChanged(); - return this; - } - /** - * <code>float z = 3;</code> - * @return This builder for chaining. - */ - public Builder clearZ() { - - z_ = 0F; - onChanged(); - return this; - } - - private float w_ ; - /** - * <code>float w = 4;</code> - * @return The w. - */ - @java.lang.Override - public float getW() { - return w_; - } - /** - * <code>float w = 4;</code> - * @param value The w to set. - * @return This builder for chaining. - */ - public Builder setW(float value) { - - w_ = value; - onChanged(); - return this; - } - /** - * <code>float w = 4;</code> - * @return This builder for chaining. - */ - public Builder clearW() { - - w_ = 0F; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:MathQuaternion) - } - - // @@protoc_insertion_point(class_scope:MathQuaternion) - private static final emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion(); - } - - public static emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<MathQuaternion> - PARSER = new com.google.protobuf.AbstractParser<MathQuaternion>() { - @java.lang.Override - public MathQuaternion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MathQuaternion(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<MathQuaternion> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<MathQuaternion> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_MathQuaternion_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_MathQuaternion_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024MathQuaternion.proto\"<\n\016MathQuaternion" + - "\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002\022\t\n\001w\030\004" + - " \001(\002B\033\n\031emu.grasscutter.net.protob\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_MathQuaternion_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_MathQuaternion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_MathQuaternion_descriptor, - new java.lang.String[] { "X", "Y", "Z", "W", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ModifierDurabilityOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ModifierDurabilityOuterClass.java deleted file mode 100644 index abded6840..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ModifierDurabilityOuterClass.java +++ /dev/null @@ -1,611 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ModifierDurability.proto - -package emu.grasscutter.net.proto; - -public final class ModifierDurabilityOuterClass { - private ModifierDurabilityOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ModifierDurabilityOrBuilder extends - // @@protoc_insertion_point(interface_extends:ModifierDurability) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>float reduceRatio = 1;</code> - * @return The reduceRatio. - */ - float getReduceRatio(); - - /** - * <code>float remainingDurability = 2;</code> - * @return The remainingDurability. - */ - float getRemainingDurability(); - } - /** - * Protobuf type {@code ModifierDurability} - */ - public static final class ModifierDurability extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ModifierDurability) - ModifierDurabilityOrBuilder { - private static final long serialVersionUID = 0L; - // Use ModifierDurability.newBuilder() to construct. - private ModifierDurability(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ModifierDurability() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ModifierDurability(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ModifierDurability( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 13: { - - reduceRatio_ = input.readFloat(); - break; - } - case 21: { - - remainingDurability_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ModifierDurabilityOuterClass.internal_static_ModifierDurability_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ModifierDurabilityOuterClass.internal_static_ModifierDurability_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.class, emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.Builder.class); - } - - public static final int REDUCERATIO_FIELD_NUMBER = 1; - private float reduceRatio_; - /** - * <code>float reduceRatio = 1;</code> - * @return The reduceRatio. - */ - @java.lang.Override - public float getReduceRatio() { - return reduceRatio_; - } - - public static final int REMAININGDURABILITY_FIELD_NUMBER = 2; - private float remainingDurability_; - /** - * <code>float remainingDurability = 2;</code> - * @return The remainingDurability. - */ - @java.lang.Override - public float getRemainingDurability() { - return remainingDurability_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (reduceRatio_ != 0F) { - output.writeFloat(1, reduceRatio_); - } - if (remainingDurability_ != 0F) { - output.writeFloat(2, remainingDurability_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (reduceRatio_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, reduceRatio_); - } - if (remainingDurability_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, remainingDurability_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability other = (emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability) obj; - - if (java.lang.Float.floatToIntBits(getReduceRatio()) - != java.lang.Float.floatToIntBits( - other.getReduceRatio())) return false; - if (java.lang.Float.floatToIntBits(getRemainingDurability()) - != java.lang.Float.floatToIntBits( - other.getRemainingDurability())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REDUCERATIO_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getReduceRatio()); - hash = (37 * hash) + REMAININGDURABILITY_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getRemainingDurability()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ModifierDurability} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ModifierDurability) - emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurabilityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ModifierDurabilityOuterClass.internal_static_ModifierDurability_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ModifierDurabilityOuterClass.internal_static_ModifierDurability_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.class, emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - reduceRatio_ = 0F; - - remainingDurability_ = 0F; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ModifierDurabilityOuterClass.internal_static_ModifierDurability_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability build() { - emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability buildPartial() { - emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability result = new emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability(this); - result.reduceRatio_ = reduceRatio_; - result.remainingDurability_ = remainingDurability_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability) { - return mergeFrom((emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability other) { - if (other == emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.getDefaultInstance()) return this; - if (other.getReduceRatio() != 0F) { - setReduceRatio(other.getReduceRatio()); - } - if (other.getRemainingDurability() != 0F) { - setRemainingDurability(other.getRemainingDurability()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private float reduceRatio_ ; - /** - * <code>float reduceRatio = 1;</code> - * @return The reduceRatio. - */ - @java.lang.Override - public float getReduceRatio() { - return reduceRatio_; - } - /** - * <code>float reduceRatio = 1;</code> - * @param value The reduceRatio to set. - * @return This builder for chaining. - */ - public Builder setReduceRatio(float value) { - - reduceRatio_ = value; - onChanged(); - return this; - } - /** - * <code>float reduceRatio = 1;</code> - * @return This builder for chaining. - */ - public Builder clearReduceRatio() { - - reduceRatio_ = 0F; - onChanged(); - return this; - } - - private float remainingDurability_ ; - /** - * <code>float remainingDurability = 2;</code> - * @return The remainingDurability. - */ - @java.lang.Override - public float getRemainingDurability() { - return remainingDurability_; - } - /** - * <code>float remainingDurability = 2;</code> - * @param value The remainingDurability to set. - * @return This builder for chaining. - */ - public Builder setRemainingDurability(float value) { - - remainingDurability_ = value; - onChanged(); - return this; - } - /** - * <code>float remainingDurability = 2;</code> - * @return This builder for chaining. - */ - public Builder clearRemainingDurability() { - - remainingDurability_ = 0F; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ModifierDurability) - } - - // @@protoc_insertion_point(class_scope:ModifierDurability) - private static final emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability(); - } - - public static emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ModifierDurability> - PARSER = new com.google.protobuf.AbstractParser<ModifierDurability>() { - @java.lang.Override - public ModifierDurability parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ModifierDurability(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ModifierDurability> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ModifierDurability> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ModifierDurability_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ModifierDurability_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030ModifierDurability.proto\"F\n\022ModifierDu" + - "rability\022\023\n\013reduceRatio\030\001 \001(\002\022\033\n\023remaini" + - "ngDurability\030\002 \001(\002B\033\n\031emu.grasscutter.ne" + - "t.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ModifierDurability_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ModifierDurability_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ModifierDurability_descriptor, - new java.lang.String[] { "ReduceRatio", "RemainingDurability", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/MonsterBornTypeOuterClass.java b/src/main/java/emu/grasscutter/net/proto/MonsterBornTypeOuterClass.java deleted file mode 100644 index 3993d3446..000000000 --- a/src/main/java/emu/grasscutter/net/proto/MonsterBornTypeOuterClass.java +++ /dev/null @@ -1,155 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: MonsterBornType.proto - -package emu.grasscutter.net.proto; - -public final class MonsterBornTypeOuterClass { - private MonsterBornTypeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code MonsterBornType} - */ - public enum MonsterBornType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>MonsterBornNone = 0;</code> - */ - MonsterBornNone(0), - /** - * <code>MonsterBornDefault = 1;</code> - */ - MonsterBornDefault(1), - /** - * <code>MonsterBornRandom = 2;</code> - */ - MonsterBornRandom(2), - UNRECOGNIZED(-1), - ; - - /** - * <code>MonsterBornNone = 0;</code> - */ - public static final int MonsterBornNone_VALUE = 0; - /** - * <code>MonsterBornDefault = 1;</code> - */ - public static final int MonsterBornDefault_VALUE = 1; - /** - * <code>MonsterBornRandom = 2;</code> - */ - public static final int MonsterBornRandom_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MonsterBornType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static MonsterBornType forNumber(int value) { - switch (value) { - case 0: return MonsterBornNone; - case 1: return MonsterBornDefault; - case 2: return MonsterBornRandom; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<MonsterBornType> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - MonsterBornType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<MonsterBornType>() { - public MonsterBornType findValueByNumber(int number) { - return MonsterBornType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.MonsterBornTypeOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final MonsterBornType[] VALUES = values(); - - public static MonsterBornType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private MonsterBornType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:MonsterBornType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025MonsterBornType.proto*U\n\017MonsterBornTy" + - "pe\022\023\n\017MonsterBornNone\020\000\022\026\n\022MonsterBornDe" + - "fault\020\001\022\025\n\021MonsterBornRandom\020\002B\033\n\031emu.gr" + - "asscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/MonsterRouteOuterClass.java b/src/main/java/emu/grasscutter/net/proto/MonsterRouteOuterClass.java deleted file mode 100644 index b78d0805a..000000000 --- a/src/main/java/emu/grasscutter/net/proto/MonsterRouteOuterClass.java +++ /dev/null @@ -1,885 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: MonsterRoute.proto - -package emu.grasscutter.net.proto; - -public final class MonsterRouteOuterClass { - private MonsterRouteOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface MonsterRouteOrBuilder extends - // @@protoc_insertion_point(interface_extends:MonsterRoute) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.RoutePoint routePoints = 1;</code> - * @return Whether the routePoints field is set. - */ - boolean hasRoutePoints(); - /** - * <code>.RoutePoint routePoints = 1;</code> - * @return The routePoints. - */ - emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint getRoutePoints(); - /** - * <code>.RoutePoint routePoints = 1;</code> - */ - emu.grasscutter.net.proto.RoutePointOuterClass.RoutePointOrBuilder getRoutePointsOrBuilder(); - - /** - * <code>uint32 speedLevel = 2;</code> - * @return The speedLevel. - */ - int getSpeedLevel(); - - /** - * <code>uint32 routeType = 3;</code> - * @return The routeType. - */ - int getRouteType(); - - /** - * <code>float arriveRange = 4;</code> - * @return The arriveRange. - */ - float getArriveRange(); - } - /** - * Protobuf type {@code MonsterRoute} - */ - public static final class MonsterRoute extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:MonsterRoute) - MonsterRouteOrBuilder { - private static final long serialVersionUID = 0L; - // Use MonsterRoute.newBuilder() to construct. - private MonsterRoute(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private MonsterRoute() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MonsterRoute(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MonsterRoute( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.Builder subBuilder = null; - if (routePoints_ != null) { - subBuilder = routePoints_.toBuilder(); - } - routePoints_ = input.readMessage(emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(routePoints_); - routePoints_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - speedLevel_ = input.readUInt32(); - break; - } - case 24: { - - routeType_ = input.readUInt32(); - break; - } - case 37: { - - arriveRange_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.MonsterRouteOuterClass.internal_static_MonsterRoute_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.MonsterRouteOuterClass.internal_static_MonsterRoute_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute.class, emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute.Builder.class); - } - - public static final int ROUTEPOINTS_FIELD_NUMBER = 1; - private emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint routePoints_; - /** - * <code>.RoutePoint routePoints = 1;</code> - * @return Whether the routePoints field is set. - */ - @java.lang.Override - public boolean hasRoutePoints() { - return routePoints_ != null; - } - /** - * <code>.RoutePoint routePoints = 1;</code> - * @return The routePoints. - */ - @java.lang.Override - public emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint getRoutePoints() { - return routePoints_ == null ? emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.getDefaultInstance() : routePoints_; - } - /** - * <code>.RoutePoint routePoints = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.RoutePointOuterClass.RoutePointOrBuilder getRoutePointsOrBuilder() { - return getRoutePoints(); - } - - public static final int SPEEDLEVEL_FIELD_NUMBER = 2; - private int speedLevel_; - /** - * <code>uint32 speedLevel = 2;</code> - * @return The speedLevel. - */ - @java.lang.Override - public int getSpeedLevel() { - return speedLevel_; - } - - public static final int ROUTETYPE_FIELD_NUMBER = 3; - private int routeType_; - /** - * <code>uint32 routeType = 3;</code> - * @return The routeType. - */ - @java.lang.Override - public int getRouteType() { - return routeType_; - } - - public static final int ARRIVERANGE_FIELD_NUMBER = 4; - private float arriveRange_; - /** - * <code>float arriveRange = 4;</code> - * @return The arriveRange. - */ - @java.lang.Override - public float getArriveRange() { - return arriveRange_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (routePoints_ != null) { - output.writeMessage(1, getRoutePoints()); - } - if (speedLevel_ != 0) { - output.writeUInt32(2, speedLevel_); - } - if (routeType_ != 0) { - output.writeUInt32(3, routeType_); - } - if (arriveRange_ != 0F) { - output.writeFloat(4, arriveRange_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (routePoints_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRoutePoints()); - } - if (speedLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, speedLevel_); - } - if (routeType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, routeType_); - } - if (arriveRange_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, arriveRange_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute other = (emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute) obj; - - if (hasRoutePoints() != other.hasRoutePoints()) return false; - if (hasRoutePoints()) { - if (!getRoutePoints() - .equals(other.getRoutePoints())) return false; - } - if (getSpeedLevel() - != other.getSpeedLevel()) return false; - if (getRouteType() - != other.getRouteType()) return false; - if (java.lang.Float.floatToIntBits(getArriveRange()) - != java.lang.Float.floatToIntBits( - other.getArriveRange())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasRoutePoints()) { - hash = (37 * hash) + ROUTEPOINTS_FIELD_NUMBER; - hash = (53 * hash) + getRoutePoints().hashCode(); - } - hash = (37 * hash) + SPEEDLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getSpeedLevel(); - hash = (37 * hash) + ROUTETYPE_FIELD_NUMBER; - hash = (53 * hash) + getRouteType(); - hash = (37 * hash) + ARRIVERANGE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getArriveRange()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code MonsterRoute} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:MonsterRoute) - emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRouteOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.MonsterRouteOuterClass.internal_static_MonsterRoute_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.MonsterRouteOuterClass.internal_static_MonsterRoute_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute.class, emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (routePointsBuilder_ == null) { - routePoints_ = null; - } else { - routePoints_ = null; - routePointsBuilder_ = null; - } - speedLevel_ = 0; - - routeType_ = 0; - - arriveRange_ = 0F; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.MonsterRouteOuterClass.internal_static_MonsterRoute_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute getDefaultInstanceForType() { - return emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute build() { - emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute buildPartial() { - emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute result = new emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute(this); - if (routePointsBuilder_ == null) { - result.routePoints_ = routePoints_; - } else { - result.routePoints_ = routePointsBuilder_.build(); - } - result.speedLevel_ = speedLevel_; - result.routeType_ = routeType_; - result.arriveRange_ = arriveRange_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute) { - return mergeFrom((emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute other) { - if (other == emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute.getDefaultInstance()) return this; - if (other.hasRoutePoints()) { - mergeRoutePoints(other.getRoutePoints()); - } - if (other.getSpeedLevel() != 0) { - setSpeedLevel(other.getSpeedLevel()); - } - if (other.getRouteType() != 0) { - setRouteType(other.getRouteType()); - } - if (other.getArriveRange() != 0F) { - setArriveRange(other.getArriveRange()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint routePoints_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint, emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.Builder, emu.grasscutter.net.proto.RoutePointOuterClass.RoutePointOrBuilder> routePointsBuilder_; - /** - * <code>.RoutePoint routePoints = 1;</code> - * @return Whether the routePoints field is set. - */ - public boolean hasRoutePoints() { - return routePointsBuilder_ != null || routePoints_ != null; - } - /** - * <code>.RoutePoint routePoints = 1;</code> - * @return The routePoints. - */ - public emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint getRoutePoints() { - if (routePointsBuilder_ == null) { - return routePoints_ == null ? emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.getDefaultInstance() : routePoints_; - } else { - return routePointsBuilder_.getMessage(); - } - } - /** - * <code>.RoutePoint routePoints = 1;</code> - */ - public Builder setRoutePoints(emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint value) { - if (routePointsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - routePoints_ = value; - onChanged(); - } else { - routePointsBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.RoutePoint routePoints = 1;</code> - */ - public Builder setRoutePoints( - emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.Builder builderForValue) { - if (routePointsBuilder_ == null) { - routePoints_ = builderForValue.build(); - onChanged(); - } else { - routePointsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.RoutePoint routePoints = 1;</code> - */ - public Builder mergeRoutePoints(emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint value) { - if (routePointsBuilder_ == null) { - if (routePoints_ != null) { - routePoints_ = - emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.newBuilder(routePoints_).mergeFrom(value).buildPartial(); - } else { - routePoints_ = value; - } - onChanged(); - } else { - routePointsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.RoutePoint routePoints = 1;</code> - */ - public Builder clearRoutePoints() { - if (routePointsBuilder_ == null) { - routePoints_ = null; - onChanged(); - } else { - routePoints_ = null; - routePointsBuilder_ = null; - } - - return this; - } - /** - * <code>.RoutePoint routePoints = 1;</code> - */ - public emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.Builder getRoutePointsBuilder() { - - onChanged(); - return getRoutePointsFieldBuilder().getBuilder(); - } - /** - * <code>.RoutePoint routePoints = 1;</code> - */ - public emu.grasscutter.net.proto.RoutePointOuterClass.RoutePointOrBuilder getRoutePointsOrBuilder() { - if (routePointsBuilder_ != null) { - return routePointsBuilder_.getMessageOrBuilder(); - } else { - return routePoints_ == null ? - emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.getDefaultInstance() : routePoints_; - } - } - /** - * <code>.RoutePoint routePoints = 1;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint, emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.Builder, emu.grasscutter.net.proto.RoutePointOuterClass.RoutePointOrBuilder> - getRoutePointsFieldBuilder() { - if (routePointsBuilder_ == null) { - routePointsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint, emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.Builder, emu.grasscutter.net.proto.RoutePointOuterClass.RoutePointOrBuilder>( - getRoutePoints(), - getParentForChildren(), - isClean()); - routePoints_ = null; - } - return routePointsBuilder_; - } - - private int speedLevel_ ; - /** - * <code>uint32 speedLevel = 2;</code> - * @return The speedLevel. - */ - @java.lang.Override - public int getSpeedLevel() { - return speedLevel_; - } - /** - * <code>uint32 speedLevel = 2;</code> - * @param value The speedLevel to set. - * @return This builder for chaining. - */ - public Builder setSpeedLevel(int value) { - - speedLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 speedLevel = 2;</code> - * @return This builder for chaining. - */ - public Builder clearSpeedLevel() { - - speedLevel_ = 0; - onChanged(); - return this; - } - - private int routeType_ ; - /** - * <code>uint32 routeType = 3;</code> - * @return The routeType. - */ - @java.lang.Override - public int getRouteType() { - return routeType_; - } - /** - * <code>uint32 routeType = 3;</code> - * @param value The routeType to set. - * @return This builder for chaining. - */ - public Builder setRouteType(int value) { - - routeType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 routeType = 3;</code> - * @return This builder for chaining. - */ - public Builder clearRouteType() { - - routeType_ = 0; - onChanged(); - return this; - } - - private float arriveRange_ ; - /** - * <code>float arriveRange = 4;</code> - * @return The arriveRange. - */ - @java.lang.Override - public float getArriveRange() { - return arriveRange_; - } - /** - * <code>float arriveRange = 4;</code> - * @param value The arriveRange to set. - * @return This builder for chaining. - */ - public Builder setArriveRange(float value) { - - arriveRange_ = value; - onChanged(); - return this; - } - /** - * <code>float arriveRange = 4;</code> - * @return This builder for chaining. - */ - public Builder clearArriveRange() { - - arriveRange_ = 0F; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:MonsterRoute) - } - - // @@protoc_insertion_point(class_scope:MonsterRoute) - private static final emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute(); - } - - public static emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<MonsterRoute> - PARSER = new com.google.protobuf.AbstractParser<MonsterRoute>() { - @java.lang.Override - public MonsterRoute parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MonsterRoute(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<MonsterRoute> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<MonsterRoute> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_MonsterRoute_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_MonsterRoute_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\022MonsterRoute.proto\032\020RoutePoint.proto\"l" + - "\n\014MonsterRoute\022 \n\013routePoints\030\001 \001(\0132\013.Ro" + - "utePoint\022\022\n\nspeedLevel\030\002 \001(\r\022\021\n\trouteTyp" + - "e\030\003 \001(\r\022\023\n\013arriveRange\030\004 \001(\002B\033\n\031emu.gras" + - "scutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.RoutePointOuterClass.getDescriptor(), - }); - internal_static_MonsterRoute_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_MonsterRoute_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_MonsterRoute_descriptor, - new java.lang.String[] { "RoutePoints", "SpeedLevel", "RouteType", "ArriveRange", }); - emu.grasscutter.net.proto.RoutePointOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/MotionInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/MotionInfoOuterClass.java deleted file mode 100644 index daf5036f7..000000000 --- a/src/main/java/emu/grasscutter/net/proto/MotionInfoOuterClass.java +++ /dev/null @@ -1,1979 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: MotionInfo.proto - -package emu.grasscutter.net.proto; - -public final class MotionInfoOuterClass { - private MotionInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface MotionInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:MotionInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.Vector pos = 1;</code> - * @return Whether the pos field is set. - */ - boolean hasPos(); - /** - * <code>.Vector pos = 1;</code> - * @return The pos. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getPos(); - /** - * <code>.Vector pos = 1;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOrBuilder(); - - /** - * <code>.Vector rot = 2;</code> - * @return Whether the rot field is set. - */ - boolean hasRot(); - /** - * <code>.Vector rot = 2;</code> - * @return The rot. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getRot(); - /** - * <code>.Vector rot = 2;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRotOrBuilder(); - - /** - * <code>.Vector speed = 3;</code> - * @return Whether the speed field is set. - */ - boolean hasSpeed(); - /** - * <code>.Vector speed = 3;</code> - * @return The speed. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getSpeed(); - /** - * <code>.Vector speed = 3;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getSpeedOrBuilder(); - - /** - * <code>.MotionState state = 4;</code> - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * <code>.MotionState state = 4;</code> - * @return The state. - */ - emu.grasscutter.net.proto.MotionStateOuterClass.MotionState getState(); - - /** - * <code>repeated .Vector params = 5;</code> - */ - java.util.List<emu.grasscutter.net.proto.VectorOuterClass.Vector> - getParamsList(); - /** - * <code>repeated .Vector params = 5;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getParams(int index); - /** - * <code>repeated .Vector params = 5;</code> - */ - int getParamsCount(); - /** - * <code>repeated .Vector params = 5;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getParamsOrBuilderList(); - /** - * <code>repeated .Vector params = 5;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getParamsOrBuilder( - int index); - - /** - * <code>.Vector refPos = 6;</code> - * @return Whether the refPos field is set. - */ - boolean hasRefPos(); - /** - * <code>.Vector refPos = 6;</code> - * @return The refPos. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getRefPos(); - /** - * <code>.Vector refPos = 6;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRefPosOrBuilder(); - - /** - * <code>uint32 refId = 7;</code> - * @return The refId. - */ - int getRefId(); - - /** - * <code>uint32 sceneTime = 8;</code> - * @return The sceneTime. - */ - int getSceneTime(); - - /** - * <code>uint32 intervalVelocity = 9;</code> - * @return The intervalVelocity. - */ - int getIntervalVelocity(); - } - /** - * Protobuf type {@code MotionInfo} - */ - public static final class MotionInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:MotionInfo) - MotionInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use MotionInfo.newBuilder() to construct. - private MotionInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private MotionInfo() { - state_ = 0; - params_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MotionInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MotionInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (pos_ != null) { - subBuilder = pos_.toBuilder(); - } - pos_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pos_); - pos_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (rot_ != null) { - subBuilder = rot_.toBuilder(); - } - rot_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rot_); - rot_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (speed_ != null) { - subBuilder = speed_.toBuilder(); - } - speed_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(speed_); - speed_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - params_ = new java.util.ArrayList<emu.grasscutter.net.proto.VectorOuterClass.Vector>(); - mutable_bitField0_ |= 0x00000001; - } - params_.add( - input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry)); - break; - } - case 50: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (refPos_ != null) { - subBuilder = refPos_.toBuilder(); - } - refPos_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(refPos_); - refPos_ = subBuilder.buildPartial(); - } - - break; - } - case 56: { - - refId_ = input.readUInt32(); - break; - } - case 64: { - - sceneTime_ = input.readUInt32(); - break; - } - case 72: { - - intervalVelocity_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - params_ = java.util.Collections.unmodifiableList(params_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.MotionInfoOuterClass.internal_static_MotionInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.MotionInfoOuterClass.internal_static_MotionInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.class, emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.Builder.class); - } - - public static final int POS_FIELD_NUMBER = 1; - private emu.grasscutter.net.proto.VectorOuterClass.Vector pos_; - /** - * <code>.Vector pos = 1;</code> - * @return Whether the pos field is set. - */ - @java.lang.Override - public boolean hasPos() { - return pos_ != null; - } - /** - * <code>.Vector pos = 1;</code> - * @return The pos. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getPos() { - return pos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : pos_; - } - /** - * <code>.Vector pos = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOrBuilder() { - return getPos(); - } - - public static final int ROT_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.VectorOuterClass.Vector rot_; - /** - * <code>.Vector rot = 2;</code> - * @return Whether the rot field is set. - */ - @java.lang.Override - public boolean hasRot() { - return rot_ != null; - } - /** - * <code>.Vector rot = 2;</code> - * @return The rot. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getRot() { - return rot_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : rot_; - } - /** - * <code>.Vector rot = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRotOrBuilder() { - return getRot(); - } - - public static final int SPEED_FIELD_NUMBER = 3; - private emu.grasscutter.net.proto.VectorOuterClass.Vector speed_; - /** - * <code>.Vector speed = 3;</code> - * @return Whether the speed field is set. - */ - @java.lang.Override - public boolean hasSpeed() { - return speed_ != null; - } - /** - * <code>.Vector speed = 3;</code> - * @return The speed. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getSpeed() { - return speed_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : speed_; - } - /** - * <code>.Vector speed = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getSpeedOrBuilder() { - return getSpeed(); - } - - public static final int STATE_FIELD_NUMBER = 4; - private int state_; - /** - * <code>.MotionState state = 4;</code> - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override public int getStateValue() { - return state_; - } - /** - * <code>.MotionState state = 4;</code> - * @return The state. - */ - @java.lang.Override public emu.grasscutter.net.proto.MotionStateOuterClass.MotionState getState() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.MotionStateOuterClass.MotionState result = emu.grasscutter.net.proto.MotionStateOuterClass.MotionState.valueOf(state_); - return result == null ? emu.grasscutter.net.proto.MotionStateOuterClass.MotionState.UNRECOGNIZED : result; - } - - public static final int PARAMS_FIELD_NUMBER = 5; - private java.util.List<emu.grasscutter.net.proto.VectorOuterClass.Vector> params_; - /** - * <code>repeated .Vector params = 5;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.VectorOuterClass.Vector> getParamsList() { - return params_; - } - /** - * <code>repeated .Vector params = 5;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getParamsOrBuilderList() { - return params_; - } - /** - * <code>repeated .Vector params = 5;</code> - */ - @java.lang.Override - public int getParamsCount() { - return params_.size(); - } - /** - * <code>repeated .Vector params = 5;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getParams(int index) { - return params_.get(index); - } - /** - * <code>repeated .Vector params = 5;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getParamsOrBuilder( - int index) { - return params_.get(index); - } - - public static final int REFPOS_FIELD_NUMBER = 6; - private emu.grasscutter.net.proto.VectorOuterClass.Vector refPos_; - /** - * <code>.Vector refPos = 6;</code> - * @return Whether the refPos field is set. - */ - @java.lang.Override - public boolean hasRefPos() { - return refPos_ != null; - } - /** - * <code>.Vector refPos = 6;</code> - * @return The refPos. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getRefPos() { - return refPos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : refPos_; - } - /** - * <code>.Vector refPos = 6;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRefPosOrBuilder() { - return getRefPos(); - } - - public static final int REFID_FIELD_NUMBER = 7; - private int refId_; - /** - * <code>uint32 refId = 7;</code> - * @return The refId. - */ - @java.lang.Override - public int getRefId() { - return refId_; - } - - public static final int SCENETIME_FIELD_NUMBER = 8; - private int sceneTime_; - /** - * <code>uint32 sceneTime = 8;</code> - * @return The sceneTime. - */ - @java.lang.Override - public int getSceneTime() { - return sceneTime_; - } - - public static final int INTERVALVELOCITY_FIELD_NUMBER = 9; - private int intervalVelocity_; - /** - * <code>uint32 intervalVelocity = 9;</code> - * @return The intervalVelocity. - */ - @java.lang.Override - public int getIntervalVelocity() { - return intervalVelocity_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (pos_ != null) { - output.writeMessage(1, getPos()); - } - if (rot_ != null) { - output.writeMessage(2, getRot()); - } - if (speed_ != null) { - output.writeMessage(3, getSpeed()); - } - if (state_ != emu.grasscutter.net.proto.MotionStateOuterClass.MotionState.MotionNone.getNumber()) { - output.writeEnum(4, state_); - } - for (int i = 0; i < params_.size(); i++) { - output.writeMessage(5, params_.get(i)); - } - if (refPos_ != null) { - output.writeMessage(6, getRefPos()); - } - if (refId_ != 0) { - output.writeUInt32(7, refId_); - } - if (sceneTime_ != 0) { - output.writeUInt32(8, sceneTime_); - } - if (intervalVelocity_ != 0) { - output.writeUInt32(9, intervalVelocity_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (pos_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPos()); - } - if (rot_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRot()); - } - if (speed_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSpeed()); - } - if (state_ != emu.grasscutter.net.proto.MotionStateOuterClass.MotionState.MotionNone.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, state_); - } - for (int i = 0; i < params_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, params_.get(i)); - } - if (refPos_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getRefPos()); - } - if (refId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(7, refId_); - } - if (sceneTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(8, sceneTime_); - } - if (intervalVelocity_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(9, intervalVelocity_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo other = (emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo) obj; - - if (hasPos() != other.hasPos()) return false; - if (hasPos()) { - if (!getPos() - .equals(other.getPos())) return false; - } - if (hasRot() != other.hasRot()) return false; - if (hasRot()) { - if (!getRot() - .equals(other.getRot())) return false; - } - if (hasSpeed() != other.hasSpeed()) return false; - if (hasSpeed()) { - if (!getSpeed() - .equals(other.getSpeed())) return false; - } - if (state_ != other.state_) return false; - if (!getParamsList() - .equals(other.getParamsList())) return false; - if (hasRefPos() != other.hasRefPos()) return false; - if (hasRefPos()) { - if (!getRefPos() - .equals(other.getRefPos())) return false; - } - if (getRefId() - != other.getRefId()) return false; - if (getSceneTime() - != other.getSceneTime()) return false; - if (getIntervalVelocity() - != other.getIntervalVelocity()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPos()) { - hash = (37 * hash) + POS_FIELD_NUMBER; - hash = (53 * hash) + getPos().hashCode(); - } - if (hasRot()) { - hash = (37 * hash) + ROT_FIELD_NUMBER; - hash = (53 * hash) + getRot().hashCode(); - } - if (hasSpeed()) { - hash = (37 * hash) + SPEED_FIELD_NUMBER; - hash = (53 * hash) + getSpeed().hashCode(); - } - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - if (getParamsCount() > 0) { - hash = (37 * hash) + PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getParamsList().hashCode(); - } - if (hasRefPos()) { - hash = (37 * hash) + REFPOS_FIELD_NUMBER; - hash = (53 * hash) + getRefPos().hashCode(); - } - hash = (37 * hash) + REFID_FIELD_NUMBER; - hash = (53 * hash) + getRefId(); - hash = (37 * hash) + SCENETIME_FIELD_NUMBER; - hash = (53 * hash) + getSceneTime(); - hash = (37 * hash) + INTERVALVELOCITY_FIELD_NUMBER; - hash = (53 * hash) + getIntervalVelocity(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code MotionInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:MotionInfo) - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.MotionInfoOuterClass.internal_static_MotionInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.MotionInfoOuterClass.internal_static_MotionInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.class, emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getParamsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (posBuilder_ == null) { - pos_ = null; - } else { - pos_ = null; - posBuilder_ = null; - } - if (rotBuilder_ == null) { - rot_ = null; - } else { - rot_ = null; - rotBuilder_ = null; - } - if (speedBuilder_ == null) { - speed_ = null; - } else { - speed_ = null; - speedBuilder_ = null; - } - state_ = 0; - - if (paramsBuilder_ == null) { - params_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - paramsBuilder_.clear(); - } - if (refPosBuilder_ == null) { - refPos_ = null; - } else { - refPos_ = null; - refPosBuilder_ = null; - } - refId_ = 0; - - sceneTime_ = 0; - - intervalVelocity_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.MotionInfoOuterClass.internal_static_MotionInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo build() { - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo buildPartial() { - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo result = new emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo(this); - int from_bitField0_ = bitField0_; - if (posBuilder_ == null) { - result.pos_ = pos_; - } else { - result.pos_ = posBuilder_.build(); - } - if (rotBuilder_ == null) { - result.rot_ = rot_; - } else { - result.rot_ = rotBuilder_.build(); - } - if (speedBuilder_ == null) { - result.speed_ = speed_; - } else { - result.speed_ = speedBuilder_.build(); - } - result.state_ = state_; - if (paramsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - params_ = java.util.Collections.unmodifiableList(params_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.params_ = params_; - } else { - result.params_ = paramsBuilder_.build(); - } - if (refPosBuilder_ == null) { - result.refPos_ = refPos_; - } else { - result.refPos_ = refPosBuilder_.build(); - } - result.refId_ = refId_; - result.sceneTime_ = sceneTime_; - result.intervalVelocity_ = intervalVelocity_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo) { - return mergeFrom((emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo other) { - if (other == emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.getDefaultInstance()) return this; - if (other.hasPos()) { - mergePos(other.getPos()); - } - if (other.hasRot()) { - mergeRot(other.getRot()); - } - if (other.hasSpeed()) { - mergeSpeed(other.getSpeed()); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (paramsBuilder_ == null) { - if (!other.params_.isEmpty()) { - if (params_.isEmpty()) { - params_ = other.params_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureParamsIsMutable(); - params_.addAll(other.params_); - } - onChanged(); - } - } else { - if (!other.params_.isEmpty()) { - if (paramsBuilder_.isEmpty()) { - paramsBuilder_.dispose(); - paramsBuilder_ = null; - params_ = other.params_; - bitField0_ = (bitField0_ & ~0x00000001); - paramsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getParamsFieldBuilder() : null; - } else { - paramsBuilder_.addAllMessages(other.params_); - } - } - } - if (other.hasRefPos()) { - mergeRefPos(other.getRefPos()); - } - if (other.getRefId() != 0) { - setRefId(other.getRefId()); - } - if (other.getSceneTime() != 0) { - setSceneTime(other.getSceneTime()); - } - if (other.getIntervalVelocity() != 0) { - setIntervalVelocity(other.getIntervalVelocity()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private emu.grasscutter.net.proto.VectorOuterClass.Vector pos_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> posBuilder_; - /** - * <code>.Vector pos = 1;</code> - * @return Whether the pos field is set. - */ - public boolean hasPos() { - return posBuilder_ != null || pos_ != null; - } - /** - * <code>.Vector pos = 1;</code> - * @return The pos. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getPos() { - if (posBuilder_ == null) { - return pos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : pos_; - } else { - return posBuilder_.getMessage(); - } - } - /** - * <code>.Vector pos = 1;</code> - */ - public Builder setPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (posBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pos_ = value; - onChanged(); - } else { - posBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Vector pos = 1;</code> - */ - public Builder setPos( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (posBuilder_ == null) { - pos_ = builderForValue.build(); - onChanged(); - } else { - posBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Vector pos = 1;</code> - */ - public Builder mergePos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (posBuilder_ == null) { - if (pos_ != null) { - pos_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(pos_).mergeFrom(value).buildPartial(); - } else { - pos_ = value; - } - onChanged(); - } else { - posBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Vector pos = 1;</code> - */ - public Builder clearPos() { - if (posBuilder_ == null) { - pos_ = null; - onChanged(); - } else { - pos_ = null; - posBuilder_ = null; - } - - return this; - } - /** - * <code>.Vector pos = 1;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getPosBuilder() { - - onChanged(); - return getPosFieldBuilder().getBuilder(); - } - /** - * <code>.Vector pos = 1;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOrBuilder() { - if (posBuilder_ != null) { - return posBuilder_.getMessageOrBuilder(); - } else { - return pos_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : pos_; - } - } - /** - * <code>.Vector pos = 1;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getPosFieldBuilder() { - if (posBuilder_ == null) { - posBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getPos(), - getParentForChildren(), - isClean()); - pos_ = null; - } - return posBuilder_; - } - - private emu.grasscutter.net.proto.VectorOuterClass.Vector rot_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> rotBuilder_; - /** - * <code>.Vector rot = 2;</code> - * @return Whether the rot field is set. - */ - public boolean hasRot() { - return rotBuilder_ != null || rot_ != null; - } - /** - * <code>.Vector rot = 2;</code> - * @return The rot. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getRot() { - if (rotBuilder_ == null) { - return rot_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : rot_; - } else { - return rotBuilder_.getMessage(); - } - } - /** - * <code>.Vector rot = 2;</code> - */ - public Builder setRot(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (rotBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rot_ = value; - onChanged(); - } else { - rotBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Vector rot = 2;</code> - */ - public Builder setRot( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (rotBuilder_ == null) { - rot_ = builderForValue.build(); - onChanged(); - } else { - rotBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Vector rot = 2;</code> - */ - public Builder mergeRot(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (rotBuilder_ == null) { - if (rot_ != null) { - rot_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(rot_).mergeFrom(value).buildPartial(); - } else { - rot_ = value; - } - onChanged(); - } else { - rotBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Vector rot = 2;</code> - */ - public Builder clearRot() { - if (rotBuilder_ == null) { - rot_ = null; - onChanged(); - } else { - rot_ = null; - rotBuilder_ = null; - } - - return this; - } - /** - * <code>.Vector rot = 2;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getRotBuilder() { - - onChanged(); - return getRotFieldBuilder().getBuilder(); - } - /** - * <code>.Vector rot = 2;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRotOrBuilder() { - if (rotBuilder_ != null) { - return rotBuilder_.getMessageOrBuilder(); - } else { - return rot_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : rot_; - } - } - /** - * <code>.Vector rot = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getRotFieldBuilder() { - if (rotBuilder_ == null) { - rotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getRot(), - getParentForChildren(), - isClean()); - rot_ = null; - } - return rotBuilder_; - } - - private emu.grasscutter.net.proto.VectorOuterClass.Vector speed_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> speedBuilder_; - /** - * <code>.Vector speed = 3;</code> - * @return Whether the speed field is set. - */ - public boolean hasSpeed() { - return speedBuilder_ != null || speed_ != null; - } - /** - * <code>.Vector speed = 3;</code> - * @return The speed. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getSpeed() { - if (speedBuilder_ == null) { - return speed_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : speed_; - } else { - return speedBuilder_.getMessage(); - } - } - /** - * <code>.Vector speed = 3;</code> - */ - public Builder setSpeed(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (speedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - speed_ = value; - onChanged(); - } else { - speedBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Vector speed = 3;</code> - */ - public Builder setSpeed( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (speedBuilder_ == null) { - speed_ = builderForValue.build(); - onChanged(); - } else { - speedBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Vector speed = 3;</code> - */ - public Builder mergeSpeed(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (speedBuilder_ == null) { - if (speed_ != null) { - speed_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(speed_).mergeFrom(value).buildPartial(); - } else { - speed_ = value; - } - onChanged(); - } else { - speedBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Vector speed = 3;</code> - */ - public Builder clearSpeed() { - if (speedBuilder_ == null) { - speed_ = null; - onChanged(); - } else { - speed_ = null; - speedBuilder_ = null; - } - - return this; - } - /** - * <code>.Vector speed = 3;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getSpeedBuilder() { - - onChanged(); - return getSpeedFieldBuilder().getBuilder(); - } - /** - * <code>.Vector speed = 3;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getSpeedOrBuilder() { - if (speedBuilder_ != null) { - return speedBuilder_.getMessageOrBuilder(); - } else { - return speed_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : speed_; - } - } - /** - * <code>.Vector speed = 3;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getSpeedFieldBuilder() { - if (speedBuilder_ == null) { - speedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getSpeed(), - getParentForChildren(), - isClean()); - speed_ = null; - } - return speedBuilder_; - } - - private int state_ = 0; - /** - * <code>.MotionState state = 4;</code> - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override public int getStateValue() { - return state_; - } - /** - * <code>.MotionState state = 4;</code> - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * <code>.MotionState state = 4;</code> - * @return The state. - */ - @java.lang.Override - public emu.grasscutter.net.proto.MotionStateOuterClass.MotionState getState() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.MotionStateOuterClass.MotionState result = emu.grasscutter.net.proto.MotionStateOuterClass.MotionState.valueOf(state_); - return result == null ? emu.grasscutter.net.proto.MotionStateOuterClass.MotionState.UNRECOGNIZED : result; - } - /** - * <code>.MotionState state = 4;</code> - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(emu.grasscutter.net.proto.MotionStateOuterClass.MotionState value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.MotionState state = 4;</code> - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.VectorOuterClass.Vector> params_ = - java.util.Collections.emptyList(); - private void ensureParamsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - params_ = new java.util.ArrayList<emu.grasscutter.net.proto.VectorOuterClass.Vector>(params_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> paramsBuilder_; - - /** - * <code>repeated .Vector params = 5;</code> - */ - public java.util.List<emu.grasscutter.net.proto.VectorOuterClass.Vector> getParamsList() { - if (paramsBuilder_ == null) { - return java.util.Collections.unmodifiableList(params_); - } else { - return paramsBuilder_.getMessageList(); - } - } - /** - * <code>repeated .Vector params = 5;</code> - */ - public int getParamsCount() { - if (paramsBuilder_ == null) { - return params_.size(); - } else { - return paramsBuilder_.getCount(); - } - } - /** - * <code>repeated .Vector params = 5;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getParams(int index) { - if (paramsBuilder_ == null) { - return params_.get(index); - } else { - return paramsBuilder_.getMessage(index); - } - } - /** - * <code>repeated .Vector params = 5;</code> - */ - public Builder setParams( - int index, emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (paramsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParamsIsMutable(); - params_.set(index, value); - onChanged(); - } else { - paramsBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .Vector params = 5;</code> - */ - public Builder setParams( - int index, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (paramsBuilder_ == null) { - ensureParamsIsMutable(); - params_.set(index, builderForValue.build()); - onChanged(); - } else { - paramsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .Vector params = 5;</code> - */ - public Builder addParams(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (paramsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParamsIsMutable(); - params_.add(value); - onChanged(); - } else { - paramsBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .Vector params = 5;</code> - */ - public Builder addParams( - int index, emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (paramsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParamsIsMutable(); - params_.add(index, value); - onChanged(); - } else { - paramsBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .Vector params = 5;</code> - */ - public Builder addParams( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (paramsBuilder_ == null) { - ensureParamsIsMutable(); - params_.add(builderForValue.build()); - onChanged(); - } else { - paramsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .Vector params = 5;</code> - */ - public Builder addParams( - int index, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (paramsBuilder_ == null) { - ensureParamsIsMutable(); - params_.add(index, builderForValue.build()); - onChanged(); - } else { - paramsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .Vector params = 5;</code> - */ - public Builder addAllParams( - java.lang.Iterable<? extends emu.grasscutter.net.proto.VectorOuterClass.Vector> values) { - if (paramsBuilder_ == null) { - ensureParamsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, params_); - onChanged(); - } else { - paramsBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .Vector params = 5;</code> - */ - public Builder clearParams() { - if (paramsBuilder_ == null) { - params_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - paramsBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .Vector params = 5;</code> - */ - public Builder removeParams(int index) { - if (paramsBuilder_ == null) { - ensureParamsIsMutable(); - params_.remove(index); - onChanged(); - } else { - paramsBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .Vector params = 5;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getParamsBuilder( - int index) { - return getParamsFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .Vector params = 5;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getParamsOrBuilder( - int index) { - if (paramsBuilder_ == null) { - return params_.get(index); } else { - return paramsBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .Vector params = 5;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getParamsOrBuilderList() { - if (paramsBuilder_ != null) { - return paramsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(params_); - } - } - /** - * <code>repeated .Vector params = 5;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder addParamsBuilder() { - return getParamsFieldBuilder().addBuilder( - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance()); - } - /** - * <code>repeated .Vector params = 5;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder addParamsBuilder( - int index) { - return getParamsFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance()); - } - /** - * <code>repeated .Vector params = 5;</code> - */ - public java.util.List<emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder> - getParamsBuilderList() { - return getParamsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getParamsFieldBuilder() { - if (paramsBuilder_ == null) { - paramsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - params_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - params_ = null; - } - return paramsBuilder_; - } - - private emu.grasscutter.net.proto.VectorOuterClass.Vector refPos_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> refPosBuilder_; - /** - * <code>.Vector refPos = 6;</code> - * @return Whether the refPos field is set. - */ - public boolean hasRefPos() { - return refPosBuilder_ != null || refPos_ != null; - } - /** - * <code>.Vector refPos = 6;</code> - * @return The refPos. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getRefPos() { - if (refPosBuilder_ == null) { - return refPos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : refPos_; - } else { - return refPosBuilder_.getMessage(); - } - } - /** - * <code>.Vector refPos = 6;</code> - */ - public Builder setRefPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (refPosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - refPos_ = value; - onChanged(); - } else { - refPosBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Vector refPos = 6;</code> - */ - public Builder setRefPos( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (refPosBuilder_ == null) { - refPos_ = builderForValue.build(); - onChanged(); - } else { - refPosBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Vector refPos = 6;</code> - */ - public Builder mergeRefPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (refPosBuilder_ == null) { - if (refPos_ != null) { - refPos_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(refPos_).mergeFrom(value).buildPartial(); - } else { - refPos_ = value; - } - onChanged(); - } else { - refPosBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Vector refPos = 6;</code> - */ - public Builder clearRefPos() { - if (refPosBuilder_ == null) { - refPos_ = null; - onChanged(); - } else { - refPos_ = null; - refPosBuilder_ = null; - } - - return this; - } - /** - * <code>.Vector refPos = 6;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getRefPosBuilder() { - - onChanged(); - return getRefPosFieldBuilder().getBuilder(); - } - /** - * <code>.Vector refPos = 6;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRefPosOrBuilder() { - if (refPosBuilder_ != null) { - return refPosBuilder_.getMessageOrBuilder(); - } else { - return refPos_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : refPos_; - } - } - /** - * <code>.Vector refPos = 6;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getRefPosFieldBuilder() { - if (refPosBuilder_ == null) { - refPosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getRefPos(), - getParentForChildren(), - isClean()); - refPos_ = null; - } - return refPosBuilder_; - } - - private int refId_ ; - /** - * <code>uint32 refId = 7;</code> - * @return The refId. - */ - @java.lang.Override - public int getRefId() { - return refId_; - } - /** - * <code>uint32 refId = 7;</code> - * @param value The refId to set. - * @return This builder for chaining. - */ - public Builder setRefId(int value) { - - refId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 refId = 7;</code> - * @return This builder for chaining. - */ - public Builder clearRefId() { - - refId_ = 0; - onChanged(); - return this; - } - - private int sceneTime_ ; - /** - * <code>uint32 sceneTime = 8;</code> - * @return The sceneTime. - */ - @java.lang.Override - public int getSceneTime() { - return sceneTime_; - } - /** - * <code>uint32 sceneTime = 8;</code> - * @param value The sceneTime to set. - * @return This builder for chaining. - */ - public Builder setSceneTime(int value) { - - sceneTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 sceneTime = 8;</code> - * @return This builder for chaining. - */ - public Builder clearSceneTime() { - - sceneTime_ = 0; - onChanged(); - return this; - } - - private int intervalVelocity_ ; - /** - * <code>uint32 intervalVelocity = 9;</code> - * @return The intervalVelocity. - */ - @java.lang.Override - public int getIntervalVelocity() { - return intervalVelocity_; - } - /** - * <code>uint32 intervalVelocity = 9;</code> - * @param value The intervalVelocity to set. - * @return This builder for chaining. - */ - public Builder setIntervalVelocity(int value) { - - intervalVelocity_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 intervalVelocity = 9;</code> - * @return This builder for chaining. - */ - public Builder clearIntervalVelocity() { - - intervalVelocity_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:MotionInfo) - } - - // @@protoc_insertion_point(class_scope:MotionInfo) - private static final emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo(); - } - - public static emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<MotionInfo> - PARSER = new com.google.protobuf.AbstractParser<MotionInfo>() { - @java.lang.Override - public MotionInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MotionInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<MotionInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<MotionInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_MotionInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_MotionInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020MotionInfo.proto\032\021MotionState.proto\032\014V" + - "ector.proto\"\333\001\n\nMotionInfo\022\024\n\003pos\030\001 \001(\0132" + - "\007.Vector\022\024\n\003rot\030\002 \001(\0132\007.Vector\022\026\n\005speed\030" + - "\003 \001(\0132\007.Vector\022\033\n\005state\030\004 \001(\0162\014.MotionSt" + - "ate\022\027\n\006params\030\005 \003(\0132\007.Vector\022\027\n\006refPos\030\006" + - " \001(\0132\007.Vector\022\r\n\005refId\030\007 \001(\r\022\021\n\tsceneTim" + - "e\030\010 \001(\r\022\030\n\020intervalVelocity\030\t \001(\rB\033\n\031emu" + - ".grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.MotionStateOuterClass.getDescriptor(), - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(), - }); - internal_static_MotionInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_MotionInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_MotionInfo_descriptor, - new java.lang.String[] { "Pos", "Rot", "Speed", "State", "Params", "RefPos", "RefId", "SceneTime", "IntervalVelocity", }); - emu.grasscutter.net.proto.MotionStateOuterClass.getDescriptor(); - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/MotionStateOuterClass.java b/src/main/java/emu/grasscutter/net/proto/MotionStateOuterClass.java deleted file mode 100644 index 6e87f96f2..000000000 --- a/src/main/java/emu/grasscutter/net/proto/MotionStateOuterClass.java +++ /dev/null @@ -1,574 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: MotionState.proto - -package emu.grasscutter.net.proto; - -public final class MotionStateOuterClass { - private MotionStateOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code MotionState} - */ - public enum MotionState - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>MotionNone = 0;</code> - */ - MotionNone(0), - /** - * <code>MotionReset = 1;</code> - */ - MotionReset(1), - /** - * <code>MotionStandby = 2;</code> - */ - MotionStandby(2), - /** - * <code>MotionStandbyMove = 3;</code> - */ - MotionStandbyMove(3), - /** - * <code>MotionWalk = 4;</code> - */ - MotionWalk(4), - /** - * <code>MotionRun = 5;</code> - */ - MotionRun(5), - /** - * <code>MotionDash = 6;</code> - */ - MotionDash(6), - /** - * <code>MotionClimb = 7;</code> - */ - MotionClimb(7), - /** - * <code>MotionClimbJump = 8;</code> - */ - MotionClimbJump(8), - /** - * <code>MotionStandbyToClimb = 9;</code> - */ - MotionStandbyToClimb(9), - /** - * <code>MotionFight = 10;</code> - */ - MotionFight(10), - /** - * <code>MotionJump = 11;</code> - */ - MotionJump(11), - /** - * <code>MotionDrop = 12;</code> - */ - MotionDrop(12), - /** - * <code>MotionFly = 13;</code> - */ - MotionFly(13), - /** - * <code>MotionSwimMove = 14;</code> - */ - MotionSwimMove(14), - /** - * <code>MotionSwimIdle = 15;</code> - */ - MotionSwimIdle(15), - /** - * <code>MotionSwimDash = 16;</code> - */ - MotionSwimDash(16), - /** - * <code>MotionSwimJump = 17;</code> - */ - MotionSwimJump(17), - /** - * <code>MotionSlip = 18;</code> - */ - MotionSlip(18), - /** - * <code>MotionGoUpstairs = 19;</code> - */ - MotionGoUpstairs(19), - /** - * <code>MotionFallOnGround = 20;</code> - */ - MotionFallOnGround(20), - /** - * <code>MotionJumpUpWallForStandby = 21;</code> - */ - MotionJumpUpWallForStandby(21), - /** - * <code>MotionJumpOffWall = 22;</code> - */ - MotionJumpOffWall(22), - /** - * <code>MotionPoweredFly = 23;</code> - */ - MotionPoweredFly(23), - /** - * <code>MotionLadderIdle = 24;</code> - */ - MotionLadderIdle(24), - /** - * <code>MotionLadderMove = 25;</code> - */ - MotionLadderMove(25), - /** - * <code>MotionLadderSlip = 26;</code> - */ - MotionLadderSlip(26), - /** - * <code>MotionStandbyToLadder = 27;</code> - */ - MotionStandbyToLadder(27), - /** - * <code>MotionLadderToStandby = 28;</code> - */ - MotionLadderToStandby(28), - /** - * <code>MotionDangerStandby = 29;</code> - */ - MotionDangerStandby(29), - /** - * <code>MotionDangerStandbyMove = 30;</code> - */ - MotionDangerStandbyMove(30), - /** - * <code>MotionDangerWalk = 31;</code> - */ - MotionDangerWalk(31), - /** - * <code>MotionDangerRun = 32;</code> - */ - MotionDangerRun(32), - /** - * <code>MotionDangerDash = 33;</code> - */ - MotionDangerDash(33), - /** - * <code>MotionCrouchIdle = 34;</code> - */ - MotionCrouchIdle(34), - /** - * <code>MotionCrouchMove = 35;</code> - */ - MotionCrouchMove(35), - /** - * <code>MotionCrouchRoll = 36;</code> - */ - MotionCrouchRoll(36), - /** - * <code>MotionNotify = 37;</code> - */ - MotionNotify(37), - /** - * <code>MotionLandSpeed = 38;</code> - */ - MotionLandSpeed(38), - /** - * <code>MotionMoveFailAck = 39;</code> - */ - MotionMoveFailAck(39), - /** - * <code>MotionWaterfall = 40;</code> - */ - MotionWaterfall(40), - /** - * <code>MotionDashBeforeShake = 41;</code> - */ - MotionDashBeforeShake(41), - /** - * <code>MotionSitIdle = 42;</code> - */ - MotionSitIdle(42), - /** - * <code>MotionForceSetPos = 43;</code> - */ - MotionForceSetPos(43), - /** - * <code>MotionQuestForceDrag = 44;</code> - */ - MotionQuestForceDrag(44), - /** - * <code>MotionFollowRoute = 45;</code> - */ - MotionFollowRoute(45), - /** - * <code>MotionNum = 46;</code> - */ - MotionNum(46), - UNRECOGNIZED(-1), - ; - - /** - * <code>MotionNone = 0;</code> - */ - public static final int MotionNone_VALUE = 0; - /** - * <code>MotionReset = 1;</code> - */ - public static final int MotionReset_VALUE = 1; - /** - * <code>MotionStandby = 2;</code> - */ - public static final int MotionStandby_VALUE = 2; - /** - * <code>MotionStandbyMove = 3;</code> - */ - public static final int MotionStandbyMove_VALUE = 3; - /** - * <code>MotionWalk = 4;</code> - */ - public static final int MotionWalk_VALUE = 4; - /** - * <code>MotionRun = 5;</code> - */ - public static final int MotionRun_VALUE = 5; - /** - * <code>MotionDash = 6;</code> - */ - public static final int MotionDash_VALUE = 6; - /** - * <code>MotionClimb = 7;</code> - */ - public static final int MotionClimb_VALUE = 7; - /** - * <code>MotionClimbJump = 8;</code> - */ - public static final int MotionClimbJump_VALUE = 8; - /** - * <code>MotionStandbyToClimb = 9;</code> - */ - public static final int MotionStandbyToClimb_VALUE = 9; - /** - * <code>MotionFight = 10;</code> - */ - public static final int MotionFight_VALUE = 10; - /** - * <code>MotionJump = 11;</code> - */ - public static final int MotionJump_VALUE = 11; - /** - * <code>MotionDrop = 12;</code> - */ - public static final int MotionDrop_VALUE = 12; - /** - * <code>MotionFly = 13;</code> - */ - public static final int MotionFly_VALUE = 13; - /** - * <code>MotionSwimMove = 14;</code> - */ - public static final int MotionSwimMove_VALUE = 14; - /** - * <code>MotionSwimIdle = 15;</code> - */ - public static final int MotionSwimIdle_VALUE = 15; - /** - * <code>MotionSwimDash = 16;</code> - */ - public static final int MotionSwimDash_VALUE = 16; - /** - * <code>MotionSwimJump = 17;</code> - */ - public static final int MotionSwimJump_VALUE = 17; - /** - * <code>MotionSlip = 18;</code> - */ - public static final int MotionSlip_VALUE = 18; - /** - * <code>MotionGoUpstairs = 19;</code> - */ - public static final int MotionGoUpstairs_VALUE = 19; - /** - * <code>MotionFallOnGround = 20;</code> - */ - public static final int MotionFallOnGround_VALUE = 20; - /** - * <code>MotionJumpUpWallForStandby = 21;</code> - */ - public static final int MotionJumpUpWallForStandby_VALUE = 21; - /** - * <code>MotionJumpOffWall = 22;</code> - */ - public static final int MotionJumpOffWall_VALUE = 22; - /** - * <code>MotionPoweredFly = 23;</code> - */ - public static final int MotionPoweredFly_VALUE = 23; - /** - * <code>MotionLadderIdle = 24;</code> - */ - public static final int MotionLadderIdle_VALUE = 24; - /** - * <code>MotionLadderMove = 25;</code> - */ - public static final int MotionLadderMove_VALUE = 25; - /** - * <code>MotionLadderSlip = 26;</code> - */ - public static final int MotionLadderSlip_VALUE = 26; - /** - * <code>MotionStandbyToLadder = 27;</code> - */ - public static final int MotionStandbyToLadder_VALUE = 27; - /** - * <code>MotionLadderToStandby = 28;</code> - */ - public static final int MotionLadderToStandby_VALUE = 28; - /** - * <code>MotionDangerStandby = 29;</code> - */ - public static final int MotionDangerStandby_VALUE = 29; - /** - * <code>MotionDangerStandbyMove = 30;</code> - */ - public static final int MotionDangerStandbyMove_VALUE = 30; - /** - * <code>MotionDangerWalk = 31;</code> - */ - public static final int MotionDangerWalk_VALUE = 31; - /** - * <code>MotionDangerRun = 32;</code> - */ - public static final int MotionDangerRun_VALUE = 32; - /** - * <code>MotionDangerDash = 33;</code> - */ - public static final int MotionDangerDash_VALUE = 33; - /** - * <code>MotionCrouchIdle = 34;</code> - */ - public static final int MotionCrouchIdle_VALUE = 34; - /** - * <code>MotionCrouchMove = 35;</code> - */ - public static final int MotionCrouchMove_VALUE = 35; - /** - * <code>MotionCrouchRoll = 36;</code> - */ - public static final int MotionCrouchRoll_VALUE = 36; - /** - * <code>MotionNotify = 37;</code> - */ - public static final int MotionNotify_VALUE = 37; - /** - * <code>MotionLandSpeed = 38;</code> - */ - public static final int MotionLandSpeed_VALUE = 38; - /** - * <code>MotionMoveFailAck = 39;</code> - */ - public static final int MotionMoveFailAck_VALUE = 39; - /** - * <code>MotionWaterfall = 40;</code> - */ - public static final int MotionWaterfall_VALUE = 40; - /** - * <code>MotionDashBeforeShake = 41;</code> - */ - public static final int MotionDashBeforeShake_VALUE = 41; - /** - * <code>MotionSitIdle = 42;</code> - */ - public static final int MotionSitIdle_VALUE = 42; - /** - * <code>MotionForceSetPos = 43;</code> - */ - public static final int MotionForceSetPos_VALUE = 43; - /** - * <code>MotionQuestForceDrag = 44;</code> - */ - public static final int MotionQuestForceDrag_VALUE = 44; - /** - * <code>MotionFollowRoute = 45;</code> - */ - public static final int MotionFollowRoute_VALUE = 45; - /** - * <code>MotionNum = 46;</code> - */ - public static final int MotionNum_VALUE = 46; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MotionState valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static MotionState forNumber(int value) { - switch (value) { - case 0: return MotionNone; - case 1: return MotionReset; - case 2: return MotionStandby; - case 3: return MotionStandbyMove; - case 4: return MotionWalk; - case 5: return MotionRun; - case 6: return MotionDash; - case 7: return MotionClimb; - case 8: return MotionClimbJump; - case 9: return MotionStandbyToClimb; - case 10: return MotionFight; - case 11: return MotionJump; - case 12: return MotionDrop; - case 13: return MotionFly; - case 14: return MotionSwimMove; - case 15: return MotionSwimIdle; - case 16: return MotionSwimDash; - case 17: return MotionSwimJump; - case 18: return MotionSlip; - case 19: return MotionGoUpstairs; - case 20: return MotionFallOnGround; - case 21: return MotionJumpUpWallForStandby; - case 22: return MotionJumpOffWall; - case 23: return MotionPoweredFly; - case 24: return MotionLadderIdle; - case 25: return MotionLadderMove; - case 26: return MotionLadderSlip; - case 27: return MotionStandbyToLadder; - case 28: return MotionLadderToStandby; - case 29: return MotionDangerStandby; - case 30: return MotionDangerStandbyMove; - case 31: return MotionDangerWalk; - case 32: return MotionDangerRun; - case 33: return MotionDangerDash; - case 34: return MotionCrouchIdle; - case 35: return MotionCrouchMove; - case 36: return MotionCrouchRoll; - case 37: return MotionNotify; - case 38: return MotionLandSpeed; - case 39: return MotionMoveFailAck; - case 40: return MotionWaterfall; - case 41: return MotionDashBeforeShake; - case 42: return MotionSitIdle; - case 43: return MotionForceSetPos; - case 44: return MotionQuestForceDrag; - case 45: return MotionFollowRoute; - case 46: return MotionNum; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<MotionState> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - MotionState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<MotionState>() { - public MotionState findValueByNumber(int number) { - return MotionState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.MotionStateOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final MotionState[] VALUES = values(); - - public static MotionState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private MotionState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:MotionState) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\021MotionState.proto*\353\007\n\013MotionState\022\016\n\nM" + - "otionNone\020\000\022\017\n\013MotionReset\020\001\022\021\n\rMotionSt" + - "andby\020\002\022\025\n\021MotionStandbyMove\020\003\022\016\n\nMotion" + - "Walk\020\004\022\r\n\tMotionRun\020\005\022\016\n\nMotionDash\020\006\022\017\n" + - "\013MotionClimb\020\007\022\023\n\017MotionClimbJump\020\010\022\030\n\024M" + - "otionStandbyToClimb\020\t\022\017\n\013MotionFight\020\n\022\016" + - "\n\nMotionJump\020\013\022\016\n\nMotionDrop\020\014\022\r\n\tMotion" + - "Fly\020\r\022\022\n\016MotionSwimMove\020\016\022\022\n\016MotionSwimI" + - "dle\020\017\022\022\n\016MotionSwimDash\020\020\022\022\n\016MotionSwimJ" + - "ump\020\021\022\016\n\nMotionSlip\020\022\022\024\n\020MotionGoUpstair" + - "s\020\023\022\026\n\022MotionFallOnGround\020\024\022\036\n\032MotionJum" + - "pUpWallForStandby\020\025\022\025\n\021MotionJumpOffWall" + - "\020\026\022\024\n\020MotionPoweredFly\020\027\022\024\n\020MotionLadder" + - "Idle\020\030\022\024\n\020MotionLadderMove\020\031\022\024\n\020MotionLa" + - "dderSlip\020\032\022\031\n\025MotionStandbyToLadder\020\033\022\031\n" + - "\025MotionLadderToStandby\020\034\022\027\n\023MotionDanger" + - "Standby\020\035\022\033\n\027MotionDangerStandbyMove\020\036\022\024" + - "\n\020MotionDangerWalk\020\037\022\023\n\017MotionDangerRun\020" + - " \022\024\n\020MotionDangerDash\020!\022\024\n\020MotionCrouchI" + - "dle\020\"\022\024\n\020MotionCrouchMove\020#\022\024\n\020MotionCro" + - "uchRoll\020$\022\020\n\014MotionNotify\020%\022\023\n\017MotionLan" + - "dSpeed\020&\022\025\n\021MotionMoveFailAck\020\'\022\023\n\017Motio" + - "nWaterfall\020(\022\031\n\025MotionDashBeforeShake\020)\022" + - "\021\n\rMotionSitIdle\020*\022\025\n\021MotionForceSetPos\020" + - "+\022\030\n\024MotionQuestForceDrag\020,\022\025\n\021MotionFol" + - "lowRoute\020-\022\r\n\tMotionNum\020.B\033\n\031emu.grasscu" + - "tter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/MovingPlatformTypeOuterClass.java b/src/main/java/emu/grasscutter/net/proto/MovingPlatformTypeOuterClass.java deleted file mode 100644 index d03ca6bf5..000000000 --- a/src/main/java/emu/grasscutter/net/proto/MovingPlatformTypeOuterClass.java +++ /dev/null @@ -1,466 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: MovingPlatformType.proto - -package emu.grasscutter.net.proto; - -public final class MovingPlatformTypeOuterClass { - private MovingPlatformTypeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface MovingPlatformTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:MovingPlatformType) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code MovingPlatformType} - */ - public static final class MovingPlatformType extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:MovingPlatformType) - MovingPlatformTypeOrBuilder { - private static final long serialVersionUID = 0L; - // Use MovingPlatformType.newBuilder() to construct. - private MovingPlatformType(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private MovingPlatformType() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MovingPlatformType(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MovingPlatformType( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.internal_static_MovingPlatformType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.internal_static_MovingPlatformType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType.class, emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType other = (emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code MovingPlatformType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:MovingPlatformType) - emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.internal_static_MovingPlatformType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.internal_static_MovingPlatformType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType.class, emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.internal_static_MovingPlatformType_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType getDefaultInstanceForType() { - return emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType build() { - emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType buildPartial() { - emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType result = new emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType) { - return mergeFrom((emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType other) { - if (other == emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:MovingPlatformType) - } - - // @@protoc_insertion_point(class_scope:MovingPlatformType) - private static final emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType(); - } - - public static emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<MovingPlatformType> - PARSER = new com.google.protobuf.AbstractParser<MovingPlatformType>() { - @java.lang.Override - public MovingPlatformType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MovingPlatformType(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<MovingPlatformType> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<MovingPlatformType> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_MovingPlatformType_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_MovingPlatformType_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030MovingPlatformType.proto\"\024\n\022MovingPlat" + - "formTypeB\033\n\031emu.grasscutter.net.protob\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_MovingPlatformType_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_MovingPlatformType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_MovingPlatformType_descriptor, - new java.lang.String[] { }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/MpSettingTypeOuterClass.java b/src/main/java/emu/grasscutter/net/proto/MpSettingTypeOuterClass.java deleted file mode 100644 index 528a7d412..000000000 --- a/src/main/java/emu/grasscutter/net/proto/MpSettingTypeOuterClass.java +++ /dev/null @@ -1,155 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: MpSettingType.proto - -package emu.grasscutter.net.proto; - -public final class MpSettingTypeOuterClass { - private MpSettingTypeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code MpSettingType} - */ - public enum MpSettingType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>MpSettingNoEnter = 0;</code> - */ - MpSettingNoEnter(0), - /** - * <code>MpSettingEnterFreely = 1;</code> - */ - MpSettingEnterFreely(1), - /** - * <code>MpSettingEnterAfterApply = 2;</code> - */ - MpSettingEnterAfterApply(2), - UNRECOGNIZED(-1), - ; - - /** - * <code>MpSettingNoEnter = 0;</code> - */ - public static final int MpSettingNoEnter_VALUE = 0; - /** - * <code>MpSettingEnterFreely = 1;</code> - */ - public static final int MpSettingEnterFreely_VALUE = 1; - /** - * <code>MpSettingEnterAfterApply = 2;</code> - */ - public static final int MpSettingEnterAfterApply_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MpSettingType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static MpSettingType forNumber(int value) { - switch (value) { - case 0: return MpSettingNoEnter; - case 1: return MpSettingEnterFreely; - case 2: return MpSettingEnterAfterApply; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<MpSettingType> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - MpSettingType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<MpSettingType>() { - public MpSettingType findValueByNumber(int number) { - return MpSettingType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.MpSettingTypeOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final MpSettingType[] VALUES = values(); - - public static MpSettingType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private MpSettingType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:MpSettingType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023MpSettingType.proto*]\n\rMpSettingType\022\024" + - "\n\020MpSettingNoEnter\020\000\022\030\n\024MpSettingEnterFr" + - "eely\020\001\022\034\n\030MpSettingEnterAfterApply\020\002B\033\n\031" + - "emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/NpcTalkReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/NpcTalkReqOuterClass.java deleted file mode 100644 index a974986b9..000000000 --- a/src/main/java/emu/grasscutter/net/proto/NpcTalkReqOuterClass.java +++ /dev/null @@ -1,680 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Grasscutter-Protos/proto/NpcTalkReq.proto - -package emu.grasscutter.net.proto; - -public final class NpcTalkReqOuterClass { - private NpcTalkReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface NpcTalkReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:NpcTalkReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 npc_entity_id = 1;</code> - * @return The npcEntityId. - */ - int getNpcEntityId(); - - /** - * <code>uint32 talk_id = 3;</code> - * @return The talkId. - */ - int getTalkId(); - - /** - * <code>uint32 entity_id = 4;</code> - * @return The entityId. - */ - int getEntityId(); - } - /** - * Protobuf type {@code NpcTalkReq} - */ - public static final class NpcTalkReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:NpcTalkReq) - NpcTalkReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use NpcTalkReq.newBuilder() to construct. - private NpcTalkReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private NpcTalkReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NpcTalkReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NpcTalkReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - npcEntityId_ = input.readUInt32(); - break; - } - case 24: { - - talkId_ = input.readUInt32(); - break; - } - case 32: { - - entityId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.NpcTalkReqOuterClass.internal_static_NpcTalkReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.NpcTalkReqOuterClass.internal_static_NpcTalkReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq.class, emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq.Builder.class); - } - - public static final int NPC_ENTITY_ID_FIELD_NUMBER = 1; - private int npcEntityId_; - /** - * <code>uint32 npc_entity_id = 1;</code> - * @return The npcEntityId. - */ - @java.lang.Override - public int getNpcEntityId() { - return npcEntityId_; - } - - public static final int TALK_ID_FIELD_NUMBER = 3; - private int talkId_; - /** - * <code>uint32 talk_id = 3;</code> - * @return The talkId. - */ - @java.lang.Override - public int getTalkId() { - return talkId_; - } - - public static final int ENTITY_ID_FIELD_NUMBER = 4; - private int entityId_; - /** - * <code>uint32 entity_id = 4;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (npcEntityId_ != 0) { - output.writeUInt32(1, npcEntityId_); - } - if (talkId_ != 0) { - output.writeUInt32(3, talkId_); - } - if (entityId_ != 0) { - output.writeUInt32(4, entityId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (npcEntityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, npcEntityId_); - } - if (talkId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, talkId_); - } - if (entityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, entityId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq other = (emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq) obj; - - if (getNpcEntityId() - != other.getNpcEntityId()) return false; - if (getTalkId() - != other.getTalkId()) return false; - if (getEntityId() - != other.getEntityId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NPC_ENTITY_ID_FIELD_NUMBER; - hash = (53 * hash) + getNpcEntityId(); - hash = (37 * hash) + TALK_ID_FIELD_NUMBER; - hash = (53 * hash) + getTalkId(); - hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code NpcTalkReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:NpcTalkReq) - emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.NpcTalkReqOuterClass.internal_static_NpcTalkReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.NpcTalkReqOuterClass.internal_static_NpcTalkReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq.class, emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - npcEntityId_ = 0; - - talkId_ = 0; - - entityId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.NpcTalkReqOuterClass.internal_static_NpcTalkReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq build() { - emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq buildPartial() { - emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq result = new emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq(this); - result.npcEntityId_ = npcEntityId_; - result.talkId_ = talkId_; - result.entityId_ = entityId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq) { - return mergeFrom((emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq other) { - if (other == emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq.getDefaultInstance()) return this; - if (other.getNpcEntityId() != 0) { - setNpcEntityId(other.getNpcEntityId()); - } - if (other.getTalkId() != 0) { - setTalkId(other.getTalkId()); - } - if (other.getEntityId() != 0) { - setEntityId(other.getEntityId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int npcEntityId_ ; - /** - * <code>uint32 npc_entity_id = 1;</code> - * @return The npcEntityId. - */ - @java.lang.Override - public int getNpcEntityId() { - return npcEntityId_; - } - /** - * <code>uint32 npc_entity_id = 1;</code> - * @param value The npcEntityId to set. - * @return This builder for chaining. - */ - public Builder setNpcEntityId(int value) { - - npcEntityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 npc_entity_id = 1;</code> - * @return This builder for chaining. - */ - public Builder clearNpcEntityId() { - - npcEntityId_ = 0; - onChanged(); - return this; - } - - private int talkId_ ; - /** - * <code>uint32 talk_id = 3;</code> - * @return The talkId. - */ - @java.lang.Override - public int getTalkId() { - return talkId_; - } - /** - * <code>uint32 talk_id = 3;</code> - * @param value The talkId to set. - * @return This builder for chaining. - */ - public Builder setTalkId(int value) { - - talkId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 talk_id = 3;</code> - * @return This builder for chaining. - */ - public Builder clearTalkId() { - - talkId_ = 0; - onChanged(); - return this; - } - - private int entityId_ ; - /** - * <code>uint32 entity_id = 4;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - /** - * <code>uint32 entity_id = 4;</code> - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId(int value) { - - entityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 entity_id = 4;</code> - * @return This builder for chaining. - */ - public Builder clearEntityId() { - - entityId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:NpcTalkReq) - } - - // @@protoc_insertion_point(class_scope:NpcTalkReq) - private static final emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq(); - } - - public static emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<NpcTalkReq> - PARSER = new com.google.protobuf.AbstractParser<NpcTalkReq>() { - @java.lang.Override - public NpcTalkReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NpcTalkReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<NpcTalkReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<NpcTalkReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_NpcTalkReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_NpcTalkReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)Grasscutter-Protos/proto/NpcTalkReq.pr" + - "oto\"G\n\nNpcTalkReq\022\025\n\rnpc_entity_id\030\001 \001(\r" + - "\022\017\n\007talk_id\030\003 \001(\r\022\021\n\tentity_id\030\004 \001(\rB1\n\031" + - "emu.grasscutter.net.protoB\024NpcTalkReqOut" + - "erClassb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_NpcTalkReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_NpcTalkReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_NpcTalkReq_descriptor, - new java.lang.String[] { "NpcEntityId", "TalkId", "EntityId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/NpcTalkRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/NpcTalkRspOuterClass.java deleted file mode 100644 index 80daa3154..000000000 --- a/src/main/java/emu/grasscutter/net/proto/NpcTalkRspOuterClass.java +++ /dev/null @@ -1,750 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Grasscutter-Protos/proto/NpcTalkRsp.proto - -package emu.grasscutter.net.proto; - -public final class NpcTalkRspOuterClass { - private NpcTalkRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface NpcTalkRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:NpcTalkRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint32 npc_entity_id = 2;</code> - * @return The npcEntityId. - */ - int getNpcEntityId(); - - /** - * <code>uint32 cur_talk_id = 4;</code> - * @return The curTalkId. - */ - int getCurTalkId(); - - /** - * <code>uint32 entity_id = 5;</code> - * @return The entityId. - */ - int getEntityId(); - } - /** - * Protobuf type {@code NpcTalkRsp} - */ - public static final class NpcTalkRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:NpcTalkRsp) - NpcTalkRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use NpcTalkRsp.newBuilder() to construct. - private NpcTalkRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private NpcTalkRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NpcTalkRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NpcTalkRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - npcEntityId_ = input.readUInt32(); - break; - } - case 32: { - - curTalkId_ = input.readUInt32(); - break; - } - case 40: { - - entityId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.NpcTalkRspOuterClass.internal_static_NpcTalkRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.NpcTalkRspOuterClass.internal_static_NpcTalkRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp.class, emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int NPC_ENTITY_ID_FIELD_NUMBER = 2; - private int npcEntityId_; - /** - * <code>uint32 npc_entity_id = 2;</code> - * @return The npcEntityId. - */ - @java.lang.Override - public int getNpcEntityId() { - return npcEntityId_; - } - - public static final int CUR_TALK_ID_FIELD_NUMBER = 4; - private int curTalkId_; - /** - * <code>uint32 cur_talk_id = 4;</code> - * @return The curTalkId. - */ - @java.lang.Override - public int getCurTalkId() { - return curTalkId_; - } - - public static final int ENTITY_ID_FIELD_NUMBER = 5; - private int entityId_; - /** - * <code>uint32 entity_id = 5;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (npcEntityId_ != 0) { - output.writeUInt32(2, npcEntityId_); - } - if (curTalkId_ != 0) { - output.writeUInt32(4, curTalkId_); - } - if (entityId_ != 0) { - output.writeUInt32(5, entityId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (npcEntityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, npcEntityId_); - } - if (curTalkId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, curTalkId_); - } - if (entityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, entityId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp other = (emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getNpcEntityId() - != other.getNpcEntityId()) return false; - if (getCurTalkId() - != other.getCurTalkId()) return false; - if (getEntityId() - != other.getEntityId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + NPC_ENTITY_ID_FIELD_NUMBER; - hash = (53 * hash) + getNpcEntityId(); - hash = (37 * hash) + CUR_TALK_ID_FIELD_NUMBER; - hash = (53 * hash) + getCurTalkId(); - hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code NpcTalkRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:NpcTalkRsp) - emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.NpcTalkRspOuterClass.internal_static_NpcTalkRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.NpcTalkRspOuterClass.internal_static_NpcTalkRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp.class, emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - npcEntityId_ = 0; - - curTalkId_ = 0; - - entityId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.NpcTalkRspOuterClass.internal_static_NpcTalkRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp build() { - emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp buildPartial() { - emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp result = new emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp(this); - result.retcode_ = retcode_; - result.npcEntityId_ = npcEntityId_; - result.curTalkId_ = curTalkId_; - result.entityId_ = entityId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp) { - return mergeFrom((emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp other) { - if (other == emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getNpcEntityId() != 0) { - setNpcEntityId(other.getNpcEntityId()); - } - if (other.getCurTalkId() != 0) { - setCurTalkId(other.getCurTalkId()); - } - if (other.getEntityId() != 0) { - setEntityId(other.getEntityId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int npcEntityId_ ; - /** - * <code>uint32 npc_entity_id = 2;</code> - * @return The npcEntityId. - */ - @java.lang.Override - public int getNpcEntityId() { - return npcEntityId_; - } - /** - * <code>uint32 npc_entity_id = 2;</code> - * @param value The npcEntityId to set. - * @return This builder for chaining. - */ - public Builder setNpcEntityId(int value) { - - npcEntityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 npc_entity_id = 2;</code> - * @return This builder for chaining. - */ - public Builder clearNpcEntityId() { - - npcEntityId_ = 0; - onChanged(); - return this; - } - - private int curTalkId_ ; - /** - * <code>uint32 cur_talk_id = 4;</code> - * @return The curTalkId. - */ - @java.lang.Override - public int getCurTalkId() { - return curTalkId_; - } - /** - * <code>uint32 cur_talk_id = 4;</code> - * @param value The curTalkId to set. - * @return This builder for chaining. - */ - public Builder setCurTalkId(int value) { - - curTalkId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 cur_talk_id = 4;</code> - * @return This builder for chaining. - */ - public Builder clearCurTalkId() { - - curTalkId_ = 0; - onChanged(); - return this; - } - - private int entityId_ ; - /** - * <code>uint32 entity_id = 5;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - /** - * <code>uint32 entity_id = 5;</code> - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId(int value) { - - entityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 entity_id = 5;</code> - * @return This builder for chaining. - */ - public Builder clearEntityId() { - - entityId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:NpcTalkRsp) - } - - // @@protoc_insertion_point(class_scope:NpcTalkRsp) - private static final emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp(); - } - - public static emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<NpcTalkRsp> - PARSER = new com.google.protobuf.AbstractParser<NpcTalkRsp>() { - @java.lang.Override - public NpcTalkRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NpcTalkRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<NpcTalkRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<NpcTalkRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_NpcTalkRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_NpcTalkRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)Grasscutter-Protos/proto/NpcTalkRsp.pr" + - "oto\"\\\n\nNpcTalkRsp\022\017\n\007retcode\030\001 \001(\005\022\025\n\rnp" + - "c_entity_id\030\002 \001(\r\022\023\n\013cur_talk_id\030\004 \001(\r\022\021" + - "\n\tentity_id\030\005 \001(\rB1\n\031emu.grasscutter.net" + - ".protoB\024NpcTalkRspOuterClassb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_NpcTalkRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_NpcTalkRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_NpcTalkRsp_descriptor, - new java.lang.String[] { "Retcode", "NpcEntityId", "CurTalkId", "EntityId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/OnlinePlayerInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/OnlinePlayerInfoOuterClass.java deleted file mode 100644 index 98e9c3c42..000000000 --- a/src/main/java/emu/grasscutter/net/proto/OnlinePlayerInfoOuterClass.java +++ /dev/null @@ -1,1784 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: OnlinePlayerInfo.proto - -package emu.grasscutter.net.proto; - -public final class OnlinePlayerInfoOuterClass { - private OnlinePlayerInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface OnlinePlayerInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:OnlinePlayerInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 uid = 1;</code> - * @return The uid. - */ - int getUid(); - - /** - * <code>string nickname = 2;</code> - * @return The nickname. - */ - java.lang.String getNickname(); - /** - * <code>string nickname = 2;</code> - * @return The bytes for nickname. - */ - com.google.protobuf.ByteString - getNicknameBytes(); - - /** - * <code>uint32 playerLevel = 3;</code> - * @return The playerLevel. - */ - int getPlayerLevel(); - - /** - * <code>.MpSettingType mpSettingType = 5;</code> - * @return The enum numeric value on the wire for mpSettingType. - */ - int getMpSettingTypeValue(); - /** - * <code>.MpSettingType mpSettingType = 5;</code> - * @return The mpSettingType. - */ - emu.grasscutter.net.proto.MpSettingTypeOuterClass.MpSettingType getMpSettingType(); - - /** - * <code>uint32 curPlayerNumInWorld = 6;</code> - * @return The curPlayerNumInWorld. - */ - int getCurPlayerNumInWorld(); - - /** - * <code>uint32 worldLevel = 7;</code> - * @return The worldLevel. - */ - int getWorldLevel(); - - /** - * <code>string onlineId = 8;</code> - * @return The onlineId. - */ - java.lang.String getOnlineId(); - /** - * <code>string onlineId = 8;</code> - * @return The bytes for onlineId. - */ - com.google.protobuf.ByteString - getOnlineIdBytes(); - - /** - * <code>uint32 nameCardId = 9;</code> - * @return The nameCardId. - */ - int getNameCardId(); - - /** - * <code>repeated uint32 blacklistUidList = 10;</code> - * @return A list containing the blacklistUidList. - */ - java.util.List<java.lang.Integer> getBlacklistUidListList(); - /** - * <code>repeated uint32 blacklistUidList = 10;</code> - * @return The count of blacklistUidList. - */ - int getBlacklistUidListCount(); - /** - * <code>repeated uint32 blacklistUidList = 10;</code> - * @param index The index of the element to return. - * @return The blacklistUidList at the given index. - */ - int getBlacklistUidList(int index); - - /** - * <code>string signature = 11;</code> - * @return The signature. - */ - java.lang.String getSignature(); - /** - * <code>string signature = 11;</code> - * @return The bytes for signature. - */ - com.google.protobuf.ByteString - getSignatureBytes(); - - /** - * <code>.HeadImage avatar = 12;</code> - * @return Whether the avatar field is set. - */ - boolean hasAvatar(); - /** - * <code>.HeadImage avatar = 12;</code> - * @return The avatar. - */ - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage getAvatar(); - /** - * <code>.HeadImage avatar = 12;</code> - */ - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder getAvatarOrBuilder(); - } - /** - * Protobuf type {@code OnlinePlayerInfo} - */ - public static final class OnlinePlayerInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:OnlinePlayerInfo) - OnlinePlayerInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use OnlinePlayerInfo.newBuilder() to construct. - private OnlinePlayerInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private OnlinePlayerInfo() { - nickname_ = ""; - mpSettingType_ = 0; - onlineId_ = ""; - blacklistUidList_ = emptyIntList(); - signature_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OnlinePlayerInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OnlinePlayerInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - uid_ = input.readUInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - nickname_ = s; - break; - } - case 24: { - - playerLevel_ = input.readUInt32(); - break; - } - case 40: { - int rawValue = input.readEnum(); - - mpSettingType_ = rawValue; - break; - } - case 48: { - - curPlayerNumInWorld_ = input.readUInt32(); - break; - } - case 56: { - - worldLevel_ = input.readUInt32(); - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - onlineId_ = s; - break; - } - case 72: { - - nameCardId_ = input.readUInt32(); - break; - } - case 80: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - blacklistUidList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - blacklistUidList_.addInt(input.readUInt32()); - break; - } - case 82: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - blacklistUidList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - blacklistUidList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 90: { - java.lang.String s = input.readStringRequireUtf8(); - - signature_ = s; - break; - } - case 98: { - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder subBuilder = null; - if (avatar_ != null) { - subBuilder = avatar_.toBuilder(); - } - avatar_ = input.readMessage(emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(avatar_); - avatar_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - blacklistUidList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.internal_static_OnlinePlayerInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.internal_static_OnlinePlayerInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.class, emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder.class); - } - - public static final int UID_FIELD_NUMBER = 1; - private int uid_; - /** - * <code>uint32 uid = 1;</code> - * @return The uid. - */ - @java.lang.Override - public int getUid() { - return uid_; - } - - public static final int NICKNAME_FIELD_NUMBER = 2; - private volatile java.lang.Object nickname_; - /** - * <code>string nickname = 2;</code> - * @return The nickname. - */ - @java.lang.Override - public java.lang.String getNickname() { - java.lang.Object ref = nickname_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nickname_ = s; - return s; - } - } - /** - * <code>string nickname = 2;</code> - * @return The bytes for nickname. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNicknameBytes() { - java.lang.Object ref = nickname_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nickname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PLAYERLEVEL_FIELD_NUMBER = 3; - private int playerLevel_; - /** - * <code>uint32 playerLevel = 3;</code> - * @return The playerLevel. - */ - @java.lang.Override - public int getPlayerLevel() { - return playerLevel_; - } - - public static final int MPSETTINGTYPE_FIELD_NUMBER = 5; - private int mpSettingType_; - /** - * <code>.MpSettingType mpSettingType = 5;</code> - * @return The enum numeric value on the wire for mpSettingType. - */ - @java.lang.Override public int getMpSettingTypeValue() { - return mpSettingType_; - } - /** - * <code>.MpSettingType mpSettingType = 5;</code> - * @return The mpSettingType. - */ - @java.lang.Override public emu.grasscutter.net.proto.MpSettingTypeOuterClass.MpSettingType getMpSettingType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.MpSettingTypeOuterClass.MpSettingType result = emu.grasscutter.net.proto.MpSettingTypeOuterClass.MpSettingType.valueOf(mpSettingType_); - return result == null ? emu.grasscutter.net.proto.MpSettingTypeOuterClass.MpSettingType.UNRECOGNIZED : result; - } - - public static final int CURPLAYERNUMINWORLD_FIELD_NUMBER = 6; - private int curPlayerNumInWorld_; - /** - * <code>uint32 curPlayerNumInWorld = 6;</code> - * @return The curPlayerNumInWorld. - */ - @java.lang.Override - public int getCurPlayerNumInWorld() { - return curPlayerNumInWorld_; - } - - public static final int WORLDLEVEL_FIELD_NUMBER = 7; - private int worldLevel_; - /** - * <code>uint32 worldLevel = 7;</code> - * @return The worldLevel. - */ - @java.lang.Override - public int getWorldLevel() { - return worldLevel_; - } - - public static final int ONLINEID_FIELD_NUMBER = 8; - private volatile java.lang.Object onlineId_; - /** - * <code>string onlineId = 8;</code> - * @return The onlineId. - */ - @java.lang.Override - public java.lang.String getOnlineId() { - java.lang.Object ref = onlineId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - onlineId_ = s; - return s; - } - } - /** - * <code>string onlineId = 8;</code> - * @return The bytes for onlineId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOnlineIdBytes() { - java.lang.Object ref = onlineId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - onlineId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAMECARDID_FIELD_NUMBER = 9; - private int nameCardId_; - /** - * <code>uint32 nameCardId = 9;</code> - * @return The nameCardId. - */ - @java.lang.Override - public int getNameCardId() { - return nameCardId_; - } - - public static final int BLACKLISTUIDLIST_FIELD_NUMBER = 10; - private com.google.protobuf.Internal.IntList blacklistUidList_; - /** - * <code>repeated uint32 blacklistUidList = 10;</code> - * @return A list containing the blacklistUidList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getBlacklistUidListList() { - return blacklistUidList_; - } - /** - * <code>repeated uint32 blacklistUidList = 10;</code> - * @return The count of blacklistUidList. - */ - public int getBlacklistUidListCount() { - return blacklistUidList_.size(); - } - /** - * <code>repeated uint32 blacklistUidList = 10;</code> - * @param index The index of the element to return. - * @return The blacklistUidList at the given index. - */ - public int getBlacklistUidList(int index) { - return blacklistUidList_.getInt(index); - } - private int blacklistUidListMemoizedSerializedSize = -1; - - public static final int SIGNATURE_FIELD_NUMBER = 11; - private volatile java.lang.Object signature_; - /** - * <code>string signature = 11;</code> - * @return The signature. - */ - @java.lang.Override - public java.lang.String getSignature() { - java.lang.Object ref = signature_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signature_ = s; - return s; - } - } - /** - * <code>string signature = 11;</code> - * @return The bytes for signature. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSignatureBytes() { - java.lang.Object ref = signature_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signature_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AVATAR_FIELD_NUMBER = 12; - private emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage avatar_; - /** - * <code>.HeadImage avatar = 12;</code> - * @return Whether the avatar field is set. - */ - @java.lang.Override - public boolean hasAvatar() { - return avatar_ != null; - } - /** - * <code>.HeadImage avatar = 12;</code> - * @return The avatar. - */ - @java.lang.Override - public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage getAvatar() { - return avatar_ == null ? emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.getDefaultInstance() : avatar_; - } - /** - * <code>.HeadImage avatar = 12;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder getAvatarOrBuilder() { - return getAvatar(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (uid_ != 0) { - output.writeUInt32(1, uid_); - } - if (!getNicknameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nickname_); - } - if (playerLevel_ != 0) { - output.writeUInt32(3, playerLevel_); - } - if (mpSettingType_ != emu.grasscutter.net.proto.MpSettingTypeOuterClass.MpSettingType.MpSettingNoEnter.getNumber()) { - output.writeEnum(5, mpSettingType_); - } - if (curPlayerNumInWorld_ != 0) { - output.writeUInt32(6, curPlayerNumInWorld_); - } - if (worldLevel_ != 0) { - output.writeUInt32(7, worldLevel_); - } - if (!getOnlineIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, onlineId_); - } - if (nameCardId_ != 0) { - output.writeUInt32(9, nameCardId_); - } - if (getBlacklistUidListList().size() > 0) { - output.writeUInt32NoTag(82); - output.writeUInt32NoTag(blacklistUidListMemoizedSerializedSize); - } - for (int i = 0; i < blacklistUidList_.size(); i++) { - output.writeUInt32NoTag(blacklistUidList_.getInt(i)); - } - if (!getSignatureBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, signature_); - } - if (avatar_ != null) { - output.writeMessage(12, getAvatar()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (uid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, uid_); - } - if (!getNicknameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nickname_); - } - if (playerLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, playerLevel_); - } - if (mpSettingType_ != emu.grasscutter.net.proto.MpSettingTypeOuterClass.MpSettingType.MpSettingNoEnter.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, mpSettingType_); - } - if (curPlayerNumInWorld_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, curPlayerNumInWorld_); - } - if (worldLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(7, worldLevel_); - } - if (!getOnlineIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, onlineId_); - } - if (nameCardId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(9, nameCardId_); - } - { - int dataSize = 0; - for (int i = 0; i < blacklistUidList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(blacklistUidList_.getInt(i)); - } - size += dataSize; - if (!getBlacklistUidListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - blacklistUidListMemoizedSerializedSize = dataSize; - } - if (!getSignatureBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, signature_); - } - if (avatar_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getAvatar()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo other = (emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo) obj; - - if (getUid() - != other.getUid()) return false; - if (!getNickname() - .equals(other.getNickname())) return false; - if (getPlayerLevel() - != other.getPlayerLevel()) return false; - if (mpSettingType_ != other.mpSettingType_) return false; - if (getCurPlayerNumInWorld() - != other.getCurPlayerNumInWorld()) return false; - if (getWorldLevel() - != other.getWorldLevel()) return false; - if (!getOnlineId() - .equals(other.getOnlineId())) return false; - if (getNameCardId() - != other.getNameCardId()) return false; - if (!getBlacklistUidListList() - .equals(other.getBlacklistUidListList())) return false; - if (!getSignature() - .equals(other.getSignature())) return false; - if (hasAvatar() != other.hasAvatar()) return false; - if (hasAvatar()) { - if (!getAvatar() - .equals(other.getAvatar())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + UID_FIELD_NUMBER; - hash = (53 * hash) + getUid(); - hash = (37 * hash) + NICKNAME_FIELD_NUMBER; - hash = (53 * hash) + getNickname().hashCode(); - hash = (37 * hash) + PLAYERLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getPlayerLevel(); - hash = (37 * hash) + MPSETTINGTYPE_FIELD_NUMBER; - hash = (53 * hash) + mpSettingType_; - hash = (37 * hash) + CURPLAYERNUMINWORLD_FIELD_NUMBER; - hash = (53 * hash) + getCurPlayerNumInWorld(); - hash = (37 * hash) + WORLDLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getWorldLevel(); - hash = (37 * hash) + ONLINEID_FIELD_NUMBER; - hash = (53 * hash) + getOnlineId().hashCode(); - hash = (37 * hash) + NAMECARDID_FIELD_NUMBER; - hash = (53 * hash) + getNameCardId(); - if (getBlacklistUidListCount() > 0) { - hash = (37 * hash) + BLACKLISTUIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getBlacklistUidListList().hashCode(); - } - hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getSignature().hashCode(); - if (hasAvatar()) { - hash = (37 * hash) + AVATAR_FIELD_NUMBER; - hash = (53 * hash) + getAvatar().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code OnlinePlayerInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:OnlinePlayerInfo) - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.internal_static_OnlinePlayerInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.internal_static_OnlinePlayerInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.class, emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - uid_ = 0; - - nickname_ = ""; - - playerLevel_ = 0; - - mpSettingType_ = 0; - - curPlayerNumInWorld_ = 0; - - worldLevel_ = 0; - - onlineId_ = ""; - - nameCardId_ = 0; - - blacklistUidList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - signature_ = ""; - - if (avatarBuilder_ == null) { - avatar_ = null; - } else { - avatar_ = null; - avatarBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.internal_static_OnlinePlayerInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo build() { - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo buildPartial() { - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo result = new emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo(this); - int from_bitField0_ = bitField0_; - result.uid_ = uid_; - result.nickname_ = nickname_; - result.playerLevel_ = playerLevel_; - result.mpSettingType_ = mpSettingType_; - result.curPlayerNumInWorld_ = curPlayerNumInWorld_; - result.worldLevel_ = worldLevel_; - result.onlineId_ = onlineId_; - result.nameCardId_ = nameCardId_; - if (((bitField0_ & 0x00000001) != 0)) { - blacklistUidList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.blacklistUidList_ = blacklistUidList_; - result.signature_ = signature_; - if (avatarBuilder_ == null) { - result.avatar_ = avatar_; - } else { - result.avatar_ = avatarBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo) { - return mergeFrom((emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo other) { - if (other == emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.getDefaultInstance()) return this; - if (other.getUid() != 0) { - setUid(other.getUid()); - } - if (!other.getNickname().isEmpty()) { - nickname_ = other.nickname_; - onChanged(); - } - if (other.getPlayerLevel() != 0) { - setPlayerLevel(other.getPlayerLevel()); - } - if (other.mpSettingType_ != 0) { - setMpSettingTypeValue(other.getMpSettingTypeValue()); - } - if (other.getCurPlayerNumInWorld() != 0) { - setCurPlayerNumInWorld(other.getCurPlayerNumInWorld()); - } - if (other.getWorldLevel() != 0) { - setWorldLevel(other.getWorldLevel()); - } - if (!other.getOnlineId().isEmpty()) { - onlineId_ = other.onlineId_; - onChanged(); - } - if (other.getNameCardId() != 0) { - setNameCardId(other.getNameCardId()); - } - if (!other.blacklistUidList_.isEmpty()) { - if (blacklistUidList_.isEmpty()) { - blacklistUidList_ = other.blacklistUidList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBlacklistUidListIsMutable(); - blacklistUidList_.addAll(other.blacklistUidList_); - } - onChanged(); - } - if (!other.getSignature().isEmpty()) { - signature_ = other.signature_; - onChanged(); - } - if (other.hasAvatar()) { - mergeAvatar(other.getAvatar()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int uid_ ; - /** - * <code>uint32 uid = 1;</code> - * @return The uid. - */ - @java.lang.Override - public int getUid() { - return uid_; - } - /** - * <code>uint32 uid = 1;</code> - * @param value The uid to set. - * @return This builder for chaining. - */ - public Builder setUid(int value) { - - uid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 uid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearUid() { - - uid_ = 0; - onChanged(); - return this; - } - - private java.lang.Object nickname_ = ""; - /** - * <code>string nickname = 2;</code> - * @return The nickname. - */ - public java.lang.String getNickname() { - java.lang.Object ref = nickname_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nickname_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string nickname = 2;</code> - * @return The bytes for nickname. - */ - public com.google.protobuf.ByteString - getNicknameBytes() { - java.lang.Object ref = nickname_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nickname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string nickname = 2;</code> - * @param value The nickname to set. - * @return This builder for chaining. - */ - public Builder setNickname( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nickname_ = value; - onChanged(); - return this; - } - /** - * <code>string nickname = 2;</code> - * @return This builder for chaining. - */ - public Builder clearNickname() { - - nickname_ = getDefaultInstance().getNickname(); - onChanged(); - return this; - } - /** - * <code>string nickname = 2;</code> - * @param value The bytes for nickname to set. - * @return This builder for chaining. - */ - public Builder setNicknameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nickname_ = value; - onChanged(); - return this; - } - - private int playerLevel_ ; - /** - * <code>uint32 playerLevel = 3;</code> - * @return The playerLevel. - */ - @java.lang.Override - public int getPlayerLevel() { - return playerLevel_; - } - /** - * <code>uint32 playerLevel = 3;</code> - * @param value The playerLevel to set. - * @return This builder for chaining. - */ - public Builder setPlayerLevel(int value) { - - playerLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 playerLevel = 3;</code> - * @return This builder for chaining. - */ - public Builder clearPlayerLevel() { - - playerLevel_ = 0; - onChanged(); - return this; - } - - private int mpSettingType_ = 0; - /** - * <code>.MpSettingType mpSettingType = 5;</code> - * @return The enum numeric value on the wire for mpSettingType. - */ - @java.lang.Override public int getMpSettingTypeValue() { - return mpSettingType_; - } - /** - * <code>.MpSettingType mpSettingType = 5;</code> - * @param value The enum numeric value on the wire for mpSettingType to set. - * @return This builder for chaining. - */ - public Builder setMpSettingTypeValue(int value) { - - mpSettingType_ = value; - onChanged(); - return this; - } - /** - * <code>.MpSettingType mpSettingType = 5;</code> - * @return The mpSettingType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.MpSettingTypeOuterClass.MpSettingType getMpSettingType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.MpSettingTypeOuterClass.MpSettingType result = emu.grasscutter.net.proto.MpSettingTypeOuterClass.MpSettingType.valueOf(mpSettingType_); - return result == null ? emu.grasscutter.net.proto.MpSettingTypeOuterClass.MpSettingType.UNRECOGNIZED : result; - } - /** - * <code>.MpSettingType mpSettingType = 5;</code> - * @param value The mpSettingType to set. - * @return This builder for chaining. - */ - public Builder setMpSettingType(emu.grasscutter.net.proto.MpSettingTypeOuterClass.MpSettingType value) { - if (value == null) { - throw new NullPointerException(); - } - - mpSettingType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.MpSettingType mpSettingType = 5;</code> - * @return This builder for chaining. - */ - public Builder clearMpSettingType() { - - mpSettingType_ = 0; - onChanged(); - return this; - } - - private int curPlayerNumInWorld_ ; - /** - * <code>uint32 curPlayerNumInWorld = 6;</code> - * @return The curPlayerNumInWorld. - */ - @java.lang.Override - public int getCurPlayerNumInWorld() { - return curPlayerNumInWorld_; - } - /** - * <code>uint32 curPlayerNumInWorld = 6;</code> - * @param value The curPlayerNumInWorld to set. - * @return This builder for chaining. - */ - public Builder setCurPlayerNumInWorld(int value) { - - curPlayerNumInWorld_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 curPlayerNumInWorld = 6;</code> - * @return This builder for chaining. - */ - public Builder clearCurPlayerNumInWorld() { - - curPlayerNumInWorld_ = 0; - onChanged(); - return this; - } - - private int worldLevel_ ; - /** - * <code>uint32 worldLevel = 7;</code> - * @return The worldLevel. - */ - @java.lang.Override - public int getWorldLevel() { - return worldLevel_; - } - /** - * <code>uint32 worldLevel = 7;</code> - * @param value The worldLevel to set. - * @return This builder for chaining. - */ - public Builder setWorldLevel(int value) { - - worldLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 worldLevel = 7;</code> - * @return This builder for chaining. - */ - public Builder clearWorldLevel() { - - worldLevel_ = 0; - onChanged(); - return this; - } - - private java.lang.Object onlineId_ = ""; - /** - * <code>string onlineId = 8;</code> - * @return The onlineId. - */ - public java.lang.String getOnlineId() { - java.lang.Object ref = onlineId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - onlineId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string onlineId = 8;</code> - * @return The bytes for onlineId. - */ - public com.google.protobuf.ByteString - getOnlineIdBytes() { - java.lang.Object ref = onlineId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - onlineId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string onlineId = 8;</code> - * @param value The onlineId to set. - * @return This builder for chaining. - */ - public Builder setOnlineId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - onlineId_ = value; - onChanged(); - return this; - } - /** - * <code>string onlineId = 8;</code> - * @return This builder for chaining. - */ - public Builder clearOnlineId() { - - onlineId_ = getDefaultInstance().getOnlineId(); - onChanged(); - return this; - } - /** - * <code>string onlineId = 8;</code> - * @param value The bytes for onlineId to set. - * @return This builder for chaining. - */ - public Builder setOnlineIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - onlineId_ = value; - onChanged(); - return this; - } - - private int nameCardId_ ; - /** - * <code>uint32 nameCardId = 9;</code> - * @return The nameCardId. - */ - @java.lang.Override - public int getNameCardId() { - return nameCardId_; - } - /** - * <code>uint32 nameCardId = 9;</code> - * @param value The nameCardId to set. - * @return This builder for chaining. - */ - public Builder setNameCardId(int value) { - - nameCardId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 nameCardId = 9;</code> - * @return This builder for chaining. - */ - public Builder clearNameCardId() { - - nameCardId_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList blacklistUidList_ = emptyIntList(); - private void ensureBlacklistUidListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - blacklistUidList_ = mutableCopy(blacklistUidList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 blacklistUidList = 10;</code> - * @return A list containing the blacklistUidList. - */ - public java.util.List<java.lang.Integer> - getBlacklistUidListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(blacklistUidList_) : blacklistUidList_; - } - /** - * <code>repeated uint32 blacklistUidList = 10;</code> - * @return The count of blacklistUidList. - */ - public int getBlacklistUidListCount() { - return blacklistUidList_.size(); - } - /** - * <code>repeated uint32 blacklistUidList = 10;</code> - * @param index The index of the element to return. - * @return The blacklistUidList at the given index. - */ - public int getBlacklistUidList(int index) { - return blacklistUidList_.getInt(index); - } - /** - * <code>repeated uint32 blacklistUidList = 10;</code> - * @param index The index to set the value at. - * @param value The blacklistUidList to set. - * @return This builder for chaining. - */ - public Builder setBlacklistUidList( - int index, int value) { - ensureBlacklistUidListIsMutable(); - blacklistUidList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 blacklistUidList = 10;</code> - * @param value The blacklistUidList to add. - * @return This builder for chaining. - */ - public Builder addBlacklistUidList(int value) { - ensureBlacklistUidListIsMutable(); - blacklistUidList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 blacklistUidList = 10;</code> - * @param values The blacklistUidList to add. - * @return This builder for chaining. - */ - public Builder addAllBlacklistUidList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureBlacklistUidListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, blacklistUidList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 blacklistUidList = 10;</code> - * @return This builder for chaining. - */ - public Builder clearBlacklistUidList() { - blacklistUidList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private java.lang.Object signature_ = ""; - /** - * <code>string signature = 11;</code> - * @return The signature. - */ - public java.lang.String getSignature() { - java.lang.Object ref = signature_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signature_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string signature = 11;</code> - * @return The bytes for signature. - */ - public com.google.protobuf.ByteString - getSignatureBytes() { - java.lang.Object ref = signature_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signature_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string signature = 11;</code> - * @param value The signature to set. - * @return This builder for chaining. - */ - public Builder setSignature( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signature_ = value; - onChanged(); - return this; - } - /** - * <code>string signature = 11;</code> - * @return This builder for chaining. - */ - public Builder clearSignature() { - - signature_ = getDefaultInstance().getSignature(); - onChanged(); - return this; - } - /** - * <code>string signature = 11;</code> - * @param value The bytes for signature to set. - * @return This builder for chaining. - */ - public Builder setSignatureBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signature_ = value; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage avatar_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder> avatarBuilder_; - /** - * <code>.HeadImage avatar = 12;</code> - * @return Whether the avatar field is set. - */ - public boolean hasAvatar() { - return avatarBuilder_ != null || avatar_ != null; - } - /** - * <code>.HeadImage avatar = 12;</code> - * @return The avatar. - */ - public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage getAvatar() { - if (avatarBuilder_ == null) { - return avatar_ == null ? emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.getDefaultInstance() : avatar_; - } else { - return avatarBuilder_.getMessage(); - } - } - /** - * <code>.HeadImage avatar = 12;</code> - */ - public Builder setAvatar(emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage value) { - if (avatarBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - avatar_ = value; - onChanged(); - } else { - avatarBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.HeadImage avatar = 12;</code> - */ - public Builder setAvatar( - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder builderForValue) { - if (avatarBuilder_ == null) { - avatar_ = builderForValue.build(); - onChanged(); - } else { - avatarBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.HeadImage avatar = 12;</code> - */ - public Builder mergeAvatar(emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage value) { - if (avatarBuilder_ == null) { - if (avatar_ != null) { - avatar_ = - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.newBuilder(avatar_).mergeFrom(value).buildPartial(); - } else { - avatar_ = value; - } - onChanged(); - } else { - avatarBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.HeadImage avatar = 12;</code> - */ - public Builder clearAvatar() { - if (avatarBuilder_ == null) { - avatar_ = null; - onChanged(); - } else { - avatar_ = null; - avatarBuilder_ = null; - } - - return this; - } - /** - * <code>.HeadImage avatar = 12;</code> - */ - public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder getAvatarBuilder() { - - onChanged(); - return getAvatarFieldBuilder().getBuilder(); - } - /** - * <code>.HeadImage avatar = 12;</code> - */ - public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder getAvatarOrBuilder() { - if (avatarBuilder_ != null) { - return avatarBuilder_.getMessageOrBuilder(); - } else { - return avatar_ == null ? - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.getDefaultInstance() : avatar_; - } - } - /** - * <code>.HeadImage avatar = 12;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder> - getAvatarFieldBuilder() { - if (avatarBuilder_ == null) { - avatarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder>( - getAvatar(), - getParentForChildren(), - isClean()); - avatar_ = null; - } - return avatarBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:OnlinePlayerInfo) - } - - // @@protoc_insertion_point(class_scope:OnlinePlayerInfo) - private static final emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo(); - } - - public static emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<OnlinePlayerInfo> - PARSER = new com.google.protobuf.AbstractParser<OnlinePlayerInfo>() { - @java.lang.Override - public OnlinePlayerInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OnlinePlayerInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<OnlinePlayerInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<OnlinePlayerInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_OnlinePlayerInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_OnlinePlayerInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026OnlinePlayerInfo.proto\032\017HeadImage.prot" + - "o\032\023MpSettingType.proto\"\215\002\n\020OnlinePlayerI" + - "nfo\022\013\n\003uid\030\001 \001(\r\022\020\n\010nickname\030\002 \001(\t\022\023\n\013pl" + - "ayerLevel\030\003 \001(\r\022%\n\rmpSettingType\030\005 \001(\0162\016" + - ".MpSettingType\022\033\n\023curPlayerNumInWorld\030\006 " + - "\001(\r\022\022\n\nworldLevel\030\007 \001(\r\022\020\n\010onlineId\030\010 \001(" + - "\t\022\022\n\nnameCardId\030\t \001(\r\022\030\n\020blacklistUidLis" + - "t\030\n \003(\r\022\021\n\tsignature\030\013 \001(\t\022\032\n\006avatar\030\014 \001" + - "(\0132\n.HeadImageB\033\n\031emu.grasscutter.net.pr" + - "otob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.HeadImageOuterClass.getDescriptor(), - emu.grasscutter.net.proto.MpSettingTypeOuterClass.getDescriptor(), - }); - internal_static_OnlinePlayerInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_OnlinePlayerInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_OnlinePlayerInfo_descriptor, - new java.lang.String[] { "Uid", "Nickname", "PlayerLevel", "MpSettingType", "CurPlayerNumInWorld", "WorldLevel", "OnlineId", "NameCardId", "BlacklistUidList", "Signature", "Avatar", }); - emu.grasscutter.net.proto.HeadImageOuterClass.getDescriptor(); - emu.grasscutter.net.proto.MpSettingTypeOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/OpenStateUpdateNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/OpenStateUpdateNotifyOuterClass.java deleted file mode 100644 index d642fd5b6..000000000 --- a/src/main/java/emu/grasscutter/net/proto/OpenStateUpdateNotifyOuterClass.java +++ /dev/null @@ -1,800 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: OpenStateUpdateNotify.proto - -package emu.grasscutter.net.proto; - -public final class OpenStateUpdateNotifyOuterClass { - private OpenStateUpdateNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface OpenStateUpdateNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:OpenStateUpdateNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>map<uint32, uint32> openStateMap = 1;</code> - */ - int getOpenStateMapCount(); - /** - * <code>map<uint32, uint32> openStateMap = 1;</code> - */ - boolean containsOpenStateMap( - int key); - /** - * Use {@link #getOpenStateMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Integer> - getOpenStateMap(); - /** - * <code>map<uint32, uint32> openStateMap = 1;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Integer> - getOpenStateMapMap(); - /** - * <code>map<uint32, uint32> openStateMap = 1;</code> - */ - - int getOpenStateMapOrDefault( - int key, - int defaultValue); - /** - * <code>map<uint32, uint32> openStateMap = 1;</code> - */ - - int getOpenStateMapOrThrow( - int key); - } - /** - * Protobuf type {@code OpenStateUpdateNotify} - */ - public static final class OpenStateUpdateNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:OpenStateUpdateNotify) - OpenStateUpdateNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use OpenStateUpdateNotify.newBuilder() to construct. - private OpenStateUpdateNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private OpenStateUpdateNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OpenStateUpdateNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OpenStateUpdateNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - openStateMap_ = com.google.protobuf.MapField.newMapField( - OpenStateMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - openStateMap__ = input.readMessage( - OpenStateMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - openStateMap_.getMutableMap().put( - openStateMap__.getKey(), openStateMap__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.internal_static_OpenStateUpdateNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetOpenStateMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.internal_static_OpenStateUpdateNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify.class, emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify.Builder.class); - } - - public static final int OPENSTATEMAP_FIELD_NUMBER = 1; - private static final class OpenStateMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Integer>newDefaultInstance( - emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.internal_static_OpenStateUpdateNotify_OpenStateMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> openStateMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetOpenStateMap() { - if (openStateMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - OpenStateMapDefaultEntryHolder.defaultEntry); - } - return openStateMap_; - } - - public int getOpenStateMapCount() { - return internalGetOpenStateMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> openStateMap = 1;</code> - */ - - @java.lang.Override - public boolean containsOpenStateMap( - int key) { - - return internalGetOpenStateMap().getMap().containsKey(key); - } - /** - * Use {@link #getOpenStateMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getOpenStateMap() { - return getOpenStateMapMap(); - } - /** - * <code>map<uint32, uint32> openStateMap = 1;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getOpenStateMapMap() { - return internalGetOpenStateMap().getMap(); - } - /** - * <code>map<uint32, uint32> openStateMap = 1;</code> - */ - @java.lang.Override - - public int getOpenStateMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetOpenStateMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> openStateMap = 1;</code> - */ - @java.lang.Override - - public int getOpenStateMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetOpenStateMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetOpenStateMap(), - OpenStateMapDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry - : internalGetOpenStateMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - openStateMap__ = OpenStateMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, openStateMap__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify other = (emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify) obj; - - if (!internalGetOpenStateMap().equals( - other.internalGetOpenStateMap())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetOpenStateMap().getMap().isEmpty()) { - hash = (37 * hash) + OPENSTATEMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetOpenStateMap().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code OpenStateUpdateNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:OpenStateUpdateNotify) - emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.internal_static_OpenStateUpdateNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetOpenStateMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableOpenStateMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.internal_static_OpenStateUpdateNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify.class, emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableOpenStateMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.internal_static_OpenStateUpdateNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify build() { - emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify buildPartial() { - emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify result = new emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify(this); - int from_bitField0_ = bitField0_; - result.openStateMap_ = internalGetOpenStateMap(); - result.openStateMap_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify) { - return mergeFrom((emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify other) { - if (other == emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify.getDefaultInstance()) return this; - internalGetMutableOpenStateMap().mergeFrom( - other.internalGetOpenStateMap()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> openStateMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetOpenStateMap() { - if (openStateMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - OpenStateMapDefaultEntryHolder.defaultEntry); - } - return openStateMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetMutableOpenStateMap() { - onChanged();; - if (openStateMap_ == null) { - openStateMap_ = com.google.protobuf.MapField.newMapField( - OpenStateMapDefaultEntryHolder.defaultEntry); - } - if (!openStateMap_.isMutable()) { - openStateMap_ = openStateMap_.copy(); - } - return openStateMap_; - } - - public int getOpenStateMapCount() { - return internalGetOpenStateMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> openStateMap = 1;</code> - */ - - @java.lang.Override - public boolean containsOpenStateMap( - int key) { - - return internalGetOpenStateMap().getMap().containsKey(key); - } - /** - * Use {@link #getOpenStateMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getOpenStateMap() { - return getOpenStateMapMap(); - } - /** - * <code>map<uint32, uint32> openStateMap = 1;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getOpenStateMapMap() { - return internalGetOpenStateMap().getMap(); - } - /** - * <code>map<uint32, uint32> openStateMap = 1;</code> - */ - @java.lang.Override - - public int getOpenStateMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetOpenStateMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> openStateMap = 1;</code> - */ - @java.lang.Override - - public int getOpenStateMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetOpenStateMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearOpenStateMap() { - internalGetMutableOpenStateMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, uint32> openStateMap = 1;</code> - */ - - public Builder removeOpenStateMap( - int key) { - - internalGetMutableOpenStateMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> - getMutableOpenStateMap() { - return internalGetMutableOpenStateMap().getMutableMap(); - } - /** - * <code>map<uint32, uint32> openStateMap = 1;</code> - */ - public Builder putOpenStateMap( - int key, - int value) { - - - internalGetMutableOpenStateMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, uint32> openStateMap = 1;</code> - */ - - public Builder putAllOpenStateMap( - java.util.Map<java.lang.Integer, java.lang.Integer> values) { - internalGetMutableOpenStateMap().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:OpenStateUpdateNotify) - } - - // @@protoc_insertion_point(class_scope:OpenStateUpdateNotify) - private static final emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify(); - } - - public static emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<OpenStateUpdateNotify> - PARSER = new com.google.protobuf.AbstractParser<OpenStateUpdateNotify>() { - @java.lang.Override - public OpenStateUpdateNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OpenStateUpdateNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<OpenStateUpdateNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<OpenStateUpdateNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_OpenStateUpdateNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_OpenStateUpdateNotify_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_OpenStateUpdateNotify_OpenStateMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_OpenStateUpdateNotify_OpenStateMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033OpenStateUpdateNotify.proto\"\214\001\n\025OpenSt" + - "ateUpdateNotify\022>\n\014openStateMap\030\001 \003(\0132(." + - "OpenStateUpdateNotify.OpenStateMapEntry\032" + - "3\n\021OpenStateMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005val" + - "ue\030\002 \001(\r:\0028\001B\033\n\031emu.grasscutter.net.prot" + - "ob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_OpenStateUpdateNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_OpenStateUpdateNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_OpenStateUpdateNotify_descriptor, - new java.lang.String[] { "OpenStateMap", }); - internal_static_OpenStateUpdateNotify_OpenStateMapEntry_descriptor = - internal_static_OpenStateUpdateNotify_descriptor.getNestedTypes().get(0); - internal_static_OpenStateUpdateNotify_OpenStateMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_OpenStateUpdateNotify_OpenStateMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/OperationOuterClass.java b/src/main/java/emu/grasscutter/net/proto/OperationOuterClass.java deleted file mode 100644 index f155640d9..000000000 --- a/src/main/java/emu/grasscutter/net/proto/OperationOuterClass.java +++ /dev/null @@ -1,163 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Operation.proto - -package emu.grasscutter.net.proto; - -public final class OperationOuterClass { - private OperationOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code Operation} - */ - public enum Operation - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>Add = 0;</code> - */ - Add(0), - /** - * <code>Mod = 1;</code> - */ - Mod(1), - /** - * <code>Del = 2;</code> - */ - Del(2), - /** - * <code>Get = 3;</code> - */ - Get(3), - UNRECOGNIZED(-1), - ; - - /** - * <code>Add = 0;</code> - */ - public static final int Add_VALUE = 0; - /** - * <code>Mod = 1;</code> - */ - public static final int Mod_VALUE = 1; - /** - * <code>Del = 2;</code> - */ - public static final int Del_VALUE = 2; - /** - * <code>Get = 3;</code> - */ - public static final int Get_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Operation valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Operation forNumber(int value) { - switch (value) { - case 0: return Add; - case 1: return Mod; - case 2: return Del; - case 3: return Get; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<Operation> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Operation> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<Operation>() { - public Operation findValueByNumber(int number) { - return Operation.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.OperationOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final Operation[] VALUES = values(); - - public static Operation valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Operation(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:Operation) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\017Operation.proto*/\n\tOperation\022\007\n\003Add\020\000\022" + - "\007\n\003Mod\020\001\022\007\n\003Del\020\002\022\007\n\003Get\020\003B\033\n\031emu.grassc" + - "utter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PacketHeadOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PacketHeadOuterClass.java deleted file mode 100644 index d21f8255e..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PacketHeadOuterClass.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PacketHead.proto - -package emu.grasscutter.net.proto; - -public final class PacketHeadOuterClass { - private PacketHeadOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PacketHeadOrBuilder extends - // @@protoc_insertion_point(interface_extends:PacketHead) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 clientSequenceId = 3;</code> - * @return The clientSequenceId. - */ - int getClientSequenceId(); - - /** - * <code>uint64 timestamp = 6;</code> - * @return The timestamp. - */ - long getTimestamp(); - } - /** - * Protobuf type {@code PacketHead} - */ - public static final class PacketHead extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PacketHead) - PacketHeadOrBuilder { - private static final long serialVersionUID = 0L; - // Use PacketHead.newBuilder() to construct. - private PacketHead(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PacketHead() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PacketHead(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PacketHead( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 24: { - - clientSequenceId_ = input.readUInt32(); - break; - } - case 48: { - - timestamp_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PacketHeadOuterClass.internal_static_PacketHead_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PacketHeadOuterClass.internal_static_PacketHead_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead.class, emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead.Builder.class); - } - - public static final int CLIENTSEQUENCEID_FIELD_NUMBER = 3; - private int clientSequenceId_; - /** - * <code>uint32 clientSequenceId = 3;</code> - * @return The clientSequenceId. - */ - @java.lang.Override - public int getClientSequenceId() { - return clientSequenceId_; - } - - public static final int TIMESTAMP_FIELD_NUMBER = 6; - private long timestamp_; - /** - * <code>uint64 timestamp = 6;</code> - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (clientSequenceId_ != 0) { - output.writeUInt32(3, clientSequenceId_); - } - if (timestamp_ != 0L) { - output.writeUInt64(6, timestamp_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (clientSequenceId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, clientSequenceId_); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(6, timestamp_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead other = (emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead) obj; - - if (getClientSequenceId() - != other.getClientSequenceId()) return false; - if (getTimestamp() - != other.getTimestamp()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLIENTSEQUENCEID_FIELD_NUMBER; - hash = (53 * hash) + getClientSequenceId(); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PacketHead} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PacketHead) - emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHeadOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PacketHeadOuterClass.internal_static_PacketHead_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PacketHeadOuterClass.internal_static_PacketHead_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead.class, emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - clientSequenceId_ = 0; - - timestamp_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PacketHeadOuterClass.internal_static_PacketHead_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead build() { - emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead buildPartial() { - emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead result = new emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead(this); - result.clientSequenceId_ = clientSequenceId_; - result.timestamp_ = timestamp_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead) { - return mergeFrom((emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead other) { - if (other == emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead.getDefaultInstance()) return this; - if (other.getClientSequenceId() != 0) { - setClientSequenceId(other.getClientSequenceId()); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int clientSequenceId_ ; - /** - * <code>uint32 clientSequenceId = 3;</code> - * @return The clientSequenceId. - */ - @java.lang.Override - public int getClientSequenceId() { - return clientSequenceId_; - } - /** - * <code>uint32 clientSequenceId = 3;</code> - * @param value The clientSequenceId to set. - * @return This builder for chaining. - */ - public Builder setClientSequenceId(int value) { - - clientSequenceId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 clientSequenceId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearClientSequenceId() { - - clientSequenceId_ = 0; - onChanged(); - return this; - } - - private long timestamp_ ; - /** - * <code>uint64 timestamp = 6;</code> - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - /** - * <code>uint64 timestamp = 6;</code> - * @param value The timestamp to set. - * @return This builder for chaining. - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 timestamp = 6;</code> - * @return This builder for chaining. - */ - public Builder clearTimestamp() { - - timestamp_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PacketHead) - } - - // @@protoc_insertion_point(class_scope:PacketHead) - private static final emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead(); - } - - public static emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PacketHead> - PARSER = new com.google.protobuf.AbstractParser<PacketHead>() { - @java.lang.Override - public PacketHead parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PacketHead(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PacketHead> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PacketHead> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PacketHead_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PacketHead_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020PacketHead.proto\"9\n\nPacketHead\022\030\n\020clie" + - "ntSequenceId\030\003 \001(\r\022\021\n\ttimestamp\030\006 \001(\004B\033\n" + - "\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_PacketHead_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PacketHead_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PacketHead_descriptor, - new java.lang.String[] { "ClientSequenceId", "Timestamp", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PingReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PingReqOuterClass.java deleted file mode 100644 index 14f4a9dad..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PingReqOuterClass.java +++ /dev/null @@ -1,606 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PingReq.proto - -package emu.grasscutter.net.proto; - -public final class PingReqOuterClass { - private PingReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PingReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:PingReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 seq = 1;</code> - * @return The seq. - */ - int getSeq(); - - /** - * <code>int32 clientTime = 2;</code> - * @return The clientTime. - */ - int getClientTime(); - } - /** - * Protobuf type {@code PingReq} - */ - public static final class PingReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PingReq) - PingReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use PingReq.newBuilder() to construct. - private PingReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PingReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PingReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PingReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - seq_ = input.readInt32(); - break; - } - case 16: { - - clientTime_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PingReqOuterClass.internal_static_PingReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PingReqOuterClass.internal_static_PingReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PingReqOuterClass.PingReq.class, emu.grasscutter.net.proto.PingReqOuterClass.PingReq.Builder.class); - } - - public static final int SEQ_FIELD_NUMBER = 1; - private int seq_; - /** - * <code>int32 seq = 1;</code> - * @return The seq. - */ - @java.lang.Override - public int getSeq() { - return seq_; - } - - public static final int CLIENTTIME_FIELD_NUMBER = 2; - private int clientTime_; - /** - * <code>int32 clientTime = 2;</code> - * @return The clientTime. - */ - @java.lang.Override - public int getClientTime() { - return clientTime_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (seq_ != 0) { - output.writeInt32(1, seq_); - } - if (clientTime_ != 0) { - output.writeInt32(2, clientTime_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (seq_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, seq_); - } - if (clientTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, clientTime_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PingReqOuterClass.PingReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PingReqOuterClass.PingReq other = (emu.grasscutter.net.proto.PingReqOuterClass.PingReq) obj; - - if (getSeq() - != other.getSeq()) return false; - if (getClientTime() - != other.getClientTime()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SEQ_FIELD_NUMBER; - hash = (53 * hash) + getSeq(); - hash = (37 * hash) + CLIENTTIME_FIELD_NUMBER; - hash = (53 * hash) + getClientTime(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PingReqOuterClass.PingReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PingReqOuterClass.PingReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PingReqOuterClass.PingReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PingReqOuterClass.PingReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PingReqOuterClass.PingReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PingReqOuterClass.PingReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PingReqOuterClass.PingReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PingReqOuterClass.PingReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PingReqOuterClass.PingReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PingReqOuterClass.PingReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PingReqOuterClass.PingReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PingReqOuterClass.PingReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PingReqOuterClass.PingReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PingReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PingReq) - emu.grasscutter.net.proto.PingReqOuterClass.PingReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PingReqOuterClass.internal_static_PingReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PingReqOuterClass.internal_static_PingReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PingReqOuterClass.PingReq.class, emu.grasscutter.net.proto.PingReqOuterClass.PingReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PingReqOuterClass.PingReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - seq_ = 0; - - clientTime_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PingReqOuterClass.internal_static_PingReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PingReqOuterClass.PingReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PingReqOuterClass.PingReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PingReqOuterClass.PingReq build() { - emu.grasscutter.net.proto.PingReqOuterClass.PingReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PingReqOuterClass.PingReq buildPartial() { - emu.grasscutter.net.proto.PingReqOuterClass.PingReq result = new emu.grasscutter.net.proto.PingReqOuterClass.PingReq(this); - result.seq_ = seq_; - result.clientTime_ = clientTime_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PingReqOuterClass.PingReq) { - return mergeFrom((emu.grasscutter.net.proto.PingReqOuterClass.PingReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PingReqOuterClass.PingReq other) { - if (other == emu.grasscutter.net.proto.PingReqOuterClass.PingReq.getDefaultInstance()) return this; - if (other.getSeq() != 0) { - setSeq(other.getSeq()); - } - if (other.getClientTime() != 0) { - setClientTime(other.getClientTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PingReqOuterClass.PingReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PingReqOuterClass.PingReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int seq_ ; - /** - * <code>int32 seq = 1;</code> - * @return The seq. - */ - @java.lang.Override - public int getSeq() { - return seq_; - } - /** - * <code>int32 seq = 1;</code> - * @param value The seq to set. - * @return This builder for chaining. - */ - public Builder setSeq(int value) { - - seq_ = value; - onChanged(); - return this; - } - /** - * <code>int32 seq = 1;</code> - * @return This builder for chaining. - */ - public Builder clearSeq() { - - seq_ = 0; - onChanged(); - return this; - } - - private int clientTime_ ; - /** - * <code>int32 clientTime = 2;</code> - * @return The clientTime. - */ - @java.lang.Override - public int getClientTime() { - return clientTime_; - } - /** - * <code>int32 clientTime = 2;</code> - * @param value The clientTime to set. - * @return This builder for chaining. - */ - public Builder setClientTime(int value) { - - clientTime_ = value; - onChanged(); - return this; - } - /** - * <code>int32 clientTime = 2;</code> - * @return This builder for chaining. - */ - public Builder clearClientTime() { - - clientTime_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PingReq) - } - - // @@protoc_insertion_point(class_scope:PingReq) - private static final emu.grasscutter.net.proto.PingReqOuterClass.PingReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PingReqOuterClass.PingReq(); - } - - public static emu.grasscutter.net.proto.PingReqOuterClass.PingReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PingReq> - PARSER = new com.google.protobuf.AbstractParser<PingReq>() { - @java.lang.Override - public PingReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PingReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PingReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PingReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PingReqOuterClass.PingReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PingReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PingReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\rPingReq.proto\"*\n\007PingReq\022\013\n\003seq\030\001 \001(\005\022" + - "\022\n\nclientTime\030\002 \001(\005B\033\n\031emu.grasscutter.n" + - "et.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_PingReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PingReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PingReq_descriptor, - new java.lang.String[] { "Seq", "ClientTime", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PingRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PingRspOuterClass.java deleted file mode 100644 index db84e7830..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PingRspOuterClass.java +++ /dev/null @@ -1,676 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PingRsp.proto - -package emu.grasscutter.net.proto; - -public final class PingRspOuterClass { - private PingRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PingRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:PingRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint32 seq = 2;</code> - * @return The seq. - */ - int getSeq(); - - /** - * <code>uint32 clientTime = 3;</code> - * @return The clientTime. - */ - int getClientTime(); - } - /** - * Protobuf type {@code PingRsp} - */ - public static final class PingRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PingRsp) - PingRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use PingRsp.newBuilder() to construct. - private PingRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PingRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PingRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PingRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - seq_ = input.readUInt32(); - break; - } - case 24: { - - clientTime_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PingRspOuterClass.internal_static_PingRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PingRspOuterClass.internal_static_PingRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PingRspOuterClass.PingRsp.class, emu.grasscutter.net.proto.PingRspOuterClass.PingRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int SEQ_FIELD_NUMBER = 2; - private int seq_; - /** - * <code>uint32 seq = 2;</code> - * @return The seq. - */ - @java.lang.Override - public int getSeq() { - return seq_; - } - - public static final int CLIENTTIME_FIELD_NUMBER = 3; - private int clientTime_; - /** - * <code>uint32 clientTime = 3;</code> - * @return The clientTime. - */ - @java.lang.Override - public int getClientTime() { - return clientTime_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (seq_ != 0) { - output.writeUInt32(2, seq_); - } - if (clientTime_ != 0) { - output.writeUInt32(3, clientTime_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (seq_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, seq_); - } - if (clientTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, clientTime_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PingRspOuterClass.PingRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PingRspOuterClass.PingRsp other = (emu.grasscutter.net.proto.PingRspOuterClass.PingRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getSeq() - != other.getSeq()) return false; - if (getClientTime() - != other.getClientTime()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + SEQ_FIELD_NUMBER; - hash = (53 * hash) + getSeq(); - hash = (37 * hash) + CLIENTTIME_FIELD_NUMBER; - hash = (53 * hash) + getClientTime(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PingRspOuterClass.PingRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PingRspOuterClass.PingRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PingRspOuterClass.PingRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PingRspOuterClass.PingRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PingRspOuterClass.PingRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PingRspOuterClass.PingRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PingRspOuterClass.PingRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PingRspOuterClass.PingRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PingRspOuterClass.PingRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PingRspOuterClass.PingRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PingRspOuterClass.PingRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PingRspOuterClass.PingRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PingRspOuterClass.PingRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PingRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PingRsp) - emu.grasscutter.net.proto.PingRspOuterClass.PingRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PingRspOuterClass.internal_static_PingRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PingRspOuterClass.internal_static_PingRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PingRspOuterClass.PingRsp.class, emu.grasscutter.net.proto.PingRspOuterClass.PingRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PingRspOuterClass.PingRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - seq_ = 0; - - clientTime_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PingRspOuterClass.internal_static_PingRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PingRspOuterClass.PingRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PingRspOuterClass.PingRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PingRspOuterClass.PingRsp build() { - emu.grasscutter.net.proto.PingRspOuterClass.PingRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PingRspOuterClass.PingRsp buildPartial() { - emu.grasscutter.net.proto.PingRspOuterClass.PingRsp result = new emu.grasscutter.net.proto.PingRspOuterClass.PingRsp(this); - result.retcode_ = retcode_; - result.seq_ = seq_; - result.clientTime_ = clientTime_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PingRspOuterClass.PingRsp) { - return mergeFrom((emu.grasscutter.net.proto.PingRspOuterClass.PingRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PingRspOuterClass.PingRsp other) { - if (other == emu.grasscutter.net.proto.PingRspOuterClass.PingRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getSeq() != 0) { - setSeq(other.getSeq()); - } - if (other.getClientTime() != 0) { - setClientTime(other.getClientTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PingRspOuterClass.PingRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PingRspOuterClass.PingRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int seq_ ; - /** - * <code>uint32 seq = 2;</code> - * @return The seq. - */ - @java.lang.Override - public int getSeq() { - return seq_; - } - /** - * <code>uint32 seq = 2;</code> - * @param value The seq to set. - * @return This builder for chaining. - */ - public Builder setSeq(int value) { - - seq_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 seq = 2;</code> - * @return This builder for chaining. - */ - public Builder clearSeq() { - - seq_ = 0; - onChanged(); - return this; - } - - private int clientTime_ ; - /** - * <code>uint32 clientTime = 3;</code> - * @return The clientTime. - */ - @java.lang.Override - public int getClientTime() { - return clientTime_; - } - /** - * <code>uint32 clientTime = 3;</code> - * @param value The clientTime to set. - * @return This builder for chaining. - */ - public Builder setClientTime(int value) { - - clientTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 clientTime = 3;</code> - * @return This builder for chaining. - */ - public Builder clearClientTime() { - - clientTime_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PingRsp) - } - - // @@protoc_insertion_point(class_scope:PingRsp) - private static final emu.grasscutter.net.proto.PingRspOuterClass.PingRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PingRspOuterClass.PingRsp(); - } - - public static emu.grasscutter.net.proto.PingRspOuterClass.PingRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PingRsp> - PARSER = new com.google.protobuf.AbstractParser<PingRsp>() { - @java.lang.Override - public PingRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PingRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PingRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PingRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PingRspOuterClass.PingRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PingRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PingRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\rPingRsp.proto\";\n\007PingRsp\022\017\n\007retcode\030\001 " + - "\001(\005\022\013\n\003seq\030\002 \001(\r\022\022\n\nclientTime\030\003 \001(\rB\033\n\031" + - "emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_PingRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PingRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PingRsp_descriptor, - new java.lang.String[] { "Retcode", "Seq", "ClientTime", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PlatformInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PlatformInfoOuterClass.java deleted file mode 100644 index b9191f0dc..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PlatformInfoOuterClass.java +++ /dev/null @@ -1,2264 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlatformInfo.proto - -package emu.grasscutter.net.proto; - -public final class PlatformInfoOuterClass { - private PlatformInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlatformInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlatformInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 routeId = 1;</code> - * @return The routeId. - */ - int getRouteId(); - - /** - * <code>int32 startIndex = 2;</code> - * @return The startIndex. - */ - int getStartIndex(); - - /** - * <code>uint32 startRouteTime = 3;</code> - * @return The startRouteTime. - */ - int getStartRouteTime(); - - /** - * <code>uint32 startSceneTime = 4;</code> - * @return The startSceneTime. - */ - int getStartSceneTime(); - - /** - * <code>.Vector startPos = 7;</code> - * @return Whether the startPos field is set. - */ - boolean hasStartPos(); - /** - * <code>.Vector startPos = 7;</code> - * @return The startPos. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getStartPos(); - /** - * <code>.Vector startPos = 7;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getStartPosOrBuilder(); - - /** - * <code>bool isStarted = 8;</code> - * @return The isStarted. - */ - boolean getIsStarted(); - - /** - * <code>.MathQuaternion startRot = 9;</code> - * @return Whether the startRot field is set. - */ - boolean hasStartRot(); - /** - * <code>.MathQuaternion startRot = 9;</code> - * @return The startRot. - */ - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion getStartRot(); - /** - * <code>.MathQuaternion startRot = 9;</code> - */ - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder getStartRotOrBuilder(); - - /** - * <code>uint32 stopSceneTime = 10;</code> - * @return The stopSceneTime. - */ - int getStopSceneTime(); - - /** - * <code>.Vector posOffset = 11;</code> - * @return Whether the posOffset field is set. - */ - boolean hasPosOffset(); - /** - * <code>.Vector posOffset = 11;</code> - * @return The posOffset. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getPosOffset(); - /** - * <code>.Vector posOffset = 11;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOffsetOrBuilder(); - - /** - * <code>.MathQuaternion rotOffset = 12;</code> - * @return Whether the rotOffset field is set. - */ - boolean hasRotOffset(); - /** - * <code>.MathQuaternion rotOffset = 12;</code> - * @return The rotOffset. - */ - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion getRotOffset(); - /** - * <code>.MathQuaternion rotOffset = 12;</code> - */ - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder getRotOffsetOrBuilder(); - - /** - * <code>.MovingPlatformType movingPlatformType = 13;</code> - * @return Whether the movingPlatformType field is set. - */ - boolean hasMovingPlatformType(); - /** - * <code>.MovingPlatformType movingPlatformType = 13;</code> - * @return The movingPlatformType. - */ - emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType getMovingPlatformType(); - /** - * <code>.MovingPlatformType movingPlatformType = 13;</code> - */ - emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformTypeOrBuilder getMovingPlatformTypeOrBuilder(); - - /** - * <code>bool isActive = 14;</code> - * @return The isActive. - */ - boolean getIsActive(); - - /** - * <code>.Route route = 15;</code> - * @return Whether the route field is set. - */ - boolean hasRoute(); - /** - * <code>.Route route = 15;</code> - * @return The route. - */ - emu.grasscutter.net.proto.RouteOuterClass.Route getRoute(); - /** - * <code>.Route route = 15;</code> - */ - emu.grasscutter.net.proto.RouteOuterClass.RouteOrBuilder getRouteOrBuilder(); - - /** - * <code>uint32 pointId = 16;</code> - * @return The pointId. - */ - int getPointId(); - } - /** - * Protobuf type {@code PlatformInfo} - */ - public static final class PlatformInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlatformInfo) - PlatformInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlatformInfo.newBuilder() to construct. - private PlatformInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PlatformInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlatformInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlatformInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - routeId_ = input.readUInt32(); - break; - } - case 16: { - - startIndex_ = input.readInt32(); - break; - } - case 24: { - - startRouteTime_ = input.readUInt32(); - break; - } - case 32: { - - startSceneTime_ = input.readUInt32(); - break; - } - case 58: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (startPos_ != null) { - subBuilder = startPos_.toBuilder(); - } - startPos_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startPos_); - startPos_ = subBuilder.buildPartial(); - } - - break; - } - case 64: { - - isStarted_ = input.readBool(); - break; - } - case 74: { - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder subBuilder = null; - if (startRot_ != null) { - subBuilder = startRot_.toBuilder(); - } - startRot_ = input.readMessage(emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startRot_); - startRot_ = subBuilder.buildPartial(); - } - - break; - } - case 80: { - - stopSceneTime_ = input.readUInt32(); - break; - } - case 90: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (posOffset_ != null) { - subBuilder = posOffset_.toBuilder(); - } - posOffset_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(posOffset_); - posOffset_ = subBuilder.buildPartial(); - } - - break; - } - case 98: { - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder subBuilder = null; - if (rotOffset_ != null) { - subBuilder = rotOffset_.toBuilder(); - } - rotOffset_ = input.readMessage(emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rotOffset_); - rotOffset_ = subBuilder.buildPartial(); - } - - break; - } - case 106: { - emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType.Builder subBuilder = null; - if (movingPlatformType_ != null) { - subBuilder = movingPlatformType_.toBuilder(); - } - movingPlatformType_ = input.readMessage(emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(movingPlatformType_); - movingPlatformType_ = subBuilder.buildPartial(); - } - - break; - } - case 112: { - - isActive_ = input.readBool(); - break; - } - case 122: { - emu.grasscutter.net.proto.RouteOuterClass.Route.Builder subBuilder = null; - if (route_ != null) { - subBuilder = route_.toBuilder(); - } - route_ = input.readMessage(emu.grasscutter.net.proto.RouteOuterClass.Route.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(route_); - route_ = subBuilder.buildPartial(); - } - - break; - } - case 128: { - - pointId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlatformInfoOuterClass.internal_static_PlatformInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlatformInfoOuterClass.internal_static_PlatformInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo.class, emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo.Builder.class); - } - - public static final int ROUTEID_FIELD_NUMBER = 1; - private int routeId_; - /** - * <code>uint32 routeId = 1;</code> - * @return The routeId. - */ - @java.lang.Override - public int getRouteId() { - return routeId_; - } - - public static final int STARTINDEX_FIELD_NUMBER = 2; - private int startIndex_; - /** - * <code>int32 startIndex = 2;</code> - * @return The startIndex. - */ - @java.lang.Override - public int getStartIndex() { - return startIndex_; - } - - public static final int STARTROUTETIME_FIELD_NUMBER = 3; - private int startRouteTime_; - /** - * <code>uint32 startRouteTime = 3;</code> - * @return The startRouteTime. - */ - @java.lang.Override - public int getStartRouteTime() { - return startRouteTime_; - } - - public static final int STARTSCENETIME_FIELD_NUMBER = 4; - private int startSceneTime_; - /** - * <code>uint32 startSceneTime = 4;</code> - * @return The startSceneTime. - */ - @java.lang.Override - public int getStartSceneTime() { - return startSceneTime_; - } - - public static final int STARTPOS_FIELD_NUMBER = 7; - private emu.grasscutter.net.proto.VectorOuterClass.Vector startPos_; - /** - * <code>.Vector startPos = 7;</code> - * @return Whether the startPos field is set. - */ - @java.lang.Override - public boolean hasStartPos() { - return startPos_ != null; - } - /** - * <code>.Vector startPos = 7;</code> - * @return The startPos. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getStartPos() { - return startPos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : startPos_; - } - /** - * <code>.Vector startPos = 7;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getStartPosOrBuilder() { - return getStartPos(); - } - - public static final int ISSTARTED_FIELD_NUMBER = 8; - private boolean isStarted_; - /** - * <code>bool isStarted = 8;</code> - * @return The isStarted. - */ - @java.lang.Override - public boolean getIsStarted() { - return isStarted_; - } - - public static final int STARTROT_FIELD_NUMBER = 9; - private emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion startRot_; - /** - * <code>.MathQuaternion startRot = 9;</code> - * @return Whether the startRot field is set. - */ - @java.lang.Override - public boolean hasStartRot() { - return startRot_ != null; - } - /** - * <code>.MathQuaternion startRot = 9;</code> - * @return The startRot. - */ - @java.lang.Override - public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion getStartRot() { - return startRot_ == null ? emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.getDefaultInstance() : startRot_; - } - /** - * <code>.MathQuaternion startRot = 9;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder getStartRotOrBuilder() { - return getStartRot(); - } - - public static final int STOPSCENETIME_FIELD_NUMBER = 10; - private int stopSceneTime_; - /** - * <code>uint32 stopSceneTime = 10;</code> - * @return The stopSceneTime. - */ - @java.lang.Override - public int getStopSceneTime() { - return stopSceneTime_; - } - - public static final int POSOFFSET_FIELD_NUMBER = 11; - private emu.grasscutter.net.proto.VectorOuterClass.Vector posOffset_; - /** - * <code>.Vector posOffset = 11;</code> - * @return Whether the posOffset field is set. - */ - @java.lang.Override - public boolean hasPosOffset() { - return posOffset_ != null; - } - /** - * <code>.Vector posOffset = 11;</code> - * @return The posOffset. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getPosOffset() { - return posOffset_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : posOffset_; - } - /** - * <code>.Vector posOffset = 11;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOffsetOrBuilder() { - return getPosOffset(); - } - - public static final int ROTOFFSET_FIELD_NUMBER = 12; - private emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion rotOffset_; - /** - * <code>.MathQuaternion rotOffset = 12;</code> - * @return Whether the rotOffset field is set. - */ - @java.lang.Override - public boolean hasRotOffset() { - return rotOffset_ != null; - } - /** - * <code>.MathQuaternion rotOffset = 12;</code> - * @return The rotOffset. - */ - @java.lang.Override - public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion getRotOffset() { - return rotOffset_ == null ? emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.getDefaultInstance() : rotOffset_; - } - /** - * <code>.MathQuaternion rotOffset = 12;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder getRotOffsetOrBuilder() { - return getRotOffset(); - } - - public static final int MOVINGPLATFORMTYPE_FIELD_NUMBER = 13; - private emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType movingPlatformType_; - /** - * <code>.MovingPlatformType movingPlatformType = 13;</code> - * @return Whether the movingPlatformType field is set. - */ - @java.lang.Override - public boolean hasMovingPlatformType() { - return movingPlatformType_ != null; - } - /** - * <code>.MovingPlatformType movingPlatformType = 13;</code> - * @return The movingPlatformType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType getMovingPlatformType() { - return movingPlatformType_ == null ? emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType.getDefaultInstance() : movingPlatformType_; - } - /** - * <code>.MovingPlatformType movingPlatformType = 13;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformTypeOrBuilder getMovingPlatformTypeOrBuilder() { - return getMovingPlatformType(); - } - - public static final int ISACTIVE_FIELD_NUMBER = 14; - private boolean isActive_; - /** - * <code>bool isActive = 14;</code> - * @return The isActive. - */ - @java.lang.Override - public boolean getIsActive() { - return isActive_; - } - - public static final int ROUTE_FIELD_NUMBER = 15; - private emu.grasscutter.net.proto.RouteOuterClass.Route route_; - /** - * <code>.Route route = 15;</code> - * @return Whether the route field is set. - */ - @java.lang.Override - public boolean hasRoute() { - return route_ != null; - } - /** - * <code>.Route route = 15;</code> - * @return The route. - */ - @java.lang.Override - public emu.grasscutter.net.proto.RouteOuterClass.Route getRoute() { - return route_ == null ? emu.grasscutter.net.proto.RouteOuterClass.Route.getDefaultInstance() : route_; - } - /** - * <code>.Route route = 15;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.RouteOuterClass.RouteOrBuilder getRouteOrBuilder() { - return getRoute(); - } - - public static final int POINTID_FIELD_NUMBER = 16; - private int pointId_; - /** - * <code>uint32 pointId = 16;</code> - * @return The pointId. - */ - @java.lang.Override - public int getPointId() { - return pointId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (routeId_ != 0) { - output.writeUInt32(1, routeId_); - } - if (startIndex_ != 0) { - output.writeInt32(2, startIndex_); - } - if (startRouteTime_ != 0) { - output.writeUInt32(3, startRouteTime_); - } - if (startSceneTime_ != 0) { - output.writeUInt32(4, startSceneTime_); - } - if (startPos_ != null) { - output.writeMessage(7, getStartPos()); - } - if (isStarted_ != false) { - output.writeBool(8, isStarted_); - } - if (startRot_ != null) { - output.writeMessage(9, getStartRot()); - } - if (stopSceneTime_ != 0) { - output.writeUInt32(10, stopSceneTime_); - } - if (posOffset_ != null) { - output.writeMessage(11, getPosOffset()); - } - if (rotOffset_ != null) { - output.writeMessage(12, getRotOffset()); - } - if (movingPlatformType_ != null) { - output.writeMessage(13, getMovingPlatformType()); - } - if (isActive_ != false) { - output.writeBool(14, isActive_); - } - if (route_ != null) { - output.writeMessage(15, getRoute()); - } - if (pointId_ != 0) { - output.writeUInt32(16, pointId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (routeId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, routeId_); - } - if (startIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, startIndex_); - } - if (startRouteTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, startRouteTime_); - } - if (startSceneTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, startSceneTime_); - } - if (startPos_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getStartPos()); - } - if (isStarted_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, isStarted_); - } - if (startRot_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getStartRot()); - } - if (stopSceneTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(10, stopSceneTime_); - } - if (posOffset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getPosOffset()); - } - if (rotOffset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getRotOffset()); - } - if (movingPlatformType_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getMovingPlatformType()); - } - if (isActive_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(14, isActive_); - } - if (route_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getRoute()); - } - if (pointId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(16, pointId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo other = (emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo) obj; - - if (getRouteId() - != other.getRouteId()) return false; - if (getStartIndex() - != other.getStartIndex()) return false; - if (getStartRouteTime() - != other.getStartRouteTime()) return false; - if (getStartSceneTime() - != other.getStartSceneTime()) return false; - if (hasStartPos() != other.hasStartPos()) return false; - if (hasStartPos()) { - if (!getStartPos() - .equals(other.getStartPos())) return false; - } - if (getIsStarted() - != other.getIsStarted()) return false; - if (hasStartRot() != other.hasStartRot()) return false; - if (hasStartRot()) { - if (!getStartRot() - .equals(other.getStartRot())) return false; - } - if (getStopSceneTime() - != other.getStopSceneTime()) return false; - if (hasPosOffset() != other.hasPosOffset()) return false; - if (hasPosOffset()) { - if (!getPosOffset() - .equals(other.getPosOffset())) return false; - } - if (hasRotOffset() != other.hasRotOffset()) return false; - if (hasRotOffset()) { - if (!getRotOffset() - .equals(other.getRotOffset())) return false; - } - if (hasMovingPlatformType() != other.hasMovingPlatformType()) return false; - if (hasMovingPlatformType()) { - if (!getMovingPlatformType() - .equals(other.getMovingPlatformType())) return false; - } - if (getIsActive() - != other.getIsActive()) return false; - if (hasRoute() != other.hasRoute()) return false; - if (hasRoute()) { - if (!getRoute() - .equals(other.getRoute())) return false; - } - if (getPointId() - != other.getPointId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ROUTEID_FIELD_NUMBER; - hash = (53 * hash) + getRouteId(); - hash = (37 * hash) + STARTINDEX_FIELD_NUMBER; - hash = (53 * hash) + getStartIndex(); - hash = (37 * hash) + STARTROUTETIME_FIELD_NUMBER; - hash = (53 * hash) + getStartRouteTime(); - hash = (37 * hash) + STARTSCENETIME_FIELD_NUMBER; - hash = (53 * hash) + getStartSceneTime(); - if (hasStartPos()) { - hash = (37 * hash) + STARTPOS_FIELD_NUMBER; - hash = (53 * hash) + getStartPos().hashCode(); - } - hash = (37 * hash) + ISSTARTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsStarted()); - if (hasStartRot()) { - hash = (37 * hash) + STARTROT_FIELD_NUMBER; - hash = (53 * hash) + getStartRot().hashCode(); - } - hash = (37 * hash) + STOPSCENETIME_FIELD_NUMBER; - hash = (53 * hash) + getStopSceneTime(); - if (hasPosOffset()) { - hash = (37 * hash) + POSOFFSET_FIELD_NUMBER; - hash = (53 * hash) + getPosOffset().hashCode(); - } - if (hasRotOffset()) { - hash = (37 * hash) + ROTOFFSET_FIELD_NUMBER; - hash = (53 * hash) + getRotOffset().hashCode(); - } - if (hasMovingPlatformType()) { - hash = (37 * hash) + MOVINGPLATFORMTYPE_FIELD_NUMBER; - hash = (53 * hash) + getMovingPlatformType().hashCode(); - } - hash = (37 * hash) + ISACTIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsActive()); - if (hasRoute()) { - hash = (37 * hash) + ROUTE_FIELD_NUMBER; - hash = (53 * hash) + getRoute().hashCode(); - } - hash = (37 * hash) + POINTID_FIELD_NUMBER; - hash = (53 * hash) + getPointId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PlatformInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PlatformInfo) - emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlatformInfoOuterClass.internal_static_PlatformInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlatformInfoOuterClass.internal_static_PlatformInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo.class, emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - routeId_ = 0; - - startIndex_ = 0; - - startRouteTime_ = 0; - - startSceneTime_ = 0; - - if (startPosBuilder_ == null) { - startPos_ = null; - } else { - startPos_ = null; - startPosBuilder_ = null; - } - isStarted_ = false; - - if (startRotBuilder_ == null) { - startRot_ = null; - } else { - startRot_ = null; - startRotBuilder_ = null; - } - stopSceneTime_ = 0; - - if (posOffsetBuilder_ == null) { - posOffset_ = null; - } else { - posOffset_ = null; - posOffsetBuilder_ = null; - } - if (rotOffsetBuilder_ == null) { - rotOffset_ = null; - } else { - rotOffset_ = null; - rotOffsetBuilder_ = null; - } - if (movingPlatformTypeBuilder_ == null) { - movingPlatformType_ = null; - } else { - movingPlatformType_ = null; - movingPlatformTypeBuilder_ = null; - } - isActive_ = false; - - if (routeBuilder_ == null) { - route_ = null; - } else { - route_ = null; - routeBuilder_ = null; - } - pointId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlatformInfoOuterClass.internal_static_PlatformInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo build() { - emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo buildPartial() { - emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo result = new emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo(this); - result.routeId_ = routeId_; - result.startIndex_ = startIndex_; - result.startRouteTime_ = startRouteTime_; - result.startSceneTime_ = startSceneTime_; - if (startPosBuilder_ == null) { - result.startPos_ = startPos_; - } else { - result.startPos_ = startPosBuilder_.build(); - } - result.isStarted_ = isStarted_; - if (startRotBuilder_ == null) { - result.startRot_ = startRot_; - } else { - result.startRot_ = startRotBuilder_.build(); - } - result.stopSceneTime_ = stopSceneTime_; - if (posOffsetBuilder_ == null) { - result.posOffset_ = posOffset_; - } else { - result.posOffset_ = posOffsetBuilder_.build(); - } - if (rotOffsetBuilder_ == null) { - result.rotOffset_ = rotOffset_; - } else { - result.rotOffset_ = rotOffsetBuilder_.build(); - } - if (movingPlatformTypeBuilder_ == null) { - result.movingPlatformType_ = movingPlatformType_; - } else { - result.movingPlatformType_ = movingPlatformTypeBuilder_.build(); - } - result.isActive_ = isActive_; - if (routeBuilder_ == null) { - result.route_ = route_; - } else { - result.route_ = routeBuilder_.build(); - } - result.pointId_ = pointId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo) { - return mergeFrom((emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo other) { - if (other == emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo.getDefaultInstance()) return this; - if (other.getRouteId() != 0) { - setRouteId(other.getRouteId()); - } - if (other.getStartIndex() != 0) { - setStartIndex(other.getStartIndex()); - } - if (other.getStartRouteTime() != 0) { - setStartRouteTime(other.getStartRouteTime()); - } - if (other.getStartSceneTime() != 0) { - setStartSceneTime(other.getStartSceneTime()); - } - if (other.hasStartPos()) { - mergeStartPos(other.getStartPos()); - } - if (other.getIsStarted() != false) { - setIsStarted(other.getIsStarted()); - } - if (other.hasStartRot()) { - mergeStartRot(other.getStartRot()); - } - if (other.getStopSceneTime() != 0) { - setStopSceneTime(other.getStopSceneTime()); - } - if (other.hasPosOffset()) { - mergePosOffset(other.getPosOffset()); - } - if (other.hasRotOffset()) { - mergeRotOffset(other.getRotOffset()); - } - if (other.hasMovingPlatformType()) { - mergeMovingPlatformType(other.getMovingPlatformType()); - } - if (other.getIsActive() != false) { - setIsActive(other.getIsActive()); - } - if (other.hasRoute()) { - mergeRoute(other.getRoute()); - } - if (other.getPointId() != 0) { - setPointId(other.getPointId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int routeId_ ; - /** - * <code>uint32 routeId = 1;</code> - * @return The routeId. - */ - @java.lang.Override - public int getRouteId() { - return routeId_; - } - /** - * <code>uint32 routeId = 1;</code> - * @param value The routeId to set. - * @return This builder for chaining. - */ - public Builder setRouteId(int value) { - - routeId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 routeId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRouteId() { - - routeId_ = 0; - onChanged(); - return this; - } - - private int startIndex_ ; - /** - * <code>int32 startIndex = 2;</code> - * @return The startIndex. - */ - @java.lang.Override - public int getStartIndex() { - return startIndex_; - } - /** - * <code>int32 startIndex = 2;</code> - * @param value The startIndex to set. - * @return This builder for chaining. - */ - public Builder setStartIndex(int value) { - - startIndex_ = value; - onChanged(); - return this; - } - /** - * <code>int32 startIndex = 2;</code> - * @return This builder for chaining. - */ - public Builder clearStartIndex() { - - startIndex_ = 0; - onChanged(); - return this; - } - - private int startRouteTime_ ; - /** - * <code>uint32 startRouteTime = 3;</code> - * @return The startRouteTime. - */ - @java.lang.Override - public int getStartRouteTime() { - return startRouteTime_; - } - /** - * <code>uint32 startRouteTime = 3;</code> - * @param value The startRouteTime to set. - * @return This builder for chaining. - */ - public Builder setStartRouteTime(int value) { - - startRouteTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 startRouteTime = 3;</code> - * @return This builder for chaining. - */ - public Builder clearStartRouteTime() { - - startRouteTime_ = 0; - onChanged(); - return this; - } - - private int startSceneTime_ ; - /** - * <code>uint32 startSceneTime = 4;</code> - * @return The startSceneTime. - */ - @java.lang.Override - public int getStartSceneTime() { - return startSceneTime_; - } - /** - * <code>uint32 startSceneTime = 4;</code> - * @param value The startSceneTime to set. - * @return This builder for chaining. - */ - public Builder setStartSceneTime(int value) { - - startSceneTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 startSceneTime = 4;</code> - * @return This builder for chaining. - */ - public Builder clearStartSceneTime() { - - startSceneTime_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.VectorOuterClass.Vector startPos_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> startPosBuilder_; - /** - * <code>.Vector startPos = 7;</code> - * @return Whether the startPos field is set. - */ - public boolean hasStartPos() { - return startPosBuilder_ != null || startPos_ != null; - } - /** - * <code>.Vector startPos = 7;</code> - * @return The startPos. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getStartPos() { - if (startPosBuilder_ == null) { - return startPos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : startPos_; - } else { - return startPosBuilder_.getMessage(); - } - } - /** - * <code>.Vector startPos = 7;</code> - */ - public Builder setStartPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (startPosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startPos_ = value; - onChanged(); - } else { - startPosBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Vector startPos = 7;</code> - */ - public Builder setStartPos( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (startPosBuilder_ == null) { - startPos_ = builderForValue.build(); - onChanged(); - } else { - startPosBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Vector startPos = 7;</code> - */ - public Builder mergeStartPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (startPosBuilder_ == null) { - if (startPos_ != null) { - startPos_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(startPos_).mergeFrom(value).buildPartial(); - } else { - startPos_ = value; - } - onChanged(); - } else { - startPosBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Vector startPos = 7;</code> - */ - public Builder clearStartPos() { - if (startPosBuilder_ == null) { - startPos_ = null; - onChanged(); - } else { - startPos_ = null; - startPosBuilder_ = null; - } - - return this; - } - /** - * <code>.Vector startPos = 7;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getStartPosBuilder() { - - onChanged(); - return getStartPosFieldBuilder().getBuilder(); - } - /** - * <code>.Vector startPos = 7;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getStartPosOrBuilder() { - if (startPosBuilder_ != null) { - return startPosBuilder_.getMessageOrBuilder(); - } else { - return startPos_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : startPos_; - } - } - /** - * <code>.Vector startPos = 7;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getStartPosFieldBuilder() { - if (startPosBuilder_ == null) { - startPosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getStartPos(), - getParentForChildren(), - isClean()); - startPos_ = null; - } - return startPosBuilder_; - } - - private boolean isStarted_ ; - /** - * <code>bool isStarted = 8;</code> - * @return The isStarted. - */ - @java.lang.Override - public boolean getIsStarted() { - return isStarted_; - } - /** - * <code>bool isStarted = 8;</code> - * @param value The isStarted to set. - * @return This builder for chaining. - */ - public Builder setIsStarted(boolean value) { - - isStarted_ = value; - onChanged(); - return this; - } - /** - * <code>bool isStarted = 8;</code> - * @return This builder for chaining. - */ - public Builder clearIsStarted() { - - isStarted_ = false; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion startRot_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion, emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder, emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder> startRotBuilder_; - /** - * <code>.MathQuaternion startRot = 9;</code> - * @return Whether the startRot field is set. - */ - public boolean hasStartRot() { - return startRotBuilder_ != null || startRot_ != null; - } - /** - * <code>.MathQuaternion startRot = 9;</code> - * @return The startRot. - */ - public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion getStartRot() { - if (startRotBuilder_ == null) { - return startRot_ == null ? emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.getDefaultInstance() : startRot_; - } else { - return startRotBuilder_.getMessage(); - } - } - /** - * <code>.MathQuaternion startRot = 9;</code> - */ - public Builder setStartRot(emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion value) { - if (startRotBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startRot_ = value; - onChanged(); - } else { - startRotBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.MathQuaternion startRot = 9;</code> - */ - public Builder setStartRot( - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder builderForValue) { - if (startRotBuilder_ == null) { - startRot_ = builderForValue.build(); - onChanged(); - } else { - startRotBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.MathQuaternion startRot = 9;</code> - */ - public Builder mergeStartRot(emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion value) { - if (startRotBuilder_ == null) { - if (startRot_ != null) { - startRot_ = - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.newBuilder(startRot_).mergeFrom(value).buildPartial(); - } else { - startRot_ = value; - } - onChanged(); - } else { - startRotBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.MathQuaternion startRot = 9;</code> - */ - public Builder clearStartRot() { - if (startRotBuilder_ == null) { - startRot_ = null; - onChanged(); - } else { - startRot_ = null; - startRotBuilder_ = null; - } - - return this; - } - /** - * <code>.MathQuaternion startRot = 9;</code> - */ - public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder getStartRotBuilder() { - - onChanged(); - return getStartRotFieldBuilder().getBuilder(); - } - /** - * <code>.MathQuaternion startRot = 9;</code> - */ - public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder getStartRotOrBuilder() { - if (startRotBuilder_ != null) { - return startRotBuilder_.getMessageOrBuilder(); - } else { - return startRot_ == null ? - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.getDefaultInstance() : startRot_; - } - } - /** - * <code>.MathQuaternion startRot = 9;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion, emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder, emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder> - getStartRotFieldBuilder() { - if (startRotBuilder_ == null) { - startRotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion, emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder, emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder>( - getStartRot(), - getParentForChildren(), - isClean()); - startRot_ = null; - } - return startRotBuilder_; - } - - private int stopSceneTime_ ; - /** - * <code>uint32 stopSceneTime = 10;</code> - * @return The stopSceneTime. - */ - @java.lang.Override - public int getStopSceneTime() { - return stopSceneTime_; - } - /** - * <code>uint32 stopSceneTime = 10;</code> - * @param value The stopSceneTime to set. - * @return This builder for chaining. - */ - public Builder setStopSceneTime(int value) { - - stopSceneTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 stopSceneTime = 10;</code> - * @return This builder for chaining. - */ - public Builder clearStopSceneTime() { - - stopSceneTime_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.VectorOuterClass.Vector posOffset_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> posOffsetBuilder_; - /** - * <code>.Vector posOffset = 11;</code> - * @return Whether the posOffset field is set. - */ - public boolean hasPosOffset() { - return posOffsetBuilder_ != null || posOffset_ != null; - } - /** - * <code>.Vector posOffset = 11;</code> - * @return The posOffset. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getPosOffset() { - if (posOffsetBuilder_ == null) { - return posOffset_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : posOffset_; - } else { - return posOffsetBuilder_.getMessage(); - } - } - /** - * <code>.Vector posOffset = 11;</code> - */ - public Builder setPosOffset(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (posOffsetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - posOffset_ = value; - onChanged(); - } else { - posOffsetBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Vector posOffset = 11;</code> - */ - public Builder setPosOffset( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (posOffsetBuilder_ == null) { - posOffset_ = builderForValue.build(); - onChanged(); - } else { - posOffsetBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Vector posOffset = 11;</code> - */ - public Builder mergePosOffset(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (posOffsetBuilder_ == null) { - if (posOffset_ != null) { - posOffset_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(posOffset_).mergeFrom(value).buildPartial(); - } else { - posOffset_ = value; - } - onChanged(); - } else { - posOffsetBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Vector posOffset = 11;</code> - */ - public Builder clearPosOffset() { - if (posOffsetBuilder_ == null) { - posOffset_ = null; - onChanged(); - } else { - posOffset_ = null; - posOffsetBuilder_ = null; - } - - return this; - } - /** - * <code>.Vector posOffset = 11;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getPosOffsetBuilder() { - - onChanged(); - return getPosOffsetFieldBuilder().getBuilder(); - } - /** - * <code>.Vector posOffset = 11;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOffsetOrBuilder() { - if (posOffsetBuilder_ != null) { - return posOffsetBuilder_.getMessageOrBuilder(); - } else { - return posOffset_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : posOffset_; - } - } - /** - * <code>.Vector posOffset = 11;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getPosOffsetFieldBuilder() { - if (posOffsetBuilder_ == null) { - posOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getPosOffset(), - getParentForChildren(), - isClean()); - posOffset_ = null; - } - return posOffsetBuilder_; - } - - private emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion rotOffset_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion, emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder, emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder> rotOffsetBuilder_; - /** - * <code>.MathQuaternion rotOffset = 12;</code> - * @return Whether the rotOffset field is set. - */ - public boolean hasRotOffset() { - return rotOffsetBuilder_ != null || rotOffset_ != null; - } - /** - * <code>.MathQuaternion rotOffset = 12;</code> - * @return The rotOffset. - */ - public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion getRotOffset() { - if (rotOffsetBuilder_ == null) { - return rotOffset_ == null ? emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.getDefaultInstance() : rotOffset_; - } else { - return rotOffsetBuilder_.getMessage(); - } - } - /** - * <code>.MathQuaternion rotOffset = 12;</code> - */ - public Builder setRotOffset(emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion value) { - if (rotOffsetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rotOffset_ = value; - onChanged(); - } else { - rotOffsetBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.MathQuaternion rotOffset = 12;</code> - */ - public Builder setRotOffset( - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder builderForValue) { - if (rotOffsetBuilder_ == null) { - rotOffset_ = builderForValue.build(); - onChanged(); - } else { - rotOffsetBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.MathQuaternion rotOffset = 12;</code> - */ - public Builder mergeRotOffset(emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion value) { - if (rotOffsetBuilder_ == null) { - if (rotOffset_ != null) { - rotOffset_ = - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.newBuilder(rotOffset_).mergeFrom(value).buildPartial(); - } else { - rotOffset_ = value; - } - onChanged(); - } else { - rotOffsetBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.MathQuaternion rotOffset = 12;</code> - */ - public Builder clearRotOffset() { - if (rotOffsetBuilder_ == null) { - rotOffset_ = null; - onChanged(); - } else { - rotOffset_ = null; - rotOffsetBuilder_ = null; - } - - return this; - } - /** - * <code>.MathQuaternion rotOffset = 12;</code> - */ - public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder getRotOffsetBuilder() { - - onChanged(); - return getRotOffsetFieldBuilder().getBuilder(); - } - /** - * <code>.MathQuaternion rotOffset = 12;</code> - */ - public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder getRotOffsetOrBuilder() { - if (rotOffsetBuilder_ != null) { - return rotOffsetBuilder_.getMessageOrBuilder(); - } else { - return rotOffset_ == null ? - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.getDefaultInstance() : rotOffset_; - } - } - /** - * <code>.MathQuaternion rotOffset = 12;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion, emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder, emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder> - getRotOffsetFieldBuilder() { - if (rotOffsetBuilder_ == null) { - rotOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion, emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder, emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder>( - getRotOffset(), - getParentForChildren(), - isClean()); - rotOffset_ = null; - } - return rotOffsetBuilder_; - } - - private emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType movingPlatformType_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType, emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType.Builder, emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformTypeOrBuilder> movingPlatformTypeBuilder_; - /** - * <code>.MovingPlatformType movingPlatformType = 13;</code> - * @return Whether the movingPlatformType field is set. - */ - public boolean hasMovingPlatformType() { - return movingPlatformTypeBuilder_ != null || movingPlatformType_ != null; - } - /** - * <code>.MovingPlatformType movingPlatformType = 13;</code> - * @return The movingPlatformType. - */ - public emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType getMovingPlatformType() { - if (movingPlatformTypeBuilder_ == null) { - return movingPlatformType_ == null ? emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType.getDefaultInstance() : movingPlatformType_; - } else { - return movingPlatformTypeBuilder_.getMessage(); - } - } - /** - * <code>.MovingPlatformType movingPlatformType = 13;</code> - */ - public Builder setMovingPlatformType(emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType value) { - if (movingPlatformTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - movingPlatformType_ = value; - onChanged(); - } else { - movingPlatformTypeBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.MovingPlatformType movingPlatformType = 13;</code> - */ - public Builder setMovingPlatformType( - emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType.Builder builderForValue) { - if (movingPlatformTypeBuilder_ == null) { - movingPlatformType_ = builderForValue.build(); - onChanged(); - } else { - movingPlatformTypeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.MovingPlatformType movingPlatformType = 13;</code> - */ - public Builder mergeMovingPlatformType(emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType value) { - if (movingPlatformTypeBuilder_ == null) { - if (movingPlatformType_ != null) { - movingPlatformType_ = - emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType.newBuilder(movingPlatformType_).mergeFrom(value).buildPartial(); - } else { - movingPlatformType_ = value; - } - onChanged(); - } else { - movingPlatformTypeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.MovingPlatformType movingPlatformType = 13;</code> - */ - public Builder clearMovingPlatformType() { - if (movingPlatformTypeBuilder_ == null) { - movingPlatformType_ = null; - onChanged(); - } else { - movingPlatformType_ = null; - movingPlatformTypeBuilder_ = null; - } - - return this; - } - /** - * <code>.MovingPlatformType movingPlatformType = 13;</code> - */ - public emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType.Builder getMovingPlatformTypeBuilder() { - - onChanged(); - return getMovingPlatformTypeFieldBuilder().getBuilder(); - } - /** - * <code>.MovingPlatformType movingPlatformType = 13;</code> - */ - public emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformTypeOrBuilder getMovingPlatformTypeOrBuilder() { - if (movingPlatformTypeBuilder_ != null) { - return movingPlatformTypeBuilder_.getMessageOrBuilder(); - } else { - return movingPlatformType_ == null ? - emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType.getDefaultInstance() : movingPlatformType_; - } - } - /** - * <code>.MovingPlatformType movingPlatformType = 13;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType, emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType.Builder, emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformTypeOrBuilder> - getMovingPlatformTypeFieldBuilder() { - if (movingPlatformTypeBuilder_ == null) { - movingPlatformTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType, emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType.Builder, emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformTypeOrBuilder>( - getMovingPlatformType(), - getParentForChildren(), - isClean()); - movingPlatformType_ = null; - } - return movingPlatformTypeBuilder_; - } - - private boolean isActive_ ; - /** - * <code>bool isActive = 14;</code> - * @return The isActive. - */ - @java.lang.Override - public boolean getIsActive() { - return isActive_; - } - /** - * <code>bool isActive = 14;</code> - * @param value The isActive to set. - * @return This builder for chaining. - */ - public Builder setIsActive(boolean value) { - - isActive_ = value; - onChanged(); - return this; - } - /** - * <code>bool isActive = 14;</code> - * @return This builder for chaining. - */ - public Builder clearIsActive() { - - isActive_ = false; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.RouteOuterClass.Route route_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.RouteOuterClass.Route, emu.grasscutter.net.proto.RouteOuterClass.Route.Builder, emu.grasscutter.net.proto.RouteOuterClass.RouteOrBuilder> routeBuilder_; - /** - * <code>.Route route = 15;</code> - * @return Whether the route field is set. - */ - public boolean hasRoute() { - return routeBuilder_ != null || route_ != null; - } - /** - * <code>.Route route = 15;</code> - * @return The route. - */ - public emu.grasscutter.net.proto.RouteOuterClass.Route getRoute() { - if (routeBuilder_ == null) { - return route_ == null ? emu.grasscutter.net.proto.RouteOuterClass.Route.getDefaultInstance() : route_; - } else { - return routeBuilder_.getMessage(); - } - } - /** - * <code>.Route route = 15;</code> - */ - public Builder setRoute(emu.grasscutter.net.proto.RouteOuterClass.Route value) { - if (routeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - route_ = value; - onChanged(); - } else { - routeBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Route route = 15;</code> - */ - public Builder setRoute( - emu.grasscutter.net.proto.RouteOuterClass.Route.Builder builderForValue) { - if (routeBuilder_ == null) { - route_ = builderForValue.build(); - onChanged(); - } else { - routeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Route route = 15;</code> - */ - public Builder mergeRoute(emu.grasscutter.net.proto.RouteOuterClass.Route value) { - if (routeBuilder_ == null) { - if (route_ != null) { - route_ = - emu.grasscutter.net.proto.RouteOuterClass.Route.newBuilder(route_).mergeFrom(value).buildPartial(); - } else { - route_ = value; - } - onChanged(); - } else { - routeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Route route = 15;</code> - */ - public Builder clearRoute() { - if (routeBuilder_ == null) { - route_ = null; - onChanged(); - } else { - route_ = null; - routeBuilder_ = null; - } - - return this; - } - /** - * <code>.Route route = 15;</code> - */ - public emu.grasscutter.net.proto.RouteOuterClass.Route.Builder getRouteBuilder() { - - onChanged(); - return getRouteFieldBuilder().getBuilder(); - } - /** - * <code>.Route route = 15;</code> - */ - public emu.grasscutter.net.proto.RouteOuterClass.RouteOrBuilder getRouteOrBuilder() { - if (routeBuilder_ != null) { - return routeBuilder_.getMessageOrBuilder(); - } else { - return route_ == null ? - emu.grasscutter.net.proto.RouteOuterClass.Route.getDefaultInstance() : route_; - } - } - /** - * <code>.Route route = 15;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.RouteOuterClass.Route, emu.grasscutter.net.proto.RouteOuterClass.Route.Builder, emu.grasscutter.net.proto.RouteOuterClass.RouteOrBuilder> - getRouteFieldBuilder() { - if (routeBuilder_ == null) { - routeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.RouteOuterClass.Route, emu.grasscutter.net.proto.RouteOuterClass.Route.Builder, emu.grasscutter.net.proto.RouteOuterClass.RouteOrBuilder>( - getRoute(), - getParentForChildren(), - isClean()); - route_ = null; - } - return routeBuilder_; - } - - private int pointId_ ; - /** - * <code>uint32 pointId = 16;</code> - * @return The pointId. - */ - @java.lang.Override - public int getPointId() { - return pointId_; - } - /** - * <code>uint32 pointId = 16;</code> - * @param value The pointId to set. - * @return This builder for chaining. - */ - public Builder setPointId(int value) { - - pointId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 pointId = 16;</code> - * @return This builder for chaining. - */ - public Builder clearPointId() { - - pointId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlatformInfo) - } - - // @@protoc_insertion_point(class_scope:PlatformInfo) - private static final emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo(); - } - - public static emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PlatformInfo> - PARSER = new com.google.protobuf.AbstractParser<PlatformInfo>() { - @java.lang.Override - public PlatformInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlatformInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PlatformInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PlatformInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlatformInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlatformInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\022PlatformInfo.proto\032\024MathQuaternion.pro" + - "to\032\030MovingPlatformType.proto\032\013Route.prot" + - "o\032\014Vector.proto\"\366\002\n\014PlatformInfo\022\017\n\007rout" + - "eId\030\001 \001(\r\022\022\n\nstartIndex\030\002 \001(\005\022\026\n\016startRo" + - "uteTime\030\003 \001(\r\022\026\n\016startSceneTime\030\004 \001(\r\022\031\n" + - "\010startPos\030\007 \001(\0132\007.Vector\022\021\n\tisStarted\030\010 " + - "\001(\010\022!\n\010startRot\030\t \001(\0132\017.MathQuaternion\022\025" + - "\n\rstopSceneTime\030\n \001(\r\022\032\n\tposOffset\030\013 \001(\013" + - "2\007.Vector\022\"\n\trotOffset\030\014 \001(\0132\017.MathQuate" + - "rnion\022/\n\022movingPlatformType\030\r \001(\0132\023.Movi" + - "ngPlatformType\022\020\n\010isActive\030\016 \001(\010\022\025\n\005rout" + - "e\030\017 \001(\0132\006.Route\022\017\n\007pointId\030\020 \001(\rB\033\n\031emu." + - "grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.MathQuaternionOuterClass.getDescriptor(), - emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.getDescriptor(), - emu.grasscutter.net.proto.RouteOuterClass.getDescriptor(), - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(), - }); - internal_static_PlatformInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlatformInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlatformInfo_descriptor, - new java.lang.String[] { "RouteId", "StartIndex", "StartRouteTime", "StartSceneTime", "StartPos", "IsStarted", "StartRot", "StopSceneTime", "PosOffset", "RotOffset", "MovingPlatformType", "IsActive", "Route", "PointId", }); - emu.grasscutter.net.proto.MathQuaternionOuterClass.getDescriptor(); - emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.getDescriptor(); - emu.grasscutter.net.proto.RouteOuterClass.getDescriptor(); - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpNotifyOuterClass.java deleted file mode 100644 index 728dcc0ca..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpNotifyOuterClass.java +++ /dev/null @@ -1,743 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerApplyEnterMpNotify.proto - -package emu.grasscutter.net.proto; - -public final class PlayerApplyEnterMpNotifyOuterClass { - private PlayerApplyEnterMpNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerApplyEnterMpNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerApplyEnterMpNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.OnlinePlayerInfo srcPlayerInfo = 1;</code> - * @return Whether the srcPlayerInfo field is set. - */ - boolean hasSrcPlayerInfo(); - /** - * <code>.OnlinePlayerInfo srcPlayerInfo = 1;</code> - * @return The srcPlayerInfo. - */ - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo getSrcPlayerInfo(); - /** - * <code>.OnlinePlayerInfo srcPlayerInfo = 1;</code> - */ - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfoOrBuilder getSrcPlayerInfoOrBuilder(); - - /** - * <code>uint32 srcAppId = 2;</code> - * @return The srcAppId. - */ - int getSrcAppId(); - } - /** - * Protobuf type {@code PlayerApplyEnterMpNotify} - */ - public static final class PlayerApplyEnterMpNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerApplyEnterMpNotify) - PlayerApplyEnterMpNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerApplyEnterMpNotify.newBuilder() to construct. - private PlayerApplyEnterMpNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PlayerApplyEnterMpNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerApplyEnterMpNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerApplyEnterMpNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder subBuilder = null; - if (srcPlayerInfo_ != null) { - subBuilder = srcPlayerInfo_.toBuilder(); - } - srcPlayerInfo_ = input.readMessage(emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(srcPlayerInfo_); - srcPlayerInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - srcAppId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.internal_static_PlayerApplyEnterMpNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.internal_static_PlayerApplyEnterMpNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify.class, emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify.Builder.class); - } - - public static final int SRCPLAYERINFO_FIELD_NUMBER = 1; - private emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo srcPlayerInfo_; - /** - * <code>.OnlinePlayerInfo srcPlayerInfo = 1;</code> - * @return Whether the srcPlayerInfo field is set. - */ - @java.lang.Override - public boolean hasSrcPlayerInfo() { - return srcPlayerInfo_ != null; - } - /** - * <code>.OnlinePlayerInfo srcPlayerInfo = 1;</code> - * @return The srcPlayerInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo getSrcPlayerInfo() { - return srcPlayerInfo_ == null ? emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.getDefaultInstance() : srcPlayerInfo_; - } - /** - * <code>.OnlinePlayerInfo srcPlayerInfo = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfoOrBuilder getSrcPlayerInfoOrBuilder() { - return getSrcPlayerInfo(); - } - - public static final int SRCAPPID_FIELD_NUMBER = 2; - private int srcAppId_; - /** - * <code>uint32 srcAppId = 2;</code> - * @return The srcAppId. - */ - @java.lang.Override - public int getSrcAppId() { - return srcAppId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (srcPlayerInfo_ != null) { - output.writeMessage(1, getSrcPlayerInfo()); - } - if (srcAppId_ != 0) { - output.writeUInt32(2, srcAppId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (srcPlayerInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSrcPlayerInfo()); - } - if (srcAppId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, srcAppId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify other = (emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify) obj; - - if (hasSrcPlayerInfo() != other.hasSrcPlayerInfo()) return false; - if (hasSrcPlayerInfo()) { - if (!getSrcPlayerInfo() - .equals(other.getSrcPlayerInfo())) return false; - } - if (getSrcAppId() - != other.getSrcAppId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSrcPlayerInfo()) { - hash = (37 * hash) + SRCPLAYERINFO_FIELD_NUMBER; - hash = (53 * hash) + getSrcPlayerInfo().hashCode(); - } - hash = (37 * hash) + SRCAPPID_FIELD_NUMBER; - hash = (53 * hash) + getSrcAppId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PlayerApplyEnterMpNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerApplyEnterMpNotify) - emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.internal_static_PlayerApplyEnterMpNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.internal_static_PlayerApplyEnterMpNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify.class, emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (srcPlayerInfoBuilder_ == null) { - srcPlayerInfo_ = null; - } else { - srcPlayerInfo_ = null; - srcPlayerInfoBuilder_ = null; - } - srcAppId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.internal_static_PlayerApplyEnterMpNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify build() { - emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify buildPartial() { - emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify result = new emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify(this); - if (srcPlayerInfoBuilder_ == null) { - result.srcPlayerInfo_ = srcPlayerInfo_; - } else { - result.srcPlayerInfo_ = srcPlayerInfoBuilder_.build(); - } - result.srcAppId_ = srcAppId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify) { - return mergeFrom((emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify other) { - if (other == emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify.getDefaultInstance()) return this; - if (other.hasSrcPlayerInfo()) { - mergeSrcPlayerInfo(other.getSrcPlayerInfo()); - } - if (other.getSrcAppId() != 0) { - setSrcAppId(other.getSrcAppId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo srcPlayerInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo, emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder, emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfoOrBuilder> srcPlayerInfoBuilder_; - /** - * <code>.OnlinePlayerInfo srcPlayerInfo = 1;</code> - * @return Whether the srcPlayerInfo field is set. - */ - public boolean hasSrcPlayerInfo() { - return srcPlayerInfoBuilder_ != null || srcPlayerInfo_ != null; - } - /** - * <code>.OnlinePlayerInfo srcPlayerInfo = 1;</code> - * @return The srcPlayerInfo. - */ - public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo getSrcPlayerInfo() { - if (srcPlayerInfoBuilder_ == null) { - return srcPlayerInfo_ == null ? emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.getDefaultInstance() : srcPlayerInfo_; - } else { - return srcPlayerInfoBuilder_.getMessage(); - } - } - /** - * <code>.OnlinePlayerInfo srcPlayerInfo = 1;</code> - */ - public Builder setSrcPlayerInfo(emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo value) { - if (srcPlayerInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - srcPlayerInfo_ = value; - onChanged(); - } else { - srcPlayerInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.OnlinePlayerInfo srcPlayerInfo = 1;</code> - */ - public Builder setSrcPlayerInfo( - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder builderForValue) { - if (srcPlayerInfoBuilder_ == null) { - srcPlayerInfo_ = builderForValue.build(); - onChanged(); - } else { - srcPlayerInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.OnlinePlayerInfo srcPlayerInfo = 1;</code> - */ - public Builder mergeSrcPlayerInfo(emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo value) { - if (srcPlayerInfoBuilder_ == null) { - if (srcPlayerInfo_ != null) { - srcPlayerInfo_ = - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.newBuilder(srcPlayerInfo_).mergeFrom(value).buildPartial(); - } else { - srcPlayerInfo_ = value; - } - onChanged(); - } else { - srcPlayerInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.OnlinePlayerInfo srcPlayerInfo = 1;</code> - */ - public Builder clearSrcPlayerInfo() { - if (srcPlayerInfoBuilder_ == null) { - srcPlayerInfo_ = null; - onChanged(); - } else { - srcPlayerInfo_ = null; - srcPlayerInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.OnlinePlayerInfo srcPlayerInfo = 1;</code> - */ - public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder getSrcPlayerInfoBuilder() { - - onChanged(); - return getSrcPlayerInfoFieldBuilder().getBuilder(); - } - /** - * <code>.OnlinePlayerInfo srcPlayerInfo = 1;</code> - */ - public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfoOrBuilder getSrcPlayerInfoOrBuilder() { - if (srcPlayerInfoBuilder_ != null) { - return srcPlayerInfoBuilder_.getMessageOrBuilder(); - } else { - return srcPlayerInfo_ == null ? - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.getDefaultInstance() : srcPlayerInfo_; - } - } - /** - * <code>.OnlinePlayerInfo srcPlayerInfo = 1;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo, emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder, emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfoOrBuilder> - getSrcPlayerInfoFieldBuilder() { - if (srcPlayerInfoBuilder_ == null) { - srcPlayerInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo, emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder, emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfoOrBuilder>( - getSrcPlayerInfo(), - getParentForChildren(), - isClean()); - srcPlayerInfo_ = null; - } - return srcPlayerInfoBuilder_; - } - - private int srcAppId_ ; - /** - * <code>uint32 srcAppId = 2;</code> - * @return The srcAppId. - */ - @java.lang.Override - public int getSrcAppId() { - return srcAppId_; - } - /** - * <code>uint32 srcAppId = 2;</code> - * @param value The srcAppId to set. - * @return This builder for chaining. - */ - public Builder setSrcAppId(int value) { - - srcAppId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 srcAppId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearSrcAppId() { - - srcAppId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerApplyEnterMpNotify) - } - - // @@protoc_insertion_point(class_scope:PlayerApplyEnterMpNotify) - private static final emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify(); - } - - public static emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PlayerApplyEnterMpNotify> - PARSER = new com.google.protobuf.AbstractParser<PlayerApplyEnterMpNotify>() { - @java.lang.Override - public PlayerApplyEnterMpNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerApplyEnterMpNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PlayerApplyEnterMpNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PlayerApplyEnterMpNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerApplyEnterMpNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerApplyEnterMpNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\036PlayerApplyEnterMpNotify.proto\032\026Online" + - "PlayerInfo.proto\"V\n\030PlayerApplyEnterMpNo" + - "tify\022(\n\rsrcPlayerInfo\030\001 \001(\0132\021.OnlinePlay" + - "erInfo\022\020\n\010srcAppId\030\002 \001(\rB\033\n\031emu.grasscut" + - "ter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.getDescriptor(), - }); - internal_static_PlayerApplyEnterMpNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerApplyEnterMpNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerApplyEnterMpNotify_descriptor, - new java.lang.String[] { "SrcPlayerInfo", "SrcAppId", }); - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpReasonOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpReasonOuterClass.java deleted file mode 100644 index 15ab9190a..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpReasonOuterClass.java +++ /dev/null @@ -1,252 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerApplyEnterMpReason.proto - -package emu.grasscutter.net.proto; - -public final class PlayerApplyEnterMpReasonOuterClass { - private PlayerApplyEnterMpReasonOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code PlayerApplyEnterMpReason} - */ - public enum PlayerApplyEnterMpReason - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>PlayerJudge = 0;</code> - */ - PlayerJudge(0), - /** - * <code>SceneCannotEnter = 1;</code> - */ - SceneCannotEnter(1), - /** - * <code>PlayerCannotEnterMp = 2;</code> - */ - PlayerCannotEnterMp(2), - /** - * <code>SystemJudge = 3;</code> - */ - SystemJudge(3), - /** - * <code>AllowEnterPlayerFull = 4;</code> - */ - AllowEnterPlayerFull(4), - /** - * <code>WorldLevelLowerThanHost = 5;</code> - */ - WorldLevelLowerThanHost(5), - /** - * <code>HostInMatch = 6;</code> - */ - HostInMatch(6), - /** - * <code>PlayerInBlacklist = 7;</code> - */ - PlayerInBlacklist(7), - /** - * <code>PsPlayerNotAcceptOthers = 8;</code> - */ - PsPlayerNotAcceptOthers(8), - /** - * <code>HostIsBlocked = 9;</code> - */ - HostIsBlocked(9), - /** - * <code>OtherDataVersionNotLatest = 10;</code> - */ - OtherDataVersionNotLatest(10), - /** - * <code>DataVersionNotLatest = 11;</code> - */ - DataVersionNotLatest(11), - /** - * <code>PlayerNotInPlayerWorld = 12;</code> - */ - PlayerNotInPlayerWorld(12), - UNRECOGNIZED(-1), - ; - - /** - * <code>PlayerJudge = 0;</code> - */ - public static final int PlayerJudge_VALUE = 0; - /** - * <code>SceneCannotEnter = 1;</code> - */ - public static final int SceneCannotEnter_VALUE = 1; - /** - * <code>PlayerCannotEnterMp = 2;</code> - */ - public static final int PlayerCannotEnterMp_VALUE = 2; - /** - * <code>SystemJudge = 3;</code> - */ - public static final int SystemJudge_VALUE = 3; - /** - * <code>AllowEnterPlayerFull = 4;</code> - */ - public static final int AllowEnterPlayerFull_VALUE = 4; - /** - * <code>WorldLevelLowerThanHost = 5;</code> - */ - public static final int WorldLevelLowerThanHost_VALUE = 5; - /** - * <code>HostInMatch = 6;</code> - */ - public static final int HostInMatch_VALUE = 6; - /** - * <code>PlayerInBlacklist = 7;</code> - */ - public static final int PlayerInBlacklist_VALUE = 7; - /** - * <code>PsPlayerNotAcceptOthers = 8;</code> - */ - public static final int PsPlayerNotAcceptOthers_VALUE = 8; - /** - * <code>HostIsBlocked = 9;</code> - */ - public static final int HostIsBlocked_VALUE = 9; - /** - * <code>OtherDataVersionNotLatest = 10;</code> - */ - public static final int OtherDataVersionNotLatest_VALUE = 10; - /** - * <code>DataVersionNotLatest = 11;</code> - */ - public static final int DataVersionNotLatest_VALUE = 11; - /** - * <code>PlayerNotInPlayerWorld = 12;</code> - */ - public static final int PlayerNotInPlayerWorld_VALUE = 12; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PlayerApplyEnterMpReason valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static PlayerApplyEnterMpReason forNumber(int value) { - switch (value) { - case 0: return PlayerJudge; - case 1: return SceneCannotEnter; - case 2: return PlayerCannotEnterMp; - case 3: return SystemJudge; - case 4: return AllowEnterPlayerFull; - case 5: return WorldLevelLowerThanHost; - case 6: return HostInMatch; - case 7: return PlayerInBlacklist; - case 8: return PsPlayerNotAcceptOthers; - case 9: return HostIsBlocked; - case 10: return OtherDataVersionNotLatest; - case 11: return DataVersionNotLatest; - case 12: return PlayerNotInPlayerWorld; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<PlayerApplyEnterMpReason> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - PlayerApplyEnterMpReason> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<PlayerApplyEnterMpReason>() { - public PlayerApplyEnterMpReason findValueByNumber(int number) { - return PlayerApplyEnterMpReason.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpReasonOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final PlayerApplyEnterMpReason[] VALUES = values(); - - public static PlayerApplyEnterMpReason valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private PlayerApplyEnterMpReason(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:PlayerApplyEnterMpReason) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\036PlayerApplyEnterMpReason.proto*\317\002\n\030Pla" + - "yerApplyEnterMpReason\022\017\n\013PlayerJudge\020\000\022\024" + - "\n\020SceneCannotEnter\020\001\022\027\n\023PlayerCannotEnte" + - "rMp\020\002\022\017\n\013SystemJudge\020\003\022\030\n\024AllowEnterPlay" + - "erFull\020\004\022\033\n\027WorldLevelLowerThanHost\020\005\022\017\n" + - "\013HostInMatch\020\006\022\025\n\021PlayerInBlacklist\020\007\022\033\n" + - "\027PsPlayerNotAcceptOthers\020\010\022\021\n\rHostIsBloc" + - "ked\020\t\022\035\n\031OtherDataVersionNotLatest\020\n\022\030\n\024" + - "DataVersionNotLatest\020\013\022\032\n\026PlayerNotInPla" + - "yerWorld\020\014B\033\n\031emu.grasscutter.net.protob" + - "\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpReqOuterClass.java deleted file mode 100644 index 886c3ae36..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpReqOuterClass.java +++ /dev/null @@ -1,536 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerApplyEnterMpReq.proto - -package emu.grasscutter.net.proto; - -public final class PlayerApplyEnterMpReqOuterClass { - private PlayerApplyEnterMpReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerApplyEnterMpReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerApplyEnterMpReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - int getTargetUid(); - } - /** - * Protobuf type {@code PlayerApplyEnterMpReq} - */ - public static final class PlayerApplyEnterMpReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerApplyEnterMpReq) - PlayerApplyEnterMpReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerApplyEnterMpReq.newBuilder() to construct. - private PlayerApplyEnterMpReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PlayerApplyEnterMpReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerApplyEnterMpReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerApplyEnterMpReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - targetUid_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.internal_static_PlayerApplyEnterMpReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.internal_static_PlayerApplyEnterMpReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq.class, emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq.Builder.class); - } - - public static final int TARGETUID_FIELD_NUMBER = 1; - private int targetUid_; - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (targetUid_ != 0) { - output.writeUInt32(1, targetUid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (targetUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, targetUid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq other = (emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq) obj; - - if (getTargetUid() - != other.getTargetUid()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TARGETUID_FIELD_NUMBER; - hash = (53 * hash) + getTargetUid(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PlayerApplyEnterMpReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerApplyEnterMpReq) - emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.internal_static_PlayerApplyEnterMpReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.internal_static_PlayerApplyEnterMpReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq.class, emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - targetUid_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.internal_static_PlayerApplyEnterMpReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq build() { - emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq buildPartial() { - emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq result = new emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq(this); - result.targetUid_ = targetUid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq) { - return mergeFrom((emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq other) { - if (other == emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq.getDefaultInstance()) return this; - if (other.getTargetUid() != 0) { - setTargetUid(other.getTargetUid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int targetUid_ ; - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - /** - * <code>uint32 targetUid = 1;</code> - * @param value The targetUid to set. - * @return This builder for chaining. - */ - public Builder setTargetUid(int value) { - - targetUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 targetUid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTargetUid() { - - targetUid_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerApplyEnterMpReq) - } - - // @@protoc_insertion_point(class_scope:PlayerApplyEnterMpReq) - private static final emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq(); - } - - public static emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PlayerApplyEnterMpReq> - PARSER = new com.google.protobuf.AbstractParser<PlayerApplyEnterMpReq>() { - @java.lang.Override - public PlayerApplyEnterMpReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerApplyEnterMpReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PlayerApplyEnterMpReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PlayerApplyEnterMpReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerApplyEnterMpReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerApplyEnterMpReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033PlayerApplyEnterMpReq.proto\"*\n\025PlayerA" + - "pplyEnterMpReq\022\021\n\ttargetUid\030\001 \001(\rB\033\n\031emu" + - ".grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_PlayerApplyEnterMpReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerApplyEnterMpReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerApplyEnterMpReq_descriptor, - new java.lang.String[] { "TargetUid", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpResultNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpResultNotifyOuterClass.java deleted file mode 100644 index 9297d9a74..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpResultNotifyOuterClass.java +++ /dev/null @@ -1,870 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerApplyEnterMpResultNotify.proto - -package emu.grasscutter.net.proto; - -public final class PlayerApplyEnterMpResultNotifyOuterClass { - private PlayerApplyEnterMpResultNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerApplyEnterMpResultNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerApplyEnterMpResultNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - int getTargetUid(); - - /** - * <code>bool isAgreed = 2;</code> - * @return The isAgreed. - */ - boolean getIsAgreed(); - - /** - * <code>.PlayerApplyEnterMpReason reason = 3;</code> - * @return The enum numeric value on the wire for reason. - */ - int getReasonValue(); - /** - * <code>.PlayerApplyEnterMpReason reason = 3;</code> - * @return The reason. - */ - emu.grasscutter.net.proto.PlayerApplyEnterMpReasonOuterClass.PlayerApplyEnterMpReason getReason(); - - /** - * <code>string targetNickname = 4;</code> - * @return The targetNickname. - */ - java.lang.String getTargetNickname(); - /** - * <code>string targetNickname = 4;</code> - * @return The bytes for targetNickname. - */ - com.google.protobuf.ByteString - getTargetNicknameBytes(); - } - /** - * Protobuf type {@code PlayerApplyEnterMpResultNotify} - */ - public static final class PlayerApplyEnterMpResultNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerApplyEnterMpResultNotify) - PlayerApplyEnterMpResultNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerApplyEnterMpResultNotify.newBuilder() to construct. - private PlayerApplyEnterMpResultNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PlayerApplyEnterMpResultNotify() { - reason_ = 0; - targetNickname_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerApplyEnterMpResultNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerApplyEnterMpResultNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - targetUid_ = input.readUInt32(); - break; - } - case 16: { - - isAgreed_ = input.readBool(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - reason_ = rawValue; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - targetNickname_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.internal_static_PlayerApplyEnterMpResultNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.internal_static_PlayerApplyEnterMpResultNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify.class, emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify.Builder.class); - } - - public static final int TARGETUID_FIELD_NUMBER = 1; - private int targetUid_; - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - - public static final int ISAGREED_FIELD_NUMBER = 2; - private boolean isAgreed_; - /** - * <code>bool isAgreed = 2;</code> - * @return The isAgreed. - */ - @java.lang.Override - public boolean getIsAgreed() { - return isAgreed_; - } - - public static final int REASON_FIELD_NUMBER = 3; - private int reason_; - /** - * <code>.PlayerApplyEnterMpReason reason = 3;</code> - * @return The enum numeric value on the wire for reason. - */ - @java.lang.Override public int getReasonValue() { - return reason_; - } - /** - * <code>.PlayerApplyEnterMpReason reason = 3;</code> - * @return The reason. - */ - @java.lang.Override public emu.grasscutter.net.proto.PlayerApplyEnterMpReasonOuterClass.PlayerApplyEnterMpReason getReason() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.PlayerApplyEnterMpReasonOuterClass.PlayerApplyEnterMpReason result = emu.grasscutter.net.proto.PlayerApplyEnterMpReasonOuterClass.PlayerApplyEnterMpReason.valueOf(reason_); - return result == null ? emu.grasscutter.net.proto.PlayerApplyEnterMpReasonOuterClass.PlayerApplyEnterMpReason.UNRECOGNIZED : result; - } - - public static final int TARGETNICKNAME_FIELD_NUMBER = 4; - private volatile java.lang.Object targetNickname_; - /** - * <code>string targetNickname = 4;</code> - * @return The targetNickname. - */ - @java.lang.Override - public java.lang.String getTargetNickname() { - java.lang.Object ref = targetNickname_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetNickname_ = s; - return s; - } - } - /** - * <code>string targetNickname = 4;</code> - * @return The bytes for targetNickname. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTargetNicknameBytes() { - java.lang.Object ref = targetNickname_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetNickname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (targetUid_ != 0) { - output.writeUInt32(1, targetUid_); - } - if (isAgreed_ != false) { - output.writeBool(2, isAgreed_); - } - if (reason_ != emu.grasscutter.net.proto.PlayerApplyEnterMpReasonOuterClass.PlayerApplyEnterMpReason.PlayerJudge.getNumber()) { - output.writeEnum(3, reason_); - } - if (!getTargetNicknameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, targetNickname_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (targetUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, targetUid_); - } - if (isAgreed_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isAgreed_); - } - if (reason_ != emu.grasscutter.net.proto.PlayerApplyEnterMpReasonOuterClass.PlayerApplyEnterMpReason.PlayerJudge.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, reason_); - } - if (!getTargetNicknameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, targetNickname_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify other = (emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify) obj; - - if (getTargetUid() - != other.getTargetUid()) return false; - if (getIsAgreed() - != other.getIsAgreed()) return false; - if (reason_ != other.reason_) return false; - if (!getTargetNickname() - .equals(other.getTargetNickname())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TARGETUID_FIELD_NUMBER; - hash = (53 * hash) + getTargetUid(); - hash = (37 * hash) + ISAGREED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsAgreed()); - hash = (37 * hash) + REASON_FIELD_NUMBER; - hash = (53 * hash) + reason_; - hash = (37 * hash) + TARGETNICKNAME_FIELD_NUMBER; - hash = (53 * hash) + getTargetNickname().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PlayerApplyEnterMpResultNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerApplyEnterMpResultNotify) - emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.internal_static_PlayerApplyEnterMpResultNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.internal_static_PlayerApplyEnterMpResultNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify.class, emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - targetUid_ = 0; - - isAgreed_ = false; - - reason_ = 0; - - targetNickname_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.internal_static_PlayerApplyEnterMpResultNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify build() { - emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify buildPartial() { - emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify result = new emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify(this); - result.targetUid_ = targetUid_; - result.isAgreed_ = isAgreed_; - result.reason_ = reason_; - result.targetNickname_ = targetNickname_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify) { - return mergeFrom((emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify other) { - if (other == emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify.getDefaultInstance()) return this; - if (other.getTargetUid() != 0) { - setTargetUid(other.getTargetUid()); - } - if (other.getIsAgreed() != false) { - setIsAgreed(other.getIsAgreed()); - } - if (other.reason_ != 0) { - setReasonValue(other.getReasonValue()); - } - if (!other.getTargetNickname().isEmpty()) { - targetNickname_ = other.targetNickname_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int targetUid_ ; - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - /** - * <code>uint32 targetUid = 1;</code> - * @param value The targetUid to set. - * @return This builder for chaining. - */ - public Builder setTargetUid(int value) { - - targetUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 targetUid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTargetUid() { - - targetUid_ = 0; - onChanged(); - return this; - } - - private boolean isAgreed_ ; - /** - * <code>bool isAgreed = 2;</code> - * @return The isAgreed. - */ - @java.lang.Override - public boolean getIsAgreed() { - return isAgreed_; - } - /** - * <code>bool isAgreed = 2;</code> - * @param value The isAgreed to set. - * @return This builder for chaining. - */ - public Builder setIsAgreed(boolean value) { - - isAgreed_ = value; - onChanged(); - return this; - } - /** - * <code>bool isAgreed = 2;</code> - * @return This builder for chaining. - */ - public Builder clearIsAgreed() { - - isAgreed_ = false; - onChanged(); - return this; - } - - private int reason_ = 0; - /** - * <code>.PlayerApplyEnterMpReason reason = 3;</code> - * @return The enum numeric value on the wire for reason. - */ - @java.lang.Override public int getReasonValue() { - return reason_; - } - /** - * <code>.PlayerApplyEnterMpReason reason = 3;</code> - * @param value The enum numeric value on the wire for reason to set. - * @return This builder for chaining. - */ - public Builder setReasonValue(int value) { - - reason_ = value; - onChanged(); - return this; - } - /** - * <code>.PlayerApplyEnterMpReason reason = 3;</code> - * @return The reason. - */ - @java.lang.Override - public emu.grasscutter.net.proto.PlayerApplyEnterMpReasonOuterClass.PlayerApplyEnterMpReason getReason() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.PlayerApplyEnterMpReasonOuterClass.PlayerApplyEnterMpReason result = emu.grasscutter.net.proto.PlayerApplyEnterMpReasonOuterClass.PlayerApplyEnterMpReason.valueOf(reason_); - return result == null ? emu.grasscutter.net.proto.PlayerApplyEnterMpReasonOuterClass.PlayerApplyEnterMpReason.UNRECOGNIZED : result; - } - /** - * <code>.PlayerApplyEnterMpReason reason = 3;</code> - * @param value The reason to set. - * @return This builder for chaining. - */ - public Builder setReason(emu.grasscutter.net.proto.PlayerApplyEnterMpReasonOuterClass.PlayerApplyEnterMpReason value) { - if (value == null) { - throw new NullPointerException(); - } - - reason_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.PlayerApplyEnterMpReason reason = 3;</code> - * @return This builder for chaining. - */ - public Builder clearReason() { - - reason_ = 0; - onChanged(); - return this; - } - - private java.lang.Object targetNickname_ = ""; - /** - * <code>string targetNickname = 4;</code> - * @return The targetNickname. - */ - public java.lang.String getTargetNickname() { - java.lang.Object ref = targetNickname_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetNickname_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string targetNickname = 4;</code> - * @return The bytes for targetNickname. - */ - public com.google.protobuf.ByteString - getTargetNicknameBytes() { - java.lang.Object ref = targetNickname_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetNickname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string targetNickname = 4;</code> - * @param value The targetNickname to set. - * @return This builder for chaining. - */ - public Builder setTargetNickname( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - targetNickname_ = value; - onChanged(); - return this; - } - /** - * <code>string targetNickname = 4;</code> - * @return This builder for chaining. - */ - public Builder clearTargetNickname() { - - targetNickname_ = getDefaultInstance().getTargetNickname(); - onChanged(); - return this; - } - /** - * <code>string targetNickname = 4;</code> - * @param value The bytes for targetNickname to set. - * @return This builder for chaining. - */ - public Builder setTargetNicknameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - targetNickname_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerApplyEnterMpResultNotify) - } - - // @@protoc_insertion_point(class_scope:PlayerApplyEnterMpResultNotify) - private static final emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify(); - } - - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PlayerApplyEnterMpResultNotify> - PARSER = new com.google.protobuf.AbstractParser<PlayerApplyEnterMpResultNotify>() { - @java.lang.Override - public PlayerApplyEnterMpResultNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerApplyEnterMpResultNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PlayerApplyEnterMpResultNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PlayerApplyEnterMpResultNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerApplyEnterMpResultNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerApplyEnterMpResultNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n$PlayerApplyEnterMpResultNotify.proto\032\036" + - "PlayerApplyEnterMpReason.proto\"\210\001\n\036Playe" + - "rApplyEnterMpResultNotify\022\021\n\ttargetUid\030\001" + - " \001(\r\022\020\n\010isAgreed\030\002 \001(\010\022)\n\006reason\030\003 \001(\0162\031" + - ".PlayerApplyEnterMpReason\022\026\n\016targetNickn" + - "ame\030\004 \001(\tB\033\n\031emu.grasscutter.net.protob\006" + - "proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.PlayerApplyEnterMpReasonOuterClass.getDescriptor(), - }); - internal_static_PlayerApplyEnterMpResultNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerApplyEnterMpResultNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerApplyEnterMpResultNotify_descriptor, - new java.lang.String[] { "TargetUid", "IsAgreed", "Reason", "TargetNickname", }); - emu.grasscutter.net.proto.PlayerApplyEnterMpReasonOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpResultReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpResultReqOuterClass.java deleted file mode 100644 index d147908e1..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpResultReqOuterClass.java +++ /dev/null @@ -1,608 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerApplyEnterMpResultReq.proto - -package emu.grasscutter.net.proto; - -public final class PlayerApplyEnterMpResultReqOuterClass { - private PlayerApplyEnterMpResultReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerApplyEnterMpResultReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerApplyEnterMpResultReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 applyUid = 1;</code> - * @return The applyUid. - */ - int getApplyUid(); - - /** - * <code>bool isAgreed = 2;</code> - * @return The isAgreed. - */ - boolean getIsAgreed(); - } - /** - * Protobuf type {@code PlayerApplyEnterMpResultReq} - */ - public static final class PlayerApplyEnterMpResultReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerApplyEnterMpResultReq) - PlayerApplyEnterMpResultReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerApplyEnterMpResultReq.newBuilder() to construct. - private PlayerApplyEnterMpResultReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PlayerApplyEnterMpResultReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerApplyEnterMpResultReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerApplyEnterMpResultReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - applyUid_ = input.readUInt32(); - break; - } - case 16: { - - isAgreed_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.internal_static_PlayerApplyEnterMpResultReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.internal_static_PlayerApplyEnterMpResultReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq.class, emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq.Builder.class); - } - - public static final int APPLYUID_FIELD_NUMBER = 1; - private int applyUid_; - /** - * <code>uint32 applyUid = 1;</code> - * @return The applyUid. - */ - @java.lang.Override - public int getApplyUid() { - return applyUid_; - } - - public static final int ISAGREED_FIELD_NUMBER = 2; - private boolean isAgreed_; - /** - * <code>bool isAgreed = 2;</code> - * @return The isAgreed. - */ - @java.lang.Override - public boolean getIsAgreed() { - return isAgreed_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (applyUid_ != 0) { - output.writeUInt32(1, applyUid_); - } - if (isAgreed_ != false) { - output.writeBool(2, isAgreed_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (applyUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, applyUid_); - } - if (isAgreed_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isAgreed_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq other = (emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq) obj; - - if (getApplyUid() - != other.getApplyUid()) return false; - if (getIsAgreed() - != other.getIsAgreed()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + APPLYUID_FIELD_NUMBER; - hash = (53 * hash) + getApplyUid(); - hash = (37 * hash) + ISAGREED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsAgreed()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PlayerApplyEnterMpResultReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerApplyEnterMpResultReq) - emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.internal_static_PlayerApplyEnterMpResultReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.internal_static_PlayerApplyEnterMpResultReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq.class, emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - applyUid_ = 0; - - isAgreed_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.internal_static_PlayerApplyEnterMpResultReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq build() { - emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq buildPartial() { - emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq result = new emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq(this); - result.applyUid_ = applyUid_; - result.isAgreed_ = isAgreed_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq) { - return mergeFrom((emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq other) { - if (other == emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq.getDefaultInstance()) return this; - if (other.getApplyUid() != 0) { - setApplyUid(other.getApplyUid()); - } - if (other.getIsAgreed() != false) { - setIsAgreed(other.getIsAgreed()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int applyUid_ ; - /** - * <code>uint32 applyUid = 1;</code> - * @return The applyUid. - */ - @java.lang.Override - public int getApplyUid() { - return applyUid_; - } - /** - * <code>uint32 applyUid = 1;</code> - * @param value The applyUid to set. - * @return This builder for chaining. - */ - public Builder setApplyUid(int value) { - - applyUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 applyUid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearApplyUid() { - - applyUid_ = 0; - onChanged(); - return this; - } - - private boolean isAgreed_ ; - /** - * <code>bool isAgreed = 2;</code> - * @return The isAgreed. - */ - @java.lang.Override - public boolean getIsAgreed() { - return isAgreed_; - } - /** - * <code>bool isAgreed = 2;</code> - * @param value The isAgreed to set. - * @return This builder for chaining. - */ - public Builder setIsAgreed(boolean value) { - - isAgreed_ = value; - onChanged(); - return this; - } - /** - * <code>bool isAgreed = 2;</code> - * @return This builder for chaining. - */ - public Builder clearIsAgreed() { - - isAgreed_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerApplyEnterMpResultReq) - } - - // @@protoc_insertion_point(class_scope:PlayerApplyEnterMpResultReq) - private static final emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq(); - } - - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PlayerApplyEnterMpResultReq> - PARSER = new com.google.protobuf.AbstractParser<PlayerApplyEnterMpResultReq>() { - @java.lang.Override - public PlayerApplyEnterMpResultReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerApplyEnterMpResultReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PlayerApplyEnterMpResultReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PlayerApplyEnterMpResultReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerApplyEnterMpResultReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerApplyEnterMpResultReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n!PlayerApplyEnterMpResultReq.proto\"A\n\033P" + - "layerApplyEnterMpResultReq\022\020\n\010applyUid\030\001" + - " \001(\r\022\020\n\010isAgreed\030\002 \001(\010B\033\n\031emu.grasscutte" + - "r.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_PlayerApplyEnterMpResultReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerApplyEnterMpResultReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerApplyEnterMpResultReq_descriptor, - new java.lang.String[] { "ApplyUid", "IsAgreed", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpResultRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpResultRspOuterClass.java deleted file mode 100644 index 7f3146f85..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpResultRspOuterClass.java +++ /dev/null @@ -1,749 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerApplyEnterMpResultRsp.proto - -package emu.grasscutter.net.proto; - -public final class PlayerApplyEnterMpResultRspOuterClass { - private PlayerApplyEnterMpResultRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerApplyEnterMpResultRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerApplyEnterMpResultRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint32 applyUid = 2;</code> - * @return The applyUid. - */ - int getApplyUid(); - - /** - * <code>bool isAgreed = 3;</code> - * @return The isAgreed. - */ - boolean getIsAgreed(); - - /** - * <code>uint32 param = 4;</code> - * @return The param. - */ - int getParam(); - } - /** - * Protobuf type {@code PlayerApplyEnterMpResultRsp} - */ - public static final class PlayerApplyEnterMpResultRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerApplyEnterMpResultRsp) - PlayerApplyEnterMpResultRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerApplyEnterMpResultRsp.newBuilder() to construct. - private PlayerApplyEnterMpResultRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PlayerApplyEnterMpResultRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerApplyEnterMpResultRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerApplyEnterMpResultRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - applyUid_ = input.readUInt32(); - break; - } - case 24: { - - isAgreed_ = input.readBool(); - break; - } - case 32: { - - param_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.internal_static_PlayerApplyEnterMpResultRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.internal_static_PlayerApplyEnterMpResultRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp.class, emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int APPLYUID_FIELD_NUMBER = 2; - private int applyUid_; - /** - * <code>uint32 applyUid = 2;</code> - * @return The applyUid. - */ - @java.lang.Override - public int getApplyUid() { - return applyUid_; - } - - public static final int ISAGREED_FIELD_NUMBER = 3; - private boolean isAgreed_; - /** - * <code>bool isAgreed = 3;</code> - * @return The isAgreed. - */ - @java.lang.Override - public boolean getIsAgreed() { - return isAgreed_; - } - - public static final int PARAM_FIELD_NUMBER = 4; - private int param_; - /** - * <code>uint32 param = 4;</code> - * @return The param. - */ - @java.lang.Override - public int getParam() { - return param_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (applyUid_ != 0) { - output.writeUInt32(2, applyUid_); - } - if (isAgreed_ != false) { - output.writeBool(3, isAgreed_); - } - if (param_ != 0) { - output.writeUInt32(4, param_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (applyUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, applyUid_); - } - if (isAgreed_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, isAgreed_); - } - if (param_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, param_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp other = (emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getApplyUid() - != other.getApplyUid()) return false; - if (getIsAgreed() - != other.getIsAgreed()) return false; - if (getParam() - != other.getParam()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + APPLYUID_FIELD_NUMBER; - hash = (53 * hash) + getApplyUid(); - hash = (37 * hash) + ISAGREED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsAgreed()); - hash = (37 * hash) + PARAM_FIELD_NUMBER; - hash = (53 * hash) + getParam(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PlayerApplyEnterMpResultRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerApplyEnterMpResultRsp) - emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.internal_static_PlayerApplyEnterMpResultRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.internal_static_PlayerApplyEnterMpResultRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp.class, emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - applyUid_ = 0; - - isAgreed_ = false; - - param_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.internal_static_PlayerApplyEnterMpResultRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp build() { - emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp buildPartial() { - emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp result = new emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp(this); - result.retcode_ = retcode_; - result.applyUid_ = applyUid_; - result.isAgreed_ = isAgreed_; - result.param_ = param_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp) { - return mergeFrom((emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp other) { - if (other == emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getApplyUid() != 0) { - setApplyUid(other.getApplyUid()); - } - if (other.getIsAgreed() != false) { - setIsAgreed(other.getIsAgreed()); - } - if (other.getParam() != 0) { - setParam(other.getParam()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int applyUid_ ; - /** - * <code>uint32 applyUid = 2;</code> - * @return The applyUid. - */ - @java.lang.Override - public int getApplyUid() { - return applyUid_; - } - /** - * <code>uint32 applyUid = 2;</code> - * @param value The applyUid to set. - * @return This builder for chaining. - */ - public Builder setApplyUid(int value) { - - applyUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 applyUid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearApplyUid() { - - applyUid_ = 0; - onChanged(); - return this; - } - - private boolean isAgreed_ ; - /** - * <code>bool isAgreed = 3;</code> - * @return The isAgreed. - */ - @java.lang.Override - public boolean getIsAgreed() { - return isAgreed_; - } - /** - * <code>bool isAgreed = 3;</code> - * @param value The isAgreed to set. - * @return This builder for chaining. - */ - public Builder setIsAgreed(boolean value) { - - isAgreed_ = value; - onChanged(); - return this; - } - /** - * <code>bool isAgreed = 3;</code> - * @return This builder for chaining. - */ - public Builder clearIsAgreed() { - - isAgreed_ = false; - onChanged(); - return this; - } - - private int param_ ; - /** - * <code>uint32 param = 4;</code> - * @return The param. - */ - @java.lang.Override - public int getParam() { - return param_; - } - /** - * <code>uint32 param = 4;</code> - * @param value The param to set. - * @return This builder for chaining. - */ - public Builder setParam(int value) { - - param_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 param = 4;</code> - * @return This builder for chaining. - */ - public Builder clearParam() { - - param_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerApplyEnterMpResultRsp) - } - - // @@protoc_insertion_point(class_scope:PlayerApplyEnterMpResultRsp) - private static final emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp(); - } - - public static emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PlayerApplyEnterMpResultRsp> - PARSER = new com.google.protobuf.AbstractParser<PlayerApplyEnterMpResultRsp>() { - @java.lang.Override - public PlayerApplyEnterMpResultRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerApplyEnterMpResultRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PlayerApplyEnterMpResultRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PlayerApplyEnterMpResultRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerApplyEnterMpResultRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerApplyEnterMpResultRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n!PlayerApplyEnterMpResultRsp.proto\"a\n\033P" + - "layerApplyEnterMpResultRsp\022\017\n\007retcode\030\001 " + - "\001(\005\022\020\n\010applyUid\030\002 \001(\r\022\020\n\010isAgreed\030\003 \001(\010\022" + - "\r\n\005param\030\004 \001(\rB\033\n\031emu.grasscutter.net.pr" + - "otob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_PlayerApplyEnterMpResultRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerApplyEnterMpResultRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerApplyEnterMpResultRsp_descriptor, - new java.lang.String[] { "Retcode", "ApplyUid", "IsAgreed", "Param", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpRspOuterClass.java deleted file mode 100644 index 027faca30..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpRspOuterClass.java +++ /dev/null @@ -1,677 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerApplyEnterMpRsp.proto - -package emu.grasscutter.net.proto; - -public final class PlayerApplyEnterMpRspOuterClass { - private PlayerApplyEnterMpRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerApplyEnterMpRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerApplyEnterMpRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint32 targetUid = 2;</code> - * @return The targetUid. - */ - int getTargetUid(); - - /** - * <code>uint32 param = 3;</code> - * @return The param. - */ - int getParam(); - } - /** - * Protobuf type {@code PlayerApplyEnterMpRsp} - */ - public static final class PlayerApplyEnterMpRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerApplyEnterMpRsp) - PlayerApplyEnterMpRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerApplyEnterMpRsp.newBuilder() to construct. - private PlayerApplyEnterMpRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PlayerApplyEnterMpRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerApplyEnterMpRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerApplyEnterMpRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - targetUid_ = input.readUInt32(); - break; - } - case 24: { - - param_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.internal_static_PlayerApplyEnterMpRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.internal_static_PlayerApplyEnterMpRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp.class, emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int TARGETUID_FIELD_NUMBER = 2; - private int targetUid_; - /** - * <code>uint32 targetUid = 2;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - - public static final int PARAM_FIELD_NUMBER = 3; - private int param_; - /** - * <code>uint32 param = 3;</code> - * @return The param. - */ - @java.lang.Override - public int getParam() { - return param_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (targetUid_ != 0) { - output.writeUInt32(2, targetUid_); - } - if (param_ != 0) { - output.writeUInt32(3, param_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (targetUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, targetUid_); - } - if (param_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, param_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp other = (emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getTargetUid() - != other.getTargetUid()) return false; - if (getParam() - != other.getParam()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + TARGETUID_FIELD_NUMBER; - hash = (53 * hash) + getTargetUid(); - hash = (37 * hash) + PARAM_FIELD_NUMBER; - hash = (53 * hash) + getParam(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PlayerApplyEnterMpRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerApplyEnterMpRsp) - emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.internal_static_PlayerApplyEnterMpRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.internal_static_PlayerApplyEnterMpRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp.class, emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - targetUid_ = 0; - - param_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.internal_static_PlayerApplyEnterMpRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp build() { - emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp buildPartial() { - emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp result = new emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp(this); - result.retcode_ = retcode_; - result.targetUid_ = targetUid_; - result.param_ = param_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp) { - return mergeFrom((emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp other) { - if (other == emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getTargetUid() != 0) { - setTargetUid(other.getTargetUid()); - } - if (other.getParam() != 0) { - setParam(other.getParam()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int targetUid_ ; - /** - * <code>uint32 targetUid = 2;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - /** - * <code>uint32 targetUid = 2;</code> - * @param value The targetUid to set. - * @return This builder for chaining. - */ - public Builder setTargetUid(int value) { - - targetUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 targetUid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearTargetUid() { - - targetUid_ = 0; - onChanged(); - return this; - } - - private int param_ ; - /** - * <code>uint32 param = 3;</code> - * @return The param. - */ - @java.lang.Override - public int getParam() { - return param_; - } - /** - * <code>uint32 param = 3;</code> - * @param value The param to set. - * @return This builder for chaining. - */ - public Builder setParam(int value) { - - param_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 param = 3;</code> - * @return This builder for chaining. - */ - public Builder clearParam() { - - param_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerApplyEnterMpRsp) - } - - // @@protoc_insertion_point(class_scope:PlayerApplyEnterMpRsp) - private static final emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp(); - } - - public static emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PlayerApplyEnterMpRsp> - PARSER = new com.google.protobuf.AbstractParser<PlayerApplyEnterMpRsp>() { - @java.lang.Override - public PlayerApplyEnterMpRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerApplyEnterMpRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PlayerApplyEnterMpRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PlayerApplyEnterMpRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerApplyEnterMpRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerApplyEnterMpRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033PlayerApplyEnterMpRsp.proto\"J\n\025PlayerA" + - "pplyEnterMpRsp\022\017\n\007retcode\030\001 \001(\005\022\021\n\ttarge" + - "tUid\030\002 \001(\r\022\r\n\005param\030\003 \001(\rB\033\n\031emu.grasscu" + - "tter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_PlayerApplyEnterMpRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerApplyEnterMpRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerApplyEnterMpRsp_descriptor, - new java.lang.String[] { "Retcode", "TargetUid", "Param", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PlayerChatNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PlayerChatNotifyOuterClass.java deleted file mode 100644 index 55840f59f..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PlayerChatNotifyOuterClass.java +++ /dev/null @@ -1,742 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerChatNotify.proto - -package emu.grasscutter.net.proto; - -public final class PlayerChatNotifyOuterClass { - private PlayerChatNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerChatNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerChatNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 channelId = 1;</code> - * @return The channelId. - */ - int getChannelId(); - - /** - * <code>.ChatInfo chatInfo = 2;</code> - * @return Whether the chatInfo field is set. - */ - boolean hasChatInfo(); - /** - * <code>.ChatInfo chatInfo = 2;</code> - * @return The chatInfo. - */ - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo(); - /** - * <code>.ChatInfo chatInfo = 2;</code> - */ - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder getChatInfoOrBuilder(); - } - /** - * Protobuf type {@code PlayerChatNotify} - */ - public static final class PlayerChatNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerChatNotify) - PlayerChatNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerChatNotify.newBuilder() to construct. - private PlayerChatNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PlayerChatNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerChatNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerChatNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - channelId_ = input.readUInt32(); - break; - } - case 18: { - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder subBuilder = null; - if (chatInfo_ != null) { - subBuilder = chatInfo_.toBuilder(); - } - chatInfo_ = input.readMessage(emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(chatInfo_); - chatInfo_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.internal_static_PlayerChatNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.internal_static_PlayerChatNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify.class, emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify.Builder.class); - } - - public static final int CHANNELID_FIELD_NUMBER = 1; - private int channelId_; - /** - * <code>uint32 channelId = 1;</code> - * @return The channelId. - */ - @java.lang.Override - public int getChannelId() { - return channelId_; - } - - public static final int CHATINFO_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo chatInfo_; - /** - * <code>.ChatInfo chatInfo = 2;</code> - * @return Whether the chatInfo field is set. - */ - @java.lang.Override - public boolean hasChatInfo() { - return chatInfo_ != null; - } - /** - * <code>.ChatInfo chatInfo = 2;</code> - * @return The chatInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo() { - return chatInfo_ == null ? emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.getDefaultInstance() : chatInfo_; - } - /** - * <code>.ChatInfo chatInfo = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder getChatInfoOrBuilder() { - return getChatInfo(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (channelId_ != 0) { - output.writeUInt32(1, channelId_); - } - if (chatInfo_ != null) { - output.writeMessage(2, getChatInfo()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (channelId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, channelId_); - } - if (chatInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getChatInfo()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify other = (emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify) obj; - - if (getChannelId() - != other.getChannelId()) return false; - if (hasChatInfo() != other.hasChatInfo()) return false; - if (hasChatInfo()) { - if (!getChatInfo() - .equals(other.getChatInfo())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CHANNELID_FIELD_NUMBER; - hash = (53 * hash) + getChannelId(); - if (hasChatInfo()) { - hash = (37 * hash) + CHATINFO_FIELD_NUMBER; - hash = (53 * hash) + getChatInfo().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PlayerChatNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerChatNotify) - emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.internal_static_PlayerChatNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.internal_static_PlayerChatNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify.class, emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - channelId_ = 0; - - if (chatInfoBuilder_ == null) { - chatInfo_ = null; - } else { - chatInfo_ = null; - chatInfoBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.internal_static_PlayerChatNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify build() { - emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify buildPartial() { - emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify result = new emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify(this); - result.channelId_ = channelId_; - if (chatInfoBuilder_ == null) { - result.chatInfo_ = chatInfo_; - } else { - result.chatInfo_ = chatInfoBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify) { - return mergeFrom((emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify other) { - if (other == emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify.getDefaultInstance()) return this; - if (other.getChannelId() != 0) { - setChannelId(other.getChannelId()); - } - if (other.hasChatInfo()) { - mergeChatInfo(other.getChatInfo()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int channelId_ ; - /** - * <code>uint32 channelId = 1;</code> - * @return The channelId. - */ - @java.lang.Override - public int getChannelId() { - return channelId_; - } - /** - * <code>uint32 channelId = 1;</code> - * @param value The channelId to set. - * @return This builder for chaining. - */ - public Builder setChannelId(int value) { - - channelId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 channelId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearChannelId() { - - channelId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo chatInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder> chatInfoBuilder_; - /** - * <code>.ChatInfo chatInfo = 2;</code> - * @return Whether the chatInfo field is set. - */ - public boolean hasChatInfo() { - return chatInfoBuilder_ != null || chatInfo_ != null; - } - /** - * <code>.ChatInfo chatInfo = 2;</code> - * @return The chatInfo. - */ - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo() { - if (chatInfoBuilder_ == null) { - return chatInfo_ == null ? emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.getDefaultInstance() : chatInfo_; - } else { - return chatInfoBuilder_.getMessage(); - } - } - /** - * <code>.ChatInfo chatInfo = 2;</code> - */ - public Builder setChatInfo(emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo value) { - if (chatInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - chatInfo_ = value; - onChanged(); - } else { - chatInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.ChatInfo chatInfo = 2;</code> - */ - public Builder setChatInfo( - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder builderForValue) { - if (chatInfoBuilder_ == null) { - chatInfo_ = builderForValue.build(); - onChanged(); - } else { - chatInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.ChatInfo chatInfo = 2;</code> - */ - public Builder mergeChatInfo(emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo value) { - if (chatInfoBuilder_ == null) { - if (chatInfo_ != null) { - chatInfo_ = - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.newBuilder(chatInfo_).mergeFrom(value).buildPartial(); - } else { - chatInfo_ = value; - } - onChanged(); - } else { - chatInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.ChatInfo chatInfo = 2;</code> - */ - public Builder clearChatInfo() { - if (chatInfoBuilder_ == null) { - chatInfo_ = null; - onChanged(); - } else { - chatInfo_ = null; - chatInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.ChatInfo chatInfo = 2;</code> - */ - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder getChatInfoBuilder() { - - onChanged(); - return getChatInfoFieldBuilder().getBuilder(); - } - /** - * <code>.ChatInfo chatInfo = 2;</code> - */ - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder getChatInfoOrBuilder() { - if (chatInfoBuilder_ != null) { - return chatInfoBuilder_.getMessageOrBuilder(); - } else { - return chatInfo_ == null ? - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.getDefaultInstance() : chatInfo_; - } - } - /** - * <code>.ChatInfo chatInfo = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder> - getChatInfoFieldBuilder() { - if (chatInfoBuilder_ == null) { - chatInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder>( - getChatInfo(), - getParentForChildren(), - isClean()); - chatInfo_ = null; - } - return chatInfoBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerChatNotify) - } - - // @@protoc_insertion_point(class_scope:PlayerChatNotify) - private static final emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify(); - } - - public static emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PlayerChatNotify> - PARSER = new com.google.protobuf.AbstractParser<PlayerChatNotify>() { - @java.lang.Override - public PlayerChatNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerChatNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PlayerChatNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PlayerChatNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerChatNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerChatNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026PlayerChatNotify.proto\032\016ChatInfo.proto" + - "\"B\n\020PlayerChatNotify\022\021\n\tchannelId\030\001 \001(\r\022" + - "\033\n\010chatInfo\030\002 \001(\0132\t.ChatInfoB\033\n\031emu.gras" + - "scutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ChatInfoOuterClass.getDescriptor(), - }); - internal_static_PlayerChatNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerChatNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerChatNotify_descriptor, - new java.lang.String[] { "ChannelId", "ChatInfo", }); - emu.grasscutter.net.proto.ChatInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PlayerChatReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PlayerChatReqOuterClass.java deleted file mode 100644 index cee2c3705..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PlayerChatReqOuterClass.java +++ /dev/null @@ -1,742 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerChatReq.proto - -package emu.grasscutter.net.proto; - -public final class PlayerChatReqOuterClass { - private PlayerChatReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerChatReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerChatReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 channelId = 1;</code> - * @return The channelId. - */ - int getChannelId(); - - /** - * <code>.ChatInfo chatInfo = 2;</code> - * @return Whether the chatInfo field is set. - */ - boolean hasChatInfo(); - /** - * <code>.ChatInfo chatInfo = 2;</code> - * @return The chatInfo. - */ - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo(); - /** - * <code>.ChatInfo chatInfo = 2;</code> - */ - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder getChatInfoOrBuilder(); - } - /** - * Protobuf type {@code PlayerChatReq} - */ - public static final class PlayerChatReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerChatReq) - PlayerChatReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerChatReq.newBuilder() to construct. - private PlayerChatReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PlayerChatReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerChatReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerChatReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - channelId_ = input.readUInt32(); - break; - } - case 18: { - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder subBuilder = null; - if (chatInfo_ != null) { - subBuilder = chatInfo_.toBuilder(); - } - chatInfo_ = input.readMessage(emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(chatInfo_); - chatInfo_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerChatReqOuterClass.internal_static_PlayerChatReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerChatReqOuterClass.internal_static_PlayerChatReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq.class, emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq.Builder.class); - } - - public static final int CHANNELID_FIELD_NUMBER = 1; - private int channelId_; - /** - * <code>uint32 channelId = 1;</code> - * @return The channelId. - */ - @java.lang.Override - public int getChannelId() { - return channelId_; - } - - public static final int CHATINFO_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo chatInfo_; - /** - * <code>.ChatInfo chatInfo = 2;</code> - * @return Whether the chatInfo field is set. - */ - @java.lang.Override - public boolean hasChatInfo() { - return chatInfo_ != null; - } - /** - * <code>.ChatInfo chatInfo = 2;</code> - * @return The chatInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo() { - return chatInfo_ == null ? emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.getDefaultInstance() : chatInfo_; - } - /** - * <code>.ChatInfo chatInfo = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder getChatInfoOrBuilder() { - return getChatInfo(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (channelId_ != 0) { - output.writeUInt32(1, channelId_); - } - if (chatInfo_ != null) { - output.writeMessage(2, getChatInfo()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (channelId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, channelId_); - } - if (chatInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getChatInfo()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq other = (emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq) obj; - - if (getChannelId() - != other.getChannelId()) return false; - if (hasChatInfo() != other.hasChatInfo()) return false; - if (hasChatInfo()) { - if (!getChatInfo() - .equals(other.getChatInfo())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CHANNELID_FIELD_NUMBER; - hash = (53 * hash) + getChannelId(); - if (hasChatInfo()) { - hash = (37 * hash) + CHATINFO_FIELD_NUMBER; - hash = (53 * hash) + getChatInfo().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PlayerChatReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerChatReq) - emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerChatReqOuterClass.internal_static_PlayerChatReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerChatReqOuterClass.internal_static_PlayerChatReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq.class, emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - channelId_ = 0; - - if (chatInfoBuilder_ == null) { - chatInfo_ = null; - } else { - chatInfo_ = null; - chatInfoBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerChatReqOuterClass.internal_static_PlayerChatReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq build() { - emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq buildPartial() { - emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq result = new emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq(this); - result.channelId_ = channelId_; - if (chatInfoBuilder_ == null) { - result.chatInfo_ = chatInfo_; - } else { - result.chatInfo_ = chatInfoBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq) { - return mergeFrom((emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq other) { - if (other == emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq.getDefaultInstance()) return this; - if (other.getChannelId() != 0) { - setChannelId(other.getChannelId()); - } - if (other.hasChatInfo()) { - mergeChatInfo(other.getChatInfo()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int channelId_ ; - /** - * <code>uint32 channelId = 1;</code> - * @return The channelId. - */ - @java.lang.Override - public int getChannelId() { - return channelId_; - } - /** - * <code>uint32 channelId = 1;</code> - * @param value The channelId to set. - * @return This builder for chaining. - */ - public Builder setChannelId(int value) { - - channelId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 channelId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearChannelId() { - - channelId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo chatInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder> chatInfoBuilder_; - /** - * <code>.ChatInfo chatInfo = 2;</code> - * @return Whether the chatInfo field is set. - */ - public boolean hasChatInfo() { - return chatInfoBuilder_ != null || chatInfo_ != null; - } - /** - * <code>.ChatInfo chatInfo = 2;</code> - * @return The chatInfo. - */ - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo() { - if (chatInfoBuilder_ == null) { - return chatInfo_ == null ? emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.getDefaultInstance() : chatInfo_; - } else { - return chatInfoBuilder_.getMessage(); - } - } - /** - * <code>.ChatInfo chatInfo = 2;</code> - */ - public Builder setChatInfo(emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo value) { - if (chatInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - chatInfo_ = value; - onChanged(); - } else { - chatInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.ChatInfo chatInfo = 2;</code> - */ - public Builder setChatInfo( - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder builderForValue) { - if (chatInfoBuilder_ == null) { - chatInfo_ = builderForValue.build(); - onChanged(); - } else { - chatInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.ChatInfo chatInfo = 2;</code> - */ - public Builder mergeChatInfo(emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo value) { - if (chatInfoBuilder_ == null) { - if (chatInfo_ != null) { - chatInfo_ = - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.newBuilder(chatInfo_).mergeFrom(value).buildPartial(); - } else { - chatInfo_ = value; - } - onChanged(); - } else { - chatInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.ChatInfo chatInfo = 2;</code> - */ - public Builder clearChatInfo() { - if (chatInfoBuilder_ == null) { - chatInfo_ = null; - onChanged(); - } else { - chatInfo_ = null; - chatInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.ChatInfo chatInfo = 2;</code> - */ - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder getChatInfoBuilder() { - - onChanged(); - return getChatInfoFieldBuilder().getBuilder(); - } - /** - * <code>.ChatInfo chatInfo = 2;</code> - */ - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder getChatInfoOrBuilder() { - if (chatInfoBuilder_ != null) { - return chatInfoBuilder_.getMessageOrBuilder(); - } else { - return chatInfo_ == null ? - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.getDefaultInstance() : chatInfo_; - } - } - /** - * <code>.ChatInfo chatInfo = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder> - getChatInfoFieldBuilder() { - if (chatInfoBuilder_ == null) { - chatInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder>( - getChatInfo(), - getParentForChildren(), - isClean()); - chatInfo_ = null; - } - return chatInfoBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerChatReq) - } - - // @@protoc_insertion_point(class_scope:PlayerChatReq) - private static final emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq(); - } - - public static emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PlayerChatReq> - PARSER = new com.google.protobuf.AbstractParser<PlayerChatReq>() { - @java.lang.Override - public PlayerChatReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerChatReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PlayerChatReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PlayerChatReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerChatReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerChatReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023PlayerChatReq.proto\032\016ChatInfo.proto\"?\n" + - "\rPlayerChatReq\022\021\n\tchannelId\030\001 \001(\r\022\033\n\010cha" + - "tInfo\030\002 \001(\0132\t.ChatInfoB\033\n\031emu.grasscutte" + - "r.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ChatInfoOuterClass.getDescriptor(), - }); - internal_static_PlayerChatReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerChatReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerChatReq_descriptor, - new java.lang.String[] { "ChannelId", "ChatInfo", }); - emu.grasscutter.net.proto.ChatInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PlayerChatRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PlayerChatRspOuterClass.java deleted file mode 100644 index b85aeb04e..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PlayerChatRspOuterClass.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerChatRsp.proto - -package emu.grasscutter.net.proto; - -public final class PlayerChatRspOuterClass { - private PlayerChatRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerChatRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerChatRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint32 chatForbiddenEndtime = 2;</code> - * @return The chatForbiddenEndtime. - */ - int getChatForbiddenEndtime(); - } - /** - * Protobuf type {@code PlayerChatRsp} - */ - public static final class PlayerChatRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerChatRsp) - PlayerChatRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerChatRsp.newBuilder() to construct. - private PlayerChatRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PlayerChatRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerChatRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerChatRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - chatForbiddenEndtime_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerChatRspOuterClass.internal_static_PlayerChatRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerChatRspOuterClass.internal_static_PlayerChatRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp.class, emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int CHATFORBIDDENENDTIME_FIELD_NUMBER = 2; - private int chatForbiddenEndtime_; - /** - * <code>uint32 chatForbiddenEndtime = 2;</code> - * @return The chatForbiddenEndtime. - */ - @java.lang.Override - public int getChatForbiddenEndtime() { - return chatForbiddenEndtime_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (chatForbiddenEndtime_ != 0) { - output.writeUInt32(2, chatForbiddenEndtime_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (chatForbiddenEndtime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, chatForbiddenEndtime_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp other = (emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getChatForbiddenEndtime() - != other.getChatForbiddenEndtime()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + CHATFORBIDDENENDTIME_FIELD_NUMBER; - hash = (53 * hash) + getChatForbiddenEndtime(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PlayerChatRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerChatRsp) - emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerChatRspOuterClass.internal_static_PlayerChatRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerChatRspOuterClass.internal_static_PlayerChatRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp.class, emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - chatForbiddenEndtime_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerChatRspOuterClass.internal_static_PlayerChatRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp build() { - emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp buildPartial() { - emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp result = new emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp(this); - result.retcode_ = retcode_; - result.chatForbiddenEndtime_ = chatForbiddenEndtime_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp) { - return mergeFrom((emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp other) { - if (other == emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getChatForbiddenEndtime() != 0) { - setChatForbiddenEndtime(other.getChatForbiddenEndtime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int chatForbiddenEndtime_ ; - /** - * <code>uint32 chatForbiddenEndtime = 2;</code> - * @return The chatForbiddenEndtime. - */ - @java.lang.Override - public int getChatForbiddenEndtime() { - return chatForbiddenEndtime_; - } - /** - * <code>uint32 chatForbiddenEndtime = 2;</code> - * @param value The chatForbiddenEndtime to set. - * @return This builder for chaining. - */ - public Builder setChatForbiddenEndtime(int value) { - - chatForbiddenEndtime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 chatForbiddenEndtime = 2;</code> - * @return This builder for chaining. - */ - public Builder clearChatForbiddenEndtime() { - - chatForbiddenEndtime_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerChatRsp) - } - - // @@protoc_insertion_point(class_scope:PlayerChatRsp) - private static final emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp(); - } - - public static emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PlayerChatRsp> - PARSER = new com.google.protobuf.AbstractParser<PlayerChatRsp>() { - @java.lang.Override - public PlayerChatRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerChatRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PlayerChatRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PlayerChatRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerChatRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerChatRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023PlayerChatRsp.proto\">\n\rPlayerChatRsp\022\017" + - "\n\007retcode\030\001 \001(\005\022\034\n\024chatForbiddenEndtime\030" + - "\002 \001(\rB\033\n\031emu.grasscutter.net.protob\006prot" + - "o3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_PlayerChatRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerChatRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerChatRsp_descriptor, - new java.lang.String[] { "Retcode", "ChatForbiddenEndtime", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PlayerDataNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PlayerDataNotifyOuterClass.java deleted file mode 100644 index 813089dee..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PlayerDataNotifyOuterClass.java +++ /dev/null @@ -1,1166 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerDataNotify.proto - -package emu.grasscutter.net.proto; - -public final class PlayerDataNotifyOuterClass { - private PlayerDataNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerDataNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerDataNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>string nickName = 1;</code> - * @return The nickName. - */ - java.lang.String getNickName(); - /** - * <code>string nickName = 1;</code> - * @return The bytes for nickName. - */ - com.google.protobuf.ByteString - getNickNameBytes(); - - /** - * <code>uint64 clientTime = 2;</code> - * @return The clientTime. - */ - long getClientTime(); - - /** - * <code>bool isFirstLoginToday = 3;</code> - * @return The isFirstLoginToday. - */ - boolean getIsFirstLoginToday(); - - /** - * <code>uint32 regionId = 4;</code> - * @return The regionId. - */ - int getRegionId(); - - /** - * <code>map<uint32, .PropValue> propMap = 6;</code> - */ - int getPropMapCount(); - /** - * <code>map<uint32, .PropValue> propMap = 6;</code> - */ - boolean containsPropMap( - int key); - /** - * Use {@link #getPropMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - getPropMap(); - /** - * <code>map<uint32, .PropValue> propMap = 6;</code> - */ - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - getPropMapMap(); - /** - * <code>map<uint32, .PropValue> propMap = 6;</code> - */ - - emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrDefault( - int key, - emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue); - /** - * <code>map<uint32, .PropValue> propMap = 6;</code> - */ - - emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrThrow( - int key); - } - /** - * Protobuf type {@code PlayerDataNotify} - */ - public static final class PlayerDataNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerDataNotify) - PlayerDataNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerDataNotify.newBuilder() to construct. - private PlayerDataNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PlayerDataNotify() { - nickName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerDataNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerDataNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - nickName_ = s; - break; - } - case 16: { - - clientTime_ = input.readUInt64(); - break; - } - case 24: { - - isFirstLoginToday_ = input.readBool(); - break; - } - case 32: { - - regionId_ = input.readUInt32(); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - propMap_ = com.google.protobuf.MapField.newMapField( - PropMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - propMap__ = input.readMessage( - PropMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - propMap_.getMutableMap().put( - propMap__.getKey(), propMap__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.internal_static_PlayerDataNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 6: - return internalGetPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.internal_static_PlayerDataNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify.class, emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify.Builder.class); - } - - public static final int NICKNAME_FIELD_NUMBER = 1; - private volatile java.lang.Object nickName_; - /** - * <code>string nickName = 1;</code> - * @return The nickName. - */ - @java.lang.Override - public java.lang.String getNickName() { - java.lang.Object ref = nickName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nickName_ = s; - return s; - } - } - /** - * <code>string nickName = 1;</code> - * @return The bytes for nickName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNickNameBytes() { - java.lang.Object ref = nickName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nickName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENTTIME_FIELD_NUMBER = 2; - private long clientTime_; - /** - * <code>uint64 clientTime = 2;</code> - * @return The clientTime. - */ - @java.lang.Override - public long getClientTime() { - return clientTime_; - } - - public static final int ISFIRSTLOGINTODAY_FIELD_NUMBER = 3; - private boolean isFirstLoginToday_; - /** - * <code>bool isFirstLoginToday = 3;</code> - * @return The isFirstLoginToday. - */ - @java.lang.Override - public boolean getIsFirstLoginToday() { - return isFirstLoginToday_; - } - - public static final int REGIONID_FIELD_NUMBER = 4; - private int regionId_; - /** - * <code>uint32 regionId = 4;</code> - * @return The regionId. - */ - @java.lang.Override - public int getRegionId() { - return regionId_; - } - - public static final int PROPMAP_FIELD_NUMBER = 6; - private static final class PropMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue>newDefaultInstance( - emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.internal_static_PlayerDataNotify_PropMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - emu.grasscutter.net.proto.PropValueOuterClass.PropValue.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> propMap_; - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - internalGetPropMap() { - if (propMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropMapDefaultEntryHolder.defaultEntry); - } - return propMap_; - } - - public int getPropMapCount() { - return internalGetPropMap().getMap().size(); - } - /** - * <code>map<uint32, .PropValue> propMap = 6;</code> - */ - - @java.lang.Override - public boolean containsPropMap( - int key) { - - return internalGetPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> getPropMap() { - return getPropMapMap(); - } - /** - * <code>map<uint32, .PropValue> propMap = 6;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> getPropMapMap() { - return internalGetPropMap().getMap(); - } - /** - * <code>map<uint32, .PropValue> propMap = 6;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrDefault( - int key, - emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> map = - internalGetPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, .PropValue> propMap = 6;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> map = - internalGetPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getNickNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nickName_); - } - if (clientTime_ != 0L) { - output.writeUInt64(2, clientTime_); - } - if (isFirstLoginToday_ != false) { - output.writeBool(3, isFirstLoginToday_); - } - if (regionId_ != 0) { - output.writeUInt32(4, regionId_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetPropMap(), - PropMapDefaultEntryHolder.defaultEntry, - 6); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNickNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nickName_); - } - if (clientTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, clientTime_); - } - if (isFirstLoginToday_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, isFirstLoginToday_); - } - if (regionId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, regionId_); - } - for (java.util.Map.Entry<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> entry - : internalGetPropMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - propMap__ = PropMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, propMap__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify other = (emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify) obj; - - if (!getNickName() - .equals(other.getNickName())) return false; - if (getClientTime() - != other.getClientTime()) return false; - if (getIsFirstLoginToday() - != other.getIsFirstLoginToday()) return false; - if (getRegionId() - != other.getRegionId()) return false; - if (!internalGetPropMap().equals( - other.internalGetPropMap())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NICKNAME_FIELD_NUMBER; - hash = (53 * hash) + getNickName().hashCode(); - hash = (37 * hash) + CLIENTTIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getClientTime()); - hash = (37 * hash) + ISFIRSTLOGINTODAY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsFirstLoginToday()); - hash = (37 * hash) + REGIONID_FIELD_NUMBER; - hash = (53 * hash) + getRegionId(); - if (!internalGetPropMap().getMap().isEmpty()) { - hash = (37 * hash) + PROPMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetPropMap().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PlayerDataNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerDataNotify) - emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.internal_static_PlayerDataNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 6: - return internalGetPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 6: - return internalGetMutablePropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.internal_static_PlayerDataNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify.class, emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - nickName_ = ""; - - clientTime_ = 0L; - - isFirstLoginToday_ = false; - - regionId_ = 0; - - internalGetMutablePropMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.internal_static_PlayerDataNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify build() { - emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify buildPartial() { - emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify result = new emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify(this); - int from_bitField0_ = bitField0_; - result.nickName_ = nickName_; - result.clientTime_ = clientTime_; - result.isFirstLoginToday_ = isFirstLoginToday_; - result.regionId_ = regionId_; - result.propMap_ = internalGetPropMap(); - result.propMap_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify) { - return mergeFrom((emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify other) { - if (other == emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify.getDefaultInstance()) return this; - if (!other.getNickName().isEmpty()) { - nickName_ = other.nickName_; - onChanged(); - } - if (other.getClientTime() != 0L) { - setClientTime(other.getClientTime()); - } - if (other.getIsFirstLoginToday() != false) { - setIsFirstLoginToday(other.getIsFirstLoginToday()); - } - if (other.getRegionId() != 0) { - setRegionId(other.getRegionId()); - } - internalGetMutablePropMap().mergeFrom( - other.internalGetPropMap()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object nickName_ = ""; - /** - * <code>string nickName = 1;</code> - * @return The nickName. - */ - public java.lang.String getNickName() { - java.lang.Object ref = nickName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nickName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string nickName = 1;</code> - * @return The bytes for nickName. - */ - public com.google.protobuf.ByteString - getNickNameBytes() { - java.lang.Object ref = nickName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nickName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string nickName = 1;</code> - * @param value The nickName to set. - * @return This builder for chaining. - */ - public Builder setNickName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nickName_ = value; - onChanged(); - return this; - } - /** - * <code>string nickName = 1;</code> - * @return This builder for chaining. - */ - public Builder clearNickName() { - - nickName_ = getDefaultInstance().getNickName(); - onChanged(); - return this; - } - /** - * <code>string nickName = 1;</code> - * @param value The bytes for nickName to set. - * @return This builder for chaining. - */ - public Builder setNickNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nickName_ = value; - onChanged(); - return this; - } - - private long clientTime_ ; - /** - * <code>uint64 clientTime = 2;</code> - * @return The clientTime. - */ - @java.lang.Override - public long getClientTime() { - return clientTime_; - } - /** - * <code>uint64 clientTime = 2;</code> - * @param value The clientTime to set. - * @return This builder for chaining. - */ - public Builder setClientTime(long value) { - - clientTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 clientTime = 2;</code> - * @return This builder for chaining. - */ - public Builder clearClientTime() { - - clientTime_ = 0L; - onChanged(); - return this; - } - - private boolean isFirstLoginToday_ ; - /** - * <code>bool isFirstLoginToday = 3;</code> - * @return The isFirstLoginToday. - */ - @java.lang.Override - public boolean getIsFirstLoginToday() { - return isFirstLoginToday_; - } - /** - * <code>bool isFirstLoginToday = 3;</code> - * @param value The isFirstLoginToday to set. - * @return This builder for chaining. - */ - public Builder setIsFirstLoginToday(boolean value) { - - isFirstLoginToday_ = value; - onChanged(); - return this; - } - /** - * <code>bool isFirstLoginToday = 3;</code> - * @return This builder for chaining. - */ - public Builder clearIsFirstLoginToday() { - - isFirstLoginToday_ = false; - onChanged(); - return this; - } - - private int regionId_ ; - /** - * <code>uint32 regionId = 4;</code> - * @return The regionId. - */ - @java.lang.Override - public int getRegionId() { - return regionId_; - } - /** - * <code>uint32 regionId = 4;</code> - * @param value The regionId to set. - * @return This builder for chaining. - */ - public Builder setRegionId(int value) { - - regionId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 regionId = 4;</code> - * @return This builder for chaining. - */ - public Builder clearRegionId() { - - regionId_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> propMap_; - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - internalGetPropMap() { - if (propMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropMapDefaultEntryHolder.defaultEntry); - } - return propMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - internalGetMutablePropMap() { - onChanged();; - if (propMap_ == null) { - propMap_ = com.google.protobuf.MapField.newMapField( - PropMapDefaultEntryHolder.defaultEntry); - } - if (!propMap_.isMutable()) { - propMap_ = propMap_.copy(); - } - return propMap_; - } - - public int getPropMapCount() { - return internalGetPropMap().getMap().size(); - } - /** - * <code>map<uint32, .PropValue> propMap = 6;</code> - */ - - @java.lang.Override - public boolean containsPropMap( - int key) { - - return internalGetPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> getPropMap() { - return getPropMapMap(); - } - /** - * <code>map<uint32, .PropValue> propMap = 6;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> getPropMapMap() { - return internalGetPropMap().getMap(); - } - /** - * <code>map<uint32, .PropValue> propMap = 6;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrDefault( - int key, - emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> map = - internalGetPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, .PropValue> propMap = 6;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> map = - internalGetPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearPropMap() { - internalGetMutablePropMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, .PropValue> propMap = 6;</code> - */ - - public Builder removePropMap( - int key) { - - internalGetMutablePropMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - getMutablePropMap() { - return internalGetMutablePropMap().getMutableMap(); - } - /** - * <code>map<uint32, .PropValue> propMap = 6;</code> - */ - public Builder putPropMap( - int key, - emu.grasscutter.net.proto.PropValueOuterClass.PropValue value) { - - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutablePropMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, .PropValue> propMap = 6;</code> - */ - - public Builder putAllPropMap( - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> values) { - internalGetMutablePropMap().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerDataNotify) - } - - // @@protoc_insertion_point(class_scope:PlayerDataNotify) - private static final emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify(); - } - - public static emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PlayerDataNotify> - PARSER = new com.google.protobuf.AbstractParser<PlayerDataNotify>() { - @java.lang.Override - public PlayerDataNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerDataNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PlayerDataNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PlayerDataNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerDataNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerDataNotify_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerDataNotify_PropMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerDataNotify_PropMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026PlayerDataNotify.proto\032\017PropValue.prot" + - "o\"\322\001\n\020PlayerDataNotify\022\020\n\010nickName\030\001 \001(\t" + - "\022\022\n\nclientTime\030\002 \001(\004\022\031\n\021isFirstLoginToda" + - "y\030\003 \001(\010\022\020\n\010regionId\030\004 \001(\r\022/\n\007propMap\030\006 \003" + - "(\0132\036.PlayerDataNotify.PropMapEntry\032:\n\014Pr" + - "opMapEntry\022\013\n\003key\030\001 \001(\r\022\031\n\005value\030\002 \001(\0132\n" + - ".PropValue:\0028\001B\033\n\031emu.grasscutter.net.pr" + - "otob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.PropValueOuterClass.getDescriptor(), - }); - internal_static_PlayerDataNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerDataNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerDataNotify_descriptor, - new java.lang.String[] { "NickName", "ClientTime", "IsFirstLoginToday", "RegionId", "PropMap", }); - internal_static_PlayerDataNotify_PropMapEntry_descriptor = - internal_static_PlayerDataNotify_descriptor.getNestedTypes().get(0); - internal_static_PlayerDataNotify_PropMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerDataNotify_PropMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - emu.grasscutter.net.proto.PropValueOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PlayerDieTypeOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PlayerDieTypeOuterClass.java deleted file mode 100644 index cb46fb3f7..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PlayerDieTypeOuterClass.java +++ /dev/null @@ -1,212 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerDieType.proto - -package emu.grasscutter.net.proto; - -public final class PlayerDieTypeOuterClass { - private PlayerDieTypeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code PlayerDieType} - */ - public enum PlayerDieType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>PlayerDieNone = 0;</code> - */ - PlayerDieNone(0), - /** - * <code>PlayerDieKillByMonster = 1;</code> - */ - PlayerDieKillByMonster(1), - /** - * <code>PlayerDieKillByGear = 2;</code> - */ - PlayerDieKillByGear(2), - /** - * <code>PlayerDieFall = 3;</code> - */ - PlayerDieFall(3), - /** - * <code>PlayerDieDrawn = 4;</code> - */ - PlayerDieDrawn(4), - /** - * <code>PlayerDieAbyss = 5;</code> - */ - PlayerDieAbyss(5), - /** - * <code>PlayerDieGm = 6;</code> - */ - PlayerDieGm(6), - /** - * <code>PlayerDieClimateCold = 7;</code> - */ - PlayerDieClimateCold(7), - /** - * <code>PlayerDieStormLighting = 8;</code> - */ - PlayerDieStormLighting(8), - UNRECOGNIZED(-1), - ; - - /** - * <code>PlayerDieNone = 0;</code> - */ - public static final int PlayerDieNone_VALUE = 0; - /** - * <code>PlayerDieKillByMonster = 1;</code> - */ - public static final int PlayerDieKillByMonster_VALUE = 1; - /** - * <code>PlayerDieKillByGear = 2;</code> - */ - public static final int PlayerDieKillByGear_VALUE = 2; - /** - * <code>PlayerDieFall = 3;</code> - */ - public static final int PlayerDieFall_VALUE = 3; - /** - * <code>PlayerDieDrawn = 4;</code> - */ - public static final int PlayerDieDrawn_VALUE = 4; - /** - * <code>PlayerDieAbyss = 5;</code> - */ - public static final int PlayerDieAbyss_VALUE = 5; - /** - * <code>PlayerDieGm = 6;</code> - */ - public static final int PlayerDieGm_VALUE = 6; - /** - * <code>PlayerDieClimateCold = 7;</code> - */ - public static final int PlayerDieClimateCold_VALUE = 7; - /** - * <code>PlayerDieStormLighting = 8;</code> - */ - public static final int PlayerDieStormLighting_VALUE = 8; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PlayerDieType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static PlayerDieType forNumber(int value) { - switch (value) { - case 0: return PlayerDieNone; - case 1: return PlayerDieKillByMonster; - case 2: return PlayerDieKillByGear; - case 3: return PlayerDieFall; - case 4: return PlayerDieDrawn; - case 5: return PlayerDieAbyss; - case 6: return PlayerDieGm; - case 7: return PlayerDieClimateCold; - case 8: return PlayerDieStormLighting; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<PlayerDieType> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - PlayerDieType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<PlayerDieType>() { - public PlayerDieType findValueByNumber(int number) { - return PlayerDieType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerDieTypeOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final PlayerDieType[] VALUES = values(); - - public static PlayerDieType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private PlayerDieType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:PlayerDieType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023PlayerDieType.proto*\331\001\n\rPlayerDieType\022" + - "\021\n\rPlayerDieNone\020\000\022\032\n\026PlayerDieKillByMon" + - "ster\020\001\022\027\n\023PlayerDieKillByGear\020\002\022\021\n\rPlaye" + - "rDieFall\020\003\022\022\n\016PlayerDieDrawn\020\004\022\022\n\016Player" + - "DieAbyss\020\005\022\017\n\013PlayerDieGm\020\006\022\030\n\024PlayerDie" + - "ClimateCold\020\007\022\032\n\026PlayerDieStormLighting\020" + - "\010B\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PlayerEnterSceneInfoNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PlayerEnterSceneInfoNotifyOuterClass.java deleted file mode 100644 index 656c49908..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PlayerEnterSceneInfoNotifyOuterClass.java +++ /dev/null @@ -1,1400 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerEnterSceneInfoNotify.proto - -package emu.grasscutter.net.proto; - -public final class PlayerEnterSceneInfoNotifyOuterClass { - private PlayerEnterSceneInfoNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerEnterSceneInfoNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerEnterSceneInfoNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 curAvatarEntityId = 1;</code> - * @return The curAvatarEntityId. - */ - int getCurAvatarEntityId(); - - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - java.util.List<emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo> - getAvatarEnterInfoList(); - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo getAvatarEnterInfo(int index); - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - int getAvatarEnterInfoCount(); - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfoOrBuilder> - getAvatarEnterInfoOrBuilderList(); - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfoOrBuilder getAvatarEnterInfoOrBuilder( - int index); - - /** - * <code>.TeamEnterSceneInfo teamEnterInfo = 3;</code> - * @return Whether the teamEnterInfo field is set. - */ - boolean hasTeamEnterInfo(); - /** - * <code>.TeamEnterSceneInfo teamEnterInfo = 3;</code> - * @return The teamEnterInfo. - */ - emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo getTeamEnterInfo(); - /** - * <code>.TeamEnterSceneInfo teamEnterInfo = 3;</code> - */ - emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfoOrBuilder getTeamEnterInfoOrBuilder(); - - /** - * <code>.MPLevelEntityInfo mpLevelEntityInfo = 4;</code> - * @return Whether the mpLevelEntityInfo field is set. - */ - boolean hasMpLevelEntityInfo(); - /** - * <code>.MPLevelEntityInfo mpLevelEntityInfo = 4;</code> - * @return The mpLevelEntityInfo. - */ - emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo getMpLevelEntityInfo(); - /** - * <code>.MPLevelEntityInfo mpLevelEntityInfo = 4;</code> - */ - emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfoOrBuilder getMpLevelEntityInfoOrBuilder(); - - /** - * <code>uint32 enterSceneToken = 5;</code> - * @return The enterSceneToken. - */ - int getEnterSceneToken(); - } - /** - * Protobuf type {@code PlayerEnterSceneInfoNotify} - */ - public static final class PlayerEnterSceneInfoNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerEnterSceneInfoNotify) - PlayerEnterSceneInfoNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerEnterSceneInfoNotify.newBuilder() to construct. - private PlayerEnterSceneInfoNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PlayerEnterSceneInfoNotify() { - avatarEnterInfo_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerEnterSceneInfoNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerEnterSceneInfoNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - curAvatarEntityId_ = input.readUInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - avatarEnterInfo_ = new java.util.ArrayList<emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo>(); - mutable_bitField0_ |= 0x00000001; - } - avatarEnterInfo_.add( - input.readMessage(emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo.parser(), extensionRegistry)); - break; - } - case 26: { - emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo.Builder subBuilder = null; - if (teamEnterInfo_ != null) { - subBuilder = teamEnterInfo_.toBuilder(); - } - teamEnterInfo_ = input.readMessage(emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(teamEnterInfo_); - teamEnterInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo.Builder subBuilder = null; - if (mpLevelEntityInfo_ != null) { - subBuilder = mpLevelEntityInfo_.toBuilder(); - } - mpLevelEntityInfo_ = input.readMessage(emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(mpLevelEntityInfo_); - mpLevelEntityInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 40: { - - enterSceneToken_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - avatarEnterInfo_ = java.util.Collections.unmodifiableList(avatarEnterInfo_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.internal_static_PlayerEnterSceneInfoNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.internal_static_PlayerEnterSceneInfoNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify.class, emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify.Builder.class); - } - - public static final int CURAVATARENTITYID_FIELD_NUMBER = 1; - private int curAvatarEntityId_; - /** - * <code>uint32 curAvatarEntityId = 1;</code> - * @return The curAvatarEntityId. - */ - @java.lang.Override - public int getCurAvatarEntityId() { - return curAvatarEntityId_; - } - - public static final int AVATARENTERINFO_FIELD_NUMBER = 2; - private java.util.List<emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo> avatarEnterInfo_; - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo> getAvatarEnterInfoList() { - return avatarEnterInfo_; - } - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfoOrBuilder> - getAvatarEnterInfoOrBuilderList() { - return avatarEnterInfo_; - } - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - @java.lang.Override - public int getAvatarEnterInfoCount() { - return avatarEnterInfo_.size(); - } - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo getAvatarEnterInfo(int index) { - return avatarEnterInfo_.get(index); - } - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfoOrBuilder getAvatarEnterInfoOrBuilder( - int index) { - return avatarEnterInfo_.get(index); - } - - public static final int TEAMENTERINFO_FIELD_NUMBER = 3; - private emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo teamEnterInfo_; - /** - * <code>.TeamEnterSceneInfo teamEnterInfo = 3;</code> - * @return Whether the teamEnterInfo field is set. - */ - @java.lang.Override - public boolean hasTeamEnterInfo() { - return teamEnterInfo_ != null; - } - /** - * <code>.TeamEnterSceneInfo teamEnterInfo = 3;</code> - * @return The teamEnterInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo getTeamEnterInfo() { - return teamEnterInfo_ == null ? emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo.getDefaultInstance() : teamEnterInfo_; - } - /** - * <code>.TeamEnterSceneInfo teamEnterInfo = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfoOrBuilder getTeamEnterInfoOrBuilder() { - return getTeamEnterInfo(); - } - - public static final int MPLEVELENTITYINFO_FIELD_NUMBER = 4; - private emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo mpLevelEntityInfo_; - /** - * <code>.MPLevelEntityInfo mpLevelEntityInfo = 4;</code> - * @return Whether the mpLevelEntityInfo field is set. - */ - @java.lang.Override - public boolean hasMpLevelEntityInfo() { - return mpLevelEntityInfo_ != null; - } - /** - * <code>.MPLevelEntityInfo mpLevelEntityInfo = 4;</code> - * @return The mpLevelEntityInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo getMpLevelEntityInfo() { - return mpLevelEntityInfo_ == null ? emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo.getDefaultInstance() : mpLevelEntityInfo_; - } - /** - * <code>.MPLevelEntityInfo mpLevelEntityInfo = 4;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfoOrBuilder getMpLevelEntityInfoOrBuilder() { - return getMpLevelEntityInfo(); - } - - public static final int ENTERSCENETOKEN_FIELD_NUMBER = 5; - private int enterSceneToken_; - /** - * <code>uint32 enterSceneToken = 5;</code> - * @return The enterSceneToken. - */ - @java.lang.Override - public int getEnterSceneToken() { - return enterSceneToken_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (curAvatarEntityId_ != 0) { - output.writeUInt32(1, curAvatarEntityId_); - } - for (int i = 0; i < avatarEnterInfo_.size(); i++) { - output.writeMessage(2, avatarEnterInfo_.get(i)); - } - if (teamEnterInfo_ != null) { - output.writeMessage(3, getTeamEnterInfo()); - } - if (mpLevelEntityInfo_ != null) { - output.writeMessage(4, getMpLevelEntityInfo()); - } - if (enterSceneToken_ != 0) { - output.writeUInt32(5, enterSceneToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (curAvatarEntityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, curAvatarEntityId_); - } - for (int i = 0; i < avatarEnterInfo_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, avatarEnterInfo_.get(i)); - } - if (teamEnterInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTeamEnterInfo()); - } - if (mpLevelEntityInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getMpLevelEntityInfo()); - } - if (enterSceneToken_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, enterSceneToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify other = (emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify) obj; - - if (getCurAvatarEntityId() - != other.getCurAvatarEntityId()) return false; - if (!getAvatarEnterInfoList() - .equals(other.getAvatarEnterInfoList())) return false; - if (hasTeamEnterInfo() != other.hasTeamEnterInfo()) return false; - if (hasTeamEnterInfo()) { - if (!getTeamEnterInfo() - .equals(other.getTeamEnterInfo())) return false; - } - if (hasMpLevelEntityInfo() != other.hasMpLevelEntityInfo()) return false; - if (hasMpLevelEntityInfo()) { - if (!getMpLevelEntityInfo() - .equals(other.getMpLevelEntityInfo())) return false; - } - if (getEnterSceneToken() - != other.getEnterSceneToken()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CURAVATARENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getCurAvatarEntityId(); - if (getAvatarEnterInfoCount() > 0) { - hash = (37 * hash) + AVATARENTERINFO_FIELD_NUMBER; - hash = (53 * hash) + getAvatarEnterInfoList().hashCode(); - } - if (hasTeamEnterInfo()) { - hash = (37 * hash) + TEAMENTERINFO_FIELD_NUMBER; - hash = (53 * hash) + getTeamEnterInfo().hashCode(); - } - if (hasMpLevelEntityInfo()) { - hash = (37 * hash) + MPLEVELENTITYINFO_FIELD_NUMBER; - hash = (53 * hash) + getMpLevelEntityInfo().hashCode(); - } - hash = (37 * hash) + ENTERSCENETOKEN_FIELD_NUMBER; - hash = (53 * hash) + getEnterSceneToken(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PlayerEnterSceneInfoNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerEnterSceneInfoNotify) - emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.internal_static_PlayerEnterSceneInfoNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.internal_static_PlayerEnterSceneInfoNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify.class, emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAvatarEnterInfoFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - curAvatarEntityId_ = 0; - - if (avatarEnterInfoBuilder_ == null) { - avatarEnterInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - avatarEnterInfoBuilder_.clear(); - } - if (teamEnterInfoBuilder_ == null) { - teamEnterInfo_ = null; - } else { - teamEnterInfo_ = null; - teamEnterInfoBuilder_ = null; - } - if (mpLevelEntityInfoBuilder_ == null) { - mpLevelEntityInfo_ = null; - } else { - mpLevelEntityInfo_ = null; - mpLevelEntityInfoBuilder_ = null; - } - enterSceneToken_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.internal_static_PlayerEnterSceneInfoNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify build() { - emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify buildPartial() { - emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify result = new emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify(this); - int from_bitField0_ = bitField0_; - result.curAvatarEntityId_ = curAvatarEntityId_; - if (avatarEnterInfoBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - avatarEnterInfo_ = java.util.Collections.unmodifiableList(avatarEnterInfo_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.avatarEnterInfo_ = avatarEnterInfo_; - } else { - result.avatarEnterInfo_ = avatarEnterInfoBuilder_.build(); - } - if (teamEnterInfoBuilder_ == null) { - result.teamEnterInfo_ = teamEnterInfo_; - } else { - result.teamEnterInfo_ = teamEnterInfoBuilder_.build(); - } - if (mpLevelEntityInfoBuilder_ == null) { - result.mpLevelEntityInfo_ = mpLevelEntityInfo_; - } else { - result.mpLevelEntityInfo_ = mpLevelEntityInfoBuilder_.build(); - } - result.enterSceneToken_ = enterSceneToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify) { - return mergeFrom((emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify other) { - if (other == emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify.getDefaultInstance()) return this; - if (other.getCurAvatarEntityId() != 0) { - setCurAvatarEntityId(other.getCurAvatarEntityId()); - } - if (avatarEnterInfoBuilder_ == null) { - if (!other.avatarEnterInfo_.isEmpty()) { - if (avatarEnterInfo_.isEmpty()) { - avatarEnterInfo_ = other.avatarEnterInfo_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAvatarEnterInfoIsMutable(); - avatarEnterInfo_.addAll(other.avatarEnterInfo_); - } - onChanged(); - } - } else { - if (!other.avatarEnterInfo_.isEmpty()) { - if (avatarEnterInfoBuilder_.isEmpty()) { - avatarEnterInfoBuilder_.dispose(); - avatarEnterInfoBuilder_ = null; - avatarEnterInfo_ = other.avatarEnterInfo_; - bitField0_ = (bitField0_ & ~0x00000001); - avatarEnterInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAvatarEnterInfoFieldBuilder() : null; - } else { - avatarEnterInfoBuilder_.addAllMessages(other.avatarEnterInfo_); - } - } - } - if (other.hasTeamEnterInfo()) { - mergeTeamEnterInfo(other.getTeamEnterInfo()); - } - if (other.hasMpLevelEntityInfo()) { - mergeMpLevelEntityInfo(other.getMpLevelEntityInfo()); - } - if (other.getEnterSceneToken() != 0) { - setEnterSceneToken(other.getEnterSceneToken()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int curAvatarEntityId_ ; - /** - * <code>uint32 curAvatarEntityId = 1;</code> - * @return The curAvatarEntityId. - */ - @java.lang.Override - public int getCurAvatarEntityId() { - return curAvatarEntityId_; - } - /** - * <code>uint32 curAvatarEntityId = 1;</code> - * @param value The curAvatarEntityId to set. - * @return This builder for chaining. - */ - public Builder setCurAvatarEntityId(int value) { - - curAvatarEntityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 curAvatarEntityId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearCurAvatarEntityId() { - - curAvatarEntityId_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo> avatarEnterInfo_ = - java.util.Collections.emptyList(); - private void ensureAvatarEnterInfoIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - avatarEnterInfo_ = new java.util.ArrayList<emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo>(avatarEnterInfo_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo, emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo.Builder, emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfoOrBuilder> avatarEnterInfoBuilder_; - - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo> getAvatarEnterInfoList() { - if (avatarEnterInfoBuilder_ == null) { - return java.util.Collections.unmodifiableList(avatarEnterInfo_); - } else { - return avatarEnterInfoBuilder_.getMessageList(); - } - } - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - public int getAvatarEnterInfoCount() { - if (avatarEnterInfoBuilder_ == null) { - return avatarEnterInfo_.size(); - } else { - return avatarEnterInfoBuilder_.getCount(); - } - } - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - public emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo getAvatarEnterInfo(int index) { - if (avatarEnterInfoBuilder_ == null) { - return avatarEnterInfo_.get(index); - } else { - return avatarEnterInfoBuilder_.getMessage(index); - } - } - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - public Builder setAvatarEnterInfo( - int index, emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo value) { - if (avatarEnterInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAvatarEnterInfoIsMutable(); - avatarEnterInfo_.set(index, value); - onChanged(); - } else { - avatarEnterInfoBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - public Builder setAvatarEnterInfo( - int index, emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo.Builder builderForValue) { - if (avatarEnterInfoBuilder_ == null) { - ensureAvatarEnterInfoIsMutable(); - avatarEnterInfo_.set(index, builderForValue.build()); - onChanged(); - } else { - avatarEnterInfoBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - public Builder addAvatarEnterInfo(emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo value) { - if (avatarEnterInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAvatarEnterInfoIsMutable(); - avatarEnterInfo_.add(value); - onChanged(); - } else { - avatarEnterInfoBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - public Builder addAvatarEnterInfo( - int index, emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo value) { - if (avatarEnterInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAvatarEnterInfoIsMutable(); - avatarEnterInfo_.add(index, value); - onChanged(); - } else { - avatarEnterInfoBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - public Builder addAvatarEnterInfo( - emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo.Builder builderForValue) { - if (avatarEnterInfoBuilder_ == null) { - ensureAvatarEnterInfoIsMutable(); - avatarEnterInfo_.add(builderForValue.build()); - onChanged(); - } else { - avatarEnterInfoBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - public Builder addAvatarEnterInfo( - int index, emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo.Builder builderForValue) { - if (avatarEnterInfoBuilder_ == null) { - ensureAvatarEnterInfoIsMutable(); - avatarEnterInfo_.add(index, builderForValue.build()); - onChanged(); - } else { - avatarEnterInfoBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - public Builder addAllAvatarEnterInfo( - java.lang.Iterable<? extends emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo> values) { - if (avatarEnterInfoBuilder_ == null) { - ensureAvatarEnterInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, avatarEnterInfo_); - onChanged(); - } else { - avatarEnterInfoBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - public Builder clearAvatarEnterInfo() { - if (avatarEnterInfoBuilder_ == null) { - avatarEnterInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - avatarEnterInfoBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - public Builder removeAvatarEnterInfo(int index) { - if (avatarEnterInfoBuilder_ == null) { - ensureAvatarEnterInfoIsMutable(); - avatarEnterInfo_.remove(index); - onChanged(); - } else { - avatarEnterInfoBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - public emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo.Builder getAvatarEnterInfoBuilder( - int index) { - return getAvatarEnterInfoFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - public emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfoOrBuilder getAvatarEnterInfoOrBuilder( - int index) { - if (avatarEnterInfoBuilder_ == null) { - return avatarEnterInfo_.get(index); } else { - return avatarEnterInfoBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfoOrBuilder> - getAvatarEnterInfoOrBuilderList() { - if (avatarEnterInfoBuilder_ != null) { - return avatarEnterInfoBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(avatarEnterInfo_); - } - } - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - public emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo.Builder addAvatarEnterInfoBuilder() { - return getAvatarEnterInfoFieldBuilder().addBuilder( - emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo.getDefaultInstance()); - } - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - public emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo.Builder addAvatarEnterInfoBuilder( - int index) { - return getAvatarEnterInfoFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo.getDefaultInstance()); - } - /** - * <code>repeated .AvatarEnterSceneInfo avatarEnterInfo = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo.Builder> - getAvatarEnterInfoBuilderList() { - return getAvatarEnterInfoFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo, emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo.Builder, emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfoOrBuilder> - getAvatarEnterInfoFieldBuilder() { - if (avatarEnterInfoBuilder_ == null) { - avatarEnterInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo, emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo.Builder, emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfoOrBuilder>( - avatarEnterInfo_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - avatarEnterInfo_ = null; - } - return avatarEnterInfoBuilder_; - } - - private emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo teamEnterInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo, emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo.Builder, emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfoOrBuilder> teamEnterInfoBuilder_; - /** - * <code>.TeamEnterSceneInfo teamEnterInfo = 3;</code> - * @return Whether the teamEnterInfo field is set. - */ - public boolean hasTeamEnterInfo() { - return teamEnterInfoBuilder_ != null || teamEnterInfo_ != null; - } - /** - * <code>.TeamEnterSceneInfo teamEnterInfo = 3;</code> - * @return The teamEnterInfo. - */ - public emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo getTeamEnterInfo() { - if (teamEnterInfoBuilder_ == null) { - return teamEnterInfo_ == null ? emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo.getDefaultInstance() : teamEnterInfo_; - } else { - return teamEnterInfoBuilder_.getMessage(); - } - } - /** - * <code>.TeamEnterSceneInfo teamEnterInfo = 3;</code> - */ - public Builder setTeamEnterInfo(emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo value) { - if (teamEnterInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - teamEnterInfo_ = value; - onChanged(); - } else { - teamEnterInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.TeamEnterSceneInfo teamEnterInfo = 3;</code> - */ - public Builder setTeamEnterInfo( - emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo.Builder builderForValue) { - if (teamEnterInfoBuilder_ == null) { - teamEnterInfo_ = builderForValue.build(); - onChanged(); - } else { - teamEnterInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.TeamEnterSceneInfo teamEnterInfo = 3;</code> - */ - public Builder mergeTeamEnterInfo(emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo value) { - if (teamEnterInfoBuilder_ == null) { - if (teamEnterInfo_ != null) { - teamEnterInfo_ = - emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo.newBuilder(teamEnterInfo_).mergeFrom(value).buildPartial(); - } else { - teamEnterInfo_ = value; - } - onChanged(); - } else { - teamEnterInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.TeamEnterSceneInfo teamEnterInfo = 3;</code> - */ - public Builder clearTeamEnterInfo() { - if (teamEnterInfoBuilder_ == null) { - teamEnterInfo_ = null; - onChanged(); - } else { - teamEnterInfo_ = null; - teamEnterInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.TeamEnterSceneInfo teamEnterInfo = 3;</code> - */ - public emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo.Builder getTeamEnterInfoBuilder() { - - onChanged(); - return getTeamEnterInfoFieldBuilder().getBuilder(); - } - /** - * <code>.TeamEnterSceneInfo teamEnterInfo = 3;</code> - */ - public emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfoOrBuilder getTeamEnterInfoOrBuilder() { - if (teamEnterInfoBuilder_ != null) { - return teamEnterInfoBuilder_.getMessageOrBuilder(); - } else { - return teamEnterInfo_ == null ? - emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo.getDefaultInstance() : teamEnterInfo_; - } - } - /** - * <code>.TeamEnterSceneInfo teamEnterInfo = 3;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo, emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo.Builder, emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfoOrBuilder> - getTeamEnterInfoFieldBuilder() { - if (teamEnterInfoBuilder_ == null) { - teamEnterInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo, emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo.Builder, emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfoOrBuilder>( - getTeamEnterInfo(), - getParentForChildren(), - isClean()); - teamEnterInfo_ = null; - } - return teamEnterInfoBuilder_; - } - - private emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo mpLevelEntityInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo, emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo.Builder, emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfoOrBuilder> mpLevelEntityInfoBuilder_; - /** - * <code>.MPLevelEntityInfo mpLevelEntityInfo = 4;</code> - * @return Whether the mpLevelEntityInfo field is set. - */ - public boolean hasMpLevelEntityInfo() { - return mpLevelEntityInfoBuilder_ != null || mpLevelEntityInfo_ != null; - } - /** - * <code>.MPLevelEntityInfo mpLevelEntityInfo = 4;</code> - * @return The mpLevelEntityInfo. - */ - public emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo getMpLevelEntityInfo() { - if (mpLevelEntityInfoBuilder_ == null) { - return mpLevelEntityInfo_ == null ? emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo.getDefaultInstance() : mpLevelEntityInfo_; - } else { - return mpLevelEntityInfoBuilder_.getMessage(); - } - } - /** - * <code>.MPLevelEntityInfo mpLevelEntityInfo = 4;</code> - */ - public Builder setMpLevelEntityInfo(emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo value) { - if (mpLevelEntityInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - mpLevelEntityInfo_ = value; - onChanged(); - } else { - mpLevelEntityInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.MPLevelEntityInfo mpLevelEntityInfo = 4;</code> - */ - public Builder setMpLevelEntityInfo( - emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo.Builder builderForValue) { - if (mpLevelEntityInfoBuilder_ == null) { - mpLevelEntityInfo_ = builderForValue.build(); - onChanged(); - } else { - mpLevelEntityInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.MPLevelEntityInfo mpLevelEntityInfo = 4;</code> - */ - public Builder mergeMpLevelEntityInfo(emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo value) { - if (mpLevelEntityInfoBuilder_ == null) { - if (mpLevelEntityInfo_ != null) { - mpLevelEntityInfo_ = - emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo.newBuilder(mpLevelEntityInfo_).mergeFrom(value).buildPartial(); - } else { - mpLevelEntityInfo_ = value; - } - onChanged(); - } else { - mpLevelEntityInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.MPLevelEntityInfo mpLevelEntityInfo = 4;</code> - */ - public Builder clearMpLevelEntityInfo() { - if (mpLevelEntityInfoBuilder_ == null) { - mpLevelEntityInfo_ = null; - onChanged(); - } else { - mpLevelEntityInfo_ = null; - mpLevelEntityInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.MPLevelEntityInfo mpLevelEntityInfo = 4;</code> - */ - public emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo.Builder getMpLevelEntityInfoBuilder() { - - onChanged(); - return getMpLevelEntityInfoFieldBuilder().getBuilder(); - } - /** - * <code>.MPLevelEntityInfo mpLevelEntityInfo = 4;</code> - */ - public emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfoOrBuilder getMpLevelEntityInfoOrBuilder() { - if (mpLevelEntityInfoBuilder_ != null) { - return mpLevelEntityInfoBuilder_.getMessageOrBuilder(); - } else { - return mpLevelEntityInfo_ == null ? - emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo.getDefaultInstance() : mpLevelEntityInfo_; - } - } - /** - * <code>.MPLevelEntityInfo mpLevelEntityInfo = 4;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo, emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo.Builder, emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfoOrBuilder> - getMpLevelEntityInfoFieldBuilder() { - if (mpLevelEntityInfoBuilder_ == null) { - mpLevelEntityInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo, emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo.Builder, emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfoOrBuilder>( - getMpLevelEntityInfo(), - getParentForChildren(), - isClean()); - mpLevelEntityInfo_ = null; - } - return mpLevelEntityInfoBuilder_; - } - - private int enterSceneToken_ ; - /** - * <code>uint32 enterSceneToken = 5;</code> - * @return The enterSceneToken. - */ - @java.lang.Override - public int getEnterSceneToken() { - return enterSceneToken_; - } - /** - * <code>uint32 enterSceneToken = 5;</code> - * @param value The enterSceneToken to set. - * @return This builder for chaining. - */ - public Builder setEnterSceneToken(int value) { - - enterSceneToken_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 enterSceneToken = 5;</code> - * @return This builder for chaining. - */ - public Builder clearEnterSceneToken() { - - enterSceneToken_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerEnterSceneInfoNotify) - } - - // @@protoc_insertion_point(class_scope:PlayerEnterSceneInfoNotify) - private static final emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify(); - } - - public static emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PlayerEnterSceneInfoNotify> - PARSER = new com.google.protobuf.AbstractParser<PlayerEnterSceneInfoNotify>() { - @java.lang.Override - public PlayerEnterSceneInfoNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerEnterSceneInfoNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PlayerEnterSceneInfoNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PlayerEnterSceneInfoNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerEnterSceneInfoNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerEnterSceneInfoNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n PlayerEnterSceneInfoNotify.proto\032\032Avat" + - "arEnterSceneInfo.proto\032\027MPLevelEntityInf" + - "o.proto\032\030TeamEnterSceneInfo.proto\"\333\001\n\032Pl" + - "ayerEnterSceneInfoNotify\022\031\n\021curAvatarEnt" + - "ityId\030\001 \001(\r\022.\n\017avatarEnterInfo\030\002 \003(\0132\025.A" + - "vatarEnterSceneInfo\022*\n\rteamEnterInfo\030\003 \001" + - "(\0132\023.TeamEnterSceneInfo\022-\n\021mpLevelEntity" + - "Info\030\004 \001(\0132\022.MPLevelEntityInfo\022\027\n\017enterS" + - "ceneToken\030\005 \001(\rB\033\n\031emu.grasscutter.net.p" + - "rotob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.getDescriptor(), - }); - internal_static_PlayerEnterSceneInfoNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerEnterSceneInfoNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerEnterSceneInfoNotify_descriptor, - new java.lang.String[] { "CurAvatarEntityId", "AvatarEnterInfo", "TeamEnterInfo", "MpLevelEntityInfo", "EnterSceneToken", }); - emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PlayerEnterSceneNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PlayerEnterSceneNotifyOuterClass.java deleted file mode 100644 index fa0c571b6..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PlayerEnterSceneNotifyOuterClass.java +++ /dev/null @@ -1,2112 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerEnterSceneNotify.proto - -package emu.grasscutter.net.proto; - -public final class PlayerEnterSceneNotifyOuterClass { - private PlayerEnterSceneNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerEnterSceneNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerEnterSceneNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - int getSceneId(); - - /** - * <code>.Vector pos = 2;</code> - * @return Whether the pos field is set. - */ - boolean hasPos(); - /** - * <code>.Vector pos = 2;</code> - * @return The pos. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getPos(); - /** - * <code>.Vector pos = 2;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOrBuilder(); - - /** - * <code>uint64 sceneBeginTime = 3;</code> - * @return The sceneBeginTime. - */ - long getSceneBeginTime(); - - /** - * <code>.EnterType type = 4;</code> - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - * <code>.EnterType type = 4;</code> - * @return The type. - */ - emu.grasscutter.net.proto.EnterTypeOuterClass.EnterType getType(); - - /** - * <code>uint32 targetUid = 6;</code> - * @return The targetUid. - */ - int getTargetUid(); - - /** - * <code>uint32 prevSceneId = 9;</code> - * @return The prevSceneId. - */ - int getPrevSceneId(); - - /** - * <code>.Vector prevPos = 10;</code> - * @return Whether the prevPos field is set. - */ - boolean hasPrevPos(); - /** - * <code>.Vector prevPos = 10;</code> - * @return The prevPos. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getPrevPos(); - /** - * <code>.Vector prevPos = 10;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPrevPosOrBuilder(); - - /** - * <code>uint32 dungeonId = 11;</code> - * @return The dungeonId. - */ - int getDungeonId(); - - /** - * <code>uint32 worldLevel = 12;</code> - * @return The worldLevel. - */ - int getWorldLevel(); - - /** - * <code>uint32 enterSceneToken = 13;</code> - * @return The enterSceneToken. - */ - int getEnterSceneToken(); - - /** - * <code>bool isFirstLoginEnterScene = 14;</code> - * @return The isFirstLoginEnterScene. - */ - boolean getIsFirstLoginEnterScene(); - - /** - * <code>repeated uint32 sceneTagIdList = 15;</code> - * @return A list containing the sceneTagIdList. - */ - java.util.List<java.lang.Integer> getSceneTagIdListList(); - /** - * <code>repeated uint32 sceneTagIdList = 15;</code> - * @return The count of sceneTagIdList. - */ - int getSceneTagIdListCount(); - /** - * <code>repeated uint32 sceneTagIdList = 15;</code> - * @param index The index of the element to return. - * @return The sceneTagIdList at the given index. - */ - int getSceneTagIdList(int index); - - /** - * <code>bool isSkipUi = 16;</code> - * @return The isSkipUi. - */ - boolean getIsSkipUi(); - - /** - * <code>uint32 enterReason = 17;</code> - * @return The enterReason. - */ - int getEnterReason(); - - /** - * <code>uint32 unk1 = 18;</code> - * @return The unk1. - */ - int getUnk1(); - - /** - * <code>string unk2 = 19;</code> - * @return The unk2. - */ - java.lang.String getUnk2(); - /** - * <code>string unk2 = 19;</code> - * @return The bytes for unk2. - */ - com.google.protobuf.ByteString - getUnk2Bytes(); - } - /** - * Protobuf type {@code PlayerEnterSceneNotify} - */ - public static final class PlayerEnterSceneNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerEnterSceneNotify) - PlayerEnterSceneNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerEnterSceneNotify.newBuilder() to construct. - private PlayerEnterSceneNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PlayerEnterSceneNotify() { - type_ = 0; - sceneTagIdList_ = emptyIntList(); - unk2_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerEnterSceneNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerEnterSceneNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - sceneId_ = input.readUInt32(); - break; - } - case 18: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (pos_ != null) { - subBuilder = pos_.toBuilder(); - } - pos_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pos_); - pos_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - sceneBeginTime_ = input.readUInt64(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 48: { - - targetUid_ = input.readUInt32(); - break; - } - case 72: { - - prevSceneId_ = input.readUInt32(); - break; - } - case 82: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (prevPos_ != null) { - subBuilder = prevPos_.toBuilder(); - } - prevPos_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(prevPos_); - prevPos_ = subBuilder.buildPartial(); - } - - break; - } - case 88: { - - dungeonId_ = input.readUInt32(); - break; - } - case 96: { - - worldLevel_ = input.readUInt32(); - break; - } - case 104: { - - enterSceneToken_ = input.readUInt32(); - break; - } - case 112: { - - isFirstLoginEnterScene_ = input.readBool(); - break; - } - case 120: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - sceneTagIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - sceneTagIdList_.addInt(input.readUInt32()); - break; - } - case 122: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - sceneTagIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - sceneTagIdList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 128: { - - isSkipUi_ = input.readBool(); - break; - } - case 136: { - - enterReason_ = input.readUInt32(); - break; - } - case 144: { - - unk1_ = input.readUInt32(); - break; - } - case 154: { - java.lang.String s = input.readStringRequireUtf8(); - - unk2_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - sceneTagIdList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.internal_static_PlayerEnterSceneNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.internal_static_PlayerEnterSceneNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify.class, emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify.Builder.class); - } - - public static final int SCENEID_FIELD_NUMBER = 1; - private int sceneId_; - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - - public static final int POS_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.VectorOuterClass.Vector pos_; - /** - * <code>.Vector pos = 2;</code> - * @return Whether the pos field is set. - */ - @java.lang.Override - public boolean hasPos() { - return pos_ != null; - } - /** - * <code>.Vector pos = 2;</code> - * @return The pos. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getPos() { - return pos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : pos_; - } - /** - * <code>.Vector pos = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOrBuilder() { - return getPos(); - } - - public static final int SCENEBEGINTIME_FIELD_NUMBER = 3; - private long sceneBeginTime_; - /** - * <code>uint64 sceneBeginTime = 3;</code> - * @return The sceneBeginTime. - */ - @java.lang.Override - public long getSceneBeginTime() { - return sceneBeginTime_; - } - - public static final int TYPE_FIELD_NUMBER = 4; - private int type_; - /** - * <code>.EnterType type = 4;</code> - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - * <code>.EnterType type = 4;</code> - * @return The type. - */ - @java.lang.Override public emu.grasscutter.net.proto.EnterTypeOuterClass.EnterType getType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.EnterTypeOuterClass.EnterType result = emu.grasscutter.net.proto.EnterTypeOuterClass.EnterType.valueOf(type_); - return result == null ? emu.grasscutter.net.proto.EnterTypeOuterClass.EnterType.UNRECOGNIZED : result; - } - - public static final int TARGETUID_FIELD_NUMBER = 6; - private int targetUid_; - /** - * <code>uint32 targetUid = 6;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - - public static final int PREVSCENEID_FIELD_NUMBER = 9; - private int prevSceneId_; - /** - * <code>uint32 prevSceneId = 9;</code> - * @return The prevSceneId. - */ - @java.lang.Override - public int getPrevSceneId() { - return prevSceneId_; - } - - public static final int PREVPOS_FIELD_NUMBER = 10; - private emu.grasscutter.net.proto.VectorOuterClass.Vector prevPos_; - /** - * <code>.Vector prevPos = 10;</code> - * @return Whether the prevPos field is set. - */ - @java.lang.Override - public boolean hasPrevPos() { - return prevPos_ != null; - } - /** - * <code>.Vector prevPos = 10;</code> - * @return The prevPos. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getPrevPos() { - return prevPos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : prevPos_; - } - /** - * <code>.Vector prevPos = 10;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPrevPosOrBuilder() { - return getPrevPos(); - } - - public static final int DUNGEONID_FIELD_NUMBER = 11; - private int dungeonId_; - /** - * <code>uint32 dungeonId = 11;</code> - * @return The dungeonId. - */ - @java.lang.Override - public int getDungeonId() { - return dungeonId_; - } - - public static final int WORLDLEVEL_FIELD_NUMBER = 12; - private int worldLevel_; - /** - * <code>uint32 worldLevel = 12;</code> - * @return The worldLevel. - */ - @java.lang.Override - public int getWorldLevel() { - return worldLevel_; - } - - public static final int ENTERSCENETOKEN_FIELD_NUMBER = 13; - private int enterSceneToken_; - /** - * <code>uint32 enterSceneToken = 13;</code> - * @return The enterSceneToken. - */ - @java.lang.Override - public int getEnterSceneToken() { - return enterSceneToken_; - } - - public static final int ISFIRSTLOGINENTERSCENE_FIELD_NUMBER = 14; - private boolean isFirstLoginEnterScene_; - /** - * <code>bool isFirstLoginEnterScene = 14;</code> - * @return The isFirstLoginEnterScene. - */ - @java.lang.Override - public boolean getIsFirstLoginEnterScene() { - return isFirstLoginEnterScene_; - } - - public static final int SCENETAGIDLIST_FIELD_NUMBER = 15; - private com.google.protobuf.Internal.IntList sceneTagIdList_; - /** - * <code>repeated uint32 sceneTagIdList = 15;</code> - * @return A list containing the sceneTagIdList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getSceneTagIdListList() { - return sceneTagIdList_; - } - /** - * <code>repeated uint32 sceneTagIdList = 15;</code> - * @return The count of sceneTagIdList. - */ - public int getSceneTagIdListCount() { - return sceneTagIdList_.size(); - } - /** - * <code>repeated uint32 sceneTagIdList = 15;</code> - * @param index The index of the element to return. - * @return The sceneTagIdList at the given index. - */ - public int getSceneTagIdList(int index) { - return sceneTagIdList_.getInt(index); - } - private int sceneTagIdListMemoizedSerializedSize = -1; - - public static final int ISSKIPUI_FIELD_NUMBER = 16; - private boolean isSkipUi_; - /** - * <code>bool isSkipUi = 16;</code> - * @return The isSkipUi. - */ - @java.lang.Override - public boolean getIsSkipUi() { - return isSkipUi_; - } - - public static final int ENTERREASON_FIELD_NUMBER = 17; - private int enterReason_; - /** - * <code>uint32 enterReason = 17;</code> - * @return The enterReason. - */ - @java.lang.Override - public int getEnterReason() { - return enterReason_; - } - - public static final int UNK1_FIELD_NUMBER = 18; - private int unk1_; - /** - * <code>uint32 unk1 = 18;</code> - * @return The unk1. - */ - @java.lang.Override - public int getUnk1() { - return unk1_; - } - - public static final int UNK2_FIELD_NUMBER = 19; - private volatile java.lang.Object unk2_; - /** - * <code>string unk2 = 19;</code> - * @return The unk2. - */ - @java.lang.Override - public java.lang.String getUnk2() { - java.lang.Object ref = unk2_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - unk2_ = s; - return s; - } - } - /** - * <code>string unk2 = 19;</code> - * @return The bytes for unk2. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUnk2Bytes() { - java.lang.Object ref = unk2_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - unk2_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (sceneId_ != 0) { - output.writeUInt32(1, sceneId_); - } - if (pos_ != null) { - output.writeMessage(2, getPos()); - } - if (sceneBeginTime_ != 0L) { - output.writeUInt64(3, sceneBeginTime_); - } - if (type_ != emu.grasscutter.net.proto.EnterTypeOuterClass.EnterType.EnterNone.getNumber()) { - output.writeEnum(4, type_); - } - if (targetUid_ != 0) { - output.writeUInt32(6, targetUid_); - } - if (prevSceneId_ != 0) { - output.writeUInt32(9, prevSceneId_); - } - if (prevPos_ != null) { - output.writeMessage(10, getPrevPos()); - } - if (dungeonId_ != 0) { - output.writeUInt32(11, dungeonId_); - } - if (worldLevel_ != 0) { - output.writeUInt32(12, worldLevel_); - } - if (enterSceneToken_ != 0) { - output.writeUInt32(13, enterSceneToken_); - } - if (isFirstLoginEnterScene_ != false) { - output.writeBool(14, isFirstLoginEnterScene_); - } - if (getSceneTagIdListList().size() > 0) { - output.writeUInt32NoTag(122); - output.writeUInt32NoTag(sceneTagIdListMemoizedSerializedSize); - } - for (int i = 0; i < sceneTagIdList_.size(); i++) { - output.writeUInt32NoTag(sceneTagIdList_.getInt(i)); - } - if (isSkipUi_ != false) { - output.writeBool(16, isSkipUi_); - } - if (enterReason_ != 0) { - output.writeUInt32(17, enterReason_); - } - if (unk1_ != 0) { - output.writeUInt32(18, unk1_); - } - if (!getUnk2Bytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 19, unk2_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sceneId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, sceneId_); - } - if (pos_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPos()); - } - if (sceneBeginTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, sceneBeginTime_); - } - if (type_ != emu.grasscutter.net.proto.EnterTypeOuterClass.EnterType.EnterNone.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, type_); - } - if (targetUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, targetUid_); - } - if (prevSceneId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(9, prevSceneId_); - } - if (prevPos_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getPrevPos()); - } - if (dungeonId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(11, dungeonId_); - } - if (worldLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(12, worldLevel_); - } - if (enterSceneToken_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(13, enterSceneToken_); - } - if (isFirstLoginEnterScene_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(14, isFirstLoginEnterScene_); - } - { - int dataSize = 0; - for (int i = 0; i < sceneTagIdList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(sceneTagIdList_.getInt(i)); - } - size += dataSize; - if (!getSceneTagIdListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - sceneTagIdListMemoizedSerializedSize = dataSize; - } - if (isSkipUi_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(16, isSkipUi_); - } - if (enterReason_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(17, enterReason_); - } - if (unk1_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(18, unk1_); - } - if (!getUnk2Bytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, unk2_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify other = (emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify) obj; - - if (getSceneId() - != other.getSceneId()) return false; - if (hasPos() != other.hasPos()) return false; - if (hasPos()) { - if (!getPos() - .equals(other.getPos())) return false; - } - if (getSceneBeginTime() - != other.getSceneBeginTime()) return false; - if (type_ != other.type_) return false; - if (getTargetUid() - != other.getTargetUid()) return false; - if (getPrevSceneId() - != other.getPrevSceneId()) return false; - if (hasPrevPos() != other.hasPrevPos()) return false; - if (hasPrevPos()) { - if (!getPrevPos() - .equals(other.getPrevPos())) return false; - } - if (getDungeonId() - != other.getDungeonId()) return false; - if (getWorldLevel() - != other.getWorldLevel()) return false; - if (getEnterSceneToken() - != other.getEnterSceneToken()) return false; - if (getIsFirstLoginEnterScene() - != other.getIsFirstLoginEnterScene()) return false; - if (!getSceneTagIdListList() - .equals(other.getSceneTagIdListList())) return false; - if (getIsSkipUi() - != other.getIsSkipUi()) return false; - if (getEnterReason() - != other.getEnterReason()) return false; - if (getUnk1() - != other.getUnk1()) return false; - if (!getUnk2() - .equals(other.getUnk2())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SCENEID_FIELD_NUMBER; - hash = (53 * hash) + getSceneId(); - if (hasPos()) { - hash = (37 * hash) + POS_FIELD_NUMBER; - hash = (53 * hash) + getPos().hashCode(); - } - hash = (37 * hash) + SCENEBEGINTIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSceneBeginTime()); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (37 * hash) + TARGETUID_FIELD_NUMBER; - hash = (53 * hash) + getTargetUid(); - hash = (37 * hash) + PREVSCENEID_FIELD_NUMBER; - hash = (53 * hash) + getPrevSceneId(); - if (hasPrevPos()) { - hash = (37 * hash) + PREVPOS_FIELD_NUMBER; - hash = (53 * hash) + getPrevPos().hashCode(); - } - hash = (37 * hash) + DUNGEONID_FIELD_NUMBER; - hash = (53 * hash) + getDungeonId(); - hash = (37 * hash) + WORLDLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getWorldLevel(); - hash = (37 * hash) + ENTERSCENETOKEN_FIELD_NUMBER; - hash = (53 * hash) + getEnterSceneToken(); - hash = (37 * hash) + ISFIRSTLOGINENTERSCENE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsFirstLoginEnterScene()); - if (getSceneTagIdListCount() > 0) { - hash = (37 * hash) + SCENETAGIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getSceneTagIdListList().hashCode(); - } - hash = (37 * hash) + ISSKIPUI_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsSkipUi()); - hash = (37 * hash) + ENTERREASON_FIELD_NUMBER; - hash = (53 * hash) + getEnterReason(); - hash = (37 * hash) + UNK1_FIELD_NUMBER; - hash = (53 * hash) + getUnk1(); - hash = (37 * hash) + UNK2_FIELD_NUMBER; - hash = (53 * hash) + getUnk2().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PlayerEnterSceneNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerEnterSceneNotify) - emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.internal_static_PlayerEnterSceneNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.internal_static_PlayerEnterSceneNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify.class, emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sceneId_ = 0; - - if (posBuilder_ == null) { - pos_ = null; - } else { - pos_ = null; - posBuilder_ = null; - } - sceneBeginTime_ = 0L; - - type_ = 0; - - targetUid_ = 0; - - prevSceneId_ = 0; - - if (prevPosBuilder_ == null) { - prevPos_ = null; - } else { - prevPos_ = null; - prevPosBuilder_ = null; - } - dungeonId_ = 0; - - worldLevel_ = 0; - - enterSceneToken_ = 0; - - isFirstLoginEnterScene_ = false; - - sceneTagIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - isSkipUi_ = false; - - enterReason_ = 0; - - unk1_ = 0; - - unk2_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.internal_static_PlayerEnterSceneNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify build() { - emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify buildPartial() { - emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify result = new emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify(this); - int from_bitField0_ = bitField0_; - result.sceneId_ = sceneId_; - if (posBuilder_ == null) { - result.pos_ = pos_; - } else { - result.pos_ = posBuilder_.build(); - } - result.sceneBeginTime_ = sceneBeginTime_; - result.type_ = type_; - result.targetUid_ = targetUid_; - result.prevSceneId_ = prevSceneId_; - if (prevPosBuilder_ == null) { - result.prevPos_ = prevPos_; - } else { - result.prevPos_ = prevPosBuilder_.build(); - } - result.dungeonId_ = dungeonId_; - result.worldLevel_ = worldLevel_; - result.enterSceneToken_ = enterSceneToken_; - result.isFirstLoginEnterScene_ = isFirstLoginEnterScene_; - if (((bitField0_ & 0x00000001) != 0)) { - sceneTagIdList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.sceneTagIdList_ = sceneTagIdList_; - result.isSkipUi_ = isSkipUi_; - result.enterReason_ = enterReason_; - result.unk1_ = unk1_; - result.unk2_ = unk2_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify) { - return mergeFrom((emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify other) { - if (other == emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify.getDefaultInstance()) return this; - if (other.getSceneId() != 0) { - setSceneId(other.getSceneId()); - } - if (other.hasPos()) { - mergePos(other.getPos()); - } - if (other.getSceneBeginTime() != 0L) { - setSceneBeginTime(other.getSceneBeginTime()); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (other.getTargetUid() != 0) { - setTargetUid(other.getTargetUid()); - } - if (other.getPrevSceneId() != 0) { - setPrevSceneId(other.getPrevSceneId()); - } - if (other.hasPrevPos()) { - mergePrevPos(other.getPrevPos()); - } - if (other.getDungeonId() != 0) { - setDungeonId(other.getDungeonId()); - } - if (other.getWorldLevel() != 0) { - setWorldLevel(other.getWorldLevel()); - } - if (other.getEnterSceneToken() != 0) { - setEnterSceneToken(other.getEnterSceneToken()); - } - if (other.getIsFirstLoginEnterScene() != false) { - setIsFirstLoginEnterScene(other.getIsFirstLoginEnterScene()); - } - if (!other.sceneTagIdList_.isEmpty()) { - if (sceneTagIdList_.isEmpty()) { - sceneTagIdList_ = other.sceneTagIdList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSceneTagIdListIsMutable(); - sceneTagIdList_.addAll(other.sceneTagIdList_); - } - onChanged(); - } - if (other.getIsSkipUi() != false) { - setIsSkipUi(other.getIsSkipUi()); - } - if (other.getEnterReason() != 0) { - setEnterReason(other.getEnterReason()); - } - if (other.getUnk1() != 0) { - setUnk1(other.getUnk1()); - } - if (!other.getUnk2().isEmpty()) { - unk2_ = other.unk2_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int sceneId_ ; - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - /** - * <code>uint32 sceneId = 1;</code> - * @param value The sceneId to set. - * @return This builder for chaining. - */ - public Builder setSceneId(int value) { - - sceneId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 sceneId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearSceneId() { - - sceneId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.VectorOuterClass.Vector pos_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> posBuilder_; - /** - * <code>.Vector pos = 2;</code> - * @return Whether the pos field is set. - */ - public boolean hasPos() { - return posBuilder_ != null || pos_ != null; - } - /** - * <code>.Vector pos = 2;</code> - * @return The pos. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getPos() { - if (posBuilder_ == null) { - return pos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : pos_; - } else { - return posBuilder_.getMessage(); - } - } - /** - * <code>.Vector pos = 2;</code> - */ - public Builder setPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (posBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pos_ = value; - onChanged(); - } else { - posBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Vector pos = 2;</code> - */ - public Builder setPos( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (posBuilder_ == null) { - pos_ = builderForValue.build(); - onChanged(); - } else { - posBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Vector pos = 2;</code> - */ - public Builder mergePos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (posBuilder_ == null) { - if (pos_ != null) { - pos_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(pos_).mergeFrom(value).buildPartial(); - } else { - pos_ = value; - } - onChanged(); - } else { - posBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Vector pos = 2;</code> - */ - public Builder clearPos() { - if (posBuilder_ == null) { - pos_ = null; - onChanged(); - } else { - pos_ = null; - posBuilder_ = null; - } - - return this; - } - /** - * <code>.Vector pos = 2;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getPosBuilder() { - - onChanged(); - return getPosFieldBuilder().getBuilder(); - } - /** - * <code>.Vector pos = 2;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOrBuilder() { - if (posBuilder_ != null) { - return posBuilder_.getMessageOrBuilder(); - } else { - return pos_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : pos_; - } - } - /** - * <code>.Vector pos = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getPosFieldBuilder() { - if (posBuilder_ == null) { - posBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getPos(), - getParentForChildren(), - isClean()); - pos_ = null; - } - return posBuilder_; - } - - private long sceneBeginTime_ ; - /** - * <code>uint64 sceneBeginTime = 3;</code> - * @return The sceneBeginTime. - */ - @java.lang.Override - public long getSceneBeginTime() { - return sceneBeginTime_; - } - /** - * <code>uint64 sceneBeginTime = 3;</code> - * @param value The sceneBeginTime to set. - * @return This builder for chaining. - */ - public Builder setSceneBeginTime(long value) { - - sceneBeginTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 sceneBeginTime = 3;</code> - * @return This builder for chaining. - */ - public Builder clearSceneBeginTime() { - - sceneBeginTime_ = 0L; - onChanged(); - return this; - } - - private int type_ = 0; - /** - * <code>.EnterType type = 4;</code> - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - * <code>.EnterType type = 4;</code> - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - * <code>.EnterType type = 4;</code> - * @return The type. - */ - @java.lang.Override - public emu.grasscutter.net.proto.EnterTypeOuterClass.EnterType getType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.EnterTypeOuterClass.EnterType result = emu.grasscutter.net.proto.EnterTypeOuterClass.EnterType.valueOf(type_); - return result == null ? emu.grasscutter.net.proto.EnterTypeOuterClass.EnterType.UNRECOGNIZED : result; - } - /** - * <code>.EnterType type = 4;</code> - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(emu.grasscutter.net.proto.EnterTypeOuterClass.EnterType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.EnterType type = 4;</code> - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private int targetUid_ ; - /** - * <code>uint32 targetUid = 6;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - /** - * <code>uint32 targetUid = 6;</code> - * @param value The targetUid to set. - * @return This builder for chaining. - */ - public Builder setTargetUid(int value) { - - targetUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 targetUid = 6;</code> - * @return This builder for chaining. - */ - public Builder clearTargetUid() { - - targetUid_ = 0; - onChanged(); - return this; - } - - private int prevSceneId_ ; - /** - * <code>uint32 prevSceneId = 9;</code> - * @return The prevSceneId. - */ - @java.lang.Override - public int getPrevSceneId() { - return prevSceneId_; - } - /** - * <code>uint32 prevSceneId = 9;</code> - * @param value The prevSceneId to set. - * @return This builder for chaining. - */ - public Builder setPrevSceneId(int value) { - - prevSceneId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 prevSceneId = 9;</code> - * @return This builder for chaining. - */ - public Builder clearPrevSceneId() { - - prevSceneId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.VectorOuterClass.Vector prevPos_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> prevPosBuilder_; - /** - * <code>.Vector prevPos = 10;</code> - * @return Whether the prevPos field is set. - */ - public boolean hasPrevPos() { - return prevPosBuilder_ != null || prevPos_ != null; - } - /** - * <code>.Vector prevPos = 10;</code> - * @return The prevPos. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getPrevPos() { - if (prevPosBuilder_ == null) { - return prevPos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : prevPos_; - } else { - return prevPosBuilder_.getMessage(); - } - } - /** - * <code>.Vector prevPos = 10;</code> - */ - public Builder setPrevPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (prevPosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - prevPos_ = value; - onChanged(); - } else { - prevPosBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Vector prevPos = 10;</code> - */ - public Builder setPrevPos( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (prevPosBuilder_ == null) { - prevPos_ = builderForValue.build(); - onChanged(); - } else { - prevPosBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Vector prevPos = 10;</code> - */ - public Builder mergePrevPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (prevPosBuilder_ == null) { - if (prevPos_ != null) { - prevPos_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(prevPos_).mergeFrom(value).buildPartial(); - } else { - prevPos_ = value; - } - onChanged(); - } else { - prevPosBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Vector prevPos = 10;</code> - */ - public Builder clearPrevPos() { - if (prevPosBuilder_ == null) { - prevPos_ = null; - onChanged(); - } else { - prevPos_ = null; - prevPosBuilder_ = null; - } - - return this; - } - /** - * <code>.Vector prevPos = 10;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getPrevPosBuilder() { - - onChanged(); - return getPrevPosFieldBuilder().getBuilder(); - } - /** - * <code>.Vector prevPos = 10;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPrevPosOrBuilder() { - if (prevPosBuilder_ != null) { - return prevPosBuilder_.getMessageOrBuilder(); - } else { - return prevPos_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : prevPos_; - } - } - /** - * <code>.Vector prevPos = 10;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getPrevPosFieldBuilder() { - if (prevPosBuilder_ == null) { - prevPosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getPrevPos(), - getParentForChildren(), - isClean()); - prevPos_ = null; - } - return prevPosBuilder_; - } - - private int dungeonId_ ; - /** - * <code>uint32 dungeonId = 11;</code> - * @return The dungeonId. - */ - @java.lang.Override - public int getDungeonId() { - return dungeonId_; - } - /** - * <code>uint32 dungeonId = 11;</code> - * @param value The dungeonId to set. - * @return This builder for chaining. - */ - public Builder setDungeonId(int value) { - - dungeonId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 dungeonId = 11;</code> - * @return This builder for chaining. - */ - public Builder clearDungeonId() { - - dungeonId_ = 0; - onChanged(); - return this; - } - - private int worldLevel_ ; - /** - * <code>uint32 worldLevel = 12;</code> - * @return The worldLevel. - */ - @java.lang.Override - public int getWorldLevel() { - return worldLevel_; - } - /** - * <code>uint32 worldLevel = 12;</code> - * @param value The worldLevel to set. - * @return This builder for chaining. - */ - public Builder setWorldLevel(int value) { - - worldLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 worldLevel = 12;</code> - * @return This builder for chaining. - */ - public Builder clearWorldLevel() { - - worldLevel_ = 0; - onChanged(); - return this; - } - - private int enterSceneToken_ ; - /** - * <code>uint32 enterSceneToken = 13;</code> - * @return The enterSceneToken. - */ - @java.lang.Override - public int getEnterSceneToken() { - return enterSceneToken_; - } - /** - * <code>uint32 enterSceneToken = 13;</code> - * @param value The enterSceneToken to set. - * @return This builder for chaining. - */ - public Builder setEnterSceneToken(int value) { - - enterSceneToken_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 enterSceneToken = 13;</code> - * @return This builder for chaining. - */ - public Builder clearEnterSceneToken() { - - enterSceneToken_ = 0; - onChanged(); - return this; - } - - private boolean isFirstLoginEnterScene_ ; - /** - * <code>bool isFirstLoginEnterScene = 14;</code> - * @return The isFirstLoginEnterScene. - */ - @java.lang.Override - public boolean getIsFirstLoginEnterScene() { - return isFirstLoginEnterScene_; - } - /** - * <code>bool isFirstLoginEnterScene = 14;</code> - * @param value The isFirstLoginEnterScene to set. - * @return This builder for chaining. - */ - public Builder setIsFirstLoginEnterScene(boolean value) { - - isFirstLoginEnterScene_ = value; - onChanged(); - return this; - } - /** - * <code>bool isFirstLoginEnterScene = 14;</code> - * @return This builder for chaining. - */ - public Builder clearIsFirstLoginEnterScene() { - - isFirstLoginEnterScene_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList sceneTagIdList_ = emptyIntList(); - private void ensureSceneTagIdListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - sceneTagIdList_ = mutableCopy(sceneTagIdList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 sceneTagIdList = 15;</code> - * @return A list containing the sceneTagIdList. - */ - public java.util.List<java.lang.Integer> - getSceneTagIdListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(sceneTagIdList_) : sceneTagIdList_; - } - /** - * <code>repeated uint32 sceneTagIdList = 15;</code> - * @return The count of sceneTagIdList. - */ - public int getSceneTagIdListCount() { - return sceneTagIdList_.size(); - } - /** - * <code>repeated uint32 sceneTagIdList = 15;</code> - * @param index The index of the element to return. - * @return The sceneTagIdList at the given index. - */ - public int getSceneTagIdList(int index) { - return sceneTagIdList_.getInt(index); - } - /** - * <code>repeated uint32 sceneTagIdList = 15;</code> - * @param index The index to set the value at. - * @param value The sceneTagIdList to set. - * @return This builder for chaining. - */ - public Builder setSceneTagIdList( - int index, int value) { - ensureSceneTagIdListIsMutable(); - sceneTagIdList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 sceneTagIdList = 15;</code> - * @param value The sceneTagIdList to add. - * @return This builder for chaining. - */ - public Builder addSceneTagIdList(int value) { - ensureSceneTagIdListIsMutable(); - sceneTagIdList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 sceneTagIdList = 15;</code> - * @param values The sceneTagIdList to add. - * @return This builder for chaining. - */ - public Builder addAllSceneTagIdList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureSceneTagIdListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, sceneTagIdList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 sceneTagIdList = 15;</code> - * @return This builder for chaining. - */ - public Builder clearSceneTagIdList() { - sceneTagIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private boolean isSkipUi_ ; - /** - * <code>bool isSkipUi = 16;</code> - * @return The isSkipUi. - */ - @java.lang.Override - public boolean getIsSkipUi() { - return isSkipUi_; - } - /** - * <code>bool isSkipUi = 16;</code> - * @param value The isSkipUi to set. - * @return This builder for chaining. - */ - public Builder setIsSkipUi(boolean value) { - - isSkipUi_ = value; - onChanged(); - return this; - } - /** - * <code>bool isSkipUi = 16;</code> - * @return This builder for chaining. - */ - public Builder clearIsSkipUi() { - - isSkipUi_ = false; - onChanged(); - return this; - } - - private int enterReason_ ; - /** - * <code>uint32 enterReason = 17;</code> - * @return The enterReason. - */ - @java.lang.Override - public int getEnterReason() { - return enterReason_; - } - /** - * <code>uint32 enterReason = 17;</code> - * @param value The enterReason to set. - * @return This builder for chaining. - */ - public Builder setEnterReason(int value) { - - enterReason_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 enterReason = 17;</code> - * @return This builder for chaining. - */ - public Builder clearEnterReason() { - - enterReason_ = 0; - onChanged(); - return this; - } - - private int unk1_ ; - /** - * <code>uint32 unk1 = 18;</code> - * @return The unk1. - */ - @java.lang.Override - public int getUnk1() { - return unk1_; - } - /** - * <code>uint32 unk1 = 18;</code> - * @param value The unk1 to set. - * @return This builder for chaining. - */ - public Builder setUnk1(int value) { - - unk1_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 unk1 = 18;</code> - * @return This builder for chaining. - */ - public Builder clearUnk1() { - - unk1_ = 0; - onChanged(); - return this; - } - - private java.lang.Object unk2_ = ""; - /** - * <code>string unk2 = 19;</code> - * @return The unk2. - */ - public java.lang.String getUnk2() { - java.lang.Object ref = unk2_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - unk2_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string unk2 = 19;</code> - * @return The bytes for unk2. - */ - public com.google.protobuf.ByteString - getUnk2Bytes() { - java.lang.Object ref = unk2_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - unk2_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string unk2 = 19;</code> - * @param value The unk2 to set. - * @return This builder for chaining. - */ - public Builder setUnk2( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - unk2_ = value; - onChanged(); - return this; - } - /** - * <code>string unk2 = 19;</code> - * @return This builder for chaining. - */ - public Builder clearUnk2() { - - unk2_ = getDefaultInstance().getUnk2(); - onChanged(); - return this; - } - /** - * <code>string unk2 = 19;</code> - * @param value The bytes for unk2 to set. - * @return This builder for chaining. - */ - public Builder setUnk2Bytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - unk2_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerEnterSceneNotify) - } - - // @@protoc_insertion_point(class_scope:PlayerEnterSceneNotify) - private static final emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify(); - } - - public static emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PlayerEnterSceneNotify> - PARSER = new com.google.protobuf.AbstractParser<PlayerEnterSceneNotify>() { - @java.lang.Override - public PlayerEnterSceneNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerEnterSceneNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PlayerEnterSceneNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PlayerEnterSceneNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerEnterSceneNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerEnterSceneNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034PlayerEnterSceneNotify.proto\032\017EnterTyp" + - "e.proto\032\014Vector.proto\"\356\002\n\026PlayerEnterSce" + - "neNotify\022\017\n\007sceneId\030\001 \001(\r\022\024\n\003pos\030\002 \001(\0132\007" + - ".Vector\022\026\n\016sceneBeginTime\030\003 \001(\004\022\030\n\004type\030" + - "\004 \001(\0162\n.EnterType\022\021\n\ttargetUid\030\006 \001(\r\022\023\n\013" + - "prevSceneId\030\t \001(\r\022\030\n\007prevPos\030\n \001(\0132\007.Vec" + - "tor\022\021\n\tdungeonId\030\013 \001(\r\022\022\n\nworldLevel\030\014 \001" + - "(\r\022\027\n\017enterSceneToken\030\r \001(\r\022\036\n\026isFirstLo" + - "ginEnterScene\030\016 \001(\010\022\026\n\016sceneTagIdList\030\017 " + - "\003(\r\022\020\n\010isSkipUi\030\020 \001(\010\022\023\n\013enterReason\030\021 \001" + - "(\r\022\014\n\004unk1\030\022 \001(\r\022\014\n\004unk2\030\023 \001(\tB\033\n\031emu.gr" + - "asscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.EnterTypeOuterClass.getDescriptor(), - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(), - }); - internal_static_PlayerEnterSceneNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerEnterSceneNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerEnterSceneNotify_descriptor, - new java.lang.String[] { "SceneId", "Pos", "SceneBeginTime", "Type", "TargetUid", "PrevSceneId", "PrevPos", "DungeonId", "WorldLevel", "EnterSceneToken", "IsFirstLoginEnterScene", "SceneTagIdList", "IsSkipUi", "EnterReason", "Unk1", "Unk2", }); - emu.grasscutter.net.proto.EnterTypeOuterClass.getDescriptor(); - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PlayerGameTimeNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PlayerGameTimeNotifyOuterClass.java deleted file mode 100644 index 219a1c940..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PlayerGameTimeNotifyOuterClass.java +++ /dev/null @@ -1,606 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerGameTimeNotify.proto - -package emu.grasscutter.net.proto; - -public final class PlayerGameTimeNotifyOuterClass { - private PlayerGameTimeNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerGameTimeNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerGameTimeNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 gameTime = 1;</code> - * @return The gameTime. - */ - int getGameTime(); - - /** - * <code>uint32 uid = 2;</code> - * @return The uid. - */ - int getUid(); - } - /** - * Protobuf type {@code PlayerGameTimeNotify} - */ - public static final class PlayerGameTimeNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerGameTimeNotify) - PlayerGameTimeNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerGameTimeNotify.newBuilder() to construct. - private PlayerGameTimeNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PlayerGameTimeNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerGameTimeNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerGameTimeNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - gameTime_ = input.readUInt32(); - break; - } - case 16: { - - uid_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.internal_static_PlayerGameTimeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.internal_static_PlayerGameTimeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify.class, emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify.Builder.class); - } - - public static final int GAMETIME_FIELD_NUMBER = 1; - private int gameTime_; - /** - * <code>uint32 gameTime = 1;</code> - * @return The gameTime. - */ - @java.lang.Override - public int getGameTime() { - return gameTime_; - } - - public static final int UID_FIELD_NUMBER = 2; - private int uid_; - /** - * <code>uint32 uid = 2;</code> - * @return The uid. - */ - @java.lang.Override - public int getUid() { - return uid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (gameTime_ != 0) { - output.writeUInt32(1, gameTime_); - } - if (uid_ != 0) { - output.writeUInt32(2, uid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (gameTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, gameTime_); - } - if (uid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, uid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify other = (emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify) obj; - - if (getGameTime() - != other.getGameTime()) return false; - if (getUid() - != other.getUid()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GAMETIME_FIELD_NUMBER; - hash = (53 * hash) + getGameTime(); - hash = (37 * hash) + UID_FIELD_NUMBER; - hash = (53 * hash) + getUid(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PlayerGameTimeNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerGameTimeNotify) - emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.internal_static_PlayerGameTimeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.internal_static_PlayerGameTimeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify.class, emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - gameTime_ = 0; - - uid_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.internal_static_PlayerGameTimeNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify build() { - emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify buildPartial() { - emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify result = new emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify(this); - result.gameTime_ = gameTime_; - result.uid_ = uid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify) { - return mergeFrom((emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify other) { - if (other == emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify.getDefaultInstance()) return this; - if (other.getGameTime() != 0) { - setGameTime(other.getGameTime()); - } - if (other.getUid() != 0) { - setUid(other.getUid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int gameTime_ ; - /** - * <code>uint32 gameTime = 1;</code> - * @return The gameTime. - */ - @java.lang.Override - public int getGameTime() { - return gameTime_; - } - /** - * <code>uint32 gameTime = 1;</code> - * @param value The gameTime to set. - * @return This builder for chaining. - */ - public Builder setGameTime(int value) { - - gameTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gameTime = 1;</code> - * @return This builder for chaining. - */ - public Builder clearGameTime() { - - gameTime_ = 0; - onChanged(); - return this; - } - - private int uid_ ; - /** - * <code>uint32 uid = 2;</code> - * @return The uid. - */ - @java.lang.Override - public int getUid() { - return uid_; - } - /** - * <code>uint32 uid = 2;</code> - * @param value The uid to set. - * @return This builder for chaining. - */ - public Builder setUid(int value) { - - uid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 uid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearUid() { - - uid_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerGameTimeNotify) - } - - // @@protoc_insertion_point(class_scope:PlayerGameTimeNotify) - private static final emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify(); - } - - public static emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PlayerGameTimeNotify> - PARSER = new com.google.protobuf.AbstractParser<PlayerGameTimeNotify>() { - @java.lang.Override - public PlayerGameTimeNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerGameTimeNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PlayerGameTimeNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PlayerGameTimeNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerGameTimeNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerGameTimeNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032PlayerGameTimeNotify.proto\"5\n\024PlayerGa" + - "meTimeNotify\022\020\n\010gameTime\030\001 \001(\r\022\013\n\003uid\030\002 " + - "\001(\rB\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_PlayerGameTimeNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerGameTimeNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerGameTimeNotify_descriptor, - new java.lang.String[] { "GameTime", "Uid", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PlayerGetForceQuitBanInfoRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PlayerGetForceQuitBanInfoRspOuterClass.java deleted file mode 100644 index bcb422868..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PlayerGetForceQuitBanInfoRspOuterClass.java +++ /dev/null @@ -1,677 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerGetForceQuitBanInfoRsp.proto - -package emu.grasscutter.net.proto; - -public final class PlayerGetForceQuitBanInfoRspOuterClass { - private PlayerGetForceQuitBanInfoRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerGetForceQuitBanInfoRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerGetForceQuitBanInfoRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint32 matchId = 2;</code> - * @return The matchId. - */ - int getMatchId(); - - /** - * <code>uint32 expireTime = 3;</code> - * @return The expireTime. - */ - int getExpireTime(); - } - /** - * Protobuf type {@code PlayerGetForceQuitBanInfoRsp} - */ - public static final class PlayerGetForceQuitBanInfoRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerGetForceQuitBanInfoRsp) - PlayerGetForceQuitBanInfoRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerGetForceQuitBanInfoRsp.newBuilder() to construct. - private PlayerGetForceQuitBanInfoRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PlayerGetForceQuitBanInfoRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerGetForceQuitBanInfoRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerGetForceQuitBanInfoRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - matchId_ = input.readUInt32(); - break; - } - case 24: { - - expireTime_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.internal_static_PlayerGetForceQuitBanInfoRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.internal_static_PlayerGetForceQuitBanInfoRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp.class, emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int MATCHID_FIELD_NUMBER = 2; - private int matchId_; - /** - * <code>uint32 matchId = 2;</code> - * @return The matchId. - */ - @java.lang.Override - public int getMatchId() { - return matchId_; - } - - public static final int EXPIRETIME_FIELD_NUMBER = 3; - private int expireTime_; - /** - * <code>uint32 expireTime = 3;</code> - * @return The expireTime. - */ - @java.lang.Override - public int getExpireTime() { - return expireTime_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (matchId_ != 0) { - output.writeUInt32(2, matchId_); - } - if (expireTime_ != 0) { - output.writeUInt32(3, expireTime_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (matchId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, matchId_); - } - if (expireTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, expireTime_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp other = (emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getMatchId() - != other.getMatchId()) return false; - if (getExpireTime() - != other.getExpireTime()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + MATCHID_FIELD_NUMBER; - hash = (53 * hash) + getMatchId(); - hash = (37 * hash) + EXPIRETIME_FIELD_NUMBER; - hash = (53 * hash) + getExpireTime(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PlayerGetForceQuitBanInfoRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerGetForceQuitBanInfoRsp) - emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.internal_static_PlayerGetForceQuitBanInfoRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.internal_static_PlayerGetForceQuitBanInfoRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp.class, emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - matchId_ = 0; - - expireTime_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.internal_static_PlayerGetForceQuitBanInfoRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp build() { - emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp buildPartial() { - emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp result = new emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp(this); - result.retcode_ = retcode_; - result.matchId_ = matchId_; - result.expireTime_ = expireTime_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp) { - return mergeFrom((emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp other) { - if (other == emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getMatchId() != 0) { - setMatchId(other.getMatchId()); - } - if (other.getExpireTime() != 0) { - setExpireTime(other.getExpireTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int matchId_ ; - /** - * <code>uint32 matchId = 2;</code> - * @return The matchId. - */ - @java.lang.Override - public int getMatchId() { - return matchId_; - } - /** - * <code>uint32 matchId = 2;</code> - * @param value The matchId to set. - * @return This builder for chaining. - */ - public Builder setMatchId(int value) { - - matchId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 matchId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearMatchId() { - - matchId_ = 0; - onChanged(); - return this; - } - - private int expireTime_ ; - /** - * <code>uint32 expireTime = 3;</code> - * @return The expireTime. - */ - @java.lang.Override - public int getExpireTime() { - return expireTime_; - } - /** - * <code>uint32 expireTime = 3;</code> - * @param value The expireTime to set. - * @return This builder for chaining. - */ - public Builder setExpireTime(int value) { - - expireTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 expireTime = 3;</code> - * @return This builder for chaining. - */ - public Builder clearExpireTime() { - - expireTime_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerGetForceQuitBanInfoRsp) - } - - // @@protoc_insertion_point(class_scope:PlayerGetForceQuitBanInfoRsp) - private static final emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp(); - } - - public static emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PlayerGetForceQuitBanInfoRsp> - PARSER = new com.google.protobuf.AbstractParser<PlayerGetForceQuitBanInfoRsp>() { - @java.lang.Override - public PlayerGetForceQuitBanInfoRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerGetForceQuitBanInfoRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PlayerGetForceQuitBanInfoRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PlayerGetForceQuitBanInfoRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerGetForceQuitBanInfoRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerGetForceQuitBanInfoRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\"PlayerGetForceQuitBanInfoRsp.proto\"T\n\034" + - "PlayerGetForceQuitBanInfoRsp\022\017\n\007retcode\030" + - "\001 \001(\005\022\017\n\007matchId\030\002 \001(\r\022\022\n\nexpireTime\030\003 \001" + - "(\rB\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_PlayerGetForceQuitBanInfoRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerGetForceQuitBanInfoRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerGetForceQuitBanInfoRsp_descriptor, - new java.lang.String[] { "Retcode", "MatchId", "ExpireTime", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PlayerLevelRewardUpdateNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PlayerLevelRewardUpdateNotifyOuterClass.java deleted file mode 100644 index 9dcad0ee3..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PlayerLevelRewardUpdateNotifyOuterClass.java +++ /dev/null @@ -1,666 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerLevelRewardUpdateNotify.proto - -package emu.grasscutter.net.proto; - -public final class PlayerLevelRewardUpdateNotifyOuterClass { - private PlayerLevelRewardUpdateNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerLevelRewardUpdateNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerLevelRewardUpdateNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated uint32 levelList = 1;</code> - * @return A list containing the levelList. - */ - java.util.List<java.lang.Integer> getLevelListList(); - /** - * <code>repeated uint32 levelList = 1;</code> - * @return The count of levelList. - */ - int getLevelListCount(); - /** - * <code>repeated uint32 levelList = 1;</code> - * @param index The index of the element to return. - * @return The levelList at the given index. - */ - int getLevelList(int index); - } - /** - * Protobuf type {@code PlayerLevelRewardUpdateNotify} - */ - public static final class PlayerLevelRewardUpdateNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerLevelRewardUpdateNotify) - PlayerLevelRewardUpdateNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerLevelRewardUpdateNotify.newBuilder() to construct. - private PlayerLevelRewardUpdateNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PlayerLevelRewardUpdateNotify() { - levelList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerLevelRewardUpdateNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerLevelRewardUpdateNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - levelList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - levelList_.addInt(input.readUInt32()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - levelList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - levelList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - levelList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.internal_static_PlayerLevelRewardUpdateNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.internal_static_PlayerLevelRewardUpdateNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify.class, emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify.Builder.class); - } - - public static final int LEVELLIST_FIELD_NUMBER = 1; - private com.google.protobuf.Internal.IntList levelList_; - /** - * <code>repeated uint32 levelList = 1;</code> - * @return A list containing the levelList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getLevelListList() { - return levelList_; - } - /** - * <code>repeated uint32 levelList = 1;</code> - * @return The count of levelList. - */ - public int getLevelListCount() { - return levelList_.size(); - } - /** - * <code>repeated uint32 levelList = 1;</code> - * @param index The index of the element to return. - * @return The levelList at the given index. - */ - public int getLevelList(int index) { - return levelList_.getInt(index); - } - private int levelListMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getLevelListList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(levelListMemoizedSerializedSize); - } - for (int i = 0; i < levelList_.size(); i++) { - output.writeUInt32NoTag(levelList_.getInt(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < levelList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(levelList_.getInt(i)); - } - size += dataSize; - if (!getLevelListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - levelListMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify other = (emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify) obj; - - if (!getLevelListList() - .equals(other.getLevelListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getLevelListCount() > 0) { - hash = (37 * hash) + LEVELLIST_FIELD_NUMBER; - hash = (53 * hash) + getLevelListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PlayerLevelRewardUpdateNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerLevelRewardUpdateNotify) - emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.internal_static_PlayerLevelRewardUpdateNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.internal_static_PlayerLevelRewardUpdateNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify.class, emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - levelList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.internal_static_PlayerLevelRewardUpdateNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify build() { - emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify buildPartial() { - emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify result = new emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - levelList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.levelList_ = levelList_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify) { - return mergeFrom((emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify other) { - if (other == emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify.getDefaultInstance()) return this; - if (!other.levelList_.isEmpty()) { - if (levelList_.isEmpty()) { - levelList_ = other.levelList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLevelListIsMutable(); - levelList_.addAll(other.levelList_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.Internal.IntList levelList_ = emptyIntList(); - private void ensureLevelListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - levelList_ = mutableCopy(levelList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 levelList = 1;</code> - * @return A list containing the levelList. - */ - public java.util.List<java.lang.Integer> - getLevelListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(levelList_) : levelList_; - } - /** - * <code>repeated uint32 levelList = 1;</code> - * @return The count of levelList. - */ - public int getLevelListCount() { - return levelList_.size(); - } - /** - * <code>repeated uint32 levelList = 1;</code> - * @param index The index of the element to return. - * @return The levelList at the given index. - */ - public int getLevelList(int index) { - return levelList_.getInt(index); - } - /** - * <code>repeated uint32 levelList = 1;</code> - * @param index The index to set the value at. - * @param value The levelList to set. - * @return This builder for chaining. - */ - public Builder setLevelList( - int index, int value) { - ensureLevelListIsMutable(); - levelList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 levelList = 1;</code> - * @param value The levelList to add. - * @return This builder for chaining. - */ - public Builder addLevelList(int value) { - ensureLevelListIsMutable(); - levelList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 levelList = 1;</code> - * @param values The levelList to add. - * @return This builder for chaining. - */ - public Builder addAllLevelList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureLevelListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, levelList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 levelList = 1;</code> - * @return This builder for chaining. - */ - public Builder clearLevelList() { - levelList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerLevelRewardUpdateNotify) - } - - // @@protoc_insertion_point(class_scope:PlayerLevelRewardUpdateNotify) - private static final emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify(); - } - - public static emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PlayerLevelRewardUpdateNotify> - PARSER = new com.google.protobuf.AbstractParser<PlayerLevelRewardUpdateNotify>() { - @java.lang.Override - public PlayerLevelRewardUpdateNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerLevelRewardUpdateNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PlayerLevelRewardUpdateNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PlayerLevelRewardUpdateNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerLevelRewardUpdateNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerLevelRewardUpdateNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n#PlayerLevelRewardUpdateNotify.proto\"2\n" + - "\035PlayerLevelRewardUpdateNotify\022\021\n\tlevelL" + - "ist\030\001 \003(\rB\033\n\031emu.grasscutter.net.protob\006" + - "proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_PlayerLevelRewardUpdateNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerLevelRewardUpdateNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerLevelRewardUpdateNotify_descriptor, - new java.lang.String[] { "LevelList", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PlayerLocationInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PlayerLocationInfoOuterClass.java deleted file mode 100644 index 2cd579cac..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PlayerLocationInfoOuterClass.java +++ /dev/null @@ -1,945 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerLocationInfo.proto - -package emu.grasscutter.net.proto; - -public final class PlayerLocationInfoOuterClass { - private PlayerLocationInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerLocationInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerLocationInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 uid = 1;</code> - * @return The uid. - */ - int getUid(); - - /** - * <code>.Vector pos = 2;</code> - * @return Whether the pos field is set. - */ - boolean hasPos(); - /** - * <code>.Vector pos = 2;</code> - * @return The pos. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getPos(); - /** - * <code>.Vector pos = 2;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOrBuilder(); - - /** - * <code>.Vector rot = 3;</code> - * @return Whether the rot field is set. - */ - boolean hasRot(); - /** - * <code>.Vector rot = 3;</code> - * @return The rot. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getRot(); - /** - * <code>.Vector rot = 3;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRotOrBuilder(); - } - /** - * Protobuf type {@code PlayerLocationInfo} - */ - public static final class PlayerLocationInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerLocationInfo) - PlayerLocationInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerLocationInfo.newBuilder() to construct. - private PlayerLocationInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PlayerLocationInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerLocationInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerLocationInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - uid_ = input.readUInt32(); - break; - } - case 18: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (pos_ != null) { - subBuilder = pos_.toBuilder(); - } - pos_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pos_); - pos_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (rot_ != null) { - subBuilder = rot_.toBuilder(); - } - rot_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rot_); - rot_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.internal_static_PlayerLocationInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.internal_static_PlayerLocationInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.class, emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.Builder.class); - } - - public static final int UID_FIELD_NUMBER = 1; - private int uid_; - /** - * <code>uint32 uid = 1;</code> - * @return The uid. - */ - @java.lang.Override - public int getUid() { - return uid_; - } - - public static final int POS_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.VectorOuterClass.Vector pos_; - /** - * <code>.Vector pos = 2;</code> - * @return Whether the pos field is set. - */ - @java.lang.Override - public boolean hasPos() { - return pos_ != null; - } - /** - * <code>.Vector pos = 2;</code> - * @return The pos. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getPos() { - return pos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : pos_; - } - /** - * <code>.Vector pos = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOrBuilder() { - return getPos(); - } - - public static final int ROT_FIELD_NUMBER = 3; - private emu.grasscutter.net.proto.VectorOuterClass.Vector rot_; - /** - * <code>.Vector rot = 3;</code> - * @return Whether the rot field is set. - */ - @java.lang.Override - public boolean hasRot() { - return rot_ != null; - } - /** - * <code>.Vector rot = 3;</code> - * @return The rot. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getRot() { - return rot_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : rot_; - } - /** - * <code>.Vector rot = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRotOrBuilder() { - return getRot(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (uid_ != 0) { - output.writeUInt32(1, uid_); - } - if (pos_ != null) { - output.writeMessage(2, getPos()); - } - if (rot_ != null) { - output.writeMessage(3, getRot()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (uid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, uid_); - } - if (pos_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPos()); - } - if (rot_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRot()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo other = (emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo) obj; - - if (getUid() - != other.getUid()) return false; - if (hasPos() != other.hasPos()) return false; - if (hasPos()) { - if (!getPos() - .equals(other.getPos())) return false; - } - if (hasRot() != other.hasRot()) return false; - if (hasRot()) { - if (!getRot() - .equals(other.getRot())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + UID_FIELD_NUMBER; - hash = (53 * hash) + getUid(); - if (hasPos()) { - hash = (37 * hash) + POS_FIELD_NUMBER; - hash = (53 * hash) + getPos().hashCode(); - } - if (hasRot()) { - hash = (37 * hash) + ROT_FIELD_NUMBER; - hash = (53 * hash) + getRot().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PlayerLocationInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerLocationInfo) - emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.internal_static_PlayerLocationInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.internal_static_PlayerLocationInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.class, emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - uid_ = 0; - - if (posBuilder_ == null) { - pos_ = null; - } else { - pos_ = null; - posBuilder_ = null; - } - if (rotBuilder_ == null) { - rot_ = null; - } else { - rot_ = null; - rotBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.internal_static_PlayerLocationInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo build() { - emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo buildPartial() { - emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo result = new emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo(this); - result.uid_ = uid_; - if (posBuilder_ == null) { - result.pos_ = pos_; - } else { - result.pos_ = posBuilder_.build(); - } - if (rotBuilder_ == null) { - result.rot_ = rot_; - } else { - result.rot_ = rotBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo) { - return mergeFrom((emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo other) { - if (other == emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.getDefaultInstance()) return this; - if (other.getUid() != 0) { - setUid(other.getUid()); - } - if (other.hasPos()) { - mergePos(other.getPos()); - } - if (other.hasRot()) { - mergeRot(other.getRot()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int uid_ ; - /** - * <code>uint32 uid = 1;</code> - * @return The uid. - */ - @java.lang.Override - public int getUid() { - return uid_; - } - /** - * <code>uint32 uid = 1;</code> - * @param value The uid to set. - * @return This builder for chaining. - */ - public Builder setUid(int value) { - - uid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 uid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearUid() { - - uid_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.VectorOuterClass.Vector pos_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> posBuilder_; - /** - * <code>.Vector pos = 2;</code> - * @return Whether the pos field is set. - */ - public boolean hasPos() { - return posBuilder_ != null || pos_ != null; - } - /** - * <code>.Vector pos = 2;</code> - * @return The pos. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getPos() { - if (posBuilder_ == null) { - return pos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : pos_; - } else { - return posBuilder_.getMessage(); - } - } - /** - * <code>.Vector pos = 2;</code> - */ - public Builder setPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (posBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pos_ = value; - onChanged(); - } else { - posBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Vector pos = 2;</code> - */ - public Builder setPos( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (posBuilder_ == null) { - pos_ = builderForValue.build(); - onChanged(); - } else { - posBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Vector pos = 2;</code> - */ - public Builder mergePos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (posBuilder_ == null) { - if (pos_ != null) { - pos_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(pos_).mergeFrom(value).buildPartial(); - } else { - pos_ = value; - } - onChanged(); - } else { - posBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Vector pos = 2;</code> - */ - public Builder clearPos() { - if (posBuilder_ == null) { - pos_ = null; - onChanged(); - } else { - pos_ = null; - posBuilder_ = null; - } - - return this; - } - /** - * <code>.Vector pos = 2;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getPosBuilder() { - - onChanged(); - return getPosFieldBuilder().getBuilder(); - } - /** - * <code>.Vector pos = 2;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOrBuilder() { - if (posBuilder_ != null) { - return posBuilder_.getMessageOrBuilder(); - } else { - return pos_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : pos_; - } - } - /** - * <code>.Vector pos = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getPosFieldBuilder() { - if (posBuilder_ == null) { - posBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getPos(), - getParentForChildren(), - isClean()); - pos_ = null; - } - return posBuilder_; - } - - private emu.grasscutter.net.proto.VectorOuterClass.Vector rot_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> rotBuilder_; - /** - * <code>.Vector rot = 3;</code> - * @return Whether the rot field is set. - */ - public boolean hasRot() { - return rotBuilder_ != null || rot_ != null; - } - /** - * <code>.Vector rot = 3;</code> - * @return The rot. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getRot() { - if (rotBuilder_ == null) { - return rot_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : rot_; - } else { - return rotBuilder_.getMessage(); - } - } - /** - * <code>.Vector rot = 3;</code> - */ - public Builder setRot(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (rotBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rot_ = value; - onChanged(); - } else { - rotBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Vector rot = 3;</code> - */ - public Builder setRot( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (rotBuilder_ == null) { - rot_ = builderForValue.build(); - onChanged(); - } else { - rotBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Vector rot = 3;</code> - */ - public Builder mergeRot(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (rotBuilder_ == null) { - if (rot_ != null) { - rot_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(rot_).mergeFrom(value).buildPartial(); - } else { - rot_ = value; - } - onChanged(); - } else { - rotBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Vector rot = 3;</code> - */ - public Builder clearRot() { - if (rotBuilder_ == null) { - rot_ = null; - onChanged(); - } else { - rot_ = null; - rotBuilder_ = null; - } - - return this; - } - /** - * <code>.Vector rot = 3;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getRotBuilder() { - - onChanged(); - return getRotFieldBuilder().getBuilder(); - } - /** - * <code>.Vector rot = 3;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRotOrBuilder() { - if (rotBuilder_ != null) { - return rotBuilder_.getMessageOrBuilder(); - } else { - return rot_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : rot_; - } - } - /** - * <code>.Vector rot = 3;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getRotFieldBuilder() { - if (rotBuilder_ == null) { - rotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getRot(), - getParentForChildren(), - isClean()); - rot_ = null; - } - return rotBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerLocationInfo) - } - - // @@protoc_insertion_point(class_scope:PlayerLocationInfo) - private static final emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo(); - } - - public static emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PlayerLocationInfo> - PARSER = new com.google.protobuf.AbstractParser<PlayerLocationInfo>() { - @java.lang.Override - public PlayerLocationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerLocationInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PlayerLocationInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PlayerLocationInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerLocationInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerLocationInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030PlayerLocationInfo.proto\032\014Vector.proto" + - "\"M\n\022PlayerLocationInfo\022\013\n\003uid\030\001 \001(\r\022\024\n\003p" + - "os\030\002 \001(\0132\007.Vector\022\024\n\003rot\030\003 \001(\0132\007.VectorB" + - "\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(), - }); - internal_static_PlayerLocationInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerLocationInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerLocationInfo_descriptor, - new java.lang.String[] { "Uid", "Pos", "Rot", }); - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PlayerLoginReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PlayerLoginReqOuterClass.java deleted file mode 100644 index c4861beaf..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PlayerLoginReqOuterClass.java +++ /dev/null @@ -1,4063 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerLoginReq.proto - -package emu.grasscutter.net.proto; - -public final class PlayerLoginReqOuterClass { - private PlayerLoginReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerLoginReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerLoginReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>string token = 1;</code> - * @return The token. - */ - java.lang.String getToken(); - /** - * <code>string token = 1;</code> - * @return The bytes for token. - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - * <code>string clientVersion = 2;</code> - * @return The clientVersion. - */ - java.lang.String getClientVersion(); - /** - * <code>string clientVersion = 2;</code> - * @return The bytes for clientVersion. - */ - com.google.protobuf.ByteString - getClientVersionBytes(); - - /** - * <code>string systemVersion = 3;</code> - * @return The systemVersion. - */ - java.lang.String getSystemVersion(); - /** - * <code>string systemVersion = 3;</code> - * @return The bytes for systemVersion. - */ - com.google.protobuf.ByteString - getSystemVersionBytes(); - - /** - * <code>string deviceName = 4;</code> - * @return The deviceName. - */ - java.lang.String getDeviceName(); - /** - * <code>string deviceName = 4;</code> - * @return The bytes for deviceName. - */ - com.google.protobuf.ByteString - getDeviceNameBytes(); - - /** - * <code>string deviceUuid = 5;</code> - * @return The deviceUuid. - */ - java.lang.String getDeviceUuid(); - /** - * <code>string deviceUuid = 5;</code> - * @return The bytes for deviceUuid. - */ - com.google.protobuf.ByteString - getDeviceUuidBytes(); - - /** - * <code>uint32 targetUid = 6;</code> - * @return The targetUid. - */ - int getTargetUid(); - - /** - * <code>uint64 loginRand = 7;</code> - * @return The loginRand. - */ - long getLoginRand(); - - /** - * <code>bool isEditor = 8;</code> - * @return The isEditor. - */ - boolean getIsEditor(); - - /** - * <code>uint32 languageType = 9;</code> - * @return The languageType. - */ - int getLanguageType(); - - /** - * <code>uint32 accountType = 10;</code> - * @return The accountType. - */ - int getAccountType(); - - /** - * <code>string accountUid = 11;</code> - * @return The accountUid. - */ - java.lang.String getAccountUid(); - /** - * <code>string accountUid = 11;</code> - * @return The bytes for accountUid. - */ - com.google.protobuf.ByteString - getAccountUidBytes(); - - /** - * <code>string platform = 12;</code> - * @return The platform. - */ - java.lang.String getPlatform(); - /** - * <code>string platform = 12;</code> - * @return The bytes for platform. - */ - com.google.protobuf.ByteString - getPlatformBytes(); - - /** - * <code>string deviceInfo = 13;</code> - * @return The deviceInfo. - */ - java.lang.String getDeviceInfo(); - /** - * <code>string deviceInfo = 13;</code> - * @return The bytes for deviceInfo. - */ - com.google.protobuf.ByteString - getDeviceInfoBytes(); - - /** - * <code>uint32 platformType = 14;</code> - * @return The platformType. - */ - int getPlatformType(); - - /** - * <code>bool isGuest = 15;</code> - * @return The isGuest. - */ - boolean getIsGuest(); - - /** - * <code>uint32 cloudClientIp = 16;</code> - * @return The cloudClientIp. - */ - int getCloudClientIp(); - - /** - * <code>uint32 gmUid = 17;</code> - * @return The gmUid. - */ - int getGmUid(); - - /** - * <code>string checksum = 18;</code> - * @return The checksum. - */ - java.lang.String getChecksum(); - /** - * <code>string checksum = 18;</code> - * @return The bytes for checksum. - */ - com.google.protobuf.ByteString - getChecksumBytes(); - - /** - * <code>string onlineId = 19;</code> - * @return The onlineId. - */ - java.lang.String getOnlineId(); - /** - * <code>string onlineId = 19;</code> - * @return The bytes for onlineId. - */ - com.google.protobuf.ByteString - getOnlineIdBytes(); - - /** - * <code>uint32 clientToken = 20;</code> - * @return The clientToken. - */ - int getClientToken(); - - /** - * <code>bytes securityCmdReply = 21;</code> - * @return The securityCmdReply. - */ - com.google.protobuf.ByteString getSecurityCmdReply(); - - /** - * <code>bytes extraBinData = 22;</code> - * @return The extraBinData. - */ - com.google.protobuf.ByteString getExtraBinData(); - - /** - * <code>string cps = 23;</code> - * @return The cps. - */ - java.lang.String getCps(); - /** - * <code>string cps = 23;</code> - * @return The bytes for cps. - */ - com.google.protobuf.ByteString - getCpsBytes(); - - /** - * <code>uint32 channelId = 24;</code> - * @return The channelId. - */ - int getChannelId(); - - /** - * <code>uint32 subChannelId = 25;</code> - * @return The subChannelId. - */ - int getSubChannelId(); - - /** - * <code>string checksumClientVersion = 26;</code> - * @return The checksumClientVersion. - */ - java.lang.String getChecksumClientVersion(); - /** - * <code>string checksumClientVersion = 26;</code> - * @return The bytes for checksumClientVersion. - */ - com.google.protobuf.ByteString - getChecksumClientVersionBytes(); - - /** - * <code>uint32 tag = 27;</code> - * @return The tag. - */ - int getTag(); - - /** - * <code>.TrackingIOInfo trackingIoInfo = 28;</code> - * @return Whether the trackingIoInfo field is set. - */ - boolean hasTrackingIoInfo(); - /** - * <code>.TrackingIOInfo trackingIoInfo = 28;</code> - * @return The trackingIoInfo. - */ - emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo getTrackingIoInfo(); - /** - * <code>.TrackingIOInfo trackingIoInfo = 28;</code> - */ - emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfoOrBuilder getTrackingIoInfoOrBuilder(); - - /** - * <code>string countryCode = 29;</code> - * @return The countryCode. - */ - java.lang.String getCountryCode(); - /** - * <code>string countryCode = 29;</code> - * @return The bytes for countryCode. - */ - com.google.protobuf.ByteString - getCountryCodeBytes(); - - /** - * <code>uint32 clientDataVersion = 30;</code> - * @return The clientDataVersion. - */ - int getClientDataVersion(); - - /** - * <code>bytes environmentErrorCode = 31;</code> - * @return The environmentErrorCode. - */ - com.google.protobuf.ByteString getEnvironmentErrorCode(); - - /** - * <code>uint32 targetHomeOwnerUid = 32;</code> - * @return The targetHomeOwnerUid. - */ - int getTargetHomeOwnerUid(); - - /** - * <code>string psnId = 33;</code> - * @return The psnId. - */ - java.lang.String getPsnId(); - /** - * <code>string psnId = 33;</code> - * @return The bytes for psnId. - */ - com.google.protobuf.ByteString - getPsnIdBytes(); - } - /** - * Protobuf type {@code PlayerLoginReq} - */ - public static final class PlayerLoginReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerLoginReq) - PlayerLoginReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerLoginReq.newBuilder() to construct. - private PlayerLoginReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PlayerLoginReq() { - token_ = ""; - clientVersion_ = ""; - systemVersion_ = ""; - deviceName_ = ""; - deviceUuid_ = ""; - accountUid_ = ""; - platform_ = ""; - deviceInfo_ = ""; - checksum_ = ""; - onlineId_ = ""; - securityCmdReply_ = com.google.protobuf.ByteString.EMPTY; - extraBinData_ = com.google.protobuf.ByteString.EMPTY; - cps_ = ""; - checksumClientVersion_ = ""; - countryCode_ = ""; - environmentErrorCode_ = com.google.protobuf.ByteString.EMPTY; - psnId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerLoginReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerLoginReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - clientVersion_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - systemVersion_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - deviceName_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - deviceUuid_ = s; - break; - } - case 48: { - - targetUid_ = input.readUInt32(); - break; - } - case 56: { - - loginRand_ = input.readUInt64(); - break; - } - case 64: { - - isEditor_ = input.readBool(); - break; - } - case 72: { - - languageType_ = input.readUInt32(); - break; - } - case 80: { - - accountType_ = input.readUInt32(); - break; - } - case 90: { - java.lang.String s = input.readStringRequireUtf8(); - - accountUid_ = s; - break; - } - case 98: { - java.lang.String s = input.readStringRequireUtf8(); - - platform_ = s; - break; - } - case 106: { - java.lang.String s = input.readStringRequireUtf8(); - - deviceInfo_ = s; - break; - } - case 112: { - - platformType_ = input.readUInt32(); - break; - } - case 120: { - - isGuest_ = input.readBool(); - break; - } - case 128: { - - cloudClientIp_ = input.readUInt32(); - break; - } - case 136: { - - gmUid_ = input.readUInt32(); - break; - } - case 146: { - java.lang.String s = input.readStringRequireUtf8(); - - checksum_ = s; - break; - } - case 154: { - java.lang.String s = input.readStringRequireUtf8(); - - onlineId_ = s; - break; - } - case 160: { - - clientToken_ = input.readUInt32(); - break; - } - case 170: { - - securityCmdReply_ = input.readBytes(); - break; - } - case 178: { - - extraBinData_ = input.readBytes(); - break; - } - case 186: { - java.lang.String s = input.readStringRequireUtf8(); - - cps_ = s; - break; - } - case 192: { - - channelId_ = input.readUInt32(); - break; - } - case 200: { - - subChannelId_ = input.readUInt32(); - break; - } - case 210: { - java.lang.String s = input.readStringRequireUtf8(); - - checksumClientVersion_ = s; - break; - } - case 216: { - - tag_ = input.readUInt32(); - break; - } - case 226: { - emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo.Builder subBuilder = null; - if (trackingIoInfo_ != null) { - subBuilder = trackingIoInfo_.toBuilder(); - } - trackingIoInfo_ = input.readMessage(emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(trackingIoInfo_); - trackingIoInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 234: { - java.lang.String s = input.readStringRequireUtf8(); - - countryCode_ = s; - break; - } - case 240: { - - clientDataVersion_ = input.readUInt32(); - break; - } - case 250: { - - environmentErrorCode_ = input.readBytes(); - break; - } - case 256: { - - targetHomeOwnerUid_ = input.readUInt32(); - break; - } - case 266: { - java.lang.String s = input.readStringRequireUtf8(); - - psnId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerLoginReqOuterClass.internal_static_PlayerLoginReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerLoginReqOuterClass.internal_static_PlayerLoginReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq.class, emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq.Builder.class); - } - - public static final int TOKEN_FIELD_NUMBER = 1; - private volatile java.lang.Object token_; - /** - * <code>string token = 1;</code> - * @return The token. - */ - @java.lang.Override - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - /** - * <code>string token = 1;</code> - * @return The bytes for token. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENTVERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object clientVersion_; - /** - * <code>string clientVersion = 2;</code> - * @return The clientVersion. - */ - @java.lang.Override - public java.lang.String getClientVersion() { - java.lang.Object ref = clientVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientVersion_ = s; - return s; - } - } - /** - * <code>string clientVersion = 2;</code> - * @return The bytes for clientVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClientVersionBytes() { - java.lang.Object ref = clientVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SYSTEMVERSION_FIELD_NUMBER = 3; - private volatile java.lang.Object systemVersion_; - /** - * <code>string systemVersion = 3;</code> - * @return The systemVersion. - */ - @java.lang.Override - public java.lang.String getSystemVersion() { - java.lang.Object ref = systemVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - systemVersion_ = s; - return s; - } - } - /** - * <code>string systemVersion = 3;</code> - * @return The bytes for systemVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSystemVersionBytes() { - java.lang.Object ref = systemVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - systemVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEVICENAME_FIELD_NUMBER = 4; - private volatile java.lang.Object deviceName_; - /** - * <code>string deviceName = 4;</code> - * @return The deviceName. - */ - @java.lang.Override - public java.lang.String getDeviceName() { - java.lang.Object ref = deviceName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deviceName_ = s; - return s; - } - } - /** - * <code>string deviceName = 4;</code> - * @return The bytes for deviceName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDeviceNameBytes() { - java.lang.Object ref = deviceName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deviceName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEVICEUUID_FIELD_NUMBER = 5; - private volatile java.lang.Object deviceUuid_; - /** - * <code>string deviceUuid = 5;</code> - * @return The deviceUuid. - */ - @java.lang.Override - public java.lang.String getDeviceUuid() { - java.lang.Object ref = deviceUuid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deviceUuid_ = s; - return s; - } - } - /** - * <code>string deviceUuid = 5;</code> - * @return The bytes for deviceUuid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDeviceUuidBytes() { - java.lang.Object ref = deviceUuid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deviceUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TARGETUID_FIELD_NUMBER = 6; - private int targetUid_; - /** - * <code>uint32 targetUid = 6;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - - public static final int LOGINRAND_FIELD_NUMBER = 7; - private long loginRand_; - /** - * <code>uint64 loginRand = 7;</code> - * @return The loginRand. - */ - @java.lang.Override - public long getLoginRand() { - return loginRand_; - } - - public static final int ISEDITOR_FIELD_NUMBER = 8; - private boolean isEditor_; - /** - * <code>bool isEditor = 8;</code> - * @return The isEditor. - */ - @java.lang.Override - public boolean getIsEditor() { - return isEditor_; - } - - public static final int LANGUAGETYPE_FIELD_NUMBER = 9; - private int languageType_; - /** - * <code>uint32 languageType = 9;</code> - * @return The languageType. - */ - @java.lang.Override - public int getLanguageType() { - return languageType_; - } - - public static final int ACCOUNTTYPE_FIELD_NUMBER = 10; - private int accountType_; - /** - * <code>uint32 accountType = 10;</code> - * @return The accountType. - */ - @java.lang.Override - public int getAccountType() { - return accountType_; - } - - public static final int ACCOUNTUID_FIELD_NUMBER = 11; - private volatile java.lang.Object accountUid_; - /** - * <code>string accountUid = 11;</code> - * @return The accountUid. - */ - @java.lang.Override - public java.lang.String getAccountUid() { - java.lang.Object ref = accountUid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - accountUid_ = s; - return s; - } - } - /** - * <code>string accountUid = 11;</code> - * @return The bytes for accountUid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAccountUidBytes() { - java.lang.Object ref = accountUid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - accountUid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PLATFORM_FIELD_NUMBER = 12; - private volatile java.lang.Object platform_; - /** - * <code>string platform = 12;</code> - * @return The platform. - */ - @java.lang.Override - public java.lang.String getPlatform() { - java.lang.Object ref = platform_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - platform_ = s; - return s; - } - } - /** - * <code>string platform = 12;</code> - * @return The bytes for platform. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPlatformBytes() { - java.lang.Object ref = platform_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - platform_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEVICEINFO_FIELD_NUMBER = 13; - private volatile java.lang.Object deviceInfo_; - /** - * <code>string deviceInfo = 13;</code> - * @return The deviceInfo. - */ - @java.lang.Override - public java.lang.String getDeviceInfo() { - java.lang.Object ref = deviceInfo_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deviceInfo_ = s; - return s; - } - } - /** - * <code>string deviceInfo = 13;</code> - * @return The bytes for deviceInfo. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDeviceInfoBytes() { - java.lang.Object ref = deviceInfo_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deviceInfo_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PLATFORMTYPE_FIELD_NUMBER = 14; - private int platformType_; - /** - * <code>uint32 platformType = 14;</code> - * @return The platformType. - */ - @java.lang.Override - public int getPlatformType() { - return platformType_; - } - - public static final int ISGUEST_FIELD_NUMBER = 15; - private boolean isGuest_; - /** - * <code>bool isGuest = 15;</code> - * @return The isGuest. - */ - @java.lang.Override - public boolean getIsGuest() { - return isGuest_; - } - - public static final int CLOUDCLIENTIP_FIELD_NUMBER = 16; - private int cloudClientIp_; - /** - * <code>uint32 cloudClientIp = 16;</code> - * @return The cloudClientIp. - */ - @java.lang.Override - public int getCloudClientIp() { - return cloudClientIp_; - } - - public static final int GMUID_FIELD_NUMBER = 17; - private int gmUid_; - /** - * <code>uint32 gmUid = 17;</code> - * @return The gmUid. - */ - @java.lang.Override - public int getGmUid() { - return gmUid_; - } - - public static final int CHECKSUM_FIELD_NUMBER = 18; - private volatile java.lang.Object checksum_; - /** - * <code>string checksum = 18;</code> - * @return The checksum. - */ - @java.lang.Override - public java.lang.String getChecksum() { - java.lang.Object ref = checksum_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - checksum_ = s; - return s; - } - } - /** - * <code>string checksum = 18;</code> - * @return The bytes for checksum. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getChecksumBytes() { - java.lang.Object ref = checksum_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - checksum_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ONLINEID_FIELD_NUMBER = 19; - private volatile java.lang.Object onlineId_; - /** - * <code>string onlineId = 19;</code> - * @return The onlineId. - */ - @java.lang.Override - public java.lang.String getOnlineId() { - java.lang.Object ref = onlineId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - onlineId_ = s; - return s; - } - } - /** - * <code>string onlineId = 19;</code> - * @return The bytes for onlineId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOnlineIdBytes() { - java.lang.Object ref = onlineId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - onlineId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENTTOKEN_FIELD_NUMBER = 20; - private int clientToken_; - /** - * <code>uint32 clientToken = 20;</code> - * @return The clientToken. - */ - @java.lang.Override - public int getClientToken() { - return clientToken_; - } - - public static final int SECURITYCMDREPLY_FIELD_NUMBER = 21; - private com.google.protobuf.ByteString securityCmdReply_; - /** - * <code>bytes securityCmdReply = 21;</code> - * @return The securityCmdReply. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSecurityCmdReply() { - return securityCmdReply_; - } - - public static final int EXTRABINDATA_FIELD_NUMBER = 22; - private com.google.protobuf.ByteString extraBinData_; - /** - * <code>bytes extraBinData = 22;</code> - * @return The extraBinData. - */ - @java.lang.Override - public com.google.protobuf.ByteString getExtraBinData() { - return extraBinData_; - } - - public static final int CPS_FIELD_NUMBER = 23; - private volatile java.lang.Object cps_; - /** - * <code>string cps = 23;</code> - * @return The cps. - */ - @java.lang.Override - public java.lang.String getCps() { - java.lang.Object ref = cps_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cps_ = s; - return s; - } - } - /** - * <code>string cps = 23;</code> - * @return The bytes for cps. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCpsBytes() { - java.lang.Object ref = cps_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cps_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANNELID_FIELD_NUMBER = 24; - private int channelId_; - /** - * <code>uint32 channelId = 24;</code> - * @return The channelId. - */ - @java.lang.Override - public int getChannelId() { - return channelId_; - } - - public static final int SUBCHANNELID_FIELD_NUMBER = 25; - private int subChannelId_; - /** - * <code>uint32 subChannelId = 25;</code> - * @return The subChannelId. - */ - @java.lang.Override - public int getSubChannelId() { - return subChannelId_; - } - - public static final int CHECKSUMCLIENTVERSION_FIELD_NUMBER = 26; - private volatile java.lang.Object checksumClientVersion_; - /** - * <code>string checksumClientVersion = 26;</code> - * @return The checksumClientVersion. - */ - @java.lang.Override - public java.lang.String getChecksumClientVersion() { - java.lang.Object ref = checksumClientVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - checksumClientVersion_ = s; - return s; - } - } - /** - * <code>string checksumClientVersion = 26;</code> - * @return The bytes for checksumClientVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getChecksumClientVersionBytes() { - java.lang.Object ref = checksumClientVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - checksumClientVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TAG_FIELD_NUMBER = 27; - private int tag_; - /** - * <code>uint32 tag = 27;</code> - * @return The tag. - */ - @java.lang.Override - public int getTag() { - return tag_; - } - - public static final int TRACKINGIOINFO_FIELD_NUMBER = 28; - private emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo trackingIoInfo_; - /** - * <code>.TrackingIOInfo trackingIoInfo = 28;</code> - * @return Whether the trackingIoInfo field is set. - */ - @java.lang.Override - public boolean hasTrackingIoInfo() { - return trackingIoInfo_ != null; - } - /** - * <code>.TrackingIOInfo trackingIoInfo = 28;</code> - * @return The trackingIoInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo getTrackingIoInfo() { - return trackingIoInfo_ == null ? emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo.getDefaultInstance() : trackingIoInfo_; - } - /** - * <code>.TrackingIOInfo trackingIoInfo = 28;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfoOrBuilder getTrackingIoInfoOrBuilder() { - return getTrackingIoInfo(); - } - - public static final int COUNTRYCODE_FIELD_NUMBER = 29; - private volatile java.lang.Object countryCode_; - /** - * <code>string countryCode = 29;</code> - * @return The countryCode. - */ - @java.lang.Override - public java.lang.String getCountryCode() { - java.lang.Object ref = countryCode_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - countryCode_ = s; - return s; - } - } - /** - * <code>string countryCode = 29;</code> - * @return The bytes for countryCode. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCountryCodeBytes() { - java.lang.Object ref = countryCode_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - countryCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENTDATAVERSION_FIELD_NUMBER = 30; - private int clientDataVersion_; - /** - * <code>uint32 clientDataVersion = 30;</code> - * @return The clientDataVersion. - */ - @java.lang.Override - public int getClientDataVersion() { - return clientDataVersion_; - } - - public static final int ENVIRONMENTERRORCODE_FIELD_NUMBER = 31; - private com.google.protobuf.ByteString environmentErrorCode_; - /** - * <code>bytes environmentErrorCode = 31;</code> - * @return The environmentErrorCode. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEnvironmentErrorCode() { - return environmentErrorCode_; - } - - public static final int TARGETHOMEOWNERUID_FIELD_NUMBER = 32; - private int targetHomeOwnerUid_; - /** - * <code>uint32 targetHomeOwnerUid = 32;</code> - * @return The targetHomeOwnerUid. - */ - @java.lang.Override - public int getTargetHomeOwnerUid() { - return targetHomeOwnerUid_; - } - - public static final int PSNID_FIELD_NUMBER = 33; - private volatile java.lang.Object psnId_; - /** - * <code>string psnId = 33;</code> - * @return The psnId. - */ - @java.lang.Override - public java.lang.String getPsnId() { - java.lang.Object ref = psnId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - psnId_ = s; - return s; - } - } - /** - * <code>string psnId = 33;</code> - * @return The bytes for psnId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPsnIdBytes() { - java.lang.Object ref = psnId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - psnId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, token_); - } - if (!getClientVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clientVersion_); - } - if (!getSystemVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, systemVersion_); - } - if (!getDeviceNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, deviceName_); - } - if (!getDeviceUuidBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, deviceUuid_); - } - if (targetUid_ != 0) { - output.writeUInt32(6, targetUid_); - } - if (loginRand_ != 0L) { - output.writeUInt64(7, loginRand_); - } - if (isEditor_ != false) { - output.writeBool(8, isEditor_); - } - if (languageType_ != 0) { - output.writeUInt32(9, languageType_); - } - if (accountType_ != 0) { - output.writeUInt32(10, accountType_); - } - if (!getAccountUidBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, accountUid_); - } - if (!getPlatformBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, platform_); - } - if (!getDeviceInfoBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, deviceInfo_); - } - if (platformType_ != 0) { - output.writeUInt32(14, platformType_); - } - if (isGuest_ != false) { - output.writeBool(15, isGuest_); - } - if (cloudClientIp_ != 0) { - output.writeUInt32(16, cloudClientIp_); - } - if (gmUid_ != 0) { - output.writeUInt32(17, gmUid_); - } - if (!getChecksumBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 18, checksum_); - } - if (!getOnlineIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 19, onlineId_); - } - if (clientToken_ != 0) { - output.writeUInt32(20, clientToken_); - } - if (!securityCmdReply_.isEmpty()) { - output.writeBytes(21, securityCmdReply_); - } - if (!extraBinData_.isEmpty()) { - output.writeBytes(22, extraBinData_); - } - if (!getCpsBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 23, cps_); - } - if (channelId_ != 0) { - output.writeUInt32(24, channelId_); - } - if (subChannelId_ != 0) { - output.writeUInt32(25, subChannelId_); - } - if (!getChecksumClientVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 26, checksumClientVersion_); - } - if (tag_ != 0) { - output.writeUInt32(27, tag_); - } - if (trackingIoInfo_ != null) { - output.writeMessage(28, getTrackingIoInfo()); - } - if (!getCountryCodeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 29, countryCode_); - } - if (clientDataVersion_ != 0) { - output.writeUInt32(30, clientDataVersion_); - } - if (!environmentErrorCode_.isEmpty()) { - output.writeBytes(31, environmentErrorCode_); - } - if (targetHomeOwnerUid_ != 0) { - output.writeUInt32(32, targetHomeOwnerUid_); - } - if (!getPsnIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 33, psnId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, token_); - } - if (!getClientVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clientVersion_); - } - if (!getSystemVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, systemVersion_); - } - if (!getDeviceNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, deviceName_); - } - if (!getDeviceUuidBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, deviceUuid_); - } - if (targetUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, targetUid_); - } - if (loginRand_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(7, loginRand_); - } - if (isEditor_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, isEditor_); - } - if (languageType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(9, languageType_); - } - if (accountType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(10, accountType_); - } - if (!getAccountUidBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, accountUid_); - } - if (!getPlatformBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, platform_); - } - if (!getDeviceInfoBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, deviceInfo_); - } - if (platformType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(14, platformType_); - } - if (isGuest_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(15, isGuest_); - } - if (cloudClientIp_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(16, cloudClientIp_); - } - if (gmUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(17, gmUid_); - } - if (!getChecksumBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, checksum_); - } - if (!getOnlineIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, onlineId_); - } - if (clientToken_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(20, clientToken_); - } - if (!securityCmdReply_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(21, securityCmdReply_); - } - if (!extraBinData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(22, extraBinData_); - } - if (!getCpsBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, cps_); - } - if (channelId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(24, channelId_); - } - if (subChannelId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(25, subChannelId_); - } - if (!getChecksumClientVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, checksumClientVersion_); - } - if (tag_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(27, tag_); - } - if (trackingIoInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(28, getTrackingIoInfo()); - } - if (!getCountryCodeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, countryCode_); - } - if (clientDataVersion_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(30, clientDataVersion_); - } - if (!environmentErrorCode_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(31, environmentErrorCode_); - } - if (targetHomeOwnerUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(32, targetHomeOwnerUid_); - } - if (!getPsnIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, psnId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq other = (emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq) obj; - - if (!getToken() - .equals(other.getToken())) return false; - if (!getClientVersion() - .equals(other.getClientVersion())) return false; - if (!getSystemVersion() - .equals(other.getSystemVersion())) return false; - if (!getDeviceName() - .equals(other.getDeviceName())) return false; - if (!getDeviceUuid() - .equals(other.getDeviceUuid())) return false; - if (getTargetUid() - != other.getTargetUid()) return false; - if (getLoginRand() - != other.getLoginRand()) return false; - if (getIsEditor() - != other.getIsEditor()) return false; - if (getLanguageType() - != other.getLanguageType()) return false; - if (getAccountType() - != other.getAccountType()) return false; - if (!getAccountUid() - .equals(other.getAccountUid())) return false; - if (!getPlatform() - .equals(other.getPlatform())) return false; - if (!getDeviceInfo() - .equals(other.getDeviceInfo())) return false; - if (getPlatformType() - != other.getPlatformType()) return false; - if (getIsGuest() - != other.getIsGuest()) return false; - if (getCloudClientIp() - != other.getCloudClientIp()) return false; - if (getGmUid() - != other.getGmUid()) return false; - if (!getChecksum() - .equals(other.getChecksum())) return false; - if (!getOnlineId() - .equals(other.getOnlineId())) return false; - if (getClientToken() - != other.getClientToken()) return false; - if (!getSecurityCmdReply() - .equals(other.getSecurityCmdReply())) return false; - if (!getExtraBinData() - .equals(other.getExtraBinData())) return false; - if (!getCps() - .equals(other.getCps())) return false; - if (getChannelId() - != other.getChannelId()) return false; - if (getSubChannelId() - != other.getSubChannelId()) return false; - if (!getChecksumClientVersion() - .equals(other.getChecksumClientVersion())) return false; - if (getTag() - != other.getTag()) return false; - if (hasTrackingIoInfo() != other.hasTrackingIoInfo()) return false; - if (hasTrackingIoInfo()) { - if (!getTrackingIoInfo() - .equals(other.getTrackingIoInfo())) return false; - } - if (!getCountryCode() - .equals(other.getCountryCode())) return false; - if (getClientDataVersion() - != other.getClientDataVersion()) return false; - if (!getEnvironmentErrorCode() - .equals(other.getEnvironmentErrorCode())) return false; - if (getTargetHomeOwnerUid() - != other.getTargetHomeOwnerUid()) return false; - if (!getPsnId() - .equals(other.getPsnId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (37 * hash) + CLIENTVERSION_FIELD_NUMBER; - hash = (53 * hash) + getClientVersion().hashCode(); - hash = (37 * hash) + SYSTEMVERSION_FIELD_NUMBER; - hash = (53 * hash) + getSystemVersion().hashCode(); - hash = (37 * hash) + DEVICENAME_FIELD_NUMBER; - hash = (53 * hash) + getDeviceName().hashCode(); - hash = (37 * hash) + DEVICEUUID_FIELD_NUMBER; - hash = (53 * hash) + getDeviceUuid().hashCode(); - hash = (37 * hash) + TARGETUID_FIELD_NUMBER; - hash = (53 * hash) + getTargetUid(); - hash = (37 * hash) + LOGINRAND_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLoginRand()); - hash = (37 * hash) + ISEDITOR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsEditor()); - hash = (37 * hash) + LANGUAGETYPE_FIELD_NUMBER; - hash = (53 * hash) + getLanguageType(); - hash = (37 * hash) + ACCOUNTTYPE_FIELD_NUMBER; - hash = (53 * hash) + getAccountType(); - hash = (37 * hash) + ACCOUNTUID_FIELD_NUMBER; - hash = (53 * hash) + getAccountUid().hashCode(); - hash = (37 * hash) + PLATFORM_FIELD_NUMBER; - hash = (53 * hash) + getPlatform().hashCode(); - hash = (37 * hash) + DEVICEINFO_FIELD_NUMBER; - hash = (53 * hash) + getDeviceInfo().hashCode(); - hash = (37 * hash) + PLATFORMTYPE_FIELD_NUMBER; - hash = (53 * hash) + getPlatformType(); - hash = (37 * hash) + ISGUEST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsGuest()); - hash = (37 * hash) + CLOUDCLIENTIP_FIELD_NUMBER; - hash = (53 * hash) + getCloudClientIp(); - hash = (37 * hash) + GMUID_FIELD_NUMBER; - hash = (53 * hash) + getGmUid(); - hash = (37 * hash) + CHECKSUM_FIELD_NUMBER; - hash = (53 * hash) + getChecksum().hashCode(); - hash = (37 * hash) + ONLINEID_FIELD_NUMBER; - hash = (53 * hash) + getOnlineId().hashCode(); - hash = (37 * hash) + CLIENTTOKEN_FIELD_NUMBER; - hash = (53 * hash) + getClientToken(); - hash = (37 * hash) + SECURITYCMDREPLY_FIELD_NUMBER; - hash = (53 * hash) + getSecurityCmdReply().hashCode(); - hash = (37 * hash) + EXTRABINDATA_FIELD_NUMBER; - hash = (53 * hash) + getExtraBinData().hashCode(); - hash = (37 * hash) + CPS_FIELD_NUMBER; - hash = (53 * hash) + getCps().hashCode(); - hash = (37 * hash) + CHANNELID_FIELD_NUMBER; - hash = (53 * hash) + getChannelId(); - hash = (37 * hash) + SUBCHANNELID_FIELD_NUMBER; - hash = (53 * hash) + getSubChannelId(); - hash = (37 * hash) + CHECKSUMCLIENTVERSION_FIELD_NUMBER; - hash = (53 * hash) + getChecksumClientVersion().hashCode(); - hash = (37 * hash) + TAG_FIELD_NUMBER; - hash = (53 * hash) + getTag(); - if (hasTrackingIoInfo()) { - hash = (37 * hash) + TRACKINGIOINFO_FIELD_NUMBER; - hash = (53 * hash) + getTrackingIoInfo().hashCode(); - } - hash = (37 * hash) + COUNTRYCODE_FIELD_NUMBER; - hash = (53 * hash) + getCountryCode().hashCode(); - hash = (37 * hash) + CLIENTDATAVERSION_FIELD_NUMBER; - hash = (53 * hash) + getClientDataVersion(); - hash = (37 * hash) + ENVIRONMENTERRORCODE_FIELD_NUMBER; - hash = (53 * hash) + getEnvironmentErrorCode().hashCode(); - hash = (37 * hash) + TARGETHOMEOWNERUID_FIELD_NUMBER; - hash = (53 * hash) + getTargetHomeOwnerUid(); - hash = (37 * hash) + PSNID_FIELD_NUMBER; - hash = (53 * hash) + getPsnId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PlayerLoginReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerLoginReq) - emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerLoginReqOuterClass.internal_static_PlayerLoginReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerLoginReqOuterClass.internal_static_PlayerLoginReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq.class, emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - token_ = ""; - - clientVersion_ = ""; - - systemVersion_ = ""; - - deviceName_ = ""; - - deviceUuid_ = ""; - - targetUid_ = 0; - - loginRand_ = 0L; - - isEditor_ = false; - - languageType_ = 0; - - accountType_ = 0; - - accountUid_ = ""; - - platform_ = ""; - - deviceInfo_ = ""; - - platformType_ = 0; - - isGuest_ = false; - - cloudClientIp_ = 0; - - gmUid_ = 0; - - checksum_ = ""; - - onlineId_ = ""; - - clientToken_ = 0; - - securityCmdReply_ = com.google.protobuf.ByteString.EMPTY; - - extraBinData_ = com.google.protobuf.ByteString.EMPTY; - - cps_ = ""; - - channelId_ = 0; - - subChannelId_ = 0; - - checksumClientVersion_ = ""; - - tag_ = 0; - - if (trackingIoInfoBuilder_ == null) { - trackingIoInfo_ = null; - } else { - trackingIoInfo_ = null; - trackingIoInfoBuilder_ = null; - } - countryCode_ = ""; - - clientDataVersion_ = 0; - - environmentErrorCode_ = com.google.protobuf.ByteString.EMPTY; - - targetHomeOwnerUid_ = 0; - - psnId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerLoginReqOuterClass.internal_static_PlayerLoginReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq build() { - emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq buildPartial() { - emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq result = new emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq(this); - result.token_ = token_; - result.clientVersion_ = clientVersion_; - result.systemVersion_ = systemVersion_; - result.deviceName_ = deviceName_; - result.deviceUuid_ = deviceUuid_; - result.targetUid_ = targetUid_; - result.loginRand_ = loginRand_; - result.isEditor_ = isEditor_; - result.languageType_ = languageType_; - result.accountType_ = accountType_; - result.accountUid_ = accountUid_; - result.platform_ = platform_; - result.deviceInfo_ = deviceInfo_; - result.platformType_ = platformType_; - result.isGuest_ = isGuest_; - result.cloudClientIp_ = cloudClientIp_; - result.gmUid_ = gmUid_; - result.checksum_ = checksum_; - result.onlineId_ = onlineId_; - result.clientToken_ = clientToken_; - result.securityCmdReply_ = securityCmdReply_; - result.extraBinData_ = extraBinData_; - result.cps_ = cps_; - result.channelId_ = channelId_; - result.subChannelId_ = subChannelId_; - result.checksumClientVersion_ = checksumClientVersion_; - result.tag_ = tag_; - if (trackingIoInfoBuilder_ == null) { - result.trackingIoInfo_ = trackingIoInfo_; - } else { - result.trackingIoInfo_ = trackingIoInfoBuilder_.build(); - } - result.countryCode_ = countryCode_; - result.clientDataVersion_ = clientDataVersion_; - result.environmentErrorCode_ = environmentErrorCode_; - result.targetHomeOwnerUid_ = targetHomeOwnerUid_; - result.psnId_ = psnId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq) { - return mergeFrom((emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq other) { - if (other == emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq.getDefaultInstance()) return this; - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (!other.getClientVersion().isEmpty()) { - clientVersion_ = other.clientVersion_; - onChanged(); - } - if (!other.getSystemVersion().isEmpty()) { - systemVersion_ = other.systemVersion_; - onChanged(); - } - if (!other.getDeviceName().isEmpty()) { - deviceName_ = other.deviceName_; - onChanged(); - } - if (!other.getDeviceUuid().isEmpty()) { - deviceUuid_ = other.deviceUuid_; - onChanged(); - } - if (other.getTargetUid() != 0) { - setTargetUid(other.getTargetUid()); - } - if (other.getLoginRand() != 0L) { - setLoginRand(other.getLoginRand()); - } - if (other.getIsEditor() != false) { - setIsEditor(other.getIsEditor()); - } - if (other.getLanguageType() != 0) { - setLanguageType(other.getLanguageType()); - } - if (other.getAccountType() != 0) { - setAccountType(other.getAccountType()); - } - if (!other.getAccountUid().isEmpty()) { - accountUid_ = other.accountUid_; - onChanged(); - } - if (!other.getPlatform().isEmpty()) { - platform_ = other.platform_; - onChanged(); - } - if (!other.getDeviceInfo().isEmpty()) { - deviceInfo_ = other.deviceInfo_; - onChanged(); - } - if (other.getPlatformType() != 0) { - setPlatformType(other.getPlatformType()); - } - if (other.getIsGuest() != false) { - setIsGuest(other.getIsGuest()); - } - if (other.getCloudClientIp() != 0) { - setCloudClientIp(other.getCloudClientIp()); - } - if (other.getGmUid() != 0) { - setGmUid(other.getGmUid()); - } - if (!other.getChecksum().isEmpty()) { - checksum_ = other.checksum_; - onChanged(); - } - if (!other.getOnlineId().isEmpty()) { - onlineId_ = other.onlineId_; - onChanged(); - } - if (other.getClientToken() != 0) { - setClientToken(other.getClientToken()); - } - if (other.getSecurityCmdReply() != com.google.protobuf.ByteString.EMPTY) { - setSecurityCmdReply(other.getSecurityCmdReply()); - } - if (other.getExtraBinData() != com.google.protobuf.ByteString.EMPTY) { - setExtraBinData(other.getExtraBinData()); - } - if (!other.getCps().isEmpty()) { - cps_ = other.cps_; - onChanged(); - } - if (other.getChannelId() != 0) { - setChannelId(other.getChannelId()); - } - if (other.getSubChannelId() != 0) { - setSubChannelId(other.getSubChannelId()); - } - if (!other.getChecksumClientVersion().isEmpty()) { - checksumClientVersion_ = other.checksumClientVersion_; - onChanged(); - } - if (other.getTag() != 0) { - setTag(other.getTag()); - } - if (other.hasTrackingIoInfo()) { - mergeTrackingIoInfo(other.getTrackingIoInfo()); - } - if (!other.getCountryCode().isEmpty()) { - countryCode_ = other.countryCode_; - onChanged(); - } - if (other.getClientDataVersion() != 0) { - setClientDataVersion(other.getClientDataVersion()); - } - if (other.getEnvironmentErrorCode() != com.google.protobuf.ByteString.EMPTY) { - setEnvironmentErrorCode(other.getEnvironmentErrorCode()); - } - if (other.getTargetHomeOwnerUid() != 0) { - setTargetHomeOwnerUid(other.getTargetHomeOwnerUid()); - } - if (!other.getPsnId().isEmpty()) { - psnId_ = other.psnId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object token_ = ""; - /** - * <code>string token = 1;</code> - * @return The token. - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string token = 1;</code> - * @return The bytes for token. - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string token = 1;</code> - * @param value The token to set. - * @return This builder for chaining. - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - * <code>string token = 1;</code> - * @return This builder for chaining. - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - * <code>string token = 1;</code> - * @param value The bytes for token to set. - * @return This builder for chaining. - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private java.lang.Object clientVersion_ = ""; - /** - * <code>string clientVersion = 2;</code> - * @return The clientVersion. - */ - public java.lang.String getClientVersion() { - java.lang.Object ref = clientVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string clientVersion = 2;</code> - * @return The bytes for clientVersion. - */ - public com.google.protobuf.ByteString - getClientVersionBytes() { - java.lang.Object ref = clientVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string clientVersion = 2;</code> - * @param value The clientVersion to set. - * @return This builder for chaining. - */ - public Builder setClientVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientVersion_ = value; - onChanged(); - return this; - } - /** - * <code>string clientVersion = 2;</code> - * @return This builder for chaining. - */ - public Builder clearClientVersion() { - - clientVersion_ = getDefaultInstance().getClientVersion(); - onChanged(); - return this; - } - /** - * <code>string clientVersion = 2;</code> - * @param value The bytes for clientVersion to set. - * @return This builder for chaining. - */ - public Builder setClientVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object systemVersion_ = ""; - /** - * <code>string systemVersion = 3;</code> - * @return The systemVersion. - */ - public java.lang.String getSystemVersion() { - java.lang.Object ref = systemVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - systemVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string systemVersion = 3;</code> - * @return The bytes for systemVersion. - */ - public com.google.protobuf.ByteString - getSystemVersionBytes() { - java.lang.Object ref = systemVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - systemVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string systemVersion = 3;</code> - * @param value The systemVersion to set. - * @return This builder for chaining. - */ - public Builder setSystemVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - systemVersion_ = value; - onChanged(); - return this; - } - /** - * <code>string systemVersion = 3;</code> - * @return This builder for chaining. - */ - public Builder clearSystemVersion() { - - systemVersion_ = getDefaultInstance().getSystemVersion(); - onChanged(); - return this; - } - /** - * <code>string systemVersion = 3;</code> - * @param value The bytes for systemVersion to set. - * @return This builder for chaining. - */ - public Builder setSystemVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - systemVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object deviceName_ = ""; - /** - * <code>string deviceName = 4;</code> - * @return The deviceName. - */ - public java.lang.String getDeviceName() { - java.lang.Object ref = deviceName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deviceName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string deviceName = 4;</code> - * @return The bytes for deviceName. - */ - public com.google.protobuf.ByteString - getDeviceNameBytes() { - java.lang.Object ref = deviceName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deviceName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string deviceName = 4;</code> - * @param value The deviceName to set. - * @return This builder for chaining. - */ - public Builder setDeviceName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - deviceName_ = value; - onChanged(); - return this; - } - /** - * <code>string deviceName = 4;</code> - * @return This builder for chaining. - */ - public Builder clearDeviceName() { - - deviceName_ = getDefaultInstance().getDeviceName(); - onChanged(); - return this; - } - /** - * <code>string deviceName = 4;</code> - * @param value The bytes for deviceName to set. - * @return This builder for chaining. - */ - public Builder setDeviceNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - deviceName_ = value; - onChanged(); - return this; - } - - private java.lang.Object deviceUuid_ = ""; - /** - * <code>string deviceUuid = 5;</code> - * @return The deviceUuid. - */ - public java.lang.String getDeviceUuid() { - java.lang.Object ref = deviceUuid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deviceUuid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string deviceUuid = 5;</code> - * @return The bytes for deviceUuid. - */ - public com.google.protobuf.ByteString - getDeviceUuidBytes() { - java.lang.Object ref = deviceUuid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deviceUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string deviceUuid = 5;</code> - * @param value The deviceUuid to set. - * @return This builder for chaining. - */ - public Builder setDeviceUuid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - deviceUuid_ = value; - onChanged(); - return this; - } - /** - * <code>string deviceUuid = 5;</code> - * @return This builder for chaining. - */ - public Builder clearDeviceUuid() { - - deviceUuid_ = getDefaultInstance().getDeviceUuid(); - onChanged(); - return this; - } - /** - * <code>string deviceUuid = 5;</code> - * @param value The bytes for deviceUuid to set. - * @return This builder for chaining. - */ - public Builder setDeviceUuidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - deviceUuid_ = value; - onChanged(); - return this; - } - - private int targetUid_ ; - /** - * <code>uint32 targetUid = 6;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - /** - * <code>uint32 targetUid = 6;</code> - * @param value The targetUid to set. - * @return This builder for chaining. - */ - public Builder setTargetUid(int value) { - - targetUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 targetUid = 6;</code> - * @return This builder for chaining. - */ - public Builder clearTargetUid() { - - targetUid_ = 0; - onChanged(); - return this; - } - - private long loginRand_ ; - /** - * <code>uint64 loginRand = 7;</code> - * @return The loginRand. - */ - @java.lang.Override - public long getLoginRand() { - return loginRand_; - } - /** - * <code>uint64 loginRand = 7;</code> - * @param value The loginRand to set. - * @return This builder for chaining. - */ - public Builder setLoginRand(long value) { - - loginRand_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 loginRand = 7;</code> - * @return This builder for chaining. - */ - public Builder clearLoginRand() { - - loginRand_ = 0L; - onChanged(); - return this; - } - - private boolean isEditor_ ; - /** - * <code>bool isEditor = 8;</code> - * @return The isEditor. - */ - @java.lang.Override - public boolean getIsEditor() { - return isEditor_; - } - /** - * <code>bool isEditor = 8;</code> - * @param value The isEditor to set. - * @return This builder for chaining. - */ - public Builder setIsEditor(boolean value) { - - isEditor_ = value; - onChanged(); - return this; - } - /** - * <code>bool isEditor = 8;</code> - * @return This builder for chaining. - */ - public Builder clearIsEditor() { - - isEditor_ = false; - onChanged(); - return this; - } - - private int languageType_ ; - /** - * <code>uint32 languageType = 9;</code> - * @return The languageType. - */ - @java.lang.Override - public int getLanguageType() { - return languageType_; - } - /** - * <code>uint32 languageType = 9;</code> - * @param value The languageType to set. - * @return This builder for chaining. - */ - public Builder setLanguageType(int value) { - - languageType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 languageType = 9;</code> - * @return This builder for chaining. - */ - public Builder clearLanguageType() { - - languageType_ = 0; - onChanged(); - return this; - } - - private int accountType_ ; - /** - * <code>uint32 accountType = 10;</code> - * @return The accountType. - */ - @java.lang.Override - public int getAccountType() { - return accountType_; - } - /** - * <code>uint32 accountType = 10;</code> - * @param value The accountType to set. - * @return This builder for chaining. - */ - public Builder setAccountType(int value) { - - accountType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 accountType = 10;</code> - * @return This builder for chaining. - */ - public Builder clearAccountType() { - - accountType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object accountUid_ = ""; - /** - * <code>string accountUid = 11;</code> - * @return The accountUid. - */ - public java.lang.String getAccountUid() { - java.lang.Object ref = accountUid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - accountUid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string accountUid = 11;</code> - * @return The bytes for accountUid. - */ - public com.google.protobuf.ByteString - getAccountUidBytes() { - java.lang.Object ref = accountUid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - accountUid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string accountUid = 11;</code> - * @param value The accountUid to set. - * @return This builder for chaining. - */ - public Builder setAccountUid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - accountUid_ = value; - onChanged(); - return this; - } - /** - * <code>string accountUid = 11;</code> - * @return This builder for chaining. - */ - public Builder clearAccountUid() { - - accountUid_ = getDefaultInstance().getAccountUid(); - onChanged(); - return this; - } - /** - * <code>string accountUid = 11;</code> - * @param value The bytes for accountUid to set. - * @return This builder for chaining. - */ - public Builder setAccountUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - accountUid_ = value; - onChanged(); - return this; - } - - private java.lang.Object platform_ = ""; - /** - * <code>string platform = 12;</code> - * @return The platform. - */ - public java.lang.String getPlatform() { - java.lang.Object ref = platform_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - platform_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string platform = 12;</code> - * @return The bytes for platform. - */ - public com.google.protobuf.ByteString - getPlatformBytes() { - java.lang.Object ref = platform_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - platform_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string platform = 12;</code> - * @param value The platform to set. - * @return This builder for chaining. - */ - public Builder setPlatform( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - platform_ = value; - onChanged(); - return this; - } - /** - * <code>string platform = 12;</code> - * @return This builder for chaining. - */ - public Builder clearPlatform() { - - platform_ = getDefaultInstance().getPlatform(); - onChanged(); - return this; - } - /** - * <code>string platform = 12;</code> - * @param value The bytes for platform to set. - * @return This builder for chaining. - */ - public Builder setPlatformBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - platform_ = value; - onChanged(); - return this; - } - - private java.lang.Object deviceInfo_ = ""; - /** - * <code>string deviceInfo = 13;</code> - * @return The deviceInfo. - */ - public java.lang.String getDeviceInfo() { - java.lang.Object ref = deviceInfo_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deviceInfo_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string deviceInfo = 13;</code> - * @return The bytes for deviceInfo. - */ - public com.google.protobuf.ByteString - getDeviceInfoBytes() { - java.lang.Object ref = deviceInfo_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deviceInfo_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string deviceInfo = 13;</code> - * @param value The deviceInfo to set. - * @return This builder for chaining. - */ - public Builder setDeviceInfo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - deviceInfo_ = value; - onChanged(); - return this; - } - /** - * <code>string deviceInfo = 13;</code> - * @return This builder for chaining. - */ - public Builder clearDeviceInfo() { - - deviceInfo_ = getDefaultInstance().getDeviceInfo(); - onChanged(); - return this; - } - /** - * <code>string deviceInfo = 13;</code> - * @param value The bytes for deviceInfo to set. - * @return This builder for chaining. - */ - public Builder setDeviceInfoBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - deviceInfo_ = value; - onChanged(); - return this; - } - - private int platformType_ ; - /** - * <code>uint32 platformType = 14;</code> - * @return The platformType. - */ - @java.lang.Override - public int getPlatformType() { - return platformType_; - } - /** - * <code>uint32 platformType = 14;</code> - * @param value The platformType to set. - * @return This builder for chaining. - */ - public Builder setPlatformType(int value) { - - platformType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 platformType = 14;</code> - * @return This builder for chaining. - */ - public Builder clearPlatformType() { - - platformType_ = 0; - onChanged(); - return this; - } - - private boolean isGuest_ ; - /** - * <code>bool isGuest = 15;</code> - * @return The isGuest. - */ - @java.lang.Override - public boolean getIsGuest() { - return isGuest_; - } - /** - * <code>bool isGuest = 15;</code> - * @param value The isGuest to set. - * @return This builder for chaining. - */ - public Builder setIsGuest(boolean value) { - - isGuest_ = value; - onChanged(); - return this; - } - /** - * <code>bool isGuest = 15;</code> - * @return This builder for chaining. - */ - public Builder clearIsGuest() { - - isGuest_ = false; - onChanged(); - return this; - } - - private int cloudClientIp_ ; - /** - * <code>uint32 cloudClientIp = 16;</code> - * @return The cloudClientIp. - */ - @java.lang.Override - public int getCloudClientIp() { - return cloudClientIp_; - } - /** - * <code>uint32 cloudClientIp = 16;</code> - * @param value The cloudClientIp to set. - * @return This builder for chaining. - */ - public Builder setCloudClientIp(int value) { - - cloudClientIp_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 cloudClientIp = 16;</code> - * @return This builder for chaining. - */ - public Builder clearCloudClientIp() { - - cloudClientIp_ = 0; - onChanged(); - return this; - } - - private int gmUid_ ; - /** - * <code>uint32 gmUid = 17;</code> - * @return The gmUid. - */ - @java.lang.Override - public int getGmUid() { - return gmUid_; - } - /** - * <code>uint32 gmUid = 17;</code> - * @param value The gmUid to set. - * @return This builder for chaining. - */ - public Builder setGmUid(int value) { - - gmUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gmUid = 17;</code> - * @return This builder for chaining. - */ - public Builder clearGmUid() { - - gmUid_ = 0; - onChanged(); - return this; - } - - private java.lang.Object checksum_ = ""; - /** - * <code>string checksum = 18;</code> - * @return The checksum. - */ - public java.lang.String getChecksum() { - java.lang.Object ref = checksum_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - checksum_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string checksum = 18;</code> - * @return The bytes for checksum. - */ - public com.google.protobuf.ByteString - getChecksumBytes() { - java.lang.Object ref = checksum_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - checksum_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string checksum = 18;</code> - * @param value The checksum to set. - * @return This builder for chaining. - */ - public Builder setChecksum( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - checksum_ = value; - onChanged(); - return this; - } - /** - * <code>string checksum = 18;</code> - * @return This builder for chaining. - */ - public Builder clearChecksum() { - - checksum_ = getDefaultInstance().getChecksum(); - onChanged(); - return this; - } - /** - * <code>string checksum = 18;</code> - * @param value The bytes for checksum to set. - * @return This builder for chaining. - */ - public Builder setChecksumBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - checksum_ = value; - onChanged(); - return this; - } - - private java.lang.Object onlineId_ = ""; - /** - * <code>string onlineId = 19;</code> - * @return The onlineId. - */ - public java.lang.String getOnlineId() { - java.lang.Object ref = onlineId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - onlineId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string onlineId = 19;</code> - * @return The bytes for onlineId. - */ - public com.google.protobuf.ByteString - getOnlineIdBytes() { - java.lang.Object ref = onlineId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - onlineId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string onlineId = 19;</code> - * @param value The onlineId to set. - * @return This builder for chaining. - */ - public Builder setOnlineId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - onlineId_ = value; - onChanged(); - return this; - } - /** - * <code>string onlineId = 19;</code> - * @return This builder for chaining. - */ - public Builder clearOnlineId() { - - onlineId_ = getDefaultInstance().getOnlineId(); - onChanged(); - return this; - } - /** - * <code>string onlineId = 19;</code> - * @param value The bytes for onlineId to set. - * @return This builder for chaining. - */ - public Builder setOnlineIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - onlineId_ = value; - onChanged(); - return this; - } - - private int clientToken_ ; - /** - * <code>uint32 clientToken = 20;</code> - * @return The clientToken. - */ - @java.lang.Override - public int getClientToken() { - return clientToken_; - } - /** - * <code>uint32 clientToken = 20;</code> - * @param value The clientToken to set. - * @return This builder for chaining. - */ - public Builder setClientToken(int value) { - - clientToken_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 clientToken = 20;</code> - * @return This builder for chaining. - */ - public Builder clearClientToken() { - - clientToken_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString securityCmdReply_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>bytes securityCmdReply = 21;</code> - * @return The securityCmdReply. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSecurityCmdReply() { - return securityCmdReply_; - } - /** - * <code>bytes securityCmdReply = 21;</code> - * @param value The securityCmdReply to set. - * @return This builder for chaining. - */ - public Builder setSecurityCmdReply(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - securityCmdReply_ = value; - onChanged(); - return this; - } - /** - * <code>bytes securityCmdReply = 21;</code> - * @return This builder for chaining. - */ - public Builder clearSecurityCmdReply() { - - securityCmdReply_ = getDefaultInstance().getSecurityCmdReply(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString extraBinData_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>bytes extraBinData = 22;</code> - * @return The extraBinData. - */ - @java.lang.Override - public com.google.protobuf.ByteString getExtraBinData() { - return extraBinData_; - } - /** - * <code>bytes extraBinData = 22;</code> - * @param value The extraBinData to set. - * @return This builder for chaining. - */ - public Builder setExtraBinData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - extraBinData_ = value; - onChanged(); - return this; - } - /** - * <code>bytes extraBinData = 22;</code> - * @return This builder for chaining. - */ - public Builder clearExtraBinData() { - - extraBinData_ = getDefaultInstance().getExtraBinData(); - onChanged(); - return this; - } - - private java.lang.Object cps_ = ""; - /** - * <code>string cps = 23;</code> - * @return The cps. - */ - public java.lang.String getCps() { - java.lang.Object ref = cps_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cps_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string cps = 23;</code> - * @return The bytes for cps. - */ - public com.google.protobuf.ByteString - getCpsBytes() { - java.lang.Object ref = cps_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cps_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string cps = 23;</code> - * @param value The cps to set. - * @return This builder for chaining. - */ - public Builder setCps( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cps_ = value; - onChanged(); - return this; - } - /** - * <code>string cps = 23;</code> - * @return This builder for chaining. - */ - public Builder clearCps() { - - cps_ = getDefaultInstance().getCps(); - onChanged(); - return this; - } - /** - * <code>string cps = 23;</code> - * @param value The bytes for cps to set. - * @return This builder for chaining. - */ - public Builder setCpsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cps_ = value; - onChanged(); - return this; - } - - private int channelId_ ; - /** - * <code>uint32 channelId = 24;</code> - * @return The channelId. - */ - @java.lang.Override - public int getChannelId() { - return channelId_; - } - /** - * <code>uint32 channelId = 24;</code> - * @param value The channelId to set. - * @return This builder for chaining. - */ - public Builder setChannelId(int value) { - - channelId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 channelId = 24;</code> - * @return This builder for chaining. - */ - public Builder clearChannelId() { - - channelId_ = 0; - onChanged(); - return this; - } - - private int subChannelId_ ; - /** - * <code>uint32 subChannelId = 25;</code> - * @return The subChannelId. - */ - @java.lang.Override - public int getSubChannelId() { - return subChannelId_; - } - /** - * <code>uint32 subChannelId = 25;</code> - * @param value The subChannelId to set. - * @return This builder for chaining. - */ - public Builder setSubChannelId(int value) { - - subChannelId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 subChannelId = 25;</code> - * @return This builder for chaining. - */ - public Builder clearSubChannelId() { - - subChannelId_ = 0; - onChanged(); - return this; - } - - private java.lang.Object checksumClientVersion_ = ""; - /** - * <code>string checksumClientVersion = 26;</code> - * @return The checksumClientVersion. - */ - public java.lang.String getChecksumClientVersion() { - java.lang.Object ref = checksumClientVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - checksumClientVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string checksumClientVersion = 26;</code> - * @return The bytes for checksumClientVersion. - */ - public com.google.protobuf.ByteString - getChecksumClientVersionBytes() { - java.lang.Object ref = checksumClientVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - checksumClientVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string checksumClientVersion = 26;</code> - * @param value The checksumClientVersion to set. - * @return This builder for chaining. - */ - public Builder setChecksumClientVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - checksumClientVersion_ = value; - onChanged(); - return this; - } - /** - * <code>string checksumClientVersion = 26;</code> - * @return This builder for chaining. - */ - public Builder clearChecksumClientVersion() { - - checksumClientVersion_ = getDefaultInstance().getChecksumClientVersion(); - onChanged(); - return this; - } - /** - * <code>string checksumClientVersion = 26;</code> - * @param value The bytes for checksumClientVersion to set. - * @return This builder for chaining. - */ - public Builder setChecksumClientVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - checksumClientVersion_ = value; - onChanged(); - return this; - } - - private int tag_ ; - /** - * <code>uint32 tag = 27;</code> - * @return The tag. - */ - @java.lang.Override - public int getTag() { - return tag_; - } - /** - * <code>uint32 tag = 27;</code> - * @param value The tag to set. - * @return This builder for chaining. - */ - public Builder setTag(int value) { - - tag_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 tag = 27;</code> - * @return This builder for chaining. - */ - public Builder clearTag() { - - tag_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo trackingIoInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo, emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo.Builder, emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfoOrBuilder> trackingIoInfoBuilder_; - /** - * <code>.TrackingIOInfo trackingIoInfo = 28;</code> - * @return Whether the trackingIoInfo field is set. - */ - public boolean hasTrackingIoInfo() { - return trackingIoInfoBuilder_ != null || trackingIoInfo_ != null; - } - /** - * <code>.TrackingIOInfo trackingIoInfo = 28;</code> - * @return The trackingIoInfo. - */ - public emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo getTrackingIoInfo() { - if (trackingIoInfoBuilder_ == null) { - return trackingIoInfo_ == null ? emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo.getDefaultInstance() : trackingIoInfo_; - } else { - return trackingIoInfoBuilder_.getMessage(); - } - } - /** - * <code>.TrackingIOInfo trackingIoInfo = 28;</code> - */ - public Builder setTrackingIoInfo(emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo value) { - if (trackingIoInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - trackingIoInfo_ = value; - onChanged(); - } else { - trackingIoInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.TrackingIOInfo trackingIoInfo = 28;</code> - */ - public Builder setTrackingIoInfo( - emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo.Builder builderForValue) { - if (trackingIoInfoBuilder_ == null) { - trackingIoInfo_ = builderForValue.build(); - onChanged(); - } else { - trackingIoInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.TrackingIOInfo trackingIoInfo = 28;</code> - */ - public Builder mergeTrackingIoInfo(emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo value) { - if (trackingIoInfoBuilder_ == null) { - if (trackingIoInfo_ != null) { - trackingIoInfo_ = - emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo.newBuilder(trackingIoInfo_).mergeFrom(value).buildPartial(); - } else { - trackingIoInfo_ = value; - } - onChanged(); - } else { - trackingIoInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.TrackingIOInfo trackingIoInfo = 28;</code> - */ - public Builder clearTrackingIoInfo() { - if (trackingIoInfoBuilder_ == null) { - trackingIoInfo_ = null; - onChanged(); - } else { - trackingIoInfo_ = null; - trackingIoInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.TrackingIOInfo trackingIoInfo = 28;</code> - */ - public emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo.Builder getTrackingIoInfoBuilder() { - - onChanged(); - return getTrackingIoInfoFieldBuilder().getBuilder(); - } - /** - * <code>.TrackingIOInfo trackingIoInfo = 28;</code> - */ - public emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfoOrBuilder getTrackingIoInfoOrBuilder() { - if (trackingIoInfoBuilder_ != null) { - return trackingIoInfoBuilder_.getMessageOrBuilder(); - } else { - return trackingIoInfo_ == null ? - emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo.getDefaultInstance() : trackingIoInfo_; - } - } - /** - * <code>.TrackingIOInfo trackingIoInfo = 28;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo, emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo.Builder, emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfoOrBuilder> - getTrackingIoInfoFieldBuilder() { - if (trackingIoInfoBuilder_ == null) { - trackingIoInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo, emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo.Builder, emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfoOrBuilder>( - getTrackingIoInfo(), - getParentForChildren(), - isClean()); - trackingIoInfo_ = null; - } - return trackingIoInfoBuilder_; - } - - private java.lang.Object countryCode_ = ""; - /** - * <code>string countryCode = 29;</code> - * @return The countryCode. - */ - public java.lang.String getCountryCode() { - java.lang.Object ref = countryCode_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - countryCode_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string countryCode = 29;</code> - * @return The bytes for countryCode. - */ - public com.google.protobuf.ByteString - getCountryCodeBytes() { - java.lang.Object ref = countryCode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - countryCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string countryCode = 29;</code> - * @param value The countryCode to set. - * @return This builder for chaining. - */ - public Builder setCountryCode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - countryCode_ = value; - onChanged(); - return this; - } - /** - * <code>string countryCode = 29;</code> - * @return This builder for chaining. - */ - public Builder clearCountryCode() { - - countryCode_ = getDefaultInstance().getCountryCode(); - onChanged(); - return this; - } - /** - * <code>string countryCode = 29;</code> - * @param value The bytes for countryCode to set. - * @return This builder for chaining. - */ - public Builder setCountryCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - countryCode_ = value; - onChanged(); - return this; - } - - private int clientDataVersion_ ; - /** - * <code>uint32 clientDataVersion = 30;</code> - * @return The clientDataVersion. - */ - @java.lang.Override - public int getClientDataVersion() { - return clientDataVersion_; - } - /** - * <code>uint32 clientDataVersion = 30;</code> - * @param value The clientDataVersion to set. - * @return This builder for chaining. - */ - public Builder setClientDataVersion(int value) { - - clientDataVersion_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 clientDataVersion = 30;</code> - * @return This builder for chaining. - */ - public Builder clearClientDataVersion() { - - clientDataVersion_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString environmentErrorCode_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>bytes environmentErrorCode = 31;</code> - * @return The environmentErrorCode. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEnvironmentErrorCode() { - return environmentErrorCode_; - } - /** - * <code>bytes environmentErrorCode = 31;</code> - * @param value The environmentErrorCode to set. - * @return This builder for chaining. - */ - public Builder setEnvironmentErrorCode(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - environmentErrorCode_ = value; - onChanged(); - return this; - } - /** - * <code>bytes environmentErrorCode = 31;</code> - * @return This builder for chaining. - */ - public Builder clearEnvironmentErrorCode() { - - environmentErrorCode_ = getDefaultInstance().getEnvironmentErrorCode(); - onChanged(); - return this; - } - - private int targetHomeOwnerUid_ ; - /** - * <code>uint32 targetHomeOwnerUid = 32;</code> - * @return The targetHomeOwnerUid. - */ - @java.lang.Override - public int getTargetHomeOwnerUid() { - return targetHomeOwnerUid_; - } - /** - * <code>uint32 targetHomeOwnerUid = 32;</code> - * @param value The targetHomeOwnerUid to set. - * @return This builder for chaining. - */ - public Builder setTargetHomeOwnerUid(int value) { - - targetHomeOwnerUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 targetHomeOwnerUid = 32;</code> - * @return This builder for chaining. - */ - public Builder clearTargetHomeOwnerUid() { - - targetHomeOwnerUid_ = 0; - onChanged(); - return this; - } - - private java.lang.Object psnId_ = ""; - /** - * <code>string psnId = 33;</code> - * @return The psnId. - */ - public java.lang.String getPsnId() { - java.lang.Object ref = psnId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - psnId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string psnId = 33;</code> - * @return The bytes for psnId. - */ - public com.google.protobuf.ByteString - getPsnIdBytes() { - java.lang.Object ref = psnId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - psnId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string psnId = 33;</code> - * @param value The psnId to set. - * @return This builder for chaining. - */ - public Builder setPsnId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - psnId_ = value; - onChanged(); - return this; - } - /** - * <code>string psnId = 33;</code> - * @return This builder for chaining. - */ - public Builder clearPsnId() { - - psnId_ = getDefaultInstance().getPsnId(); - onChanged(); - return this; - } - /** - * <code>string psnId = 33;</code> - * @param value The bytes for psnId to set. - * @return This builder for chaining. - */ - public Builder setPsnIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - psnId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerLoginReq) - } - - // @@protoc_insertion_point(class_scope:PlayerLoginReq) - private static final emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq(); - } - - public static emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PlayerLoginReq> - PARSER = new com.google.protobuf.AbstractParser<PlayerLoginReq>() { - @java.lang.Override - public PlayerLoginReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerLoginReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PlayerLoginReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PlayerLoginReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerLoginReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerLoginReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024PlayerLoginReq.proto\032\024TrackingIOInfo.p" + - "roto\"\314\005\n\016PlayerLoginReq\022\r\n\005token\030\001 \001(\t\022\025" + - "\n\rclientVersion\030\002 \001(\t\022\025\n\rsystemVersion\030\003" + - " \001(\t\022\022\n\ndeviceName\030\004 \001(\t\022\022\n\ndeviceUuid\030\005" + - " \001(\t\022\021\n\ttargetUid\030\006 \001(\r\022\021\n\tloginRand\030\007 \001" + - "(\004\022\020\n\010isEditor\030\010 \001(\010\022\024\n\014languageType\030\t \001" + - "(\r\022\023\n\013accountType\030\n \001(\r\022\022\n\naccountUid\030\013 " + - "\001(\t\022\020\n\010platform\030\014 \001(\t\022\022\n\ndeviceInfo\030\r \001(" + - "\t\022\024\n\014platformType\030\016 \001(\r\022\017\n\007isGuest\030\017 \001(\010" + - "\022\025\n\rcloudClientIp\030\020 \001(\r\022\r\n\005gmUid\030\021 \001(\r\022\020" + - "\n\010checksum\030\022 \001(\t\022\020\n\010onlineId\030\023 \001(\t\022\023\n\013cl" + - "ientToken\030\024 \001(\r\022\030\n\020securityCmdReply\030\025 \001(" + - "\014\022\024\n\014extraBinData\030\026 \001(\014\022\013\n\003cps\030\027 \001(\t\022\021\n\t" + - "channelId\030\030 \001(\r\022\024\n\014subChannelId\030\031 \001(\r\022\035\n" + - "\025checksumClientVersion\030\032 \001(\t\022\013\n\003tag\030\033 \001(" + - "\r\022\'\n\016trackingIoInfo\030\034 \001(\0132\017.TrackingIOIn" + - "fo\022\023\n\013countryCode\030\035 \001(\t\022\031\n\021clientDataVer" + - "sion\030\036 \001(\r\022\034\n\024environmentErrorCode\030\037 \001(\014" + - "\022\032\n\022targetHomeOwnerUid\030 \001(\r\022\r\n\005psnId\030! " + - "\001(\tB\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.TrackingIOInfoOuterClass.getDescriptor(), - }); - internal_static_PlayerLoginReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerLoginReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerLoginReq_descriptor, - new java.lang.String[] { "Token", "ClientVersion", "SystemVersion", "DeviceName", "DeviceUuid", "TargetUid", "LoginRand", "IsEditor", "LanguageType", "AccountType", "AccountUid", "Platform", "DeviceInfo", "PlatformType", "IsGuest", "CloudClientIp", "GmUid", "Checksum", "OnlineId", "ClientToken", "SecurityCmdReply", "ExtraBinData", "Cps", "ChannelId", "SubChannelId", "ChecksumClientVersion", "Tag", "TrackingIoInfo", "CountryCode", "ClientDataVersion", "EnvironmentErrorCode", "TargetHomeOwnerUid", "PsnId", }); - emu.grasscutter.net.proto.TrackingIOInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PlayerLoginRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PlayerLoginRspOuterClass.java deleted file mode 100644 index 99a92e0cb..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PlayerLoginRspOuterClass.java +++ /dev/null @@ -1,4616 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerLoginRsp.proto - -package emu.grasscutter.net.proto; - -public final class PlayerLoginRspOuterClass { - private PlayerLoginRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerLoginRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerLoginRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>bytes playerData = 2;</code> - * @return The playerData. - */ - com.google.protobuf.ByteString getPlayerData(); - - /** - * <code>bool isNewPlayer = 3;</code> - * @return The isNewPlayer. - */ - boolean getIsNewPlayer(); - - /** - * <code>uint32 targetUid = 4;</code> - * @return The targetUid. - */ - int getTargetUid(); - - /** - * <code>uint64 loginRand = 5;</code> - * @return The loginRand. - */ - long getLoginRand(); - - /** - * <code>bool isUseAbilityHash = 6;</code> - * @return The isUseAbilityHash. - */ - boolean getIsUseAbilityHash(); - - /** - * <code>int32 abilityHashCode = 7;</code> - * @return The abilityHashCode. - */ - int getAbilityHashCode(); - - /** - * <code>map<string, int32> abilityHashMap = 8;</code> - */ - int getAbilityHashMapCount(); - /** - * <code>map<string, int32> abilityHashMap = 8;</code> - */ - boolean containsAbilityHashMap( - java.lang.String key); - /** - * Use {@link #getAbilityHashMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.String, java.lang.Integer> - getAbilityHashMap(); - /** - * <code>map<string, int32> abilityHashMap = 8;</code> - */ - java.util.Map<java.lang.String, java.lang.Integer> - getAbilityHashMapMap(); - /** - * <code>map<string, int32> abilityHashMap = 8;</code> - */ - - int getAbilityHashMapOrDefault( - java.lang.String key, - int defaultValue); - /** - * <code>map<string, int32> abilityHashMap = 8;</code> - */ - - int getAbilityHashMapOrThrow( - java.lang.String key); - - /** - * <code>uint32 clientDataVersion = 9;</code> - * @return The clientDataVersion. - */ - int getClientDataVersion(); - - /** - * <code>bool isRelogin = 11;</code> - * @return The isRelogin. - */ - boolean getIsRelogin(); - - /** - * <code>uint32 clientSilenceDataVersion = 13;</code> - * @return The clientSilenceDataVersion. - */ - int getClientSilenceDataVersion(); - - /** - * <code>string gameBiz = 14;</code> - * @return The gameBiz. - */ - java.lang.String getGameBiz(); - /** - * <code>string gameBiz = 14;</code> - * @return The bytes for gameBiz. - */ - com.google.protobuf.ByteString - getGameBizBytes(); - - /** - * <code>uint32 playerDataVersion = 15;</code> - * @return The playerDataVersion. - */ - int getPlayerDataVersion(); - - /** - * <code>string clientMd5 = 16;</code> - * @return The clientMd5. - */ - java.lang.String getClientMd5(); - /** - * <code>string clientMd5 = 16;</code> - * @return The bytes for clientMd5. - */ - com.google.protobuf.ByteString - getClientMd5Bytes(); - - /** - * <code>string clientSilenceMd5 = 17;</code> - * @return The clientSilenceMd5. - */ - java.lang.String getClientSilenceMd5(); - /** - * <code>string clientSilenceMd5 = 17;</code> - * @return The bytes for clientSilenceMd5. - */ - com.google.protobuf.ByteString - getClientSilenceMd5Bytes(); - - /** - * <code>.ResVersionConfig resVersionConfig = 20;</code> - * @return Whether the resVersionConfig field is set. - */ - boolean hasResVersionConfig(); - /** - * <code>.ResVersionConfig resVersionConfig = 20;</code> - * @return The resVersionConfig. - */ - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig getResVersionConfig(); - /** - * <code>.ResVersionConfig resVersionConfig = 20;</code> - */ - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfigOrBuilder getResVersionConfigOrBuilder(); - - /** - * <code>map<uint32, .BlockInfo> blockInfoMap = 21;</code> - */ - int getBlockInfoMapCount(); - /** - * <code>map<uint32, .BlockInfo> blockInfoMap = 21;</code> - */ - boolean containsBlockInfoMap( - int key); - /** - * Use {@link #getBlockInfoMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo> - getBlockInfoMap(); - /** - * <code>map<uint32, .BlockInfo> blockInfoMap = 21;</code> - */ - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo> - getBlockInfoMapMap(); - /** - * <code>map<uint32, .BlockInfo> blockInfoMap = 21;</code> - */ - - emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo getBlockInfoMapOrDefault( - int key, - emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo defaultValue); - /** - * <code>map<uint32, .BlockInfo> blockInfoMap = 21;</code> - */ - - emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo getBlockInfoMapOrThrow( - int key); - - /** - * <code>string clientVersionSuffix = 24;</code> - * @return The clientVersionSuffix. - */ - java.lang.String getClientVersionSuffix(); - /** - * <code>string clientVersionSuffix = 24;</code> - * @return The bytes for clientVersionSuffix. - */ - com.google.protobuf.ByteString - getClientVersionSuffixBytes(); - - /** - * <code>string clientSilenceVersionSuffix = 25;</code> - * @return The clientSilenceVersionSuffix. - */ - java.lang.String getClientSilenceVersionSuffix(); - /** - * <code>string clientSilenceVersionSuffix = 25;</code> - * @return The bytes for clientSilenceVersionSuffix. - */ - com.google.protobuf.ByteString - getClientSilenceVersionSuffixBytes(); - - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - java.util.List<emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair> - getShortAbilityHashMapList(); - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair getShortAbilityHashMap(int index); - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - int getShortAbilityHashMapCount(); - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPairOrBuilder> - getShortAbilityHashMapOrBuilderList(); - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPairOrBuilder getShortAbilityHashMapOrBuilder( - int index); - - /** - * <code>bytes scInfo = 28;</code> - * @return The scInfo. - */ - com.google.protobuf.ByteString getScInfo(); - - /** - * <code>bool isAudit = 29;</code> - * @return The isAudit. - */ - boolean getIsAudit(); - - /** - * <code>bool isScOpen = 30;</code> - * @return The isScOpen. - */ - boolean getIsScOpen(); - - /** - * <code>string registerCps = 31;</code> - * @return The registerCps. - */ - java.lang.String getRegisterCps(); - /** - * <code>string registerCps = 31;</code> - * @return The bytes for registerCps. - */ - com.google.protobuf.ByteString - getRegisterCpsBytes(); - - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - java.util.List<emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo> - getFeatureBlockInfoListList(); - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo getFeatureBlockInfoList(int index); - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - int getFeatureBlockInfoListCount(); - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfoOrBuilder> - getFeatureBlockInfoListOrBuilderList(); - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfoOrBuilder getFeatureBlockInfoListOrBuilder( - int index); - - /** - * <code>bool isDataNeedRelogin = 33;</code> - * @return The isDataNeedRelogin. - */ - boolean getIsDataNeedRelogin(); - - /** - * <code>string countryCode = 34;</code> - * @return The countryCode. - */ - java.lang.String getCountryCode(); - /** - * <code>string countryCode = 34;</code> - * @return The bytes for countryCode. - */ - com.google.protobuf.ByteString - getCountryCodeBytes(); - - /** - * <code>.ResVersionConfig nextResVersionConfig = 35;</code> - * @return Whether the nextResVersionConfig field is set. - */ - boolean hasNextResVersionConfig(); - /** - * <code>.ResVersionConfig nextResVersionConfig = 35;</code> - * @return The nextResVersionConfig. - */ - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig getNextResVersionConfig(); - /** - * <code>.ResVersionConfig nextResVersionConfig = 35;</code> - */ - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfigOrBuilder getNextResVersionConfigOrBuilder(); - - /** - * <code>string nextResourceUrl = 36;</code> - * @return The nextResourceUrl. - */ - java.lang.String getNextResourceUrl(); - /** - * <code>string nextResourceUrl = 36;</code> - * @return The bytes for nextResourceUrl. - */ - com.google.protobuf.ByteString - getNextResourceUrlBytes(); - - /** - * <code>uint32 targetHomeOwnerUid = 37;</code> - * @return The targetHomeOwnerUid. - */ - int getTargetHomeOwnerUid(); - } - /** - * Protobuf type {@code PlayerLoginRsp} - */ - public static final class PlayerLoginRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerLoginRsp) - PlayerLoginRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerLoginRsp.newBuilder() to construct. - private PlayerLoginRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PlayerLoginRsp() { - playerData_ = com.google.protobuf.ByteString.EMPTY; - gameBiz_ = ""; - clientMd5_ = ""; - clientSilenceMd5_ = ""; - clientVersionSuffix_ = ""; - clientSilenceVersionSuffix_ = ""; - shortAbilityHashMap_ = java.util.Collections.emptyList(); - scInfo_ = com.google.protobuf.ByteString.EMPTY; - registerCps_ = ""; - featureBlockInfoList_ = java.util.Collections.emptyList(); - countryCode_ = ""; - nextResourceUrl_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerLoginRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerLoginRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 18: { - - playerData_ = input.readBytes(); - break; - } - case 24: { - - isNewPlayer_ = input.readBool(); - break; - } - case 32: { - - targetUid_ = input.readUInt32(); - break; - } - case 40: { - - loginRand_ = input.readUInt64(); - break; - } - case 48: { - - isUseAbilityHash_ = input.readBool(); - break; - } - case 56: { - - abilityHashCode_ = input.readInt32(); - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - abilityHashMap_ = com.google.protobuf.MapField.newMapField( - AbilityHashMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.String, java.lang.Integer> - abilityHashMap__ = input.readMessage( - AbilityHashMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - abilityHashMap_.getMutableMap().put( - abilityHashMap__.getKey(), abilityHashMap__.getValue()); - break; - } - case 72: { - - clientDataVersion_ = input.readUInt32(); - break; - } - case 88: { - - isRelogin_ = input.readBool(); - break; - } - case 104: { - - clientSilenceDataVersion_ = input.readUInt32(); - break; - } - case 114: { - java.lang.String s = input.readStringRequireUtf8(); - - gameBiz_ = s; - break; - } - case 120: { - - playerDataVersion_ = input.readUInt32(); - break; - } - case 130: { - java.lang.String s = input.readStringRequireUtf8(); - - clientMd5_ = s; - break; - } - case 138: { - java.lang.String s = input.readStringRequireUtf8(); - - clientSilenceMd5_ = s; - break; - } - case 162: { - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.Builder subBuilder = null; - if (resVersionConfig_ != null) { - subBuilder = resVersionConfig_.toBuilder(); - } - resVersionConfig_ = input.readMessage(emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resVersionConfig_); - resVersionConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 170: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - blockInfoMap_ = com.google.protobuf.MapField.newMapField( - BlockInfoMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry<java.lang.Integer, emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo> - blockInfoMap__ = input.readMessage( - BlockInfoMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - blockInfoMap_.getMutableMap().put( - blockInfoMap__.getKey(), blockInfoMap__.getValue()); - break; - } - case 194: { - java.lang.String s = input.readStringRequireUtf8(); - - clientVersionSuffix_ = s; - break; - } - case 202: { - java.lang.String s = input.readStringRequireUtf8(); - - clientSilenceVersionSuffix_ = s; - break; - } - case 218: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - shortAbilityHashMap_ = new java.util.ArrayList<emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair>(); - mutable_bitField0_ |= 0x00000004; - } - shortAbilityHashMap_.add( - input.readMessage(emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair.parser(), extensionRegistry)); - break; - } - case 226: { - - scInfo_ = input.readBytes(); - break; - } - case 232: { - - isAudit_ = input.readBool(); - break; - } - case 240: { - - isScOpen_ = input.readBool(); - break; - } - case 250: { - java.lang.String s = input.readStringRequireUtf8(); - - registerCps_ = s; - break; - } - case 258: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - featureBlockInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo>(); - mutable_bitField0_ |= 0x00000008; - } - featureBlockInfoList_.add( - input.readMessage(emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo.parser(), extensionRegistry)); - break; - } - case 264: { - - isDataNeedRelogin_ = input.readBool(); - break; - } - case 274: { - java.lang.String s = input.readStringRequireUtf8(); - - countryCode_ = s; - break; - } - case 282: { - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.Builder subBuilder = null; - if (nextResVersionConfig_ != null) { - subBuilder = nextResVersionConfig_.toBuilder(); - } - nextResVersionConfig_ = input.readMessage(emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nextResVersionConfig_); - nextResVersionConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 290: { - java.lang.String s = input.readStringRequireUtf8(); - - nextResourceUrl_ = s; - break; - } - case 296: { - - targetHomeOwnerUid_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - shortAbilityHashMap_ = java.util.Collections.unmodifiableList(shortAbilityHashMap_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - featureBlockInfoList_ = java.util.Collections.unmodifiableList(featureBlockInfoList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerLoginRspOuterClass.internal_static_PlayerLoginRsp_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 8: - return internalGetAbilityHashMap(); - case 21: - return internalGetBlockInfoMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerLoginRspOuterClass.internal_static_PlayerLoginRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp.class, emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int PLAYERDATA_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString playerData_; - /** - * <code>bytes playerData = 2;</code> - * @return The playerData. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPlayerData() { - return playerData_; - } - - public static final int ISNEWPLAYER_FIELD_NUMBER = 3; - private boolean isNewPlayer_; - /** - * <code>bool isNewPlayer = 3;</code> - * @return The isNewPlayer. - */ - @java.lang.Override - public boolean getIsNewPlayer() { - return isNewPlayer_; - } - - public static final int TARGETUID_FIELD_NUMBER = 4; - private int targetUid_; - /** - * <code>uint32 targetUid = 4;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - - public static final int LOGINRAND_FIELD_NUMBER = 5; - private long loginRand_; - /** - * <code>uint64 loginRand = 5;</code> - * @return The loginRand. - */ - @java.lang.Override - public long getLoginRand() { - return loginRand_; - } - - public static final int ISUSEABILITYHASH_FIELD_NUMBER = 6; - private boolean isUseAbilityHash_; - /** - * <code>bool isUseAbilityHash = 6;</code> - * @return The isUseAbilityHash. - */ - @java.lang.Override - public boolean getIsUseAbilityHash() { - return isUseAbilityHash_; - } - - public static final int ABILITYHASHCODE_FIELD_NUMBER = 7; - private int abilityHashCode_; - /** - * <code>int32 abilityHashCode = 7;</code> - * @return The abilityHashCode. - */ - @java.lang.Override - public int getAbilityHashCode() { - return abilityHashCode_; - } - - public static final int ABILITYHASHMAP_FIELD_NUMBER = 8; - private static final class AbilityHashMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.String, java.lang.Integer>newDefaultInstance( - emu.grasscutter.net.proto.PlayerLoginRspOuterClass.internal_static_PlayerLoginRsp_AbilityHashMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> abilityHashMap_; - private com.google.protobuf.MapField<java.lang.String, java.lang.Integer> - internalGetAbilityHashMap() { - if (abilityHashMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AbilityHashMapDefaultEntryHolder.defaultEntry); - } - return abilityHashMap_; - } - - public int getAbilityHashMapCount() { - return internalGetAbilityHashMap().getMap().size(); - } - /** - * <code>map<string, int32> abilityHashMap = 8;</code> - */ - - @java.lang.Override - public boolean containsAbilityHashMap( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetAbilityHashMap().getMap().containsKey(key); - } - /** - * Use {@link #getAbilityHashMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.String, java.lang.Integer> getAbilityHashMap() { - return getAbilityHashMapMap(); - } - /** - * <code>map<string, int32> abilityHashMap = 8;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.String, java.lang.Integer> getAbilityHashMapMap() { - return internalGetAbilityHashMap().getMap(); - } - /** - * <code>map<string, int32> abilityHashMap = 8;</code> - */ - @java.lang.Override - - public int getAbilityHashMapOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map<java.lang.String, java.lang.Integer> map = - internalGetAbilityHashMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<string, int32> abilityHashMap = 8;</code> - */ - @java.lang.Override - - public int getAbilityHashMapOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map<java.lang.String, java.lang.Integer> map = - internalGetAbilityHashMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int CLIENTDATAVERSION_FIELD_NUMBER = 9; - private int clientDataVersion_; - /** - * <code>uint32 clientDataVersion = 9;</code> - * @return The clientDataVersion. - */ - @java.lang.Override - public int getClientDataVersion() { - return clientDataVersion_; - } - - public static final int ISRELOGIN_FIELD_NUMBER = 11; - private boolean isRelogin_; - /** - * <code>bool isRelogin = 11;</code> - * @return The isRelogin. - */ - @java.lang.Override - public boolean getIsRelogin() { - return isRelogin_; - } - - public static final int CLIENTSILENCEDATAVERSION_FIELD_NUMBER = 13; - private int clientSilenceDataVersion_; - /** - * <code>uint32 clientSilenceDataVersion = 13;</code> - * @return The clientSilenceDataVersion. - */ - @java.lang.Override - public int getClientSilenceDataVersion() { - return clientSilenceDataVersion_; - } - - public static final int GAMEBIZ_FIELD_NUMBER = 14; - private volatile java.lang.Object gameBiz_; - /** - * <code>string gameBiz = 14;</code> - * @return The gameBiz. - */ - @java.lang.Override - public java.lang.String getGameBiz() { - java.lang.Object ref = gameBiz_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gameBiz_ = s; - return s; - } - } - /** - * <code>string gameBiz = 14;</code> - * @return The bytes for gameBiz. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getGameBizBytes() { - java.lang.Object ref = gameBiz_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gameBiz_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PLAYERDATAVERSION_FIELD_NUMBER = 15; - private int playerDataVersion_; - /** - * <code>uint32 playerDataVersion = 15;</code> - * @return The playerDataVersion. - */ - @java.lang.Override - public int getPlayerDataVersion() { - return playerDataVersion_; - } - - public static final int CLIENTMD5_FIELD_NUMBER = 16; - private volatile java.lang.Object clientMd5_; - /** - * <code>string clientMd5 = 16;</code> - * @return The clientMd5. - */ - @java.lang.Override - public java.lang.String getClientMd5() { - java.lang.Object ref = clientMd5_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientMd5_ = s; - return s; - } - } - /** - * <code>string clientMd5 = 16;</code> - * @return The bytes for clientMd5. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClientMd5Bytes() { - java.lang.Object ref = clientMd5_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientMd5_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENTSILENCEMD5_FIELD_NUMBER = 17; - private volatile java.lang.Object clientSilenceMd5_; - /** - * <code>string clientSilenceMd5 = 17;</code> - * @return The clientSilenceMd5. - */ - @java.lang.Override - public java.lang.String getClientSilenceMd5() { - java.lang.Object ref = clientSilenceMd5_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientSilenceMd5_ = s; - return s; - } - } - /** - * <code>string clientSilenceMd5 = 17;</code> - * @return The bytes for clientSilenceMd5. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClientSilenceMd5Bytes() { - java.lang.Object ref = clientSilenceMd5_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientSilenceMd5_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESVERSIONCONFIG_FIELD_NUMBER = 20; - private emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig resVersionConfig_; - /** - * <code>.ResVersionConfig resVersionConfig = 20;</code> - * @return Whether the resVersionConfig field is set. - */ - @java.lang.Override - public boolean hasResVersionConfig() { - return resVersionConfig_ != null; - } - /** - * <code>.ResVersionConfig resVersionConfig = 20;</code> - * @return The resVersionConfig. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig getResVersionConfig() { - return resVersionConfig_ == null ? emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.getDefaultInstance() : resVersionConfig_; - } - /** - * <code>.ResVersionConfig resVersionConfig = 20;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfigOrBuilder getResVersionConfigOrBuilder() { - return getResVersionConfig(); - } - - public static final int BLOCKINFOMAP_FIELD_NUMBER = 21; - private static final class BlockInfoMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo>newDefaultInstance( - emu.grasscutter.net.proto.PlayerLoginRspOuterClass.internal_static_PlayerLoginRsp_BlockInfoMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.Integer, emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo> blockInfoMap_; - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo> - internalGetBlockInfoMap() { - if (blockInfoMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - BlockInfoMapDefaultEntryHolder.defaultEntry); - } - return blockInfoMap_; - } - - public int getBlockInfoMapCount() { - return internalGetBlockInfoMap().getMap().size(); - } - /** - * <code>map<uint32, .BlockInfo> blockInfoMap = 21;</code> - */ - - @java.lang.Override - public boolean containsBlockInfoMap( - int key) { - - return internalGetBlockInfoMap().getMap().containsKey(key); - } - /** - * Use {@link #getBlockInfoMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo> getBlockInfoMap() { - return getBlockInfoMapMap(); - } - /** - * <code>map<uint32, .BlockInfo> blockInfoMap = 21;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo> getBlockInfoMapMap() { - return internalGetBlockInfoMap().getMap(); - } - /** - * <code>map<uint32, .BlockInfo> blockInfoMap = 21;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo getBlockInfoMapOrDefault( - int key, - emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo defaultValue) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo> map = - internalGetBlockInfoMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, .BlockInfo> blockInfoMap = 21;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo getBlockInfoMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo> map = - internalGetBlockInfoMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int CLIENTVERSIONSUFFIX_FIELD_NUMBER = 24; - private volatile java.lang.Object clientVersionSuffix_; - /** - * <code>string clientVersionSuffix = 24;</code> - * @return The clientVersionSuffix. - */ - @java.lang.Override - public java.lang.String getClientVersionSuffix() { - java.lang.Object ref = clientVersionSuffix_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientVersionSuffix_ = s; - return s; - } - } - /** - * <code>string clientVersionSuffix = 24;</code> - * @return The bytes for clientVersionSuffix. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClientVersionSuffixBytes() { - java.lang.Object ref = clientVersionSuffix_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientVersionSuffix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENTSILENCEVERSIONSUFFIX_FIELD_NUMBER = 25; - private volatile java.lang.Object clientSilenceVersionSuffix_; - /** - * <code>string clientSilenceVersionSuffix = 25;</code> - * @return The clientSilenceVersionSuffix. - */ - @java.lang.Override - public java.lang.String getClientSilenceVersionSuffix() { - java.lang.Object ref = clientSilenceVersionSuffix_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientSilenceVersionSuffix_ = s; - return s; - } - } - /** - * <code>string clientSilenceVersionSuffix = 25;</code> - * @return The bytes for clientSilenceVersionSuffix. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClientSilenceVersionSuffixBytes() { - java.lang.Object ref = clientSilenceVersionSuffix_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientSilenceVersionSuffix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SHORTABILITYHASHMAP_FIELD_NUMBER = 27; - private java.util.List<emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair> shortAbilityHashMap_; - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair> getShortAbilityHashMapList() { - return shortAbilityHashMap_; - } - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPairOrBuilder> - getShortAbilityHashMapOrBuilderList() { - return shortAbilityHashMap_; - } - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - @java.lang.Override - public int getShortAbilityHashMapCount() { - return shortAbilityHashMap_.size(); - } - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair getShortAbilityHashMap(int index) { - return shortAbilityHashMap_.get(index); - } - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPairOrBuilder getShortAbilityHashMapOrBuilder( - int index) { - return shortAbilityHashMap_.get(index); - } - - public static final int SCINFO_FIELD_NUMBER = 28; - private com.google.protobuf.ByteString scInfo_; - /** - * <code>bytes scInfo = 28;</code> - * @return The scInfo. - */ - @java.lang.Override - public com.google.protobuf.ByteString getScInfo() { - return scInfo_; - } - - public static final int ISAUDIT_FIELD_NUMBER = 29; - private boolean isAudit_; - /** - * <code>bool isAudit = 29;</code> - * @return The isAudit. - */ - @java.lang.Override - public boolean getIsAudit() { - return isAudit_; - } - - public static final int ISSCOPEN_FIELD_NUMBER = 30; - private boolean isScOpen_; - /** - * <code>bool isScOpen = 30;</code> - * @return The isScOpen. - */ - @java.lang.Override - public boolean getIsScOpen() { - return isScOpen_; - } - - public static final int REGISTERCPS_FIELD_NUMBER = 31; - private volatile java.lang.Object registerCps_; - /** - * <code>string registerCps = 31;</code> - * @return The registerCps. - */ - @java.lang.Override - public java.lang.String getRegisterCps() { - java.lang.Object ref = registerCps_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registerCps_ = s; - return s; - } - } - /** - * <code>string registerCps = 31;</code> - * @return The bytes for registerCps. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRegisterCpsBytes() { - java.lang.Object ref = registerCps_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - registerCps_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FEATUREBLOCKINFOLIST_FIELD_NUMBER = 32; - private java.util.List<emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo> featureBlockInfoList_; - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo> getFeatureBlockInfoListList() { - return featureBlockInfoList_; - } - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfoOrBuilder> - getFeatureBlockInfoListOrBuilderList() { - return featureBlockInfoList_; - } - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - @java.lang.Override - public int getFeatureBlockInfoListCount() { - return featureBlockInfoList_.size(); - } - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo getFeatureBlockInfoList(int index) { - return featureBlockInfoList_.get(index); - } - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfoOrBuilder getFeatureBlockInfoListOrBuilder( - int index) { - return featureBlockInfoList_.get(index); - } - - public static final int ISDATANEEDRELOGIN_FIELD_NUMBER = 33; - private boolean isDataNeedRelogin_; - /** - * <code>bool isDataNeedRelogin = 33;</code> - * @return The isDataNeedRelogin. - */ - @java.lang.Override - public boolean getIsDataNeedRelogin() { - return isDataNeedRelogin_; - } - - public static final int COUNTRYCODE_FIELD_NUMBER = 34; - private volatile java.lang.Object countryCode_; - /** - * <code>string countryCode = 34;</code> - * @return The countryCode. - */ - @java.lang.Override - public java.lang.String getCountryCode() { - java.lang.Object ref = countryCode_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - countryCode_ = s; - return s; - } - } - /** - * <code>string countryCode = 34;</code> - * @return The bytes for countryCode. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCountryCodeBytes() { - java.lang.Object ref = countryCode_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - countryCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NEXTRESVERSIONCONFIG_FIELD_NUMBER = 35; - private emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig nextResVersionConfig_; - /** - * <code>.ResVersionConfig nextResVersionConfig = 35;</code> - * @return Whether the nextResVersionConfig field is set. - */ - @java.lang.Override - public boolean hasNextResVersionConfig() { - return nextResVersionConfig_ != null; - } - /** - * <code>.ResVersionConfig nextResVersionConfig = 35;</code> - * @return The nextResVersionConfig. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig getNextResVersionConfig() { - return nextResVersionConfig_ == null ? emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.getDefaultInstance() : nextResVersionConfig_; - } - /** - * <code>.ResVersionConfig nextResVersionConfig = 35;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfigOrBuilder getNextResVersionConfigOrBuilder() { - return getNextResVersionConfig(); - } - - public static final int NEXTRESOURCEURL_FIELD_NUMBER = 36; - private volatile java.lang.Object nextResourceUrl_; - /** - * <code>string nextResourceUrl = 36;</code> - * @return The nextResourceUrl. - */ - @java.lang.Override - public java.lang.String getNextResourceUrl() { - java.lang.Object ref = nextResourceUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextResourceUrl_ = s; - return s; - } - } - /** - * <code>string nextResourceUrl = 36;</code> - * @return The bytes for nextResourceUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextResourceUrlBytes() { - java.lang.Object ref = nextResourceUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextResourceUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TARGETHOMEOWNERUID_FIELD_NUMBER = 37; - private int targetHomeOwnerUid_; - /** - * <code>uint32 targetHomeOwnerUid = 37;</code> - * @return The targetHomeOwnerUid. - */ - @java.lang.Override - public int getTargetHomeOwnerUid() { - return targetHomeOwnerUid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (!playerData_.isEmpty()) { - output.writeBytes(2, playerData_); - } - if (isNewPlayer_ != false) { - output.writeBool(3, isNewPlayer_); - } - if (targetUid_ != 0) { - output.writeUInt32(4, targetUid_); - } - if (loginRand_ != 0L) { - output.writeUInt64(5, loginRand_); - } - if (isUseAbilityHash_ != false) { - output.writeBool(6, isUseAbilityHash_); - } - if (abilityHashCode_ != 0) { - output.writeInt32(7, abilityHashCode_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAbilityHashMap(), - AbilityHashMapDefaultEntryHolder.defaultEntry, - 8); - if (clientDataVersion_ != 0) { - output.writeUInt32(9, clientDataVersion_); - } - if (isRelogin_ != false) { - output.writeBool(11, isRelogin_); - } - if (clientSilenceDataVersion_ != 0) { - output.writeUInt32(13, clientSilenceDataVersion_); - } - if (!getGameBizBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 14, gameBiz_); - } - if (playerDataVersion_ != 0) { - output.writeUInt32(15, playerDataVersion_); - } - if (!getClientMd5Bytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 16, clientMd5_); - } - if (!getClientSilenceMd5Bytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 17, clientSilenceMd5_); - } - if (resVersionConfig_ != null) { - output.writeMessage(20, getResVersionConfig()); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetBlockInfoMap(), - BlockInfoMapDefaultEntryHolder.defaultEntry, - 21); - if (!getClientVersionSuffixBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 24, clientVersionSuffix_); - } - if (!getClientSilenceVersionSuffixBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 25, clientSilenceVersionSuffix_); - } - for (int i = 0; i < shortAbilityHashMap_.size(); i++) { - output.writeMessage(27, shortAbilityHashMap_.get(i)); - } - if (!scInfo_.isEmpty()) { - output.writeBytes(28, scInfo_); - } - if (isAudit_ != false) { - output.writeBool(29, isAudit_); - } - if (isScOpen_ != false) { - output.writeBool(30, isScOpen_); - } - if (!getRegisterCpsBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 31, registerCps_); - } - for (int i = 0; i < featureBlockInfoList_.size(); i++) { - output.writeMessage(32, featureBlockInfoList_.get(i)); - } - if (isDataNeedRelogin_ != false) { - output.writeBool(33, isDataNeedRelogin_); - } - if (!getCountryCodeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 34, countryCode_); - } - if (nextResVersionConfig_ != null) { - output.writeMessage(35, getNextResVersionConfig()); - } - if (!getNextResourceUrlBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 36, nextResourceUrl_); - } - if (targetHomeOwnerUid_ != 0) { - output.writeUInt32(37, targetHomeOwnerUid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (!playerData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, playerData_); - } - if (isNewPlayer_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, isNewPlayer_); - } - if (targetUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, targetUid_); - } - if (loginRand_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, loginRand_); - } - if (isUseAbilityHash_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, isUseAbilityHash_); - } - if (abilityHashCode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, abilityHashCode_); - } - for (java.util.Map.Entry<java.lang.String, java.lang.Integer> entry - : internalGetAbilityHashMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.String, java.lang.Integer> - abilityHashMap__ = AbilityHashMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, abilityHashMap__); - } - if (clientDataVersion_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(9, clientDataVersion_); - } - if (isRelogin_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(11, isRelogin_); - } - if (clientSilenceDataVersion_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(13, clientSilenceDataVersion_); - } - if (!getGameBizBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, gameBiz_); - } - if (playerDataVersion_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(15, playerDataVersion_); - } - if (!getClientMd5Bytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, clientMd5_); - } - if (!getClientSilenceMd5Bytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, clientSilenceMd5_); - } - if (resVersionConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getResVersionConfig()); - } - for (java.util.Map.Entry<java.lang.Integer, emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo> entry - : internalGetBlockInfoMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo> - blockInfoMap__ = BlockInfoMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, blockInfoMap__); - } - if (!getClientVersionSuffixBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, clientVersionSuffix_); - } - if (!getClientSilenceVersionSuffixBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, clientSilenceVersionSuffix_); - } - for (int i = 0; i < shortAbilityHashMap_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(27, shortAbilityHashMap_.get(i)); - } - if (!scInfo_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(28, scInfo_); - } - if (isAudit_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(29, isAudit_); - } - if (isScOpen_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(30, isScOpen_); - } - if (!getRegisterCpsBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(31, registerCps_); - } - for (int i = 0; i < featureBlockInfoList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(32, featureBlockInfoList_.get(i)); - } - if (isDataNeedRelogin_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(33, isDataNeedRelogin_); - } - if (!getCountryCodeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(34, countryCode_); - } - if (nextResVersionConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(35, getNextResVersionConfig()); - } - if (!getNextResourceUrlBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(36, nextResourceUrl_); - } - if (targetHomeOwnerUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(37, targetHomeOwnerUid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp other = (emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (!getPlayerData() - .equals(other.getPlayerData())) return false; - if (getIsNewPlayer() - != other.getIsNewPlayer()) return false; - if (getTargetUid() - != other.getTargetUid()) return false; - if (getLoginRand() - != other.getLoginRand()) return false; - if (getIsUseAbilityHash() - != other.getIsUseAbilityHash()) return false; - if (getAbilityHashCode() - != other.getAbilityHashCode()) return false; - if (!internalGetAbilityHashMap().equals( - other.internalGetAbilityHashMap())) return false; - if (getClientDataVersion() - != other.getClientDataVersion()) return false; - if (getIsRelogin() - != other.getIsRelogin()) return false; - if (getClientSilenceDataVersion() - != other.getClientSilenceDataVersion()) return false; - if (!getGameBiz() - .equals(other.getGameBiz())) return false; - if (getPlayerDataVersion() - != other.getPlayerDataVersion()) return false; - if (!getClientMd5() - .equals(other.getClientMd5())) return false; - if (!getClientSilenceMd5() - .equals(other.getClientSilenceMd5())) return false; - if (hasResVersionConfig() != other.hasResVersionConfig()) return false; - if (hasResVersionConfig()) { - if (!getResVersionConfig() - .equals(other.getResVersionConfig())) return false; - } - if (!internalGetBlockInfoMap().equals( - other.internalGetBlockInfoMap())) return false; - if (!getClientVersionSuffix() - .equals(other.getClientVersionSuffix())) return false; - if (!getClientSilenceVersionSuffix() - .equals(other.getClientSilenceVersionSuffix())) return false; - if (!getShortAbilityHashMapList() - .equals(other.getShortAbilityHashMapList())) return false; - if (!getScInfo() - .equals(other.getScInfo())) return false; - if (getIsAudit() - != other.getIsAudit()) return false; - if (getIsScOpen() - != other.getIsScOpen()) return false; - if (!getRegisterCps() - .equals(other.getRegisterCps())) return false; - if (!getFeatureBlockInfoListList() - .equals(other.getFeatureBlockInfoListList())) return false; - if (getIsDataNeedRelogin() - != other.getIsDataNeedRelogin()) return false; - if (!getCountryCode() - .equals(other.getCountryCode())) return false; - if (hasNextResVersionConfig() != other.hasNextResVersionConfig()) return false; - if (hasNextResVersionConfig()) { - if (!getNextResVersionConfig() - .equals(other.getNextResVersionConfig())) return false; - } - if (!getNextResourceUrl() - .equals(other.getNextResourceUrl())) return false; - if (getTargetHomeOwnerUid() - != other.getTargetHomeOwnerUid()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + PLAYERDATA_FIELD_NUMBER; - hash = (53 * hash) + getPlayerData().hashCode(); - hash = (37 * hash) + ISNEWPLAYER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsNewPlayer()); - hash = (37 * hash) + TARGETUID_FIELD_NUMBER; - hash = (53 * hash) + getTargetUid(); - hash = (37 * hash) + LOGINRAND_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLoginRand()); - hash = (37 * hash) + ISUSEABILITYHASH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsUseAbilityHash()); - hash = (37 * hash) + ABILITYHASHCODE_FIELD_NUMBER; - hash = (53 * hash) + getAbilityHashCode(); - if (!internalGetAbilityHashMap().getMap().isEmpty()) { - hash = (37 * hash) + ABILITYHASHMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetAbilityHashMap().hashCode(); - } - hash = (37 * hash) + CLIENTDATAVERSION_FIELD_NUMBER; - hash = (53 * hash) + getClientDataVersion(); - hash = (37 * hash) + ISRELOGIN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsRelogin()); - hash = (37 * hash) + CLIENTSILENCEDATAVERSION_FIELD_NUMBER; - hash = (53 * hash) + getClientSilenceDataVersion(); - hash = (37 * hash) + GAMEBIZ_FIELD_NUMBER; - hash = (53 * hash) + getGameBiz().hashCode(); - hash = (37 * hash) + PLAYERDATAVERSION_FIELD_NUMBER; - hash = (53 * hash) + getPlayerDataVersion(); - hash = (37 * hash) + CLIENTMD5_FIELD_NUMBER; - hash = (53 * hash) + getClientMd5().hashCode(); - hash = (37 * hash) + CLIENTSILENCEMD5_FIELD_NUMBER; - hash = (53 * hash) + getClientSilenceMd5().hashCode(); - if (hasResVersionConfig()) { - hash = (37 * hash) + RESVERSIONCONFIG_FIELD_NUMBER; - hash = (53 * hash) + getResVersionConfig().hashCode(); - } - if (!internalGetBlockInfoMap().getMap().isEmpty()) { - hash = (37 * hash) + BLOCKINFOMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetBlockInfoMap().hashCode(); - } - hash = (37 * hash) + CLIENTVERSIONSUFFIX_FIELD_NUMBER; - hash = (53 * hash) + getClientVersionSuffix().hashCode(); - hash = (37 * hash) + CLIENTSILENCEVERSIONSUFFIX_FIELD_NUMBER; - hash = (53 * hash) + getClientSilenceVersionSuffix().hashCode(); - if (getShortAbilityHashMapCount() > 0) { - hash = (37 * hash) + SHORTABILITYHASHMAP_FIELD_NUMBER; - hash = (53 * hash) + getShortAbilityHashMapList().hashCode(); - } - hash = (37 * hash) + SCINFO_FIELD_NUMBER; - hash = (53 * hash) + getScInfo().hashCode(); - hash = (37 * hash) + ISAUDIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsAudit()); - hash = (37 * hash) + ISSCOPEN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsScOpen()); - hash = (37 * hash) + REGISTERCPS_FIELD_NUMBER; - hash = (53 * hash) + getRegisterCps().hashCode(); - if (getFeatureBlockInfoListCount() > 0) { - hash = (37 * hash) + FEATUREBLOCKINFOLIST_FIELD_NUMBER; - hash = (53 * hash) + getFeatureBlockInfoListList().hashCode(); - } - hash = (37 * hash) + ISDATANEEDRELOGIN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsDataNeedRelogin()); - hash = (37 * hash) + COUNTRYCODE_FIELD_NUMBER; - hash = (53 * hash) + getCountryCode().hashCode(); - if (hasNextResVersionConfig()) { - hash = (37 * hash) + NEXTRESVERSIONCONFIG_FIELD_NUMBER; - hash = (53 * hash) + getNextResVersionConfig().hashCode(); - } - hash = (37 * hash) + NEXTRESOURCEURL_FIELD_NUMBER; - hash = (53 * hash) + getNextResourceUrl().hashCode(); - hash = (37 * hash) + TARGETHOMEOWNERUID_FIELD_NUMBER; - hash = (53 * hash) + getTargetHomeOwnerUid(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PlayerLoginRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerLoginRsp) - emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerLoginRspOuterClass.internal_static_PlayerLoginRsp_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 8: - return internalGetAbilityHashMap(); - case 21: - return internalGetBlockInfoMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 8: - return internalGetMutableAbilityHashMap(); - case 21: - return internalGetMutableBlockInfoMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerLoginRspOuterClass.internal_static_PlayerLoginRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp.class, emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getShortAbilityHashMapFieldBuilder(); - getFeatureBlockInfoListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - playerData_ = com.google.protobuf.ByteString.EMPTY; - - isNewPlayer_ = false; - - targetUid_ = 0; - - loginRand_ = 0L; - - isUseAbilityHash_ = false; - - abilityHashCode_ = 0; - - internalGetMutableAbilityHashMap().clear(); - clientDataVersion_ = 0; - - isRelogin_ = false; - - clientSilenceDataVersion_ = 0; - - gameBiz_ = ""; - - playerDataVersion_ = 0; - - clientMd5_ = ""; - - clientSilenceMd5_ = ""; - - if (resVersionConfigBuilder_ == null) { - resVersionConfig_ = null; - } else { - resVersionConfig_ = null; - resVersionConfigBuilder_ = null; - } - internalGetMutableBlockInfoMap().clear(); - clientVersionSuffix_ = ""; - - clientSilenceVersionSuffix_ = ""; - - if (shortAbilityHashMapBuilder_ == null) { - shortAbilityHashMap_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - shortAbilityHashMapBuilder_.clear(); - } - scInfo_ = com.google.protobuf.ByteString.EMPTY; - - isAudit_ = false; - - isScOpen_ = false; - - registerCps_ = ""; - - if (featureBlockInfoListBuilder_ == null) { - featureBlockInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - featureBlockInfoListBuilder_.clear(); - } - isDataNeedRelogin_ = false; - - countryCode_ = ""; - - if (nextResVersionConfigBuilder_ == null) { - nextResVersionConfig_ = null; - } else { - nextResVersionConfig_ = null; - nextResVersionConfigBuilder_ = null; - } - nextResourceUrl_ = ""; - - targetHomeOwnerUid_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerLoginRspOuterClass.internal_static_PlayerLoginRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp build() { - emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp buildPartial() { - emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp result = new emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp(this); - int from_bitField0_ = bitField0_; - result.retcode_ = retcode_; - result.playerData_ = playerData_; - result.isNewPlayer_ = isNewPlayer_; - result.targetUid_ = targetUid_; - result.loginRand_ = loginRand_; - result.isUseAbilityHash_ = isUseAbilityHash_; - result.abilityHashCode_ = abilityHashCode_; - result.abilityHashMap_ = internalGetAbilityHashMap(); - result.abilityHashMap_.makeImmutable(); - result.clientDataVersion_ = clientDataVersion_; - result.isRelogin_ = isRelogin_; - result.clientSilenceDataVersion_ = clientSilenceDataVersion_; - result.gameBiz_ = gameBiz_; - result.playerDataVersion_ = playerDataVersion_; - result.clientMd5_ = clientMd5_; - result.clientSilenceMd5_ = clientSilenceMd5_; - if (resVersionConfigBuilder_ == null) { - result.resVersionConfig_ = resVersionConfig_; - } else { - result.resVersionConfig_ = resVersionConfigBuilder_.build(); - } - result.blockInfoMap_ = internalGetBlockInfoMap(); - result.blockInfoMap_.makeImmutable(); - result.clientVersionSuffix_ = clientVersionSuffix_; - result.clientSilenceVersionSuffix_ = clientSilenceVersionSuffix_; - if (shortAbilityHashMapBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - shortAbilityHashMap_ = java.util.Collections.unmodifiableList(shortAbilityHashMap_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.shortAbilityHashMap_ = shortAbilityHashMap_; - } else { - result.shortAbilityHashMap_ = shortAbilityHashMapBuilder_.build(); - } - result.scInfo_ = scInfo_; - result.isAudit_ = isAudit_; - result.isScOpen_ = isScOpen_; - result.registerCps_ = registerCps_; - if (featureBlockInfoListBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - featureBlockInfoList_ = java.util.Collections.unmodifiableList(featureBlockInfoList_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.featureBlockInfoList_ = featureBlockInfoList_; - } else { - result.featureBlockInfoList_ = featureBlockInfoListBuilder_.build(); - } - result.isDataNeedRelogin_ = isDataNeedRelogin_; - result.countryCode_ = countryCode_; - if (nextResVersionConfigBuilder_ == null) { - result.nextResVersionConfig_ = nextResVersionConfig_; - } else { - result.nextResVersionConfig_ = nextResVersionConfigBuilder_.build(); - } - result.nextResourceUrl_ = nextResourceUrl_; - result.targetHomeOwnerUid_ = targetHomeOwnerUid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp) { - return mergeFrom((emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp other) { - if (other == emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getPlayerData() != com.google.protobuf.ByteString.EMPTY) { - setPlayerData(other.getPlayerData()); - } - if (other.getIsNewPlayer() != false) { - setIsNewPlayer(other.getIsNewPlayer()); - } - if (other.getTargetUid() != 0) { - setTargetUid(other.getTargetUid()); - } - if (other.getLoginRand() != 0L) { - setLoginRand(other.getLoginRand()); - } - if (other.getIsUseAbilityHash() != false) { - setIsUseAbilityHash(other.getIsUseAbilityHash()); - } - if (other.getAbilityHashCode() != 0) { - setAbilityHashCode(other.getAbilityHashCode()); - } - internalGetMutableAbilityHashMap().mergeFrom( - other.internalGetAbilityHashMap()); - if (other.getClientDataVersion() != 0) { - setClientDataVersion(other.getClientDataVersion()); - } - if (other.getIsRelogin() != false) { - setIsRelogin(other.getIsRelogin()); - } - if (other.getClientSilenceDataVersion() != 0) { - setClientSilenceDataVersion(other.getClientSilenceDataVersion()); - } - if (!other.getGameBiz().isEmpty()) { - gameBiz_ = other.gameBiz_; - onChanged(); - } - if (other.getPlayerDataVersion() != 0) { - setPlayerDataVersion(other.getPlayerDataVersion()); - } - if (!other.getClientMd5().isEmpty()) { - clientMd5_ = other.clientMd5_; - onChanged(); - } - if (!other.getClientSilenceMd5().isEmpty()) { - clientSilenceMd5_ = other.clientSilenceMd5_; - onChanged(); - } - if (other.hasResVersionConfig()) { - mergeResVersionConfig(other.getResVersionConfig()); - } - internalGetMutableBlockInfoMap().mergeFrom( - other.internalGetBlockInfoMap()); - if (!other.getClientVersionSuffix().isEmpty()) { - clientVersionSuffix_ = other.clientVersionSuffix_; - onChanged(); - } - if (!other.getClientSilenceVersionSuffix().isEmpty()) { - clientSilenceVersionSuffix_ = other.clientSilenceVersionSuffix_; - onChanged(); - } - if (shortAbilityHashMapBuilder_ == null) { - if (!other.shortAbilityHashMap_.isEmpty()) { - if (shortAbilityHashMap_.isEmpty()) { - shortAbilityHashMap_ = other.shortAbilityHashMap_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureShortAbilityHashMapIsMutable(); - shortAbilityHashMap_.addAll(other.shortAbilityHashMap_); - } - onChanged(); - } - } else { - if (!other.shortAbilityHashMap_.isEmpty()) { - if (shortAbilityHashMapBuilder_.isEmpty()) { - shortAbilityHashMapBuilder_.dispose(); - shortAbilityHashMapBuilder_ = null; - shortAbilityHashMap_ = other.shortAbilityHashMap_; - bitField0_ = (bitField0_ & ~0x00000004); - shortAbilityHashMapBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getShortAbilityHashMapFieldBuilder() : null; - } else { - shortAbilityHashMapBuilder_.addAllMessages(other.shortAbilityHashMap_); - } - } - } - if (other.getScInfo() != com.google.protobuf.ByteString.EMPTY) { - setScInfo(other.getScInfo()); - } - if (other.getIsAudit() != false) { - setIsAudit(other.getIsAudit()); - } - if (other.getIsScOpen() != false) { - setIsScOpen(other.getIsScOpen()); - } - if (!other.getRegisterCps().isEmpty()) { - registerCps_ = other.registerCps_; - onChanged(); - } - if (featureBlockInfoListBuilder_ == null) { - if (!other.featureBlockInfoList_.isEmpty()) { - if (featureBlockInfoList_.isEmpty()) { - featureBlockInfoList_ = other.featureBlockInfoList_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureFeatureBlockInfoListIsMutable(); - featureBlockInfoList_.addAll(other.featureBlockInfoList_); - } - onChanged(); - } - } else { - if (!other.featureBlockInfoList_.isEmpty()) { - if (featureBlockInfoListBuilder_.isEmpty()) { - featureBlockInfoListBuilder_.dispose(); - featureBlockInfoListBuilder_ = null; - featureBlockInfoList_ = other.featureBlockInfoList_; - bitField0_ = (bitField0_ & ~0x00000008); - featureBlockInfoListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFeatureBlockInfoListFieldBuilder() : null; - } else { - featureBlockInfoListBuilder_.addAllMessages(other.featureBlockInfoList_); - } - } - } - if (other.getIsDataNeedRelogin() != false) { - setIsDataNeedRelogin(other.getIsDataNeedRelogin()); - } - if (!other.getCountryCode().isEmpty()) { - countryCode_ = other.countryCode_; - onChanged(); - } - if (other.hasNextResVersionConfig()) { - mergeNextResVersionConfig(other.getNextResVersionConfig()); - } - if (!other.getNextResourceUrl().isEmpty()) { - nextResourceUrl_ = other.nextResourceUrl_; - onChanged(); - } - if (other.getTargetHomeOwnerUid() != 0) { - setTargetHomeOwnerUid(other.getTargetHomeOwnerUid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString playerData_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>bytes playerData = 2;</code> - * @return The playerData. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPlayerData() { - return playerData_; - } - /** - * <code>bytes playerData = 2;</code> - * @param value The playerData to set. - * @return This builder for chaining. - */ - public Builder setPlayerData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - playerData_ = value; - onChanged(); - return this; - } - /** - * <code>bytes playerData = 2;</code> - * @return This builder for chaining. - */ - public Builder clearPlayerData() { - - playerData_ = getDefaultInstance().getPlayerData(); - onChanged(); - return this; - } - - private boolean isNewPlayer_ ; - /** - * <code>bool isNewPlayer = 3;</code> - * @return The isNewPlayer. - */ - @java.lang.Override - public boolean getIsNewPlayer() { - return isNewPlayer_; - } - /** - * <code>bool isNewPlayer = 3;</code> - * @param value The isNewPlayer to set. - * @return This builder for chaining. - */ - public Builder setIsNewPlayer(boolean value) { - - isNewPlayer_ = value; - onChanged(); - return this; - } - /** - * <code>bool isNewPlayer = 3;</code> - * @return This builder for chaining. - */ - public Builder clearIsNewPlayer() { - - isNewPlayer_ = false; - onChanged(); - return this; - } - - private int targetUid_ ; - /** - * <code>uint32 targetUid = 4;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - /** - * <code>uint32 targetUid = 4;</code> - * @param value The targetUid to set. - * @return This builder for chaining. - */ - public Builder setTargetUid(int value) { - - targetUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 targetUid = 4;</code> - * @return This builder for chaining. - */ - public Builder clearTargetUid() { - - targetUid_ = 0; - onChanged(); - return this; - } - - private long loginRand_ ; - /** - * <code>uint64 loginRand = 5;</code> - * @return The loginRand. - */ - @java.lang.Override - public long getLoginRand() { - return loginRand_; - } - /** - * <code>uint64 loginRand = 5;</code> - * @param value The loginRand to set. - * @return This builder for chaining. - */ - public Builder setLoginRand(long value) { - - loginRand_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 loginRand = 5;</code> - * @return This builder for chaining. - */ - public Builder clearLoginRand() { - - loginRand_ = 0L; - onChanged(); - return this; - } - - private boolean isUseAbilityHash_ ; - /** - * <code>bool isUseAbilityHash = 6;</code> - * @return The isUseAbilityHash. - */ - @java.lang.Override - public boolean getIsUseAbilityHash() { - return isUseAbilityHash_; - } - /** - * <code>bool isUseAbilityHash = 6;</code> - * @param value The isUseAbilityHash to set. - * @return This builder for chaining. - */ - public Builder setIsUseAbilityHash(boolean value) { - - isUseAbilityHash_ = value; - onChanged(); - return this; - } - /** - * <code>bool isUseAbilityHash = 6;</code> - * @return This builder for chaining. - */ - public Builder clearIsUseAbilityHash() { - - isUseAbilityHash_ = false; - onChanged(); - return this; - } - - private int abilityHashCode_ ; - /** - * <code>int32 abilityHashCode = 7;</code> - * @return The abilityHashCode. - */ - @java.lang.Override - public int getAbilityHashCode() { - return abilityHashCode_; - } - /** - * <code>int32 abilityHashCode = 7;</code> - * @param value The abilityHashCode to set. - * @return This builder for chaining. - */ - public Builder setAbilityHashCode(int value) { - - abilityHashCode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 abilityHashCode = 7;</code> - * @return This builder for chaining. - */ - public Builder clearAbilityHashCode() { - - abilityHashCode_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> abilityHashMap_; - private com.google.protobuf.MapField<java.lang.String, java.lang.Integer> - internalGetAbilityHashMap() { - if (abilityHashMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AbilityHashMapDefaultEntryHolder.defaultEntry); - } - return abilityHashMap_; - } - private com.google.protobuf.MapField<java.lang.String, java.lang.Integer> - internalGetMutableAbilityHashMap() { - onChanged();; - if (abilityHashMap_ == null) { - abilityHashMap_ = com.google.protobuf.MapField.newMapField( - AbilityHashMapDefaultEntryHolder.defaultEntry); - } - if (!abilityHashMap_.isMutable()) { - abilityHashMap_ = abilityHashMap_.copy(); - } - return abilityHashMap_; - } - - public int getAbilityHashMapCount() { - return internalGetAbilityHashMap().getMap().size(); - } - /** - * <code>map<string, int32> abilityHashMap = 8;</code> - */ - - @java.lang.Override - public boolean containsAbilityHashMap( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetAbilityHashMap().getMap().containsKey(key); - } - /** - * Use {@link #getAbilityHashMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.String, java.lang.Integer> getAbilityHashMap() { - return getAbilityHashMapMap(); - } - /** - * <code>map<string, int32> abilityHashMap = 8;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.String, java.lang.Integer> getAbilityHashMapMap() { - return internalGetAbilityHashMap().getMap(); - } - /** - * <code>map<string, int32> abilityHashMap = 8;</code> - */ - @java.lang.Override - - public int getAbilityHashMapOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map<java.lang.String, java.lang.Integer> map = - internalGetAbilityHashMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<string, int32> abilityHashMap = 8;</code> - */ - @java.lang.Override - - public int getAbilityHashMapOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map<java.lang.String, java.lang.Integer> map = - internalGetAbilityHashMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearAbilityHashMap() { - internalGetMutableAbilityHashMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<string, int32> abilityHashMap = 8;</code> - */ - - public Builder removeAbilityHashMap( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAbilityHashMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.String, java.lang.Integer> - getMutableAbilityHashMap() { - return internalGetMutableAbilityHashMap().getMutableMap(); - } - /** - * <code>map<string, int32> abilityHashMap = 8;</code> - */ - public Builder putAbilityHashMap( - java.lang.String key, - int value) { - if (key == null) { throw new java.lang.NullPointerException(); } - - internalGetMutableAbilityHashMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<string, int32> abilityHashMap = 8;</code> - */ - - public Builder putAllAbilityHashMap( - java.util.Map<java.lang.String, java.lang.Integer> values) { - internalGetMutableAbilityHashMap().getMutableMap() - .putAll(values); - return this; - } - - private int clientDataVersion_ ; - /** - * <code>uint32 clientDataVersion = 9;</code> - * @return The clientDataVersion. - */ - @java.lang.Override - public int getClientDataVersion() { - return clientDataVersion_; - } - /** - * <code>uint32 clientDataVersion = 9;</code> - * @param value The clientDataVersion to set. - * @return This builder for chaining. - */ - public Builder setClientDataVersion(int value) { - - clientDataVersion_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 clientDataVersion = 9;</code> - * @return This builder for chaining. - */ - public Builder clearClientDataVersion() { - - clientDataVersion_ = 0; - onChanged(); - return this; - } - - private boolean isRelogin_ ; - /** - * <code>bool isRelogin = 11;</code> - * @return The isRelogin. - */ - @java.lang.Override - public boolean getIsRelogin() { - return isRelogin_; - } - /** - * <code>bool isRelogin = 11;</code> - * @param value The isRelogin to set. - * @return This builder for chaining. - */ - public Builder setIsRelogin(boolean value) { - - isRelogin_ = value; - onChanged(); - return this; - } - /** - * <code>bool isRelogin = 11;</code> - * @return This builder for chaining. - */ - public Builder clearIsRelogin() { - - isRelogin_ = false; - onChanged(); - return this; - } - - private int clientSilenceDataVersion_ ; - /** - * <code>uint32 clientSilenceDataVersion = 13;</code> - * @return The clientSilenceDataVersion. - */ - @java.lang.Override - public int getClientSilenceDataVersion() { - return clientSilenceDataVersion_; - } - /** - * <code>uint32 clientSilenceDataVersion = 13;</code> - * @param value The clientSilenceDataVersion to set. - * @return This builder for chaining. - */ - public Builder setClientSilenceDataVersion(int value) { - - clientSilenceDataVersion_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 clientSilenceDataVersion = 13;</code> - * @return This builder for chaining. - */ - public Builder clearClientSilenceDataVersion() { - - clientSilenceDataVersion_ = 0; - onChanged(); - return this; - } - - private java.lang.Object gameBiz_ = ""; - /** - * <code>string gameBiz = 14;</code> - * @return The gameBiz. - */ - public java.lang.String getGameBiz() { - java.lang.Object ref = gameBiz_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gameBiz_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string gameBiz = 14;</code> - * @return The bytes for gameBiz. - */ - public com.google.protobuf.ByteString - getGameBizBytes() { - java.lang.Object ref = gameBiz_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gameBiz_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string gameBiz = 14;</code> - * @param value The gameBiz to set. - * @return This builder for chaining. - */ - public Builder setGameBiz( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gameBiz_ = value; - onChanged(); - return this; - } - /** - * <code>string gameBiz = 14;</code> - * @return This builder for chaining. - */ - public Builder clearGameBiz() { - - gameBiz_ = getDefaultInstance().getGameBiz(); - onChanged(); - return this; - } - /** - * <code>string gameBiz = 14;</code> - * @param value The bytes for gameBiz to set. - * @return This builder for chaining. - */ - public Builder setGameBizBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gameBiz_ = value; - onChanged(); - return this; - } - - private int playerDataVersion_ ; - /** - * <code>uint32 playerDataVersion = 15;</code> - * @return The playerDataVersion. - */ - @java.lang.Override - public int getPlayerDataVersion() { - return playerDataVersion_; - } - /** - * <code>uint32 playerDataVersion = 15;</code> - * @param value The playerDataVersion to set. - * @return This builder for chaining. - */ - public Builder setPlayerDataVersion(int value) { - - playerDataVersion_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 playerDataVersion = 15;</code> - * @return This builder for chaining. - */ - public Builder clearPlayerDataVersion() { - - playerDataVersion_ = 0; - onChanged(); - return this; - } - - private java.lang.Object clientMd5_ = ""; - /** - * <code>string clientMd5 = 16;</code> - * @return The clientMd5. - */ - public java.lang.String getClientMd5() { - java.lang.Object ref = clientMd5_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientMd5_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string clientMd5 = 16;</code> - * @return The bytes for clientMd5. - */ - public com.google.protobuf.ByteString - getClientMd5Bytes() { - java.lang.Object ref = clientMd5_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientMd5_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string clientMd5 = 16;</code> - * @param value The clientMd5 to set. - * @return This builder for chaining. - */ - public Builder setClientMd5( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientMd5_ = value; - onChanged(); - return this; - } - /** - * <code>string clientMd5 = 16;</code> - * @return This builder for chaining. - */ - public Builder clearClientMd5() { - - clientMd5_ = getDefaultInstance().getClientMd5(); - onChanged(); - return this; - } - /** - * <code>string clientMd5 = 16;</code> - * @param value The bytes for clientMd5 to set. - * @return This builder for chaining. - */ - public Builder setClientMd5Bytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientMd5_ = value; - onChanged(); - return this; - } - - private java.lang.Object clientSilenceMd5_ = ""; - /** - * <code>string clientSilenceMd5 = 17;</code> - * @return The clientSilenceMd5. - */ - public java.lang.String getClientSilenceMd5() { - java.lang.Object ref = clientSilenceMd5_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientSilenceMd5_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string clientSilenceMd5 = 17;</code> - * @return The bytes for clientSilenceMd5. - */ - public com.google.protobuf.ByteString - getClientSilenceMd5Bytes() { - java.lang.Object ref = clientSilenceMd5_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientSilenceMd5_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string clientSilenceMd5 = 17;</code> - * @param value The clientSilenceMd5 to set. - * @return This builder for chaining. - */ - public Builder setClientSilenceMd5( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientSilenceMd5_ = value; - onChanged(); - return this; - } - /** - * <code>string clientSilenceMd5 = 17;</code> - * @return This builder for chaining. - */ - public Builder clearClientSilenceMd5() { - - clientSilenceMd5_ = getDefaultInstance().getClientSilenceMd5(); - onChanged(); - return this; - } - /** - * <code>string clientSilenceMd5 = 17;</code> - * @param value The bytes for clientSilenceMd5 to set. - * @return This builder for chaining. - */ - public Builder setClientSilenceMd5Bytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientSilenceMd5_ = value; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig resVersionConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig, emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.Builder, emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfigOrBuilder> resVersionConfigBuilder_; - /** - * <code>.ResVersionConfig resVersionConfig = 20;</code> - * @return Whether the resVersionConfig field is set. - */ - public boolean hasResVersionConfig() { - return resVersionConfigBuilder_ != null || resVersionConfig_ != null; - } - /** - * <code>.ResVersionConfig resVersionConfig = 20;</code> - * @return The resVersionConfig. - */ - public emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig getResVersionConfig() { - if (resVersionConfigBuilder_ == null) { - return resVersionConfig_ == null ? emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.getDefaultInstance() : resVersionConfig_; - } else { - return resVersionConfigBuilder_.getMessage(); - } - } - /** - * <code>.ResVersionConfig resVersionConfig = 20;</code> - */ - public Builder setResVersionConfig(emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig value) { - if (resVersionConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resVersionConfig_ = value; - onChanged(); - } else { - resVersionConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.ResVersionConfig resVersionConfig = 20;</code> - */ - public Builder setResVersionConfig( - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.Builder builderForValue) { - if (resVersionConfigBuilder_ == null) { - resVersionConfig_ = builderForValue.build(); - onChanged(); - } else { - resVersionConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.ResVersionConfig resVersionConfig = 20;</code> - */ - public Builder mergeResVersionConfig(emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig value) { - if (resVersionConfigBuilder_ == null) { - if (resVersionConfig_ != null) { - resVersionConfig_ = - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.newBuilder(resVersionConfig_).mergeFrom(value).buildPartial(); - } else { - resVersionConfig_ = value; - } - onChanged(); - } else { - resVersionConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.ResVersionConfig resVersionConfig = 20;</code> - */ - public Builder clearResVersionConfig() { - if (resVersionConfigBuilder_ == null) { - resVersionConfig_ = null; - onChanged(); - } else { - resVersionConfig_ = null; - resVersionConfigBuilder_ = null; - } - - return this; - } - /** - * <code>.ResVersionConfig resVersionConfig = 20;</code> - */ - public emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.Builder getResVersionConfigBuilder() { - - onChanged(); - return getResVersionConfigFieldBuilder().getBuilder(); - } - /** - * <code>.ResVersionConfig resVersionConfig = 20;</code> - */ - public emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfigOrBuilder getResVersionConfigOrBuilder() { - if (resVersionConfigBuilder_ != null) { - return resVersionConfigBuilder_.getMessageOrBuilder(); - } else { - return resVersionConfig_ == null ? - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.getDefaultInstance() : resVersionConfig_; - } - } - /** - * <code>.ResVersionConfig resVersionConfig = 20;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig, emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.Builder, emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfigOrBuilder> - getResVersionConfigFieldBuilder() { - if (resVersionConfigBuilder_ == null) { - resVersionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig, emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.Builder, emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfigOrBuilder>( - getResVersionConfig(), - getParentForChildren(), - isClean()); - resVersionConfig_ = null; - } - return resVersionConfigBuilder_; - } - - private com.google.protobuf.MapField< - java.lang.Integer, emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo> blockInfoMap_; - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo> - internalGetBlockInfoMap() { - if (blockInfoMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - BlockInfoMapDefaultEntryHolder.defaultEntry); - } - return blockInfoMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo> - internalGetMutableBlockInfoMap() { - onChanged();; - if (blockInfoMap_ == null) { - blockInfoMap_ = com.google.protobuf.MapField.newMapField( - BlockInfoMapDefaultEntryHolder.defaultEntry); - } - if (!blockInfoMap_.isMutable()) { - blockInfoMap_ = blockInfoMap_.copy(); - } - return blockInfoMap_; - } - - public int getBlockInfoMapCount() { - return internalGetBlockInfoMap().getMap().size(); - } - /** - * <code>map<uint32, .BlockInfo> blockInfoMap = 21;</code> - */ - - @java.lang.Override - public boolean containsBlockInfoMap( - int key) { - - return internalGetBlockInfoMap().getMap().containsKey(key); - } - /** - * Use {@link #getBlockInfoMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo> getBlockInfoMap() { - return getBlockInfoMapMap(); - } - /** - * <code>map<uint32, .BlockInfo> blockInfoMap = 21;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo> getBlockInfoMapMap() { - return internalGetBlockInfoMap().getMap(); - } - /** - * <code>map<uint32, .BlockInfo> blockInfoMap = 21;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo getBlockInfoMapOrDefault( - int key, - emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo defaultValue) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo> map = - internalGetBlockInfoMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, .BlockInfo> blockInfoMap = 21;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo getBlockInfoMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo> map = - internalGetBlockInfoMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearBlockInfoMap() { - internalGetMutableBlockInfoMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, .BlockInfo> blockInfoMap = 21;</code> - */ - - public Builder removeBlockInfoMap( - int key) { - - internalGetMutableBlockInfoMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo> - getMutableBlockInfoMap() { - return internalGetMutableBlockInfoMap().getMutableMap(); - } - /** - * <code>map<uint32, .BlockInfo> blockInfoMap = 21;</code> - */ - public Builder putBlockInfoMap( - int key, - emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo value) { - - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableBlockInfoMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, .BlockInfo> blockInfoMap = 21;</code> - */ - - public Builder putAllBlockInfoMap( - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo> values) { - internalGetMutableBlockInfoMap().getMutableMap() - .putAll(values); - return this; - } - - private java.lang.Object clientVersionSuffix_ = ""; - /** - * <code>string clientVersionSuffix = 24;</code> - * @return The clientVersionSuffix. - */ - public java.lang.String getClientVersionSuffix() { - java.lang.Object ref = clientVersionSuffix_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientVersionSuffix_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string clientVersionSuffix = 24;</code> - * @return The bytes for clientVersionSuffix. - */ - public com.google.protobuf.ByteString - getClientVersionSuffixBytes() { - java.lang.Object ref = clientVersionSuffix_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientVersionSuffix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string clientVersionSuffix = 24;</code> - * @param value The clientVersionSuffix to set. - * @return This builder for chaining. - */ - public Builder setClientVersionSuffix( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientVersionSuffix_ = value; - onChanged(); - return this; - } - /** - * <code>string clientVersionSuffix = 24;</code> - * @return This builder for chaining. - */ - public Builder clearClientVersionSuffix() { - - clientVersionSuffix_ = getDefaultInstance().getClientVersionSuffix(); - onChanged(); - return this; - } - /** - * <code>string clientVersionSuffix = 24;</code> - * @param value The bytes for clientVersionSuffix to set. - * @return This builder for chaining. - */ - public Builder setClientVersionSuffixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientVersionSuffix_ = value; - onChanged(); - return this; - } - - private java.lang.Object clientSilenceVersionSuffix_ = ""; - /** - * <code>string clientSilenceVersionSuffix = 25;</code> - * @return The clientSilenceVersionSuffix. - */ - public java.lang.String getClientSilenceVersionSuffix() { - java.lang.Object ref = clientSilenceVersionSuffix_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientSilenceVersionSuffix_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string clientSilenceVersionSuffix = 25;</code> - * @return The bytes for clientSilenceVersionSuffix. - */ - public com.google.protobuf.ByteString - getClientSilenceVersionSuffixBytes() { - java.lang.Object ref = clientSilenceVersionSuffix_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientSilenceVersionSuffix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string clientSilenceVersionSuffix = 25;</code> - * @param value The clientSilenceVersionSuffix to set. - * @return This builder for chaining. - */ - public Builder setClientSilenceVersionSuffix( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientSilenceVersionSuffix_ = value; - onChanged(); - return this; - } - /** - * <code>string clientSilenceVersionSuffix = 25;</code> - * @return This builder for chaining. - */ - public Builder clearClientSilenceVersionSuffix() { - - clientSilenceVersionSuffix_ = getDefaultInstance().getClientSilenceVersionSuffix(); - onChanged(); - return this; - } - /** - * <code>string clientSilenceVersionSuffix = 25;</code> - * @param value The bytes for clientSilenceVersionSuffix to set. - * @return This builder for chaining. - */ - public Builder setClientSilenceVersionSuffixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientSilenceVersionSuffix_ = value; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair> shortAbilityHashMap_ = - java.util.Collections.emptyList(); - private void ensureShortAbilityHashMapIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - shortAbilityHashMap_ = new java.util.ArrayList<emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair>(shortAbilityHashMap_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair, emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair.Builder, emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPairOrBuilder> shortAbilityHashMapBuilder_; - - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair> getShortAbilityHashMapList() { - if (shortAbilityHashMapBuilder_ == null) { - return java.util.Collections.unmodifiableList(shortAbilityHashMap_); - } else { - return shortAbilityHashMapBuilder_.getMessageList(); - } - } - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - public int getShortAbilityHashMapCount() { - if (shortAbilityHashMapBuilder_ == null) { - return shortAbilityHashMap_.size(); - } else { - return shortAbilityHashMapBuilder_.getCount(); - } - } - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - public emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair getShortAbilityHashMap(int index) { - if (shortAbilityHashMapBuilder_ == null) { - return shortAbilityHashMap_.get(index); - } else { - return shortAbilityHashMapBuilder_.getMessage(index); - } - } - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - public Builder setShortAbilityHashMap( - int index, emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair value) { - if (shortAbilityHashMapBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureShortAbilityHashMapIsMutable(); - shortAbilityHashMap_.set(index, value); - onChanged(); - } else { - shortAbilityHashMapBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - public Builder setShortAbilityHashMap( - int index, emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair.Builder builderForValue) { - if (shortAbilityHashMapBuilder_ == null) { - ensureShortAbilityHashMapIsMutable(); - shortAbilityHashMap_.set(index, builderForValue.build()); - onChanged(); - } else { - shortAbilityHashMapBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - public Builder addShortAbilityHashMap(emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair value) { - if (shortAbilityHashMapBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureShortAbilityHashMapIsMutable(); - shortAbilityHashMap_.add(value); - onChanged(); - } else { - shortAbilityHashMapBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - public Builder addShortAbilityHashMap( - int index, emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair value) { - if (shortAbilityHashMapBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureShortAbilityHashMapIsMutable(); - shortAbilityHashMap_.add(index, value); - onChanged(); - } else { - shortAbilityHashMapBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - public Builder addShortAbilityHashMap( - emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair.Builder builderForValue) { - if (shortAbilityHashMapBuilder_ == null) { - ensureShortAbilityHashMapIsMutable(); - shortAbilityHashMap_.add(builderForValue.build()); - onChanged(); - } else { - shortAbilityHashMapBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - public Builder addShortAbilityHashMap( - int index, emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair.Builder builderForValue) { - if (shortAbilityHashMapBuilder_ == null) { - ensureShortAbilityHashMapIsMutable(); - shortAbilityHashMap_.add(index, builderForValue.build()); - onChanged(); - } else { - shortAbilityHashMapBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - public Builder addAllShortAbilityHashMap( - java.lang.Iterable<? extends emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair> values) { - if (shortAbilityHashMapBuilder_ == null) { - ensureShortAbilityHashMapIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, shortAbilityHashMap_); - onChanged(); - } else { - shortAbilityHashMapBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - public Builder clearShortAbilityHashMap() { - if (shortAbilityHashMapBuilder_ == null) { - shortAbilityHashMap_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - shortAbilityHashMapBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - public Builder removeShortAbilityHashMap(int index) { - if (shortAbilityHashMapBuilder_ == null) { - ensureShortAbilityHashMapIsMutable(); - shortAbilityHashMap_.remove(index); - onChanged(); - } else { - shortAbilityHashMapBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - public emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair.Builder getShortAbilityHashMapBuilder( - int index) { - return getShortAbilityHashMapFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - public emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPairOrBuilder getShortAbilityHashMapOrBuilder( - int index) { - if (shortAbilityHashMapBuilder_ == null) { - return shortAbilityHashMap_.get(index); } else { - return shortAbilityHashMapBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPairOrBuilder> - getShortAbilityHashMapOrBuilderList() { - if (shortAbilityHashMapBuilder_ != null) { - return shortAbilityHashMapBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(shortAbilityHashMap_); - } - } - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - public emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair.Builder addShortAbilityHashMapBuilder() { - return getShortAbilityHashMapFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair.getDefaultInstance()); - } - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - public emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair.Builder addShortAbilityHashMapBuilder( - int index) { - return getShortAbilityHashMapFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair.getDefaultInstance()); - } - /** - * <code>repeated .ShortAbilityHashPair shortAbilityHashMap = 27;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair.Builder> - getShortAbilityHashMapBuilderList() { - return getShortAbilityHashMapFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair, emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair.Builder, emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPairOrBuilder> - getShortAbilityHashMapFieldBuilder() { - if (shortAbilityHashMapBuilder_ == null) { - shortAbilityHashMapBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair, emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair.Builder, emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPairOrBuilder>( - shortAbilityHashMap_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - shortAbilityHashMap_ = null; - } - return shortAbilityHashMapBuilder_; - } - - private com.google.protobuf.ByteString scInfo_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>bytes scInfo = 28;</code> - * @return The scInfo. - */ - @java.lang.Override - public com.google.protobuf.ByteString getScInfo() { - return scInfo_; - } - /** - * <code>bytes scInfo = 28;</code> - * @param value The scInfo to set. - * @return This builder for chaining. - */ - public Builder setScInfo(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - scInfo_ = value; - onChanged(); - return this; - } - /** - * <code>bytes scInfo = 28;</code> - * @return This builder for chaining. - */ - public Builder clearScInfo() { - - scInfo_ = getDefaultInstance().getScInfo(); - onChanged(); - return this; - } - - private boolean isAudit_ ; - /** - * <code>bool isAudit = 29;</code> - * @return The isAudit. - */ - @java.lang.Override - public boolean getIsAudit() { - return isAudit_; - } - /** - * <code>bool isAudit = 29;</code> - * @param value The isAudit to set. - * @return This builder for chaining. - */ - public Builder setIsAudit(boolean value) { - - isAudit_ = value; - onChanged(); - return this; - } - /** - * <code>bool isAudit = 29;</code> - * @return This builder for chaining. - */ - public Builder clearIsAudit() { - - isAudit_ = false; - onChanged(); - return this; - } - - private boolean isScOpen_ ; - /** - * <code>bool isScOpen = 30;</code> - * @return The isScOpen. - */ - @java.lang.Override - public boolean getIsScOpen() { - return isScOpen_; - } - /** - * <code>bool isScOpen = 30;</code> - * @param value The isScOpen to set. - * @return This builder for chaining. - */ - public Builder setIsScOpen(boolean value) { - - isScOpen_ = value; - onChanged(); - return this; - } - /** - * <code>bool isScOpen = 30;</code> - * @return This builder for chaining. - */ - public Builder clearIsScOpen() { - - isScOpen_ = false; - onChanged(); - return this; - } - - private java.lang.Object registerCps_ = ""; - /** - * <code>string registerCps = 31;</code> - * @return The registerCps. - */ - public java.lang.String getRegisterCps() { - java.lang.Object ref = registerCps_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registerCps_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string registerCps = 31;</code> - * @return The bytes for registerCps. - */ - public com.google.protobuf.ByteString - getRegisterCpsBytes() { - java.lang.Object ref = registerCps_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - registerCps_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string registerCps = 31;</code> - * @param value The registerCps to set. - * @return This builder for chaining. - */ - public Builder setRegisterCps( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - registerCps_ = value; - onChanged(); - return this; - } - /** - * <code>string registerCps = 31;</code> - * @return This builder for chaining. - */ - public Builder clearRegisterCps() { - - registerCps_ = getDefaultInstance().getRegisterCps(); - onChanged(); - return this; - } - /** - * <code>string registerCps = 31;</code> - * @param value The bytes for registerCps to set. - * @return This builder for chaining. - */ - public Builder setRegisterCpsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - registerCps_ = value; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo> featureBlockInfoList_ = - java.util.Collections.emptyList(); - private void ensureFeatureBlockInfoListIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - featureBlockInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo>(featureBlockInfoList_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo, emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo.Builder, emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfoOrBuilder> featureBlockInfoListBuilder_; - - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - public java.util.List<emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo> getFeatureBlockInfoListList() { - if (featureBlockInfoListBuilder_ == null) { - return java.util.Collections.unmodifiableList(featureBlockInfoList_); - } else { - return featureBlockInfoListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - public int getFeatureBlockInfoListCount() { - if (featureBlockInfoListBuilder_ == null) { - return featureBlockInfoList_.size(); - } else { - return featureBlockInfoListBuilder_.getCount(); - } - } - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - public emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo getFeatureBlockInfoList(int index) { - if (featureBlockInfoListBuilder_ == null) { - return featureBlockInfoList_.get(index); - } else { - return featureBlockInfoListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - public Builder setFeatureBlockInfoList( - int index, emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo value) { - if (featureBlockInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFeatureBlockInfoListIsMutable(); - featureBlockInfoList_.set(index, value); - onChanged(); - } else { - featureBlockInfoListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - public Builder setFeatureBlockInfoList( - int index, emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo.Builder builderForValue) { - if (featureBlockInfoListBuilder_ == null) { - ensureFeatureBlockInfoListIsMutable(); - featureBlockInfoList_.set(index, builderForValue.build()); - onChanged(); - } else { - featureBlockInfoListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - public Builder addFeatureBlockInfoList(emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo value) { - if (featureBlockInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFeatureBlockInfoListIsMutable(); - featureBlockInfoList_.add(value); - onChanged(); - } else { - featureBlockInfoListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - public Builder addFeatureBlockInfoList( - int index, emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo value) { - if (featureBlockInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFeatureBlockInfoListIsMutable(); - featureBlockInfoList_.add(index, value); - onChanged(); - } else { - featureBlockInfoListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - public Builder addFeatureBlockInfoList( - emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo.Builder builderForValue) { - if (featureBlockInfoListBuilder_ == null) { - ensureFeatureBlockInfoListIsMutable(); - featureBlockInfoList_.add(builderForValue.build()); - onChanged(); - } else { - featureBlockInfoListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - public Builder addFeatureBlockInfoList( - int index, emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo.Builder builderForValue) { - if (featureBlockInfoListBuilder_ == null) { - ensureFeatureBlockInfoListIsMutable(); - featureBlockInfoList_.add(index, builderForValue.build()); - onChanged(); - } else { - featureBlockInfoListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - public Builder addAllFeatureBlockInfoList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo> values) { - if (featureBlockInfoListBuilder_ == null) { - ensureFeatureBlockInfoListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, featureBlockInfoList_); - onChanged(); - } else { - featureBlockInfoListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - public Builder clearFeatureBlockInfoList() { - if (featureBlockInfoListBuilder_ == null) { - featureBlockInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - featureBlockInfoListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - public Builder removeFeatureBlockInfoList(int index) { - if (featureBlockInfoListBuilder_ == null) { - ensureFeatureBlockInfoListIsMutable(); - featureBlockInfoList_.remove(index); - onChanged(); - } else { - featureBlockInfoListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - public emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo.Builder getFeatureBlockInfoListBuilder( - int index) { - return getFeatureBlockInfoListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - public emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfoOrBuilder getFeatureBlockInfoListOrBuilder( - int index) { - if (featureBlockInfoListBuilder_ == null) { - return featureBlockInfoList_.get(index); } else { - return featureBlockInfoListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfoOrBuilder> - getFeatureBlockInfoListOrBuilderList() { - if (featureBlockInfoListBuilder_ != null) { - return featureBlockInfoListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(featureBlockInfoList_); - } - } - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - public emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo.Builder addFeatureBlockInfoListBuilder() { - return getFeatureBlockInfoListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo.getDefaultInstance()); - } - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - public emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo.Builder addFeatureBlockInfoListBuilder( - int index) { - return getFeatureBlockInfoListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo.getDefaultInstance()); - } - /** - * <code>repeated .FeatureBlockInfo featureBlockInfoList = 32;</code> - */ - public java.util.List<emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo.Builder> - getFeatureBlockInfoListBuilderList() { - return getFeatureBlockInfoListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo, emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo.Builder, emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfoOrBuilder> - getFeatureBlockInfoListFieldBuilder() { - if (featureBlockInfoListBuilder_ == null) { - featureBlockInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo, emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo.Builder, emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfoOrBuilder>( - featureBlockInfoList_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - featureBlockInfoList_ = null; - } - return featureBlockInfoListBuilder_; - } - - private boolean isDataNeedRelogin_ ; - /** - * <code>bool isDataNeedRelogin = 33;</code> - * @return The isDataNeedRelogin. - */ - @java.lang.Override - public boolean getIsDataNeedRelogin() { - return isDataNeedRelogin_; - } - /** - * <code>bool isDataNeedRelogin = 33;</code> - * @param value The isDataNeedRelogin to set. - * @return This builder for chaining. - */ - public Builder setIsDataNeedRelogin(boolean value) { - - isDataNeedRelogin_ = value; - onChanged(); - return this; - } - /** - * <code>bool isDataNeedRelogin = 33;</code> - * @return This builder for chaining. - */ - public Builder clearIsDataNeedRelogin() { - - isDataNeedRelogin_ = false; - onChanged(); - return this; - } - - private java.lang.Object countryCode_ = ""; - /** - * <code>string countryCode = 34;</code> - * @return The countryCode. - */ - public java.lang.String getCountryCode() { - java.lang.Object ref = countryCode_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - countryCode_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string countryCode = 34;</code> - * @return The bytes for countryCode. - */ - public com.google.protobuf.ByteString - getCountryCodeBytes() { - java.lang.Object ref = countryCode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - countryCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string countryCode = 34;</code> - * @param value The countryCode to set. - * @return This builder for chaining. - */ - public Builder setCountryCode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - countryCode_ = value; - onChanged(); - return this; - } - /** - * <code>string countryCode = 34;</code> - * @return This builder for chaining. - */ - public Builder clearCountryCode() { - - countryCode_ = getDefaultInstance().getCountryCode(); - onChanged(); - return this; - } - /** - * <code>string countryCode = 34;</code> - * @param value The bytes for countryCode to set. - * @return This builder for chaining. - */ - public Builder setCountryCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - countryCode_ = value; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig nextResVersionConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig, emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.Builder, emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfigOrBuilder> nextResVersionConfigBuilder_; - /** - * <code>.ResVersionConfig nextResVersionConfig = 35;</code> - * @return Whether the nextResVersionConfig field is set. - */ - public boolean hasNextResVersionConfig() { - return nextResVersionConfigBuilder_ != null || nextResVersionConfig_ != null; - } - /** - * <code>.ResVersionConfig nextResVersionConfig = 35;</code> - * @return The nextResVersionConfig. - */ - public emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig getNextResVersionConfig() { - if (nextResVersionConfigBuilder_ == null) { - return nextResVersionConfig_ == null ? emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.getDefaultInstance() : nextResVersionConfig_; - } else { - return nextResVersionConfigBuilder_.getMessage(); - } - } - /** - * <code>.ResVersionConfig nextResVersionConfig = 35;</code> - */ - public Builder setNextResVersionConfig(emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig value) { - if (nextResVersionConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nextResVersionConfig_ = value; - onChanged(); - } else { - nextResVersionConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.ResVersionConfig nextResVersionConfig = 35;</code> - */ - public Builder setNextResVersionConfig( - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.Builder builderForValue) { - if (nextResVersionConfigBuilder_ == null) { - nextResVersionConfig_ = builderForValue.build(); - onChanged(); - } else { - nextResVersionConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.ResVersionConfig nextResVersionConfig = 35;</code> - */ - public Builder mergeNextResVersionConfig(emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig value) { - if (nextResVersionConfigBuilder_ == null) { - if (nextResVersionConfig_ != null) { - nextResVersionConfig_ = - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.newBuilder(nextResVersionConfig_).mergeFrom(value).buildPartial(); - } else { - nextResVersionConfig_ = value; - } - onChanged(); - } else { - nextResVersionConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.ResVersionConfig nextResVersionConfig = 35;</code> - */ - public Builder clearNextResVersionConfig() { - if (nextResVersionConfigBuilder_ == null) { - nextResVersionConfig_ = null; - onChanged(); - } else { - nextResVersionConfig_ = null; - nextResVersionConfigBuilder_ = null; - } - - return this; - } - /** - * <code>.ResVersionConfig nextResVersionConfig = 35;</code> - */ - public emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.Builder getNextResVersionConfigBuilder() { - - onChanged(); - return getNextResVersionConfigFieldBuilder().getBuilder(); - } - /** - * <code>.ResVersionConfig nextResVersionConfig = 35;</code> - */ - public emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfigOrBuilder getNextResVersionConfigOrBuilder() { - if (nextResVersionConfigBuilder_ != null) { - return nextResVersionConfigBuilder_.getMessageOrBuilder(); - } else { - return nextResVersionConfig_ == null ? - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.getDefaultInstance() : nextResVersionConfig_; - } - } - /** - * <code>.ResVersionConfig nextResVersionConfig = 35;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig, emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.Builder, emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfigOrBuilder> - getNextResVersionConfigFieldBuilder() { - if (nextResVersionConfigBuilder_ == null) { - nextResVersionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig, emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.Builder, emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfigOrBuilder>( - getNextResVersionConfig(), - getParentForChildren(), - isClean()); - nextResVersionConfig_ = null; - } - return nextResVersionConfigBuilder_; - } - - private java.lang.Object nextResourceUrl_ = ""; - /** - * <code>string nextResourceUrl = 36;</code> - * @return The nextResourceUrl. - */ - public java.lang.String getNextResourceUrl() { - java.lang.Object ref = nextResourceUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextResourceUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string nextResourceUrl = 36;</code> - * @return The bytes for nextResourceUrl. - */ - public com.google.protobuf.ByteString - getNextResourceUrlBytes() { - java.lang.Object ref = nextResourceUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextResourceUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string nextResourceUrl = 36;</code> - * @param value The nextResourceUrl to set. - * @return This builder for chaining. - */ - public Builder setNextResourceUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextResourceUrl_ = value; - onChanged(); - return this; - } - /** - * <code>string nextResourceUrl = 36;</code> - * @return This builder for chaining. - */ - public Builder clearNextResourceUrl() { - - nextResourceUrl_ = getDefaultInstance().getNextResourceUrl(); - onChanged(); - return this; - } - /** - * <code>string nextResourceUrl = 36;</code> - * @param value The bytes for nextResourceUrl to set. - * @return This builder for chaining. - */ - public Builder setNextResourceUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextResourceUrl_ = value; - onChanged(); - return this; - } - - private int targetHomeOwnerUid_ ; - /** - * <code>uint32 targetHomeOwnerUid = 37;</code> - * @return The targetHomeOwnerUid. - */ - @java.lang.Override - public int getTargetHomeOwnerUid() { - return targetHomeOwnerUid_; - } - /** - * <code>uint32 targetHomeOwnerUid = 37;</code> - * @param value The targetHomeOwnerUid to set. - * @return This builder for chaining. - */ - public Builder setTargetHomeOwnerUid(int value) { - - targetHomeOwnerUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 targetHomeOwnerUid = 37;</code> - * @return This builder for chaining. - */ - public Builder clearTargetHomeOwnerUid() { - - targetHomeOwnerUid_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerLoginRsp) - } - - // @@protoc_insertion_point(class_scope:PlayerLoginRsp) - private static final emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp(); - } - - public static emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PlayerLoginRsp> - PARSER = new com.google.protobuf.AbstractParser<PlayerLoginRsp>() { - @java.lang.Override - public PlayerLoginRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerLoginRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PlayerLoginRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PlayerLoginRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerLoginRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerLoginRsp_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerLoginRsp_AbilityHashMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerLoginRsp_AbilityHashMapEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerLoginRsp_BlockInfoMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerLoginRsp_BlockInfoMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024PlayerLoginRsp.proto\032\017BlockInfo.proto\032" + - "\026FeatureBlockInfo.proto\032\026ResVersionConfi" + - "g.proto\032\032ShortAbilityHashPair.proto\"\353\007\n\016" + - "PlayerLoginRsp\022\017\n\007retcode\030\001 \001(\005\022\022\n\nplaye" + - "rData\030\002 \001(\014\022\023\n\013isNewPlayer\030\003 \001(\010\022\021\n\ttarg" + - "etUid\030\004 \001(\r\022\021\n\tloginRand\030\005 \001(\004\022\030\n\020isUseA" + - "bilityHash\030\006 \001(\010\022\027\n\017abilityHashCode\030\007 \001(" + - "\005\022;\n\016abilityHashMap\030\010 \003(\0132#.PlayerLoginR" + - "sp.AbilityHashMapEntry\022\031\n\021clientDataVers" + - "ion\030\t \001(\r\022\021\n\tisRelogin\030\013 \001(\010\022 \n\030clientSi" + - "lenceDataVersion\030\r \001(\r\022\017\n\007gameBiz\030\016 \001(\t\022" + - "\031\n\021playerDataVersion\030\017 \001(\r\022\021\n\tclientMd5\030" + - "\020 \001(\t\022\030\n\020clientSilenceMd5\030\021 \001(\t\022+\n\020resVe" + - "rsionConfig\030\024 \001(\0132\021.ResVersionConfig\0227\n\014" + - "blockInfoMap\030\025 \003(\0132!.PlayerLoginRsp.Bloc" + - "kInfoMapEntry\022\033\n\023clientVersionSuffix\030\030 \001" + - "(\t\022\"\n\032clientSilenceVersionSuffix\030\031 \001(\t\0222" + - "\n\023shortAbilityHashMap\030\033 \003(\0132\025.ShortAbili" + - "tyHashPair\022\016\n\006scInfo\030\034 \001(\014\022\017\n\007isAudit\030\035 " + - "\001(\010\022\020\n\010isScOpen\030\036 \001(\010\022\023\n\013registerCps\030\037 \001" + - "(\t\022/\n\024featureBlockInfoList\030 \003(\0132\021.Featu" + - "reBlockInfo\022\031\n\021isDataNeedRelogin\030! \001(\010\022\023" + - "\n\013countryCode\030\" \001(\t\022/\n\024nextResVersionCon" + - "fig\030# \001(\0132\021.ResVersionConfig\022\027\n\017nextReso" + - "urceUrl\030$ \001(\t\022\032\n\022targetHomeOwnerUid\030% \001(" + - "\r\0325\n\023AbilityHashMapEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + - "\005value\030\002 \001(\005:\0028\001\032?\n\021BlockInfoMapEntry\022\013\n" + - "\003key\030\001 \001(\r\022\031\n\005value\030\002 \001(\0132\n.BlockInfo:\0028" + - "\001B\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.BlockInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.ResVersionConfigOuterClass.getDescriptor(), - emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.getDescriptor(), - }); - internal_static_PlayerLoginRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerLoginRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerLoginRsp_descriptor, - new java.lang.String[] { "Retcode", "PlayerData", "IsNewPlayer", "TargetUid", "LoginRand", "IsUseAbilityHash", "AbilityHashCode", "AbilityHashMap", "ClientDataVersion", "IsRelogin", "ClientSilenceDataVersion", "GameBiz", "PlayerDataVersion", "ClientMd5", "ClientSilenceMd5", "ResVersionConfig", "BlockInfoMap", "ClientVersionSuffix", "ClientSilenceVersionSuffix", "ShortAbilityHashMap", "ScInfo", "IsAudit", "IsScOpen", "RegisterCps", "FeatureBlockInfoList", "IsDataNeedRelogin", "CountryCode", "NextResVersionConfig", "NextResourceUrl", "TargetHomeOwnerUid", }); - internal_static_PlayerLoginRsp_AbilityHashMapEntry_descriptor = - internal_static_PlayerLoginRsp_descriptor.getNestedTypes().get(0); - internal_static_PlayerLoginRsp_AbilityHashMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerLoginRsp_AbilityHashMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_PlayerLoginRsp_BlockInfoMapEntry_descriptor = - internal_static_PlayerLoginRsp_descriptor.getNestedTypes().get(1); - internal_static_PlayerLoginRsp_BlockInfoMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerLoginRsp_BlockInfoMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - emu.grasscutter.net.proto.BlockInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.ResVersionConfigOuterClass.getDescriptor(); - emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PlayerPropNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PlayerPropNotifyOuterClass.java deleted file mode 100644 index 8c613c5d2..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PlayerPropNotifyOuterClass.java +++ /dev/null @@ -1,802 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerPropNotify.proto - -package emu.grasscutter.net.proto; - -public final class PlayerPropNotifyOuterClass { - private PlayerPropNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerPropNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerPropNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>map<uint32, .PropValue> propMap = 1;</code> - */ - int getPropMapCount(); - /** - * <code>map<uint32, .PropValue> propMap = 1;</code> - */ - boolean containsPropMap( - int key); - /** - * Use {@link #getPropMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - getPropMap(); - /** - * <code>map<uint32, .PropValue> propMap = 1;</code> - */ - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - getPropMapMap(); - /** - * <code>map<uint32, .PropValue> propMap = 1;</code> - */ - - emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrDefault( - int key, - emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue); - /** - * <code>map<uint32, .PropValue> propMap = 1;</code> - */ - - emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrThrow( - int key); - } - /** - * Protobuf type {@code PlayerPropNotify} - */ - public static final class PlayerPropNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerPropNotify) - PlayerPropNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerPropNotify.newBuilder() to construct. - private PlayerPropNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PlayerPropNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerPropNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerPropNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - propMap_ = com.google.protobuf.MapField.newMapField( - PropMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - propMap__ = input.readMessage( - PropMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - propMap_.getMutableMap().put( - propMap__.getKey(), propMap__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.internal_static_PlayerPropNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.internal_static_PlayerPropNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify.class, emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify.Builder.class); - } - - public static final int PROPMAP_FIELD_NUMBER = 1; - private static final class PropMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue>newDefaultInstance( - emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.internal_static_PlayerPropNotify_PropMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - emu.grasscutter.net.proto.PropValueOuterClass.PropValue.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> propMap_; - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - internalGetPropMap() { - if (propMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropMapDefaultEntryHolder.defaultEntry); - } - return propMap_; - } - - public int getPropMapCount() { - return internalGetPropMap().getMap().size(); - } - /** - * <code>map<uint32, .PropValue> propMap = 1;</code> - */ - - @java.lang.Override - public boolean containsPropMap( - int key) { - - return internalGetPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> getPropMap() { - return getPropMapMap(); - } - /** - * <code>map<uint32, .PropValue> propMap = 1;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> getPropMapMap() { - return internalGetPropMap().getMap(); - } - /** - * <code>map<uint32, .PropValue> propMap = 1;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrDefault( - int key, - emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> map = - internalGetPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, .PropValue> propMap = 1;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> map = - internalGetPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetPropMap(), - PropMapDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> entry - : internalGetPropMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - propMap__ = PropMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, propMap__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify other = (emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify) obj; - - if (!internalGetPropMap().equals( - other.internalGetPropMap())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetPropMap().getMap().isEmpty()) { - hash = (37 * hash) + PROPMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetPropMap().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PlayerPropNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerPropNotify) - emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.internal_static_PlayerPropNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutablePropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.internal_static_PlayerPropNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify.class, emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutablePropMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.internal_static_PlayerPropNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify build() { - emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify buildPartial() { - emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify result = new emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify(this); - int from_bitField0_ = bitField0_; - result.propMap_ = internalGetPropMap(); - result.propMap_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify) { - return mergeFrom((emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify other) { - if (other == emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify.getDefaultInstance()) return this; - internalGetMutablePropMap().mergeFrom( - other.internalGetPropMap()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> propMap_; - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - internalGetPropMap() { - if (propMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropMapDefaultEntryHolder.defaultEntry); - } - return propMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - internalGetMutablePropMap() { - onChanged();; - if (propMap_ == null) { - propMap_ = com.google.protobuf.MapField.newMapField( - PropMapDefaultEntryHolder.defaultEntry); - } - if (!propMap_.isMutable()) { - propMap_ = propMap_.copy(); - } - return propMap_; - } - - public int getPropMapCount() { - return internalGetPropMap().getMap().size(); - } - /** - * <code>map<uint32, .PropValue> propMap = 1;</code> - */ - - @java.lang.Override - public boolean containsPropMap( - int key) { - - return internalGetPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> getPropMap() { - return getPropMapMap(); - } - /** - * <code>map<uint32, .PropValue> propMap = 1;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> getPropMapMap() { - return internalGetPropMap().getMap(); - } - /** - * <code>map<uint32, .PropValue> propMap = 1;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrDefault( - int key, - emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> map = - internalGetPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, .PropValue> propMap = 1;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> map = - internalGetPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearPropMap() { - internalGetMutablePropMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, .PropValue> propMap = 1;</code> - */ - - public Builder removePropMap( - int key) { - - internalGetMutablePropMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - getMutablePropMap() { - return internalGetMutablePropMap().getMutableMap(); - } - /** - * <code>map<uint32, .PropValue> propMap = 1;</code> - */ - public Builder putPropMap( - int key, - emu.grasscutter.net.proto.PropValueOuterClass.PropValue value) { - - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutablePropMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, .PropValue> propMap = 1;</code> - */ - - public Builder putAllPropMap( - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> values) { - internalGetMutablePropMap().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerPropNotify) - } - - // @@protoc_insertion_point(class_scope:PlayerPropNotify) - private static final emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify(); - } - - public static emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PlayerPropNotify> - PARSER = new com.google.protobuf.AbstractParser<PlayerPropNotify>() { - @java.lang.Override - public PlayerPropNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerPropNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PlayerPropNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PlayerPropNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerPropNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerPropNotify_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerPropNotify_PropMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerPropNotify_PropMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026PlayerPropNotify.proto\032\017PropValue.prot" + - "o\"\177\n\020PlayerPropNotify\022/\n\007propMap\030\001 \003(\0132\036" + - ".PlayerPropNotify.PropMapEntry\032:\n\014PropMa" + - "pEntry\022\013\n\003key\030\001 \001(\r\022\031\n\005value\030\002 \001(\0132\n.Pro" + - "pValue:\0028\001B\033\n\031emu.grasscutter.net.protob" + - "\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.PropValueOuterClass.getDescriptor(), - }); - internal_static_PlayerPropNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerPropNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerPropNotify_descriptor, - new java.lang.String[] { "PropMap", }); - internal_static_PlayerPropNotify_PropMapEntry_descriptor = - internal_static_PlayerPropNotify_descriptor.getNestedTypes().get(0); - internal_static_PlayerPropNotify_PropMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerPropNotify_PropMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - emu.grasscutter.net.proto.PropValueOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PlayerRTTInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PlayerRTTInfoOuterClass.java deleted file mode 100644 index 5fce8f9ab..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PlayerRTTInfoOuterClass.java +++ /dev/null @@ -1,606 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerRTTInfo.proto - -package emu.grasscutter.net.proto; - -public final class PlayerRTTInfoOuterClass { - private PlayerRTTInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerRTTInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerRTTInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 uid = 1;</code> - * @return The uid. - */ - int getUid(); - - /** - * <code>uint32 rtt = 2;</code> - * @return The rtt. - */ - int getRtt(); - } - /** - * Protobuf type {@code PlayerRTTInfo} - */ - public static final class PlayerRTTInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerRTTInfo) - PlayerRTTInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerRTTInfo.newBuilder() to construct. - private PlayerRTTInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PlayerRTTInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerRTTInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerRTTInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - uid_ = input.readUInt32(); - break; - } - case 16: { - - rtt_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.internal_static_PlayerRTTInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.internal_static_PlayerRTTInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo.class, emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo.Builder.class); - } - - public static final int UID_FIELD_NUMBER = 1; - private int uid_; - /** - * <code>uint32 uid = 1;</code> - * @return The uid. - */ - @java.lang.Override - public int getUid() { - return uid_; - } - - public static final int RTT_FIELD_NUMBER = 2; - private int rtt_; - /** - * <code>uint32 rtt = 2;</code> - * @return The rtt. - */ - @java.lang.Override - public int getRtt() { - return rtt_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (uid_ != 0) { - output.writeUInt32(1, uid_); - } - if (rtt_ != 0) { - output.writeUInt32(2, rtt_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (uid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, uid_); - } - if (rtt_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, rtt_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo other = (emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo) obj; - - if (getUid() - != other.getUid()) return false; - if (getRtt() - != other.getRtt()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + UID_FIELD_NUMBER; - hash = (53 * hash) + getUid(); - hash = (37 * hash) + RTT_FIELD_NUMBER; - hash = (53 * hash) + getRtt(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PlayerRTTInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerRTTInfo) - emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.internal_static_PlayerRTTInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.internal_static_PlayerRTTInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo.class, emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - uid_ = 0; - - rtt_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.internal_static_PlayerRTTInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo build() { - emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo buildPartial() { - emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo result = new emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo(this); - result.uid_ = uid_; - result.rtt_ = rtt_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo) { - return mergeFrom((emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo other) { - if (other == emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo.getDefaultInstance()) return this; - if (other.getUid() != 0) { - setUid(other.getUid()); - } - if (other.getRtt() != 0) { - setRtt(other.getRtt()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int uid_ ; - /** - * <code>uint32 uid = 1;</code> - * @return The uid. - */ - @java.lang.Override - public int getUid() { - return uid_; - } - /** - * <code>uint32 uid = 1;</code> - * @param value The uid to set. - * @return This builder for chaining. - */ - public Builder setUid(int value) { - - uid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 uid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearUid() { - - uid_ = 0; - onChanged(); - return this; - } - - private int rtt_ ; - /** - * <code>uint32 rtt = 2;</code> - * @return The rtt. - */ - @java.lang.Override - public int getRtt() { - return rtt_; - } - /** - * <code>uint32 rtt = 2;</code> - * @param value The rtt to set. - * @return This builder for chaining. - */ - public Builder setRtt(int value) { - - rtt_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 rtt = 2;</code> - * @return This builder for chaining. - */ - public Builder clearRtt() { - - rtt_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerRTTInfo) - } - - // @@protoc_insertion_point(class_scope:PlayerRTTInfo) - private static final emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo(); - } - - public static emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PlayerRTTInfo> - PARSER = new com.google.protobuf.AbstractParser<PlayerRTTInfo>() { - @java.lang.Override - public PlayerRTTInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerRTTInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PlayerRTTInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PlayerRTTInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerRTTInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerRTTInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023PlayerRTTInfo.proto\")\n\rPlayerRTTInfo\022\013" + - "\n\003uid\030\001 \001(\r\022\013\n\003rtt\030\002 \001(\rB\033\n\031emu.grasscut" + - "ter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_PlayerRTTInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerRTTInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerRTTInfo_descriptor, - new java.lang.String[] { "Uid", "Rtt", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PlayerSetPauseReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PlayerSetPauseReqOuterClass.java deleted file mode 100644 index 1cb93bc68..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PlayerSetPauseReqOuterClass.java +++ /dev/null @@ -1,537 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerSetPauseReq.proto - -package emu.grasscutter.net.proto; - -public final class PlayerSetPauseReqOuterClass { - private PlayerSetPauseReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerSetPauseReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerSetPauseReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>bool isPaused = 1;</code> - * @return The isPaused. - */ - boolean getIsPaused(); - } - /** - * Protobuf type {@code PlayerSetPauseReq} - */ - public static final class PlayerSetPauseReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerSetPauseReq) - PlayerSetPauseReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerSetPauseReq.newBuilder() to construct. - private PlayerSetPauseReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PlayerSetPauseReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerSetPauseReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerSetPauseReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - isPaused_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.internal_static_PlayerSetPauseReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.internal_static_PlayerSetPauseReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq.class, emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq.Builder.class); - } - - public static final int ISPAUSED_FIELD_NUMBER = 1; - private boolean isPaused_; - /** - * <code>bool isPaused = 1;</code> - * @return The isPaused. - */ - @java.lang.Override - public boolean getIsPaused() { - return isPaused_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (isPaused_ != false) { - output.writeBool(1, isPaused_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (isPaused_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, isPaused_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq other = (emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq) obj; - - if (getIsPaused() - != other.getIsPaused()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ISPAUSED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsPaused()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PlayerSetPauseReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerSetPauseReq) - emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.internal_static_PlayerSetPauseReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.internal_static_PlayerSetPauseReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq.class, emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - isPaused_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.internal_static_PlayerSetPauseReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq build() { - emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq buildPartial() { - emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq result = new emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq(this); - result.isPaused_ = isPaused_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq) { - return mergeFrom((emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq other) { - if (other == emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq.getDefaultInstance()) return this; - if (other.getIsPaused() != false) { - setIsPaused(other.getIsPaused()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean isPaused_ ; - /** - * <code>bool isPaused = 1;</code> - * @return The isPaused. - */ - @java.lang.Override - public boolean getIsPaused() { - return isPaused_; - } - /** - * <code>bool isPaused = 1;</code> - * @param value The isPaused to set. - * @return This builder for chaining. - */ - public Builder setIsPaused(boolean value) { - - isPaused_ = value; - onChanged(); - return this; - } - /** - * <code>bool isPaused = 1;</code> - * @return This builder for chaining. - */ - public Builder clearIsPaused() { - - isPaused_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerSetPauseReq) - } - - // @@protoc_insertion_point(class_scope:PlayerSetPauseReq) - private static final emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq(); - } - - public static emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PlayerSetPauseReq> - PARSER = new com.google.protobuf.AbstractParser<PlayerSetPauseReq>() { - @java.lang.Override - public PlayerSetPauseReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerSetPauseReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PlayerSetPauseReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PlayerSetPauseReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerSetPauseReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerSetPauseReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027PlayerSetPauseReq.proto\"%\n\021PlayerSetPa" + - "useReq\022\020\n\010isPaused\030\001 \001(\010B\033\n\031emu.grasscut" + - "ter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_PlayerSetPauseReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerSetPauseReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerSetPauseReq_descriptor, - new java.lang.String[] { "IsPaused", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PlayerStoreNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PlayerStoreNotifyOuterClass.java deleted file mode 100644 index 6eb4f5bbc..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PlayerStoreNotifyOuterClass.java +++ /dev/null @@ -1,1024 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerStoreNotify.proto - -package emu.grasscutter.net.proto; - -public final class PlayerStoreNotifyOuterClass { - private PlayerStoreNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerStoreNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerStoreNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.StoreType storeType = 1;</code> - * @return The enum numeric value on the wire for storeType. - */ - int getStoreTypeValue(); - /** - * <code>.StoreType storeType = 1;</code> - * @return The storeType. - */ - emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType getStoreType(); - - /** - * <code>repeated .Item itemList = 2;</code> - */ - java.util.List<emu.grasscutter.net.proto.ItemOuterClass.Item> - getItemListList(); - /** - * <code>repeated .Item itemList = 2;</code> - */ - emu.grasscutter.net.proto.ItemOuterClass.Item getItemList(int index); - /** - * <code>repeated .Item itemList = 2;</code> - */ - int getItemListCount(); - /** - * <code>repeated .Item itemList = 2;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder> - getItemListOrBuilderList(); - /** - * <code>repeated .Item itemList = 2;</code> - */ - emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder getItemListOrBuilder( - int index); - - /** - * <code>uint32 weightLimit = 3;</code> - * @return The weightLimit. - */ - int getWeightLimit(); - } - /** - * Protobuf type {@code PlayerStoreNotify} - */ - public static final class PlayerStoreNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerStoreNotify) - PlayerStoreNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerStoreNotify.newBuilder() to construct. - private PlayerStoreNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PlayerStoreNotify() { - storeType_ = 0; - itemList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerStoreNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerStoreNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - storeType_ = rawValue; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - itemList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemOuterClass.Item>(); - mutable_bitField0_ |= 0x00000001; - } - itemList_.add( - input.readMessage(emu.grasscutter.net.proto.ItemOuterClass.Item.parser(), extensionRegistry)); - break; - } - case 24: { - - weightLimit_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - itemList_ = java.util.Collections.unmodifiableList(itemList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.internal_static_PlayerStoreNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.internal_static_PlayerStoreNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify.class, emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify.Builder.class); - } - - public static final int STORETYPE_FIELD_NUMBER = 1; - private int storeType_; - /** - * <code>.StoreType storeType = 1;</code> - * @return The enum numeric value on the wire for storeType. - */ - @java.lang.Override public int getStoreTypeValue() { - return storeType_; - } - /** - * <code>.StoreType storeType = 1;</code> - * @return The storeType. - */ - @java.lang.Override public emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType getStoreType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType result = emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType.valueOf(storeType_); - return result == null ? emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType.UNRECOGNIZED : result; - } - - public static final int ITEMLIST_FIELD_NUMBER = 2; - private java.util.List<emu.grasscutter.net.proto.ItemOuterClass.Item> itemList_; - /** - * <code>repeated .Item itemList = 2;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.ItemOuterClass.Item> getItemListList() { - return itemList_; - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder> - getItemListOrBuilderList() { - return itemList_; - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - @java.lang.Override - public int getItemListCount() { - return itemList_.size(); - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemOuterClass.Item getItemList(int index) { - return itemList_.get(index); - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder getItemListOrBuilder( - int index) { - return itemList_.get(index); - } - - public static final int WEIGHTLIMIT_FIELD_NUMBER = 3; - private int weightLimit_; - /** - * <code>uint32 weightLimit = 3;</code> - * @return The weightLimit. - */ - @java.lang.Override - public int getWeightLimit() { - return weightLimit_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (storeType_ != emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType.StoreNone.getNumber()) { - output.writeEnum(1, storeType_); - } - for (int i = 0; i < itemList_.size(); i++) { - output.writeMessage(2, itemList_.get(i)); - } - if (weightLimit_ != 0) { - output.writeUInt32(3, weightLimit_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (storeType_ != emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType.StoreNone.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, storeType_); - } - for (int i = 0; i < itemList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, itemList_.get(i)); - } - if (weightLimit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, weightLimit_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify other = (emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify) obj; - - if (storeType_ != other.storeType_) return false; - if (!getItemListList() - .equals(other.getItemListList())) return false; - if (getWeightLimit() - != other.getWeightLimit()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STORETYPE_FIELD_NUMBER; - hash = (53 * hash) + storeType_; - if (getItemListCount() > 0) { - hash = (37 * hash) + ITEMLIST_FIELD_NUMBER; - hash = (53 * hash) + getItemListList().hashCode(); - } - hash = (37 * hash) + WEIGHTLIMIT_FIELD_NUMBER; - hash = (53 * hash) + getWeightLimit(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PlayerStoreNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerStoreNotify) - emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.internal_static_PlayerStoreNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.internal_static_PlayerStoreNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify.class, emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getItemListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - storeType_ = 0; - - if (itemListBuilder_ == null) { - itemList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - itemListBuilder_.clear(); - } - weightLimit_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.internal_static_PlayerStoreNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify build() { - emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify buildPartial() { - emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify result = new emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify(this); - int from_bitField0_ = bitField0_; - result.storeType_ = storeType_; - if (itemListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - itemList_ = java.util.Collections.unmodifiableList(itemList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.itemList_ = itemList_; - } else { - result.itemList_ = itemListBuilder_.build(); - } - result.weightLimit_ = weightLimit_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify) { - return mergeFrom((emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify other) { - if (other == emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify.getDefaultInstance()) return this; - if (other.storeType_ != 0) { - setStoreTypeValue(other.getStoreTypeValue()); - } - if (itemListBuilder_ == null) { - if (!other.itemList_.isEmpty()) { - if (itemList_.isEmpty()) { - itemList_ = other.itemList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureItemListIsMutable(); - itemList_.addAll(other.itemList_); - } - onChanged(); - } - } else { - if (!other.itemList_.isEmpty()) { - if (itemListBuilder_.isEmpty()) { - itemListBuilder_.dispose(); - itemListBuilder_ = null; - itemList_ = other.itemList_; - bitField0_ = (bitField0_ & ~0x00000001); - itemListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getItemListFieldBuilder() : null; - } else { - itemListBuilder_.addAllMessages(other.itemList_); - } - } - } - if (other.getWeightLimit() != 0) { - setWeightLimit(other.getWeightLimit()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int storeType_ = 0; - /** - * <code>.StoreType storeType = 1;</code> - * @return The enum numeric value on the wire for storeType. - */ - @java.lang.Override public int getStoreTypeValue() { - return storeType_; - } - /** - * <code>.StoreType storeType = 1;</code> - * @param value The enum numeric value on the wire for storeType to set. - * @return This builder for chaining. - */ - public Builder setStoreTypeValue(int value) { - - storeType_ = value; - onChanged(); - return this; - } - /** - * <code>.StoreType storeType = 1;</code> - * @return The storeType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType getStoreType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType result = emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType.valueOf(storeType_); - return result == null ? emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType.UNRECOGNIZED : result; - } - /** - * <code>.StoreType storeType = 1;</code> - * @param value The storeType to set. - * @return This builder for chaining. - */ - public Builder setStoreType(emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType value) { - if (value == null) { - throw new NullPointerException(); - } - - storeType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.StoreType storeType = 1;</code> - * @return This builder for chaining. - */ - public Builder clearStoreType() { - - storeType_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.ItemOuterClass.Item> itemList_ = - java.util.Collections.emptyList(); - private void ensureItemListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - itemList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemOuterClass.Item>(itemList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemOuterClass.Item, emu.grasscutter.net.proto.ItemOuterClass.Item.Builder, emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder> itemListBuilder_; - - /** - * <code>repeated .Item itemList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemOuterClass.Item> getItemListList() { - if (itemListBuilder_ == null) { - return java.util.Collections.unmodifiableList(itemList_); - } else { - return itemListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public int getItemListCount() { - if (itemListBuilder_ == null) { - return itemList_.size(); - } else { - return itemListBuilder_.getCount(); - } - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public emu.grasscutter.net.proto.ItemOuterClass.Item getItemList(int index) { - if (itemListBuilder_ == null) { - return itemList_.get(index); - } else { - return itemListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public Builder setItemList( - int index, emu.grasscutter.net.proto.ItemOuterClass.Item value) { - if (itemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemListIsMutable(); - itemList_.set(index, value); - onChanged(); - } else { - itemListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public Builder setItemList( - int index, emu.grasscutter.net.proto.ItemOuterClass.Item.Builder builderForValue) { - if (itemListBuilder_ == null) { - ensureItemListIsMutable(); - itemList_.set(index, builderForValue.build()); - onChanged(); - } else { - itemListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public Builder addItemList(emu.grasscutter.net.proto.ItemOuterClass.Item value) { - if (itemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemListIsMutable(); - itemList_.add(value); - onChanged(); - } else { - itemListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public Builder addItemList( - int index, emu.grasscutter.net.proto.ItemOuterClass.Item value) { - if (itemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemListIsMutable(); - itemList_.add(index, value); - onChanged(); - } else { - itemListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public Builder addItemList( - emu.grasscutter.net.proto.ItemOuterClass.Item.Builder builderForValue) { - if (itemListBuilder_ == null) { - ensureItemListIsMutable(); - itemList_.add(builderForValue.build()); - onChanged(); - } else { - itemListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public Builder addItemList( - int index, emu.grasscutter.net.proto.ItemOuterClass.Item.Builder builderForValue) { - if (itemListBuilder_ == null) { - ensureItemListIsMutable(); - itemList_.add(index, builderForValue.build()); - onChanged(); - } else { - itemListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public Builder addAllItemList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.ItemOuterClass.Item> values) { - if (itemListBuilder_ == null) { - ensureItemListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, itemList_); - onChanged(); - } else { - itemListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public Builder clearItemList() { - if (itemListBuilder_ == null) { - itemList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - itemListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public Builder removeItemList(int index) { - if (itemListBuilder_ == null) { - ensureItemListIsMutable(); - itemList_.remove(index); - onChanged(); - } else { - itemListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public emu.grasscutter.net.proto.ItemOuterClass.Item.Builder getItemListBuilder( - int index) { - return getItemListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder getItemListOrBuilder( - int index) { - if (itemListBuilder_ == null) { - return itemList_.get(index); } else { - return itemListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder> - getItemListOrBuilderList() { - if (itemListBuilder_ != null) { - return itemListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(itemList_); - } - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public emu.grasscutter.net.proto.ItemOuterClass.Item.Builder addItemListBuilder() { - return getItemListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ItemOuterClass.Item.getDefaultInstance()); - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public emu.grasscutter.net.proto.ItemOuterClass.Item.Builder addItemListBuilder( - int index) { - return getItemListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ItemOuterClass.Item.getDefaultInstance()); - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemOuterClass.Item.Builder> - getItemListBuilderList() { - return getItemListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemOuterClass.Item, emu.grasscutter.net.proto.ItemOuterClass.Item.Builder, emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder> - getItemListFieldBuilder() { - if (itemListBuilder_ == null) { - itemListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemOuterClass.Item, emu.grasscutter.net.proto.ItemOuterClass.Item.Builder, emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder>( - itemList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - itemList_ = null; - } - return itemListBuilder_; - } - - private int weightLimit_ ; - /** - * <code>uint32 weightLimit = 3;</code> - * @return The weightLimit. - */ - @java.lang.Override - public int getWeightLimit() { - return weightLimit_; - } - /** - * <code>uint32 weightLimit = 3;</code> - * @param value The weightLimit to set. - * @return This builder for chaining. - */ - public Builder setWeightLimit(int value) { - - weightLimit_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 weightLimit = 3;</code> - * @return This builder for chaining. - */ - public Builder clearWeightLimit() { - - weightLimit_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerStoreNotify) - } - - // @@protoc_insertion_point(class_scope:PlayerStoreNotify) - private static final emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify(); - } - - public static emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PlayerStoreNotify> - PARSER = new com.google.protobuf.AbstractParser<PlayerStoreNotify>() { - @java.lang.Override - public PlayerStoreNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerStoreNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PlayerStoreNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PlayerStoreNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerStoreNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerStoreNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027PlayerStoreNotify.proto\032\nItem.proto\032\017S" + - "toreType.proto\"`\n\021PlayerStoreNotify\022\035\n\ts" + - "toreType\030\001 \001(\0162\n.StoreType\022\027\n\010itemList\030\002" + - " \003(\0132\005.Item\022\023\n\013weightLimit\030\003 \001(\rB\033\n\031emu." + - "grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ItemOuterClass.getDescriptor(), - emu.grasscutter.net.proto.StoreTypeOuterClass.getDescriptor(), - }); - internal_static_PlayerStoreNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerStoreNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerStoreNotify_descriptor, - new java.lang.String[] { "StoreType", "ItemList", "WeightLimit", }); - emu.grasscutter.net.proto.ItemOuterClass.getDescriptor(); - emu.grasscutter.net.proto.StoreTypeOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PlayerTimeNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PlayerTimeNotifyOuterClass.java deleted file mode 100644 index 33a06cc67..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PlayerTimeNotifyOuterClass.java +++ /dev/null @@ -1,680 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerTimeNotify.proto - -package emu.grasscutter.net.proto; - -public final class PlayerTimeNotifyOuterClass { - private PlayerTimeNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlayerTimeNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerTimeNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>bool isPaused = 1;</code> - * @return The isPaused. - */ - boolean getIsPaused(); - - /** - * <code>uint64 playerTime = 2;</code> - * @return The playerTime. - */ - long getPlayerTime(); - - /** - * <code>uint64 serverTime = 3;</code> - * @return The serverTime. - */ - long getServerTime(); - } - /** - * Protobuf type {@code PlayerTimeNotify} - */ - public static final class PlayerTimeNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PlayerTimeNotify) - PlayerTimeNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlayerTimeNotify.newBuilder() to construct. - private PlayerTimeNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PlayerTimeNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlayerTimeNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerTimeNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - isPaused_ = input.readBool(); - break; - } - case 16: { - - playerTime_ = input.readUInt64(); - break; - } - case 24: { - - serverTime_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.internal_static_PlayerTimeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.internal_static_PlayerTimeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify.class, emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify.Builder.class); - } - - public static final int ISPAUSED_FIELD_NUMBER = 1; - private boolean isPaused_; - /** - * <code>bool isPaused = 1;</code> - * @return The isPaused. - */ - @java.lang.Override - public boolean getIsPaused() { - return isPaused_; - } - - public static final int PLAYERTIME_FIELD_NUMBER = 2; - private long playerTime_; - /** - * <code>uint64 playerTime = 2;</code> - * @return The playerTime. - */ - @java.lang.Override - public long getPlayerTime() { - return playerTime_; - } - - public static final int SERVERTIME_FIELD_NUMBER = 3; - private long serverTime_; - /** - * <code>uint64 serverTime = 3;</code> - * @return The serverTime. - */ - @java.lang.Override - public long getServerTime() { - return serverTime_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (isPaused_ != false) { - output.writeBool(1, isPaused_); - } - if (playerTime_ != 0L) { - output.writeUInt64(2, playerTime_); - } - if (serverTime_ != 0L) { - output.writeUInt64(3, serverTime_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (isPaused_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, isPaused_); - } - if (playerTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, playerTime_); - } - if (serverTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, serverTime_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify other = (emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify) obj; - - if (getIsPaused() - != other.getIsPaused()) return false; - if (getPlayerTime() - != other.getPlayerTime()) return false; - if (getServerTime() - != other.getServerTime()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ISPAUSED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsPaused()); - hash = (37 * hash) + PLAYERTIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPlayerTime()); - hash = (37 * hash) + SERVERTIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getServerTime()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PlayerTimeNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerTimeNotify) - emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.internal_static_PlayerTimeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.internal_static_PlayerTimeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify.class, emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - isPaused_ = false; - - playerTime_ = 0L; - - serverTime_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.internal_static_PlayerTimeNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify build() { - emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify buildPartial() { - emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify result = new emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify(this); - result.isPaused_ = isPaused_; - result.playerTime_ = playerTime_; - result.serverTime_ = serverTime_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify) { - return mergeFrom((emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify other) { - if (other == emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify.getDefaultInstance()) return this; - if (other.getIsPaused() != false) { - setIsPaused(other.getIsPaused()); - } - if (other.getPlayerTime() != 0L) { - setPlayerTime(other.getPlayerTime()); - } - if (other.getServerTime() != 0L) { - setServerTime(other.getServerTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean isPaused_ ; - /** - * <code>bool isPaused = 1;</code> - * @return The isPaused. - */ - @java.lang.Override - public boolean getIsPaused() { - return isPaused_; - } - /** - * <code>bool isPaused = 1;</code> - * @param value The isPaused to set. - * @return This builder for chaining. - */ - public Builder setIsPaused(boolean value) { - - isPaused_ = value; - onChanged(); - return this; - } - /** - * <code>bool isPaused = 1;</code> - * @return This builder for chaining. - */ - public Builder clearIsPaused() { - - isPaused_ = false; - onChanged(); - return this; - } - - private long playerTime_ ; - /** - * <code>uint64 playerTime = 2;</code> - * @return The playerTime. - */ - @java.lang.Override - public long getPlayerTime() { - return playerTime_; - } - /** - * <code>uint64 playerTime = 2;</code> - * @param value The playerTime to set. - * @return This builder for chaining. - */ - public Builder setPlayerTime(long value) { - - playerTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 playerTime = 2;</code> - * @return This builder for chaining. - */ - public Builder clearPlayerTime() { - - playerTime_ = 0L; - onChanged(); - return this; - } - - private long serverTime_ ; - /** - * <code>uint64 serverTime = 3;</code> - * @return The serverTime. - */ - @java.lang.Override - public long getServerTime() { - return serverTime_; - } - /** - * <code>uint64 serverTime = 3;</code> - * @param value The serverTime to set. - * @return This builder for chaining. - */ - public Builder setServerTime(long value) { - - serverTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 serverTime = 3;</code> - * @return This builder for chaining. - */ - public Builder clearServerTime() { - - serverTime_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PlayerTimeNotify) - } - - // @@protoc_insertion_point(class_scope:PlayerTimeNotify) - private static final emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify(); - } - - public static emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PlayerTimeNotify> - PARSER = new com.google.protobuf.AbstractParser<PlayerTimeNotify>() { - @java.lang.Override - public PlayerTimeNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerTimeNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PlayerTimeNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PlayerTimeNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PlayerTimeNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PlayerTimeNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026PlayerTimeNotify.proto\"L\n\020PlayerTimeNo" + - "tify\022\020\n\010isPaused\030\001 \001(\010\022\022\n\nplayerTime\030\002 \001" + - "(\004\022\022\n\nserverTime\030\003 \001(\004B\033\n\031emu.grasscutte" + - "r.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_PlayerTimeNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PlayerTimeNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PlayerTimeNotify_descriptor, - new java.lang.String[] { "IsPaused", "PlayerTime", "ServerTime", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PostEnterSceneRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PostEnterSceneRspOuterClass.java deleted file mode 100644 index 26b769691..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PostEnterSceneRspOuterClass.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PostEnterSceneRsp.proto - -package emu.grasscutter.net.proto; - -public final class PostEnterSceneRspOuterClass { - private PostEnterSceneRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PostEnterSceneRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:PostEnterSceneRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint32 enterSceneToken = 2;</code> - * @return The enterSceneToken. - */ - int getEnterSceneToken(); - } - /** - * Protobuf type {@code PostEnterSceneRsp} - */ - public static final class PostEnterSceneRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PostEnterSceneRsp) - PostEnterSceneRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use PostEnterSceneRsp.newBuilder() to construct. - private PostEnterSceneRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PostEnterSceneRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PostEnterSceneRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PostEnterSceneRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - enterSceneToken_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.internal_static_PostEnterSceneRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.internal_static_PostEnterSceneRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp.class, emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int ENTERSCENETOKEN_FIELD_NUMBER = 2; - private int enterSceneToken_; - /** - * <code>uint32 enterSceneToken = 2;</code> - * @return The enterSceneToken. - */ - @java.lang.Override - public int getEnterSceneToken() { - return enterSceneToken_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (enterSceneToken_ != 0) { - output.writeUInt32(2, enterSceneToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (enterSceneToken_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, enterSceneToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp other = (emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getEnterSceneToken() - != other.getEnterSceneToken()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + ENTERSCENETOKEN_FIELD_NUMBER; - hash = (53 * hash) + getEnterSceneToken(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PostEnterSceneRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PostEnterSceneRsp) - emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.internal_static_PostEnterSceneRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.internal_static_PostEnterSceneRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp.class, emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - enterSceneToken_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.internal_static_PostEnterSceneRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp build() { - emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp buildPartial() { - emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp result = new emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp(this); - result.retcode_ = retcode_; - result.enterSceneToken_ = enterSceneToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp) { - return mergeFrom((emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp other) { - if (other == emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getEnterSceneToken() != 0) { - setEnterSceneToken(other.getEnterSceneToken()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int enterSceneToken_ ; - /** - * <code>uint32 enterSceneToken = 2;</code> - * @return The enterSceneToken. - */ - @java.lang.Override - public int getEnterSceneToken() { - return enterSceneToken_; - } - /** - * <code>uint32 enterSceneToken = 2;</code> - * @param value The enterSceneToken to set. - * @return This builder for chaining. - */ - public Builder setEnterSceneToken(int value) { - - enterSceneToken_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 enterSceneToken = 2;</code> - * @return This builder for chaining. - */ - public Builder clearEnterSceneToken() { - - enterSceneToken_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PostEnterSceneRsp) - } - - // @@protoc_insertion_point(class_scope:PostEnterSceneRsp) - private static final emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp(); - } - - public static emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PostEnterSceneRsp> - PARSER = new com.google.protobuf.AbstractParser<PostEnterSceneRsp>() { - @java.lang.Override - public PostEnterSceneRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PostEnterSceneRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PostEnterSceneRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PostEnterSceneRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PostEnterSceneRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PostEnterSceneRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027PostEnterSceneRsp.proto\"=\n\021PostEnterSc" + - "eneRsp\022\017\n\007retcode\030\001 \001(\005\022\027\n\017enterSceneTok" + - "en\030\002 \001(\rB\033\n\031emu.grasscutter.net.protob\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_PostEnterSceneRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PostEnterSceneRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PostEnterSceneRsp_descriptor, - new java.lang.String[] { "Retcode", "EnterSceneToken", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PrivateChatNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PrivateChatNotifyOuterClass.java deleted file mode 100644 index a3a52f994..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PrivateChatNotifyOuterClass.java +++ /dev/null @@ -1,672 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PrivateChatNotify.proto - -package emu.grasscutter.net.proto; - -public final class PrivateChatNotifyOuterClass { - private PrivateChatNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PrivateChatNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:PrivateChatNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.ChatInfo chatInfo = 1;</code> - * @return Whether the chatInfo field is set. - */ - boolean hasChatInfo(); - /** - * <code>.ChatInfo chatInfo = 1;</code> - * @return The chatInfo. - */ - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo(); - /** - * <code>.ChatInfo chatInfo = 1;</code> - */ - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder getChatInfoOrBuilder(); - } - /** - * Protobuf type {@code PrivateChatNotify} - */ - public static final class PrivateChatNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PrivateChatNotify) - PrivateChatNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use PrivateChatNotify.newBuilder() to construct. - private PrivateChatNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PrivateChatNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PrivateChatNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PrivateChatNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder subBuilder = null; - if (chatInfo_ != null) { - subBuilder = chatInfo_.toBuilder(); - } - chatInfo_ = input.readMessage(emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(chatInfo_); - chatInfo_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.internal_static_PrivateChatNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.internal_static_PrivateChatNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify.class, emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify.Builder.class); - } - - public static final int CHATINFO_FIELD_NUMBER = 1; - private emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo chatInfo_; - /** - * <code>.ChatInfo chatInfo = 1;</code> - * @return Whether the chatInfo field is set. - */ - @java.lang.Override - public boolean hasChatInfo() { - return chatInfo_ != null; - } - /** - * <code>.ChatInfo chatInfo = 1;</code> - * @return The chatInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo() { - return chatInfo_ == null ? emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.getDefaultInstance() : chatInfo_; - } - /** - * <code>.ChatInfo chatInfo = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder getChatInfoOrBuilder() { - return getChatInfo(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (chatInfo_ != null) { - output.writeMessage(1, getChatInfo()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (chatInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getChatInfo()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify other = (emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify) obj; - - if (hasChatInfo() != other.hasChatInfo()) return false; - if (hasChatInfo()) { - if (!getChatInfo() - .equals(other.getChatInfo())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasChatInfo()) { - hash = (37 * hash) + CHATINFO_FIELD_NUMBER; - hash = (53 * hash) + getChatInfo().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PrivateChatNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PrivateChatNotify) - emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.internal_static_PrivateChatNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.internal_static_PrivateChatNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify.class, emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (chatInfoBuilder_ == null) { - chatInfo_ = null; - } else { - chatInfo_ = null; - chatInfoBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.internal_static_PrivateChatNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify build() { - emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify buildPartial() { - emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify result = new emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify(this); - if (chatInfoBuilder_ == null) { - result.chatInfo_ = chatInfo_; - } else { - result.chatInfo_ = chatInfoBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify) { - return mergeFrom((emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify other) { - if (other == emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify.getDefaultInstance()) return this; - if (other.hasChatInfo()) { - mergeChatInfo(other.getChatInfo()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo chatInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder> chatInfoBuilder_; - /** - * <code>.ChatInfo chatInfo = 1;</code> - * @return Whether the chatInfo field is set. - */ - public boolean hasChatInfo() { - return chatInfoBuilder_ != null || chatInfo_ != null; - } - /** - * <code>.ChatInfo chatInfo = 1;</code> - * @return The chatInfo. - */ - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo() { - if (chatInfoBuilder_ == null) { - return chatInfo_ == null ? emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.getDefaultInstance() : chatInfo_; - } else { - return chatInfoBuilder_.getMessage(); - } - } - /** - * <code>.ChatInfo chatInfo = 1;</code> - */ - public Builder setChatInfo(emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo value) { - if (chatInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - chatInfo_ = value; - onChanged(); - } else { - chatInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.ChatInfo chatInfo = 1;</code> - */ - public Builder setChatInfo( - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder builderForValue) { - if (chatInfoBuilder_ == null) { - chatInfo_ = builderForValue.build(); - onChanged(); - } else { - chatInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.ChatInfo chatInfo = 1;</code> - */ - public Builder mergeChatInfo(emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo value) { - if (chatInfoBuilder_ == null) { - if (chatInfo_ != null) { - chatInfo_ = - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.newBuilder(chatInfo_).mergeFrom(value).buildPartial(); - } else { - chatInfo_ = value; - } - onChanged(); - } else { - chatInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.ChatInfo chatInfo = 1;</code> - */ - public Builder clearChatInfo() { - if (chatInfoBuilder_ == null) { - chatInfo_ = null; - onChanged(); - } else { - chatInfo_ = null; - chatInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.ChatInfo chatInfo = 1;</code> - */ - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder getChatInfoBuilder() { - - onChanged(); - return getChatInfoFieldBuilder().getBuilder(); - } - /** - * <code>.ChatInfo chatInfo = 1;</code> - */ - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder getChatInfoOrBuilder() { - if (chatInfoBuilder_ != null) { - return chatInfoBuilder_.getMessageOrBuilder(); - } else { - return chatInfo_ == null ? - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.getDefaultInstance() : chatInfo_; - } - } - /** - * <code>.ChatInfo chatInfo = 1;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder> - getChatInfoFieldBuilder() { - if (chatInfoBuilder_ == null) { - chatInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder>( - getChatInfo(), - getParentForChildren(), - isClean()); - chatInfo_ = null; - } - return chatInfoBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PrivateChatNotify) - } - - // @@protoc_insertion_point(class_scope:PrivateChatNotify) - private static final emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify(); - } - - public static emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PrivateChatNotify> - PARSER = new com.google.protobuf.AbstractParser<PrivateChatNotify>() { - @java.lang.Override - public PrivateChatNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PrivateChatNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PrivateChatNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PrivateChatNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PrivateChatNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PrivateChatNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027PrivateChatNotify.proto\032\016ChatInfo.prot" + - "o\"0\n\021PrivateChatNotify\022\033\n\010chatInfo\030\001 \001(\013" + - "2\t.ChatInfoB\033\n\031emu.grasscutter.net.proto" + - "b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ChatInfoOuterClass.getDescriptor(), - }); - internal_static_PrivateChatNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PrivateChatNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PrivateChatNotify_descriptor, - new java.lang.String[] { "ChatInfo", }); - emu.grasscutter.net.proto.ChatInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PrivateChatReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PrivateChatReqOuterClass.java deleted file mode 100644 index 1b13ba4bd..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PrivateChatReqOuterClass.java +++ /dev/null @@ -1,909 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PrivateChatReq.proto - -package emu.grasscutter.net.proto; - -public final class PrivateChatReqOuterClass { - private PrivateChatReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PrivateChatReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:PrivateChatReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - int getTargetUid(); - - /** - * <code>string text = 2;</code> - * @return Whether the text field is set. - */ - boolean hasText(); - /** - * <code>string text = 2;</code> - * @return The text. - */ - java.lang.String getText(); - /** - * <code>string text = 2;</code> - * @return The bytes for text. - */ - com.google.protobuf.ByteString - getTextBytes(); - - /** - * <code>uint32 icon = 3;</code> - * @return Whether the icon field is set. - */ - boolean hasIcon(); - /** - * <code>uint32 icon = 3;</code> - * @return The icon. - */ - int getIcon(); - - public emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq.ContentCase getContentCase(); - } - /** - * Protobuf type {@code PrivateChatReq} - */ - public static final class PrivateChatReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PrivateChatReq) - PrivateChatReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use PrivateChatReq.newBuilder() to construct. - private PrivateChatReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PrivateChatReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PrivateChatReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PrivateChatReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - targetUid_ = input.readUInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - contentCase_ = 2; - content_ = s; - break; - } - case 24: { - contentCase_ = 3; - content_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PrivateChatReqOuterClass.internal_static_PrivateChatReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PrivateChatReqOuterClass.internal_static_PrivateChatReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq.class, emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq.Builder.class); - } - - private int contentCase_ = 0; - private java.lang.Object content_; - public enum ContentCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - TEXT(2), - ICON(3), - CONTENT_NOT_SET(0); - private final int value; - private ContentCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ContentCase valueOf(int value) { - return forNumber(value); - } - - public static ContentCase forNumber(int value) { - switch (value) { - case 2: return TEXT; - case 3: return ICON; - case 0: return CONTENT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ContentCase - getContentCase() { - return ContentCase.forNumber( - contentCase_); - } - - public static final int TARGETUID_FIELD_NUMBER = 1; - private int targetUid_; - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - - public static final int TEXT_FIELD_NUMBER = 2; - /** - * <code>string text = 2;</code> - * @return Whether the text field is set. - */ - public boolean hasText() { - return contentCase_ == 2; - } - /** - * <code>string text = 2;</code> - * @return The text. - */ - public java.lang.String getText() { - java.lang.Object ref = ""; - if (contentCase_ == 2) { - ref = content_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (contentCase_ == 2) { - content_ = s; - } - return s; - } - } - /** - * <code>string text = 2;</code> - * @return The bytes for text. - */ - public com.google.protobuf.ByteString - getTextBytes() { - java.lang.Object ref = ""; - if (contentCase_ == 2) { - ref = content_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (contentCase_ == 2) { - content_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ICON_FIELD_NUMBER = 3; - /** - * <code>uint32 icon = 3;</code> - * @return Whether the icon field is set. - */ - @java.lang.Override - public boolean hasIcon() { - return contentCase_ == 3; - } - /** - * <code>uint32 icon = 3;</code> - * @return The icon. - */ - @java.lang.Override - public int getIcon() { - if (contentCase_ == 3) { - return (java.lang.Integer) content_; - } - return 0; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (targetUid_ != 0) { - output.writeUInt32(1, targetUid_); - } - if (contentCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, content_); - } - if (contentCase_ == 3) { - output.writeUInt32( - 3, (int)((java.lang.Integer) content_)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (targetUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, targetUid_); - } - if (contentCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, content_); - } - if (contentCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size( - 3, (int)((java.lang.Integer) content_)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq other = (emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq) obj; - - if (getTargetUid() - != other.getTargetUid()) return false; - if (!getContentCase().equals(other.getContentCase())) return false; - switch (contentCase_) { - case 2: - if (!getText() - .equals(other.getText())) return false; - break; - case 3: - if (getIcon() - != other.getIcon()) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TARGETUID_FIELD_NUMBER; - hash = (53 * hash) + getTargetUid(); - switch (contentCase_) { - case 2: - hash = (37 * hash) + TEXT_FIELD_NUMBER; - hash = (53 * hash) + getText().hashCode(); - break; - case 3: - hash = (37 * hash) + ICON_FIELD_NUMBER; - hash = (53 * hash) + getIcon(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PrivateChatReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PrivateChatReq) - emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PrivateChatReqOuterClass.internal_static_PrivateChatReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PrivateChatReqOuterClass.internal_static_PrivateChatReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq.class, emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - targetUid_ = 0; - - contentCase_ = 0; - content_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PrivateChatReqOuterClass.internal_static_PrivateChatReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq build() { - emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq buildPartial() { - emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq result = new emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq(this); - result.targetUid_ = targetUid_; - if (contentCase_ == 2) { - result.content_ = content_; - } - if (contentCase_ == 3) { - result.content_ = content_; - } - result.contentCase_ = contentCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq) { - return mergeFrom((emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq other) { - if (other == emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq.getDefaultInstance()) return this; - if (other.getTargetUid() != 0) { - setTargetUid(other.getTargetUid()); - } - switch (other.getContentCase()) { - case TEXT: { - contentCase_ = 2; - content_ = other.content_; - onChanged(); - break; - } - case ICON: { - setIcon(other.getIcon()); - break; - } - case CONTENT_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int contentCase_ = 0; - private java.lang.Object content_; - public ContentCase - getContentCase() { - return ContentCase.forNumber( - contentCase_); - } - - public Builder clearContent() { - contentCase_ = 0; - content_ = null; - onChanged(); - return this; - } - - - private int targetUid_ ; - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - /** - * <code>uint32 targetUid = 1;</code> - * @param value The targetUid to set. - * @return This builder for chaining. - */ - public Builder setTargetUid(int value) { - - targetUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 targetUid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTargetUid() { - - targetUid_ = 0; - onChanged(); - return this; - } - - /** - * <code>string text = 2;</code> - * @return Whether the text field is set. - */ - @java.lang.Override - public boolean hasText() { - return contentCase_ == 2; - } - /** - * <code>string text = 2;</code> - * @return The text. - */ - @java.lang.Override - public java.lang.String getText() { - java.lang.Object ref = ""; - if (contentCase_ == 2) { - ref = content_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (contentCase_ == 2) { - content_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string text = 2;</code> - * @return The bytes for text. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTextBytes() { - java.lang.Object ref = ""; - if (contentCase_ == 2) { - ref = content_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (contentCase_ == 2) { - content_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string text = 2;</code> - * @param value The text to set. - * @return This builder for chaining. - */ - public Builder setText( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - contentCase_ = 2; - content_ = value; - onChanged(); - return this; - } - /** - * <code>string text = 2;</code> - * @return This builder for chaining. - */ - public Builder clearText() { - if (contentCase_ == 2) { - contentCase_ = 0; - content_ = null; - onChanged(); - } - return this; - } - /** - * <code>string text = 2;</code> - * @param value The bytes for text to set. - * @return This builder for chaining. - */ - public Builder setTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - contentCase_ = 2; - content_ = value; - onChanged(); - return this; - } - - /** - * <code>uint32 icon = 3;</code> - * @return Whether the icon field is set. - */ - public boolean hasIcon() { - return contentCase_ == 3; - } - /** - * <code>uint32 icon = 3;</code> - * @return The icon. - */ - public int getIcon() { - if (contentCase_ == 3) { - return (java.lang.Integer) content_; - } - return 0; - } - /** - * <code>uint32 icon = 3;</code> - * @param value The icon to set. - * @return This builder for chaining. - */ - public Builder setIcon(int value) { - contentCase_ = 3; - content_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 icon = 3;</code> - * @return This builder for chaining. - */ - public Builder clearIcon() { - if (contentCase_ == 3) { - contentCase_ = 0; - content_ = null; - onChanged(); - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PrivateChatReq) - } - - // @@protoc_insertion_point(class_scope:PrivateChatReq) - private static final emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq(); - } - - public static emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PrivateChatReq> - PARSER = new com.google.protobuf.AbstractParser<PrivateChatReq>() { - @java.lang.Override - public PrivateChatReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PrivateChatReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PrivateChatReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PrivateChatReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PrivateChatReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PrivateChatReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024PrivateChatReq.proto\"N\n\016PrivateChatReq" + - "\022\021\n\ttargetUid\030\001 \001(\r\022\016\n\004text\030\002 \001(\tH\000\022\016\n\004i" + - "con\030\003 \001(\rH\000B\t\n\007contentB\033\n\031emu.grasscutte" + - "r.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_PrivateChatReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PrivateChatReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PrivateChatReq_descriptor, - new java.lang.String[] { "TargetUid", "Text", "Icon", "Content", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PrivateChatRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PrivateChatRspOuterClass.java deleted file mode 100644 index d4247d90c..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PrivateChatRspOuterClass.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PrivateChatRsp.proto - -package emu.grasscutter.net.proto; - -public final class PrivateChatRspOuterClass { - private PrivateChatRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PrivateChatRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:PrivateChatRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint32 chatForbiddenEndtime = 2;</code> - * @return The chatForbiddenEndtime. - */ - int getChatForbiddenEndtime(); - } - /** - * Protobuf type {@code PrivateChatRsp} - */ - public static final class PrivateChatRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PrivateChatRsp) - PrivateChatRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use PrivateChatRsp.newBuilder() to construct. - private PrivateChatRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PrivateChatRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PrivateChatRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PrivateChatRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - chatForbiddenEndtime_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PrivateChatRspOuterClass.internal_static_PrivateChatRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PrivateChatRspOuterClass.internal_static_PrivateChatRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp.class, emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int CHATFORBIDDENENDTIME_FIELD_NUMBER = 2; - private int chatForbiddenEndtime_; - /** - * <code>uint32 chatForbiddenEndtime = 2;</code> - * @return The chatForbiddenEndtime. - */ - @java.lang.Override - public int getChatForbiddenEndtime() { - return chatForbiddenEndtime_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (chatForbiddenEndtime_ != 0) { - output.writeUInt32(2, chatForbiddenEndtime_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (chatForbiddenEndtime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, chatForbiddenEndtime_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp other = (emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getChatForbiddenEndtime() - != other.getChatForbiddenEndtime()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + CHATFORBIDDENENDTIME_FIELD_NUMBER; - hash = (53 * hash) + getChatForbiddenEndtime(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PrivateChatRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PrivateChatRsp) - emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PrivateChatRspOuterClass.internal_static_PrivateChatRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PrivateChatRspOuterClass.internal_static_PrivateChatRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp.class, emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - chatForbiddenEndtime_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PrivateChatRspOuterClass.internal_static_PrivateChatRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp build() { - emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp buildPartial() { - emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp result = new emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp(this); - result.retcode_ = retcode_; - result.chatForbiddenEndtime_ = chatForbiddenEndtime_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp) { - return mergeFrom((emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp other) { - if (other == emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getChatForbiddenEndtime() != 0) { - setChatForbiddenEndtime(other.getChatForbiddenEndtime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int chatForbiddenEndtime_ ; - /** - * <code>uint32 chatForbiddenEndtime = 2;</code> - * @return The chatForbiddenEndtime. - */ - @java.lang.Override - public int getChatForbiddenEndtime() { - return chatForbiddenEndtime_; - } - /** - * <code>uint32 chatForbiddenEndtime = 2;</code> - * @param value The chatForbiddenEndtime to set. - * @return This builder for chaining. - */ - public Builder setChatForbiddenEndtime(int value) { - - chatForbiddenEndtime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 chatForbiddenEndtime = 2;</code> - * @return This builder for chaining. - */ - public Builder clearChatForbiddenEndtime() { - - chatForbiddenEndtime_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PrivateChatRsp) - } - - // @@protoc_insertion_point(class_scope:PrivateChatRsp) - private static final emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp(); - } - - public static emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PrivateChatRsp> - PARSER = new com.google.protobuf.AbstractParser<PrivateChatRsp>() { - @java.lang.Override - public PrivateChatRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PrivateChatRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PrivateChatRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PrivateChatRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PrivateChatRspOuterClass.PrivateChatRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PrivateChatRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PrivateChatRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024PrivateChatRsp.proto\"?\n\016PrivateChatRsp" + - "\022\017\n\007retcode\030\001 \001(\005\022\034\n\024chatForbiddenEndtim" + - "e\030\002 \001(\rB\033\n\031emu.grasscutter.net.protob\006pr" + - "oto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_PrivateChatRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PrivateChatRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PrivateChatRsp_descriptor, - new java.lang.String[] { "Retcode", "ChatForbiddenEndtime", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PropChangeReasonOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PropChangeReasonOuterClass.java deleted file mode 100644 index 9be1f8044..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PropChangeReasonOuterClass.java +++ /dev/null @@ -1,262 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PropChangeReason.proto - -package emu.grasscutter.net.proto; - -public final class PropChangeReasonOuterClass { - private PropChangeReasonOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code PropChangeReason} - */ - public enum PropChangeReason - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>PropChangeNone = 0;</code> - */ - PropChangeNone(0), - /** - * <code>PropChangeStatueRecover = 1;</code> - */ - PropChangeStatueRecover(1), - /** - * <code>PropChangeEnergyBall = 2;</code> - */ - PropChangeEnergyBall(2), - /** - * <code>PropChangeAbility = 3;</code> - */ - PropChangeAbility(3), - /** - * <code>PropChangeLevelup = 4;</code> - */ - PropChangeLevelup(4), - /** - * <code>PropChangeItem = 5;</code> - */ - PropChangeItem(5), - /** - * <code>PropChangeAvatarCard = 6;</code> - */ - PropChangeAvatarCard(6), - /** - * <code>PropChangeCityLevelup = 7;</code> - */ - PropChangeCityLevelup(7), - /** - * <code>PropChangeAvatarUpgrade = 8;</code> - */ - PropChangeAvatarUpgrade(8), - /** - * <code>PropChangeAvatarPromote = 9;</code> - */ - PropChangeAvatarPromote(9), - /** - * <code>PropChangePlayerAddExp = 10;</code> - */ - PropChangePlayerAddExp(10), - /** - * <code>PropChangeFinishQuest = 11;</code> - */ - PropChangeFinishQuest(11), - /** - * <code>PropChangeGm = 12;</code> - */ - PropChangeGm(12), - /** - * <code>PropChangeManualAdjustWorldLevel = 13;</code> - */ - PropChangeManualAdjustWorldLevel(13), - UNRECOGNIZED(-1), - ; - - /** - * <code>PropChangeNone = 0;</code> - */ - public static final int PropChangeNone_VALUE = 0; - /** - * <code>PropChangeStatueRecover = 1;</code> - */ - public static final int PropChangeStatueRecover_VALUE = 1; - /** - * <code>PropChangeEnergyBall = 2;</code> - */ - public static final int PropChangeEnergyBall_VALUE = 2; - /** - * <code>PropChangeAbility = 3;</code> - */ - public static final int PropChangeAbility_VALUE = 3; - /** - * <code>PropChangeLevelup = 4;</code> - */ - public static final int PropChangeLevelup_VALUE = 4; - /** - * <code>PropChangeItem = 5;</code> - */ - public static final int PropChangeItem_VALUE = 5; - /** - * <code>PropChangeAvatarCard = 6;</code> - */ - public static final int PropChangeAvatarCard_VALUE = 6; - /** - * <code>PropChangeCityLevelup = 7;</code> - */ - public static final int PropChangeCityLevelup_VALUE = 7; - /** - * <code>PropChangeAvatarUpgrade = 8;</code> - */ - public static final int PropChangeAvatarUpgrade_VALUE = 8; - /** - * <code>PropChangeAvatarPromote = 9;</code> - */ - public static final int PropChangeAvatarPromote_VALUE = 9; - /** - * <code>PropChangePlayerAddExp = 10;</code> - */ - public static final int PropChangePlayerAddExp_VALUE = 10; - /** - * <code>PropChangeFinishQuest = 11;</code> - */ - public static final int PropChangeFinishQuest_VALUE = 11; - /** - * <code>PropChangeGm = 12;</code> - */ - public static final int PropChangeGm_VALUE = 12; - /** - * <code>PropChangeManualAdjustWorldLevel = 13;</code> - */ - public static final int PropChangeManualAdjustWorldLevel_VALUE = 13; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PropChangeReason valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static PropChangeReason forNumber(int value) { - switch (value) { - case 0: return PropChangeNone; - case 1: return PropChangeStatueRecover; - case 2: return PropChangeEnergyBall; - case 3: return PropChangeAbility; - case 4: return PropChangeLevelup; - case 5: return PropChangeItem; - case 6: return PropChangeAvatarCard; - case 7: return PropChangeCityLevelup; - case 8: return PropChangeAvatarUpgrade; - case 9: return PropChangeAvatarPromote; - case 10: return PropChangePlayerAddExp; - case 11: return PropChangeFinishQuest; - case 12: return PropChangeGm; - case 13: return PropChangeManualAdjustWorldLevel; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<PropChangeReason> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - PropChangeReason> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<PropChangeReason>() { - public PropChangeReason findValueByNumber(int number) { - return PropChangeReason.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.PropChangeReasonOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final PropChangeReason[] VALUES = values(); - - public static PropChangeReason valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private PropChangeReason(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:PropChangeReason) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026PropChangeReason.proto*\375\002\n\020PropChangeR" + - "eason\022\022\n\016PropChangeNone\020\000\022\033\n\027PropChangeS" + - "tatueRecover\020\001\022\030\n\024PropChangeEnergyBall\020\002" + - "\022\025\n\021PropChangeAbility\020\003\022\025\n\021PropChangeLev" + - "elup\020\004\022\022\n\016PropChangeItem\020\005\022\030\n\024PropChange" + - "AvatarCard\020\006\022\031\n\025PropChangeCityLevelup\020\007\022" + - "\033\n\027PropChangeAvatarUpgrade\020\010\022\033\n\027PropChan" + - "geAvatarPromote\020\t\022\032\n\026PropChangePlayerAdd" + - "Exp\020\n\022\031\n\025PropChangeFinishQuest\020\013\022\020\n\014Prop" + - "ChangeGm\020\014\022$\n PropChangeManualAdjustWorl" + - "dLevel\020\rB\033\n\031emu.grasscutter.net.protob\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PropPairOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PropPairOuterClass.java deleted file mode 100644 index 7fa2d0cfd..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PropPairOuterClass.java +++ /dev/null @@ -1,742 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PropPair.proto - -package emu.grasscutter.net.proto; - -public final class PropPairOuterClass { - private PropPairOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PropPairOrBuilder extends - // @@protoc_insertion_point(interface_extends:PropPair) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 type = 1;</code> - * @return The type. - */ - int getType(); - - /** - * <code>.PropValue propValue = 2;</code> - * @return Whether the propValue field is set. - */ - boolean hasPropValue(); - /** - * <code>.PropValue propValue = 2;</code> - * @return The propValue. - */ - emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropValue(); - /** - * <code>.PropValue propValue = 2;</code> - */ - emu.grasscutter.net.proto.PropValueOuterClass.PropValueOrBuilder getPropValueOrBuilder(); - } - /** - * Protobuf type {@code PropPair} - */ - public static final class PropPair extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PropPair) - PropPairOrBuilder { - private static final long serialVersionUID = 0L; - // Use PropPair.newBuilder() to construct. - private PropPair(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PropPair() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PropPair(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PropPair( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - type_ = input.readUInt32(); - break; - } - case 18: { - emu.grasscutter.net.proto.PropValueOuterClass.PropValue.Builder subBuilder = null; - if (propValue_ != null) { - subBuilder = propValue_.toBuilder(); - } - propValue_ = input.readMessage(emu.grasscutter.net.proto.PropValueOuterClass.PropValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(propValue_); - propValue_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PropPairOuterClass.internal_static_PropPair_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PropPairOuterClass.internal_static_PropPair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PropPairOuterClass.PropPair.class, emu.grasscutter.net.proto.PropPairOuterClass.PropPair.Builder.class); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private int type_; - /** - * <code>uint32 type = 1;</code> - * @return The type. - */ - @java.lang.Override - public int getType() { - return type_; - } - - public static final int PROPVALUE_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.PropValueOuterClass.PropValue propValue_; - /** - * <code>.PropValue propValue = 2;</code> - * @return Whether the propValue field is set. - */ - @java.lang.Override - public boolean hasPropValue() { - return propValue_ != null; - } - /** - * <code>.PropValue propValue = 2;</code> - * @return The propValue. - */ - @java.lang.Override - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropValue() { - return propValue_ == null ? emu.grasscutter.net.proto.PropValueOuterClass.PropValue.getDefaultInstance() : propValue_; - } - /** - * <code>.PropValue propValue = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.PropValueOuterClass.PropValueOrBuilder getPropValueOrBuilder() { - return getPropValue(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != 0) { - output.writeUInt32(1, type_); - } - if (propValue_ != null) { - output.writeMessage(2, getPropValue()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, type_); - } - if (propValue_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPropValue()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PropPairOuterClass.PropPair)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PropPairOuterClass.PropPair other = (emu.grasscutter.net.proto.PropPairOuterClass.PropPair) obj; - - if (getType() - != other.getType()) return false; - if (hasPropValue() != other.hasPropValue()) return false; - if (hasPropValue()) { - if (!getPropValue() - .equals(other.getPropValue())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType(); - if (hasPropValue()) { - hash = (37 * hash) + PROPVALUE_FIELD_NUMBER; - hash = (53 * hash) + getPropValue().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PropPairOuterClass.PropPair parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PropPairOuterClass.PropPair parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PropPairOuterClass.PropPair parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PropPairOuterClass.PropPair parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PropPairOuterClass.PropPair parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PropPairOuterClass.PropPair parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PropPairOuterClass.PropPair parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PropPairOuterClass.PropPair parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PropPairOuterClass.PropPair parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PropPairOuterClass.PropPair parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PropPairOuterClass.PropPair parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PropPairOuterClass.PropPair parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PropPairOuterClass.PropPair prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PropPair} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PropPair) - emu.grasscutter.net.proto.PropPairOuterClass.PropPairOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PropPairOuterClass.internal_static_PropPair_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PropPairOuterClass.internal_static_PropPair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PropPairOuterClass.PropPair.class, emu.grasscutter.net.proto.PropPairOuterClass.PropPair.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PropPairOuterClass.PropPair.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - type_ = 0; - - if (propValueBuilder_ == null) { - propValue_ = null; - } else { - propValue_ = null; - propValueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PropPairOuterClass.internal_static_PropPair_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PropPairOuterClass.PropPair getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PropPairOuterClass.PropPair.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PropPairOuterClass.PropPair build() { - emu.grasscutter.net.proto.PropPairOuterClass.PropPair result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PropPairOuterClass.PropPair buildPartial() { - emu.grasscutter.net.proto.PropPairOuterClass.PropPair result = new emu.grasscutter.net.proto.PropPairOuterClass.PropPair(this); - result.type_ = type_; - if (propValueBuilder_ == null) { - result.propValue_ = propValue_; - } else { - result.propValue_ = propValueBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PropPairOuterClass.PropPair) { - return mergeFrom((emu.grasscutter.net.proto.PropPairOuterClass.PropPair)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PropPairOuterClass.PropPair other) { - if (other == emu.grasscutter.net.proto.PropPairOuterClass.PropPair.getDefaultInstance()) return this; - if (other.getType() != 0) { - setType(other.getType()); - } - if (other.hasPropValue()) { - mergePropValue(other.getPropValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PropPairOuterClass.PropPair parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PropPairOuterClass.PropPair) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int type_ ; - /** - * <code>uint32 type = 1;</code> - * @return The type. - */ - @java.lang.Override - public int getType() { - return type_; - } - /** - * <code>uint32 type = 1;</code> - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 type = 1;</code> - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.PropValueOuterClass.PropValue propValue_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.PropValueOuterClass.PropValue, emu.grasscutter.net.proto.PropValueOuterClass.PropValue.Builder, emu.grasscutter.net.proto.PropValueOuterClass.PropValueOrBuilder> propValueBuilder_; - /** - * <code>.PropValue propValue = 2;</code> - * @return Whether the propValue field is set. - */ - public boolean hasPropValue() { - return propValueBuilder_ != null || propValue_ != null; - } - /** - * <code>.PropValue propValue = 2;</code> - * @return The propValue. - */ - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropValue() { - if (propValueBuilder_ == null) { - return propValue_ == null ? emu.grasscutter.net.proto.PropValueOuterClass.PropValue.getDefaultInstance() : propValue_; - } else { - return propValueBuilder_.getMessage(); - } - } - /** - * <code>.PropValue propValue = 2;</code> - */ - public Builder setPropValue(emu.grasscutter.net.proto.PropValueOuterClass.PropValue value) { - if (propValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - propValue_ = value; - onChanged(); - } else { - propValueBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.PropValue propValue = 2;</code> - */ - public Builder setPropValue( - emu.grasscutter.net.proto.PropValueOuterClass.PropValue.Builder builderForValue) { - if (propValueBuilder_ == null) { - propValue_ = builderForValue.build(); - onChanged(); - } else { - propValueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.PropValue propValue = 2;</code> - */ - public Builder mergePropValue(emu.grasscutter.net.proto.PropValueOuterClass.PropValue value) { - if (propValueBuilder_ == null) { - if (propValue_ != null) { - propValue_ = - emu.grasscutter.net.proto.PropValueOuterClass.PropValue.newBuilder(propValue_).mergeFrom(value).buildPartial(); - } else { - propValue_ = value; - } - onChanged(); - } else { - propValueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.PropValue propValue = 2;</code> - */ - public Builder clearPropValue() { - if (propValueBuilder_ == null) { - propValue_ = null; - onChanged(); - } else { - propValue_ = null; - propValueBuilder_ = null; - } - - return this; - } - /** - * <code>.PropValue propValue = 2;</code> - */ - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue.Builder getPropValueBuilder() { - - onChanged(); - return getPropValueFieldBuilder().getBuilder(); - } - /** - * <code>.PropValue propValue = 2;</code> - */ - public emu.grasscutter.net.proto.PropValueOuterClass.PropValueOrBuilder getPropValueOrBuilder() { - if (propValueBuilder_ != null) { - return propValueBuilder_.getMessageOrBuilder(); - } else { - return propValue_ == null ? - emu.grasscutter.net.proto.PropValueOuterClass.PropValue.getDefaultInstance() : propValue_; - } - } - /** - * <code>.PropValue propValue = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.PropValueOuterClass.PropValue, emu.grasscutter.net.proto.PropValueOuterClass.PropValue.Builder, emu.grasscutter.net.proto.PropValueOuterClass.PropValueOrBuilder> - getPropValueFieldBuilder() { - if (propValueBuilder_ == null) { - propValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.PropValueOuterClass.PropValue, emu.grasscutter.net.proto.PropValueOuterClass.PropValue.Builder, emu.grasscutter.net.proto.PropValueOuterClass.PropValueOrBuilder>( - getPropValue(), - getParentForChildren(), - isClean()); - propValue_ = null; - } - return propValueBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PropPair) - } - - // @@protoc_insertion_point(class_scope:PropPair) - private static final emu.grasscutter.net.proto.PropPairOuterClass.PropPair DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PropPairOuterClass.PropPair(); - } - - public static emu.grasscutter.net.proto.PropPairOuterClass.PropPair getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PropPair> - PARSER = new com.google.protobuf.AbstractParser<PropPair>() { - @java.lang.Override - public PropPair parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PropPair(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PropPair> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PropPair> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PropPairOuterClass.PropPair getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PropPair_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PropPair_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\016PropPair.proto\032\017PropValue.proto\"7\n\010Pro" + - "pPair\022\014\n\004type\030\001 \001(\r\022\035\n\tpropValue\030\002 \001(\0132\n" + - ".PropValueB\033\n\031emu.grasscutter.net.protob" + - "\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.PropValueOuterClass.getDescriptor(), - }); - internal_static_PropPair_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PropPair_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PropPair_descriptor, - new java.lang.String[] { "Type", "PropValue", }); - emu.grasscutter.net.proto.PropValueOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PropValueOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PropValueOuterClass.java deleted file mode 100644 index e61e89332..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PropValueOuterClass.java +++ /dev/null @@ -1,888 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PropValue.proto - -package emu.grasscutter.net.proto; - -public final class PropValueOuterClass { - private PropValueOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PropValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:PropValue) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 type = 1;</code> - * @return The type. - */ - int getType(); - - /** - * <code>uint32 ival = 2;</code> - * @return Whether the ival field is set. - */ - boolean hasIval(); - /** - * <code>uint32 ival = 2;</code> - * @return The ival. - */ - int getIval(); - - /** - * <code>float fval = 3;</code> - * @return Whether the fval field is set. - */ - boolean hasFval(); - /** - * <code>float fval = 3;</code> - * @return The fval. - */ - float getFval(); - - /** - * <code>uint32 val = 4;</code> - * @return The val. - */ - int getVal(); - - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue.ValueCase getValueCase(); - } - /** - * Protobuf type {@code PropValue} - */ - public static final class PropValue extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PropValue) - PropValueOrBuilder { - private static final long serialVersionUID = 0L; - // Use PropValue.newBuilder() to construct. - private PropValue(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PropValue() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PropValue(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PropValue( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - type_ = input.readUInt32(); - break; - } - case 16: { - valueCase_ = 2; - value_ = input.readUInt32(); - break; - } - case 29: { - valueCase_ = 3; - value_ = input.readFloat(); - break; - } - case 32: { - - val_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PropValueOuterClass.internal_static_PropValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PropValueOuterClass.internal_static_PropValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PropValueOuterClass.PropValue.class, emu.grasscutter.net.proto.PropValueOuterClass.PropValue.Builder.class); - } - - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - IVAL(2), - FVAL(3), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 2: return IVAL; - case 3: return FVAL; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private int type_; - /** - * <code>uint32 type = 1;</code> - * @return The type. - */ - @java.lang.Override - public int getType() { - return type_; - } - - public static final int IVAL_FIELD_NUMBER = 2; - /** - * <code>uint32 ival = 2;</code> - * @return Whether the ival field is set. - */ - @java.lang.Override - public boolean hasIval() { - return valueCase_ == 2; - } - /** - * <code>uint32 ival = 2;</code> - * @return The ival. - */ - @java.lang.Override - public int getIval() { - if (valueCase_ == 2) { - return (java.lang.Integer) value_; - } - return 0; - } - - public static final int FVAL_FIELD_NUMBER = 3; - /** - * <code>float fval = 3;</code> - * @return Whether the fval field is set. - */ - @java.lang.Override - public boolean hasFval() { - return valueCase_ == 3; - } - /** - * <code>float fval = 3;</code> - * @return The fval. - */ - @java.lang.Override - public float getFval() { - if (valueCase_ == 3) { - return (java.lang.Float) value_; - } - return 0F; - } - - public static final int VAL_FIELD_NUMBER = 4; - private int val_; - /** - * <code>uint32 val = 4;</code> - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != 0) { - output.writeUInt32(1, type_); - } - if (valueCase_ == 2) { - output.writeUInt32( - 2, (int)((java.lang.Integer) value_)); - } - if (valueCase_ == 3) { - output.writeFloat( - 3, (float)((java.lang.Float) value_)); - } - if (val_ != 0) { - output.writeUInt32(4, val_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, type_); - } - if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size( - 2, (int)((java.lang.Integer) value_)); - } - if (valueCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize( - 3, (float)((java.lang.Float) value_)); - } - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, val_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PropValueOuterClass.PropValue)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PropValueOuterClass.PropValue other = (emu.grasscutter.net.proto.PropValueOuterClass.PropValue) obj; - - if (getType() - != other.getType()) return false; - if (getVal() - != other.getVal()) return false; - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 2: - if (getIval() - != other.getIval()) return false; - break; - case 3: - if (java.lang.Float.floatToIntBits(getFval()) - != java.lang.Float.floatToIntBits( - other.getFval())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - switch (valueCase_) { - case 2: - hash = (37 * hash) + IVAL_FIELD_NUMBER; - hash = (53 * hash) + getIval(); - break; - case 3: - hash = (37 * hash) + FVAL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getFval()); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PropValueOuterClass.PropValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PropValueOuterClass.PropValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PropValueOuterClass.PropValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PropValueOuterClass.PropValue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PropValueOuterClass.PropValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PropValueOuterClass.PropValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PropValueOuterClass.PropValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PropValueOuterClass.PropValue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PropValueOuterClass.PropValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PropValueOuterClass.PropValue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PropValueOuterClass.PropValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PropValueOuterClass.PropValue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PropValueOuterClass.PropValue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PropValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PropValue) - emu.grasscutter.net.proto.PropValueOuterClass.PropValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PropValueOuterClass.internal_static_PropValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PropValueOuterClass.internal_static_PropValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PropValueOuterClass.PropValue.class, emu.grasscutter.net.proto.PropValueOuterClass.PropValue.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PropValueOuterClass.PropValue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - type_ = 0; - - val_ = 0; - - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PropValueOuterClass.internal_static_PropValue_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PropValueOuterClass.PropValue.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue build() { - emu.grasscutter.net.proto.PropValueOuterClass.PropValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue buildPartial() { - emu.grasscutter.net.proto.PropValueOuterClass.PropValue result = new emu.grasscutter.net.proto.PropValueOuterClass.PropValue(this); - result.type_ = type_; - if (valueCase_ == 2) { - result.value_ = value_; - } - if (valueCase_ == 3) { - result.value_ = value_; - } - result.val_ = val_; - result.valueCase_ = valueCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PropValueOuterClass.PropValue) { - return mergeFrom((emu.grasscutter.net.proto.PropValueOuterClass.PropValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PropValueOuterClass.PropValue other) { - if (other == emu.grasscutter.net.proto.PropValueOuterClass.PropValue.getDefaultInstance()) return this; - if (other.getType() != 0) { - setType(other.getType()); - } - if (other.getVal() != 0) { - setVal(other.getVal()); - } - switch (other.getValueCase()) { - case IVAL: { - setIval(other.getIval()); - break; - } - case FVAL: { - setFval(other.getFval()); - break; - } - case VALUE_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PropValueOuterClass.PropValue parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PropValueOuterClass.PropValue) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - private int type_ ; - /** - * <code>uint32 type = 1;</code> - * @return The type. - */ - @java.lang.Override - public int getType() { - return type_; - } - /** - * <code>uint32 type = 1;</code> - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 type = 1;</code> - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - /** - * <code>uint32 ival = 2;</code> - * @return Whether the ival field is set. - */ - public boolean hasIval() { - return valueCase_ == 2; - } - /** - * <code>uint32 ival = 2;</code> - * @return The ival. - */ - public int getIval() { - if (valueCase_ == 2) { - return (java.lang.Integer) value_; - } - return 0; - } - /** - * <code>uint32 ival = 2;</code> - * @param value The ival to set. - * @return This builder for chaining. - */ - public Builder setIval(int value) { - valueCase_ = 2; - value_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 ival = 2;</code> - * @return This builder for chaining. - */ - public Builder clearIval() { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - /** - * <code>float fval = 3;</code> - * @return Whether the fval field is set. - */ - public boolean hasFval() { - return valueCase_ == 3; - } - /** - * <code>float fval = 3;</code> - * @return The fval. - */ - public float getFval() { - if (valueCase_ == 3) { - return (java.lang.Float) value_; - } - return 0F; - } - /** - * <code>float fval = 3;</code> - * @param value The fval to set. - * @return This builder for chaining. - */ - public Builder setFval(float value) { - valueCase_ = 3; - value_ = value; - onChanged(); - return this; - } - /** - * <code>float fval = 3;</code> - * @return This builder for chaining. - */ - public Builder clearFval() { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - private int val_ ; - /** - * <code>uint32 val = 4;</code> - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * <code>uint32 val = 4;</code> - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 val = 4;</code> - * @return This builder for chaining. - */ - public Builder clearVal() { - - val_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PropValue) - } - - // @@protoc_insertion_point(class_scope:PropValue) - private static final emu.grasscutter.net.proto.PropValueOuterClass.PropValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PropValueOuterClass.PropValue(); - } - - public static emu.grasscutter.net.proto.PropValueOuterClass.PropValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PropValue> - PARSER = new com.google.protobuf.AbstractParser<PropValue>() { - @java.lang.Override - public PropValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PropValue(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PropValue> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PropValue> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PropValue_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PropValue_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\017PropValue.proto\"O\n\tPropValue\022\014\n\004type\030\001" + - " \001(\r\022\016\n\004ival\030\002 \001(\rH\000\022\016\n\004fval\030\003 \001(\002H\000\022\013\n\003" + - "val\030\004 \001(\rB\007\n\005valueB\033\n\031emu.grasscutter.ne" + - "t.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_PropValue_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PropValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PropValue_descriptor, - new java.lang.String[] { "Type", "Ival", "Fval", "Val", "Value", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ProtEntityTypeOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ProtEntityTypeOuterClass.java deleted file mode 100644 index 8ce634b18..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ProtEntityTypeOuterClass.java +++ /dev/null @@ -1,270 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ProtEntityType.proto - -package emu.grasscutter.net.proto; - -public final class ProtEntityTypeOuterClass { - private ProtEntityTypeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code ProtEntityType} - */ - public enum ProtEntityType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>ProtEntityNone = 0;</code> - */ - ProtEntityNone(0), - /** - * <code>ProtEntityAvatar = 1;</code> - */ - ProtEntityAvatar(1), - /** - * <code>ProtEntityMonster = 2;</code> - */ - ProtEntityMonster(2), - /** - * <code>ProtEntityNpc = 3;</code> - */ - ProtEntityNpc(3), - /** - * <code>ProtEntityGadget = 4;</code> - */ - ProtEntityGadget(4), - /** - * <code>ProtEntityRegion = 5;</code> - */ - ProtEntityRegion(5), - /** - * <code>ProtEntityWeapon = 6;</code> - */ - ProtEntityWeapon(6), - /** - * <code>ProtEntityWeather = 7;</code> - */ - ProtEntityWeather(7), - /** - * <code>ProtEntityScene = 8;</code> - */ - ProtEntityScene(8), - /** - * <code>ProtEntityTeam = 9;</code> - */ - ProtEntityTeam(9), - /** - * <code>ProtEntityMassiveEntity = 10;</code> - */ - ProtEntityMassiveEntity(10), - /** - * <code>ProtEntityMpLevel = 11;</code> - */ - ProtEntityMpLevel(11), - /** - * <code>ProtEntityPlayTeamEntity = 12;</code> - */ - ProtEntityPlayTeamEntity(12), - /** - * <code>ProtEntityEyePoint = 13;</code> - */ - ProtEntityEyePoint(13), - /** - * <code>ProtEntityMax = 14;</code> - */ - ProtEntityMax(14), - UNRECOGNIZED(-1), - ; - - /** - * <code>ProtEntityNone = 0;</code> - */ - public static final int ProtEntityNone_VALUE = 0; - /** - * <code>ProtEntityAvatar = 1;</code> - */ - public static final int ProtEntityAvatar_VALUE = 1; - /** - * <code>ProtEntityMonster = 2;</code> - */ - public static final int ProtEntityMonster_VALUE = 2; - /** - * <code>ProtEntityNpc = 3;</code> - */ - public static final int ProtEntityNpc_VALUE = 3; - /** - * <code>ProtEntityGadget = 4;</code> - */ - public static final int ProtEntityGadget_VALUE = 4; - /** - * <code>ProtEntityRegion = 5;</code> - */ - public static final int ProtEntityRegion_VALUE = 5; - /** - * <code>ProtEntityWeapon = 6;</code> - */ - public static final int ProtEntityWeapon_VALUE = 6; - /** - * <code>ProtEntityWeather = 7;</code> - */ - public static final int ProtEntityWeather_VALUE = 7; - /** - * <code>ProtEntityScene = 8;</code> - */ - public static final int ProtEntityScene_VALUE = 8; - /** - * <code>ProtEntityTeam = 9;</code> - */ - public static final int ProtEntityTeam_VALUE = 9; - /** - * <code>ProtEntityMassiveEntity = 10;</code> - */ - public static final int ProtEntityMassiveEntity_VALUE = 10; - /** - * <code>ProtEntityMpLevel = 11;</code> - */ - public static final int ProtEntityMpLevel_VALUE = 11; - /** - * <code>ProtEntityPlayTeamEntity = 12;</code> - */ - public static final int ProtEntityPlayTeamEntity_VALUE = 12; - /** - * <code>ProtEntityEyePoint = 13;</code> - */ - public static final int ProtEntityEyePoint_VALUE = 13; - /** - * <code>ProtEntityMax = 14;</code> - */ - public static final int ProtEntityMax_VALUE = 14; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ProtEntityType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static ProtEntityType forNumber(int value) { - switch (value) { - case 0: return ProtEntityNone; - case 1: return ProtEntityAvatar; - case 2: return ProtEntityMonster; - case 3: return ProtEntityNpc; - case 4: return ProtEntityGadget; - case 5: return ProtEntityRegion; - case 6: return ProtEntityWeapon; - case 7: return ProtEntityWeather; - case 8: return ProtEntityScene; - case 9: return ProtEntityTeam; - case 10: return ProtEntityMassiveEntity; - case 11: return ProtEntityMpLevel; - case 12: return ProtEntityPlayTeamEntity; - case 13: return ProtEntityEyePoint; - case 14: return ProtEntityMax; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<ProtEntityType> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ProtEntityType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<ProtEntityType>() { - public ProtEntityType findValueByNumber(int number) { - return ProtEntityType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.ProtEntityTypeOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final ProtEntityType[] VALUES = values(); - - public static ProtEntityType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ProtEntityType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:ProtEntityType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024ProtEntityType.proto*\343\002\n\016ProtEntityTyp" + - "e\022\022\n\016ProtEntityNone\020\000\022\024\n\020ProtEntityAvata" + - "r\020\001\022\025\n\021ProtEntityMonster\020\002\022\021\n\rProtEntity" + - "Npc\020\003\022\024\n\020ProtEntityGadget\020\004\022\024\n\020ProtEntit" + - "yRegion\020\005\022\024\n\020ProtEntityWeapon\020\006\022\025\n\021ProtE" + - "ntityWeather\020\007\022\023\n\017ProtEntityScene\020\010\022\022\n\016P" + - "rotEntityTeam\020\t\022\033\n\027ProtEntityMassiveEnti" + - "ty\020\n\022\025\n\021ProtEntityMpLevel\020\013\022\034\n\030ProtEntit" + - "yPlayTeamEntity\020\014\022\026\n\022ProtEntityEyePoint\020" + - "\r\022\021\n\rProtEntityMax\020\016B\033\n\031emu.grasscutter." + - "net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ProudSkillChangeNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ProudSkillChangeNotifyOuterClass.java deleted file mode 100644 index e4f986585..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ProudSkillChangeNotifyOuterClass.java +++ /dev/null @@ -1,876 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ProudSkillChangeNotify.proto - -package emu.grasscutter.net.proto; - -public final class ProudSkillChangeNotifyOuterClass { - private ProudSkillChangeNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ProudSkillChangeNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:ProudSkillChangeNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>uint32 entityId = 2;</code> - * @return The entityId. - */ - int getEntityId(); - - /** - * <code>uint32 skillDepotId = 3;</code> - * @return The skillDepotId. - */ - int getSkillDepotId(); - - /** - * <code>repeated uint32 proudSkillList = 4;</code> - * @return A list containing the proudSkillList. - */ - java.util.List<java.lang.Integer> getProudSkillListList(); - /** - * <code>repeated uint32 proudSkillList = 4;</code> - * @return The count of proudSkillList. - */ - int getProudSkillListCount(); - /** - * <code>repeated uint32 proudSkillList = 4;</code> - * @param index The index of the element to return. - * @return The proudSkillList at the given index. - */ - int getProudSkillList(int index); - } - /** - * Protobuf type {@code ProudSkillChangeNotify} - */ - public static final class ProudSkillChangeNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ProudSkillChangeNotify) - ProudSkillChangeNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProudSkillChangeNotify.newBuilder() to construct. - private ProudSkillChangeNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ProudSkillChangeNotify() { - proudSkillList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ProudSkillChangeNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProudSkillChangeNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 16: { - - entityId_ = input.readUInt32(); - break; - } - case 24: { - - skillDepotId_ = input.readUInt32(); - break; - } - case 32: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - proudSkillList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - proudSkillList_.addInt(input.readUInt32()); - break; - } - case 34: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - proudSkillList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - proudSkillList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - proudSkillList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.internal_static_ProudSkillChangeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.internal_static_ProudSkillChangeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify.class, emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify.Builder.class); - } - - public static final int AVATARGUID_FIELD_NUMBER = 1; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int ENTITYID_FIELD_NUMBER = 2; - private int entityId_; - /** - * <code>uint32 entityId = 2;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - - public static final int SKILLDEPOTID_FIELD_NUMBER = 3; - private int skillDepotId_; - /** - * <code>uint32 skillDepotId = 3;</code> - * @return The skillDepotId. - */ - @java.lang.Override - public int getSkillDepotId() { - return skillDepotId_; - } - - public static final int PROUDSKILLLIST_FIELD_NUMBER = 4; - private com.google.protobuf.Internal.IntList proudSkillList_; - /** - * <code>repeated uint32 proudSkillList = 4;</code> - * @return A list containing the proudSkillList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getProudSkillListList() { - return proudSkillList_; - } - /** - * <code>repeated uint32 proudSkillList = 4;</code> - * @return The count of proudSkillList. - */ - public int getProudSkillListCount() { - return proudSkillList_.size(); - } - /** - * <code>repeated uint32 proudSkillList = 4;</code> - * @param index The index of the element to return. - * @return The proudSkillList at the given index. - */ - public int getProudSkillList(int index) { - return proudSkillList_.getInt(index); - } - private int proudSkillListMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (avatarGuid_ != 0L) { - output.writeUInt64(1, avatarGuid_); - } - if (entityId_ != 0) { - output.writeUInt32(2, entityId_); - } - if (skillDepotId_ != 0) { - output.writeUInt32(3, skillDepotId_); - } - if (getProudSkillListList().size() > 0) { - output.writeUInt32NoTag(34); - output.writeUInt32NoTag(proudSkillListMemoizedSerializedSize); - } - for (int i = 0; i < proudSkillList_.size(); i++) { - output.writeUInt32NoTag(proudSkillList_.getInt(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, avatarGuid_); - } - if (entityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, entityId_); - } - if (skillDepotId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, skillDepotId_); - } - { - int dataSize = 0; - for (int i = 0; i < proudSkillList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(proudSkillList_.getInt(i)); - } - size += dataSize; - if (!getProudSkillListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - proudSkillListMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify other = (emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify) obj; - - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (getEntityId() - != other.getEntityId()) return false; - if (getSkillDepotId() - != other.getSkillDepotId()) return false; - if (!getProudSkillListList() - .equals(other.getProudSkillListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - hash = (37 * hash) + ENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId(); - hash = (37 * hash) + SKILLDEPOTID_FIELD_NUMBER; - hash = (53 * hash) + getSkillDepotId(); - if (getProudSkillListCount() > 0) { - hash = (37 * hash) + PROUDSKILLLIST_FIELD_NUMBER; - hash = (53 * hash) + getProudSkillListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ProudSkillChangeNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ProudSkillChangeNotify) - emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.internal_static_ProudSkillChangeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.internal_static_ProudSkillChangeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify.class, emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - avatarGuid_ = 0L; - - entityId_ = 0; - - skillDepotId_ = 0; - - proudSkillList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.internal_static_ProudSkillChangeNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify build() { - emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify buildPartial() { - emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify result = new emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify(this); - int from_bitField0_ = bitField0_; - result.avatarGuid_ = avatarGuid_; - result.entityId_ = entityId_; - result.skillDepotId_ = skillDepotId_; - if (((bitField0_ & 0x00000001) != 0)) { - proudSkillList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.proudSkillList_ = proudSkillList_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify) { - return mergeFrom((emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify other) { - if (other == emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify.getDefaultInstance()) return this; - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - if (other.getEntityId() != 0) { - setEntityId(other.getEntityId()); - } - if (other.getSkillDepotId() != 0) { - setSkillDepotId(other.getSkillDepotId()); - } - if (!other.proudSkillList_.isEmpty()) { - if (proudSkillList_.isEmpty()) { - proudSkillList_ = other.proudSkillList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureProudSkillListIsMutable(); - proudSkillList_.addAll(other.proudSkillList_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private int entityId_ ; - /** - * <code>uint32 entityId = 2;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - /** - * <code>uint32 entityId = 2;</code> - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId(int value) { - - entityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 entityId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearEntityId() { - - entityId_ = 0; - onChanged(); - return this; - } - - private int skillDepotId_ ; - /** - * <code>uint32 skillDepotId = 3;</code> - * @return The skillDepotId. - */ - @java.lang.Override - public int getSkillDepotId() { - return skillDepotId_; - } - /** - * <code>uint32 skillDepotId = 3;</code> - * @param value The skillDepotId to set. - * @return This builder for chaining. - */ - public Builder setSkillDepotId(int value) { - - skillDepotId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 skillDepotId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearSkillDepotId() { - - skillDepotId_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList proudSkillList_ = emptyIntList(); - private void ensureProudSkillListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - proudSkillList_ = mutableCopy(proudSkillList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 proudSkillList = 4;</code> - * @return A list containing the proudSkillList. - */ - public java.util.List<java.lang.Integer> - getProudSkillListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(proudSkillList_) : proudSkillList_; - } - /** - * <code>repeated uint32 proudSkillList = 4;</code> - * @return The count of proudSkillList. - */ - public int getProudSkillListCount() { - return proudSkillList_.size(); - } - /** - * <code>repeated uint32 proudSkillList = 4;</code> - * @param index The index of the element to return. - * @return The proudSkillList at the given index. - */ - public int getProudSkillList(int index) { - return proudSkillList_.getInt(index); - } - /** - * <code>repeated uint32 proudSkillList = 4;</code> - * @param index The index to set the value at. - * @param value The proudSkillList to set. - * @return This builder for chaining. - */ - public Builder setProudSkillList( - int index, int value) { - ensureProudSkillListIsMutable(); - proudSkillList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 proudSkillList = 4;</code> - * @param value The proudSkillList to add. - * @return This builder for chaining. - */ - public Builder addProudSkillList(int value) { - ensureProudSkillListIsMutable(); - proudSkillList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 proudSkillList = 4;</code> - * @param values The proudSkillList to add. - * @return This builder for chaining. - */ - public Builder addAllProudSkillList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureProudSkillListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, proudSkillList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 proudSkillList = 4;</code> - * @return This builder for chaining. - */ - public Builder clearProudSkillList() { - proudSkillList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ProudSkillChangeNotify) - } - - // @@protoc_insertion_point(class_scope:ProudSkillChangeNotify) - private static final emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify(); - } - - public static emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ProudSkillChangeNotify> - PARSER = new com.google.protobuf.AbstractParser<ProudSkillChangeNotify>() { - @java.lang.Override - public ProudSkillChangeNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProudSkillChangeNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ProudSkillChangeNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ProudSkillChangeNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ProudSkillChangeNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ProudSkillChangeNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034ProudSkillChangeNotify.proto\"l\n\026ProudS" + - "killChangeNotify\022\022\n\navatarGuid\030\001 \001(\004\022\020\n\010" + - "entityId\030\002 \001(\r\022\024\n\014skillDepotId\030\003 \001(\r\022\026\n\016" + - "proudSkillList\030\004 \003(\rB\033\n\031emu.grasscutter." + - "net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ProudSkillChangeNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ProudSkillChangeNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ProudSkillChangeNotify_descriptor, - new java.lang.String[] { "AvatarGuid", "EntityId", "SkillDepotId", "ProudSkillList", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ProudSkillExtraLevelNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ProudSkillExtraLevelNotifyOuterClass.java deleted file mode 100644 index 77c0c9402..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ProudSkillExtraLevelNotifyOuterClass.java +++ /dev/null @@ -1,749 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ProudSkillExtraLevelNotify.proto - -package emu.grasscutter.net.proto; - -public final class ProudSkillExtraLevelNotifyOuterClass { - private ProudSkillExtraLevelNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ProudSkillExtraLevelNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:ProudSkillExtraLevelNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>uint32 talentType = 2;</code> - * @return The talentType. - */ - int getTalentType(); - - /** - * <code>uint32 talentIndex = 3;</code> - * @return The talentIndex. - */ - int getTalentIndex(); - - /** - * <code>uint32 extraLevel = 4;</code> - * @return The extraLevel. - */ - int getExtraLevel(); - } - /** - * Protobuf type {@code ProudSkillExtraLevelNotify} - */ - public static final class ProudSkillExtraLevelNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ProudSkillExtraLevelNotify) - ProudSkillExtraLevelNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProudSkillExtraLevelNotify.newBuilder() to construct. - private ProudSkillExtraLevelNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ProudSkillExtraLevelNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ProudSkillExtraLevelNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProudSkillExtraLevelNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 16: { - - talentType_ = input.readUInt32(); - break; - } - case 24: { - - talentIndex_ = input.readUInt32(); - break; - } - case 32: { - - extraLevel_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.internal_static_ProudSkillExtraLevelNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.internal_static_ProudSkillExtraLevelNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify.class, emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify.Builder.class); - } - - public static final int AVATARGUID_FIELD_NUMBER = 1; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int TALENTTYPE_FIELD_NUMBER = 2; - private int talentType_; - /** - * <code>uint32 talentType = 2;</code> - * @return The talentType. - */ - @java.lang.Override - public int getTalentType() { - return talentType_; - } - - public static final int TALENTINDEX_FIELD_NUMBER = 3; - private int talentIndex_; - /** - * <code>uint32 talentIndex = 3;</code> - * @return The talentIndex. - */ - @java.lang.Override - public int getTalentIndex() { - return talentIndex_; - } - - public static final int EXTRALEVEL_FIELD_NUMBER = 4; - private int extraLevel_; - /** - * <code>uint32 extraLevel = 4;</code> - * @return The extraLevel. - */ - @java.lang.Override - public int getExtraLevel() { - return extraLevel_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (avatarGuid_ != 0L) { - output.writeUInt64(1, avatarGuid_); - } - if (talentType_ != 0) { - output.writeUInt32(2, talentType_); - } - if (talentIndex_ != 0) { - output.writeUInt32(3, talentIndex_); - } - if (extraLevel_ != 0) { - output.writeUInt32(4, extraLevel_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, avatarGuid_); - } - if (talentType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, talentType_); - } - if (talentIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, talentIndex_); - } - if (extraLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, extraLevel_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify other = (emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify) obj; - - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (getTalentType() - != other.getTalentType()) return false; - if (getTalentIndex() - != other.getTalentIndex()) return false; - if (getExtraLevel() - != other.getExtraLevel()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - hash = (37 * hash) + TALENTTYPE_FIELD_NUMBER; - hash = (53 * hash) + getTalentType(); - hash = (37 * hash) + TALENTINDEX_FIELD_NUMBER; - hash = (53 * hash) + getTalentIndex(); - hash = (37 * hash) + EXTRALEVEL_FIELD_NUMBER; - hash = (53 * hash) + getExtraLevel(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ProudSkillExtraLevelNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ProudSkillExtraLevelNotify) - emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.internal_static_ProudSkillExtraLevelNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.internal_static_ProudSkillExtraLevelNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify.class, emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - avatarGuid_ = 0L; - - talentType_ = 0; - - talentIndex_ = 0; - - extraLevel_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.internal_static_ProudSkillExtraLevelNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify build() { - emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify buildPartial() { - emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify result = new emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify(this); - result.avatarGuid_ = avatarGuid_; - result.talentType_ = talentType_; - result.talentIndex_ = talentIndex_; - result.extraLevel_ = extraLevel_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify) { - return mergeFrom((emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify other) { - if (other == emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify.getDefaultInstance()) return this; - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - if (other.getTalentType() != 0) { - setTalentType(other.getTalentType()); - } - if (other.getTalentIndex() != 0) { - setTalentIndex(other.getTalentIndex()); - } - if (other.getExtraLevel() != 0) { - setExtraLevel(other.getExtraLevel()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private int talentType_ ; - /** - * <code>uint32 talentType = 2;</code> - * @return The talentType. - */ - @java.lang.Override - public int getTalentType() { - return talentType_; - } - /** - * <code>uint32 talentType = 2;</code> - * @param value The talentType to set. - * @return This builder for chaining. - */ - public Builder setTalentType(int value) { - - talentType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 talentType = 2;</code> - * @return This builder for chaining. - */ - public Builder clearTalentType() { - - talentType_ = 0; - onChanged(); - return this; - } - - private int talentIndex_ ; - /** - * <code>uint32 talentIndex = 3;</code> - * @return The talentIndex. - */ - @java.lang.Override - public int getTalentIndex() { - return talentIndex_; - } - /** - * <code>uint32 talentIndex = 3;</code> - * @param value The talentIndex to set. - * @return This builder for chaining. - */ - public Builder setTalentIndex(int value) { - - talentIndex_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 talentIndex = 3;</code> - * @return This builder for chaining. - */ - public Builder clearTalentIndex() { - - talentIndex_ = 0; - onChanged(); - return this; - } - - private int extraLevel_ ; - /** - * <code>uint32 extraLevel = 4;</code> - * @return The extraLevel. - */ - @java.lang.Override - public int getExtraLevel() { - return extraLevel_; - } - /** - * <code>uint32 extraLevel = 4;</code> - * @param value The extraLevel to set. - * @return This builder for chaining. - */ - public Builder setExtraLevel(int value) { - - extraLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 extraLevel = 4;</code> - * @return This builder for chaining. - */ - public Builder clearExtraLevel() { - - extraLevel_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ProudSkillExtraLevelNotify) - } - - // @@protoc_insertion_point(class_scope:ProudSkillExtraLevelNotify) - private static final emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify(); - } - - public static emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ProudSkillExtraLevelNotify> - PARSER = new com.google.protobuf.AbstractParser<ProudSkillExtraLevelNotify>() { - @java.lang.Override - public ProudSkillExtraLevelNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProudSkillExtraLevelNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ProudSkillExtraLevelNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ProudSkillExtraLevelNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ProudSkillExtraLevelNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ProudSkillExtraLevelNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n ProudSkillExtraLevelNotify.proto\"m\n\032Pr" + - "oudSkillExtraLevelNotify\022\022\n\navatarGuid\030\001" + - " \001(\004\022\022\n\ntalentType\030\002 \001(\r\022\023\n\013talentIndex\030" + - "\003 \001(\r\022\022\n\nextraLevel\030\004 \001(\rB\033\n\031emu.grasscu" + - "tter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ProudSkillExtraLevelNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ProudSkillExtraLevelNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ProudSkillExtraLevelNotify_descriptor, - new java.lang.String[] { "AvatarGuid", "TalentType", "TalentIndex", "ExtraLevel", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PullPrivateChatReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PullPrivateChatReqOuterClass.java deleted file mode 100644 index 5609065be..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PullPrivateChatReqOuterClass.java +++ /dev/null @@ -1,677 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PullPrivateChatReq.proto - -package emu.grasscutter.net.proto; - -public final class PullPrivateChatReqOuterClass { - private PullPrivateChatReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PullPrivateChatReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:PullPrivateChatReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - int getTargetUid(); - - /** - * <code>uint32 fromSequence = 2;</code> - * @return The fromSequence. - */ - int getFromSequence(); - - /** - * <code>uint32 pullNum = 3;</code> - * @return The pullNum. - */ - int getPullNum(); - } - /** - * Protobuf type {@code PullPrivateChatReq} - */ - public static final class PullPrivateChatReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PullPrivateChatReq) - PullPrivateChatReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use PullPrivateChatReq.newBuilder() to construct. - private PullPrivateChatReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PullPrivateChatReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PullPrivateChatReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PullPrivateChatReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - targetUid_ = input.readUInt32(); - break; - } - case 16: { - - fromSequence_ = input.readUInt32(); - break; - } - case 24: { - - pullNum_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.internal_static_PullPrivateChatReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.internal_static_PullPrivateChatReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq.class, emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq.Builder.class); - } - - public static final int TARGETUID_FIELD_NUMBER = 1; - private int targetUid_; - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - - public static final int FROMSEQUENCE_FIELD_NUMBER = 2; - private int fromSequence_; - /** - * <code>uint32 fromSequence = 2;</code> - * @return The fromSequence. - */ - @java.lang.Override - public int getFromSequence() { - return fromSequence_; - } - - public static final int PULLNUM_FIELD_NUMBER = 3; - private int pullNum_; - /** - * <code>uint32 pullNum = 3;</code> - * @return The pullNum. - */ - @java.lang.Override - public int getPullNum() { - return pullNum_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (targetUid_ != 0) { - output.writeUInt32(1, targetUid_); - } - if (fromSequence_ != 0) { - output.writeUInt32(2, fromSequence_); - } - if (pullNum_ != 0) { - output.writeUInt32(3, pullNum_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (targetUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, targetUid_); - } - if (fromSequence_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, fromSequence_); - } - if (pullNum_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, pullNum_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq other = (emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq) obj; - - if (getTargetUid() - != other.getTargetUid()) return false; - if (getFromSequence() - != other.getFromSequence()) return false; - if (getPullNum() - != other.getPullNum()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TARGETUID_FIELD_NUMBER; - hash = (53 * hash) + getTargetUid(); - hash = (37 * hash) + FROMSEQUENCE_FIELD_NUMBER; - hash = (53 * hash) + getFromSequence(); - hash = (37 * hash) + PULLNUM_FIELD_NUMBER; - hash = (53 * hash) + getPullNum(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PullPrivateChatReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PullPrivateChatReq) - emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.internal_static_PullPrivateChatReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.internal_static_PullPrivateChatReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq.class, emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - targetUid_ = 0; - - fromSequence_ = 0; - - pullNum_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.internal_static_PullPrivateChatReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq build() { - emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq buildPartial() { - emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq result = new emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq(this); - result.targetUid_ = targetUid_; - result.fromSequence_ = fromSequence_; - result.pullNum_ = pullNum_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq) { - return mergeFrom((emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq other) { - if (other == emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq.getDefaultInstance()) return this; - if (other.getTargetUid() != 0) { - setTargetUid(other.getTargetUid()); - } - if (other.getFromSequence() != 0) { - setFromSequence(other.getFromSequence()); - } - if (other.getPullNum() != 0) { - setPullNum(other.getPullNum()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int targetUid_ ; - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - /** - * <code>uint32 targetUid = 1;</code> - * @param value The targetUid to set. - * @return This builder for chaining. - */ - public Builder setTargetUid(int value) { - - targetUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 targetUid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTargetUid() { - - targetUid_ = 0; - onChanged(); - return this; - } - - private int fromSequence_ ; - /** - * <code>uint32 fromSequence = 2;</code> - * @return The fromSequence. - */ - @java.lang.Override - public int getFromSequence() { - return fromSequence_; - } - /** - * <code>uint32 fromSequence = 2;</code> - * @param value The fromSequence to set. - * @return This builder for chaining. - */ - public Builder setFromSequence(int value) { - - fromSequence_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 fromSequence = 2;</code> - * @return This builder for chaining. - */ - public Builder clearFromSequence() { - - fromSequence_ = 0; - onChanged(); - return this; - } - - private int pullNum_ ; - /** - * <code>uint32 pullNum = 3;</code> - * @return The pullNum. - */ - @java.lang.Override - public int getPullNum() { - return pullNum_; - } - /** - * <code>uint32 pullNum = 3;</code> - * @param value The pullNum to set. - * @return This builder for chaining. - */ - public Builder setPullNum(int value) { - - pullNum_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 pullNum = 3;</code> - * @return This builder for chaining. - */ - public Builder clearPullNum() { - - pullNum_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PullPrivateChatReq) - } - - // @@protoc_insertion_point(class_scope:PullPrivateChatReq) - private static final emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq(); - } - - public static emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PullPrivateChatReq> - PARSER = new com.google.protobuf.AbstractParser<PullPrivateChatReq>() { - @java.lang.Override - public PullPrivateChatReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PullPrivateChatReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PullPrivateChatReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PullPrivateChatReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PullPrivateChatReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PullPrivateChatReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030PullPrivateChatReq.proto\"N\n\022PullPrivat" + - "eChatReq\022\021\n\ttargetUid\030\001 \001(\r\022\024\n\014fromSeque" + - "nce\030\002 \001(\r\022\017\n\007pullNum\030\003 \001(\rB\033\n\031emu.grassc" + - "utter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_PullPrivateChatReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PullPrivateChatReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PullPrivateChatReq_descriptor, - new java.lang.String[] { "TargetUid", "FromSequence", "PullNum", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PullPrivateChatRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PullPrivateChatRspOuterClass.java deleted file mode 100644 index 4df988574..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PullPrivateChatRspOuterClass.java +++ /dev/null @@ -1,914 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PullPrivateChatRsp.proto - -package emu.grasscutter.net.proto; - -public final class PullPrivateChatRspOuterClass { - private PullPrivateChatRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PullPrivateChatRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:PullPrivateChatRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - java.util.List<emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo> - getChatInfoList(); - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo(int index); - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - int getChatInfoCount(); - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder> - getChatInfoOrBuilderList(); - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder getChatInfoOrBuilder( - int index); - } - /** - * Protobuf type {@code PullPrivateChatRsp} - */ - public static final class PullPrivateChatRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PullPrivateChatRsp) - PullPrivateChatRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use PullPrivateChatRsp.newBuilder() to construct. - private PullPrivateChatRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PullPrivateChatRsp() { - chatInfo_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PullPrivateChatRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PullPrivateChatRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - chatInfo_ = new java.util.ArrayList<emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo>(); - mutable_bitField0_ |= 0x00000001; - } - chatInfo_.add( - input.readMessage(emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - chatInfo_ = java.util.Collections.unmodifiableList(chatInfo_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.internal_static_PullPrivateChatRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.internal_static_PullPrivateChatRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp.class, emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int CHATINFO_FIELD_NUMBER = 2; - private java.util.List<emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo> chatInfo_; - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo> getChatInfoList() { - return chatInfo_; - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder> - getChatInfoOrBuilderList() { - return chatInfo_; - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - @java.lang.Override - public int getChatInfoCount() { - return chatInfo_.size(); - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo(int index) { - return chatInfo_.get(index); - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder getChatInfoOrBuilder( - int index) { - return chatInfo_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - for (int i = 0; i < chatInfo_.size(); i++) { - output.writeMessage(2, chatInfo_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - for (int i = 0; i < chatInfo_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, chatInfo_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp other = (emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (!getChatInfoList() - .equals(other.getChatInfoList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - if (getChatInfoCount() > 0) { - hash = (37 * hash) + CHATINFO_FIELD_NUMBER; - hash = (53 * hash) + getChatInfoList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PullPrivateChatRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PullPrivateChatRsp) - emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.internal_static_PullPrivateChatRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.internal_static_PullPrivateChatRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp.class, emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getChatInfoFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - if (chatInfoBuilder_ == null) { - chatInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - chatInfoBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.internal_static_PullPrivateChatRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp build() { - emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp buildPartial() { - emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp result = new emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp(this); - int from_bitField0_ = bitField0_; - result.retcode_ = retcode_; - if (chatInfoBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - chatInfo_ = java.util.Collections.unmodifiableList(chatInfo_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.chatInfo_ = chatInfo_; - } else { - result.chatInfo_ = chatInfoBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp) { - return mergeFrom((emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp other) { - if (other == emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (chatInfoBuilder_ == null) { - if (!other.chatInfo_.isEmpty()) { - if (chatInfo_.isEmpty()) { - chatInfo_ = other.chatInfo_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureChatInfoIsMutable(); - chatInfo_.addAll(other.chatInfo_); - } - onChanged(); - } - } else { - if (!other.chatInfo_.isEmpty()) { - if (chatInfoBuilder_.isEmpty()) { - chatInfoBuilder_.dispose(); - chatInfoBuilder_ = null; - chatInfo_ = other.chatInfo_; - bitField0_ = (bitField0_ & ~0x00000001); - chatInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getChatInfoFieldBuilder() : null; - } else { - chatInfoBuilder_.addAllMessages(other.chatInfo_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo> chatInfo_ = - java.util.Collections.emptyList(); - private void ensureChatInfoIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - chatInfo_ = new java.util.ArrayList<emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo>(chatInfo_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder> chatInfoBuilder_; - - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo> getChatInfoList() { - if (chatInfoBuilder_ == null) { - return java.util.Collections.unmodifiableList(chatInfo_); - } else { - return chatInfoBuilder_.getMessageList(); - } - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public int getChatInfoCount() { - if (chatInfoBuilder_ == null) { - return chatInfo_.size(); - } else { - return chatInfoBuilder_.getCount(); - } - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo(int index) { - if (chatInfoBuilder_ == null) { - return chatInfo_.get(index); - } else { - return chatInfoBuilder_.getMessage(index); - } - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public Builder setChatInfo( - int index, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo value) { - if (chatInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChatInfoIsMutable(); - chatInfo_.set(index, value); - onChanged(); - } else { - chatInfoBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public Builder setChatInfo( - int index, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder builderForValue) { - if (chatInfoBuilder_ == null) { - ensureChatInfoIsMutable(); - chatInfo_.set(index, builderForValue.build()); - onChanged(); - } else { - chatInfoBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public Builder addChatInfo(emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo value) { - if (chatInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChatInfoIsMutable(); - chatInfo_.add(value); - onChanged(); - } else { - chatInfoBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public Builder addChatInfo( - int index, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo value) { - if (chatInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChatInfoIsMutable(); - chatInfo_.add(index, value); - onChanged(); - } else { - chatInfoBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public Builder addChatInfo( - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder builderForValue) { - if (chatInfoBuilder_ == null) { - ensureChatInfoIsMutable(); - chatInfo_.add(builderForValue.build()); - onChanged(); - } else { - chatInfoBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public Builder addChatInfo( - int index, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder builderForValue) { - if (chatInfoBuilder_ == null) { - ensureChatInfoIsMutable(); - chatInfo_.add(index, builderForValue.build()); - onChanged(); - } else { - chatInfoBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public Builder addAllChatInfo( - java.lang.Iterable<? extends emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo> values) { - if (chatInfoBuilder_ == null) { - ensureChatInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, chatInfo_); - onChanged(); - } else { - chatInfoBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public Builder clearChatInfo() { - if (chatInfoBuilder_ == null) { - chatInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - chatInfoBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public Builder removeChatInfo(int index) { - if (chatInfoBuilder_ == null) { - ensureChatInfoIsMutable(); - chatInfo_.remove(index); - onChanged(); - } else { - chatInfoBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder getChatInfoBuilder( - int index) { - return getChatInfoFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder getChatInfoOrBuilder( - int index) { - if (chatInfoBuilder_ == null) { - return chatInfo_.get(index); } else { - return chatInfoBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder> - getChatInfoOrBuilderList() { - if (chatInfoBuilder_ != null) { - return chatInfoBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(chatInfo_); - } - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder addChatInfoBuilder() { - return getChatInfoFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.getDefaultInstance()); - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder addChatInfoBuilder( - int index) { - return getChatInfoFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.getDefaultInstance()); - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder> - getChatInfoBuilderList() { - return getChatInfoFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder> - getChatInfoFieldBuilder() { - if (chatInfoBuilder_ == null) { - chatInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder>( - chatInfo_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - chatInfo_ = null; - } - return chatInfoBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PullPrivateChatRsp) - } - - // @@protoc_insertion_point(class_scope:PullPrivateChatRsp) - private static final emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp(); - } - - public static emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PullPrivateChatRsp> - PARSER = new com.google.protobuf.AbstractParser<PullPrivateChatRsp>() { - @java.lang.Override - public PullPrivateChatRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PullPrivateChatRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PullPrivateChatRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PullPrivateChatRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PullPrivateChatRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PullPrivateChatRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030PullPrivateChatRsp.proto\032\016ChatInfo.pro" + - "to\"B\n\022PullPrivateChatRsp\022\017\n\007retcode\030\001 \001(" + - "\005\022\033\n\010chatInfo\030\002 \003(\0132\t.ChatInfoB\033\n\031emu.gr" + - "asscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ChatInfoOuterClass.getDescriptor(), - }); - internal_static_PullPrivateChatRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PullPrivateChatRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PullPrivateChatRsp_descriptor, - new java.lang.String[] { "Retcode", "ChatInfo", }); - emu.grasscutter.net.proto.ChatInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/PullRecentChatRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PullRecentChatRspOuterClass.java deleted file mode 100644 index 1c1661b78..000000000 --- a/src/main/java/emu/grasscutter/net/proto/PullRecentChatRspOuterClass.java +++ /dev/null @@ -1,914 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PullRecentChatRsp.proto - -package emu.grasscutter.net.proto; - -public final class PullRecentChatRspOuterClass { - private PullRecentChatRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PullRecentChatRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:PullRecentChatRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - java.util.List<emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo> - getChatInfoList(); - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo(int index); - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - int getChatInfoCount(); - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder> - getChatInfoOrBuilderList(); - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder getChatInfoOrBuilder( - int index); - } - /** - * Protobuf type {@code PullRecentChatRsp} - */ - public static final class PullRecentChatRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PullRecentChatRsp) - PullRecentChatRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use PullRecentChatRsp.newBuilder() to construct. - private PullRecentChatRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PullRecentChatRsp() { - chatInfo_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PullRecentChatRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PullRecentChatRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - chatInfo_ = new java.util.ArrayList<emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo>(); - mutable_bitField0_ |= 0x00000001; - } - chatInfo_.add( - input.readMessage(emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - chatInfo_ = java.util.Collections.unmodifiableList(chatInfo_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PullRecentChatRspOuterClass.internal_static_PullRecentChatRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PullRecentChatRspOuterClass.internal_static_PullRecentChatRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp.class, emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int CHATINFO_FIELD_NUMBER = 2; - private java.util.List<emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo> chatInfo_; - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo> getChatInfoList() { - return chatInfo_; - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder> - getChatInfoOrBuilderList() { - return chatInfo_; - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - @java.lang.Override - public int getChatInfoCount() { - return chatInfo_.size(); - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo(int index) { - return chatInfo_.get(index); - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder getChatInfoOrBuilder( - int index) { - return chatInfo_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - for (int i = 0; i < chatInfo_.size(); i++) { - output.writeMessage(2, chatInfo_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - for (int i = 0; i < chatInfo_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, chatInfo_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp other = (emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (!getChatInfoList() - .equals(other.getChatInfoList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - if (getChatInfoCount() > 0) { - hash = (37 * hash) + CHATINFO_FIELD_NUMBER; - hash = (53 * hash) + getChatInfoList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PullRecentChatRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:PullRecentChatRsp) - emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.PullRecentChatRspOuterClass.internal_static_PullRecentChatRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.PullRecentChatRspOuterClass.internal_static_PullRecentChatRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp.class, emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getChatInfoFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - if (chatInfoBuilder_ == null) { - chatInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - chatInfoBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.PullRecentChatRspOuterClass.internal_static_PullRecentChatRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp build() { - emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp buildPartial() { - emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp result = new emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp(this); - int from_bitField0_ = bitField0_; - result.retcode_ = retcode_; - if (chatInfoBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - chatInfo_ = java.util.Collections.unmodifiableList(chatInfo_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.chatInfo_ = chatInfo_; - } else { - result.chatInfo_ = chatInfoBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp) { - return mergeFrom((emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp other) { - if (other == emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (chatInfoBuilder_ == null) { - if (!other.chatInfo_.isEmpty()) { - if (chatInfo_.isEmpty()) { - chatInfo_ = other.chatInfo_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureChatInfoIsMutable(); - chatInfo_.addAll(other.chatInfo_); - } - onChanged(); - } - } else { - if (!other.chatInfo_.isEmpty()) { - if (chatInfoBuilder_.isEmpty()) { - chatInfoBuilder_.dispose(); - chatInfoBuilder_ = null; - chatInfo_ = other.chatInfo_; - bitField0_ = (bitField0_ & ~0x00000001); - chatInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getChatInfoFieldBuilder() : null; - } else { - chatInfoBuilder_.addAllMessages(other.chatInfo_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo> chatInfo_ = - java.util.Collections.emptyList(); - private void ensureChatInfoIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - chatInfo_ = new java.util.ArrayList<emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo>(chatInfo_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder> chatInfoBuilder_; - - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo> getChatInfoList() { - if (chatInfoBuilder_ == null) { - return java.util.Collections.unmodifiableList(chatInfo_); - } else { - return chatInfoBuilder_.getMessageList(); - } - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public int getChatInfoCount() { - if (chatInfoBuilder_ == null) { - return chatInfo_.size(); - } else { - return chatInfoBuilder_.getCount(); - } - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo(int index) { - if (chatInfoBuilder_ == null) { - return chatInfo_.get(index); - } else { - return chatInfoBuilder_.getMessage(index); - } - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public Builder setChatInfo( - int index, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo value) { - if (chatInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChatInfoIsMutable(); - chatInfo_.set(index, value); - onChanged(); - } else { - chatInfoBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public Builder setChatInfo( - int index, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder builderForValue) { - if (chatInfoBuilder_ == null) { - ensureChatInfoIsMutable(); - chatInfo_.set(index, builderForValue.build()); - onChanged(); - } else { - chatInfoBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public Builder addChatInfo(emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo value) { - if (chatInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChatInfoIsMutable(); - chatInfo_.add(value); - onChanged(); - } else { - chatInfoBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public Builder addChatInfo( - int index, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo value) { - if (chatInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChatInfoIsMutable(); - chatInfo_.add(index, value); - onChanged(); - } else { - chatInfoBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public Builder addChatInfo( - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder builderForValue) { - if (chatInfoBuilder_ == null) { - ensureChatInfoIsMutable(); - chatInfo_.add(builderForValue.build()); - onChanged(); - } else { - chatInfoBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public Builder addChatInfo( - int index, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder builderForValue) { - if (chatInfoBuilder_ == null) { - ensureChatInfoIsMutable(); - chatInfo_.add(index, builderForValue.build()); - onChanged(); - } else { - chatInfoBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public Builder addAllChatInfo( - java.lang.Iterable<? extends emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo> values) { - if (chatInfoBuilder_ == null) { - ensureChatInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, chatInfo_); - onChanged(); - } else { - chatInfoBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public Builder clearChatInfo() { - if (chatInfoBuilder_ == null) { - chatInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - chatInfoBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public Builder removeChatInfo(int index) { - if (chatInfoBuilder_ == null) { - ensureChatInfoIsMutable(); - chatInfo_.remove(index); - onChanged(); - } else { - chatInfoBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder getChatInfoBuilder( - int index) { - return getChatInfoFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder getChatInfoOrBuilder( - int index) { - if (chatInfoBuilder_ == null) { - return chatInfo_.get(index); } else { - return chatInfoBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder> - getChatInfoOrBuilderList() { - if (chatInfoBuilder_ != null) { - return chatInfoBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(chatInfo_); - } - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder addChatInfoBuilder() { - return getChatInfoFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.getDefaultInstance()); - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder addChatInfoBuilder( - int index) { - return getChatInfoFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.getDefaultInstance()); - } - /** - * <code>repeated .ChatInfo chatInfo = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder> - getChatInfoBuilderList() { - return getChatInfoFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder> - getChatInfoFieldBuilder() { - if (chatInfoBuilder_ == null) { - chatInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder>( - chatInfo_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - chatInfo_ = null; - } - return chatInfoBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PullRecentChatRsp) - } - - // @@protoc_insertion_point(class_scope:PullRecentChatRsp) - private static final emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp(); - } - - public static emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PullRecentChatRsp> - PARSER = new com.google.protobuf.AbstractParser<PullRecentChatRsp>() { - @java.lang.Override - public PullRecentChatRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PullRecentChatRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PullRecentChatRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PullRecentChatRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PullRecentChatRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PullRecentChatRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027PullRecentChatRsp.proto\032\016ChatInfo.prot" + - "o\"A\n\021PullRecentChatRsp\022\017\n\007retcode\030\001 \001(\005\022" + - "\033\n\010chatInfo\030\002 \003(\0132\t.ChatInfoB\033\n\031emu.gras" + - "scutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ChatInfoOuterClass.getDescriptor(), - }); - internal_static_PullRecentChatRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PullRecentChatRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PullRecentChatRsp_descriptor, - new java.lang.String[] { "Retcode", "ChatInfo", }); - emu.grasscutter.net.proto.ChatInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/QueryCurrRegionHttpRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/QueryCurrRegionHttpRspOuterClass.java deleted file mode 100644 index ad32a515d..000000000 --- a/src/main/java/emu/grasscutter/net/proto/QueryCurrRegionHttpRspOuterClass.java +++ /dev/null @@ -1,1118 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: QueryCurrRegionHttpRsp.proto - -package emu.grasscutter.net.proto; - -public final class QueryCurrRegionHttpRspOuterClass { - private QueryCurrRegionHttpRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface QueryCurrRegionHttpRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:QueryCurrRegionHttpRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>string message = 2;</code> - * @return The message. - */ - java.lang.String getMessage(); - /** - * <code>string message = 2;</code> - * @return The bytes for message. - */ - com.google.protobuf.ByteString - getMessageBytes(); - - /** - * <code>.RegionInfo regionInfo = 3;</code> - * @return Whether the regionInfo field is set. - */ - boolean hasRegionInfo(); - /** - * <code>.RegionInfo regionInfo = 3;</code> - * @return The regionInfo. - */ - emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo getRegionInfo(); - /** - * <code>.RegionInfo regionInfo = 3;</code> - */ - emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfoOrBuilder getRegionInfoOrBuilder(); - - /** - * <code>bytes clientSecretKey = 11;</code> - * @return The clientSecretKey. - */ - com.google.protobuf.ByteString getClientSecretKey(); - - /** - * <code>bytes regionCustomConfigEncrypted = 12;</code> - * @return The regionCustomConfigEncrypted. - */ - com.google.protobuf.ByteString getRegionCustomConfigEncrypted(); - - /** - * <code>bytes clientRegionCustomConfigEncrypted = 13;</code> - * @return The clientRegionCustomConfigEncrypted. - */ - com.google.protobuf.ByteString getClientRegionCustomConfigEncrypted(); - } - /** - * Protobuf type {@code QueryCurrRegionHttpRsp} - */ - public static final class QueryCurrRegionHttpRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:QueryCurrRegionHttpRsp) - QueryCurrRegionHttpRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use QueryCurrRegionHttpRsp.newBuilder() to construct. - private QueryCurrRegionHttpRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private QueryCurrRegionHttpRsp() { - message_ = ""; - clientSecretKey_ = com.google.protobuf.ByteString.EMPTY; - regionCustomConfigEncrypted_ = com.google.protobuf.ByteString.EMPTY; - clientRegionCustomConfigEncrypted_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new QueryCurrRegionHttpRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryCurrRegionHttpRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 26: { - emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo.Builder subBuilder = null; - if (regionInfo_ != null) { - subBuilder = regionInfo_.toBuilder(); - } - regionInfo_ = input.readMessage(emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(regionInfo_); - regionInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 90: { - - clientSecretKey_ = input.readBytes(); - break; - } - case 98: { - - regionCustomConfigEncrypted_ = input.readBytes(); - break; - } - case 106: { - - clientRegionCustomConfigEncrypted_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.internal_static_QueryCurrRegionHttpRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.internal_static_QueryCurrRegionHttpRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp.class, emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int MESSAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object message_; - /** - * <code>string message = 2;</code> - * @return The message. - */ - @java.lang.Override - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } - } - /** - * <code>string message = 2;</code> - * @return The bytes for message. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGIONINFO_FIELD_NUMBER = 3; - private emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo regionInfo_; - /** - * <code>.RegionInfo regionInfo = 3;</code> - * @return Whether the regionInfo field is set. - */ - @java.lang.Override - public boolean hasRegionInfo() { - return regionInfo_ != null; - } - /** - * <code>.RegionInfo regionInfo = 3;</code> - * @return The regionInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo getRegionInfo() { - return regionInfo_ == null ? emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo.getDefaultInstance() : regionInfo_; - } - /** - * <code>.RegionInfo regionInfo = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfoOrBuilder getRegionInfoOrBuilder() { - return getRegionInfo(); - } - - public static final int CLIENTSECRETKEY_FIELD_NUMBER = 11; - private com.google.protobuf.ByteString clientSecretKey_; - /** - * <code>bytes clientSecretKey = 11;</code> - * @return The clientSecretKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClientSecretKey() { - return clientSecretKey_; - } - - public static final int REGIONCUSTOMCONFIGENCRYPTED_FIELD_NUMBER = 12; - private com.google.protobuf.ByteString regionCustomConfigEncrypted_; - /** - * <code>bytes regionCustomConfigEncrypted = 12;</code> - * @return The regionCustomConfigEncrypted. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionCustomConfigEncrypted() { - return regionCustomConfigEncrypted_; - } - - public static final int CLIENTREGIONCUSTOMCONFIGENCRYPTED_FIELD_NUMBER = 13; - private com.google.protobuf.ByteString clientRegionCustomConfigEncrypted_; - /** - * <code>bytes clientRegionCustomConfigEncrypted = 13;</code> - * @return The clientRegionCustomConfigEncrypted. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClientRegionCustomConfigEncrypted() { - return clientRegionCustomConfigEncrypted_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (!getMessageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); - } - if (regionInfo_ != null) { - output.writeMessage(3, getRegionInfo()); - } - if (!clientSecretKey_.isEmpty()) { - output.writeBytes(11, clientSecretKey_); - } - if (!regionCustomConfigEncrypted_.isEmpty()) { - output.writeBytes(12, regionCustomConfigEncrypted_); - } - if (!clientRegionCustomConfigEncrypted_.isEmpty()) { - output.writeBytes(13, clientRegionCustomConfigEncrypted_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (!getMessageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); - } - if (regionInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRegionInfo()); - } - if (!clientSecretKey_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, clientSecretKey_); - } - if (!regionCustomConfigEncrypted_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, regionCustomConfigEncrypted_); - } - if (!clientRegionCustomConfigEncrypted_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(13, clientRegionCustomConfigEncrypted_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp other = (emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (!getMessage() - .equals(other.getMessage())) return false; - if (hasRegionInfo() != other.hasRegionInfo()) return false; - if (hasRegionInfo()) { - if (!getRegionInfo() - .equals(other.getRegionInfo())) return false; - } - if (!getClientSecretKey() - .equals(other.getClientSecretKey())) return false; - if (!getRegionCustomConfigEncrypted() - .equals(other.getRegionCustomConfigEncrypted())) return false; - if (!getClientRegionCustomConfigEncrypted() - .equals(other.getClientRegionCustomConfigEncrypted())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - if (hasRegionInfo()) { - hash = (37 * hash) + REGIONINFO_FIELD_NUMBER; - hash = (53 * hash) + getRegionInfo().hashCode(); - } - hash = (37 * hash) + CLIENTSECRETKEY_FIELD_NUMBER; - hash = (53 * hash) + getClientSecretKey().hashCode(); - hash = (37 * hash) + REGIONCUSTOMCONFIGENCRYPTED_FIELD_NUMBER; - hash = (53 * hash) + getRegionCustomConfigEncrypted().hashCode(); - hash = (37 * hash) + CLIENTREGIONCUSTOMCONFIGENCRYPTED_FIELD_NUMBER; - hash = (53 * hash) + getClientRegionCustomConfigEncrypted().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code QueryCurrRegionHttpRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:QueryCurrRegionHttpRsp) - emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.internal_static_QueryCurrRegionHttpRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.internal_static_QueryCurrRegionHttpRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp.class, emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - message_ = ""; - - if (regionInfoBuilder_ == null) { - regionInfo_ = null; - } else { - regionInfo_ = null; - regionInfoBuilder_ = null; - } - clientSecretKey_ = com.google.protobuf.ByteString.EMPTY; - - regionCustomConfigEncrypted_ = com.google.protobuf.ByteString.EMPTY; - - clientRegionCustomConfigEncrypted_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.internal_static_QueryCurrRegionHttpRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp build() { - emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp buildPartial() { - emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp result = new emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp(this); - result.retcode_ = retcode_; - result.message_ = message_; - if (regionInfoBuilder_ == null) { - result.regionInfo_ = regionInfo_; - } else { - result.regionInfo_ = regionInfoBuilder_.build(); - } - result.clientSecretKey_ = clientSecretKey_; - result.regionCustomConfigEncrypted_ = regionCustomConfigEncrypted_; - result.clientRegionCustomConfigEncrypted_ = clientRegionCustomConfigEncrypted_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp) { - return mergeFrom((emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp other) { - if (other == emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (!other.getMessage().isEmpty()) { - message_ = other.message_; - onChanged(); - } - if (other.hasRegionInfo()) { - mergeRegionInfo(other.getRegionInfo()); - } - if (other.getClientSecretKey() != com.google.protobuf.ByteString.EMPTY) { - setClientSecretKey(other.getClientSecretKey()); - } - if (other.getRegionCustomConfigEncrypted() != com.google.protobuf.ByteString.EMPTY) { - setRegionCustomConfigEncrypted(other.getRegionCustomConfigEncrypted()); - } - if (other.getClientRegionCustomConfigEncrypted() != com.google.protobuf.ByteString.EMPTY) { - setClientRegionCustomConfigEncrypted(other.getClientRegionCustomConfigEncrypted()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private java.lang.Object message_ = ""; - /** - * <code>string message = 2;</code> - * @return The message. - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string message = 2;</code> - * @return The bytes for message. - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string message = 2;</code> - * @param value The message to set. - * @return This builder for chaining. - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - onChanged(); - return this; - } - /** - * <code>string message = 2;</code> - * @return This builder for chaining. - */ - public Builder clearMessage() { - - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - * <code>string message = 2;</code> - * @param value The bytes for message to set. - * @return This builder for chaining. - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo regionInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo, emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo.Builder, emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfoOrBuilder> regionInfoBuilder_; - /** - * <code>.RegionInfo regionInfo = 3;</code> - * @return Whether the regionInfo field is set. - */ - public boolean hasRegionInfo() { - return regionInfoBuilder_ != null || regionInfo_ != null; - } - /** - * <code>.RegionInfo regionInfo = 3;</code> - * @return The regionInfo. - */ - public emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo getRegionInfo() { - if (regionInfoBuilder_ == null) { - return regionInfo_ == null ? emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo.getDefaultInstance() : regionInfo_; - } else { - return regionInfoBuilder_.getMessage(); - } - } - /** - * <code>.RegionInfo regionInfo = 3;</code> - */ - public Builder setRegionInfo(emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo value) { - if (regionInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - regionInfo_ = value; - onChanged(); - } else { - regionInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.RegionInfo regionInfo = 3;</code> - */ - public Builder setRegionInfo( - emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo.Builder builderForValue) { - if (regionInfoBuilder_ == null) { - regionInfo_ = builderForValue.build(); - onChanged(); - } else { - regionInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.RegionInfo regionInfo = 3;</code> - */ - public Builder mergeRegionInfo(emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo value) { - if (regionInfoBuilder_ == null) { - if (regionInfo_ != null) { - regionInfo_ = - emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo.newBuilder(regionInfo_).mergeFrom(value).buildPartial(); - } else { - regionInfo_ = value; - } - onChanged(); - } else { - regionInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.RegionInfo regionInfo = 3;</code> - */ - public Builder clearRegionInfo() { - if (regionInfoBuilder_ == null) { - regionInfo_ = null; - onChanged(); - } else { - regionInfo_ = null; - regionInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.RegionInfo regionInfo = 3;</code> - */ - public emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo.Builder getRegionInfoBuilder() { - - onChanged(); - return getRegionInfoFieldBuilder().getBuilder(); - } - /** - * <code>.RegionInfo regionInfo = 3;</code> - */ - public emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfoOrBuilder getRegionInfoOrBuilder() { - if (regionInfoBuilder_ != null) { - return regionInfoBuilder_.getMessageOrBuilder(); - } else { - return regionInfo_ == null ? - emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo.getDefaultInstance() : regionInfo_; - } - } - /** - * <code>.RegionInfo regionInfo = 3;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo, emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo.Builder, emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfoOrBuilder> - getRegionInfoFieldBuilder() { - if (regionInfoBuilder_ == null) { - regionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo, emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo.Builder, emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfoOrBuilder>( - getRegionInfo(), - getParentForChildren(), - isClean()); - regionInfo_ = null; - } - return regionInfoBuilder_; - } - - private com.google.protobuf.ByteString clientSecretKey_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>bytes clientSecretKey = 11;</code> - * @return The clientSecretKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClientSecretKey() { - return clientSecretKey_; - } - /** - * <code>bytes clientSecretKey = 11;</code> - * @param value The clientSecretKey to set. - * @return This builder for chaining. - */ - public Builder setClientSecretKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - clientSecretKey_ = value; - onChanged(); - return this; - } - /** - * <code>bytes clientSecretKey = 11;</code> - * @return This builder for chaining. - */ - public Builder clearClientSecretKey() { - - clientSecretKey_ = getDefaultInstance().getClientSecretKey(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString regionCustomConfigEncrypted_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>bytes regionCustomConfigEncrypted = 12;</code> - * @return The regionCustomConfigEncrypted. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionCustomConfigEncrypted() { - return regionCustomConfigEncrypted_; - } - /** - * <code>bytes regionCustomConfigEncrypted = 12;</code> - * @param value The regionCustomConfigEncrypted to set. - * @return This builder for chaining. - */ - public Builder setRegionCustomConfigEncrypted(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - regionCustomConfigEncrypted_ = value; - onChanged(); - return this; - } - /** - * <code>bytes regionCustomConfigEncrypted = 12;</code> - * @return This builder for chaining. - */ - public Builder clearRegionCustomConfigEncrypted() { - - regionCustomConfigEncrypted_ = getDefaultInstance().getRegionCustomConfigEncrypted(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString clientRegionCustomConfigEncrypted_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>bytes clientRegionCustomConfigEncrypted = 13;</code> - * @return The clientRegionCustomConfigEncrypted. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClientRegionCustomConfigEncrypted() { - return clientRegionCustomConfigEncrypted_; - } - /** - * <code>bytes clientRegionCustomConfigEncrypted = 13;</code> - * @param value The clientRegionCustomConfigEncrypted to set. - * @return This builder for chaining. - */ - public Builder setClientRegionCustomConfigEncrypted(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - clientRegionCustomConfigEncrypted_ = value; - onChanged(); - return this; - } - /** - * <code>bytes clientRegionCustomConfigEncrypted = 13;</code> - * @return This builder for chaining. - */ - public Builder clearClientRegionCustomConfigEncrypted() { - - clientRegionCustomConfigEncrypted_ = getDefaultInstance().getClientRegionCustomConfigEncrypted(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:QueryCurrRegionHttpRsp) - } - - // @@protoc_insertion_point(class_scope:QueryCurrRegionHttpRsp) - private static final emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp(); - } - - public static emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<QueryCurrRegionHttpRsp> - PARSER = new com.google.protobuf.AbstractParser<QueryCurrRegionHttpRsp>() { - @java.lang.Override - public QueryCurrRegionHttpRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryCurrRegionHttpRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<QueryCurrRegionHttpRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<QueryCurrRegionHttpRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_QueryCurrRegionHttpRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_QueryCurrRegionHttpRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034QueryCurrRegionHttpRsp.proto\032\020RegionIn" + - "fo.proto\"\304\001\n\026QueryCurrRegionHttpRsp\022\017\n\007r" + - "etcode\030\001 \001(\005\022\017\n\007message\030\002 \001(\t\022\037\n\nregionI" + - "nfo\030\003 \001(\0132\013.RegionInfo\022\027\n\017clientSecretKe" + - "y\030\013 \001(\014\022#\n\033regionCustomConfigEncrypted\030\014" + - " \001(\014\022)\n!clientRegionCustomConfigEncrypte" + - "d\030\r \001(\014B\033\n\031emu.grasscutter.net.protob\006pr" + - "oto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.RegionInfoOuterClass.getDescriptor(), - }); - internal_static_QueryCurrRegionHttpRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_QueryCurrRegionHttpRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_QueryCurrRegionHttpRsp_descriptor, - new java.lang.String[] { "Retcode", "Message", "RegionInfo", "ClientSecretKey", "RegionCustomConfigEncrypted", "ClientRegionCustomConfigEncrypted", }); - emu.grasscutter.net.proto.RegionInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/QueryRegionListHttpRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/QueryRegionListHttpRspOuterClass.java deleted file mode 100644 index c308924b8..000000000 --- a/src/main/java/emu/grasscutter/net/proto/QueryRegionListHttpRspOuterClass.java +++ /dev/null @@ -1,1136 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: QueryRegionListHttpRsp.proto - -package emu.grasscutter.net.proto; - -public final class QueryRegionListHttpRspOuterClass { - private QueryRegionListHttpRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface QueryRegionListHttpRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:QueryRegionListHttpRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - java.util.List<emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo> - getServersList(); - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo getServers(int index); - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - int getServersCount(); - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfoOrBuilder> - getServersOrBuilderList(); - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfoOrBuilder getServersOrBuilder( - int index); - - /** - * <code>bytes clientSecretKey = 5;</code> - * @return The clientSecretKey. - */ - com.google.protobuf.ByteString getClientSecretKey(); - - /** - * <code>bytes clientCustomConfigEncrypted = 6;</code> - * @return The clientCustomConfigEncrypted. - */ - com.google.protobuf.ByteString getClientCustomConfigEncrypted(); - - /** - * <code>bool enableLoginPc = 7;</code> - * @return The enableLoginPc. - */ - boolean getEnableLoginPc(); - } - /** - * Protobuf type {@code QueryRegionListHttpRsp} - */ - public static final class QueryRegionListHttpRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:QueryRegionListHttpRsp) - QueryRegionListHttpRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use QueryRegionListHttpRsp.newBuilder() to construct. - private QueryRegionListHttpRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private QueryRegionListHttpRsp() { - servers_ = java.util.Collections.emptyList(); - clientSecretKey_ = com.google.protobuf.ByteString.EMPTY; - clientCustomConfigEncrypted_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new QueryRegionListHttpRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryRegionListHttpRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readUInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - servers_ = new java.util.ArrayList<emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo>(); - mutable_bitField0_ |= 0x00000001; - } - servers_.add( - input.readMessage(emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo.parser(), extensionRegistry)); - break; - } - case 42: { - - clientSecretKey_ = input.readBytes(); - break; - } - case 50: { - - clientCustomConfigEncrypted_ = input.readBytes(); - break; - } - case 56: { - - enableLoginPc_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - servers_ = java.util.Collections.unmodifiableList(servers_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.internal_static_QueryRegionListHttpRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.internal_static_QueryRegionListHttpRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp.class, emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>uint32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int SERVERS_FIELD_NUMBER = 2; - private java.util.List<emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo> servers_; - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo> getServersList() { - return servers_; - } - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfoOrBuilder> - getServersOrBuilderList() { - return servers_; - } - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - @java.lang.Override - public int getServersCount() { - return servers_.size(); - } - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo getServers(int index) { - return servers_.get(index); - } - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfoOrBuilder getServersOrBuilder( - int index) { - return servers_.get(index); - } - - public static final int CLIENTSECRETKEY_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString clientSecretKey_; - /** - * <code>bytes clientSecretKey = 5;</code> - * @return The clientSecretKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClientSecretKey() { - return clientSecretKey_; - } - - public static final int CLIENTCUSTOMCONFIGENCRYPTED_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString clientCustomConfigEncrypted_; - /** - * <code>bytes clientCustomConfigEncrypted = 6;</code> - * @return The clientCustomConfigEncrypted. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClientCustomConfigEncrypted() { - return clientCustomConfigEncrypted_; - } - - public static final int ENABLELOGINPC_FIELD_NUMBER = 7; - private boolean enableLoginPc_; - /** - * <code>bool enableLoginPc = 7;</code> - * @return The enableLoginPc. - */ - @java.lang.Override - public boolean getEnableLoginPc() { - return enableLoginPc_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeUInt32(1, retcode_); - } - for (int i = 0; i < servers_.size(); i++) { - output.writeMessage(2, servers_.get(i)); - } - if (!clientSecretKey_.isEmpty()) { - output.writeBytes(5, clientSecretKey_); - } - if (!clientCustomConfigEncrypted_.isEmpty()) { - output.writeBytes(6, clientCustomConfigEncrypted_); - } - if (enableLoginPc_ != false) { - output.writeBool(7, enableLoginPc_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, retcode_); - } - for (int i = 0; i < servers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, servers_.get(i)); - } - if (!clientSecretKey_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, clientSecretKey_); - } - if (!clientCustomConfigEncrypted_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, clientCustomConfigEncrypted_); - } - if (enableLoginPc_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, enableLoginPc_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp other = (emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (!getServersList() - .equals(other.getServersList())) return false; - if (!getClientSecretKey() - .equals(other.getClientSecretKey())) return false; - if (!getClientCustomConfigEncrypted() - .equals(other.getClientCustomConfigEncrypted())) return false; - if (getEnableLoginPc() - != other.getEnableLoginPc()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - if (getServersCount() > 0) { - hash = (37 * hash) + SERVERS_FIELD_NUMBER; - hash = (53 * hash) + getServersList().hashCode(); - } - hash = (37 * hash) + CLIENTSECRETKEY_FIELD_NUMBER; - hash = (53 * hash) + getClientSecretKey().hashCode(); - hash = (37 * hash) + CLIENTCUSTOMCONFIGENCRYPTED_FIELD_NUMBER; - hash = (53 * hash) + getClientCustomConfigEncrypted().hashCode(); - hash = (37 * hash) + ENABLELOGINPC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableLoginPc()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code QueryRegionListHttpRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:QueryRegionListHttpRsp) - emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.internal_static_QueryRegionListHttpRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.internal_static_QueryRegionListHttpRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp.class, emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getServersFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - if (serversBuilder_ == null) { - servers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - serversBuilder_.clear(); - } - clientSecretKey_ = com.google.protobuf.ByteString.EMPTY; - - clientCustomConfigEncrypted_ = com.google.protobuf.ByteString.EMPTY; - - enableLoginPc_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.internal_static_QueryRegionListHttpRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp build() { - emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp buildPartial() { - emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp result = new emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp(this); - int from_bitField0_ = bitField0_; - result.retcode_ = retcode_; - if (serversBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - servers_ = java.util.Collections.unmodifiableList(servers_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.servers_ = servers_; - } else { - result.servers_ = serversBuilder_.build(); - } - result.clientSecretKey_ = clientSecretKey_; - result.clientCustomConfigEncrypted_ = clientCustomConfigEncrypted_; - result.enableLoginPc_ = enableLoginPc_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp) { - return mergeFrom((emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp other) { - if (other == emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (serversBuilder_ == null) { - if (!other.servers_.isEmpty()) { - if (servers_.isEmpty()) { - servers_ = other.servers_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureServersIsMutable(); - servers_.addAll(other.servers_); - } - onChanged(); - } - } else { - if (!other.servers_.isEmpty()) { - if (serversBuilder_.isEmpty()) { - serversBuilder_.dispose(); - serversBuilder_ = null; - servers_ = other.servers_; - bitField0_ = (bitField0_ & ~0x00000001); - serversBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getServersFieldBuilder() : null; - } else { - serversBuilder_.addAllMessages(other.servers_); - } - } - } - if (other.getClientSecretKey() != com.google.protobuf.ByteString.EMPTY) { - setClientSecretKey(other.getClientSecretKey()); - } - if (other.getClientCustomConfigEncrypted() != com.google.protobuf.ByteString.EMPTY) { - setClientCustomConfigEncrypted(other.getClientCustomConfigEncrypted()); - } - if (other.getEnableLoginPc() != false) { - setEnableLoginPc(other.getEnableLoginPc()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int retcode_ ; - /** - * <code>uint32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>uint32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo> servers_ = - java.util.Collections.emptyList(); - private void ensureServersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - servers_ = new java.util.ArrayList<emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo>(servers_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo, emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo.Builder, emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfoOrBuilder> serversBuilder_; - - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo> getServersList() { - if (serversBuilder_ == null) { - return java.util.Collections.unmodifiableList(servers_); - } else { - return serversBuilder_.getMessageList(); - } - } - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - public int getServersCount() { - if (serversBuilder_ == null) { - return servers_.size(); - } else { - return serversBuilder_.getCount(); - } - } - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - public emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo getServers(int index) { - if (serversBuilder_ == null) { - return servers_.get(index); - } else { - return serversBuilder_.getMessage(index); - } - } - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - public Builder setServers( - int index, emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo value) { - if (serversBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureServersIsMutable(); - servers_.set(index, value); - onChanged(); - } else { - serversBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - public Builder setServers( - int index, emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo.Builder builderForValue) { - if (serversBuilder_ == null) { - ensureServersIsMutable(); - servers_.set(index, builderForValue.build()); - onChanged(); - } else { - serversBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - public Builder addServers(emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo value) { - if (serversBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureServersIsMutable(); - servers_.add(value); - onChanged(); - } else { - serversBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - public Builder addServers( - int index, emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo value) { - if (serversBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureServersIsMutable(); - servers_.add(index, value); - onChanged(); - } else { - serversBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - public Builder addServers( - emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo.Builder builderForValue) { - if (serversBuilder_ == null) { - ensureServersIsMutable(); - servers_.add(builderForValue.build()); - onChanged(); - } else { - serversBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - public Builder addServers( - int index, emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo.Builder builderForValue) { - if (serversBuilder_ == null) { - ensureServersIsMutable(); - servers_.add(index, builderForValue.build()); - onChanged(); - } else { - serversBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - public Builder addAllServers( - java.lang.Iterable<? extends emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo> values) { - if (serversBuilder_ == null) { - ensureServersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, servers_); - onChanged(); - } else { - serversBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - public Builder clearServers() { - if (serversBuilder_ == null) { - servers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - serversBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - public Builder removeServers(int index) { - if (serversBuilder_ == null) { - ensureServersIsMutable(); - servers_.remove(index); - onChanged(); - } else { - serversBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - public emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo.Builder getServersBuilder( - int index) { - return getServersFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - public emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfoOrBuilder getServersOrBuilder( - int index) { - if (serversBuilder_ == null) { - return servers_.get(index); } else { - return serversBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfoOrBuilder> - getServersOrBuilderList() { - if (serversBuilder_ != null) { - return serversBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(servers_); - } - } - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - public emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo.Builder addServersBuilder() { - return getServersFieldBuilder().addBuilder( - emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo.getDefaultInstance()); - } - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - public emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo.Builder addServersBuilder( - int index) { - return getServersFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo.getDefaultInstance()); - } - /** - * <code>repeated .RegionSimpleInfo servers = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo.Builder> - getServersBuilderList() { - return getServersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo, emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo.Builder, emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfoOrBuilder> - getServersFieldBuilder() { - if (serversBuilder_ == null) { - serversBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo, emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo.Builder, emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfoOrBuilder>( - servers_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - servers_ = null; - } - return serversBuilder_; - } - - private com.google.protobuf.ByteString clientSecretKey_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>bytes clientSecretKey = 5;</code> - * @return The clientSecretKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClientSecretKey() { - return clientSecretKey_; - } - /** - * <code>bytes clientSecretKey = 5;</code> - * @param value The clientSecretKey to set. - * @return This builder for chaining. - */ - public Builder setClientSecretKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - clientSecretKey_ = value; - onChanged(); - return this; - } - /** - * <code>bytes clientSecretKey = 5;</code> - * @return This builder for chaining. - */ - public Builder clearClientSecretKey() { - - clientSecretKey_ = getDefaultInstance().getClientSecretKey(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString clientCustomConfigEncrypted_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>bytes clientCustomConfigEncrypted = 6;</code> - * @return The clientCustomConfigEncrypted. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClientCustomConfigEncrypted() { - return clientCustomConfigEncrypted_; - } - /** - * <code>bytes clientCustomConfigEncrypted = 6;</code> - * @param value The clientCustomConfigEncrypted to set. - * @return This builder for chaining. - */ - public Builder setClientCustomConfigEncrypted(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - clientCustomConfigEncrypted_ = value; - onChanged(); - return this; - } - /** - * <code>bytes clientCustomConfigEncrypted = 6;</code> - * @return This builder for chaining. - */ - public Builder clearClientCustomConfigEncrypted() { - - clientCustomConfigEncrypted_ = getDefaultInstance().getClientCustomConfigEncrypted(); - onChanged(); - return this; - } - - private boolean enableLoginPc_ ; - /** - * <code>bool enableLoginPc = 7;</code> - * @return The enableLoginPc. - */ - @java.lang.Override - public boolean getEnableLoginPc() { - return enableLoginPc_; - } - /** - * <code>bool enableLoginPc = 7;</code> - * @param value The enableLoginPc to set. - * @return This builder for chaining. - */ - public Builder setEnableLoginPc(boolean value) { - - enableLoginPc_ = value; - onChanged(); - return this; - } - /** - * <code>bool enableLoginPc = 7;</code> - * @return This builder for chaining. - */ - public Builder clearEnableLoginPc() { - - enableLoginPc_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:QueryRegionListHttpRsp) - } - - // @@protoc_insertion_point(class_scope:QueryRegionListHttpRsp) - private static final emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp(); - } - - public static emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<QueryRegionListHttpRsp> - PARSER = new com.google.protobuf.AbstractParser<QueryRegionListHttpRsp>() { - @java.lang.Override - public QueryRegionListHttpRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryRegionListHttpRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<QueryRegionListHttpRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<QueryRegionListHttpRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_QueryRegionListHttpRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_QueryRegionListHttpRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034QueryRegionListHttpRsp.proto\032\026RegionSi" + - "mpleInfo.proto\"\242\001\n\026QueryRegionListHttpRs" + - "p\022\017\n\007retcode\030\001 \001(\r\022\"\n\007servers\030\002 \003(\0132\021.Re" + - "gionSimpleInfo\022\027\n\017clientSecretKey\030\005 \001(\014\022" + - "#\n\033clientCustomConfigEncrypted\030\006 \001(\014\022\025\n\r" + - "enableLoginPc\030\007 \001(\010B\033\n\031emu.grasscutter.n" + - "et.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.getDescriptor(), - }); - internal_static_QueryRegionListHttpRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_QueryRegionListHttpRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_QueryRegionListHttpRsp_descriptor, - new java.lang.String[] { "Retcode", "Servers", "ClientSecretKey", "ClientCustomConfigEncrypted", "EnableLoginPc", }); - emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/RegionInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/RegionInfoOuterClass.java deleted file mode 100644 index 64805cd96..000000000 --- a/src/main/java/emu/grasscutter/net/proto/RegionInfoOuterClass.java +++ /dev/null @@ -1,3367 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: RegionInfo.proto - -package emu.grasscutter.net.proto; - -public final class RegionInfoOuterClass { - private RegionInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface RegionInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:RegionInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>string ip = 1;</code> - * @return The ip. - */ - java.lang.String getIp(); - /** - * <code>string ip = 1;</code> - * @return The bytes for ip. - */ - com.google.protobuf.ByteString - getIpBytes(); - - /** - * <code>int32 port = 2;</code> - * @return The port. - */ - int getPort(); - - /** - * <code>string payCallbackUrl = 3;</code> - * @return The payCallbackUrl. - */ - java.lang.String getPayCallbackUrl(); - /** - * <code>string payCallbackUrl = 3;</code> - * @return The bytes for payCallbackUrl. - */ - com.google.protobuf.ByteString - getPayCallbackUrlBytes(); - - /** - * <code>string areaType = 7;</code> - * @return The areaType. - */ - java.lang.String getAreaType(); - /** - * <code>string areaType = 7;</code> - * @return The bytes for areaType. - */ - com.google.protobuf.ByteString - getAreaTypeBytes(); - - /** - * <code>string resourceUrl = 8;</code> - * @return The resourceUrl. - */ - java.lang.String getResourceUrl(); - /** - * <code>string resourceUrl = 8;</code> - * @return The bytes for resourceUrl. - */ - com.google.protobuf.ByteString - getResourceUrlBytes(); - - /** - * <code>string dataUrl = 9;</code> - * @return The dataUrl. - */ - java.lang.String getDataUrl(); - /** - * <code>string dataUrl = 9;</code> - * @return The bytes for dataUrl. - */ - com.google.protobuf.ByteString - getDataUrlBytes(); - - /** - * <code>string feedbackUrl = 10;</code> - * @return The feedbackUrl. - */ - java.lang.String getFeedbackUrl(); - /** - * <code>string feedbackUrl = 10;</code> - * @return The bytes for feedbackUrl. - */ - com.google.protobuf.ByteString - getFeedbackUrlBytes(); - - /** - * <code>string bulletinUrl = 11;</code> - * @return The bulletinUrl. - */ - java.lang.String getBulletinUrl(); - /** - * <code>string bulletinUrl = 11;</code> - * @return The bytes for bulletinUrl. - */ - com.google.protobuf.ByteString - getBulletinUrlBytes(); - - /** - * <code>string version = 12;</code> - * @return The version. - */ - java.lang.String getVersion(); - /** - * <code>string version = 12;</code> - * @return The bytes for version. - */ - com.google.protobuf.ByteString - getVersionBytes(); - - /** - * <code>int32 clientDataVersion = 14;</code> - * @return The clientDataVersion. - */ - int getClientDataVersion(); - - /** - * <code>int32 clientSilenceDataVersion = 18;</code> - * @return The clientSilenceDataVersion. - */ - int getClientSilenceDataVersion(); - - /** - * <code>string clientDataMd5 = 19;</code> - * @return The clientDataMd5. - */ - java.lang.String getClientDataMd5(); - /** - * <code>string clientDataMd5 = 19;</code> - * @return The bytes for clientDataMd5. - */ - com.google.protobuf.ByteString - getClientDataMd5Bytes(); - - /** - * <code>string clientSilenceDataMd5 = 20;</code> - * @return The clientSilenceDataMd5. - */ - java.lang.String getClientSilenceDataMd5(); - /** - * <code>string clientSilenceDataMd5 = 20;</code> - * @return The bytes for clientSilenceDataMd5. - */ - com.google.protobuf.ByteString - getClientSilenceDataMd5Bytes(); - - /** - * <code>.ResVersionConfig config = 22;</code> - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - * <code>.ResVersionConfig config = 22;</code> - * @return The config. - */ - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig getConfig(); - /** - * <code>.ResVersionConfig config = 22;</code> - */ - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfigOrBuilder getConfigOrBuilder(); - - /** - * <code>bytes secretKey = 23;</code> - * @return The secretKey. - */ - com.google.protobuf.ByteString getSecretKey(); - - /** - * <code>string communityUrl = 24;</code> - * @return The communityUrl. - */ - java.lang.String getCommunityUrl(); - /** - * <code>string communityUrl = 24;</code> - * @return The bytes for communityUrl. - */ - com.google.protobuf.ByteString - getCommunityUrlBytes(); - - /** - * <code>string clientVersionSuffix = 26;</code> - * @return The clientVersionSuffix. - */ - java.lang.String getClientVersionSuffix(); - /** - * <code>string clientVersionSuffix = 26;</code> - * @return The bytes for clientVersionSuffix. - */ - com.google.protobuf.ByteString - getClientVersionSuffixBytes(); - - /** - * <code>string clientSilenceVersionSuffix = 27;</code> - * @return The clientSilenceVersionSuffix. - */ - java.lang.String getClientSilenceVersionSuffix(); - /** - * <code>string clientSilenceVersionSuffix = 27;</code> - * @return The bytes for clientSilenceVersionSuffix. - */ - com.google.protobuf.ByteString - getClientSilenceVersionSuffixBytes(); - - /** - * <code>string accountUrl = 31;</code> - * @return The accountUrl. - */ - java.lang.String getAccountUrl(); - /** - * <code>string accountUrl = 31;</code> - * @return The bytes for accountUrl. - */ - com.google.protobuf.ByteString - getAccountUrlBytes(); - - /** - * <code>string cdkeyUrl = 32;</code> - * @return The cdkeyUrl. - */ - java.lang.String getCdkeyUrl(); - /** - * <code>string cdkeyUrl = 32;</code> - * @return The bytes for cdkeyUrl. - */ - com.google.protobuf.ByteString - getCdkeyUrlBytes(); - - /** - * <code>string privacyUrl = 33;</code> - * @return The privacyUrl. - */ - java.lang.String getPrivacyUrl(); - /** - * <code>string privacyUrl = 33;</code> - * @return The bytes for privacyUrl. - */ - com.google.protobuf.ByteString - getPrivacyUrlBytes(); - } - /** - * Protobuf type {@code RegionInfo} - */ - public static final class RegionInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:RegionInfo) - RegionInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use RegionInfo.newBuilder() to construct. - private RegionInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private RegionInfo() { - ip_ = ""; - payCallbackUrl_ = ""; - areaType_ = ""; - resourceUrl_ = ""; - dataUrl_ = ""; - feedbackUrl_ = ""; - bulletinUrl_ = ""; - version_ = ""; - clientDataMd5_ = ""; - clientSilenceDataMd5_ = ""; - secretKey_ = com.google.protobuf.ByteString.EMPTY; - communityUrl_ = ""; - clientVersionSuffix_ = ""; - clientSilenceVersionSuffix_ = ""; - accountUrl_ = ""; - cdkeyUrl_ = ""; - privacyUrl_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RegionInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RegionInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - ip_ = s; - break; - } - case 16: { - - port_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - payCallbackUrl_ = s; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - areaType_ = s; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - resourceUrl_ = s; - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); - - dataUrl_ = s; - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - - feedbackUrl_ = s; - break; - } - case 90: { - java.lang.String s = input.readStringRequireUtf8(); - - bulletinUrl_ = s; - break; - } - case 98: { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 112: { - - clientDataVersion_ = input.readInt32(); - break; - } - case 144: { - - clientSilenceDataVersion_ = input.readInt32(); - break; - } - case 154: { - java.lang.String s = input.readStringRequireUtf8(); - - clientDataMd5_ = s; - break; - } - case 162: { - java.lang.String s = input.readStringRequireUtf8(); - - clientSilenceDataMd5_ = s; - break; - } - case 178: { - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.Builder subBuilder = null; - if (config_ != null) { - subBuilder = config_.toBuilder(); - } - config_ = input.readMessage(emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(config_); - config_ = subBuilder.buildPartial(); - } - - break; - } - case 186: { - - secretKey_ = input.readBytes(); - break; - } - case 194: { - java.lang.String s = input.readStringRequireUtf8(); - - communityUrl_ = s; - break; - } - case 210: { - java.lang.String s = input.readStringRequireUtf8(); - - clientVersionSuffix_ = s; - break; - } - case 218: { - java.lang.String s = input.readStringRequireUtf8(); - - clientSilenceVersionSuffix_ = s; - break; - } - case 250: { - java.lang.String s = input.readStringRequireUtf8(); - - accountUrl_ = s; - break; - } - case 258: { - java.lang.String s = input.readStringRequireUtf8(); - - cdkeyUrl_ = s; - break; - } - case 266: { - java.lang.String s = input.readStringRequireUtf8(); - - privacyUrl_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.RegionInfoOuterClass.internal_static_RegionInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.RegionInfoOuterClass.internal_static_RegionInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo.class, emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo.Builder.class); - } - - public static final int IP_FIELD_NUMBER = 1; - private volatile java.lang.Object ip_; - /** - * <code>string ip = 1;</code> - * @return The ip. - */ - @java.lang.Override - public java.lang.String getIp() { - java.lang.Object ref = ip_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ip_ = s; - return s; - } - } - /** - * <code>string ip = 1;</code> - * @return The bytes for ip. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIpBytes() { - java.lang.Object ref = ip_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ip_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PORT_FIELD_NUMBER = 2; - private int port_; - /** - * <code>int32 port = 2;</code> - * @return The port. - */ - @java.lang.Override - public int getPort() { - return port_; - } - - public static final int PAYCALLBACKURL_FIELD_NUMBER = 3; - private volatile java.lang.Object payCallbackUrl_; - /** - * <code>string payCallbackUrl = 3;</code> - * @return The payCallbackUrl. - */ - @java.lang.Override - public java.lang.String getPayCallbackUrl() { - java.lang.Object ref = payCallbackUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - payCallbackUrl_ = s; - return s; - } - } - /** - * <code>string payCallbackUrl = 3;</code> - * @return The bytes for payCallbackUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPayCallbackUrlBytes() { - java.lang.Object ref = payCallbackUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - payCallbackUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AREATYPE_FIELD_NUMBER = 7; - private volatile java.lang.Object areaType_; - /** - * <code>string areaType = 7;</code> - * @return The areaType. - */ - @java.lang.Override - public java.lang.String getAreaType() { - java.lang.Object ref = areaType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - areaType_ = s; - return s; - } - } - /** - * <code>string areaType = 7;</code> - * @return The bytes for areaType. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAreaTypeBytes() { - java.lang.Object ref = areaType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - areaType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCEURL_FIELD_NUMBER = 8; - private volatile java.lang.Object resourceUrl_; - /** - * <code>string resourceUrl = 8;</code> - * @return The resourceUrl. - */ - @java.lang.Override - public java.lang.String getResourceUrl() { - java.lang.Object ref = resourceUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resourceUrl_ = s; - return s; - } - } - /** - * <code>string resourceUrl = 8;</code> - * @return The bytes for resourceUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getResourceUrlBytes() { - java.lang.Object ref = resourceUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resourceUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DATAURL_FIELD_NUMBER = 9; - private volatile java.lang.Object dataUrl_; - /** - * <code>string dataUrl = 9;</code> - * @return The dataUrl. - */ - @java.lang.Override - public java.lang.String getDataUrl() { - java.lang.Object ref = dataUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dataUrl_ = s; - return s; - } - } - /** - * <code>string dataUrl = 9;</code> - * @return The bytes for dataUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDataUrlBytes() { - java.lang.Object ref = dataUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dataUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FEEDBACKURL_FIELD_NUMBER = 10; - private volatile java.lang.Object feedbackUrl_; - /** - * <code>string feedbackUrl = 10;</code> - * @return The feedbackUrl. - */ - @java.lang.Override - public java.lang.String getFeedbackUrl() { - java.lang.Object ref = feedbackUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - feedbackUrl_ = s; - return s; - } - } - /** - * <code>string feedbackUrl = 10;</code> - * @return The bytes for feedbackUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFeedbackUrlBytes() { - java.lang.Object ref = feedbackUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - feedbackUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BULLETINURL_FIELD_NUMBER = 11; - private volatile java.lang.Object bulletinUrl_; - /** - * <code>string bulletinUrl = 11;</code> - * @return The bulletinUrl. - */ - @java.lang.Override - public java.lang.String getBulletinUrl() { - java.lang.Object ref = bulletinUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bulletinUrl_ = s; - return s; - } - } - /** - * <code>string bulletinUrl = 11;</code> - * @return The bytes for bulletinUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBulletinUrlBytes() { - java.lang.Object ref = bulletinUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bulletinUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_FIELD_NUMBER = 12; - private volatile java.lang.Object version_; - /** - * <code>string version = 12;</code> - * @return The version. - */ - @java.lang.Override - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - * <code>string version = 12;</code> - * @return The bytes for version. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENTDATAVERSION_FIELD_NUMBER = 14; - private int clientDataVersion_; - /** - * <code>int32 clientDataVersion = 14;</code> - * @return The clientDataVersion. - */ - @java.lang.Override - public int getClientDataVersion() { - return clientDataVersion_; - } - - public static final int CLIENTSILENCEDATAVERSION_FIELD_NUMBER = 18; - private int clientSilenceDataVersion_; - /** - * <code>int32 clientSilenceDataVersion = 18;</code> - * @return The clientSilenceDataVersion. - */ - @java.lang.Override - public int getClientSilenceDataVersion() { - return clientSilenceDataVersion_; - } - - public static final int CLIENTDATAMD5_FIELD_NUMBER = 19; - private volatile java.lang.Object clientDataMd5_; - /** - * <code>string clientDataMd5 = 19;</code> - * @return The clientDataMd5. - */ - @java.lang.Override - public java.lang.String getClientDataMd5() { - java.lang.Object ref = clientDataMd5_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientDataMd5_ = s; - return s; - } - } - /** - * <code>string clientDataMd5 = 19;</code> - * @return The bytes for clientDataMd5. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClientDataMd5Bytes() { - java.lang.Object ref = clientDataMd5_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientDataMd5_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENTSILENCEDATAMD5_FIELD_NUMBER = 20; - private volatile java.lang.Object clientSilenceDataMd5_; - /** - * <code>string clientSilenceDataMd5 = 20;</code> - * @return The clientSilenceDataMd5. - */ - @java.lang.Override - public java.lang.String getClientSilenceDataMd5() { - java.lang.Object ref = clientSilenceDataMd5_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientSilenceDataMd5_ = s; - return s; - } - } - /** - * <code>string clientSilenceDataMd5 = 20;</code> - * @return The bytes for clientSilenceDataMd5. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClientSilenceDataMd5Bytes() { - java.lang.Object ref = clientSilenceDataMd5_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientSilenceDataMd5_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONFIG_FIELD_NUMBER = 22; - private emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig config_; - /** - * <code>.ResVersionConfig config = 22;</code> - * @return Whether the config field is set. - */ - @java.lang.Override - public boolean hasConfig() { - return config_ != null; - } - /** - * <code>.ResVersionConfig config = 22;</code> - * @return The config. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig getConfig() { - return config_ == null ? emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.getDefaultInstance() : config_; - } - /** - * <code>.ResVersionConfig config = 22;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfigOrBuilder getConfigOrBuilder() { - return getConfig(); - } - - public static final int SECRETKEY_FIELD_NUMBER = 23; - private com.google.protobuf.ByteString secretKey_; - /** - * <code>bytes secretKey = 23;</code> - * @return The secretKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSecretKey() { - return secretKey_; - } - - public static final int COMMUNITYURL_FIELD_NUMBER = 24; - private volatile java.lang.Object communityUrl_; - /** - * <code>string communityUrl = 24;</code> - * @return The communityUrl. - */ - @java.lang.Override - public java.lang.String getCommunityUrl() { - java.lang.Object ref = communityUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - communityUrl_ = s; - return s; - } - } - /** - * <code>string communityUrl = 24;</code> - * @return The bytes for communityUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCommunityUrlBytes() { - java.lang.Object ref = communityUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - communityUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENTVERSIONSUFFIX_FIELD_NUMBER = 26; - private volatile java.lang.Object clientVersionSuffix_; - /** - * <code>string clientVersionSuffix = 26;</code> - * @return The clientVersionSuffix. - */ - @java.lang.Override - public java.lang.String getClientVersionSuffix() { - java.lang.Object ref = clientVersionSuffix_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientVersionSuffix_ = s; - return s; - } - } - /** - * <code>string clientVersionSuffix = 26;</code> - * @return The bytes for clientVersionSuffix. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClientVersionSuffixBytes() { - java.lang.Object ref = clientVersionSuffix_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientVersionSuffix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENTSILENCEVERSIONSUFFIX_FIELD_NUMBER = 27; - private volatile java.lang.Object clientSilenceVersionSuffix_; - /** - * <code>string clientSilenceVersionSuffix = 27;</code> - * @return The clientSilenceVersionSuffix. - */ - @java.lang.Override - public java.lang.String getClientSilenceVersionSuffix() { - java.lang.Object ref = clientSilenceVersionSuffix_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientSilenceVersionSuffix_ = s; - return s; - } - } - /** - * <code>string clientSilenceVersionSuffix = 27;</code> - * @return The bytes for clientSilenceVersionSuffix. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClientSilenceVersionSuffixBytes() { - java.lang.Object ref = clientSilenceVersionSuffix_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientSilenceVersionSuffix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ACCOUNTURL_FIELD_NUMBER = 31; - private volatile java.lang.Object accountUrl_; - /** - * <code>string accountUrl = 31;</code> - * @return The accountUrl. - */ - @java.lang.Override - public java.lang.String getAccountUrl() { - java.lang.Object ref = accountUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - accountUrl_ = s; - return s; - } - } - /** - * <code>string accountUrl = 31;</code> - * @return The bytes for accountUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAccountUrlBytes() { - java.lang.Object ref = accountUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - accountUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CDKEYURL_FIELD_NUMBER = 32; - private volatile java.lang.Object cdkeyUrl_; - /** - * <code>string cdkeyUrl = 32;</code> - * @return The cdkeyUrl. - */ - @java.lang.Override - public java.lang.String getCdkeyUrl() { - java.lang.Object ref = cdkeyUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cdkeyUrl_ = s; - return s; - } - } - /** - * <code>string cdkeyUrl = 32;</code> - * @return The bytes for cdkeyUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCdkeyUrlBytes() { - java.lang.Object ref = cdkeyUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cdkeyUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PRIVACYURL_FIELD_NUMBER = 33; - private volatile java.lang.Object privacyUrl_; - /** - * <code>string privacyUrl = 33;</code> - * @return The privacyUrl. - */ - @java.lang.Override - public java.lang.String getPrivacyUrl() { - java.lang.Object ref = privacyUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - privacyUrl_ = s; - return s; - } - } - /** - * <code>string privacyUrl = 33;</code> - * @return The bytes for privacyUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPrivacyUrlBytes() { - java.lang.Object ref = privacyUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - privacyUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getIpBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ip_); - } - if (port_ != 0) { - output.writeInt32(2, port_); - } - if (!getPayCallbackUrlBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, payCallbackUrl_); - } - if (!getAreaTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, areaType_); - } - if (!getResourceUrlBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, resourceUrl_); - } - if (!getDataUrlBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, dataUrl_); - } - if (!getFeedbackUrlBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, feedbackUrl_); - } - if (!getBulletinUrlBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, bulletinUrl_); - } - if (!getVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, version_); - } - if (clientDataVersion_ != 0) { - output.writeInt32(14, clientDataVersion_); - } - if (clientSilenceDataVersion_ != 0) { - output.writeInt32(18, clientSilenceDataVersion_); - } - if (!getClientDataMd5Bytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 19, clientDataMd5_); - } - if (!getClientSilenceDataMd5Bytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 20, clientSilenceDataMd5_); - } - if (config_ != null) { - output.writeMessage(22, getConfig()); - } - if (!secretKey_.isEmpty()) { - output.writeBytes(23, secretKey_); - } - if (!getCommunityUrlBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 24, communityUrl_); - } - if (!getClientVersionSuffixBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 26, clientVersionSuffix_); - } - if (!getClientSilenceVersionSuffixBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 27, clientSilenceVersionSuffix_); - } - if (!getAccountUrlBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 31, accountUrl_); - } - if (!getCdkeyUrlBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 32, cdkeyUrl_); - } - if (!getPrivacyUrlBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 33, privacyUrl_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIpBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ip_); - } - if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, port_); - } - if (!getPayCallbackUrlBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, payCallbackUrl_); - } - if (!getAreaTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, areaType_); - } - if (!getResourceUrlBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, resourceUrl_); - } - if (!getDataUrlBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, dataUrl_); - } - if (!getFeedbackUrlBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, feedbackUrl_); - } - if (!getBulletinUrlBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, bulletinUrl_); - } - if (!getVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, version_); - } - if (clientDataVersion_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(14, clientDataVersion_); - } - if (clientSilenceDataVersion_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(18, clientSilenceDataVersion_); - } - if (!getClientDataMd5Bytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, clientDataMd5_); - } - if (!getClientSilenceDataMd5Bytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, clientSilenceDataMd5_); - } - if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, getConfig()); - } - if (!secretKey_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(23, secretKey_); - } - if (!getCommunityUrlBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, communityUrl_); - } - if (!getClientVersionSuffixBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, clientVersionSuffix_); - } - if (!getClientSilenceVersionSuffixBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, clientSilenceVersionSuffix_); - } - if (!getAccountUrlBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(31, accountUrl_); - } - if (!getCdkeyUrlBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(32, cdkeyUrl_); - } - if (!getPrivacyUrlBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, privacyUrl_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo other = (emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo) obj; - - if (!getIp() - .equals(other.getIp())) return false; - if (getPort() - != other.getPort()) return false; - if (!getPayCallbackUrl() - .equals(other.getPayCallbackUrl())) return false; - if (!getAreaType() - .equals(other.getAreaType())) return false; - if (!getResourceUrl() - .equals(other.getResourceUrl())) return false; - if (!getDataUrl() - .equals(other.getDataUrl())) return false; - if (!getFeedbackUrl() - .equals(other.getFeedbackUrl())) return false; - if (!getBulletinUrl() - .equals(other.getBulletinUrl())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (getClientDataVersion() - != other.getClientDataVersion()) return false; - if (getClientSilenceDataVersion() - != other.getClientSilenceDataVersion()) return false; - if (!getClientDataMd5() - .equals(other.getClientDataMd5())) return false; - if (!getClientSilenceDataMd5() - .equals(other.getClientSilenceDataMd5())) return false; - if (hasConfig() != other.hasConfig()) return false; - if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; - } - if (!getSecretKey() - .equals(other.getSecretKey())) return false; - if (!getCommunityUrl() - .equals(other.getCommunityUrl())) return false; - if (!getClientVersionSuffix() - .equals(other.getClientVersionSuffix())) return false; - if (!getClientSilenceVersionSuffix() - .equals(other.getClientSilenceVersionSuffix())) return false; - if (!getAccountUrl() - .equals(other.getAccountUrl())) return false; - if (!getCdkeyUrl() - .equals(other.getCdkeyUrl())) return false; - if (!getPrivacyUrl() - .equals(other.getPrivacyUrl())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + IP_FIELD_NUMBER; - hash = (53 * hash) + getIp().hashCode(); - hash = (37 * hash) + PORT_FIELD_NUMBER; - hash = (53 * hash) + getPort(); - hash = (37 * hash) + PAYCALLBACKURL_FIELD_NUMBER; - hash = (53 * hash) + getPayCallbackUrl().hashCode(); - hash = (37 * hash) + AREATYPE_FIELD_NUMBER; - hash = (53 * hash) + getAreaType().hashCode(); - hash = (37 * hash) + RESOURCEURL_FIELD_NUMBER; - hash = (53 * hash) + getResourceUrl().hashCode(); - hash = (37 * hash) + DATAURL_FIELD_NUMBER; - hash = (53 * hash) + getDataUrl().hashCode(); - hash = (37 * hash) + FEEDBACKURL_FIELD_NUMBER; - hash = (53 * hash) + getFeedbackUrl().hashCode(); - hash = (37 * hash) + BULLETINURL_FIELD_NUMBER; - hash = (53 * hash) + getBulletinUrl().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (37 * hash) + CLIENTDATAVERSION_FIELD_NUMBER; - hash = (53 * hash) + getClientDataVersion(); - hash = (37 * hash) + CLIENTSILENCEDATAVERSION_FIELD_NUMBER; - hash = (53 * hash) + getClientSilenceDataVersion(); - hash = (37 * hash) + CLIENTDATAMD5_FIELD_NUMBER; - hash = (53 * hash) + getClientDataMd5().hashCode(); - hash = (37 * hash) + CLIENTSILENCEDATAMD5_FIELD_NUMBER; - hash = (53 * hash) + getClientSilenceDataMd5().hashCode(); - if (hasConfig()) { - hash = (37 * hash) + CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getConfig().hashCode(); - } - hash = (37 * hash) + SECRETKEY_FIELD_NUMBER; - hash = (53 * hash) + getSecretKey().hashCode(); - hash = (37 * hash) + COMMUNITYURL_FIELD_NUMBER; - hash = (53 * hash) + getCommunityUrl().hashCode(); - hash = (37 * hash) + CLIENTVERSIONSUFFIX_FIELD_NUMBER; - hash = (53 * hash) + getClientVersionSuffix().hashCode(); - hash = (37 * hash) + CLIENTSILENCEVERSIONSUFFIX_FIELD_NUMBER; - hash = (53 * hash) + getClientSilenceVersionSuffix().hashCode(); - hash = (37 * hash) + ACCOUNTURL_FIELD_NUMBER; - hash = (53 * hash) + getAccountUrl().hashCode(); - hash = (37 * hash) + CDKEYURL_FIELD_NUMBER; - hash = (53 * hash) + getCdkeyUrl().hashCode(); - hash = (37 * hash) + PRIVACYURL_FIELD_NUMBER; - hash = (53 * hash) + getPrivacyUrl().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code RegionInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:RegionInfo) - emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.RegionInfoOuterClass.internal_static_RegionInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.RegionInfoOuterClass.internal_static_RegionInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo.class, emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - ip_ = ""; - - port_ = 0; - - payCallbackUrl_ = ""; - - areaType_ = ""; - - resourceUrl_ = ""; - - dataUrl_ = ""; - - feedbackUrl_ = ""; - - bulletinUrl_ = ""; - - version_ = ""; - - clientDataVersion_ = 0; - - clientSilenceDataVersion_ = 0; - - clientDataMd5_ = ""; - - clientSilenceDataMd5_ = ""; - - if (configBuilder_ == null) { - config_ = null; - } else { - config_ = null; - configBuilder_ = null; - } - secretKey_ = com.google.protobuf.ByteString.EMPTY; - - communityUrl_ = ""; - - clientVersionSuffix_ = ""; - - clientSilenceVersionSuffix_ = ""; - - accountUrl_ = ""; - - cdkeyUrl_ = ""; - - privacyUrl_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.RegionInfoOuterClass.internal_static_RegionInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo build() { - emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo buildPartial() { - emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo result = new emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo(this); - result.ip_ = ip_; - result.port_ = port_; - result.payCallbackUrl_ = payCallbackUrl_; - result.areaType_ = areaType_; - result.resourceUrl_ = resourceUrl_; - result.dataUrl_ = dataUrl_; - result.feedbackUrl_ = feedbackUrl_; - result.bulletinUrl_ = bulletinUrl_; - result.version_ = version_; - result.clientDataVersion_ = clientDataVersion_; - result.clientSilenceDataVersion_ = clientSilenceDataVersion_; - result.clientDataMd5_ = clientDataMd5_; - result.clientSilenceDataMd5_ = clientSilenceDataMd5_; - if (configBuilder_ == null) { - result.config_ = config_; - } else { - result.config_ = configBuilder_.build(); - } - result.secretKey_ = secretKey_; - result.communityUrl_ = communityUrl_; - result.clientVersionSuffix_ = clientVersionSuffix_; - result.clientSilenceVersionSuffix_ = clientSilenceVersionSuffix_; - result.accountUrl_ = accountUrl_; - result.cdkeyUrl_ = cdkeyUrl_; - result.privacyUrl_ = privacyUrl_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo) { - return mergeFrom((emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo other) { - if (other == emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo.getDefaultInstance()) return this; - if (!other.getIp().isEmpty()) { - ip_ = other.ip_; - onChanged(); - } - if (other.getPort() != 0) { - setPort(other.getPort()); - } - if (!other.getPayCallbackUrl().isEmpty()) { - payCallbackUrl_ = other.payCallbackUrl_; - onChanged(); - } - if (!other.getAreaType().isEmpty()) { - areaType_ = other.areaType_; - onChanged(); - } - if (!other.getResourceUrl().isEmpty()) { - resourceUrl_ = other.resourceUrl_; - onChanged(); - } - if (!other.getDataUrl().isEmpty()) { - dataUrl_ = other.dataUrl_; - onChanged(); - } - if (!other.getFeedbackUrl().isEmpty()) { - feedbackUrl_ = other.feedbackUrl_; - onChanged(); - } - if (!other.getBulletinUrl().isEmpty()) { - bulletinUrl_ = other.bulletinUrl_; - onChanged(); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - if (other.getClientDataVersion() != 0) { - setClientDataVersion(other.getClientDataVersion()); - } - if (other.getClientSilenceDataVersion() != 0) { - setClientSilenceDataVersion(other.getClientSilenceDataVersion()); - } - if (!other.getClientDataMd5().isEmpty()) { - clientDataMd5_ = other.clientDataMd5_; - onChanged(); - } - if (!other.getClientSilenceDataMd5().isEmpty()) { - clientSilenceDataMd5_ = other.clientSilenceDataMd5_; - onChanged(); - } - if (other.hasConfig()) { - mergeConfig(other.getConfig()); - } - if (other.getSecretKey() != com.google.protobuf.ByteString.EMPTY) { - setSecretKey(other.getSecretKey()); - } - if (!other.getCommunityUrl().isEmpty()) { - communityUrl_ = other.communityUrl_; - onChanged(); - } - if (!other.getClientVersionSuffix().isEmpty()) { - clientVersionSuffix_ = other.clientVersionSuffix_; - onChanged(); - } - if (!other.getClientSilenceVersionSuffix().isEmpty()) { - clientSilenceVersionSuffix_ = other.clientSilenceVersionSuffix_; - onChanged(); - } - if (!other.getAccountUrl().isEmpty()) { - accountUrl_ = other.accountUrl_; - onChanged(); - } - if (!other.getCdkeyUrl().isEmpty()) { - cdkeyUrl_ = other.cdkeyUrl_; - onChanged(); - } - if (!other.getPrivacyUrl().isEmpty()) { - privacyUrl_ = other.privacyUrl_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object ip_ = ""; - /** - * <code>string ip = 1;</code> - * @return The ip. - */ - public java.lang.String getIp() { - java.lang.Object ref = ip_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ip_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string ip = 1;</code> - * @return The bytes for ip. - */ - public com.google.protobuf.ByteString - getIpBytes() { - java.lang.Object ref = ip_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ip_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string ip = 1;</code> - * @param value The ip to set. - * @return This builder for chaining. - */ - public Builder setIp( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ip_ = value; - onChanged(); - return this; - } - /** - * <code>string ip = 1;</code> - * @return This builder for chaining. - */ - public Builder clearIp() { - - ip_ = getDefaultInstance().getIp(); - onChanged(); - return this; - } - /** - * <code>string ip = 1;</code> - * @param value The bytes for ip to set. - * @return This builder for chaining. - */ - public Builder setIpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ip_ = value; - onChanged(); - return this; - } - - private int port_ ; - /** - * <code>int32 port = 2;</code> - * @return The port. - */ - @java.lang.Override - public int getPort() { - return port_; - } - /** - * <code>int32 port = 2;</code> - * @param value The port to set. - * @return This builder for chaining. - */ - public Builder setPort(int value) { - - port_ = value; - onChanged(); - return this; - } - /** - * <code>int32 port = 2;</code> - * @return This builder for chaining. - */ - public Builder clearPort() { - - port_ = 0; - onChanged(); - return this; - } - - private java.lang.Object payCallbackUrl_ = ""; - /** - * <code>string payCallbackUrl = 3;</code> - * @return The payCallbackUrl. - */ - public java.lang.String getPayCallbackUrl() { - java.lang.Object ref = payCallbackUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - payCallbackUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string payCallbackUrl = 3;</code> - * @return The bytes for payCallbackUrl. - */ - public com.google.protobuf.ByteString - getPayCallbackUrlBytes() { - java.lang.Object ref = payCallbackUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - payCallbackUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string payCallbackUrl = 3;</code> - * @param value The payCallbackUrl to set. - * @return This builder for chaining. - */ - public Builder setPayCallbackUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - payCallbackUrl_ = value; - onChanged(); - return this; - } - /** - * <code>string payCallbackUrl = 3;</code> - * @return This builder for chaining. - */ - public Builder clearPayCallbackUrl() { - - payCallbackUrl_ = getDefaultInstance().getPayCallbackUrl(); - onChanged(); - return this; - } - /** - * <code>string payCallbackUrl = 3;</code> - * @param value The bytes for payCallbackUrl to set. - * @return This builder for chaining. - */ - public Builder setPayCallbackUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - payCallbackUrl_ = value; - onChanged(); - return this; - } - - private java.lang.Object areaType_ = ""; - /** - * <code>string areaType = 7;</code> - * @return The areaType. - */ - public java.lang.String getAreaType() { - java.lang.Object ref = areaType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - areaType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string areaType = 7;</code> - * @return The bytes for areaType. - */ - public com.google.protobuf.ByteString - getAreaTypeBytes() { - java.lang.Object ref = areaType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - areaType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string areaType = 7;</code> - * @param value The areaType to set. - * @return This builder for chaining. - */ - public Builder setAreaType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - areaType_ = value; - onChanged(); - return this; - } - /** - * <code>string areaType = 7;</code> - * @return This builder for chaining. - */ - public Builder clearAreaType() { - - areaType_ = getDefaultInstance().getAreaType(); - onChanged(); - return this; - } - /** - * <code>string areaType = 7;</code> - * @param value The bytes for areaType to set. - * @return This builder for chaining. - */ - public Builder setAreaTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - areaType_ = value; - onChanged(); - return this; - } - - private java.lang.Object resourceUrl_ = ""; - /** - * <code>string resourceUrl = 8;</code> - * @return The resourceUrl. - */ - public java.lang.String getResourceUrl() { - java.lang.Object ref = resourceUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resourceUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string resourceUrl = 8;</code> - * @return The bytes for resourceUrl. - */ - public com.google.protobuf.ByteString - getResourceUrlBytes() { - java.lang.Object ref = resourceUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resourceUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string resourceUrl = 8;</code> - * @param value The resourceUrl to set. - * @return This builder for chaining. - */ - public Builder setResourceUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceUrl_ = value; - onChanged(); - return this; - } - /** - * <code>string resourceUrl = 8;</code> - * @return This builder for chaining. - */ - public Builder clearResourceUrl() { - - resourceUrl_ = getDefaultInstance().getResourceUrl(); - onChanged(); - return this; - } - /** - * <code>string resourceUrl = 8;</code> - * @param value The bytes for resourceUrl to set. - * @return This builder for chaining. - */ - public Builder setResourceUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - resourceUrl_ = value; - onChanged(); - return this; - } - - private java.lang.Object dataUrl_ = ""; - /** - * <code>string dataUrl = 9;</code> - * @return The dataUrl. - */ - public java.lang.String getDataUrl() { - java.lang.Object ref = dataUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dataUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string dataUrl = 9;</code> - * @return The bytes for dataUrl. - */ - public com.google.protobuf.ByteString - getDataUrlBytes() { - java.lang.Object ref = dataUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dataUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string dataUrl = 9;</code> - * @param value The dataUrl to set. - * @return This builder for chaining. - */ - public Builder setDataUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - dataUrl_ = value; - onChanged(); - return this; - } - /** - * <code>string dataUrl = 9;</code> - * @return This builder for chaining. - */ - public Builder clearDataUrl() { - - dataUrl_ = getDefaultInstance().getDataUrl(); - onChanged(); - return this; - } - /** - * <code>string dataUrl = 9;</code> - * @param value The bytes for dataUrl to set. - * @return This builder for chaining. - */ - public Builder setDataUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - dataUrl_ = value; - onChanged(); - return this; - } - - private java.lang.Object feedbackUrl_ = ""; - /** - * <code>string feedbackUrl = 10;</code> - * @return The feedbackUrl. - */ - public java.lang.String getFeedbackUrl() { - java.lang.Object ref = feedbackUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - feedbackUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string feedbackUrl = 10;</code> - * @return The bytes for feedbackUrl. - */ - public com.google.protobuf.ByteString - getFeedbackUrlBytes() { - java.lang.Object ref = feedbackUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - feedbackUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string feedbackUrl = 10;</code> - * @param value The feedbackUrl to set. - * @return This builder for chaining. - */ - public Builder setFeedbackUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - feedbackUrl_ = value; - onChanged(); - return this; - } - /** - * <code>string feedbackUrl = 10;</code> - * @return This builder for chaining. - */ - public Builder clearFeedbackUrl() { - - feedbackUrl_ = getDefaultInstance().getFeedbackUrl(); - onChanged(); - return this; - } - /** - * <code>string feedbackUrl = 10;</code> - * @param value The bytes for feedbackUrl to set. - * @return This builder for chaining. - */ - public Builder setFeedbackUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - feedbackUrl_ = value; - onChanged(); - return this; - } - - private java.lang.Object bulletinUrl_ = ""; - /** - * <code>string bulletinUrl = 11;</code> - * @return The bulletinUrl. - */ - public java.lang.String getBulletinUrl() { - java.lang.Object ref = bulletinUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bulletinUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string bulletinUrl = 11;</code> - * @return The bytes for bulletinUrl. - */ - public com.google.protobuf.ByteString - getBulletinUrlBytes() { - java.lang.Object ref = bulletinUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bulletinUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string bulletinUrl = 11;</code> - * @param value The bulletinUrl to set. - * @return This builder for chaining. - */ - public Builder setBulletinUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - bulletinUrl_ = value; - onChanged(); - return this; - } - /** - * <code>string bulletinUrl = 11;</code> - * @return This builder for chaining. - */ - public Builder clearBulletinUrl() { - - bulletinUrl_ = getDefaultInstance().getBulletinUrl(); - onChanged(); - return this; - } - /** - * <code>string bulletinUrl = 11;</code> - * @param value The bytes for bulletinUrl to set. - * @return This builder for chaining. - */ - public Builder setBulletinUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bulletinUrl_ = value; - onChanged(); - return this; - } - - private java.lang.Object version_ = ""; - /** - * <code>string version = 12;</code> - * @return The version. - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string version = 12;</code> - * @return The bytes for version. - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string version = 12;</code> - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - * <code>string version = 12;</code> - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - * <code>string version = 12;</code> - * @param value The bytes for version to set. - * @return This builder for chaining. - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private int clientDataVersion_ ; - /** - * <code>int32 clientDataVersion = 14;</code> - * @return The clientDataVersion. - */ - @java.lang.Override - public int getClientDataVersion() { - return clientDataVersion_; - } - /** - * <code>int32 clientDataVersion = 14;</code> - * @param value The clientDataVersion to set. - * @return This builder for chaining. - */ - public Builder setClientDataVersion(int value) { - - clientDataVersion_ = value; - onChanged(); - return this; - } - /** - * <code>int32 clientDataVersion = 14;</code> - * @return This builder for chaining. - */ - public Builder clearClientDataVersion() { - - clientDataVersion_ = 0; - onChanged(); - return this; - } - - private int clientSilenceDataVersion_ ; - /** - * <code>int32 clientSilenceDataVersion = 18;</code> - * @return The clientSilenceDataVersion. - */ - @java.lang.Override - public int getClientSilenceDataVersion() { - return clientSilenceDataVersion_; - } - /** - * <code>int32 clientSilenceDataVersion = 18;</code> - * @param value The clientSilenceDataVersion to set. - * @return This builder for chaining. - */ - public Builder setClientSilenceDataVersion(int value) { - - clientSilenceDataVersion_ = value; - onChanged(); - return this; - } - /** - * <code>int32 clientSilenceDataVersion = 18;</code> - * @return This builder for chaining. - */ - public Builder clearClientSilenceDataVersion() { - - clientSilenceDataVersion_ = 0; - onChanged(); - return this; - } - - private java.lang.Object clientDataMd5_ = ""; - /** - * <code>string clientDataMd5 = 19;</code> - * @return The clientDataMd5. - */ - public java.lang.String getClientDataMd5() { - java.lang.Object ref = clientDataMd5_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientDataMd5_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string clientDataMd5 = 19;</code> - * @return The bytes for clientDataMd5. - */ - public com.google.protobuf.ByteString - getClientDataMd5Bytes() { - java.lang.Object ref = clientDataMd5_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientDataMd5_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string clientDataMd5 = 19;</code> - * @param value The clientDataMd5 to set. - * @return This builder for chaining. - */ - public Builder setClientDataMd5( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientDataMd5_ = value; - onChanged(); - return this; - } - /** - * <code>string clientDataMd5 = 19;</code> - * @return This builder for chaining. - */ - public Builder clearClientDataMd5() { - - clientDataMd5_ = getDefaultInstance().getClientDataMd5(); - onChanged(); - return this; - } - /** - * <code>string clientDataMd5 = 19;</code> - * @param value The bytes for clientDataMd5 to set. - * @return This builder for chaining. - */ - public Builder setClientDataMd5Bytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientDataMd5_ = value; - onChanged(); - return this; - } - - private java.lang.Object clientSilenceDataMd5_ = ""; - /** - * <code>string clientSilenceDataMd5 = 20;</code> - * @return The clientSilenceDataMd5. - */ - public java.lang.String getClientSilenceDataMd5() { - java.lang.Object ref = clientSilenceDataMd5_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientSilenceDataMd5_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string clientSilenceDataMd5 = 20;</code> - * @return The bytes for clientSilenceDataMd5. - */ - public com.google.protobuf.ByteString - getClientSilenceDataMd5Bytes() { - java.lang.Object ref = clientSilenceDataMd5_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientSilenceDataMd5_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string clientSilenceDataMd5 = 20;</code> - * @param value The clientSilenceDataMd5 to set. - * @return This builder for chaining. - */ - public Builder setClientSilenceDataMd5( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientSilenceDataMd5_ = value; - onChanged(); - return this; - } - /** - * <code>string clientSilenceDataMd5 = 20;</code> - * @return This builder for chaining. - */ - public Builder clearClientSilenceDataMd5() { - - clientSilenceDataMd5_ = getDefaultInstance().getClientSilenceDataMd5(); - onChanged(); - return this; - } - /** - * <code>string clientSilenceDataMd5 = 20;</code> - * @param value The bytes for clientSilenceDataMd5 to set. - * @return This builder for chaining. - */ - public Builder setClientSilenceDataMd5Bytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientSilenceDataMd5_ = value; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig config_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig, emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.Builder, emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfigOrBuilder> configBuilder_; - /** - * <code>.ResVersionConfig config = 22;</code> - * @return Whether the config field is set. - */ - public boolean hasConfig() { - return configBuilder_ != null || config_ != null; - } - /** - * <code>.ResVersionConfig config = 22;</code> - * @return The config. - */ - public emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig getConfig() { - if (configBuilder_ == null) { - return config_ == null ? emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.getDefaultInstance() : config_; - } else { - return configBuilder_.getMessage(); - } - } - /** - * <code>.ResVersionConfig config = 22;</code> - */ - public Builder setConfig(emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - config_ = value; - onChanged(); - } else { - configBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.ResVersionConfig config = 22;</code> - */ - public Builder setConfig( - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.Builder builderForValue) { - if (configBuilder_ == null) { - config_ = builderForValue.build(); - onChanged(); - } else { - configBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.ResVersionConfig config = 22;</code> - */ - public Builder mergeConfig(emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig value) { - if (configBuilder_ == null) { - if (config_ != null) { - config_ = - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); - } else { - config_ = value; - } - onChanged(); - } else { - configBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.ResVersionConfig config = 22;</code> - */ - public Builder clearConfig() { - if (configBuilder_ == null) { - config_ = null; - onChanged(); - } else { - config_ = null; - configBuilder_ = null; - } - - return this; - } - /** - * <code>.ResVersionConfig config = 22;</code> - */ - public emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.Builder getConfigBuilder() { - - onChanged(); - return getConfigFieldBuilder().getBuilder(); - } - /** - * <code>.ResVersionConfig config = 22;</code> - */ - public emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfigOrBuilder getConfigOrBuilder() { - if (configBuilder_ != null) { - return configBuilder_.getMessageOrBuilder(); - } else { - return config_ == null ? - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.getDefaultInstance() : config_; - } - } - /** - * <code>.ResVersionConfig config = 22;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig, emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.Builder, emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfigOrBuilder> - getConfigFieldBuilder() { - if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig, emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.Builder, emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); - config_ = null; - } - return configBuilder_; - } - - private com.google.protobuf.ByteString secretKey_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>bytes secretKey = 23;</code> - * @return The secretKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSecretKey() { - return secretKey_; - } - /** - * <code>bytes secretKey = 23;</code> - * @param value The secretKey to set. - * @return This builder for chaining. - */ - public Builder setSecretKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - secretKey_ = value; - onChanged(); - return this; - } - /** - * <code>bytes secretKey = 23;</code> - * @return This builder for chaining. - */ - public Builder clearSecretKey() { - - secretKey_ = getDefaultInstance().getSecretKey(); - onChanged(); - return this; - } - - private java.lang.Object communityUrl_ = ""; - /** - * <code>string communityUrl = 24;</code> - * @return The communityUrl. - */ - public java.lang.String getCommunityUrl() { - java.lang.Object ref = communityUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - communityUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string communityUrl = 24;</code> - * @return The bytes for communityUrl. - */ - public com.google.protobuf.ByteString - getCommunityUrlBytes() { - java.lang.Object ref = communityUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - communityUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string communityUrl = 24;</code> - * @param value The communityUrl to set. - * @return This builder for chaining. - */ - public Builder setCommunityUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - communityUrl_ = value; - onChanged(); - return this; - } - /** - * <code>string communityUrl = 24;</code> - * @return This builder for chaining. - */ - public Builder clearCommunityUrl() { - - communityUrl_ = getDefaultInstance().getCommunityUrl(); - onChanged(); - return this; - } - /** - * <code>string communityUrl = 24;</code> - * @param value The bytes for communityUrl to set. - * @return This builder for chaining. - */ - public Builder setCommunityUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - communityUrl_ = value; - onChanged(); - return this; - } - - private java.lang.Object clientVersionSuffix_ = ""; - /** - * <code>string clientVersionSuffix = 26;</code> - * @return The clientVersionSuffix. - */ - public java.lang.String getClientVersionSuffix() { - java.lang.Object ref = clientVersionSuffix_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientVersionSuffix_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string clientVersionSuffix = 26;</code> - * @return The bytes for clientVersionSuffix. - */ - public com.google.protobuf.ByteString - getClientVersionSuffixBytes() { - java.lang.Object ref = clientVersionSuffix_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientVersionSuffix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string clientVersionSuffix = 26;</code> - * @param value The clientVersionSuffix to set. - * @return This builder for chaining. - */ - public Builder setClientVersionSuffix( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientVersionSuffix_ = value; - onChanged(); - return this; - } - /** - * <code>string clientVersionSuffix = 26;</code> - * @return This builder for chaining. - */ - public Builder clearClientVersionSuffix() { - - clientVersionSuffix_ = getDefaultInstance().getClientVersionSuffix(); - onChanged(); - return this; - } - /** - * <code>string clientVersionSuffix = 26;</code> - * @param value The bytes for clientVersionSuffix to set. - * @return This builder for chaining. - */ - public Builder setClientVersionSuffixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientVersionSuffix_ = value; - onChanged(); - return this; - } - - private java.lang.Object clientSilenceVersionSuffix_ = ""; - /** - * <code>string clientSilenceVersionSuffix = 27;</code> - * @return The clientSilenceVersionSuffix. - */ - public java.lang.String getClientSilenceVersionSuffix() { - java.lang.Object ref = clientSilenceVersionSuffix_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientSilenceVersionSuffix_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string clientSilenceVersionSuffix = 27;</code> - * @return The bytes for clientSilenceVersionSuffix. - */ - public com.google.protobuf.ByteString - getClientSilenceVersionSuffixBytes() { - java.lang.Object ref = clientSilenceVersionSuffix_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientSilenceVersionSuffix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string clientSilenceVersionSuffix = 27;</code> - * @param value The clientSilenceVersionSuffix to set. - * @return This builder for chaining. - */ - public Builder setClientSilenceVersionSuffix( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientSilenceVersionSuffix_ = value; - onChanged(); - return this; - } - /** - * <code>string clientSilenceVersionSuffix = 27;</code> - * @return This builder for chaining. - */ - public Builder clearClientSilenceVersionSuffix() { - - clientSilenceVersionSuffix_ = getDefaultInstance().getClientSilenceVersionSuffix(); - onChanged(); - return this; - } - /** - * <code>string clientSilenceVersionSuffix = 27;</code> - * @param value The bytes for clientSilenceVersionSuffix to set. - * @return This builder for chaining. - */ - public Builder setClientSilenceVersionSuffixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientSilenceVersionSuffix_ = value; - onChanged(); - return this; - } - - private java.lang.Object accountUrl_ = ""; - /** - * <code>string accountUrl = 31;</code> - * @return The accountUrl. - */ - public java.lang.String getAccountUrl() { - java.lang.Object ref = accountUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - accountUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string accountUrl = 31;</code> - * @return The bytes for accountUrl. - */ - public com.google.protobuf.ByteString - getAccountUrlBytes() { - java.lang.Object ref = accountUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - accountUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string accountUrl = 31;</code> - * @param value The accountUrl to set. - * @return This builder for chaining. - */ - public Builder setAccountUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - accountUrl_ = value; - onChanged(); - return this; - } - /** - * <code>string accountUrl = 31;</code> - * @return This builder for chaining. - */ - public Builder clearAccountUrl() { - - accountUrl_ = getDefaultInstance().getAccountUrl(); - onChanged(); - return this; - } - /** - * <code>string accountUrl = 31;</code> - * @param value The bytes for accountUrl to set. - * @return This builder for chaining. - */ - public Builder setAccountUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - accountUrl_ = value; - onChanged(); - return this; - } - - private java.lang.Object cdkeyUrl_ = ""; - /** - * <code>string cdkeyUrl = 32;</code> - * @return The cdkeyUrl. - */ - public java.lang.String getCdkeyUrl() { - java.lang.Object ref = cdkeyUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cdkeyUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string cdkeyUrl = 32;</code> - * @return The bytes for cdkeyUrl. - */ - public com.google.protobuf.ByteString - getCdkeyUrlBytes() { - java.lang.Object ref = cdkeyUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cdkeyUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string cdkeyUrl = 32;</code> - * @param value The cdkeyUrl to set. - * @return This builder for chaining. - */ - public Builder setCdkeyUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cdkeyUrl_ = value; - onChanged(); - return this; - } - /** - * <code>string cdkeyUrl = 32;</code> - * @return This builder for chaining. - */ - public Builder clearCdkeyUrl() { - - cdkeyUrl_ = getDefaultInstance().getCdkeyUrl(); - onChanged(); - return this; - } - /** - * <code>string cdkeyUrl = 32;</code> - * @param value The bytes for cdkeyUrl to set. - * @return This builder for chaining. - */ - public Builder setCdkeyUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cdkeyUrl_ = value; - onChanged(); - return this; - } - - private java.lang.Object privacyUrl_ = ""; - /** - * <code>string privacyUrl = 33;</code> - * @return The privacyUrl. - */ - public java.lang.String getPrivacyUrl() { - java.lang.Object ref = privacyUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - privacyUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string privacyUrl = 33;</code> - * @return The bytes for privacyUrl. - */ - public com.google.protobuf.ByteString - getPrivacyUrlBytes() { - java.lang.Object ref = privacyUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - privacyUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string privacyUrl = 33;</code> - * @param value The privacyUrl to set. - * @return This builder for chaining. - */ - public Builder setPrivacyUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - privacyUrl_ = value; - onChanged(); - return this; - } - /** - * <code>string privacyUrl = 33;</code> - * @return This builder for chaining. - */ - public Builder clearPrivacyUrl() { - - privacyUrl_ = getDefaultInstance().getPrivacyUrl(); - onChanged(); - return this; - } - /** - * <code>string privacyUrl = 33;</code> - * @param value The bytes for privacyUrl to set. - * @return This builder for chaining. - */ - public Builder setPrivacyUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - privacyUrl_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:RegionInfo) - } - - // @@protoc_insertion_point(class_scope:RegionInfo) - private static final emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo(); - } - - public static emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<RegionInfo> - PARSER = new com.google.protobuf.AbstractParser<RegionInfo>() { - @java.lang.Override - public RegionInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RegionInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<RegionInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<RegionInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_RegionInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_RegionInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020RegionInfo.proto\032\026ResVersionConfig.pro" + - "to\"\352\003\n\nRegionInfo\022\n\n\002ip\030\001 \001(\t\022\014\n\004port\030\002 " + - "\001(\005\022\026\n\016payCallbackUrl\030\003 \001(\t\022\020\n\010areaType\030" + - "\007 \001(\t\022\023\n\013resourceUrl\030\010 \001(\t\022\017\n\007dataUrl\030\t " + - "\001(\t\022\023\n\013feedbackUrl\030\n \001(\t\022\023\n\013bulletinUrl\030" + - "\013 \001(\t\022\017\n\007version\030\014 \001(\t\022\031\n\021clientDataVers" + - "ion\030\016 \001(\005\022 \n\030clientSilenceDataVersion\030\022 " + - "\001(\005\022\025\n\rclientDataMd5\030\023 \001(\t\022\034\n\024clientSile" + - "nceDataMd5\030\024 \001(\t\022!\n\006config\030\026 \001(\0132\021.ResVe" + - "rsionConfig\022\021\n\tsecretKey\030\027 \001(\014\022\024\n\014commun" + - "ityUrl\030\030 \001(\t\022\033\n\023clientVersionSuffix\030\032 \001(" + - "\t\022\"\n\032clientSilenceVersionSuffix\030\033 \001(\t\022\022\n" + - "\naccountUrl\030\037 \001(\t\022\020\n\010cdkeyUrl\030 \001(\t\022\022\n\np" + - "rivacyUrl\030! \001(\tB\033\n\031emu.grasscutter.net.p" + - "rotob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ResVersionConfigOuterClass.getDescriptor(), - }); - internal_static_RegionInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_RegionInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_RegionInfo_descriptor, - new java.lang.String[] { "Ip", "Port", "PayCallbackUrl", "AreaType", "ResourceUrl", "DataUrl", "FeedbackUrl", "BulletinUrl", "Version", "ClientDataVersion", "ClientSilenceDataVersion", "ClientDataMd5", "ClientSilenceDataMd5", "Config", "SecretKey", "CommunityUrl", "ClientVersionSuffix", "ClientSilenceVersionSuffix", "AccountUrl", "CdkeyUrl", "PrivacyUrl", }); - emu.grasscutter.net.proto.ResVersionConfigOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/RegionSimpleInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/RegionSimpleInfoOuterClass.java deleted file mode 100644 index e10f23df4..000000000 --- a/src/main/java/emu/grasscutter/net/proto/RegionSimpleInfoOuterClass.java +++ /dev/null @@ -1,1067 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: RegionSimpleInfo.proto - -package emu.grasscutter.net.proto; - -public final class RegionSimpleInfoOuterClass { - private RegionSimpleInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface RegionSimpleInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:RegionSimpleInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>string name = 1;</code> - * @return The name. - */ - java.lang.String getName(); - /** - * <code>string name = 1;</code> - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * <code>string title = 2;</code> - * @return The title. - */ - java.lang.String getTitle(); - /** - * <code>string title = 2;</code> - * @return The bytes for title. - */ - com.google.protobuf.ByteString - getTitleBytes(); - - /** - * <code>string type = 3;</code> - * @return The type. - */ - java.lang.String getType(); - /** - * <code>string type = 3;</code> - * @return The bytes for type. - */ - com.google.protobuf.ByteString - getTypeBytes(); - - /** - * <code>string dispatchUrl = 4;</code> - * @return The dispatchUrl. - */ - java.lang.String getDispatchUrl(); - /** - * <code>string dispatchUrl = 4;</code> - * @return The bytes for dispatchUrl. - */ - com.google.protobuf.ByteString - getDispatchUrlBytes(); - } - /** - * Protobuf type {@code RegionSimpleInfo} - */ - public static final class RegionSimpleInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:RegionSimpleInfo) - RegionSimpleInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use RegionSimpleInfo.newBuilder() to construct. - private RegionSimpleInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private RegionSimpleInfo() { - name_ = ""; - title_ = ""; - type_ = ""; - dispatchUrl_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RegionSimpleInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RegionSimpleInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - title_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - type_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - dispatchUrl_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.internal_static_RegionSimpleInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.internal_static_RegionSimpleInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo.class, emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * <code>string name = 1;</code> - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * <code>string name = 1;</code> - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TITLE_FIELD_NUMBER = 2; - private volatile java.lang.Object title_; - /** - * <code>string title = 2;</code> - * @return The title. - */ - @java.lang.Override - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } - } - /** - * <code>string title = 2;</code> - * @return The bytes for title. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 3; - private volatile java.lang.Object type_; - /** - * <code>string type = 3;</code> - * @return The type. - */ - @java.lang.Override - public java.lang.String getType() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } - } - /** - * <code>string type = 3;</code> - * @return The bytes for type. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPATCHURL_FIELD_NUMBER = 4; - private volatile java.lang.Object dispatchUrl_; - /** - * <code>string dispatchUrl = 4;</code> - * @return The dispatchUrl. - */ - @java.lang.Override - public java.lang.String getDispatchUrl() { - java.lang.Object ref = dispatchUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dispatchUrl_ = s; - return s; - } - } - /** - * <code>string dispatchUrl = 4;</code> - * @return The bytes for dispatchUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDispatchUrlBytes() { - java.lang.Object ref = dispatchUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dispatchUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getTitleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); - } - if (!getTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_); - } - if (!getDispatchUrlBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, dispatchUrl_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getTitleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); - } - if (!getTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_); - } - if (!getDispatchUrlBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, dispatchUrl_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo other = (emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getTitle() - .equals(other.getTitle())) return false; - if (!getType() - .equals(other.getType())) return false; - if (!getDispatchUrl() - .equals(other.getDispatchUrl())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - hash = (37 * hash) + DISPATCHURL_FIELD_NUMBER; - hash = (53 * hash) + getDispatchUrl().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code RegionSimpleInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:RegionSimpleInfo) - emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.internal_static_RegionSimpleInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.internal_static_RegionSimpleInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo.class, emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - title_ = ""; - - type_ = ""; - - dispatchUrl_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.internal_static_RegionSimpleInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo build() { - emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo buildPartial() { - emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo result = new emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo(this); - result.name_ = name_; - result.title_ = title_; - result.type_ = type_; - result.dispatchUrl_ = dispatchUrl_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo) { - return mergeFrom((emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo other) { - if (other == emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - onChanged(); - } - if (!other.getType().isEmpty()) { - type_ = other.type_; - onChanged(); - } - if (!other.getDispatchUrl().isEmpty()) { - dispatchUrl_ = other.dispatchUrl_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * <code>string name = 1;</code> - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string name = 1;</code> - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string name = 1;</code> - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * <code>string name = 1;</code> - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * <code>string name = 1;</code> - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object title_ = ""; - /** - * <code>string title = 2;</code> - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string title = 2;</code> - * @return The bytes for title. - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string title = 2;</code> - * @param value The title to set. - * @return This builder for chaining. - */ - public Builder setTitle( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - title_ = value; - onChanged(); - return this; - } - /** - * <code>string title = 2;</code> - * @return This builder for chaining. - */ - public Builder clearTitle() { - - title_ = getDefaultInstance().getTitle(); - onChanged(); - return this; - } - /** - * <code>string title = 2;</code> - * @param value The bytes for title to set. - * @return This builder for chaining. - */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - title_ = value; - onChanged(); - return this; - } - - private java.lang.Object type_ = ""; - /** - * <code>string type = 3;</code> - * @return The type. - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string type = 3;</code> - * @return The bytes for type. - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string type = 3;</code> - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value; - onChanged(); - return this; - } - /** - * <code>string type = 3;</code> - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = getDefaultInstance().getType(); - onChanged(); - return this; - } - /** - * <code>string type = 3;</code> - * @param value The bytes for type to set. - * @return This builder for chaining. - */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - type_ = value; - onChanged(); - return this; - } - - private java.lang.Object dispatchUrl_ = ""; - /** - * <code>string dispatchUrl = 4;</code> - * @return The dispatchUrl. - */ - public java.lang.String getDispatchUrl() { - java.lang.Object ref = dispatchUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dispatchUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string dispatchUrl = 4;</code> - * @return The bytes for dispatchUrl. - */ - public com.google.protobuf.ByteString - getDispatchUrlBytes() { - java.lang.Object ref = dispatchUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dispatchUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string dispatchUrl = 4;</code> - * @param value The dispatchUrl to set. - * @return This builder for chaining. - */ - public Builder setDispatchUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - dispatchUrl_ = value; - onChanged(); - return this; - } - /** - * <code>string dispatchUrl = 4;</code> - * @return This builder for chaining. - */ - public Builder clearDispatchUrl() { - - dispatchUrl_ = getDefaultInstance().getDispatchUrl(); - onChanged(); - return this; - } - /** - * <code>string dispatchUrl = 4;</code> - * @param value The bytes for dispatchUrl to set. - * @return This builder for chaining. - */ - public Builder setDispatchUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - dispatchUrl_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:RegionSimpleInfo) - } - - // @@protoc_insertion_point(class_scope:RegionSimpleInfo) - private static final emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo(); - } - - public static emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<RegionSimpleInfo> - PARSER = new com.google.protobuf.AbstractParser<RegionSimpleInfo>() { - @java.lang.Override - public RegionSimpleInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RegionSimpleInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<RegionSimpleInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<RegionSimpleInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_RegionSimpleInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_RegionSimpleInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026RegionSimpleInfo.proto\"R\n\020RegionSimple" + - "Info\022\014\n\004name\030\001 \001(\t\022\r\n\005title\030\002 \001(\t\022\014\n\004typ" + - "e\030\003 \001(\t\022\023\n\013dispatchUrl\030\004 \001(\tB\033\n\031emu.gras" + - "scutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_RegionSimpleInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_RegionSimpleInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_RegionSimpleInfo_descriptor, - new java.lang.String[] { "Name", "Title", "Type", "DispatchUrl", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ReliquaryOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ReliquaryOuterClass.java deleted file mode 100644 index 83bb5fb6c..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ReliquaryOuterClass.java +++ /dev/null @@ -1,945 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Reliquary.proto - -package emu.grasscutter.net.proto; - -public final class ReliquaryOuterClass { - private ReliquaryOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ReliquaryOrBuilder extends - // @@protoc_insertion_point(interface_extends:Reliquary) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 level = 1;</code> - * @return The level. - */ - int getLevel(); - - /** - * <code>uint32 exp = 2;</code> - * @return The exp. - */ - int getExp(); - - /** - * <code>uint32 promoteLevel = 3;</code> - * @return The promoteLevel. - */ - int getPromoteLevel(); - - /** - * <code>uint32 mainPropId = 4;</code> - * @return The mainPropId. - */ - int getMainPropId(); - - /** - * <code>repeated uint32 appendPropIdList = 5;</code> - * @return A list containing the appendPropIdList. - */ - java.util.List<java.lang.Integer> getAppendPropIdListList(); - /** - * <code>repeated uint32 appendPropIdList = 5;</code> - * @return The count of appendPropIdList. - */ - int getAppendPropIdListCount(); - /** - * <code>repeated uint32 appendPropIdList = 5;</code> - * @param index The index of the element to return. - * @return The appendPropIdList at the given index. - */ - int getAppendPropIdList(int index); - } - /** - * Protobuf type {@code Reliquary} - */ - public static final class Reliquary extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Reliquary) - ReliquaryOrBuilder { - private static final long serialVersionUID = 0L; - // Use Reliquary.newBuilder() to construct. - private Reliquary(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Reliquary() { - appendPropIdList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Reliquary(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Reliquary( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - level_ = input.readUInt32(); - break; - } - case 16: { - - exp_ = input.readUInt32(); - break; - } - case 24: { - - promoteLevel_ = input.readUInt32(); - break; - } - case 32: { - - mainPropId_ = input.readUInt32(); - break; - } - case 40: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - appendPropIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - appendPropIdList_.addInt(input.readUInt32()); - break; - } - case 42: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - appendPropIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - appendPropIdList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - appendPropIdList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ReliquaryOuterClass.internal_static_Reliquary_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ReliquaryOuterClass.internal_static_Reliquary_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary.class, emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary.Builder.class); - } - - public static final int LEVEL_FIELD_NUMBER = 1; - private int level_; - /** - * <code>uint32 level = 1;</code> - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - - public static final int EXP_FIELD_NUMBER = 2; - private int exp_; - /** - * <code>uint32 exp = 2;</code> - * @return The exp. - */ - @java.lang.Override - public int getExp() { - return exp_; - } - - public static final int PROMOTELEVEL_FIELD_NUMBER = 3; - private int promoteLevel_; - /** - * <code>uint32 promoteLevel = 3;</code> - * @return The promoteLevel. - */ - @java.lang.Override - public int getPromoteLevel() { - return promoteLevel_; - } - - public static final int MAINPROPID_FIELD_NUMBER = 4; - private int mainPropId_; - /** - * <code>uint32 mainPropId = 4;</code> - * @return The mainPropId. - */ - @java.lang.Override - public int getMainPropId() { - return mainPropId_; - } - - public static final int APPENDPROPIDLIST_FIELD_NUMBER = 5; - private com.google.protobuf.Internal.IntList appendPropIdList_; - /** - * <code>repeated uint32 appendPropIdList = 5;</code> - * @return A list containing the appendPropIdList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getAppendPropIdListList() { - return appendPropIdList_; - } - /** - * <code>repeated uint32 appendPropIdList = 5;</code> - * @return The count of appendPropIdList. - */ - public int getAppendPropIdListCount() { - return appendPropIdList_.size(); - } - /** - * <code>repeated uint32 appendPropIdList = 5;</code> - * @param index The index of the element to return. - * @return The appendPropIdList at the given index. - */ - public int getAppendPropIdList(int index) { - return appendPropIdList_.getInt(index); - } - private int appendPropIdListMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (level_ != 0) { - output.writeUInt32(1, level_); - } - if (exp_ != 0) { - output.writeUInt32(2, exp_); - } - if (promoteLevel_ != 0) { - output.writeUInt32(3, promoteLevel_); - } - if (mainPropId_ != 0) { - output.writeUInt32(4, mainPropId_); - } - if (getAppendPropIdListList().size() > 0) { - output.writeUInt32NoTag(42); - output.writeUInt32NoTag(appendPropIdListMemoizedSerializedSize); - } - for (int i = 0; i < appendPropIdList_.size(); i++) { - output.writeUInt32NoTag(appendPropIdList_.getInt(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (level_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, level_); - } - if (exp_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, exp_); - } - if (promoteLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, promoteLevel_); - } - if (mainPropId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, mainPropId_); - } - { - int dataSize = 0; - for (int i = 0; i < appendPropIdList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(appendPropIdList_.getInt(i)); - } - size += dataSize; - if (!getAppendPropIdListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - appendPropIdListMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary other = (emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary) obj; - - if (getLevel() - != other.getLevel()) return false; - if (getExp() - != other.getExp()) return false; - if (getPromoteLevel() - != other.getPromoteLevel()) return false; - if (getMainPropId() - != other.getMainPropId()) return false; - if (!getAppendPropIdListList() - .equals(other.getAppendPropIdListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LEVEL_FIELD_NUMBER; - hash = (53 * hash) + getLevel(); - hash = (37 * hash) + EXP_FIELD_NUMBER; - hash = (53 * hash) + getExp(); - hash = (37 * hash) + PROMOTELEVEL_FIELD_NUMBER; - hash = (53 * hash) + getPromoteLevel(); - hash = (37 * hash) + MAINPROPID_FIELD_NUMBER; - hash = (53 * hash) + getMainPropId(); - if (getAppendPropIdListCount() > 0) { - hash = (37 * hash) + APPENDPROPIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getAppendPropIdListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Reliquary} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:Reliquary) - emu.grasscutter.net.proto.ReliquaryOuterClass.ReliquaryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ReliquaryOuterClass.internal_static_Reliquary_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ReliquaryOuterClass.internal_static_Reliquary_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary.class, emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - level_ = 0; - - exp_ = 0; - - promoteLevel_ = 0; - - mainPropId_ = 0; - - appendPropIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ReliquaryOuterClass.internal_static_Reliquary_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary build() { - emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary buildPartial() { - emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary result = new emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary(this); - int from_bitField0_ = bitField0_; - result.level_ = level_; - result.exp_ = exp_; - result.promoteLevel_ = promoteLevel_; - result.mainPropId_ = mainPropId_; - if (((bitField0_ & 0x00000001) != 0)) { - appendPropIdList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.appendPropIdList_ = appendPropIdList_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary) { - return mergeFrom((emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary other) { - if (other == emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary.getDefaultInstance()) return this; - if (other.getLevel() != 0) { - setLevel(other.getLevel()); - } - if (other.getExp() != 0) { - setExp(other.getExp()); - } - if (other.getPromoteLevel() != 0) { - setPromoteLevel(other.getPromoteLevel()); - } - if (other.getMainPropId() != 0) { - setMainPropId(other.getMainPropId()); - } - if (!other.appendPropIdList_.isEmpty()) { - if (appendPropIdList_.isEmpty()) { - appendPropIdList_ = other.appendPropIdList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAppendPropIdListIsMutable(); - appendPropIdList_.addAll(other.appendPropIdList_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int level_ ; - /** - * <code>uint32 level = 1;</code> - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - /** - * <code>uint32 level = 1;</code> - * @param value The level to set. - * @return This builder for chaining. - */ - public Builder setLevel(int value) { - - level_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 level = 1;</code> - * @return This builder for chaining. - */ - public Builder clearLevel() { - - level_ = 0; - onChanged(); - return this; - } - - private int exp_ ; - /** - * <code>uint32 exp = 2;</code> - * @return The exp. - */ - @java.lang.Override - public int getExp() { - return exp_; - } - /** - * <code>uint32 exp = 2;</code> - * @param value The exp to set. - * @return This builder for chaining. - */ - public Builder setExp(int value) { - - exp_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 exp = 2;</code> - * @return This builder for chaining. - */ - public Builder clearExp() { - - exp_ = 0; - onChanged(); - return this; - } - - private int promoteLevel_ ; - /** - * <code>uint32 promoteLevel = 3;</code> - * @return The promoteLevel. - */ - @java.lang.Override - public int getPromoteLevel() { - return promoteLevel_; - } - /** - * <code>uint32 promoteLevel = 3;</code> - * @param value The promoteLevel to set. - * @return This builder for chaining. - */ - public Builder setPromoteLevel(int value) { - - promoteLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 promoteLevel = 3;</code> - * @return This builder for chaining. - */ - public Builder clearPromoteLevel() { - - promoteLevel_ = 0; - onChanged(); - return this; - } - - private int mainPropId_ ; - /** - * <code>uint32 mainPropId = 4;</code> - * @return The mainPropId. - */ - @java.lang.Override - public int getMainPropId() { - return mainPropId_; - } - /** - * <code>uint32 mainPropId = 4;</code> - * @param value The mainPropId to set. - * @return This builder for chaining. - */ - public Builder setMainPropId(int value) { - - mainPropId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 mainPropId = 4;</code> - * @return This builder for chaining. - */ - public Builder clearMainPropId() { - - mainPropId_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList appendPropIdList_ = emptyIntList(); - private void ensureAppendPropIdListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - appendPropIdList_ = mutableCopy(appendPropIdList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 appendPropIdList = 5;</code> - * @return A list containing the appendPropIdList. - */ - public java.util.List<java.lang.Integer> - getAppendPropIdListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(appendPropIdList_) : appendPropIdList_; - } - /** - * <code>repeated uint32 appendPropIdList = 5;</code> - * @return The count of appendPropIdList. - */ - public int getAppendPropIdListCount() { - return appendPropIdList_.size(); - } - /** - * <code>repeated uint32 appendPropIdList = 5;</code> - * @param index The index of the element to return. - * @return The appendPropIdList at the given index. - */ - public int getAppendPropIdList(int index) { - return appendPropIdList_.getInt(index); - } - /** - * <code>repeated uint32 appendPropIdList = 5;</code> - * @param index The index to set the value at. - * @param value The appendPropIdList to set. - * @return This builder for chaining. - */ - public Builder setAppendPropIdList( - int index, int value) { - ensureAppendPropIdListIsMutable(); - appendPropIdList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 appendPropIdList = 5;</code> - * @param value The appendPropIdList to add. - * @return This builder for chaining. - */ - public Builder addAppendPropIdList(int value) { - ensureAppendPropIdListIsMutable(); - appendPropIdList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 appendPropIdList = 5;</code> - * @param values The appendPropIdList to add. - * @return This builder for chaining. - */ - public Builder addAllAppendPropIdList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureAppendPropIdListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, appendPropIdList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 appendPropIdList = 5;</code> - * @return This builder for chaining. - */ - public Builder clearAppendPropIdList() { - appendPropIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Reliquary) - } - - // @@protoc_insertion_point(class_scope:Reliquary) - private static final emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary(); - } - - public static emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<Reliquary> - PARSER = new com.google.protobuf.AbstractParser<Reliquary>() { - @java.lang.Override - public Reliquary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Reliquary(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<Reliquary> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Reliquary> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Reliquary_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Reliquary_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\017Reliquary.proto\"k\n\tReliquary\022\r\n\005level\030" + - "\001 \001(\r\022\013\n\003exp\030\002 \001(\r\022\024\n\014promoteLevel\030\003 \001(\r" + - "\022\022\n\nmainPropId\030\004 \001(\r\022\030\n\020appendPropIdList" + - "\030\005 \003(\rB\033\n\031emu.grasscutter.net.protob\006pro" + - "to3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_Reliquary_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_Reliquary_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Reliquary_descriptor, - new java.lang.String[] { "Level", "Exp", "PromoteLevel", "MainPropId", "AppendPropIdList", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ReliquaryPromoteReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ReliquaryPromoteReqOuterClass.java deleted file mode 100644 index 851d8e90c..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ReliquaryPromoteReqOuterClass.java +++ /dev/null @@ -1,609 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ReliquaryPromoteReq.proto - -package emu.grasscutter.net.proto; - -public final class ReliquaryPromoteReqOuterClass { - private ReliquaryPromoteReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ReliquaryPromoteReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReliquaryPromoteReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 targetGuid = 1;</code> - * @return The targetGuid. - */ - long getTargetGuid(); - - /** - * <code>uint64 itemGuid = 2;</code> - * @return The itemGuid. - */ - long getItemGuid(); - } - /** - * Protobuf type {@code ReliquaryPromoteReq} - */ - public static final class ReliquaryPromoteReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReliquaryPromoteReq) - ReliquaryPromoteReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReliquaryPromoteReq.newBuilder() to construct. - private ReliquaryPromoteReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ReliquaryPromoteReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReliquaryPromoteReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReliquaryPromoteReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - targetGuid_ = input.readUInt64(); - break; - } - case 16: { - - itemGuid_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.internal_static_ReliquaryPromoteReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.internal_static_ReliquaryPromoteReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq.class, emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq.Builder.class); - } - - public static final int TARGETGUID_FIELD_NUMBER = 1; - private long targetGuid_; - /** - * <code>uint64 targetGuid = 1;</code> - * @return The targetGuid. - */ - @java.lang.Override - public long getTargetGuid() { - return targetGuid_; - } - - public static final int ITEMGUID_FIELD_NUMBER = 2; - private long itemGuid_; - /** - * <code>uint64 itemGuid = 2;</code> - * @return The itemGuid. - */ - @java.lang.Override - public long getItemGuid() { - return itemGuid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (targetGuid_ != 0L) { - output.writeUInt64(1, targetGuid_); - } - if (itemGuid_ != 0L) { - output.writeUInt64(2, itemGuid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (targetGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, targetGuid_); - } - if (itemGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, itemGuid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq other = (emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq) obj; - - if (getTargetGuid() - != other.getTargetGuid()) return false; - if (getItemGuid() - != other.getItemGuid()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TARGETGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTargetGuid()); - hash = (37 * hash) + ITEMGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getItemGuid()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReliquaryPromoteReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ReliquaryPromoteReq) - emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.internal_static_ReliquaryPromoteReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.internal_static_ReliquaryPromoteReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq.class, emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - targetGuid_ = 0L; - - itemGuid_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.internal_static_ReliquaryPromoteReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq build() { - emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq buildPartial() { - emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq result = new emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq(this); - result.targetGuid_ = targetGuid_; - result.itemGuid_ = itemGuid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq) { - return mergeFrom((emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq other) { - if (other == emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq.getDefaultInstance()) return this; - if (other.getTargetGuid() != 0L) { - setTargetGuid(other.getTargetGuid()); - } - if (other.getItemGuid() != 0L) { - setItemGuid(other.getItemGuid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long targetGuid_ ; - /** - * <code>uint64 targetGuid = 1;</code> - * @return The targetGuid. - */ - @java.lang.Override - public long getTargetGuid() { - return targetGuid_; - } - /** - * <code>uint64 targetGuid = 1;</code> - * @param value The targetGuid to set. - * @return This builder for chaining. - */ - public Builder setTargetGuid(long value) { - - targetGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 targetGuid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTargetGuid() { - - targetGuid_ = 0L; - onChanged(); - return this; - } - - private long itemGuid_ ; - /** - * <code>uint64 itemGuid = 2;</code> - * @return The itemGuid. - */ - @java.lang.Override - public long getItemGuid() { - return itemGuid_; - } - /** - * <code>uint64 itemGuid = 2;</code> - * @param value The itemGuid to set. - * @return This builder for chaining. - */ - public Builder setItemGuid(long value) { - - itemGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 itemGuid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearItemGuid() { - - itemGuid_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReliquaryPromoteReq) - } - - // @@protoc_insertion_point(class_scope:ReliquaryPromoteReq) - private static final emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq(); - } - - public static emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ReliquaryPromoteReq> - PARSER = new com.google.protobuf.AbstractParser<ReliquaryPromoteReq>() { - @java.lang.Override - public ReliquaryPromoteReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReliquaryPromoteReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ReliquaryPromoteReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ReliquaryPromoteReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ReliquaryPromoteReqOuterClass.ReliquaryPromoteReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReliquaryPromoteReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReliquaryPromoteReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031ReliquaryPromoteReq.proto\";\n\023Reliquary" + - "PromoteReq\022\022\n\ntargetGuid\030\001 \001(\004\022\020\n\010itemGu" + - "id\030\002 \001(\004B\033\n\031emu.grasscutter.net.protob\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ReliquaryPromoteReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ReliquaryPromoteReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReliquaryPromoteReq_descriptor, - new java.lang.String[] { "TargetGuid", "ItemGuid", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ReliquaryPromoteRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ReliquaryPromoteRspOuterClass.java deleted file mode 100644 index 2771b0d6d..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ReliquaryPromoteRspOuterClass.java +++ /dev/null @@ -1,1140 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ReliquaryPromoteRsp.proto - -package emu.grasscutter.net.proto; - -public final class ReliquaryPromoteRspOuterClass { - private ReliquaryPromoteRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ReliquaryPromoteRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReliquaryPromoteRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint64 targetReliquaryGuid = 2;</code> - * @return The targetReliquaryGuid. - */ - long getTargetReliquaryGuid(); - - /** - * <code>uint32 oldPromoteLevel = 3;</code> - * @return The oldPromoteLevel. - */ - int getOldPromoteLevel(); - - /** - * <code>uint32 curPromoteLevel = 4;</code> - * @return The curPromoteLevel. - */ - int getCurPromoteLevel(); - - /** - * <code>repeated uint32 oldAppendPropList = 5;</code> - * @return A list containing the oldAppendPropList. - */ - java.util.List<java.lang.Integer> getOldAppendPropListList(); - /** - * <code>repeated uint32 oldAppendPropList = 5;</code> - * @return The count of oldAppendPropList. - */ - int getOldAppendPropListCount(); - /** - * <code>repeated uint32 oldAppendPropList = 5;</code> - * @param index The index of the element to return. - * @return The oldAppendPropList at the given index. - */ - int getOldAppendPropList(int index); - - /** - * <code>repeated uint32 curAppendPropList = 6;</code> - * @return A list containing the curAppendPropList. - */ - java.util.List<java.lang.Integer> getCurAppendPropListList(); - /** - * <code>repeated uint32 curAppendPropList = 6;</code> - * @return The count of curAppendPropList. - */ - int getCurAppendPropListCount(); - /** - * <code>repeated uint32 curAppendPropList = 6;</code> - * @param index The index of the element to return. - * @return The curAppendPropList at the given index. - */ - int getCurAppendPropList(int index); - } - /** - * Protobuf type {@code ReliquaryPromoteRsp} - */ - public static final class ReliquaryPromoteRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReliquaryPromoteRsp) - ReliquaryPromoteRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReliquaryPromoteRsp.newBuilder() to construct. - private ReliquaryPromoteRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ReliquaryPromoteRsp() { - oldAppendPropList_ = emptyIntList(); - curAppendPropList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReliquaryPromoteRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReliquaryPromoteRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - targetReliquaryGuid_ = input.readUInt64(); - break; - } - case 24: { - - oldPromoteLevel_ = input.readUInt32(); - break; - } - case 32: { - - curPromoteLevel_ = input.readUInt32(); - break; - } - case 40: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - oldAppendPropList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - oldAppendPropList_.addInt(input.readUInt32()); - break; - } - case 42: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - oldAppendPropList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - oldAppendPropList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 48: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - curAppendPropList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - curAppendPropList_.addInt(input.readUInt32()); - break; - } - case 50: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - curAppendPropList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - curAppendPropList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - oldAppendPropList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - curAppendPropList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.internal_static_ReliquaryPromoteRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.internal_static_ReliquaryPromoteRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp.class, emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int TARGETRELIQUARYGUID_FIELD_NUMBER = 2; - private long targetReliquaryGuid_; - /** - * <code>uint64 targetReliquaryGuid = 2;</code> - * @return The targetReliquaryGuid. - */ - @java.lang.Override - public long getTargetReliquaryGuid() { - return targetReliquaryGuid_; - } - - public static final int OLDPROMOTELEVEL_FIELD_NUMBER = 3; - private int oldPromoteLevel_; - /** - * <code>uint32 oldPromoteLevel = 3;</code> - * @return The oldPromoteLevel. - */ - @java.lang.Override - public int getOldPromoteLevel() { - return oldPromoteLevel_; - } - - public static final int CURPROMOTELEVEL_FIELD_NUMBER = 4; - private int curPromoteLevel_; - /** - * <code>uint32 curPromoteLevel = 4;</code> - * @return The curPromoteLevel. - */ - @java.lang.Override - public int getCurPromoteLevel() { - return curPromoteLevel_; - } - - public static final int OLDAPPENDPROPLIST_FIELD_NUMBER = 5; - private com.google.protobuf.Internal.IntList oldAppendPropList_; - /** - * <code>repeated uint32 oldAppendPropList = 5;</code> - * @return A list containing the oldAppendPropList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getOldAppendPropListList() { - return oldAppendPropList_; - } - /** - * <code>repeated uint32 oldAppendPropList = 5;</code> - * @return The count of oldAppendPropList. - */ - public int getOldAppendPropListCount() { - return oldAppendPropList_.size(); - } - /** - * <code>repeated uint32 oldAppendPropList = 5;</code> - * @param index The index of the element to return. - * @return The oldAppendPropList at the given index. - */ - public int getOldAppendPropList(int index) { - return oldAppendPropList_.getInt(index); - } - private int oldAppendPropListMemoizedSerializedSize = -1; - - public static final int CURAPPENDPROPLIST_FIELD_NUMBER = 6; - private com.google.protobuf.Internal.IntList curAppendPropList_; - /** - * <code>repeated uint32 curAppendPropList = 6;</code> - * @return A list containing the curAppendPropList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getCurAppendPropListList() { - return curAppendPropList_; - } - /** - * <code>repeated uint32 curAppendPropList = 6;</code> - * @return The count of curAppendPropList. - */ - public int getCurAppendPropListCount() { - return curAppendPropList_.size(); - } - /** - * <code>repeated uint32 curAppendPropList = 6;</code> - * @param index The index of the element to return. - * @return The curAppendPropList at the given index. - */ - public int getCurAppendPropList(int index) { - return curAppendPropList_.getInt(index); - } - private int curAppendPropListMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (targetReliquaryGuid_ != 0L) { - output.writeUInt64(2, targetReliquaryGuid_); - } - if (oldPromoteLevel_ != 0) { - output.writeUInt32(3, oldPromoteLevel_); - } - if (curPromoteLevel_ != 0) { - output.writeUInt32(4, curPromoteLevel_); - } - if (getOldAppendPropListList().size() > 0) { - output.writeUInt32NoTag(42); - output.writeUInt32NoTag(oldAppendPropListMemoizedSerializedSize); - } - for (int i = 0; i < oldAppendPropList_.size(); i++) { - output.writeUInt32NoTag(oldAppendPropList_.getInt(i)); - } - if (getCurAppendPropListList().size() > 0) { - output.writeUInt32NoTag(50); - output.writeUInt32NoTag(curAppendPropListMemoizedSerializedSize); - } - for (int i = 0; i < curAppendPropList_.size(); i++) { - output.writeUInt32NoTag(curAppendPropList_.getInt(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (targetReliquaryGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, targetReliquaryGuid_); - } - if (oldPromoteLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, oldPromoteLevel_); - } - if (curPromoteLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, curPromoteLevel_); - } - { - int dataSize = 0; - for (int i = 0; i < oldAppendPropList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(oldAppendPropList_.getInt(i)); - } - size += dataSize; - if (!getOldAppendPropListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - oldAppendPropListMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < curAppendPropList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(curAppendPropList_.getInt(i)); - } - size += dataSize; - if (!getCurAppendPropListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - curAppendPropListMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp other = (emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getTargetReliquaryGuid() - != other.getTargetReliquaryGuid()) return false; - if (getOldPromoteLevel() - != other.getOldPromoteLevel()) return false; - if (getCurPromoteLevel() - != other.getCurPromoteLevel()) return false; - if (!getOldAppendPropListList() - .equals(other.getOldAppendPropListList())) return false; - if (!getCurAppendPropListList() - .equals(other.getCurAppendPropListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + TARGETRELIQUARYGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTargetReliquaryGuid()); - hash = (37 * hash) + OLDPROMOTELEVEL_FIELD_NUMBER; - hash = (53 * hash) + getOldPromoteLevel(); - hash = (37 * hash) + CURPROMOTELEVEL_FIELD_NUMBER; - hash = (53 * hash) + getCurPromoteLevel(); - if (getOldAppendPropListCount() > 0) { - hash = (37 * hash) + OLDAPPENDPROPLIST_FIELD_NUMBER; - hash = (53 * hash) + getOldAppendPropListList().hashCode(); - } - if (getCurAppendPropListCount() > 0) { - hash = (37 * hash) + CURAPPENDPROPLIST_FIELD_NUMBER; - hash = (53 * hash) + getCurAppendPropListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReliquaryPromoteRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ReliquaryPromoteRsp) - emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.internal_static_ReliquaryPromoteRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.internal_static_ReliquaryPromoteRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp.class, emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - targetReliquaryGuid_ = 0L; - - oldPromoteLevel_ = 0; - - curPromoteLevel_ = 0; - - oldAppendPropList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - curAppendPropList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.internal_static_ReliquaryPromoteRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp build() { - emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp buildPartial() { - emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp result = new emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp(this); - int from_bitField0_ = bitField0_; - result.retcode_ = retcode_; - result.targetReliquaryGuid_ = targetReliquaryGuid_; - result.oldPromoteLevel_ = oldPromoteLevel_; - result.curPromoteLevel_ = curPromoteLevel_; - if (((bitField0_ & 0x00000001) != 0)) { - oldAppendPropList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.oldAppendPropList_ = oldAppendPropList_; - if (((bitField0_ & 0x00000002) != 0)) { - curAppendPropList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.curAppendPropList_ = curAppendPropList_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp) { - return mergeFrom((emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp other) { - if (other == emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getTargetReliquaryGuid() != 0L) { - setTargetReliquaryGuid(other.getTargetReliquaryGuid()); - } - if (other.getOldPromoteLevel() != 0) { - setOldPromoteLevel(other.getOldPromoteLevel()); - } - if (other.getCurPromoteLevel() != 0) { - setCurPromoteLevel(other.getCurPromoteLevel()); - } - if (!other.oldAppendPropList_.isEmpty()) { - if (oldAppendPropList_.isEmpty()) { - oldAppendPropList_ = other.oldAppendPropList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureOldAppendPropListIsMutable(); - oldAppendPropList_.addAll(other.oldAppendPropList_); - } - onChanged(); - } - if (!other.curAppendPropList_.isEmpty()) { - if (curAppendPropList_.isEmpty()) { - curAppendPropList_ = other.curAppendPropList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureCurAppendPropListIsMutable(); - curAppendPropList_.addAll(other.curAppendPropList_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private long targetReliquaryGuid_ ; - /** - * <code>uint64 targetReliquaryGuid = 2;</code> - * @return The targetReliquaryGuid. - */ - @java.lang.Override - public long getTargetReliquaryGuid() { - return targetReliquaryGuid_; - } - /** - * <code>uint64 targetReliquaryGuid = 2;</code> - * @param value The targetReliquaryGuid to set. - * @return This builder for chaining. - */ - public Builder setTargetReliquaryGuid(long value) { - - targetReliquaryGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 targetReliquaryGuid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearTargetReliquaryGuid() { - - targetReliquaryGuid_ = 0L; - onChanged(); - return this; - } - - private int oldPromoteLevel_ ; - /** - * <code>uint32 oldPromoteLevel = 3;</code> - * @return The oldPromoteLevel. - */ - @java.lang.Override - public int getOldPromoteLevel() { - return oldPromoteLevel_; - } - /** - * <code>uint32 oldPromoteLevel = 3;</code> - * @param value The oldPromoteLevel to set. - * @return This builder for chaining. - */ - public Builder setOldPromoteLevel(int value) { - - oldPromoteLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 oldPromoteLevel = 3;</code> - * @return This builder for chaining. - */ - public Builder clearOldPromoteLevel() { - - oldPromoteLevel_ = 0; - onChanged(); - return this; - } - - private int curPromoteLevel_ ; - /** - * <code>uint32 curPromoteLevel = 4;</code> - * @return The curPromoteLevel. - */ - @java.lang.Override - public int getCurPromoteLevel() { - return curPromoteLevel_; - } - /** - * <code>uint32 curPromoteLevel = 4;</code> - * @param value The curPromoteLevel to set. - * @return This builder for chaining. - */ - public Builder setCurPromoteLevel(int value) { - - curPromoteLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 curPromoteLevel = 4;</code> - * @return This builder for chaining. - */ - public Builder clearCurPromoteLevel() { - - curPromoteLevel_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList oldAppendPropList_ = emptyIntList(); - private void ensureOldAppendPropListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - oldAppendPropList_ = mutableCopy(oldAppendPropList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 oldAppendPropList = 5;</code> - * @return A list containing the oldAppendPropList. - */ - public java.util.List<java.lang.Integer> - getOldAppendPropListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(oldAppendPropList_) : oldAppendPropList_; - } - /** - * <code>repeated uint32 oldAppendPropList = 5;</code> - * @return The count of oldAppendPropList. - */ - public int getOldAppendPropListCount() { - return oldAppendPropList_.size(); - } - /** - * <code>repeated uint32 oldAppendPropList = 5;</code> - * @param index The index of the element to return. - * @return The oldAppendPropList at the given index. - */ - public int getOldAppendPropList(int index) { - return oldAppendPropList_.getInt(index); - } - /** - * <code>repeated uint32 oldAppendPropList = 5;</code> - * @param index The index to set the value at. - * @param value The oldAppendPropList to set. - * @return This builder for chaining. - */ - public Builder setOldAppendPropList( - int index, int value) { - ensureOldAppendPropListIsMutable(); - oldAppendPropList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 oldAppendPropList = 5;</code> - * @param value The oldAppendPropList to add. - * @return This builder for chaining. - */ - public Builder addOldAppendPropList(int value) { - ensureOldAppendPropListIsMutable(); - oldAppendPropList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 oldAppendPropList = 5;</code> - * @param values The oldAppendPropList to add. - * @return This builder for chaining. - */ - public Builder addAllOldAppendPropList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureOldAppendPropListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, oldAppendPropList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 oldAppendPropList = 5;</code> - * @return This builder for chaining. - */ - public Builder clearOldAppendPropList() { - oldAppendPropList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList curAppendPropList_ = emptyIntList(); - private void ensureCurAppendPropListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - curAppendPropList_ = mutableCopy(curAppendPropList_); - bitField0_ |= 0x00000002; - } - } - /** - * <code>repeated uint32 curAppendPropList = 6;</code> - * @return A list containing the curAppendPropList. - */ - public java.util.List<java.lang.Integer> - getCurAppendPropListList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(curAppendPropList_) : curAppendPropList_; - } - /** - * <code>repeated uint32 curAppendPropList = 6;</code> - * @return The count of curAppendPropList. - */ - public int getCurAppendPropListCount() { - return curAppendPropList_.size(); - } - /** - * <code>repeated uint32 curAppendPropList = 6;</code> - * @param index The index of the element to return. - * @return The curAppendPropList at the given index. - */ - public int getCurAppendPropList(int index) { - return curAppendPropList_.getInt(index); - } - /** - * <code>repeated uint32 curAppendPropList = 6;</code> - * @param index The index to set the value at. - * @param value The curAppendPropList to set. - * @return This builder for chaining. - */ - public Builder setCurAppendPropList( - int index, int value) { - ensureCurAppendPropListIsMutable(); - curAppendPropList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 curAppendPropList = 6;</code> - * @param value The curAppendPropList to add. - * @return This builder for chaining. - */ - public Builder addCurAppendPropList(int value) { - ensureCurAppendPropListIsMutable(); - curAppendPropList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 curAppendPropList = 6;</code> - * @param values The curAppendPropList to add. - * @return This builder for chaining. - */ - public Builder addAllCurAppendPropList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureCurAppendPropListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, curAppendPropList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 curAppendPropList = 6;</code> - * @return This builder for chaining. - */ - public Builder clearCurAppendPropList() { - curAppendPropList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReliquaryPromoteRsp) - } - - // @@protoc_insertion_point(class_scope:ReliquaryPromoteRsp) - private static final emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp(); - } - - public static emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ReliquaryPromoteRsp> - PARSER = new com.google.protobuf.AbstractParser<ReliquaryPromoteRsp>() { - @java.lang.Override - public ReliquaryPromoteRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReliquaryPromoteRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ReliquaryPromoteRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ReliquaryPromoteRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ReliquaryPromoteRspOuterClass.ReliquaryPromoteRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReliquaryPromoteRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReliquaryPromoteRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031ReliquaryPromoteRsp.proto\"\253\001\n\023Reliquar" + - "yPromoteRsp\022\017\n\007retcode\030\001 \001(\005\022\033\n\023targetRe" + - "liquaryGuid\030\002 \001(\004\022\027\n\017oldPromoteLevel\030\003 \001" + - "(\r\022\027\n\017curPromoteLevel\030\004 \001(\r\022\031\n\021oldAppend" + - "PropList\030\005 \003(\r\022\031\n\021curAppendPropList\030\006 \003(" + - "\rB\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ReliquaryPromoteRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ReliquaryPromoteRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReliquaryPromoteRsp_descriptor, - new java.lang.String[] { "Retcode", "TargetReliquaryGuid", "OldPromoteLevel", "CurPromoteLevel", "OldAppendPropList", "CurAppendPropList", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ReliquaryUpgradeReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ReliquaryUpgradeReqOuterClass.java deleted file mode 100644 index 3300e97be..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ReliquaryUpgradeReqOuterClass.java +++ /dev/null @@ -1,1110 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ReliquaryUpgradeReq.proto - -package emu.grasscutter.net.proto; - -public final class ReliquaryUpgradeReqOuterClass { - private ReliquaryUpgradeReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ReliquaryUpgradeReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReliquaryUpgradeReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 targetReliquaryGuid = 1;</code> - * @return The targetReliquaryGuid. - */ - long getTargetReliquaryGuid(); - - /** - * <code>repeated uint64 foodReliquaryGuidList = 2;</code> - * @return A list containing the foodReliquaryGuidList. - */ - java.util.List<java.lang.Long> getFoodReliquaryGuidListList(); - /** - * <code>repeated uint64 foodReliquaryGuidList = 2;</code> - * @return The count of foodReliquaryGuidList. - */ - int getFoodReliquaryGuidListCount(); - /** - * <code>repeated uint64 foodReliquaryGuidList = 2;</code> - * @param index The index of the element to return. - * @return The foodReliquaryGuidList at the given index. - */ - long getFoodReliquaryGuidList(int index); - - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> - getItemParamListList(); - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index); - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - int getItemParamListCount(); - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getItemParamListOrBuilderList(); - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder( - int index); - } - /** - * Protobuf type {@code ReliquaryUpgradeReq} - */ - public static final class ReliquaryUpgradeReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReliquaryUpgradeReq) - ReliquaryUpgradeReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReliquaryUpgradeReq.newBuilder() to construct. - private ReliquaryUpgradeReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ReliquaryUpgradeReq() { - foodReliquaryGuidList_ = emptyLongList(); - itemParamList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReliquaryUpgradeReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReliquaryUpgradeReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - targetReliquaryGuid_ = input.readUInt64(); - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - foodReliquaryGuidList_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - foodReliquaryGuidList_.addLong(input.readUInt64()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - foodReliquaryGuidList_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - foodReliquaryGuidList_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - itemParamList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>(); - mutable_bitField0_ |= 0x00000002; - } - itemParamList_.add( - input.readMessage(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - foodReliquaryGuidList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - itemParamList_ = java.util.Collections.unmodifiableList(itemParamList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.internal_static_ReliquaryUpgradeReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.internal_static_ReliquaryUpgradeReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq.class, emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq.Builder.class); - } - - public static final int TARGETRELIQUARYGUID_FIELD_NUMBER = 1; - private long targetReliquaryGuid_; - /** - * <code>uint64 targetReliquaryGuid = 1;</code> - * @return The targetReliquaryGuid. - */ - @java.lang.Override - public long getTargetReliquaryGuid() { - return targetReliquaryGuid_; - } - - public static final int FOODRELIQUARYGUIDLIST_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.LongList foodReliquaryGuidList_; - /** - * <code>repeated uint64 foodReliquaryGuidList = 2;</code> - * @return A list containing the foodReliquaryGuidList. - */ - @java.lang.Override - public java.util.List<java.lang.Long> - getFoodReliquaryGuidListList() { - return foodReliquaryGuidList_; - } - /** - * <code>repeated uint64 foodReliquaryGuidList = 2;</code> - * @return The count of foodReliquaryGuidList. - */ - public int getFoodReliquaryGuidListCount() { - return foodReliquaryGuidList_.size(); - } - /** - * <code>repeated uint64 foodReliquaryGuidList = 2;</code> - * @param index The index of the element to return. - * @return The foodReliquaryGuidList at the given index. - */ - public long getFoodReliquaryGuidList(int index) { - return foodReliquaryGuidList_.getLong(index); - } - private int foodReliquaryGuidListMemoizedSerializedSize = -1; - - public static final int ITEMPARAMLIST_FIELD_NUMBER = 3; - private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> itemParamList_; - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getItemParamListList() { - return itemParamList_; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getItemParamListOrBuilderList() { - return itemParamList_; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - @java.lang.Override - public int getItemParamListCount() { - return itemParamList_.size(); - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) { - return itemParamList_.get(index); - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder( - int index) { - return itemParamList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (targetReliquaryGuid_ != 0L) { - output.writeUInt64(1, targetReliquaryGuid_); - } - if (getFoodReliquaryGuidListList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(foodReliquaryGuidListMemoizedSerializedSize); - } - for (int i = 0; i < foodReliquaryGuidList_.size(); i++) { - output.writeUInt64NoTag(foodReliquaryGuidList_.getLong(i)); - } - for (int i = 0; i < itemParamList_.size(); i++) { - output.writeMessage(3, itemParamList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (targetReliquaryGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, targetReliquaryGuid_); - } - { - int dataSize = 0; - for (int i = 0; i < foodReliquaryGuidList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(foodReliquaryGuidList_.getLong(i)); - } - size += dataSize; - if (!getFoodReliquaryGuidListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - foodReliquaryGuidListMemoizedSerializedSize = dataSize; - } - for (int i = 0; i < itemParamList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, itemParamList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq other = (emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq) obj; - - if (getTargetReliquaryGuid() - != other.getTargetReliquaryGuid()) return false; - if (!getFoodReliquaryGuidListList() - .equals(other.getFoodReliquaryGuidListList())) return false; - if (!getItemParamListList() - .equals(other.getItemParamListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TARGETRELIQUARYGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTargetReliquaryGuid()); - if (getFoodReliquaryGuidListCount() > 0) { - hash = (37 * hash) + FOODRELIQUARYGUIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getFoodReliquaryGuidListList().hashCode(); - } - if (getItemParamListCount() > 0) { - hash = (37 * hash) + ITEMPARAMLIST_FIELD_NUMBER; - hash = (53 * hash) + getItemParamListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReliquaryUpgradeReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ReliquaryUpgradeReq) - emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.internal_static_ReliquaryUpgradeReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.internal_static_ReliquaryUpgradeReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq.class, emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getItemParamListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - targetReliquaryGuid_ = 0L; - - foodReliquaryGuidList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - if (itemParamListBuilder_ == null) { - itemParamList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - itemParamListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.internal_static_ReliquaryUpgradeReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq build() { - emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq buildPartial() { - emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq result = new emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq(this); - int from_bitField0_ = bitField0_; - result.targetReliquaryGuid_ = targetReliquaryGuid_; - if (((bitField0_ & 0x00000001) != 0)) { - foodReliquaryGuidList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.foodReliquaryGuidList_ = foodReliquaryGuidList_; - if (itemParamListBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - itemParamList_ = java.util.Collections.unmodifiableList(itemParamList_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.itemParamList_ = itemParamList_; - } else { - result.itemParamList_ = itemParamListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq) { - return mergeFrom((emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq other) { - if (other == emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq.getDefaultInstance()) return this; - if (other.getTargetReliquaryGuid() != 0L) { - setTargetReliquaryGuid(other.getTargetReliquaryGuid()); - } - if (!other.foodReliquaryGuidList_.isEmpty()) { - if (foodReliquaryGuidList_.isEmpty()) { - foodReliquaryGuidList_ = other.foodReliquaryGuidList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFoodReliquaryGuidListIsMutable(); - foodReliquaryGuidList_.addAll(other.foodReliquaryGuidList_); - } - onChanged(); - } - if (itemParamListBuilder_ == null) { - if (!other.itemParamList_.isEmpty()) { - if (itemParamList_.isEmpty()) { - itemParamList_ = other.itemParamList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureItemParamListIsMutable(); - itemParamList_.addAll(other.itemParamList_); - } - onChanged(); - } - } else { - if (!other.itemParamList_.isEmpty()) { - if (itemParamListBuilder_.isEmpty()) { - itemParamListBuilder_.dispose(); - itemParamListBuilder_ = null; - itemParamList_ = other.itemParamList_; - bitField0_ = (bitField0_ & ~0x00000002); - itemParamListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getItemParamListFieldBuilder() : null; - } else { - itemParamListBuilder_.addAllMessages(other.itemParamList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long targetReliquaryGuid_ ; - /** - * <code>uint64 targetReliquaryGuid = 1;</code> - * @return The targetReliquaryGuid. - */ - @java.lang.Override - public long getTargetReliquaryGuid() { - return targetReliquaryGuid_; - } - /** - * <code>uint64 targetReliquaryGuid = 1;</code> - * @param value The targetReliquaryGuid to set. - * @return This builder for chaining. - */ - public Builder setTargetReliquaryGuid(long value) { - - targetReliquaryGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 targetReliquaryGuid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTargetReliquaryGuid() { - - targetReliquaryGuid_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList foodReliquaryGuidList_ = emptyLongList(); - private void ensureFoodReliquaryGuidListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - foodReliquaryGuidList_ = mutableCopy(foodReliquaryGuidList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint64 foodReliquaryGuidList = 2;</code> - * @return A list containing the foodReliquaryGuidList. - */ - public java.util.List<java.lang.Long> - getFoodReliquaryGuidListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(foodReliquaryGuidList_) : foodReliquaryGuidList_; - } - /** - * <code>repeated uint64 foodReliquaryGuidList = 2;</code> - * @return The count of foodReliquaryGuidList. - */ - public int getFoodReliquaryGuidListCount() { - return foodReliquaryGuidList_.size(); - } - /** - * <code>repeated uint64 foodReliquaryGuidList = 2;</code> - * @param index The index of the element to return. - * @return The foodReliquaryGuidList at the given index. - */ - public long getFoodReliquaryGuidList(int index) { - return foodReliquaryGuidList_.getLong(index); - } - /** - * <code>repeated uint64 foodReliquaryGuidList = 2;</code> - * @param index The index to set the value at. - * @param value The foodReliquaryGuidList to set. - * @return This builder for chaining. - */ - public Builder setFoodReliquaryGuidList( - int index, long value) { - ensureFoodReliquaryGuidListIsMutable(); - foodReliquaryGuidList_.setLong(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint64 foodReliquaryGuidList = 2;</code> - * @param value The foodReliquaryGuidList to add. - * @return This builder for chaining. - */ - public Builder addFoodReliquaryGuidList(long value) { - ensureFoodReliquaryGuidListIsMutable(); - foodReliquaryGuidList_.addLong(value); - onChanged(); - return this; - } - /** - * <code>repeated uint64 foodReliquaryGuidList = 2;</code> - * @param values The foodReliquaryGuidList to add. - * @return This builder for chaining. - */ - public Builder addAllFoodReliquaryGuidList( - java.lang.Iterable<? extends java.lang.Long> values) { - ensureFoodReliquaryGuidListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, foodReliquaryGuidList_); - onChanged(); - return this; - } - /** - * <code>repeated uint64 foodReliquaryGuidList = 2;</code> - * @return This builder for chaining. - */ - public Builder clearFoodReliquaryGuidList() { - foodReliquaryGuidList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> itemParamList_ = - java.util.Collections.emptyList(); - private void ensureItemParamListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - itemParamList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>(itemParamList_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> itemParamListBuilder_; - - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getItemParamListList() { - if (itemParamListBuilder_ == null) { - return java.util.Collections.unmodifiableList(itemParamList_); - } else { - return itemParamListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public int getItemParamListCount() { - if (itemParamListBuilder_ == null) { - return itemParamList_.size(); - } else { - return itemParamListBuilder_.getCount(); - } - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) { - if (itemParamListBuilder_ == null) { - return itemParamList_.get(index); - } else { - return itemParamListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder setItemParamList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (itemParamListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemParamListIsMutable(); - itemParamList_.set(index, value); - onChanged(); - } else { - itemParamListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder setItemParamList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - itemParamList_.set(index, builderForValue.build()); - onChanged(); - } else { - itemParamListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder addItemParamList(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (itemParamListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemParamListIsMutable(); - itemParamList_.add(value); - onChanged(); - } else { - itemParamListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder addItemParamList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (itemParamListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemParamListIsMutable(); - itemParamList_.add(index, value); - onChanged(); - } else { - itemParamListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder addItemParamList( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - itemParamList_.add(builderForValue.build()); - onChanged(); - } else { - itemParamListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder addItemParamList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - itemParamList_.add(index, builderForValue.build()); - onChanged(); - } else { - itemParamListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder addAllItemParamList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> values) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, itemParamList_); - onChanged(); - } else { - itemParamListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder clearItemParamList() { - if (itemParamListBuilder_ == null) { - itemParamList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - itemParamListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder removeItemParamList(int index) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - itemParamList_.remove(index); - onChanged(); - } else { - itemParamListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getItemParamListBuilder( - int index) { - return getItemParamListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder( - int index) { - if (itemParamListBuilder_ == null) { - return itemParamList_.get(index); } else { - return itemParamListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getItemParamListOrBuilderList() { - if (itemParamListBuilder_ != null) { - return itemParamListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(itemParamList_); - } - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder() { - return getItemParamListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder( - int index) { - return getItemParamListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder> - getItemParamListBuilderList() { - return getItemParamListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getItemParamListFieldBuilder() { - if (itemParamListBuilder_ == null) { - itemParamListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>( - itemParamList_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - itemParamList_ = null; - } - return itemParamListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReliquaryUpgradeReq) - } - - // @@protoc_insertion_point(class_scope:ReliquaryUpgradeReq) - private static final emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq(); - } - - public static emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ReliquaryUpgradeReq> - PARSER = new com.google.protobuf.AbstractParser<ReliquaryUpgradeReq>() { - @java.lang.Override - public ReliquaryUpgradeReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReliquaryUpgradeReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ReliquaryUpgradeReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ReliquaryUpgradeReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReliquaryUpgradeReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReliquaryUpgradeReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031ReliquaryUpgradeReq.proto\032\017ItemParam.p" + - "roto\"t\n\023ReliquaryUpgradeReq\022\033\n\023targetRel" + - "iquaryGuid\030\001 \001(\004\022\035\n\025foodReliquaryGuidLis" + - "t\030\002 \003(\004\022!\n\ritemParamList\030\003 \003(\0132\n.ItemPar" + - "amB\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(), - }); - internal_static_ReliquaryUpgradeReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ReliquaryUpgradeReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReliquaryUpgradeReq_descriptor, - new java.lang.String[] { "TargetReliquaryGuid", "FoodReliquaryGuidList", "ItemParamList", }); - emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ReliquaryUpgradeRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ReliquaryUpgradeRspOuterClass.java deleted file mode 100644 index b6ac225c2..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ReliquaryUpgradeRspOuterClass.java +++ /dev/null @@ -1,1211 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ReliquaryUpgradeRsp.proto - -package emu.grasscutter.net.proto; - -public final class ReliquaryUpgradeRspOuterClass { - private ReliquaryUpgradeRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ReliquaryUpgradeRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReliquaryUpgradeRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint64 targetReliquaryGuid = 2;</code> - * @return The targetReliquaryGuid. - */ - long getTargetReliquaryGuid(); - - /** - * <code>uint32 oldLevel = 3;</code> - * @return The oldLevel. - */ - int getOldLevel(); - - /** - * <code>uint32 curLevel = 4;</code> - * @return The curLevel. - */ - int getCurLevel(); - - /** - * <code>uint32 powerUpRate = 5;</code> - * @return The powerUpRate. - */ - int getPowerUpRate(); - - /** - * <code>repeated uint32 oldAppendPropList = 6;</code> - * @return A list containing the oldAppendPropList. - */ - java.util.List<java.lang.Integer> getOldAppendPropListList(); - /** - * <code>repeated uint32 oldAppendPropList = 6;</code> - * @return The count of oldAppendPropList. - */ - int getOldAppendPropListCount(); - /** - * <code>repeated uint32 oldAppendPropList = 6;</code> - * @param index The index of the element to return. - * @return The oldAppendPropList at the given index. - */ - int getOldAppendPropList(int index); - - /** - * <code>repeated uint32 curAppendPropList = 7;</code> - * @return A list containing the curAppendPropList. - */ - java.util.List<java.lang.Integer> getCurAppendPropListList(); - /** - * <code>repeated uint32 curAppendPropList = 7;</code> - * @return The count of curAppendPropList. - */ - int getCurAppendPropListCount(); - /** - * <code>repeated uint32 curAppendPropList = 7;</code> - * @param index The index of the element to return. - * @return The curAppendPropList at the given index. - */ - int getCurAppendPropList(int index); - } - /** - * Protobuf type {@code ReliquaryUpgradeRsp} - */ - public static final class ReliquaryUpgradeRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ReliquaryUpgradeRsp) - ReliquaryUpgradeRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReliquaryUpgradeRsp.newBuilder() to construct. - private ReliquaryUpgradeRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ReliquaryUpgradeRsp() { - oldAppendPropList_ = emptyIntList(); - curAppendPropList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReliquaryUpgradeRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReliquaryUpgradeRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - targetReliquaryGuid_ = input.readUInt64(); - break; - } - case 24: { - - oldLevel_ = input.readUInt32(); - break; - } - case 32: { - - curLevel_ = input.readUInt32(); - break; - } - case 40: { - - powerUpRate_ = input.readUInt32(); - break; - } - case 48: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - oldAppendPropList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - oldAppendPropList_.addInt(input.readUInt32()); - break; - } - case 50: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - oldAppendPropList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - oldAppendPropList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 56: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - curAppendPropList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - curAppendPropList_.addInt(input.readUInt32()); - break; - } - case 58: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - curAppendPropList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - curAppendPropList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - oldAppendPropList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - curAppendPropList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.internal_static_ReliquaryUpgradeRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.internal_static_ReliquaryUpgradeRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp.class, emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int TARGETRELIQUARYGUID_FIELD_NUMBER = 2; - private long targetReliquaryGuid_; - /** - * <code>uint64 targetReliquaryGuid = 2;</code> - * @return The targetReliquaryGuid. - */ - @java.lang.Override - public long getTargetReliquaryGuid() { - return targetReliquaryGuid_; - } - - public static final int OLDLEVEL_FIELD_NUMBER = 3; - private int oldLevel_; - /** - * <code>uint32 oldLevel = 3;</code> - * @return The oldLevel. - */ - @java.lang.Override - public int getOldLevel() { - return oldLevel_; - } - - public static final int CURLEVEL_FIELD_NUMBER = 4; - private int curLevel_; - /** - * <code>uint32 curLevel = 4;</code> - * @return The curLevel. - */ - @java.lang.Override - public int getCurLevel() { - return curLevel_; - } - - public static final int POWERUPRATE_FIELD_NUMBER = 5; - private int powerUpRate_; - /** - * <code>uint32 powerUpRate = 5;</code> - * @return The powerUpRate. - */ - @java.lang.Override - public int getPowerUpRate() { - return powerUpRate_; - } - - public static final int OLDAPPENDPROPLIST_FIELD_NUMBER = 6; - private com.google.protobuf.Internal.IntList oldAppendPropList_; - /** - * <code>repeated uint32 oldAppendPropList = 6;</code> - * @return A list containing the oldAppendPropList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getOldAppendPropListList() { - return oldAppendPropList_; - } - /** - * <code>repeated uint32 oldAppendPropList = 6;</code> - * @return The count of oldAppendPropList. - */ - public int getOldAppendPropListCount() { - return oldAppendPropList_.size(); - } - /** - * <code>repeated uint32 oldAppendPropList = 6;</code> - * @param index The index of the element to return. - * @return The oldAppendPropList at the given index. - */ - public int getOldAppendPropList(int index) { - return oldAppendPropList_.getInt(index); - } - private int oldAppendPropListMemoizedSerializedSize = -1; - - public static final int CURAPPENDPROPLIST_FIELD_NUMBER = 7; - private com.google.protobuf.Internal.IntList curAppendPropList_; - /** - * <code>repeated uint32 curAppendPropList = 7;</code> - * @return A list containing the curAppendPropList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getCurAppendPropListList() { - return curAppendPropList_; - } - /** - * <code>repeated uint32 curAppendPropList = 7;</code> - * @return The count of curAppendPropList. - */ - public int getCurAppendPropListCount() { - return curAppendPropList_.size(); - } - /** - * <code>repeated uint32 curAppendPropList = 7;</code> - * @param index The index of the element to return. - * @return The curAppendPropList at the given index. - */ - public int getCurAppendPropList(int index) { - return curAppendPropList_.getInt(index); - } - private int curAppendPropListMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (targetReliquaryGuid_ != 0L) { - output.writeUInt64(2, targetReliquaryGuid_); - } - if (oldLevel_ != 0) { - output.writeUInt32(3, oldLevel_); - } - if (curLevel_ != 0) { - output.writeUInt32(4, curLevel_); - } - if (powerUpRate_ != 0) { - output.writeUInt32(5, powerUpRate_); - } - if (getOldAppendPropListList().size() > 0) { - output.writeUInt32NoTag(50); - output.writeUInt32NoTag(oldAppendPropListMemoizedSerializedSize); - } - for (int i = 0; i < oldAppendPropList_.size(); i++) { - output.writeUInt32NoTag(oldAppendPropList_.getInt(i)); - } - if (getCurAppendPropListList().size() > 0) { - output.writeUInt32NoTag(58); - output.writeUInt32NoTag(curAppendPropListMemoizedSerializedSize); - } - for (int i = 0; i < curAppendPropList_.size(); i++) { - output.writeUInt32NoTag(curAppendPropList_.getInt(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (targetReliquaryGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, targetReliquaryGuid_); - } - if (oldLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, oldLevel_); - } - if (curLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, curLevel_); - } - if (powerUpRate_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, powerUpRate_); - } - { - int dataSize = 0; - for (int i = 0; i < oldAppendPropList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(oldAppendPropList_.getInt(i)); - } - size += dataSize; - if (!getOldAppendPropListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - oldAppendPropListMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < curAppendPropList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(curAppendPropList_.getInt(i)); - } - size += dataSize; - if (!getCurAppendPropListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - curAppendPropListMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp other = (emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getTargetReliquaryGuid() - != other.getTargetReliquaryGuid()) return false; - if (getOldLevel() - != other.getOldLevel()) return false; - if (getCurLevel() - != other.getCurLevel()) return false; - if (getPowerUpRate() - != other.getPowerUpRate()) return false; - if (!getOldAppendPropListList() - .equals(other.getOldAppendPropListList())) return false; - if (!getCurAppendPropListList() - .equals(other.getCurAppendPropListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + TARGETRELIQUARYGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTargetReliquaryGuid()); - hash = (37 * hash) + OLDLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getOldLevel(); - hash = (37 * hash) + CURLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getCurLevel(); - hash = (37 * hash) + POWERUPRATE_FIELD_NUMBER; - hash = (53 * hash) + getPowerUpRate(); - if (getOldAppendPropListCount() > 0) { - hash = (37 * hash) + OLDAPPENDPROPLIST_FIELD_NUMBER; - hash = (53 * hash) + getOldAppendPropListList().hashCode(); - } - if (getCurAppendPropListCount() > 0) { - hash = (37 * hash) + CURAPPENDPROPLIST_FIELD_NUMBER; - hash = (53 * hash) + getCurAppendPropListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ReliquaryUpgradeRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ReliquaryUpgradeRsp) - emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.internal_static_ReliquaryUpgradeRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.internal_static_ReliquaryUpgradeRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp.class, emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - targetReliquaryGuid_ = 0L; - - oldLevel_ = 0; - - curLevel_ = 0; - - powerUpRate_ = 0; - - oldAppendPropList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - curAppendPropList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.internal_static_ReliquaryUpgradeRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp build() { - emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp buildPartial() { - emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp result = new emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp(this); - int from_bitField0_ = bitField0_; - result.retcode_ = retcode_; - result.targetReliquaryGuid_ = targetReliquaryGuid_; - result.oldLevel_ = oldLevel_; - result.curLevel_ = curLevel_; - result.powerUpRate_ = powerUpRate_; - if (((bitField0_ & 0x00000001) != 0)) { - oldAppendPropList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.oldAppendPropList_ = oldAppendPropList_; - if (((bitField0_ & 0x00000002) != 0)) { - curAppendPropList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.curAppendPropList_ = curAppendPropList_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp) { - return mergeFrom((emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp other) { - if (other == emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getTargetReliquaryGuid() != 0L) { - setTargetReliquaryGuid(other.getTargetReliquaryGuid()); - } - if (other.getOldLevel() != 0) { - setOldLevel(other.getOldLevel()); - } - if (other.getCurLevel() != 0) { - setCurLevel(other.getCurLevel()); - } - if (other.getPowerUpRate() != 0) { - setPowerUpRate(other.getPowerUpRate()); - } - if (!other.oldAppendPropList_.isEmpty()) { - if (oldAppendPropList_.isEmpty()) { - oldAppendPropList_ = other.oldAppendPropList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureOldAppendPropListIsMutable(); - oldAppendPropList_.addAll(other.oldAppendPropList_); - } - onChanged(); - } - if (!other.curAppendPropList_.isEmpty()) { - if (curAppendPropList_.isEmpty()) { - curAppendPropList_ = other.curAppendPropList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureCurAppendPropListIsMutable(); - curAppendPropList_.addAll(other.curAppendPropList_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private long targetReliquaryGuid_ ; - /** - * <code>uint64 targetReliquaryGuid = 2;</code> - * @return The targetReliquaryGuid. - */ - @java.lang.Override - public long getTargetReliquaryGuid() { - return targetReliquaryGuid_; - } - /** - * <code>uint64 targetReliquaryGuid = 2;</code> - * @param value The targetReliquaryGuid to set. - * @return This builder for chaining. - */ - public Builder setTargetReliquaryGuid(long value) { - - targetReliquaryGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 targetReliquaryGuid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearTargetReliquaryGuid() { - - targetReliquaryGuid_ = 0L; - onChanged(); - return this; - } - - private int oldLevel_ ; - /** - * <code>uint32 oldLevel = 3;</code> - * @return The oldLevel. - */ - @java.lang.Override - public int getOldLevel() { - return oldLevel_; - } - /** - * <code>uint32 oldLevel = 3;</code> - * @param value The oldLevel to set. - * @return This builder for chaining. - */ - public Builder setOldLevel(int value) { - - oldLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 oldLevel = 3;</code> - * @return This builder for chaining. - */ - public Builder clearOldLevel() { - - oldLevel_ = 0; - onChanged(); - return this; - } - - private int curLevel_ ; - /** - * <code>uint32 curLevel = 4;</code> - * @return The curLevel. - */ - @java.lang.Override - public int getCurLevel() { - return curLevel_; - } - /** - * <code>uint32 curLevel = 4;</code> - * @param value The curLevel to set. - * @return This builder for chaining. - */ - public Builder setCurLevel(int value) { - - curLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 curLevel = 4;</code> - * @return This builder for chaining. - */ - public Builder clearCurLevel() { - - curLevel_ = 0; - onChanged(); - return this; - } - - private int powerUpRate_ ; - /** - * <code>uint32 powerUpRate = 5;</code> - * @return The powerUpRate. - */ - @java.lang.Override - public int getPowerUpRate() { - return powerUpRate_; - } - /** - * <code>uint32 powerUpRate = 5;</code> - * @param value The powerUpRate to set. - * @return This builder for chaining. - */ - public Builder setPowerUpRate(int value) { - - powerUpRate_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 powerUpRate = 5;</code> - * @return This builder for chaining. - */ - public Builder clearPowerUpRate() { - - powerUpRate_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList oldAppendPropList_ = emptyIntList(); - private void ensureOldAppendPropListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - oldAppendPropList_ = mutableCopy(oldAppendPropList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 oldAppendPropList = 6;</code> - * @return A list containing the oldAppendPropList. - */ - public java.util.List<java.lang.Integer> - getOldAppendPropListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(oldAppendPropList_) : oldAppendPropList_; - } - /** - * <code>repeated uint32 oldAppendPropList = 6;</code> - * @return The count of oldAppendPropList. - */ - public int getOldAppendPropListCount() { - return oldAppendPropList_.size(); - } - /** - * <code>repeated uint32 oldAppendPropList = 6;</code> - * @param index The index of the element to return. - * @return The oldAppendPropList at the given index. - */ - public int getOldAppendPropList(int index) { - return oldAppendPropList_.getInt(index); - } - /** - * <code>repeated uint32 oldAppendPropList = 6;</code> - * @param index The index to set the value at. - * @param value The oldAppendPropList to set. - * @return This builder for chaining. - */ - public Builder setOldAppendPropList( - int index, int value) { - ensureOldAppendPropListIsMutable(); - oldAppendPropList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 oldAppendPropList = 6;</code> - * @param value The oldAppendPropList to add. - * @return This builder for chaining. - */ - public Builder addOldAppendPropList(int value) { - ensureOldAppendPropListIsMutable(); - oldAppendPropList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 oldAppendPropList = 6;</code> - * @param values The oldAppendPropList to add. - * @return This builder for chaining. - */ - public Builder addAllOldAppendPropList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureOldAppendPropListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, oldAppendPropList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 oldAppendPropList = 6;</code> - * @return This builder for chaining. - */ - public Builder clearOldAppendPropList() { - oldAppendPropList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList curAppendPropList_ = emptyIntList(); - private void ensureCurAppendPropListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - curAppendPropList_ = mutableCopy(curAppendPropList_); - bitField0_ |= 0x00000002; - } - } - /** - * <code>repeated uint32 curAppendPropList = 7;</code> - * @return A list containing the curAppendPropList. - */ - public java.util.List<java.lang.Integer> - getCurAppendPropListList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(curAppendPropList_) : curAppendPropList_; - } - /** - * <code>repeated uint32 curAppendPropList = 7;</code> - * @return The count of curAppendPropList. - */ - public int getCurAppendPropListCount() { - return curAppendPropList_.size(); - } - /** - * <code>repeated uint32 curAppendPropList = 7;</code> - * @param index The index of the element to return. - * @return The curAppendPropList at the given index. - */ - public int getCurAppendPropList(int index) { - return curAppendPropList_.getInt(index); - } - /** - * <code>repeated uint32 curAppendPropList = 7;</code> - * @param index The index to set the value at. - * @param value The curAppendPropList to set. - * @return This builder for chaining. - */ - public Builder setCurAppendPropList( - int index, int value) { - ensureCurAppendPropListIsMutable(); - curAppendPropList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 curAppendPropList = 7;</code> - * @param value The curAppendPropList to add. - * @return This builder for chaining. - */ - public Builder addCurAppendPropList(int value) { - ensureCurAppendPropListIsMutable(); - curAppendPropList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 curAppendPropList = 7;</code> - * @param values The curAppendPropList to add. - * @return This builder for chaining. - */ - public Builder addAllCurAppendPropList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureCurAppendPropListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, curAppendPropList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 curAppendPropList = 7;</code> - * @return This builder for chaining. - */ - public Builder clearCurAppendPropList() { - curAppendPropList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ReliquaryUpgradeRsp) - } - - // @@protoc_insertion_point(class_scope:ReliquaryUpgradeRsp) - private static final emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp(); - } - - public static emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ReliquaryUpgradeRsp> - PARSER = new com.google.protobuf.AbstractParser<ReliquaryUpgradeRsp>() { - @java.lang.Override - public ReliquaryUpgradeRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReliquaryUpgradeRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ReliquaryUpgradeRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ReliquaryUpgradeRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ReliquaryUpgradeRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ReliquaryUpgradeRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031ReliquaryUpgradeRsp.proto\"\262\001\n\023Reliquar" + - "yUpgradeRsp\022\017\n\007retcode\030\001 \001(\005\022\033\n\023targetRe" + - "liquaryGuid\030\002 \001(\004\022\020\n\010oldLevel\030\003 \001(\r\022\020\n\010c" + - "urLevel\030\004 \001(\r\022\023\n\013powerUpRate\030\005 \001(\r\022\031\n\021ol" + - "dAppendPropList\030\006 \003(\r\022\031\n\021curAppendPropLi" + - "st\030\007 \003(\rB\033\n\031emu.grasscutter.net.protob\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ReliquaryUpgradeRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ReliquaryUpgradeRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ReliquaryUpgradeRsp_descriptor, - new java.lang.String[] { "Retcode", "TargetReliquaryGuid", "OldLevel", "CurLevel", "PowerUpRate", "OldAppendPropList", "CurAppendPropList", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ResVersionConfigOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ResVersionConfigOuterClass.java deleted file mode 100644 index 92fd15bfd..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ResVersionConfigOuterClass.java +++ /dev/null @@ -1,1138 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ResVersionConfig.proto - -package emu.grasscutter.net.proto; - -public final class ResVersionConfigOuterClass { - private ResVersionConfigOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ResVersionConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:ResVersionConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 version = 1;</code> - * @return The version. - */ - int getVersion(); - - /** - * <code>string md5 = 2;</code> - * @return The md5. - */ - java.lang.String getMd5(); - /** - * <code>string md5 = 2;</code> - * @return The bytes for md5. - */ - com.google.protobuf.ByteString - getMd5Bytes(); - - /** - * <code>string size = 3;</code> - * @return The size. - */ - java.lang.String getSize(); - /** - * <code>string size = 3;</code> - * @return The bytes for size. - */ - com.google.protobuf.ByteString - getSizeBytes(); - - /** - * <code>string versionSuffix = 4;</code> - * @return The versionSuffix. - */ - java.lang.String getVersionSuffix(); - /** - * <code>string versionSuffix = 4;</code> - * @return The bytes for versionSuffix. - */ - com.google.protobuf.ByteString - getVersionSuffixBytes(); - - /** - * <code>string branch = 5;</code> - * @return The branch. - */ - java.lang.String getBranch(); - /** - * <code>string branch = 5;</code> - * @return The bytes for branch. - */ - com.google.protobuf.ByteString - getBranchBytes(); - } - /** - * Protobuf type {@code ResVersionConfig} - */ - public static final class ResVersionConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ResVersionConfig) - ResVersionConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ResVersionConfig.newBuilder() to construct. - private ResVersionConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ResVersionConfig() { - md5_ = ""; - size_ = ""; - versionSuffix_ = ""; - branch_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ResVersionConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResVersionConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - version_ = input.readInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - md5_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - size_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - versionSuffix_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - branch_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ResVersionConfigOuterClass.internal_static_ResVersionConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ResVersionConfigOuterClass.internal_static_ResVersionConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.class, emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.Builder.class); - } - - public static final int VERSION_FIELD_NUMBER = 1; - private int version_; - /** - * <code>int32 version = 1;</code> - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - - public static final int MD5_FIELD_NUMBER = 2; - private volatile java.lang.Object md5_; - /** - * <code>string md5 = 2;</code> - * @return The md5. - */ - @java.lang.Override - public java.lang.String getMd5() { - java.lang.Object ref = md5_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - md5_ = s; - return s; - } - } - /** - * <code>string md5 = 2;</code> - * @return The bytes for md5. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMd5Bytes() { - java.lang.Object ref = md5_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - md5_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SIZE_FIELD_NUMBER = 3; - private volatile java.lang.Object size_; - /** - * <code>string size = 3;</code> - * @return The size. - */ - @java.lang.Override - public java.lang.String getSize() { - java.lang.Object ref = size_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - size_ = s; - return s; - } - } - /** - * <code>string size = 3;</code> - * @return The bytes for size. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSizeBytes() { - java.lang.Object ref = size_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - size_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSIONSUFFIX_FIELD_NUMBER = 4; - private volatile java.lang.Object versionSuffix_; - /** - * <code>string versionSuffix = 4;</code> - * @return The versionSuffix. - */ - @java.lang.Override - public java.lang.String getVersionSuffix() { - java.lang.Object ref = versionSuffix_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - versionSuffix_ = s; - return s; - } - } - /** - * <code>string versionSuffix = 4;</code> - * @return The bytes for versionSuffix. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getVersionSuffixBytes() { - java.lang.Object ref = versionSuffix_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - versionSuffix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BRANCH_FIELD_NUMBER = 5; - private volatile java.lang.Object branch_; - /** - * <code>string branch = 5;</code> - * @return The branch. - */ - @java.lang.Override - public java.lang.String getBranch() { - java.lang.Object ref = branch_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - branch_ = s; - return s; - } - } - /** - * <code>string branch = 5;</code> - * @return The bytes for branch. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBranchBytes() { - java.lang.Object ref = branch_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - branch_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (version_ != 0) { - output.writeInt32(1, version_); - } - if (!getMd5Bytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, md5_); - } - if (!getSizeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, size_); - } - if (!getVersionSuffixBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, versionSuffix_); - } - if (!getBranchBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, branch_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, version_); - } - if (!getMd5Bytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, md5_); - } - if (!getSizeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, size_); - } - if (!getVersionSuffixBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, versionSuffix_); - } - if (!getBranchBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, branch_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig other = (emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig) obj; - - if (getVersion() - != other.getVersion()) return false; - if (!getMd5() - .equals(other.getMd5())) return false; - if (!getSize() - .equals(other.getSize())) return false; - if (!getVersionSuffix() - .equals(other.getVersionSuffix())) return false; - if (!getBranch() - .equals(other.getBranch())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion(); - hash = (37 * hash) + MD5_FIELD_NUMBER; - hash = (53 * hash) + getMd5().hashCode(); - hash = (37 * hash) + SIZE_FIELD_NUMBER; - hash = (53 * hash) + getSize().hashCode(); - hash = (37 * hash) + VERSIONSUFFIX_FIELD_NUMBER; - hash = (53 * hash) + getVersionSuffix().hashCode(); - hash = (37 * hash) + BRANCH_FIELD_NUMBER; - hash = (53 * hash) + getBranch().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ResVersionConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ResVersionConfig) - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ResVersionConfigOuterClass.internal_static_ResVersionConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ResVersionConfigOuterClass.internal_static_ResVersionConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.class, emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - version_ = 0; - - md5_ = ""; - - size_ = ""; - - versionSuffix_ = ""; - - branch_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ResVersionConfigOuterClass.internal_static_ResVersionConfig_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig build() { - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig buildPartial() { - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig result = new emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig(this); - result.version_ = version_; - result.md5_ = md5_; - result.size_ = size_; - result.versionSuffix_ = versionSuffix_; - result.branch_ = branch_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig) { - return mergeFrom((emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig other) { - if (other == emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.getDefaultInstance()) return this; - if (other.getVersion() != 0) { - setVersion(other.getVersion()); - } - if (!other.getMd5().isEmpty()) { - md5_ = other.md5_; - onChanged(); - } - if (!other.getSize().isEmpty()) { - size_ = other.size_; - onChanged(); - } - if (!other.getVersionSuffix().isEmpty()) { - versionSuffix_ = other.versionSuffix_; - onChanged(); - } - if (!other.getBranch().isEmpty()) { - branch_ = other.branch_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int version_ ; - /** - * <code>int32 version = 1;</code> - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - /** - * <code>int32 version = 1;</code> - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(int value) { - - version_ = value; - onChanged(); - return this; - } - /** - * <code>int32 version = 1;</code> - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = 0; - onChanged(); - return this; - } - - private java.lang.Object md5_ = ""; - /** - * <code>string md5 = 2;</code> - * @return The md5. - */ - public java.lang.String getMd5() { - java.lang.Object ref = md5_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - md5_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string md5 = 2;</code> - * @return The bytes for md5. - */ - public com.google.protobuf.ByteString - getMd5Bytes() { - java.lang.Object ref = md5_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - md5_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string md5 = 2;</code> - * @param value The md5 to set. - * @return This builder for chaining. - */ - public Builder setMd5( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - md5_ = value; - onChanged(); - return this; - } - /** - * <code>string md5 = 2;</code> - * @return This builder for chaining. - */ - public Builder clearMd5() { - - md5_ = getDefaultInstance().getMd5(); - onChanged(); - return this; - } - /** - * <code>string md5 = 2;</code> - * @param value The bytes for md5 to set. - * @return This builder for chaining. - */ - public Builder setMd5Bytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - md5_ = value; - onChanged(); - return this; - } - - private java.lang.Object size_ = ""; - /** - * <code>string size = 3;</code> - * @return The size. - */ - public java.lang.String getSize() { - java.lang.Object ref = size_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - size_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string size = 3;</code> - * @return The bytes for size. - */ - public com.google.protobuf.ByteString - getSizeBytes() { - java.lang.Object ref = size_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - size_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string size = 3;</code> - * @param value The size to set. - * @return This builder for chaining. - */ - public Builder setSize( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - size_ = value; - onChanged(); - return this; - } - /** - * <code>string size = 3;</code> - * @return This builder for chaining. - */ - public Builder clearSize() { - - size_ = getDefaultInstance().getSize(); - onChanged(); - return this; - } - /** - * <code>string size = 3;</code> - * @param value The bytes for size to set. - * @return This builder for chaining. - */ - public Builder setSizeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - size_ = value; - onChanged(); - return this; - } - - private java.lang.Object versionSuffix_ = ""; - /** - * <code>string versionSuffix = 4;</code> - * @return The versionSuffix. - */ - public java.lang.String getVersionSuffix() { - java.lang.Object ref = versionSuffix_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - versionSuffix_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string versionSuffix = 4;</code> - * @return The bytes for versionSuffix. - */ - public com.google.protobuf.ByteString - getVersionSuffixBytes() { - java.lang.Object ref = versionSuffix_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - versionSuffix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string versionSuffix = 4;</code> - * @param value The versionSuffix to set. - * @return This builder for chaining. - */ - public Builder setVersionSuffix( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - versionSuffix_ = value; - onChanged(); - return this; - } - /** - * <code>string versionSuffix = 4;</code> - * @return This builder for chaining. - */ - public Builder clearVersionSuffix() { - - versionSuffix_ = getDefaultInstance().getVersionSuffix(); - onChanged(); - return this; - } - /** - * <code>string versionSuffix = 4;</code> - * @param value The bytes for versionSuffix to set. - * @return This builder for chaining. - */ - public Builder setVersionSuffixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - versionSuffix_ = value; - onChanged(); - return this; - } - - private java.lang.Object branch_ = ""; - /** - * <code>string branch = 5;</code> - * @return The branch. - */ - public java.lang.String getBranch() { - java.lang.Object ref = branch_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - branch_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string branch = 5;</code> - * @return The bytes for branch. - */ - public com.google.protobuf.ByteString - getBranchBytes() { - java.lang.Object ref = branch_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - branch_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string branch = 5;</code> - * @param value The branch to set. - * @return This builder for chaining. - */ - public Builder setBranch( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - branch_ = value; - onChanged(); - return this; - } - /** - * <code>string branch = 5;</code> - * @return This builder for chaining. - */ - public Builder clearBranch() { - - branch_ = getDefaultInstance().getBranch(); - onChanged(); - return this; - } - /** - * <code>string branch = 5;</code> - * @param value The bytes for branch to set. - * @return This builder for chaining. - */ - public Builder setBranchBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - branch_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ResVersionConfig) - } - - // @@protoc_insertion_point(class_scope:ResVersionConfig) - private static final emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig(); - } - - public static emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ResVersionConfig> - PARSER = new com.google.protobuf.AbstractParser<ResVersionConfig>() { - @java.lang.Override - public ResVersionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResVersionConfig(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ResVersionConfig> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ResVersionConfig> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ResVersionConfig_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ResVersionConfig_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026ResVersionConfig.proto\"e\n\020ResVersionCo" + - "nfig\022\017\n\007version\030\001 \001(\005\022\013\n\003md5\030\002 \001(\t\022\014\n\004si" + - "ze\030\003 \001(\t\022\025\n\rversionSuffix\030\004 \001(\t\022\016\n\006branc" + - "h\030\005 \001(\tB\033\n\031emu.grasscutter.net.protob\006pr" + - "oto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ResVersionConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ResVersionConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ResVersionConfig_descriptor, - new java.lang.String[] { "Version", "Md5", "Size", "VersionSuffix", "Branch", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ResinCardOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ResinCardOuterClass.java deleted file mode 100644 index 4c5158a18..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ResinCardOuterClass.java +++ /dev/null @@ -1,1216 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ResinCard.proto - -package emu.grasscutter.net.proto; - -public final class ResinCardOuterClass { - private ResinCardOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ResinCardOrBuilder extends - // @@protoc_insertion_point(interface_extends:ResinCard) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> - getBaseItemListList(); - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getBaseItemList(int index); - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - int getBaseItemListCount(); - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getBaseItemListOrBuilderList(); - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getBaseItemListOrBuilder( - int index); - - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> - getPerDayItemListList(); - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getPerDayItemList(int index); - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - int getPerDayItemListCount(); - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getPerDayItemListOrBuilderList(); - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getPerDayItemListOrBuilder( - int index); - } - /** - * Protobuf type {@code ResinCard} - */ - public static final class ResinCard extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ResinCard) - ResinCardOrBuilder { - private static final long serialVersionUID = 0L; - // Use ResinCard.newBuilder() to construct. - private ResinCard(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ResinCard() { - baseItemList_ = java.util.Collections.emptyList(); - perDayItemList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ResinCard(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResinCard( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - baseItemList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>(); - mutable_bitField0_ |= 0x00000001; - } - baseItemList_.add( - input.readMessage(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - perDayItemList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>(); - mutable_bitField0_ |= 0x00000002; - } - perDayItemList_.add( - input.readMessage(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - baseItemList_ = java.util.Collections.unmodifiableList(baseItemList_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - perDayItemList_ = java.util.Collections.unmodifiableList(perDayItemList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ResinCardOuterClass.internal_static_ResinCard_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ResinCardOuterClass.internal_static_ResinCard_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard.class, emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard.Builder.class); - } - - public static final int BASEITEMLIST_FIELD_NUMBER = 1; - private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> baseItemList_; - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getBaseItemListList() { - return baseItemList_; - } - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getBaseItemListOrBuilderList() { - return baseItemList_; - } - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - @java.lang.Override - public int getBaseItemListCount() { - return baseItemList_.size(); - } - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getBaseItemList(int index) { - return baseItemList_.get(index); - } - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getBaseItemListOrBuilder( - int index) { - return baseItemList_.get(index); - } - - public static final int PERDAYITEMLIST_FIELD_NUMBER = 2; - private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> perDayItemList_; - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getPerDayItemListList() { - return perDayItemList_; - } - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getPerDayItemListOrBuilderList() { - return perDayItemList_; - } - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - @java.lang.Override - public int getPerDayItemListCount() { - return perDayItemList_.size(); - } - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getPerDayItemList(int index) { - return perDayItemList_.get(index); - } - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getPerDayItemListOrBuilder( - int index) { - return perDayItemList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < baseItemList_.size(); i++) { - output.writeMessage(1, baseItemList_.get(i)); - } - for (int i = 0; i < perDayItemList_.size(); i++) { - output.writeMessage(2, perDayItemList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < baseItemList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, baseItemList_.get(i)); - } - for (int i = 0; i < perDayItemList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, perDayItemList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard other = (emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard) obj; - - if (!getBaseItemListList() - .equals(other.getBaseItemListList())) return false; - if (!getPerDayItemListList() - .equals(other.getPerDayItemListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getBaseItemListCount() > 0) { - hash = (37 * hash) + BASEITEMLIST_FIELD_NUMBER; - hash = (53 * hash) + getBaseItemListList().hashCode(); - } - if (getPerDayItemListCount() > 0) { - hash = (37 * hash) + PERDAYITEMLIST_FIELD_NUMBER; - hash = (53 * hash) + getPerDayItemListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ResinCard} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ResinCard) - emu.grasscutter.net.proto.ResinCardOuterClass.ResinCardOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ResinCardOuterClass.internal_static_ResinCard_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ResinCardOuterClass.internal_static_ResinCard_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard.class, emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getBaseItemListFieldBuilder(); - getPerDayItemListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (baseItemListBuilder_ == null) { - baseItemList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - baseItemListBuilder_.clear(); - } - if (perDayItemListBuilder_ == null) { - perDayItemList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - perDayItemListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ResinCardOuterClass.internal_static_ResinCard_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard build() { - emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard buildPartial() { - emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard result = new emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard(this); - int from_bitField0_ = bitField0_; - if (baseItemListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - baseItemList_ = java.util.Collections.unmodifiableList(baseItemList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.baseItemList_ = baseItemList_; - } else { - result.baseItemList_ = baseItemListBuilder_.build(); - } - if (perDayItemListBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - perDayItemList_ = java.util.Collections.unmodifiableList(perDayItemList_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.perDayItemList_ = perDayItemList_; - } else { - result.perDayItemList_ = perDayItemListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard) { - return mergeFrom((emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard other) { - if (other == emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard.getDefaultInstance()) return this; - if (baseItemListBuilder_ == null) { - if (!other.baseItemList_.isEmpty()) { - if (baseItemList_.isEmpty()) { - baseItemList_ = other.baseItemList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBaseItemListIsMutable(); - baseItemList_.addAll(other.baseItemList_); - } - onChanged(); - } - } else { - if (!other.baseItemList_.isEmpty()) { - if (baseItemListBuilder_.isEmpty()) { - baseItemListBuilder_.dispose(); - baseItemListBuilder_ = null; - baseItemList_ = other.baseItemList_; - bitField0_ = (bitField0_ & ~0x00000001); - baseItemListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBaseItemListFieldBuilder() : null; - } else { - baseItemListBuilder_.addAllMessages(other.baseItemList_); - } - } - } - if (perDayItemListBuilder_ == null) { - if (!other.perDayItemList_.isEmpty()) { - if (perDayItemList_.isEmpty()) { - perDayItemList_ = other.perDayItemList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensurePerDayItemListIsMutable(); - perDayItemList_.addAll(other.perDayItemList_); - } - onChanged(); - } - } else { - if (!other.perDayItemList_.isEmpty()) { - if (perDayItemListBuilder_.isEmpty()) { - perDayItemListBuilder_.dispose(); - perDayItemListBuilder_ = null; - perDayItemList_ = other.perDayItemList_; - bitField0_ = (bitField0_ & ~0x00000002); - perDayItemListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPerDayItemListFieldBuilder() : null; - } else { - perDayItemListBuilder_.addAllMessages(other.perDayItemList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> baseItemList_ = - java.util.Collections.emptyList(); - private void ensureBaseItemListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - baseItemList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>(baseItemList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> baseItemListBuilder_; - - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getBaseItemListList() { - if (baseItemListBuilder_ == null) { - return java.util.Collections.unmodifiableList(baseItemList_); - } else { - return baseItemListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - public int getBaseItemListCount() { - if (baseItemListBuilder_ == null) { - return baseItemList_.size(); - } else { - return baseItemListBuilder_.getCount(); - } - } - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getBaseItemList(int index) { - if (baseItemListBuilder_ == null) { - return baseItemList_.get(index); - } else { - return baseItemListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - public Builder setBaseItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (baseItemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBaseItemListIsMutable(); - baseItemList_.set(index, value); - onChanged(); - } else { - baseItemListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - public Builder setBaseItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (baseItemListBuilder_ == null) { - ensureBaseItemListIsMutable(); - baseItemList_.set(index, builderForValue.build()); - onChanged(); - } else { - baseItemListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - public Builder addBaseItemList(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (baseItemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBaseItemListIsMutable(); - baseItemList_.add(value); - onChanged(); - } else { - baseItemListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - public Builder addBaseItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (baseItemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBaseItemListIsMutable(); - baseItemList_.add(index, value); - onChanged(); - } else { - baseItemListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - public Builder addBaseItemList( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (baseItemListBuilder_ == null) { - ensureBaseItemListIsMutable(); - baseItemList_.add(builderForValue.build()); - onChanged(); - } else { - baseItemListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - public Builder addBaseItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (baseItemListBuilder_ == null) { - ensureBaseItemListIsMutable(); - baseItemList_.add(index, builderForValue.build()); - onChanged(); - } else { - baseItemListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - public Builder addAllBaseItemList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> values) { - if (baseItemListBuilder_ == null) { - ensureBaseItemListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, baseItemList_); - onChanged(); - } else { - baseItemListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - public Builder clearBaseItemList() { - if (baseItemListBuilder_ == null) { - baseItemList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - baseItemListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - public Builder removeBaseItemList(int index) { - if (baseItemListBuilder_ == null) { - ensureBaseItemListIsMutable(); - baseItemList_.remove(index); - onChanged(); - } else { - baseItemListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getBaseItemListBuilder( - int index) { - return getBaseItemListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getBaseItemListOrBuilder( - int index) { - if (baseItemListBuilder_ == null) { - return baseItemList_.get(index); } else { - return baseItemListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getBaseItemListOrBuilderList() { - if (baseItemListBuilder_ != null) { - return baseItemListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(baseItemList_); - } - } - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addBaseItemListBuilder() { - return getBaseItemListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); - } - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addBaseItemListBuilder( - int index) { - return getBaseItemListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); - } - /** - * <code>repeated .ItemParam baseItemList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder> - getBaseItemListBuilderList() { - return getBaseItemListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getBaseItemListFieldBuilder() { - if (baseItemListBuilder_ == null) { - baseItemListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>( - baseItemList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - baseItemList_ = null; - } - return baseItemListBuilder_; - } - - private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> perDayItemList_ = - java.util.Collections.emptyList(); - private void ensurePerDayItemListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - perDayItemList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>(perDayItemList_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> perDayItemListBuilder_; - - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getPerDayItemListList() { - if (perDayItemListBuilder_ == null) { - return java.util.Collections.unmodifiableList(perDayItemList_); - } else { - return perDayItemListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - public int getPerDayItemListCount() { - if (perDayItemListBuilder_ == null) { - return perDayItemList_.size(); - } else { - return perDayItemListBuilder_.getCount(); - } - } - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getPerDayItemList(int index) { - if (perDayItemListBuilder_ == null) { - return perDayItemList_.get(index); - } else { - return perDayItemListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - public Builder setPerDayItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (perDayItemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePerDayItemListIsMutable(); - perDayItemList_.set(index, value); - onChanged(); - } else { - perDayItemListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - public Builder setPerDayItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (perDayItemListBuilder_ == null) { - ensurePerDayItemListIsMutable(); - perDayItemList_.set(index, builderForValue.build()); - onChanged(); - } else { - perDayItemListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - public Builder addPerDayItemList(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (perDayItemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePerDayItemListIsMutable(); - perDayItemList_.add(value); - onChanged(); - } else { - perDayItemListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - public Builder addPerDayItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (perDayItemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePerDayItemListIsMutable(); - perDayItemList_.add(index, value); - onChanged(); - } else { - perDayItemListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - public Builder addPerDayItemList( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (perDayItemListBuilder_ == null) { - ensurePerDayItemListIsMutable(); - perDayItemList_.add(builderForValue.build()); - onChanged(); - } else { - perDayItemListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - public Builder addPerDayItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (perDayItemListBuilder_ == null) { - ensurePerDayItemListIsMutable(); - perDayItemList_.add(index, builderForValue.build()); - onChanged(); - } else { - perDayItemListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - public Builder addAllPerDayItemList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> values) { - if (perDayItemListBuilder_ == null) { - ensurePerDayItemListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, perDayItemList_); - onChanged(); - } else { - perDayItemListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - public Builder clearPerDayItemList() { - if (perDayItemListBuilder_ == null) { - perDayItemList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - perDayItemListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - public Builder removePerDayItemList(int index) { - if (perDayItemListBuilder_ == null) { - ensurePerDayItemListIsMutable(); - perDayItemList_.remove(index); - onChanged(); - } else { - perDayItemListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getPerDayItemListBuilder( - int index) { - return getPerDayItemListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getPerDayItemListOrBuilder( - int index) { - if (perDayItemListBuilder_ == null) { - return perDayItemList_.get(index); } else { - return perDayItemListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getPerDayItemListOrBuilderList() { - if (perDayItemListBuilder_ != null) { - return perDayItemListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(perDayItemList_); - } - } - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addPerDayItemListBuilder() { - return getPerDayItemListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); - } - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addPerDayItemListBuilder( - int index) { - return getPerDayItemListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); - } - /** - * <code>repeated .ItemParam perDayItemList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder> - getPerDayItemListBuilderList() { - return getPerDayItemListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getPerDayItemListFieldBuilder() { - if (perDayItemListBuilder_ == null) { - perDayItemListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>( - perDayItemList_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - perDayItemList_ = null; - } - return perDayItemListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ResinCard) - } - - // @@protoc_insertion_point(class_scope:ResinCard) - private static final emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard(); - } - - public static emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ResinCard> - PARSER = new com.google.protobuf.AbstractParser<ResinCard>() { - @java.lang.Override - public ResinCard parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResinCard(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ResinCard> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ResinCard> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ResinCard_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ResinCard_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\017ResinCard.proto\032\017ItemParam.proto\"Q\n\tRe" + - "sinCard\022 \n\014baseItemList\030\001 \003(\0132\n.ItemPara" + - "m\022\"\n\016perDayItemList\030\002 \003(\0132\n.ItemParamB\033\n" + - "\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(), - }); - internal_static_ResinCard_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ResinCard_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ResinCard_descriptor, - new java.lang.String[] { "BaseItemList", "PerDayItemList", }); - emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ResinChangeNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ResinChangeNotifyOuterClass.java deleted file mode 100644 index 0109026b9..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ResinChangeNotifyOuterClass.java +++ /dev/null @@ -1,677 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ResinChangeNotify.proto - -package emu.grasscutter.net.proto; - -public final class ResinChangeNotifyOuterClass { - private ResinChangeNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ResinChangeNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:ResinChangeNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 currValue = 1;</code> - * @return The currValue. - */ - int getCurrValue(); - - /** - * <code>int32 nextAddTimestamp = 2;</code> - * @return The nextAddTimestamp. - */ - int getNextAddTimestamp(); - - /** - * <code>int32 curBuyCount = 3;</code> - * @return The curBuyCount. - */ - int getCurBuyCount(); - } - /** - * Protobuf type {@code ResinChangeNotify} - */ - public static final class ResinChangeNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ResinChangeNotify) - ResinChangeNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use ResinChangeNotify.newBuilder() to construct. - private ResinChangeNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ResinChangeNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ResinChangeNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResinChangeNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - currValue_ = input.readInt32(); - break; - } - case 16: { - - nextAddTimestamp_ = input.readInt32(); - break; - } - case 24: { - - curBuyCount_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.internal_static_ResinChangeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.internal_static_ResinChangeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify.class, emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify.Builder.class); - } - - public static final int CURRVALUE_FIELD_NUMBER = 1; - private int currValue_; - /** - * <code>int32 currValue = 1;</code> - * @return The currValue. - */ - @java.lang.Override - public int getCurrValue() { - return currValue_; - } - - public static final int NEXTADDTIMESTAMP_FIELD_NUMBER = 2; - private int nextAddTimestamp_; - /** - * <code>int32 nextAddTimestamp = 2;</code> - * @return The nextAddTimestamp. - */ - @java.lang.Override - public int getNextAddTimestamp() { - return nextAddTimestamp_; - } - - public static final int CURBUYCOUNT_FIELD_NUMBER = 3; - private int curBuyCount_; - /** - * <code>int32 curBuyCount = 3;</code> - * @return The curBuyCount. - */ - @java.lang.Override - public int getCurBuyCount() { - return curBuyCount_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (currValue_ != 0) { - output.writeInt32(1, currValue_); - } - if (nextAddTimestamp_ != 0) { - output.writeInt32(2, nextAddTimestamp_); - } - if (curBuyCount_ != 0) { - output.writeInt32(3, curBuyCount_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (currValue_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, currValue_); - } - if (nextAddTimestamp_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, nextAddTimestamp_); - } - if (curBuyCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, curBuyCount_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify other = (emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify) obj; - - if (getCurrValue() - != other.getCurrValue()) return false; - if (getNextAddTimestamp() - != other.getNextAddTimestamp()) return false; - if (getCurBuyCount() - != other.getCurBuyCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CURRVALUE_FIELD_NUMBER; - hash = (53 * hash) + getCurrValue(); - hash = (37 * hash) + NEXTADDTIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + getNextAddTimestamp(); - hash = (37 * hash) + CURBUYCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getCurBuyCount(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ResinChangeNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ResinChangeNotify) - emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.internal_static_ResinChangeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.internal_static_ResinChangeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify.class, emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - currValue_ = 0; - - nextAddTimestamp_ = 0; - - curBuyCount_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.internal_static_ResinChangeNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify build() { - emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify buildPartial() { - emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify result = new emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify(this); - result.currValue_ = currValue_; - result.nextAddTimestamp_ = nextAddTimestamp_; - result.curBuyCount_ = curBuyCount_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify) { - return mergeFrom((emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify other) { - if (other == emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify.getDefaultInstance()) return this; - if (other.getCurrValue() != 0) { - setCurrValue(other.getCurrValue()); - } - if (other.getNextAddTimestamp() != 0) { - setNextAddTimestamp(other.getNextAddTimestamp()); - } - if (other.getCurBuyCount() != 0) { - setCurBuyCount(other.getCurBuyCount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int currValue_ ; - /** - * <code>int32 currValue = 1;</code> - * @return The currValue. - */ - @java.lang.Override - public int getCurrValue() { - return currValue_; - } - /** - * <code>int32 currValue = 1;</code> - * @param value The currValue to set. - * @return This builder for chaining. - */ - public Builder setCurrValue(int value) { - - currValue_ = value; - onChanged(); - return this; - } - /** - * <code>int32 currValue = 1;</code> - * @return This builder for chaining. - */ - public Builder clearCurrValue() { - - currValue_ = 0; - onChanged(); - return this; - } - - private int nextAddTimestamp_ ; - /** - * <code>int32 nextAddTimestamp = 2;</code> - * @return The nextAddTimestamp. - */ - @java.lang.Override - public int getNextAddTimestamp() { - return nextAddTimestamp_; - } - /** - * <code>int32 nextAddTimestamp = 2;</code> - * @param value The nextAddTimestamp to set. - * @return This builder for chaining. - */ - public Builder setNextAddTimestamp(int value) { - - nextAddTimestamp_ = value; - onChanged(); - return this; - } - /** - * <code>int32 nextAddTimestamp = 2;</code> - * @return This builder for chaining. - */ - public Builder clearNextAddTimestamp() { - - nextAddTimestamp_ = 0; - onChanged(); - return this; - } - - private int curBuyCount_ ; - /** - * <code>int32 curBuyCount = 3;</code> - * @return The curBuyCount. - */ - @java.lang.Override - public int getCurBuyCount() { - return curBuyCount_; - } - /** - * <code>int32 curBuyCount = 3;</code> - * @param value The curBuyCount to set. - * @return This builder for chaining. - */ - public Builder setCurBuyCount(int value) { - - curBuyCount_ = value; - onChanged(); - return this; - } - /** - * <code>int32 curBuyCount = 3;</code> - * @return This builder for chaining. - */ - public Builder clearCurBuyCount() { - - curBuyCount_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ResinChangeNotify) - } - - // @@protoc_insertion_point(class_scope:ResinChangeNotify) - private static final emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify(); - } - - public static emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ResinChangeNotify> - PARSER = new com.google.protobuf.AbstractParser<ResinChangeNotify>() { - @java.lang.Override - public ResinChangeNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResinChangeNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ResinChangeNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ResinChangeNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ResinChangeNotifyOuterClass.ResinChangeNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ResinChangeNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ResinChangeNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027ResinChangeNotify.proto\"U\n\021ResinChange" + - "Notify\022\021\n\tcurrValue\030\001 \001(\005\022\030\n\020nextAddTime" + - "stamp\030\002 \001(\005\022\023\n\013curBuyCount\030\003 \001(\005B\033\n\031emu." + - "grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ResinChangeNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ResinChangeNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ResinChangeNotify_descriptor, - new java.lang.String[] { "CurrValue", "NextAddTimestamp", "CurBuyCount", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ResinCostTypeOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ResinCostTypeOuterClass.java deleted file mode 100644 index a239e92d0..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ResinCostTypeOuterClass.java +++ /dev/null @@ -1,183 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ResinCostType.proto - -package emu.grasscutter.net.proto; - -public final class ResinCostTypeOuterClass { - private ResinCostTypeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code ResinCostType} - */ - public enum ResinCostType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>CostNone = 0;</code> - */ - CostNone(0), - /** - * <code>CostNormal = 1;</code> - */ - CostNormal(1), - /** - * <code>CostCondense = 2;</code> - */ - CostCondense(2), - /** - * <code>CostReunionPrivilege = 3;</code> - */ - CostReunionPrivilege(3), - /** - * <code>CostOpActivity = 4;</code> - */ - CostOpActivity(4), - /** - * <code>CostMaterial = 5;</code> - */ - CostMaterial(5), - UNRECOGNIZED(-1), - ; - - /** - * <code>CostNone = 0;</code> - */ - public static final int CostNone_VALUE = 0; - /** - * <code>CostNormal = 1;</code> - */ - public static final int CostNormal_VALUE = 1; - /** - * <code>CostCondense = 2;</code> - */ - public static final int CostCondense_VALUE = 2; - /** - * <code>CostReunionPrivilege = 3;</code> - */ - public static final int CostReunionPrivilege_VALUE = 3; - /** - * <code>CostOpActivity = 4;</code> - */ - public static final int CostOpActivity_VALUE = 4; - /** - * <code>CostMaterial = 5;</code> - */ - public static final int CostMaterial_VALUE = 5; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ResinCostType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static ResinCostType forNumber(int value) { - switch (value) { - case 0: return CostNone; - case 1: return CostNormal; - case 2: return CostCondense; - case 3: return CostReunionPrivilege; - case 4: return CostOpActivity; - case 5: return CostMaterial; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<ResinCostType> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ResinCostType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<ResinCostType>() { - public ResinCostType findValueByNumber(int number) { - return ResinCostType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.ResinCostTypeOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final ResinCostType[] VALUES = values(); - - public static ResinCostType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ResinCostType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:ResinCostType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023ResinCostType.proto*\177\n\rResinCostType\022\014" + - "\n\010CostNone\020\000\022\016\n\nCostNormal\020\001\022\020\n\014CostCond" + - "ense\020\002\022\030\n\024CostReunionPrivilege\020\003\022\022\n\016Cost" + - "OpActivity\020\004\022\020\n\014CostMaterial\020\005B\033\n\031emu.gr" + - "asscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/RouteOuterClass.java b/src/main/java/emu/grasscutter/net/proto/RouteOuterClass.java deleted file mode 100644 index 2accf4af0..000000000 --- a/src/main/java/emu/grasscutter/net/proto/RouteOuterClass.java +++ /dev/null @@ -1,914 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Route.proto - -package emu.grasscutter.net.proto; - -public final class RouteOuterClass { - private RouteOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface RouteOrBuilder extends - // @@protoc_insertion_point(interface_extends:Route) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - java.util.List<emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint> - getRoutePointsList(); - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint getRoutePoints(int index); - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - int getRoutePointsCount(); - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.RoutePointOuterClass.RoutePointOrBuilder> - getRoutePointsOrBuilderList(); - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - emu.grasscutter.net.proto.RoutePointOuterClass.RoutePointOrBuilder getRoutePointsOrBuilder( - int index); - - /** - * <code>uint32 routeType = 2;</code> - * @return The routeType. - */ - int getRouteType(); - } - /** - * Protobuf type {@code Route} - */ - public static final class Route extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Route) - RouteOrBuilder { - private static final long serialVersionUID = 0L; - // Use Route.newBuilder() to construct. - private Route(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Route() { - routePoints_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Route(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Route( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - routePoints_ = new java.util.ArrayList<emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint>(); - mutable_bitField0_ |= 0x00000001; - } - routePoints_.add( - input.readMessage(emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.parser(), extensionRegistry)); - break; - } - case 16: { - - routeType_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - routePoints_ = java.util.Collections.unmodifiableList(routePoints_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.RouteOuterClass.internal_static_Route_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.RouteOuterClass.internal_static_Route_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.RouteOuterClass.Route.class, emu.grasscutter.net.proto.RouteOuterClass.Route.Builder.class); - } - - public static final int ROUTEPOINTS_FIELD_NUMBER = 1; - private java.util.List<emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint> routePoints_; - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint> getRoutePointsList() { - return routePoints_; - } - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.RoutePointOuterClass.RoutePointOrBuilder> - getRoutePointsOrBuilderList() { - return routePoints_; - } - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - @java.lang.Override - public int getRoutePointsCount() { - return routePoints_.size(); - } - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint getRoutePoints(int index) { - return routePoints_.get(index); - } - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.RoutePointOuterClass.RoutePointOrBuilder getRoutePointsOrBuilder( - int index) { - return routePoints_.get(index); - } - - public static final int ROUTETYPE_FIELD_NUMBER = 2; - private int routeType_; - /** - * <code>uint32 routeType = 2;</code> - * @return The routeType. - */ - @java.lang.Override - public int getRouteType() { - return routeType_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < routePoints_.size(); i++) { - output.writeMessage(1, routePoints_.get(i)); - } - if (routeType_ != 0) { - output.writeUInt32(2, routeType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < routePoints_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, routePoints_.get(i)); - } - if (routeType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, routeType_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.RouteOuterClass.Route)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.RouteOuterClass.Route other = (emu.grasscutter.net.proto.RouteOuterClass.Route) obj; - - if (!getRoutePointsList() - .equals(other.getRoutePointsList())) return false; - if (getRouteType() - != other.getRouteType()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRoutePointsCount() > 0) { - hash = (37 * hash) + ROUTEPOINTS_FIELD_NUMBER; - hash = (53 * hash) + getRoutePointsList().hashCode(); - } - hash = (37 * hash) + ROUTETYPE_FIELD_NUMBER; - hash = (53 * hash) + getRouteType(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.RouteOuterClass.Route parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.RouteOuterClass.Route parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.RouteOuterClass.Route parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.RouteOuterClass.Route parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.RouteOuterClass.Route parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.RouteOuterClass.Route parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.RouteOuterClass.Route parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.RouteOuterClass.Route parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.RouteOuterClass.Route parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.RouteOuterClass.Route parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.RouteOuterClass.Route parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.RouteOuterClass.Route parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.RouteOuterClass.Route prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Route} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:Route) - emu.grasscutter.net.proto.RouteOuterClass.RouteOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.RouteOuterClass.internal_static_Route_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.RouteOuterClass.internal_static_Route_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.RouteOuterClass.Route.class, emu.grasscutter.net.proto.RouteOuterClass.Route.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.RouteOuterClass.Route.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getRoutePointsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (routePointsBuilder_ == null) { - routePoints_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - routePointsBuilder_.clear(); - } - routeType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.RouteOuterClass.internal_static_Route_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.RouteOuterClass.Route getDefaultInstanceForType() { - return emu.grasscutter.net.proto.RouteOuterClass.Route.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.RouteOuterClass.Route build() { - emu.grasscutter.net.proto.RouteOuterClass.Route result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.RouteOuterClass.Route buildPartial() { - emu.grasscutter.net.proto.RouteOuterClass.Route result = new emu.grasscutter.net.proto.RouteOuterClass.Route(this); - int from_bitField0_ = bitField0_; - if (routePointsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - routePoints_ = java.util.Collections.unmodifiableList(routePoints_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.routePoints_ = routePoints_; - } else { - result.routePoints_ = routePointsBuilder_.build(); - } - result.routeType_ = routeType_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.RouteOuterClass.Route) { - return mergeFrom((emu.grasscutter.net.proto.RouteOuterClass.Route)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.RouteOuterClass.Route other) { - if (other == emu.grasscutter.net.proto.RouteOuterClass.Route.getDefaultInstance()) return this; - if (routePointsBuilder_ == null) { - if (!other.routePoints_.isEmpty()) { - if (routePoints_.isEmpty()) { - routePoints_ = other.routePoints_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRoutePointsIsMutable(); - routePoints_.addAll(other.routePoints_); - } - onChanged(); - } - } else { - if (!other.routePoints_.isEmpty()) { - if (routePointsBuilder_.isEmpty()) { - routePointsBuilder_.dispose(); - routePointsBuilder_ = null; - routePoints_ = other.routePoints_; - bitField0_ = (bitField0_ & ~0x00000001); - routePointsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRoutePointsFieldBuilder() : null; - } else { - routePointsBuilder_.addAllMessages(other.routePoints_); - } - } - } - if (other.getRouteType() != 0) { - setRouteType(other.getRouteType()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.RouteOuterClass.Route parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.RouteOuterClass.Route) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List<emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint> routePoints_ = - java.util.Collections.emptyList(); - private void ensureRoutePointsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - routePoints_ = new java.util.ArrayList<emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint>(routePoints_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint, emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.Builder, emu.grasscutter.net.proto.RoutePointOuterClass.RoutePointOrBuilder> routePointsBuilder_; - - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint> getRoutePointsList() { - if (routePointsBuilder_ == null) { - return java.util.Collections.unmodifiableList(routePoints_); - } else { - return routePointsBuilder_.getMessageList(); - } - } - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - public int getRoutePointsCount() { - if (routePointsBuilder_ == null) { - return routePoints_.size(); - } else { - return routePointsBuilder_.getCount(); - } - } - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - public emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint getRoutePoints(int index) { - if (routePointsBuilder_ == null) { - return routePoints_.get(index); - } else { - return routePointsBuilder_.getMessage(index); - } - } - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - public Builder setRoutePoints( - int index, emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint value) { - if (routePointsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRoutePointsIsMutable(); - routePoints_.set(index, value); - onChanged(); - } else { - routePointsBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - public Builder setRoutePoints( - int index, emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.Builder builderForValue) { - if (routePointsBuilder_ == null) { - ensureRoutePointsIsMutable(); - routePoints_.set(index, builderForValue.build()); - onChanged(); - } else { - routePointsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - public Builder addRoutePoints(emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint value) { - if (routePointsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRoutePointsIsMutable(); - routePoints_.add(value); - onChanged(); - } else { - routePointsBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - public Builder addRoutePoints( - int index, emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint value) { - if (routePointsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRoutePointsIsMutable(); - routePoints_.add(index, value); - onChanged(); - } else { - routePointsBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - public Builder addRoutePoints( - emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.Builder builderForValue) { - if (routePointsBuilder_ == null) { - ensureRoutePointsIsMutable(); - routePoints_.add(builderForValue.build()); - onChanged(); - } else { - routePointsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - public Builder addRoutePoints( - int index, emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.Builder builderForValue) { - if (routePointsBuilder_ == null) { - ensureRoutePointsIsMutable(); - routePoints_.add(index, builderForValue.build()); - onChanged(); - } else { - routePointsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - public Builder addAllRoutePoints( - java.lang.Iterable<? extends emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint> values) { - if (routePointsBuilder_ == null) { - ensureRoutePointsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, routePoints_); - onChanged(); - } else { - routePointsBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - public Builder clearRoutePoints() { - if (routePointsBuilder_ == null) { - routePoints_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - routePointsBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - public Builder removeRoutePoints(int index) { - if (routePointsBuilder_ == null) { - ensureRoutePointsIsMutable(); - routePoints_.remove(index); - onChanged(); - } else { - routePointsBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - public emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.Builder getRoutePointsBuilder( - int index) { - return getRoutePointsFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - public emu.grasscutter.net.proto.RoutePointOuterClass.RoutePointOrBuilder getRoutePointsOrBuilder( - int index) { - if (routePointsBuilder_ == null) { - return routePoints_.get(index); } else { - return routePointsBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.RoutePointOuterClass.RoutePointOrBuilder> - getRoutePointsOrBuilderList() { - if (routePointsBuilder_ != null) { - return routePointsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(routePoints_); - } - } - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - public emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.Builder addRoutePointsBuilder() { - return getRoutePointsFieldBuilder().addBuilder( - emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.getDefaultInstance()); - } - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - public emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.Builder addRoutePointsBuilder( - int index) { - return getRoutePointsFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.getDefaultInstance()); - } - /** - * <code>repeated .RoutePoint routePoints = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.Builder> - getRoutePointsBuilderList() { - return getRoutePointsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint, emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.Builder, emu.grasscutter.net.proto.RoutePointOuterClass.RoutePointOrBuilder> - getRoutePointsFieldBuilder() { - if (routePointsBuilder_ == null) { - routePointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint, emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.Builder, emu.grasscutter.net.proto.RoutePointOuterClass.RoutePointOrBuilder>( - routePoints_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - routePoints_ = null; - } - return routePointsBuilder_; - } - - private int routeType_ ; - /** - * <code>uint32 routeType = 2;</code> - * @return The routeType. - */ - @java.lang.Override - public int getRouteType() { - return routeType_; - } - /** - * <code>uint32 routeType = 2;</code> - * @param value The routeType to set. - * @return This builder for chaining. - */ - public Builder setRouteType(int value) { - - routeType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 routeType = 2;</code> - * @return This builder for chaining. - */ - public Builder clearRouteType() { - - routeType_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Route) - } - - // @@protoc_insertion_point(class_scope:Route) - private static final emu.grasscutter.net.proto.RouteOuterClass.Route DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.RouteOuterClass.Route(); - } - - public static emu.grasscutter.net.proto.RouteOuterClass.Route getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<Route> - PARSER = new com.google.protobuf.AbstractParser<Route>() { - @java.lang.Override - public Route parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Route(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<Route> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Route> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.RouteOuterClass.Route getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Route_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Route_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\013Route.proto\032\020RoutePoint.proto\"<\n\005Route" + - "\022 \n\013routePoints\030\001 \003(\0132\013.RoutePoint\022\021\n\tro" + - "uteType\030\002 \001(\rB\033\n\031emu.grasscutter.net.pro" + - "tob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.RoutePointOuterClass.getDescriptor(), - }); - internal_static_Route_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_Route_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Route_descriptor, - new java.lang.String[] { "RoutePoints", "RouteType", }); - emu.grasscutter.net.proto.RoutePointOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/RoutePointOuterClass.java b/src/main/java/emu/grasscutter/net/proto/RoutePointOuterClass.java deleted file mode 100644 index 8f67adec5..000000000 --- a/src/main/java/emu/grasscutter/net/proto/RoutePointOuterClass.java +++ /dev/null @@ -1,1719 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: RoutePoint.proto - -package emu.grasscutter.net.proto; - -public final class RoutePointOuterClass { - private RoutePointOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface RoutePointOrBuilder extends - // @@protoc_insertion_point(interface_extends:RoutePoint) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.Vector position = 1;</code> - * @return Whether the position field is set. - */ - boolean hasPosition(); - /** - * <code>.Vector position = 1;</code> - * @return The position. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getPosition(); - /** - * <code>.Vector position = 1;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPositionOrBuilder(); - - /** - * <code>float velocity = 11;</code> - * @return Whether the velocity field is set. - */ - boolean hasVelocity(); - /** - * <code>float velocity = 11;</code> - * @return The velocity. - */ - float getVelocity(); - - /** - * <code>float time = 12;</code> - * @return Whether the time field is set. - */ - boolean hasTime(); - /** - * <code>float time = 12;</code> - * @return The time. - */ - float getTime(); - - /** - * <code>.Vector rotation = 21;</code> - * @return Whether the rotation field is set. - */ - boolean hasRotation(); - /** - * <code>.Vector rotation = 21;</code> - * @return The rotation. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getRotation(); - /** - * <code>.Vector rotation = 21;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRotationOrBuilder(); - - /** - * <code>.MathQuaternion rotationSpeed = 22;</code> - * @return Whether the rotationSpeed field is set. - */ - boolean hasRotationSpeed(); - /** - * <code>.MathQuaternion rotationSpeed = 22;</code> - * @return The rotationSpeed. - */ - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion getRotationSpeed(); - /** - * <code>.MathQuaternion rotationSpeed = 22;</code> - */ - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder getRotationSpeedOrBuilder(); - - /** - * <code>.MathQuaternion axisSpeed = 23;</code> - * @return Whether the axisSpeed field is set. - */ - boolean hasAxisSpeed(); - /** - * <code>.MathQuaternion axisSpeed = 23;</code> - * @return The axisSpeed. - */ - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion getAxisSpeed(); - /** - * <code>.MathQuaternion axisSpeed = 23;</code> - */ - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder getAxisSpeedOrBuilder(); - - public emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.MoveParamsCase getMoveParamsCase(); - - public emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.RotateParamsCase getRotateParamsCase(); - } - /** - * Protobuf type {@code RoutePoint} - */ - public static final class RoutePoint extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:RoutePoint) - RoutePointOrBuilder { - private static final long serialVersionUID = 0L; - // Use RoutePoint.newBuilder() to construct. - private RoutePoint(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private RoutePoint() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RoutePoint(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RoutePoint( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (position_ != null) { - subBuilder = position_.toBuilder(); - } - position_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(position_); - position_ = subBuilder.buildPartial(); - } - - break; - } - case 93: { - moveParamsCase_ = 11; - moveParams_ = input.readFloat(); - break; - } - case 101: { - moveParamsCase_ = 12; - moveParams_ = input.readFloat(); - break; - } - case 170: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (rotateParamsCase_ == 21) { - subBuilder = ((emu.grasscutter.net.proto.VectorOuterClass.Vector) rotateParams_).toBuilder(); - } - rotateParams_ = - input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.VectorOuterClass.Vector) rotateParams_); - rotateParams_ = subBuilder.buildPartial(); - } - rotateParamsCase_ = 21; - break; - } - case 178: { - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder subBuilder = null; - if (rotateParamsCase_ == 22) { - subBuilder = ((emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion) rotateParams_).toBuilder(); - } - rotateParams_ = - input.readMessage(emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion) rotateParams_); - rotateParams_ = subBuilder.buildPartial(); - } - rotateParamsCase_ = 22; - break; - } - case 186: { - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder subBuilder = null; - if (rotateParamsCase_ == 23) { - subBuilder = ((emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion) rotateParams_).toBuilder(); - } - rotateParams_ = - input.readMessage(emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion) rotateParams_); - rotateParams_ = subBuilder.buildPartial(); - } - rotateParamsCase_ = 23; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.RoutePointOuterClass.internal_static_RoutePoint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.RoutePointOuterClass.internal_static_RoutePoint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.class, emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.Builder.class); - } - - private int moveParamsCase_ = 0; - private java.lang.Object moveParams_; - public enum MoveParamsCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VELOCITY(11), - TIME(12), - MOVEPARAMS_NOT_SET(0); - private final int value; - private MoveParamsCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MoveParamsCase valueOf(int value) { - return forNumber(value); - } - - public static MoveParamsCase forNumber(int value) { - switch (value) { - case 11: return VELOCITY; - case 12: return TIME; - case 0: return MOVEPARAMS_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public MoveParamsCase - getMoveParamsCase() { - return MoveParamsCase.forNumber( - moveParamsCase_); - } - - private int rotateParamsCase_ = 0; - private java.lang.Object rotateParams_; - public enum RotateParamsCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - ROTATION(21), - ROTATIONSPEED(22), - AXISSPEED(23), - ROTATEPARAMS_NOT_SET(0); - private final int value; - private RotateParamsCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static RotateParamsCase valueOf(int value) { - return forNumber(value); - } - - public static RotateParamsCase forNumber(int value) { - switch (value) { - case 21: return ROTATION; - case 22: return ROTATIONSPEED; - case 23: return AXISSPEED; - case 0: return ROTATEPARAMS_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public RotateParamsCase - getRotateParamsCase() { - return RotateParamsCase.forNumber( - rotateParamsCase_); - } - - public static final int POSITION_FIELD_NUMBER = 1; - private emu.grasscutter.net.proto.VectorOuterClass.Vector position_; - /** - * <code>.Vector position = 1;</code> - * @return Whether the position field is set. - */ - @java.lang.Override - public boolean hasPosition() { - return position_ != null; - } - /** - * <code>.Vector position = 1;</code> - * @return The position. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getPosition() { - return position_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : position_; - } - /** - * <code>.Vector position = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPositionOrBuilder() { - return getPosition(); - } - - public static final int VELOCITY_FIELD_NUMBER = 11; - /** - * <code>float velocity = 11;</code> - * @return Whether the velocity field is set. - */ - @java.lang.Override - public boolean hasVelocity() { - return moveParamsCase_ == 11; - } - /** - * <code>float velocity = 11;</code> - * @return The velocity. - */ - @java.lang.Override - public float getVelocity() { - if (moveParamsCase_ == 11) { - return (java.lang.Float) moveParams_; - } - return 0F; - } - - public static final int TIME_FIELD_NUMBER = 12; - /** - * <code>float time = 12;</code> - * @return Whether the time field is set. - */ - @java.lang.Override - public boolean hasTime() { - return moveParamsCase_ == 12; - } - /** - * <code>float time = 12;</code> - * @return The time. - */ - @java.lang.Override - public float getTime() { - if (moveParamsCase_ == 12) { - return (java.lang.Float) moveParams_; - } - return 0F; - } - - public static final int ROTATION_FIELD_NUMBER = 21; - /** - * <code>.Vector rotation = 21;</code> - * @return Whether the rotation field is set. - */ - @java.lang.Override - public boolean hasRotation() { - return rotateParamsCase_ == 21; - } - /** - * <code>.Vector rotation = 21;</code> - * @return The rotation. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getRotation() { - if (rotateParamsCase_ == 21) { - return (emu.grasscutter.net.proto.VectorOuterClass.Vector) rotateParams_; - } - return emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance(); - } - /** - * <code>.Vector rotation = 21;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRotationOrBuilder() { - if (rotateParamsCase_ == 21) { - return (emu.grasscutter.net.proto.VectorOuterClass.Vector) rotateParams_; - } - return emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance(); - } - - public static final int ROTATIONSPEED_FIELD_NUMBER = 22; - /** - * <code>.MathQuaternion rotationSpeed = 22;</code> - * @return Whether the rotationSpeed field is set. - */ - @java.lang.Override - public boolean hasRotationSpeed() { - return rotateParamsCase_ == 22; - } - /** - * <code>.MathQuaternion rotationSpeed = 22;</code> - * @return The rotationSpeed. - */ - @java.lang.Override - public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion getRotationSpeed() { - if (rotateParamsCase_ == 22) { - return (emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion) rotateParams_; - } - return emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.getDefaultInstance(); - } - /** - * <code>.MathQuaternion rotationSpeed = 22;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder getRotationSpeedOrBuilder() { - if (rotateParamsCase_ == 22) { - return (emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion) rotateParams_; - } - return emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.getDefaultInstance(); - } - - public static final int AXISSPEED_FIELD_NUMBER = 23; - /** - * <code>.MathQuaternion axisSpeed = 23;</code> - * @return Whether the axisSpeed field is set. - */ - @java.lang.Override - public boolean hasAxisSpeed() { - return rotateParamsCase_ == 23; - } - /** - * <code>.MathQuaternion axisSpeed = 23;</code> - * @return The axisSpeed. - */ - @java.lang.Override - public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion getAxisSpeed() { - if (rotateParamsCase_ == 23) { - return (emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion) rotateParams_; - } - return emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.getDefaultInstance(); - } - /** - * <code>.MathQuaternion axisSpeed = 23;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder getAxisSpeedOrBuilder() { - if (rotateParamsCase_ == 23) { - return (emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion) rotateParams_; - } - return emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (position_ != null) { - output.writeMessage(1, getPosition()); - } - if (moveParamsCase_ == 11) { - output.writeFloat( - 11, (float)((java.lang.Float) moveParams_)); - } - if (moveParamsCase_ == 12) { - output.writeFloat( - 12, (float)((java.lang.Float) moveParams_)); - } - if (rotateParamsCase_ == 21) { - output.writeMessage(21, (emu.grasscutter.net.proto.VectorOuterClass.Vector) rotateParams_); - } - if (rotateParamsCase_ == 22) { - output.writeMessage(22, (emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion) rotateParams_); - } - if (rotateParamsCase_ == 23) { - output.writeMessage(23, (emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion) rotateParams_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (position_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPosition()); - } - if (moveParamsCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize( - 11, (float)((java.lang.Float) moveParams_)); - } - if (moveParamsCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize( - 12, (float)((java.lang.Float) moveParams_)); - } - if (rotateParamsCase_ == 21) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, (emu.grasscutter.net.proto.VectorOuterClass.Vector) rotateParams_); - } - if (rotateParamsCase_ == 22) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, (emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion) rotateParams_); - } - if (rotateParamsCase_ == 23) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, (emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion) rotateParams_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint other = (emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint) obj; - - if (hasPosition() != other.hasPosition()) return false; - if (hasPosition()) { - if (!getPosition() - .equals(other.getPosition())) return false; - } - if (!getMoveParamsCase().equals(other.getMoveParamsCase())) return false; - switch (moveParamsCase_) { - case 11: - if (java.lang.Float.floatToIntBits(getVelocity()) - != java.lang.Float.floatToIntBits( - other.getVelocity())) return false; - break; - case 12: - if (java.lang.Float.floatToIntBits(getTime()) - != java.lang.Float.floatToIntBits( - other.getTime())) return false; - break; - case 0: - default: - } - if (!getRotateParamsCase().equals(other.getRotateParamsCase())) return false; - switch (rotateParamsCase_) { - case 21: - if (!getRotation() - .equals(other.getRotation())) return false; - break; - case 22: - if (!getRotationSpeed() - .equals(other.getRotationSpeed())) return false; - break; - case 23: - if (!getAxisSpeed() - .equals(other.getAxisSpeed())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPosition()) { - hash = (37 * hash) + POSITION_FIELD_NUMBER; - hash = (53 * hash) + getPosition().hashCode(); - } - switch (moveParamsCase_) { - case 11: - hash = (37 * hash) + VELOCITY_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getVelocity()); - break; - case 12: - hash = (37 * hash) + TIME_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getTime()); - break; - case 0: - default: - } - switch (rotateParamsCase_) { - case 21: - hash = (37 * hash) + ROTATION_FIELD_NUMBER; - hash = (53 * hash) + getRotation().hashCode(); - break; - case 22: - hash = (37 * hash) + ROTATIONSPEED_FIELD_NUMBER; - hash = (53 * hash) + getRotationSpeed().hashCode(); - break; - case 23: - hash = (37 * hash) + AXISSPEED_FIELD_NUMBER; - hash = (53 * hash) + getAxisSpeed().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code RoutePoint} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:RoutePoint) - emu.grasscutter.net.proto.RoutePointOuterClass.RoutePointOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.RoutePointOuterClass.internal_static_RoutePoint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.RoutePointOuterClass.internal_static_RoutePoint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.class, emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (positionBuilder_ == null) { - position_ = null; - } else { - position_ = null; - positionBuilder_ = null; - } - moveParamsCase_ = 0; - moveParams_ = null; - rotateParamsCase_ = 0; - rotateParams_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.RoutePointOuterClass.internal_static_RoutePoint_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint getDefaultInstanceForType() { - return emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint build() { - emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint buildPartial() { - emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint result = new emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint(this); - if (positionBuilder_ == null) { - result.position_ = position_; - } else { - result.position_ = positionBuilder_.build(); - } - if (moveParamsCase_ == 11) { - result.moveParams_ = moveParams_; - } - if (moveParamsCase_ == 12) { - result.moveParams_ = moveParams_; - } - if (rotateParamsCase_ == 21) { - if (rotationBuilder_ == null) { - result.rotateParams_ = rotateParams_; - } else { - result.rotateParams_ = rotationBuilder_.build(); - } - } - if (rotateParamsCase_ == 22) { - if (rotationSpeedBuilder_ == null) { - result.rotateParams_ = rotateParams_; - } else { - result.rotateParams_ = rotationSpeedBuilder_.build(); - } - } - if (rotateParamsCase_ == 23) { - if (axisSpeedBuilder_ == null) { - result.rotateParams_ = rotateParams_; - } else { - result.rotateParams_ = axisSpeedBuilder_.build(); - } - } - result.moveParamsCase_ = moveParamsCase_; - result.rotateParamsCase_ = rotateParamsCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint) { - return mergeFrom((emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint other) { - if (other == emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.getDefaultInstance()) return this; - if (other.hasPosition()) { - mergePosition(other.getPosition()); - } - switch (other.getMoveParamsCase()) { - case VELOCITY: { - setVelocity(other.getVelocity()); - break; - } - case TIME: { - setTime(other.getTime()); - break; - } - case MOVEPARAMS_NOT_SET: { - break; - } - } - switch (other.getRotateParamsCase()) { - case ROTATION: { - mergeRotation(other.getRotation()); - break; - } - case ROTATIONSPEED: { - mergeRotationSpeed(other.getRotationSpeed()); - break; - } - case AXISSPEED: { - mergeAxisSpeed(other.getAxisSpeed()); - break; - } - case ROTATEPARAMS_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int moveParamsCase_ = 0; - private java.lang.Object moveParams_; - public MoveParamsCase - getMoveParamsCase() { - return MoveParamsCase.forNumber( - moveParamsCase_); - } - - public Builder clearMoveParams() { - moveParamsCase_ = 0; - moveParams_ = null; - onChanged(); - return this; - } - - private int rotateParamsCase_ = 0; - private java.lang.Object rotateParams_; - public RotateParamsCase - getRotateParamsCase() { - return RotateParamsCase.forNumber( - rotateParamsCase_); - } - - public Builder clearRotateParams() { - rotateParamsCase_ = 0; - rotateParams_ = null; - onChanged(); - return this; - } - - - private emu.grasscutter.net.proto.VectorOuterClass.Vector position_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> positionBuilder_; - /** - * <code>.Vector position = 1;</code> - * @return Whether the position field is set. - */ - public boolean hasPosition() { - return positionBuilder_ != null || position_ != null; - } - /** - * <code>.Vector position = 1;</code> - * @return The position. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getPosition() { - if (positionBuilder_ == null) { - return position_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : position_; - } else { - return positionBuilder_.getMessage(); - } - } - /** - * <code>.Vector position = 1;</code> - */ - public Builder setPosition(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (positionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - position_ = value; - onChanged(); - } else { - positionBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Vector position = 1;</code> - */ - public Builder setPosition( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (positionBuilder_ == null) { - position_ = builderForValue.build(); - onChanged(); - } else { - positionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Vector position = 1;</code> - */ - public Builder mergePosition(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (positionBuilder_ == null) { - if (position_ != null) { - position_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(position_).mergeFrom(value).buildPartial(); - } else { - position_ = value; - } - onChanged(); - } else { - positionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Vector position = 1;</code> - */ - public Builder clearPosition() { - if (positionBuilder_ == null) { - position_ = null; - onChanged(); - } else { - position_ = null; - positionBuilder_ = null; - } - - return this; - } - /** - * <code>.Vector position = 1;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getPositionBuilder() { - - onChanged(); - return getPositionFieldBuilder().getBuilder(); - } - /** - * <code>.Vector position = 1;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPositionOrBuilder() { - if (positionBuilder_ != null) { - return positionBuilder_.getMessageOrBuilder(); - } else { - return position_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : position_; - } - } - /** - * <code>.Vector position = 1;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getPositionFieldBuilder() { - if (positionBuilder_ == null) { - positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getPosition(), - getParentForChildren(), - isClean()); - position_ = null; - } - return positionBuilder_; - } - - /** - * <code>float velocity = 11;</code> - * @return Whether the velocity field is set. - */ - public boolean hasVelocity() { - return moveParamsCase_ == 11; - } - /** - * <code>float velocity = 11;</code> - * @return The velocity. - */ - public float getVelocity() { - if (moveParamsCase_ == 11) { - return (java.lang.Float) moveParams_; - } - return 0F; - } - /** - * <code>float velocity = 11;</code> - * @param value The velocity to set. - * @return This builder for chaining. - */ - public Builder setVelocity(float value) { - moveParamsCase_ = 11; - moveParams_ = value; - onChanged(); - return this; - } - /** - * <code>float velocity = 11;</code> - * @return This builder for chaining. - */ - public Builder clearVelocity() { - if (moveParamsCase_ == 11) { - moveParamsCase_ = 0; - moveParams_ = null; - onChanged(); - } - return this; - } - - /** - * <code>float time = 12;</code> - * @return Whether the time field is set. - */ - public boolean hasTime() { - return moveParamsCase_ == 12; - } - /** - * <code>float time = 12;</code> - * @return The time. - */ - public float getTime() { - if (moveParamsCase_ == 12) { - return (java.lang.Float) moveParams_; - } - return 0F; - } - /** - * <code>float time = 12;</code> - * @param value The time to set. - * @return This builder for chaining. - */ - public Builder setTime(float value) { - moveParamsCase_ = 12; - moveParams_ = value; - onChanged(); - return this; - } - /** - * <code>float time = 12;</code> - * @return This builder for chaining. - */ - public Builder clearTime() { - if (moveParamsCase_ == 12) { - moveParamsCase_ = 0; - moveParams_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> rotationBuilder_; - /** - * <code>.Vector rotation = 21;</code> - * @return Whether the rotation field is set. - */ - @java.lang.Override - public boolean hasRotation() { - return rotateParamsCase_ == 21; - } - /** - * <code>.Vector rotation = 21;</code> - * @return The rotation. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getRotation() { - if (rotationBuilder_ == null) { - if (rotateParamsCase_ == 21) { - return (emu.grasscutter.net.proto.VectorOuterClass.Vector) rotateParams_; - } - return emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance(); - } else { - if (rotateParamsCase_ == 21) { - return rotationBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance(); - } - } - /** - * <code>.Vector rotation = 21;</code> - */ - public Builder setRotation(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (rotationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rotateParams_ = value; - onChanged(); - } else { - rotationBuilder_.setMessage(value); - } - rotateParamsCase_ = 21; - return this; - } - /** - * <code>.Vector rotation = 21;</code> - */ - public Builder setRotation( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (rotationBuilder_ == null) { - rotateParams_ = builderForValue.build(); - onChanged(); - } else { - rotationBuilder_.setMessage(builderForValue.build()); - } - rotateParamsCase_ = 21; - return this; - } - /** - * <code>.Vector rotation = 21;</code> - */ - public Builder mergeRotation(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (rotationBuilder_ == null) { - if (rotateParamsCase_ == 21 && - rotateParams_ != emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance()) { - rotateParams_ = emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder((emu.grasscutter.net.proto.VectorOuterClass.Vector) rotateParams_) - .mergeFrom(value).buildPartial(); - } else { - rotateParams_ = value; - } - onChanged(); - } else { - if (rotateParamsCase_ == 21) { - rotationBuilder_.mergeFrom(value); - } - rotationBuilder_.setMessage(value); - } - rotateParamsCase_ = 21; - return this; - } - /** - * <code>.Vector rotation = 21;</code> - */ - public Builder clearRotation() { - if (rotationBuilder_ == null) { - if (rotateParamsCase_ == 21) { - rotateParamsCase_ = 0; - rotateParams_ = null; - onChanged(); - } - } else { - if (rotateParamsCase_ == 21) { - rotateParamsCase_ = 0; - rotateParams_ = null; - } - rotationBuilder_.clear(); - } - return this; - } - /** - * <code>.Vector rotation = 21;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getRotationBuilder() { - return getRotationFieldBuilder().getBuilder(); - } - /** - * <code>.Vector rotation = 21;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRotationOrBuilder() { - if ((rotateParamsCase_ == 21) && (rotationBuilder_ != null)) { - return rotationBuilder_.getMessageOrBuilder(); - } else { - if (rotateParamsCase_ == 21) { - return (emu.grasscutter.net.proto.VectorOuterClass.Vector) rotateParams_; - } - return emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance(); - } - } - /** - * <code>.Vector rotation = 21;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getRotationFieldBuilder() { - if (rotationBuilder_ == null) { - if (!(rotateParamsCase_ == 21)) { - rotateParams_ = emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance(); - } - rotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - (emu.grasscutter.net.proto.VectorOuterClass.Vector) rotateParams_, - getParentForChildren(), - isClean()); - rotateParams_ = null; - } - rotateParamsCase_ = 21; - onChanged();; - return rotationBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion, emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder, emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder> rotationSpeedBuilder_; - /** - * <code>.MathQuaternion rotationSpeed = 22;</code> - * @return Whether the rotationSpeed field is set. - */ - @java.lang.Override - public boolean hasRotationSpeed() { - return rotateParamsCase_ == 22; - } - /** - * <code>.MathQuaternion rotationSpeed = 22;</code> - * @return The rotationSpeed. - */ - @java.lang.Override - public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion getRotationSpeed() { - if (rotationSpeedBuilder_ == null) { - if (rotateParamsCase_ == 22) { - return (emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion) rotateParams_; - } - return emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.getDefaultInstance(); - } else { - if (rotateParamsCase_ == 22) { - return rotationSpeedBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.getDefaultInstance(); - } - } - /** - * <code>.MathQuaternion rotationSpeed = 22;</code> - */ - public Builder setRotationSpeed(emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion value) { - if (rotationSpeedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rotateParams_ = value; - onChanged(); - } else { - rotationSpeedBuilder_.setMessage(value); - } - rotateParamsCase_ = 22; - return this; - } - /** - * <code>.MathQuaternion rotationSpeed = 22;</code> - */ - public Builder setRotationSpeed( - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder builderForValue) { - if (rotationSpeedBuilder_ == null) { - rotateParams_ = builderForValue.build(); - onChanged(); - } else { - rotationSpeedBuilder_.setMessage(builderForValue.build()); - } - rotateParamsCase_ = 22; - return this; - } - /** - * <code>.MathQuaternion rotationSpeed = 22;</code> - */ - public Builder mergeRotationSpeed(emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion value) { - if (rotationSpeedBuilder_ == null) { - if (rotateParamsCase_ == 22 && - rotateParams_ != emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.getDefaultInstance()) { - rotateParams_ = emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.newBuilder((emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion) rotateParams_) - .mergeFrom(value).buildPartial(); - } else { - rotateParams_ = value; - } - onChanged(); - } else { - if (rotateParamsCase_ == 22) { - rotationSpeedBuilder_.mergeFrom(value); - } - rotationSpeedBuilder_.setMessage(value); - } - rotateParamsCase_ = 22; - return this; - } - /** - * <code>.MathQuaternion rotationSpeed = 22;</code> - */ - public Builder clearRotationSpeed() { - if (rotationSpeedBuilder_ == null) { - if (rotateParamsCase_ == 22) { - rotateParamsCase_ = 0; - rotateParams_ = null; - onChanged(); - } - } else { - if (rotateParamsCase_ == 22) { - rotateParamsCase_ = 0; - rotateParams_ = null; - } - rotationSpeedBuilder_.clear(); - } - return this; - } - /** - * <code>.MathQuaternion rotationSpeed = 22;</code> - */ - public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder getRotationSpeedBuilder() { - return getRotationSpeedFieldBuilder().getBuilder(); - } - /** - * <code>.MathQuaternion rotationSpeed = 22;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder getRotationSpeedOrBuilder() { - if ((rotateParamsCase_ == 22) && (rotationSpeedBuilder_ != null)) { - return rotationSpeedBuilder_.getMessageOrBuilder(); - } else { - if (rotateParamsCase_ == 22) { - return (emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion) rotateParams_; - } - return emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.getDefaultInstance(); - } - } - /** - * <code>.MathQuaternion rotationSpeed = 22;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion, emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder, emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder> - getRotationSpeedFieldBuilder() { - if (rotationSpeedBuilder_ == null) { - if (!(rotateParamsCase_ == 22)) { - rotateParams_ = emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.getDefaultInstance(); - } - rotationSpeedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion, emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder, emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder>( - (emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion) rotateParams_, - getParentForChildren(), - isClean()); - rotateParams_ = null; - } - rotateParamsCase_ = 22; - onChanged();; - return rotationSpeedBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion, emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder, emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder> axisSpeedBuilder_; - /** - * <code>.MathQuaternion axisSpeed = 23;</code> - * @return Whether the axisSpeed field is set. - */ - @java.lang.Override - public boolean hasAxisSpeed() { - return rotateParamsCase_ == 23; - } - /** - * <code>.MathQuaternion axisSpeed = 23;</code> - * @return The axisSpeed. - */ - @java.lang.Override - public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion getAxisSpeed() { - if (axisSpeedBuilder_ == null) { - if (rotateParamsCase_ == 23) { - return (emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion) rotateParams_; - } - return emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.getDefaultInstance(); - } else { - if (rotateParamsCase_ == 23) { - return axisSpeedBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.getDefaultInstance(); - } - } - /** - * <code>.MathQuaternion axisSpeed = 23;</code> - */ - public Builder setAxisSpeed(emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion value) { - if (axisSpeedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rotateParams_ = value; - onChanged(); - } else { - axisSpeedBuilder_.setMessage(value); - } - rotateParamsCase_ = 23; - return this; - } - /** - * <code>.MathQuaternion axisSpeed = 23;</code> - */ - public Builder setAxisSpeed( - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder builderForValue) { - if (axisSpeedBuilder_ == null) { - rotateParams_ = builderForValue.build(); - onChanged(); - } else { - axisSpeedBuilder_.setMessage(builderForValue.build()); - } - rotateParamsCase_ = 23; - return this; - } - /** - * <code>.MathQuaternion axisSpeed = 23;</code> - */ - public Builder mergeAxisSpeed(emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion value) { - if (axisSpeedBuilder_ == null) { - if (rotateParamsCase_ == 23 && - rotateParams_ != emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.getDefaultInstance()) { - rotateParams_ = emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.newBuilder((emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion) rotateParams_) - .mergeFrom(value).buildPartial(); - } else { - rotateParams_ = value; - } - onChanged(); - } else { - if (rotateParamsCase_ == 23) { - axisSpeedBuilder_.mergeFrom(value); - } - axisSpeedBuilder_.setMessage(value); - } - rotateParamsCase_ = 23; - return this; - } - /** - * <code>.MathQuaternion axisSpeed = 23;</code> - */ - public Builder clearAxisSpeed() { - if (axisSpeedBuilder_ == null) { - if (rotateParamsCase_ == 23) { - rotateParamsCase_ = 0; - rotateParams_ = null; - onChanged(); - } - } else { - if (rotateParamsCase_ == 23) { - rotateParamsCase_ = 0; - rotateParams_ = null; - } - axisSpeedBuilder_.clear(); - } - return this; - } - /** - * <code>.MathQuaternion axisSpeed = 23;</code> - */ - public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder getAxisSpeedBuilder() { - return getAxisSpeedFieldBuilder().getBuilder(); - } - /** - * <code>.MathQuaternion axisSpeed = 23;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder getAxisSpeedOrBuilder() { - if ((rotateParamsCase_ == 23) && (axisSpeedBuilder_ != null)) { - return axisSpeedBuilder_.getMessageOrBuilder(); - } else { - if (rotateParamsCase_ == 23) { - return (emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion) rotateParams_; - } - return emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.getDefaultInstance(); - } - } - /** - * <code>.MathQuaternion axisSpeed = 23;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion, emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder, emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder> - getAxisSpeedFieldBuilder() { - if (axisSpeedBuilder_ == null) { - if (!(rotateParamsCase_ == 23)) { - rotateParams_ = emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.getDefaultInstance(); - } - axisSpeedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion, emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder, emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder>( - (emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion) rotateParams_, - getParentForChildren(), - isClean()); - rotateParams_ = null; - } - rotateParamsCase_ = 23; - onChanged();; - return axisSpeedBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:RoutePoint) - } - - // @@protoc_insertion_point(class_scope:RoutePoint) - private static final emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint(); - } - - public static emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<RoutePoint> - PARSER = new com.google.protobuf.AbstractParser<RoutePoint>() { - @java.lang.Override - public RoutePoint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RoutePoint(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<RoutePoint> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<RoutePoint> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_RoutePoint_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_RoutePoint_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020RoutePoint.proto\032\024MathQuaternion.proto" + - "\032\014Vector.proto\"\326\001\n\nRoutePoint\022\031\n\010positio" + - "n\030\001 \001(\0132\007.Vector\022\022\n\010velocity\030\013 \001(\002H\000\022\016\n\004" + - "time\030\014 \001(\002H\000\022\033\n\010rotation\030\025 \001(\0132\007.VectorH" + - "\001\022(\n\rrotationSpeed\030\026 \001(\0132\017.MathQuaternio" + - "nH\001\022$\n\taxisSpeed\030\027 \001(\0132\017.MathQuaternionH" + - "\001B\014\n\nmoveParamsB\016\n\014rotateParamsB\033\n\031emu.g" + - "rasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.MathQuaternionOuterClass.getDescriptor(), - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(), - }); - internal_static_RoutePoint_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_RoutePoint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_RoutePoint_descriptor, - new java.lang.String[] { "Position", "Velocity", "Time", "Rotation", "RotationSpeed", "AxisSpeed", "MoveParams", "RotateParams", }); - emu.grasscutter.net.proto.MathQuaternionOuterClass.getDescriptor(); - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SceneAreaWeatherNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SceneAreaWeatherNotifyOuterClass.java deleted file mode 100644 index 09be2bb3d..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SceneAreaWeatherNotifyOuterClass.java +++ /dev/null @@ -1,1084 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SceneAreaWeatherNotify.proto - -package emu.grasscutter.net.proto; - -public final class SceneAreaWeatherNotifyOuterClass { - private SceneAreaWeatherNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SceneAreaWeatherNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:SceneAreaWeatherNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 weatherGadgetId = 1;</code> - * @return The weatherGadgetId. - */ - int getWeatherGadgetId(); - - /** - * <code>map<uint32, string> weatherValueMap = 2;</code> - */ - int getWeatherValueMapCount(); - /** - * <code>map<uint32, string> weatherValueMap = 2;</code> - */ - boolean containsWeatherValueMap( - int key); - /** - * Use {@link #getWeatherValueMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.String> - getWeatherValueMap(); - /** - * <code>map<uint32, string> weatherValueMap = 2;</code> - */ - java.util.Map<java.lang.Integer, java.lang.String> - getWeatherValueMapMap(); - /** - * <code>map<uint32, string> weatherValueMap = 2;</code> - */ - - java.lang.String getWeatherValueMapOrDefault( - int key, - java.lang.String defaultValue); - /** - * <code>map<uint32, string> weatherValueMap = 2;</code> - */ - - java.lang.String getWeatherValueMapOrThrow( - int key); - - /** - * <code>uint32 weatherAreaId = 3;</code> - * @return The weatherAreaId. - */ - int getWeatherAreaId(); - - /** - * <code>uint32 climateType = 4;</code> - * @return The climateType. - */ - int getClimateType(); - - /** - * <code>float transDuration = 5;</code> - * @return The transDuration. - */ - float getTransDuration(); - } - /** - * Protobuf type {@code SceneAreaWeatherNotify} - */ - public static final class SceneAreaWeatherNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SceneAreaWeatherNotify) - SceneAreaWeatherNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use SceneAreaWeatherNotify.newBuilder() to construct. - private SceneAreaWeatherNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SceneAreaWeatherNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SceneAreaWeatherNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SceneAreaWeatherNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - weatherGadgetId_ = input.readUInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - weatherValueMap_ = com.google.protobuf.MapField.newMapField( - WeatherValueMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.String> - weatherValueMap__ = input.readMessage( - WeatherValueMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - weatherValueMap_.getMutableMap().put( - weatherValueMap__.getKey(), weatherValueMap__.getValue()); - break; - } - case 24: { - - weatherAreaId_ = input.readUInt32(); - break; - } - case 32: { - - climateType_ = input.readUInt32(); - break; - } - case 45: { - - transDuration_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.internal_static_SceneAreaWeatherNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetWeatherValueMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.internal_static_SceneAreaWeatherNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify.class, emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify.Builder.class); - } - - public static final int WEATHERGADGETID_FIELD_NUMBER = 1; - private int weatherGadgetId_; - /** - * <code>uint32 weatherGadgetId = 1;</code> - * @return The weatherGadgetId. - */ - @java.lang.Override - public int getWeatherGadgetId() { - return weatherGadgetId_; - } - - public static final int WEATHERVALUEMAP_FIELD_NUMBER = 2; - private static final class WeatherValueMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.String>newDefaultInstance( - emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.internal_static_SceneAreaWeatherNotify_WeatherValueMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.String> weatherValueMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.String> - internalGetWeatherValueMap() { - if (weatherValueMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - WeatherValueMapDefaultEntryHolder.defaultEntry); - } - return weatherValueMap_; - } - - public int getWeatherValueMapCount() { - return internalGetWeatherValueMap().getMap().size(); - } - /** - * <code>map<uint32, string> weatherValueMap = 2;</code> - */ - - @java.lang.Override - public boolean containsWeatherValueMap( - int key) { - - return internalGetWeatherValueMap().getMap().containsKey(key); - } - /** - * Use {@link #getWeatherValueMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.String> getWeatherValueMap() { - return getWeatherValueMapMap(); - } - /** - * <code>map<uint32, string> weatherValueMap = 2;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.String> getWeatherValueMapMap() { - return internalGetWeatherValueMap().getMap(); - } - /** - * <code>map<uint32, string> weatherValueMap = 2;</code> - */ - @java.lang.Override - - public java.lang.String getWeatherValueMapOrDefault( - int key, - java.lang.String defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.String> map = - internalGetWeatherValueMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, string> weatherValueMap = 2;</code> - */ - @java.lang.Override - - public java.lang.String getWeatherValueMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.String> map = - internalGetWeatherValueMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int WEATHERAREAID_FIELD_NUMBER = 3; - private int weatherAreaId_; - /** - * <code>uint32 weatherAreaId = 3;</code> - * @return The weatherAreaId. - */ - @java.lang.Override - public int getWeatherAreaId() { - return weatherAreaId_; - } - - public static final int CLIMATETYPE_FIELD_NUMBER = 4; - private int climateType_; - /** - * <code>uint32 climateType = 4;</code> - * @return The climateType. - */ - @java.lang.Override - public int getClimateType() { - return climateType_; - } - - public static final int TRANSDURATION_FIELD_NUMBER = 5; - private float transDuration_; - /** - * <code>float transDuration = 5;</code> - * @return The transDuration. - */ - @java.lang.Override - public float getTransDuration() { - return transDuration_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (weatherGadgetId_ != 0) { - output.writeUInt32(1, weatherGadgetId_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetWeatherValueMap(), - WeatherValueMapDefaultEntryHolder.defaultEntry, - 2); - if (weatherAreaId_ != 0) { - output.writeUInt32(3, weatherAreaId_); - } - if (climateType_ != 0) { - output.writeUInt32(4, climateType_); - } - if (transDuration_ != 0F) { - output.writeFloat(5, transDuration_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (weatherGadgetId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, weatherGadgetId_); - } - for (java.util.Map.Entry<java.lang.Integer, java.lang.String> entry - : internalGetWeatherValueMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.String> - weatherValueMap__ = WeatherValueMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, weatherValueMap__); - } - if (weatherAreaId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, weatherAreaId_); - } - if (climateType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, climateType_); - } - if (transDuration_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, transDuration_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify other = (emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify) obj; - - if (getWeatherGadgetId() - != other.getWeatherGadgetId()) return false; - if (!internalGetWeatherValueMap().equals( - other.internalGetWeatherValueMap())) return false; - if (getWeatherAreaId() - != other.getWeatherAreaId()) return false; - if (getClimateType() - != other.getClimateType()) return false; - if (java.lang.Float.floatToIntBits(getTransDuration()) - != java.lang.Float.floatToIntBits( - other.getTransDuration())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + WEATHERGADGETID_FIELD_NUMBER; - hash = (53 * hash) + getWeatherGadgetId(); - if (!internalGetWeatherValueMap().getMap().isEmpty()) { - hash = (37 * hash) + WEATHERVALUEMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetWeatherValueMap().hashCode(); - } - hash = (37 * hash) + WEATHERAREAID_FIELD_NUMBER; - hash = (53 * hash) + getWeatherAreaId(); - hash = (37 * hash) + CLIMATETYPE_FIELD_NUMBER; - hash = (53 * hash) + getClimateType(); - hash = (37 * hash) + TRANSDURATION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getTransDuration()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SceneAreaWeatherNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SceneAreaWeatherNotify) - emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.internal_static_SceneAreaWeatherNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetWeatherValueMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutableWeatherValueMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.internal_static_SceneAreaWeatherNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify.class, emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - weatherGadgetId_ = 0; - - internalGetMutableWeatherValueMap().clear(); - weatherAreaId_ = 0; - - climateType_ = 0; - - transDuration_ = 0F; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.internal_static_SceneAreaWeatherNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify build() { - emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify buildPartial() { - emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify result = new emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify(this); - int from_bitField0_ = bitField0_; - result.weatherGadgetId_ = weatherGadgetId_; - result.weatherValueMap_ = internalGetWeatherValueMap(); - result.weatherValueMap_.makeImmutable(); - result.weatherAreaId_ = weatherAreaId_; - result.climateType_ = climateType_; - result.transDuration_ = transDuration_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify) { - return mergeFrom((emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify other) { - if (other == emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify.getDefaultInstance()) return this; - if (other.getWeatherGadgetId() != 0) { - setWeatherGadgetId(other.getWeatherGadgetId()); - } - internalGetMutableWeatherValueMap().mergeFrom( - other.internalGetWeatherValueMap()); - if (other.getWeatherAreaId() != 0) { - setWeatherAreaId(other.getWeatherAreaId()); - } - if (other.getClimateType() != 0) { - setClimateType(other.getClimateType()); - } - if (other.getTransDuration() != 0F) { - setTransDuration(other.getTransDuration()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int weatherGadgetId_ ; - /** - * <code>uint32 weatherGadgetId = 1;</code> - * @return The weatherGadgetId. - */ - @java.lang.Override - public int getWeatherGadgetId() { - return weatherGadgetId_; - } - /** - * <code>uint32 weatherGadgetId = 1;</code> - * @param value The weatherGadgetId to set. - * @return This builder for chaining. - */ - public Builder setWeatherGadgetId(int value) { - - weatherGadgetId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 weatherGadgetId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearWeatherGadgetId() { - - weatherGadgetId_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.String> weatherValueMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.String> - internalGetWeatherValueMap() { - if (weatherValueMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - WeatherValueMapDefaultEntryHolder.defaultEntry); - } - return weatherValueMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.String> - internalGetMutableWeatherValueMap() { - onChanged();; - if (weatherValueMap_ == null) { - weatherValueMap_ = com.google.protobuf.MapField.newMapField( - WeatherValueMapDefaultEntryHolder.defaultEntry); - } - if (!weatherValueMap_.isMutable()) { - weatherValueMap_ = weatherValueMap_.copy(); - } - return weatherValueMap_; - } - - public int getWeatherValueMapCount() { - return internalGetWeatherValueMap().getMap().size(); - } - /** - * <code>map<uint32, string> weatherValueMap = 2;</code> - */ - - @java.lang.Override - public boolean containsWeatherValueMap( - int key) { - - return internalGetWeatherValueMap().getMap().containsKey(key); - } - /** - * Use {@link #getWeatherValueMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.String> getWeatherValueMap() { - return getWeatherValueMapMap(); - } - /** - * <code>map<uint32, string> weatherValueMap = 2;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.String> getWeatherValueMapMap() { - return internalGetWeatherValueMap().getMap(); - } - /** - * <code>map<uint32, string> weatherValueMap = 2;</code> - */ - @java.lang.Override - - public java.lang.String getWeatherValueMapOrDefault( - int key, - java.lang.String defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.String> map = - internalGetWeatherValueMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, string> weatherValueMap = 2;</code> - */ - @java.lang.Override - - public java.lang.String getWeatherValueMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.String> map = - internalGetWeatherValueMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearWeatherValueMap() { - internalGetMutableWeatherValueMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, string> weatherValueMap = 2;</code> - */ - - public Builder removeWeatherValueMap( - int key) { - - internalGetMutableWeatherValueMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.String> - getMutableWeatherValueMap() { - return internalGetMutableWeatherValueMap().getMutableMap(); - } - /** - * <code>map<uint32, string> weatherValueMap = 2;</code> - */ - public Builder putWeatherValueMap( - int key, - java.lang.String value) { - - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableWeatherValueMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, string> weatherValueMap = 2;</code> - */ - - public Builder putAllWeatherValueMap( - java.util.Map<java.lang.Integer, java.lang.String> values) { - internalGetMutableWeatherValueMap().getMutableMap() - .putAll(values); - return this; - } - - private int weatherAreaId_ ; - /** - * <code>uint32 weatherAreaId = 3;</code> - * @return The weatherAreaId. - */ - @java.lang.Override - public int getWeatherAreaId() { - return weatherAreaId_; - } - /** - * <code>uint32 weatherAreaId = 3;</code> - * @param value The weatherAreaId to set. - * @return This builder for chaining. - */ - public Builder setWeatherAreaId(int value) { - - weatherAreaId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 weatherAreaId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearWeatherAreaId() { - - weatherAreaId_ = 0; - onChanged(); - return this; - } - - private int climateType_ ; - /** - * <code>uint32 climateType = 4;</code> - * @return The climateType. - */ - @java.lang.Override - public int getClimateType() { - return climateType_; - } - /** - * <code>uint32 climateType = 4;</code> - * @param value The climateType to set. - * @return This builder for chaining. - */ - public Builder setClimateType(int value) { - - climateType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 climateType = 4;</code> - * @return This builder for chaining. - */ - public Builder clearClimateType() { - - climateType_ = 0; - onChanged(); - return this; - } - - private float transDuration_ ; - /** - * <code>float transDuration = 5;</code> - * @return The transDuration. - */ - @java.lang.Override - public float getTransDuration() { - return transDuration_; - } - /** - * <code>float transDuration = 5;</code> - * @param value The transDuration to set. - * @return This builder for chaining. - */ - public Builder setTransDuration(float value) { - - transDuration_ = value; - onChanged(); - return this; - } - /** - * <code>float transDuration = 5;</code> - * @return This builder for chaining. - */ - public Builder clearTransDuration() { - - transDuration_ = 0F; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SceneAreaWeatherNotify) - } - - // @@protoc_insertion_point(class_scope:SceneAreaWeatherNotify) - private static final emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify(); - } - - public static emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SceneAreaWeatherNotify> - PARSER = new com.google.protobuf.AbstractParser<SceneAreaWeatherNotify>() { - @java.lang.Override - public SceneAreaWeatherNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SceneAreaWeatherNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SceneAreaWeatherNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SceneAreaWeatherNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneAreaWeatherNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneAreaWeatherNotify_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneAreaWeatherNotify_WeatherValueMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneAreaWeatherNotify_WeatherValueMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034SceneAreaWeatherNotify.proto\"\363\001\n\026Scene" + - "AreaWeatherNotify\022\027\n\017weatherGadgetId\030\001 \001" + - "(\r\022E\n\017weatherValueMap\030\002 \003(\0132,.SceneAreaW" + - "eatherNotify.WeatherValueMapEntry\022\025\n\rwea" + - "therAreaId\030\003 \001(\r\022\023\n\013climateType\030\004 \001(\r\022\025\n" + - "\rtransDuration\030\005 \001(\002\0326\n\024WeatherValueMapE" + - "ntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\t:\0028\001B\033\n\031" + - "emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SceneAreaWeatherNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SceneAreaWeatherNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneAreaWeatherNotify_descriptor, - new java.lang.String[] { "WeatherGadgetId", "WeatherValueMap", "WeatherAreaId", "ClimateType", "TransDuration", }); - internal_static_SceneAreaWeatherNotify_WeatherValueMapEntry_descriptor = - internal_static_SceneAreaWeatherNotify_descriptor.getNestedTypes().get(0); - internal_static_SceneAreaWeatherNotify_WeatherValueMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneAreaWeatherNotify_WeatherValueMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SceneAvatarInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SceneAvatarInfoOuterClass.java deleted file mode 100644 index 7315f97f9..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SceneAvatarInfoOuterClass.java +++ /dev/null @@ -1,3472 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SceneAvatarInfo.proto - -package emu.grasscutter.net.proto; - -public final class SceneAvatarInfoOuterClass { - private SceneAvatarInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SceneAvatarInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:SceneAvatarInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 playerId = 1;</code> - * @return The playerId. - */ - int getPlayerId(); - - /** - * <code>uint32 avatarId = 2;</code> - * @return The avatarId. - */ - int getAvatarId(); - - /** - * <code>uint64 guid = 3;</code> - * @return The guid. - */ - long getGuid(); - - /** - * <code>uint32 peerId = 4;</code> - * @return The peerId. - */ - int getPeerId(); - - /** - * <code>repeated uint32 equipIdList = 5;</code> - * @return A list containing the equipIdList. - */ - java.util.List<java.lang.Integer> getEquipIdListList(); - /** - * <code>repeated uint32 equipIdList = 5;</code> - * @return The count of equipIdList. - */ - int getEquipIdListCount(); - /** - * <code>repeated uint32 equipIdList = 5;</code> - * @param index The index of the element to return. - * @return The equipIdList at the given index. - */ - int getEquipIdList(int index); - - /** - * <code>uint32 skillDepotId = 6;</code> - * @return The skillDepotId. - */ - int getSkillDepotId(); - - /** - * <code>repeated uint32 talentIdList = 7;</code> - * @return A list containing the talentIdList. - */ - java.util.List<java.lang.Integer> getTalentIdListList(); - /** - * <code>repeated uint32 talentIdList = 7;</code> - * @return The count of talentIdList. - */ - int getTalentIdListCount(); - /** - * <code>repeated uint32 talentIdList = 7;</code> - * @param index The index of the element to return. - * @return The talentIdList at the given index. - */ - int getTalentIdList(int index); - - /** - * <code>.SceneWeaponInfo weapon = 8;</code> - * @return Whether the weapon field is set. - */ - boolean hasWeapon(); - /** - * <code>.SceneWeaponInfo weapon = 8;</code> - * @return The weapon. - */ - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo getWeapon(); - /** - * <code>.SceneWeaponInfo weapon = 8;</code> - */ - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfoOrBuilder getWeaponOrBuilder(); - - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - java.util.List<emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo> - getReliquaryListList(); - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo getReliquaryList(int index); - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - int getReliquaryListCount(); - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfoOrBuilder> - getReliquaryListOrBuilderList(); - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfoOrBuilder getReliquaryListOrBuilder( - int index); - - /** - * <code>uint32 coreProudSkillLevel = 11;</code> - * @return The coreProudSkillLevel. - */ - int getCoreProudSkillLevel(); - - /** - * <code>repeated uint32 inherentProudSkillList = 12;</code> - * @return A list containing the inherentProudSkillList. - */ - java.util.List<java.lang.Integer> getInherentProudSkillListList(); - /** - * <code>repeated uint32 inherentProudSkillList = 12;</code> - * @return The count of inherentProudSkillList. - */ - int getInherentProudSkillListCount(); - /** - * <code>repeated uint32 inherentProudSkillList = 12;</code> - * @param index The index of the element to return. - * @return The inherentProudSkillList at the given index. - */ - int getInherentProudSkillList(int index); - - /** - * <code>map<uint32, uint32> skillLevelMap = 13;</code> - */ - int getSkillLevelMapCount(); - /** - * <code>map<uint32, uint32> skillLevelMap = 13;</code> - */ - boolean containsSkillLevelMap( - int key); - /** - * Use {@link #getSkillLevelMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Integer> - getSkillLevelMap(); - /** - * <code>map<uint32, uint32> skillLevelMap = 13;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Integer> - getSkillLevelMapMap(); - /** - * <code>map<uint32, uint32> skillLevelMap = 13;</code> - */ - - int getSkillLevelMapOrDefault( - int key, - int defaultValue); - /** - * <code>map<uint32, uint32> skillLevelMap = 13;</code> - */ - - int getSkillLevelMapOrThrow( - int key); - - /** - * <code>map<uint32, uint32> proudSkillExtraLevelMap = 14;</code> - */ - int getProudSkillExtraLevelMapCount(); - /** - * <code>map<uint32, uint32> proudSkillExtraLevelMap = 14;</code> - */ - boolean containsProudSkillExtraLevelMap( - int key); - /** - * Use {@link #getProudSkillExtraLevelMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Integer> - getProudSkillExtraLevelMap(); - /** - * <code>map<uint32, uint32> proudSkillExtraLevelMap = 14;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Integer> - getProudSkillExtraLevelMapMap(); - /** - * <code>map<uint32, uint32> proudSkillExtraLevelMap = 14;</code> - */ - - int getProudSkillExtraLevelMapOrDefault( - int key, - int defaultValue); - /** - * <code>map<uint32, uint32> proudSkillExtraLevelMap = 14;</code> - */ - - int getProudSkillExtraLevelMapOrThrow( - int key); - - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - java.util.List<emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff> - getServerBuffListList(); - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff getServerBuffList(int index); - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - int getServerBuffListCount(); - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder> - getServerBuffListOrBuilderList(); - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder getServerBuffListOrBuilder( - int index); - - /** - * <code>repeated uint32 teamResonanceList = 16;</code> - * @return A list containing the teamResonanceList. - */ - java.util.List<java.lang.Integer> getTeamResonanceListList(); - /** - * <code>repeated uint32 teamResonanceList = 16;</code> - * @return The count of teamResonanceList. - */ - int getTeamResonanceListCount(); - /** - * <code>repeated uint32 teamResonanceList = 16;</code> - * @param index The index of the element to return. - * @return The teamResonanceList at the given index. - */ - int getTeamResonanceList(int index); - - /** - * <code>uint32 wearingFlycloakId = 17;</code> - * @return The wearingFlycloakId. - */ - int getWearingFlycloakId(); - - /** - * <code>uint32 bornTime = 18;</code> - * @return The bornTime. - */ - int getBornTime(); - - /** - * <code>uint32 costumeId = 19;</code> - * @return The costumeId. - */ - int getCostumeId(); - } - /** - * Protobuf type {@code SceneAvatarInfo} - */ - public static final class SceneAvatarInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SceneAvatarInfo) - SceneAvatarInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use SceneAvatarInfo.newBuilder() to construct. - private SceneAvatarInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SceneAvatarInfo() { - equipIdList_ = emptyIntList(); - talentIdList_ = emptyIntList(); - reliquaryList_ = java.util.Collections.emptyList(); - inherentProudSkillList_ = emptyIntList(); - serverBuffList_ = java.util.Collections.emptyList(); - teamResonanceList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SceneAvatarInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SceneAvatarInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - playerId_ = input.readUInt32(); - break; - } - case 16: { - - avatarId_ = input.readUInt32(); - break; - } - case 24: { - - guid_ = input.readUInt64(); - break; - } - case 32: { - - peerId_ = input.readUInt32(); - break; - } - case 40: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - equipIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - equipIdList_.addInt(input.readUInt32()); - break; - } - case 42: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - equipIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - equipIdList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 48: { - - skillDepotId_ = input.readUInt32(); - break; - } - case 56: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - talentIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - talentIdList_.addInt(input.readUInt32()); - break; - } - case 58: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - talentIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - talentIdList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 66: { - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.Builder subBuilder = null; - if (weapon_ != null) { - subBuilder = weapon_.toBuilder(); - } - weapon_ = input.readMessage(emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(weapon_); - weapon_ = subBuilder.buildPartial(); - } - - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - reliquaryList_ = new java.util.ArrayList<emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo>(); - mutable_bitField0_ |= 0x00000004; - } - reliquaryList_.add( - input.readMessage(emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.parser(), extensionRegistry)); - break; - } - case 88: { - - coreProudSkillLevel_ = input.readUInt32(); - break; - } - case 96: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - inherentProudSkillList_ = newIntList(); - mutable_bitField0_ |= 0x00000008; - } - inherentProudSkillList_.addInt(input.readUInt32()); - break; - } - case 98: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000008) != 0) && input.getBytesUntilLimit() > 0) { - inherentProudSkillList_ = newIntList(); - mutable_bitField0_ |= 0x00000008; - } - while (input.getBytesUntilLimit() > 0) { - inherentProudSkillList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 106: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - skillLevelMap_ = com.google.protobuf.MapField.newMapField( - SkillLevelMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - skillLevelMap__ = input.readMessage( - SkillLevelMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - skillLevelMap_.getMutableMap().put( - skillLevelMap__.getKey(), skillLevelMap__.getValue()); - break; - } - case 114: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - proudSkillExtraLevelMap_ = com.google.protobuf.MapField.newMapField( - ProudSkillExtraLevelMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000020; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - proudSkillExtraLevelMap__ = input.readMessage( - ProudSkillExtraLevelMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - proudSkillExtraLevelMap_.getMutableMap().put( - proudSkillExtraLevelMap__.getKey(), proudSkillExtraLevelMap__.getValue()); - break; - } - case 122: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - serverBuffList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff>(); - mutable_bitField0_ |= 0x00000040; - } - serverBuffList_.add( - input.readMessage(emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.parser(), extensionRegistry)); - break; - } - case 128: { - if (!((mutable_bitField0_ & 0x00000080) != 0)) { - teamResonanceList_ = newIntList(); - mutable_bitField0_ |= 0x00000080; - } - teamResonanceList_.addInt(input.readUInt32()); - break; - } - case 130: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000080) != 0) && input.getBytesUntilLimit() > 0) { - teamResonanceList_ = newIntList(); - mutable_bitField0_ |= 0x00000080; - } - while (input.getBytesUntilLimit() > 0) { - teamResonanceList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 136: { - - wearingFlycloakId_ = input.readUInt32(); - break; - } - case 144: { - - bornTime_ = input.readUInt32(); - break; - } - case 152: { - - costumeId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - equipIdList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - talentIdList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - reliquaryList_ = java.util.Collections.unmodifiableList(reliquaryList_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - inherentProudSkillList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000040) != 0)) { - serverBuffList_ = java.util.Collections.unmodifiableList(serverBuffList_); - } - if (((mutable_bitField0_ & 0x00000080) != 0)) { - teamResonanceList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.internal_static_SceneAvatarInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 13: - return internalGetSkillLevelMap(); - case 14: - return internalGetProudSkillExtraLevelMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.internal_static_SceneAvatarInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.class, emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.Builder.class); - } - - public static final int PLAYERID_FIELD_NUMBER = 1; - private int playerId_; - /** - * <code>uint32 playerId = 1;</code> - * @return The playerId. - */ - @java.lang.Override - public int getPlayerId() { - return playerId_; - } - - public static final int AVATARID_FIELD_NUMBER = 2; - private int avatarId_; - /** - * <code>uint32 avatarId = 2;</code> - * @return The avatarId. - */ - @java.lang.Override - public int getAvatarId() { - return avatarId_; - } - - public static final int GUID_FIELD_NUMBER = 3; - private long guid_; - /** - * <code>uint64 guid = 3;</code> - * @return The guid. - */ - @java.lang.Override - public long getGuid() { - return guid_; - } - - public static final int PEERID_FIELD_NUMBER = 4; - private int peerId_; - /** - * <code>uint32 peerId = 4;</code> - * @return The peerId. - */ - @java.lang.Override - public int getPeerId() { - return peerId_; - } - - public static final int EQUIPIDLIST_FIELD_NUMBER = 5; - private com.google.protobuf.Internal.IntList equipIdList_; - /** - * <code>repeated uint32 equipIdList = 5;</code> - * @return A list containing the equipIdList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getEquipIdListList() { - return equipIdList_; - } - /** - * <code>repeated uint32 equipIdList = 5;</code> - * @return The count of equipIdList. - */ - public int getEquipIdListCount() { - return equipIdList_.size(); - } - /** - * <code>repeated uint32 equipIdList = 5;</code> - * @param index The index of the element to return. - * @return The equipIdList at the given index. - */ - public int getEquipIdList(int index) { - return equipIdList_.getInt(index); - } - private int equipIdListMemoizedSerializedSize = -1; - - public static final int SKILLDEPOTID_FIELD_NUMBER = 6; - private int skillDepotId_; - /** - * <code>uint32 skillDepotId = 6;</code> - * @return The skillDepotId. - */ - @java.lang.Override - public int getSkillDepotId() { - return skillDepotId_; - } - - public static final int TALENTIDLIST_FIELD_NUMBER = 7; - private com.google.protobuf.Internal.IntList talentIdList_; - /** - * <code>repeated uint32 talentIdList = 7;</code> - * @return A list containing the talentIdList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getTalentIdListList() { - return talentIdList_; - } - /** - * <code>repeated uint32 talentIdList = 7;</code> - * @return The count of talentIdList. - */ - public int getTalentIdListCount() { - return talentIdList_.size(); - } - /** - * <code>repeated uint32 talentIdList = 7;</code> - * @param index The index of the element to return. - * @return The talentIdList at the given index. - */ - public int getTalentIdList(int index) { - return talentIdList_.getInt(index); - } - private int talentIdListMemoizedSerializedSize = -1; - - public static final int WEAPON_FIELD_NUMBER = 8; - private emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo weapon_; - /** - * <code>.SceneWeaponInfo weapon = 8;</code> - * @return Whether the weapon field is set. - */ - @java.lang.Override - public boolean hasWeapon() { - return weapon_ != null; - } - /** - * <code>.SceneWeaponInfo weapon = 8;</code> - * @return The weapon. - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo getWeapon() { - return weapon_ == null ? emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.getDefaultInstance() : weapon_; - } - /** - * <code>.SceneWeaponInfo weapon = 8;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfoOrBuilder getWeaponOrBuilder() { - return getWeapon(); - } - - public static final int RELIQUARYLIST_FIELD_NUMBER = 9; - private java.util.List<emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo> reliquaryList_; - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo> getReliquaryListList() { - return reliquaryList_; - } - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfoOrBuilder> - getReliquaryListOrBuilderList() { - return reliquaryList_; - } - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - @java.lang.Override - public int getReliquaryListCount() { - return reliquaryList_.size(); - } - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo getReliquaryList(int index) { - return reliquaryList_.get(index); - } - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfoOrBuilder getReliquaryListOrBuilder( - int index) { - return reliquaryList_.get(index); - } - - public static final int COREPROUDSKILLLEVEL_FIELD_NUMBER = 11; - private int coreProudSkillLevel_; - /** - * <code>uint32 coreProudSkillLevel = 11;</code> - * @return The coreProudSkillLevel. - */ - @java.lang.Override - public int getCoreProudSkillLevel() { - return coreProudSkillLevel_; - } - - public static final int INHERENTPROUDSKILLLIST_FIELD_NUMBER = 12; - private com.google.protobuf.Internal.IntList inherentProudSkillList_; - /** - * <code>repeated uint32 inherentProudSkillList = 12;</code> - * @return A list containing the inherentProudSkillList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getInherentProudSkillListList() { - return inherentProudSkillList_; - } - /** - * <code>repeated uint32 inherentProudSkillList = 12;</code> - * @return The count of inherentProudSkillList. - */ - public int getInherentProudSkillListCount() { - return inherentProudSkillList_.size(); - } - /** - * <code>repeated uint32 inherentProudSkillList = 12;</code> - * @param index The index of the element to return. - * @return The inherentProudSkillList at the given index. - */ - public int getInherentProudSkillList(int index) { - return inherentProudSkillList_.getInt(index); - } - private int inherentProudSkillListMemoizedSerializedSize = -1; - - public static final int SKILLLEVELMAP_FIELD_NUMBER = 13; - private static final class SkillLevelMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Integer>newDefaultInstance( - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.internal_static_SceneAvatarInfo_SkillLevelMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> skillLevelMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetSkillLevelMap() { - if (skillLevelMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SkillLevelMapDefaultEntryHolder.defaultEntry); - } - return skillLevelMap_; - } - - public int getSkillLevelMapCount() { - return internalGetSkillLevelMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> skillLevelMap = 13;</code> - */ - - @java.lang.Override - public boolean containsSkillLevelMap( - int key) { - - return internalGetSkillLevelMap().getMap().containsKey(key); - } - /** - * Use {@link #getSkillLevelMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillLevelMap() { - return getSkillLevelMapMap(); - } - /** - * <code>map<uint32, uint32> skillLevelMap = 13;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillLevelMapMap() { - return internalGetSkillLevelMap().getMap(); - } - /** - * <code>map<uint32, uint32> skillLevelMap = 13;</code> - */ - @java.lang.Override - - public int getSkillLevelMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkillLevelMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> skillLevelMap = 13;</code> - */ - @java.lang.Override - - public int getSkillLevelMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkillLevelMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int PROUDSKILLEXTRALEVELMAP_FIELD_NUMBER = 14; - private static final class ProudSkillExtraLevelMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Integer>newDefaultInstance( - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.internal_static_SceneAvatarInfo_ProudSkillExtraLevelMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> proudSkillExtraLevelMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetProudSkillExtraLevelMap() { - if (proudSkillExtraLevelMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ProudSkillExtraLevelMapDefaultEntryHolder.defaultEntry); - } - return proudSkillExtraLevelMap_; - } - - public int getProudSkillExtraLevelMapCount() { - return internalGetProudSkillExtraLevelMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> proudSkillExtraLevelMap = 14;</code> - */ - - @java.lang.Override - public boolean containsProudSkillExtraLevelMap( - int key) { - - return internalGetProudSkillExtraLevelMap().getMap().containsKey(key); - } - /** - * Use {@link #getProudSkillExtraLevelMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getProudSkillExtraLevelMap() { - return getProudSkillExtraLevelMapMap(); - } - /** - * <code>map<uint32, uint32> proudSkillExtraLevelMap = 14;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getProudSkillExtraLevelMapMap() { - return internalGetProudSkillExtraLevelMap().getMap(); - } - /** - * <code>map<uint32, uint32> proudSkillExtraLevelMap = 14;</code> - */ - @java.lang.Override - - public int getProudSkillExtraLevelMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetProudSkillExtraLevelMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> proudSkillExtraLevelMap = 14;</code> - */ - @java.lang.Override - - public int getProudSkillExtraLevelMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetProudSkillExtraLevelMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int SERVERBUFFLIST_FIELD_NUMBER = 15; - private java.util.List<emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff> serverBuffList_; - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff> getServerBuffListList() { - return serverBuffList_; - } - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder> - getServerBuffListOrBuilderList() { - return serverBuffList_; - } - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - @java.lang.Override - public int getServerBuffListCount() { - return serverBuffList_.size(); - } - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff getServerBuffList(int index) { - return serverBuffList_.get(index); - } - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder getServerBuffListOrBuilder( - int index) { - return serverBuffList_.get(index); - } - - public static final int TEAMRESONANCELIST_FIELD_NUMBER = 16; - private com.google.protobuf.Internal.IntList teamResonanceList_; - /** - * <code>repeated uint32 teamResonanceList = 16;</code> - * @return A list containing the teamResonanceList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getTeamResonanceListList() { - return teamResonanceList_; - } - /** - * <code>repeated uint32 teamResonanceList = 16;</code> - * @return The count of teamResonanceList. - */ - public int getTeamResonanceListCount() { - return teamResonanceList_.size(); - } - /** - * <code>repeated uint32 teamResonanceList = 16;</code> - * @param index The index of the element to return. - * @return The teamResonanceList at the given index. - */ - public int getTeamResonanceList(int index) { - return teamResonanceList_.getInt(index); - } - private int teamResonanceListMemoizedSerializedSize = -1; - - public static final int WEARINGFLYCLOAKID_FIELD_NUMBER = 17; - private int wearingFlycloakId_; - /** - * <code>uint32 wearingFlycloakId = 17;</code> - * @return The wearingFlycloakId. - */ - @java.lang.Override - public int getWearingFlycloakId() { - return wearingFlycloakId_; - } - - public static final int BORNTIME_FIELD_NUMBER = 18; - private int bornTime_; - /** - * <code>uint32 bornTime = 18;</code> - * @return The bornTime. - */ - @java.lang.Override - public int getBornTime() { - return bornTime_; - } - - public static final int COSTUMEID_FIELD_NUMBER = 19; - private int costumeId_; - /** - * <code>uint32 costumeId = 19;</code> - * @return The costumeId. - */ - @java.lang.Override - public int getCostumeId() { - return costumeId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (playerId_ != 0) { - output.writeUInt32(1, playerId_); - } - if (avatarId_ != 0) { - output.writeUInt32(2, avatarId_); - } - if (guid_ != 0L) { - output.writeUInt64(3, guid_); - } - if (peerId_ != 0) { - output.writeUInt32(4, peerId_); - } - if (getEquipIdListList().size() > 0) { - output.writeUInt32NoTag(42); - output.writeUInt32NoTag(equipIdListMemoizedSerializedSize); - } - for (int i = 0; i < equipIdList_.size(); i++) { - output.writeUInt32NoTag(equipIdList_.getInt(i)); - } - if (skillDepotId_ != 0) { - output.writeUInt32(6, skillDepotId_); - } - if (getTalentIdListList().size() > 0) { - output.writeUInt32NoTag(58); - output.writeUInt32NoTag(talentIdListMemoizedSerializedSize); - } - for (int i = 0; i < talentIdList_.size(); i++) { - output.writeUInt32NoTag(talentIdList_.getInt(i)); - } - if (weapon_ != null) { - output.writeMessage(8, getWeapon()); - } - for (int i = 0; i < reliquaryList_.size(); i++) { - output.writeMessage(9, reliquaryList_.get(i)); - } - if (coreProudSkillLevel_ != 0) { - output.writeUInt32(11, coreProudSkillLevel_); - } - if (getInherentProudSkillListList().size() > 0) { - output.writeUInt32NoTag(98); - output.writeUInt32NoTag(inherentProudSkillListMemoizedSerializedSize); - } - for (int i = 0; i < inherentProudSkillList_.size(); i++) { - output.writeUInt32NoTag(inherentProudSkillList_.getInt(i)); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetSkillLevelMap(), - SkillLevelMapDefaultEntryHolder.defaultEntry, - 13); - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetProudSkillExtraLevelMap(), - ProudSkillExtraLevelMapDefaultEntryHolder.defaultEntry, - 14); - for (int i = 0; i < serverBuffList_.size(); i++) { - output.writeMessage(15, serverBuffList_.get(i)); - } - if (getTeamResonanceListList().size() > 0) { - output.writeUInt32NoTag(130); - output.writeUInt32NoTag(teamResonanceListMemoizedSerializedSize); - } - for (int i = 0; i < teamResonanceList_.size(); i++) { - output.writeUInt32NoTag(teamResonanceList_.getInt(i)); - } - if (wearingFlycloakId_ != 0) { - output.writeUInt32(17, wearingFlycloakId_); - } - if (bornTime_ != 0) { - output.writeUInt32(18, bornTime_); - } - if (costumeId_ != 0) { - output.writeUInt32(19, costumeId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (playerId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, playerId_); - } - if (avatarId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, avatarId_); - } - if (guid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, guid_); - } - if (peerId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, peerId_); - } - { - int dataSize = 0; - for (int i = 0; i < equipIdList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(equipIdList_.getInt(i)); - } - size += dataSize; - if (!getEquipIdListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - equipIdListMemoizedSerializedSize = dataSize; - } - if (skillDepotId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, skillDepotId_); - } - { - int dataSize = 0; - for (int i = 0; i < talentIdList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(talentIdList_.getInt(i)); - } - size += dataSize; - if (!getTalentIdListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - talentIdListMemoizedSerializedSize = dataSize; - } - if (weapon_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getWeapon()); - } - for (int i = 0; i < reliquaryList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, reliquaryList_.get(i)); - } - if (coreProudSkillLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(11, coreProudSkillLevel_); - } - { - int dataSize = 0; - for (int i = 0; i < inherentProudSkillList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(inherentProudSkillList_.getInt(i)); - } - size += dataSize; - if (!getInherentProudSkillListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - inherentProudSkillListMemoizedSerializedSize = dataSize; - } - for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry - : internalGetSkillLevelMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - skillLevelMap__ = SkillLevelMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, skillLevelMap__); - } - for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry - : internalGetProudSkillExtraLevelMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - proudSkillExtraLevelMap__ = ProudSkillExtraLevelMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, proudSkillExtraLevelMap__); - } - for (int i = 0; i < serverBuffList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, serverBuffList_.get(i)); - } - { - int dataSize = 0; - for (int i = 0; i < teamResonanceList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(teamResonanceList_.getInt(i)); - } - size += dataSize; - if (!getTeamResonanceListList().isEmpty()) { - size += 2; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - teamResonanceListMemoizedSerializedSize = dataSize; - } - if (wearingFlycloakId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(17, wearingFlycloakId_); - } - if (bornTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(18, bornTime_); - } - if (costumeId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(19, costumeId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo other = (emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo) obj; - - if (getPlayerId() - != other.getPlayerId()) return false; - if (getAvatarId() - != other.getAvatarId()) return false; - if (getGuid() - != other.getGuid()) return false; - if (getPeerId() - != other.getPeerId()) return false; - if (!getEquipIdListList() - .equals(other.getEquipIdListList())) return false; - if (getSkillDepotId() - != other.getSkillDepotId()) return false; - if (!getTalentIdListList() - .equals(other.getTalentIdListList())) return false; - if (hasWeapon() != other.hasWeapon()) return false; - if (hasWeapon()) { - if (!getWeapon() - .equals(other.getWeapon())) return false; - } - if (!getReliquaryListList() - .equals(other.getReliquaryListList())) return false; - if (getCoreProudSkillLevel() - != other.getCoreProudSkillLevel()) return false; - if (!getInherentProudSkillListList() - .equals(other.getInherentProudSkillListList())) return false; - if (!internalGetSkillLevelMap().equals( - other.internalGetSkillLevelMap())) return false; - if (!internalGetProudSkillExtraLevelMap().equals( - other.internalGetProudSkillExtraLevelMap())) return false; - if (!getServerBuffListList() - .equals(other.getServerBuffListList())) return false; - if (!getTeamResonanceListList() - .equals(other.getTeamResonanceListList())) return false; - if (getWearingFlycloakId() - != other.getWearingFlycloakId()) return false; - if (getBornTime() - != other.getBornTime()) return false; - if (getCostumeId() - != other.getCostumeId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PLAYERID_FIELD_NUMBER; - hash = (53 * hash) + getPlayerId(); - hash = (37 * hash) + AVATARID_FIELD_NUMBER; - hash = (53 * hash) + getAvatarId(); - hash = (37 * hash) + GUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGuid()); - hash = (37 * hash) + PEERID_FIELD_NUMBER; - hash = (53 * hash) + getPeerId(); - if (getEquipIdListCount() > 0) { - hash = (37 * hash) + EQUIPIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getEquipIdListList().hashCode(); - } - hash = (37 * hash) + SKILLDEPOTID_FIELD_NUMBER; - hash = (53 * hash) + getSkillDepotId(); - if (getTalentIdListCount() > 0) { - hash = (37 * hash) + TALENTIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getTalentIdListList().hashCode(); - } - if (hasWeapon()) { - hash = (37 * hash) + WEAPON_FIELD_NUMBER; - hash = (53 * hash) + getWeapon().hashCode(); - } - if (getReliquaryListCount() > 0) { - hash = (37 * hash) + RELIQUARYLIST_FIELD_NUMBER; - hash = (53 * hash) + getReliquaryListList().hashCode(); - } - hash = (37 * hash) + COREPROUDSKILLLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getCoreProudSkillLevel(); - if (getInherentProudSkillListCount() > 0) { - hash = (37 * hash) + INHERENTPROUDSKILLLIST_FIELD_NUMBER; - hash = (53 * hash) + getInherentProudSkillListList().hashCode(); - } - if (!internalGetSkillLevelMap().getMap().isEmpty()) { - hash = (37 * hash) + SKILLLEVELMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetSkillLevelMap().hashCode(); - } - if (!internalGetProudSkillExtraLevelMap().getMap().isEmpty()) { - hash = (37 * hash) + PROUDSKILLEXTRALEVELMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetProudSkillExtraLevelMap().hashCode(); - } - if (getServerBuffListCount() > 0) { - hash = (37 * hash) + SERVERBUFFLIST_FIELD_NUMBER; - hash = (53 * hash) + getServerBuffListList().hashCode(); - } - if (getTeamResonanceListCount() > 0) { - hash = (37 * hash) + TEAMRESONANCELIST_FIELD_NUMBER; - hash = (53 * hash) + getTeamResonanceListList().hashCode(); - } - hash = (37 * hash) + WEARINGFLYCLOAKID_FIELD_NUMBER; - hash = (53 * hash) + getWearingFlycloakId(); - hash = (37 * hash) + BORNTIME_FIELD_NUMBER; - hash = (53 * hash) + getBornTime(); - hash = (37 * hash) + COSTUMEID_FIELD_NUMBER; - hash = (53 * hash) + getCostumeId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SceneAvatarInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SceneAvatarInfo) - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.internal_static_SceneAvatarInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 13: - return internalGetSkillLevelMap(); - case 14: - return internalGetProudSkillExtraLevelMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 13: - return internalGetMutableSkillLevelMap(); - case 14: - return internalGetMutableProudSkillExtraLevelMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.internal_static_SceneAvatarInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.class, emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getReliquaryListFieldBuilder(); - getServerBuffListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - playerId_ = 0; - - avatarId_ = 0; - - guid_ = 0L; - - peerId_ = 0; - - equipIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - skillDepotId_ = 0; - - talentIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - if (weaponBuilder_ == null) { - weapon_ = null; - } else { - weapon_ = null; - weaponBuilder_ = null; - } - if (reliquaryListBuilder_ == null) { - reliquaryList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - reliquaryListBuilder_.clear(); - } - coreProudSkillLevel_ = 0; - - inherentProudSkillList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableSkillLevelMap().clear(); - internalGetMutableProudSkillExtraLevelMap().clear(); - if (serverBuffListBuilder_ == null) { - serverBuffList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - serverBuffListBuilder_.clear(); - } - teamResonanceList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000080); - wearingFlycloakId_ = 0; - - bornTime_ = 0; - - costumeId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.internal_static_SceneAvatarInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo build() { - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo buildPartial() { - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo result = new emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo(this); - int from_bitField0_ = bitField0_; - result.playerId_ = playerId_; - result.avatarId_ = avatarId_; - result.guid_ = guid_; - result.peerId_ = peerId_; - if (((bitField0_ & 0x00000001) != 0)) { - equipIdList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.equipIdList_ = equipIdList_; - result.skillDepotId_ = skillDepotId_; - if (((bitField0_ & 0x00000002) != 0)) { - talentIdList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.talentIdList_ = talentIdList_; - if (weaponBuilder_ == null) { - result.weapon_ = weapon_; - } else { - result.weapon_ = weaponBuilder_.build(); - } - if (reliquaryListBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - reliquaryList_ = java.util.Collections.unmodifiableList(reliquaryList_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.reliquaryList_ = reliquaryList_; - } else { - result.reliquaryList_ = reliquaryListBuilder_.build(); - } - result.coreProudSkillLevel_ = coreProudSkillLevel_; - if (((bitField0_ & 0x00000008) != 0)) { - inherentProudSkillList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.inherentProudSkillList_ = inherentProudSkillList_; - result.skillLevelMap_ = internalGetSkillLevelMap(); - result.skillLevelMap_.makeImmutable(); - result.proudSkillExtraLevelMap_ = internalGetProudSkillExtraLevelMap(); - result.proudSkillExtraLevelMap_.makeImmutable(); - if (serverBuffListBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - serverBuffList_ = java.util.Collections.unmodifiableList(serverBuffList_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.serverBuffList_ = serverBuffList_; - } else { - result.serverBuffList_ = serverBuffListBuilder_.build(); - } - if (((bitField0_ & 0x00000080) != 0)) { - teamResonanceList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.teamResonanceList_ = teamResonanceList_; - result.wearingFlycloakId_ = wearingFlycloakId_; - result.bornTime_ = bornTime_; - result.costumeId_ = costumeId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo) { - return mergeFrom((emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo other) { - if (other == emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.getDefaultInstance()) return this; - if (other.getPlayerId() != 0) { - setPlayerId(other.getPlayerId()); - } - if (other.getAvatarId() != 0) { - setAvatarId(other.getAvatarId()); - } - if (other.getGuid() != 0L) { - setGuid(other.getGuid()); - } - if (other.getPeerId() != 0) { - setPeerId(other.getPeerId()); - } - if (!other.equipIdList_.isEmpty()) { - if (equipIdList_.isEmpty()) { - equipIdList_ = other.equipIdList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEquipIdListIsMutable(); - equipIdList_.addAll(other.equipIdList_); - } - onChanged(); - } - if (other.getSkillDepotId() != 0) { - setSkillDepotId(other.getSkillDepotId()); - } - if (!other.talentIdList_.isEmpty()) { - if (talentIdList_.isEmpty()) { - talentIdList_ = other.talentIdList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureTalentIdListIsMutable(); - talentIdList_.addAll(other.talentIdList_); - } - onChanged(); - } - if (other.hasWeapon()) { - mergeWeapon(other.getWeapon()); - } - if (reliquaryListBuilder_ == null) { - if (!other.reliquaryList_.isEmpty()) { - if (reliquaryList_.isEmpty()) { - reliquaryList_ = other.reliquaryList_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureReliquaryListIsMutable(); - reliquaryList_.addAll(other.reliquaryList_); - } - onChanged(); - } - } else { - if (!other.reliquaryList_.isEmpty()) { - if (reliquaryListBuilder_.isEmpty()) { - reliquaryListBuilder_.dispose(); - reliquaryListBuilder_ = null; - reliquaryList_ = other.reliquaryList_; - bitField0_ = (bitField0_ & ~0x00000004); - reliquaryListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getReliquaryListFieldBuilder() : null; - } else { - reliquaryListBuilder_.addAllMessages(other.reliquaryList_); - } - } - } - if (other.getCoreProudSkillLevel() != 0) { - setCoreProudSkillLevel(other.getCoreProudSkillLevel()); - } - if (!other.inherentProudSkillList_.isEmpty()) { - if (inherentProudSkillList_.isEmpty()) { - inherentProudSkillList_ = other.inherentProudSkillList_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureInherentProudSkillListIsMutable(); - inherentProudSkillList_.addAll(other.inherentProudSkillList_); - } - onChanged(); - } - internalGetMutableSkillLevelMap().mergeFrom( - other.internalGetSkillLevelMap()); - internalGetMutableProudSkillExtraLevelMap().mergeFrom( - other.internalGetProudSkillExtraLevelMap()); - if (serverBuffListBuilder_ == null) { - if (!other.serverBuffList_.isEmpty()) { - if (serverBuffList_.isEmpty()) { - serverBuffList_ = other.serverBuffList_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureServerBuffListIsMutable(); - serverBuffList_.addAll(other.serverBuffList_); - } - onChanged(); - } - } else { - if (!other.serverBuffList_.isEmpty()) { - if (serverBuffListBuilder_.isEmpty()) { - serverBuffListBuilder_.dispose(); - serverBuffListBuilder_ = null; - serverBuffList_ = other.serverBuffList_; - bitField0_ = (bitField0_ & ~0x00000040); - serverBuffListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getServerBuffListFieldBuilder() : null; - } else { - serverBuffListBuilder_.addAllMessages(other.serverBuffList_); - } - } - } - if (!other.teamResonanceList_.isEmpty()) { - if (teamResonanceList_.isEmpty()) { - teamResonanceList_ = other.teamResonanceList_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureTeamResonanceListIsMutable(); - teamResonanceList_.addAll(other.teamResonanceList_); - } - onChanged(); - } - if (other.getWearingFlycloakId() != 0) { - setWearingFlycloakId(other.getWearingFlycloakId()); - } - if (other.getBornTime() != 0) { - setBornTime(other.getBornTime()); - } - if (other.getCostumeId() != 0) { - setCostumeId(other.getCostumeId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int playerId_ ; - /** - * <code>uint32 playerId = 1;</code> - * @return The playerId. - */ - @java.lang.Override - public int getPlayerId() { - return playerId_; - } - /** - * <code>uint32 playerId = 1;</code> - * @param value The playerId to set. - * @return This builder for chaining. - */ - public Builder setPlayerId(int value) { - - playerId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 playerId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearPlayerId() { - - playerId_ = 0; - onChanged(); - return this; - } - - private int avatarId_ ; - /** - * <code>uint32 avatarId = 2;</code> - * @return The avatarId. - */ - @java.lang.Override - public int getAvatarId() { - return avatarId_; - } - /** - * <code>uint32 avatarId = 2;</code> - * @param value The avatarId to set. - * @return This builder for chaining. - */ - public Builder setAvatarId(int value) { - - avatarId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 avatarId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarId() { - - avatarId_ = 0; - onChanged(); - return this; - } - - private long guid_ ; - /** - * <code>uint64 guid = 3;</code> - * @return The guid. - */ - @java.lang.Override - public long getGuid() { - return guid_; - } - /** - * <code>uint64 guid = 3;</code> - * @param value The guid to set. - * @return This builder for chaining. - */ - public Builder setGuid(long value) { - - guid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 guid = 3;</code> - * @return This builder for chaining. - */ - public Builder clearGuid() { - - guid_ = 0L; - onChanged(); - return this; - } - - private int peerId_ ; - /** - * <code>uint32 peerId = 4;</code> - * @return The peerId. - */ - @java.lang.Override - public int getPeerId() { - return peerId_; - } - /** - * <code>uint32 peerId = 4;</code> - * @param value The peerId to set. - * @return This builder for chaining. - */ - public Builder setPeerId(int value) { - - peerId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 peerId = 4;</code> - * @return This builder for chaining. - */ - public Builder clearPeerId() { - - peerId_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList equipIdList_ = emptyIntList(); - private void ensureEquipIdListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - equipIdList_ = mutableCopy(equipIdList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 equipIdList = 5;</code> - * @return A list containing the equipIdList. - */ - public java.util.List<java.lang.Integer> - getEquipIdListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(equipIdList_) : equipIdList_; - } - /** - * <code>repeated uint32 equipIdList = 5;</code> - * @return The count of equipIdList. - */ - public int getEquipIdListCount() { - return equipIdList_.size(); - } - /** - * <code>repeated uint32 equipIdList = 5;</code> - * @param index The index of the element to return. - * @return The equipIdList at the given index. - */ - public int getEquipIdList(int index) { - return equipIdList_.getInt(index); - } - /** - * <code>repeated uint32 equipIdList = 5;</code> - * @param index The index to set the value at. - * @param value The equipIdList to set. - * @return This builder for chaining. - */ - public Builder setEquipIdList( - int index, int value) { - ensureEquipIdListIsMutable(); - equipIdList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 equipIdList = 5;</code> - * @param value The equipIdList to add. - * @return This builder for chaining. - */ - public Builder addEquipIdList(int value) { - ensureEquipIdListIsMutable(); - equipIdList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 equipIdList = 5;</code> - * @param values The equipIdList to add. - * @return This builder for chaining. - */ - public Builder addAllEquipIdList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureEquipIdListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, equipIdList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 equipIdList = 5;</code> - * @return This builder for chaining. - */ - public Builder clearEquipIdList() { - equipIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private int skillDepotId_ ; - /** - * <code>uint32 skillDepotId = 6;</code> - * @return The skillDepotId. - */ - @java.lang.Override - public int getSkillDepotId() { - return skillDepotId_; - } - /** - * <code>uint32 skillDepotId = 6;</code> - * @param value The skillDepotId to set. - * @return This builder for chaining. - */ - public Builder setSkillDepotId(int value) { - - skillDepotId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 skillDepotId = 6;</code> - * @return This builder for chaining. - */ - public Builder clearSkillDepotId() { - - skillDepotId_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList talentIdList_ = emptyIntList(); - private void ensureTalentIdListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - talentIdList_ = mutableCopy(talentIdList_); - bitField0_ |= 0x00000002; - } - } - /** - * <code>repeated uint32 talentIdList = 7;</code> - * @return A list containing the talentIdList. - */ - public java.util.List<java.lang.Integer> - getTalentIdListList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(talentIdList_) : talentIdList_; - } - /** - * <code>repeated uint32 talentIdList = 7;</code> - * @return The count of talentIdList. - */ - public int getTalentIdListCount() { - return talentIdList_.size(); - } - /** - * <code>repeated uint32 talentIdList = 7;</code> - * @param index The index of the element to return. - * @return The talentIdList at the given index. - */ - public int getTalentIdList(int index) { - return talentIdList_.getInt(index); - } - /** - * <code>repeated uint32 talentIdList = 7;</code> - * @param index The index to set the value at. - * @param value The talentIdList to set. - * @return This builder for chaining. - */ - public Builder setTalentIdList( - int index, int value) { - ensureTalentIdListIsMutable(); - talentIdList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 talentIdList = 7;</code> - * @param value The talentIdList to add. - * @return This builder for chaining. - */ - public Builder addTalentIdList(int value) { - ensureTalentIdListIsMutable(); - talentIdList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 talentIdList = 7;</code> - * @param values The talentIdList to add. - * @return This builder for chaining. - */ - public Builder addAllTalentIdList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureTalentIdListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, talentIdList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 talentIdList = 7;</code> - * @return This builder for chaining. - */ - public Builder clearTalentIdList() { - talentIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo weapon_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo, emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.Builder, emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfoOrBuilder> weaponBuilder_; - /** - * <code>.SceneWeaponInfo weapon = 8;</code> - * @return Whether the weapon field is set. - */ - public boolean hasWeapon() { - return weaponBuilder_ != null || weapon_ != null; - } - /** - * <code>.SceneWeaponInfo weapon = 8;</code> - * @return The weapon. - */ - public emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo getWeapon() { - if (weaponBuilder_ == null) { - return weapon_ == null ? emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.getDefaultInstance() : weapon_; - } else { - return weaponBuilder_.getMessage(); - } - } - /** - * <code>.SceneWeaponInfo weapon = 8;</code> - */ - public Builder setWeapon(emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo value) { - if (weaponBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - weapon_ = value; - onChanged(); - } else { - weaponBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.SceneWeaponInfo weapon = 8;</code> - */ - public Builder setWeapon( - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.Builder builderForValue) { - if (weaponBuilder_ == null) { - weapon_ = builderForValue.build(); - onChanged(); - } else { - weaponBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.SceneWeaponInfo weapon = 8;</code> - */ - public Builder mergeWeapon(emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo value) { - if (weaponBuilder_ == null) { - if (weapon_ != null) { - weapon_ = - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.newBuilder(weapon_).mergeFrom(value).buildPartial(); - } else { - weapon_ = value; - } - onChanged(); - } else { - weaponBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.SceneWeaponInfo weapon = 8;</code> - */ - public Builder clearWeapon() { - if (weaponBuilder_ == null) { - weapon_ = null; - onChanged(); - } else { - weapon_ = null; - weaponBuilder_ = null; - } - - return this; - } - /** - * <code>.SceneWeaponInfo weapon = 8;</code> - */ - public emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.Builder getWeaponBuilder() { - - onChanged(); - return getWeaponFieldBuilder().getBuilder(); - } - /** - * <code>.SceneWeaponInfo weapon = 8;</code> - */ - public emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfoOrBuilder getWeaponOrBuilder() { - if (weaponBuilder_ != null) { - return weaponBuilder_.getMessageOrBuilder(); - } else { - return weapon_ == null ? - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.getDefaultInstance() : weapon_; - } - } - /** - * <code>.SceneWeaponInfo weapon = 8;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo, emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.Builder, emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfoOrBuilder> - getWeaponFieldBuilder() { - if (weaponBuilder_ == null) { - weaponBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo, emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.Builder, emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfoOrBuilder>( - getWeapon(), - getParentForChildren(), - isClean()); - weapon_ = null; - } - return weaponBuilder_; - } - - private java.util.List<emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo> reliquaryList_ = - java.util.Collections.emptyList(); - private void ensureReliquaryListIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - reliquaryList_ = new java.util.ArrayList<emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo>(reliquaryList_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo, emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.Builder, emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfoOrBuilder> reliquaryListBuilder_; - - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - public java.util.List<emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo> getReliquaryListList() { - if (reliquaryListBuilder_ == null) { - return java.util.Collections.unmodifiableList(reliquaryList_); - } else { - return reliquaryListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - public int getReliquaryListCount() { - if (reliquaryListBuilder_ == null) { - return reliquaryList_.size(); - } else { - return reliquaryListBuilder_.getCount(); - } - } - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - public emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo getReliquaryList(int index) { - if (reliquaryListBuilder_ == null) { - return reliquaryList_.get(index); - } else { - return reliquaryListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - public Builder setReliquaryList( - int index, emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo value) { - if (reliquaryListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReliquaryListIsMutable(); - reliquaryList_.set(index, value); - onChanged(); - } else { - reliquaryListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - public Builder setReliquaryList( - int index, emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.Builder builderForValue) { - if (reliquaryListBuilder_ == null) { - ensureReliquaryListIsMutable(); - reliquaryList_.set(index, builderForValue.build()); - onChanged(); - } else { - reliquaryListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - public Builder addReliquaryList(emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo value) { - if (reliquaryListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReliquaryListIsMutable(); - reliquaryList_.add(value); - onChanged(); - } else { - reliquaryListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - public Builder addReliquaryList( - int index, emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo value) { - if (reliquaryListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReliquaryListIsMutable(); - reliquaryList_.add(index, value); - onChanged(); - } else { - reliquaryListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - public Builder addReliquaryList( - emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.Builder builderForValue) { - if (reliquaryListBuilder_ == null) { - ensureReliquaryListIsMutable(); - reliquaryList_.add(builderForValue.build()); - onChanged(); - } else { - reliquaryListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - public Builder addReliquaryList( - int index, emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.Builder builderForValue) { - if (reliquaryListBuilder_ == null) { - ensureReliquaryListIsMutable(); - reliquaryList_.add(index, builderForValue.build()); - onChanged(); - } else { - reliquaryListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - public Builder addAllReliquaryList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo> values) { - if (reliquaryListBuilder_ == null) { - ensureReliquaryListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, reliquaryList_); - onChanged(); - } else { - reliquaryListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - public Builder clearReliquaryList() { - if (reliquaryListBuilder_ == null) { - reliquaryList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - reliquaryListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - public Builder removeReliquaryList(int index) { - if (reliquaryListBuilder_ == null) { - ensureReliquaryListIsMutable(); - reliquaryList_.remove(index); - onChanged(); - } else { - reliquaryListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - public emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.Builder getReliquaryListBuilder( - int index) { - return getReliquaryListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - public emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfoOrBuilder getReliquaryListOrBuilder( - int index) { - if (reliquaryListBuilder_ == null) { - return reliquaryList_.get(index); } else { - return reliquaryListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfoOrBuilder> - getReliquaryListOrBuilderList() { - if (reliquaryListBuilder_ != null) { - return reliquaryListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(reliquaryList_); - } - } - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - public emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.Builder addReliquaryListBuilder() { - return getReliquaryListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.getDefaultInstance()); - } - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - public emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.Builder addReliquaryListBuilder( - int index) { - return getReliquaryListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.getDefaultInstance()); - } - /** - * <code>repeated .SceneReliquaryInfo reliquaryList = 9;</code> - */ - public java.util.List<emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.Builder> - getReliquaryListBuilderList() { - return getReliquaryListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo, emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.Builder, emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfoOrBuilder> - getReliquaryListFieldBuilder() { - if (reliquaryListBuilder_ == null) { - reliquaryListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo, emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.Builder, emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfoOrBuilder>( - reliquaryList_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - reliquaryList_ = null; - } - return reliquaryListBuilder_; - } - - private int coreProudSkillLevel_ ; - /** - * <code>uint32 coreProudSkillLevel = 11;</code> - * @return The coreProudSkillLevel. - */ - @java.lang.Override - public int getCoreProudSkillLevel() { - return coreProudSkillLevel_; - } - /** - * <code>uint32 coreProudSkillLevel = 11;</code> - * @param value The coreProudSkillLevel to set. - * @return This builder for chaining. - */ - public Builder setCoreProudSkillLevel(int value) { - - coreProudSkillLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 coreProudSkillLevel = 11;</code> - * @return This builder for chaining. - */ - public Builder clearCoreProudSkillLevel() { - - coreProudSkillLevel_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList inherentProudSkillList_ = emptyIntList(); - private void ensureInherentProudSkillListIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - inherentProudSkillList_ = mutableCopy(inherentProudSkillList_); - bitField0_ |= 0x00000008; - } - } - /** - * <code>repeated uint32 inherentProudSkillList = 12;</code> - * @return A list containing the inherentProudSkillList. - */ - public java.util.List<java.lang.Integer> - getInherentProudSkillListList() { - return ((bitField0_ & 0x00000008) != 0) ? - java.util.Collections.unmodifiableList(inherentProudSkillList_) : inherentProudSkillList_; - } - /** - * <code>repeated uint32 inherentProudSkillList = 12;</code> - * @return The count of inherentProudSkillList. - */ - public int getInherentProudSkillListCount() { - return inherentProudSkillList_.size(); - } - /** - * <code>repeated uint32 inherentProudSkillList = 12;</code> - * @param index The index of the element to return. - * @return The inherentProudSkillList at the given index. - */ - public int getInherentProudSkillList(int index) { - return inherentProudSkillList_.getInt(index); - } - /** - * <code>repeated uint32 inherentProudSkillList = 12;</code> - * @param index The index to set the value at. - * @param value The inherentProudSkillList to set. - * @return This builder for chaining. - */ - public Builder setInherentProudSkillList( - int index, int value) { - ensureInherentProudSkillListIsMutable(); - inherentProudSkillList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 inherentProudSkillList = 12;</code> - * @param value The inherentProudSkillList to add. - * @return This builder for chaining. - */ - public Builder addInherentProudSkillList(int value) { - ensureInherentProudSkillListIsMutable(); - inherentProudSkillList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 inherentProudSkillList = 12;</code> - * @param values The inherentProudSkillList to add. - * @return This builder for chaining. - */ - public Builder addAllInherentProudSkillList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureInherentProudSkillListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, inherentProudSkillList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 inherentProudSkillList = 12;</code> - * @return This builder for chaining. - */ - public Builder clearInherentProudSkillList() { - inherentProudSkillList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> skillLevelMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetSkillLevelMap() { - if (skillLevelMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SkillLevelMapDefaultEntryHolder.defaultEntry); - } - return skillLevelMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetMutableSkillLevelMap() { - onChanged();; - if (skillLevelMap_ == null) { - skillLevelMap_ = com.google.protobuf.MapField.newMapField( - SkillLevelMapDefaultEntryHolder.defaultEntry); - } - if (!skillLevelMap_.isMutable()) { - skillLevelMap_ = skillLevelMap_.copy(); - } - return skillLevelMap_; - } - - public int getSkillLevelMapCount() { - return internalGetSkillLevelMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> skillLevelMap = 13;</code> - */ - - @java.lang.Override - public boolean containsSkillLevelMap( - int key) { - - return internalGetSkillLevelMap().getMap().containsKey(key); - } - /** - * Use {@link #getSkillLevelMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillLevelMap() { - return getSkillLevelMapMap(); - } - /** - * <code>map<uint32, uint32> skillLevelMap = 13;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillLevelMapMap() { - return internalGetSkillLevelMap().getMap(); - } - /** - * <code>map<uint32, uint32> skillLevelMap = 13;</code> - */ - @java.lang.Override - - public int getSkillLevelMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkillLevelMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> skillLevelMap = 13;</code> - */ - @java.lang.Override - - public int getSkillLevelMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkillLevelMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearSkillLevelMap() { - internalGetMutableSkillLevelMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, uint32> skillLevelMap = 13;</code> - */ - - public Builder removeSkillLevelMap( - int key) { - - internalGetMutableSkillLevelMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> - getMutableSkillLevelMap() { - return internalGetMutableSkillLevelMap().getMutableMap(); - } - /** - * <code>map<uint32, uint32> skillLevelMap = 13;</code> - */ - public Builder putSkillLevelMap( - int key, - int value) { - - - internalGetMutableSkillLevelMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, uint32> skillLevelMap = 13;</code> - */ - - public Builder putAllSkillLevelMap( - java.util.Map<java.lang.Integer, java.lang.Integer> values) { - internalGetMutableSkillLevelMap().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> proudSkillExtraLevelMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetProudSkillExtraLevelMap() { - if (proudSkillExtraLevelMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ProudSkillExtraLevelMapDefaultEntryHolder.defaultEntry); - } - return proudSkillExtraLevelMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetMutableProudSkillExtraLevelMap() { - onChanged();; - if (proudSkillExtraLevelMap_ == null) { - proudSkillExtraLevelMap_ = com.google.protobuf.MapField.newMapField( - ProudSkillExtraLevelMapDefaultEntryHolder.defaultEntry); - } - if (!proudSkillExtraLevelMap_.isMutable()) { - proudSkillExtraLevelMap_ = proudSkillExtraLevelMap_.copy(); - } - return proudSkillExtraLevelMap_; - } - - public int getProudSkillExtraLevelMapCount() { - return internalGetProudSkillExtraLevelMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> proudSkillExtraLevelMap = 14;</code> - */ - - @java.lang.Override - public boolean containsProudSkillExtraLevelMap( - int key) { - - return internalGetProudSkillExtraLevelMap().getMap().containsKey(key); - } - /** - * Use {@link #getProudSkillExtraLevelMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getProudSkillExtraLevelMap() { - return getProudSkillExtraLevelMapMap(); - } - /** - * <code>map<uint32, uint32> proudSkillExtraLevelMap = 14;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getProudSkillExtraLevelMapMap() { - return internalGetProudSkillExtraLevelMap().getMap(); - } - /** - * <code>map<uint32, uint32> proudSkillExtraLevelMap = 14;</code> - */ - @java.lang.Override - - public int getProudSkillExtraLevelMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetProudSkillExtraLevelMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> proudSkillExtraLevelMap = 14;</code> - */ - @java.lang.Override - - public int getProudSkillExtraLevelMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetProudSkillExtraLevelMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearProudSkillExtraLevelMap() { - internalGetMutableProudSkillExtraLevelMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, uint32> proudSkillExtraLevelMap = 14;</code> - */ - - public Builder removeProudSkillExtraLevelMap( - int key) { - - internalGetMutableProudSkillExtraLevelMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> - getMutableProudSkillExtraLevelMap() { - return internalGetMutableProudSkillExtraLevelMap().getMutableMap(); - } - /** - * <code>map<uint32, uint32> proudSkillExtraLevelMap = 14;</code> - */ - public Builder putProudSkillExtraLevelMap( - int key, - int value) { - - - internalGetMutableProudSkillExtraLevelMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, uint32> proudSkillExtraLevelMap = 14;</code> - */ - - public Builder putAllProudSkillExtraLevelMap( - java.util.Map<java.lang.Integer, java.lang.Integer> values) { - internalGetMutableProudSkillExtraLevelMap().getMutableMap() - .putAll(values); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff> serverBuffList_ = - java.util.Collections.emptyList(); - private void ensureServerBuffListIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - serverBuffList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff>(serverBuffList_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder> serverBuffListBuilder_; - - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff> getServerBuffListList() { - if (serverBuffListBuilder_ == null) { - return java.util.Collections.unmodifiableList(serverBuffList_); - } else { - return serverBuffListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - public int getServerBuffListCount() { - if (serverBuffListBuilder_ == null) { - return serverBuffList_.size(); - } else { - return serverBuffListBuilder_.getCount(); - } - } - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff getServerBuffList(int index) { - if (serverBuffListBuilder_ == null) { - return serverBuffList_.get(index); - } else { - return serverBuffListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - public Builder setServerBuffList( - int index, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff value) { - if (serverBuffListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureServerBuffListIsMutable(); - serverBuffList_.set(index, value); - onChanged(); - } else { - serverBuffListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - public Builder setServerBuffList( - int index, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder builderForValue) { - if (serverBuffListBuilder_ == null) { - ensureServerBuffListIsMutable(); - serverBuffList_.set(index, builderForValue.build()); - onChanged(); - } else { - serverBuffListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - public Builder addServerBuffList(emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff value) { - if (serverBuffListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureServerBuffListIsMutable(); - serverBuffList_.add(value); - onChanged(); - } else { - serverBuffListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - public Builder addServerBuffList( - int index, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff value) { - if (serverBuffListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureServerBuffListIsMutable(); - serverBuffList_.add(index, value); - onChanged(); - } else { - serverBuffListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - public Builder addServerBuffList( - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder builderForValue) { - if (serverBuffListBuilder_ == null) { - ensureServerBuffListIsMutable(); - serverBuffList_.add(builderForValue.build()); - onChanged(); - } else { - serverBuffListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - public Builder addServerBuffList( - int index, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder builderForValue) { - if (serverBuffListBuilder_ == null) { - ensureServerBuffListIsMutable(); - serverBuffList_.add(index, builderForValue.build()); - onChanged(); - } else { - serverBuffListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - public Builder addAllServerBuffList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff> values) { - if (serverBuffListBuilder_ == null) { - ensureServerBuffListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, serverBuffList_); - onChanged(); - } else { - serverBuffListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - public Builder clearServerBuffList() { - if (serverBuffListBuilder_ == null) { - serverBuffList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - serverBuffListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - public Builder removeServerBuffList(int index) { - if (serverBuffListBuilder_ == null) { - ensureServerBuffListIsMutable(); - serverBuffList_.remove(index); - onChanged(); - } else { - serverBuffListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder getServerBuffListBuilder( - int index) { - return getServerBuffListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder getServerBuffListOrBuilder( - int index) { - if (serverBuffListBuilder_ == null) { - return serverBuffList_.get(index); } else { - return serverBuffListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder> - getServerBuffListOrBuilderList() { - if (serverBuffListBuilder_ != null) { - return serverBuffListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(serverBuffList_); - } - } - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder addServerBuffListBuilder() { - return getServerBuffListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.getDefaultInstance()); - } - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder addServerBuffListBuilder( - int index) { - return getServerBuffListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.getDefaultInstance()); - } - /** - * <code>repeated .ServerBuff serverBuffList = 15;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder> - getServerBuffListBuilderList() { - return getServerBuffListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder> - getServerBuffListFieldBuilder() { - if (serverBuffListBuilder_ == null) { - serverBuffListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder>( - serverBuffList_, - ((bitField0_ & 0x00000040) != 0), - getParentForChildren(), - isClean()); - serverBuffList_ = null; - } - return serverBuffListBuilder_; - } - - private com.google.protobuf.Internal.IntList teamResonanceList_ = emptyIntList(); - private void ensureTeamResonanceListIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { - teamResonanceList_ = mutableCopy(teamResonanceList_); - bitField0_ |= 0x00000080; - } - } - /** - * <code>repeated uint32 teamResonanceList = 16;</code> - * @return A list containing the teamResonanceList. - */ - public java.util.List<java.lang.Integer> - getTeamResonanceListList() { - return ((bitField0_ & 0x00000080) != 0) ? - java.util.Collections.unmodifiableList(teamResonanceList_) : teamResonanceList_; - } - /** - * <code>repeated uint32 teamResonanceList = 16;</code> - * @return The count of teamResonanceList. - */ - public int getTeamResonanceListCount() { - return teamResonanceList_.size(); - } - /** - * <code>repeated uint32 teamResonanceList = 16;</code> - * @param index The index of the element to return. - * @return The teamResonanceList at the given index. - */ - public int getTeamResonanceList(int index) { - return teamResonanceList_.getInt(index); - } - /** - * <code>repeated uint32 teamResonanceList = 16;</code> - * @param index The index to set the value at. - * @param value The teamResonanceList to set. - * @return This builder for chaining. - */ - public Builder setTeamResonanceList( - int index, int value) { - ensureTeamResonanceListIsMutable(); - teamResonanceList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 teamResonanceList = 16;</code> - * @param value The teamResonanceList to add. - * @return This builder for chaining. - */ - public Builder addTeamResonanceList(int value) { - ensureTeamResonanceListIsMutable(); - teamResonanceList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 teamResonanceList = 16;</code> - * @param values The teamResonanceList to add. - * @return This builder for chaining. - */ - public Builder addAllTeamResonanceList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureTeamResonanceListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, teamResonanceList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 teamResonanceList = 16;</code> - * @return This builder for chaining. - */ - public Builder clearTeamResonanceList() { - teamResonanceList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - - private int wearingFlycloakId_ ; - /** - * <code>uint32 wearingFlycloakId = 17;</code> - * @return The wearingFlycloakId. - */ - @java.lang.Override - public int getWearingFlycloakId() { - return wearingFlycloakId_; - } - /** - * <code>uint32 wearingFlycloakId = 17;</code> - * @param value The wearingFlycloakId to set. - * @return This builder for chaining. - */ - public Builder setWearingFlycloakId(int value) { - - wearingFlycloakId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 wearingFlycloakId = 17;</code> - * @return This builder for chaining. - */ - public Builder clearWearingFlycloakId() { - - wearingFlycloakId_ = 0; - onChanged(); - return this; - } - - private int bornTime_ ; - /** - * <code>uint32 bornTime = 18;</code> - * @return The bornTime. - */ - @java.lang.Override - public int getBornTime() { - return bornTime_; - } - /** - * <code>uint32 bornTime = 18;</code> - * @param value The bornTime to set. - * @return This builder for chaining. - */ - public Builder setBornTime(int value) { - - bornTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 bornTime = 18;</code> - * @return This builder for chaining. - */ - public Builder clearBornTime() { - - bornTime_ = 0; - onChanged(); - return this; - } - - private int costumeId_ ; - /** - * <code>uint32 costumeId = 19;</code> - * @return The costumeId. - */ - @java.lang.Override - public int getCostumeId() { - return costumeId_; - } - /** - * <code>uint32 costumeId = 19;</code> - * @param value The costumeId to set. - * @return This builder for chaining. - */ - public Builder setCostumeId(int value) { - - costumeId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 costumeId = 19;</code> - * @return This builder for chaining. - */ - public Builder clearCostumeId() { - - costumeId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SceneAvatarInfo) - } - - // @@protoc_insertion_point(class_scope:SceneAvatarInfo) - private static final emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo(); - } - - public static emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SceneAvatarInfo> - PARSER = new com.google.protobuf.AbstractParser<SceneAvatarInfo>() { - @java.lang.Override - public SceneAvatarInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SceneAvatarInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SceneAvatarInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SceneAvatarInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneAvatarInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneAvatarInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneAvatarInfo_SkillLevelMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneAvatarInfo_SkillLevelMapEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneAvatarInfo_ProudSkillExtraLevelMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneAvatarInfo_ProudSkillExtraLevelMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025SceneAvatarInfo.proto\032\030SceneReliquaryI" + - "nfo.proto\032\025SceneWeaponInfo.proto\032\020Server" + - "Buff.proto\"\241\005\n\017SceneAvatarInfo\022\020\n\010player" + - "Id\030\001 \001(\r\022\020\n\010avatarId\030\002 \001(\r\022\014\n\004guid\030\003 \001(\004" + - "\022\016\n\006peerId\030\004 \001(\r\022\023\n\013equipIdList\030\005 \003(\r\022\024\n" + - "\014skillDepotId\030\006 \001(\r\022\024\n\014talentIdList\030\007 \003(" + - "\r\022 \n\006weapon\030\010 \001(\0132\020.SceneWeaponInfo\022*\n\rr" + - "eliquaryList\030\t \003(\0132\023.SceneReliquaryInfo\022" + - "\033\n\023coreProudSkillLevel\030\013 \001(\r\022\036\n\026inherent" + - "ProudSkillList\030\014 \003(\r\022:\n\rskillLevelMap\030\r " + - "\003(\0132#.SceneAvatarInfo.SkillLevelMapEntry" + - "\022N\n\027proudSkillExtraLevelMap\030\016 \003(\0132-.Scen" + - "eAvatarInfo.ProudSkillExtraLevelMapEntry" + - "\022#\n\016serverBuffList\030\017 \003(\0132\013.ServerBuff\022\031\n" + - "\021teamResonanceList\030\020 \003(\r\022\031\n\021wearingFlycl" + - "oakId\030\021 \001(\r\022\020\n\010bornTime\030\022 \001(\r\022\021\n\tcostume" + - "Id\030\023 \001(\r\0324\n\022SkillLevelMapEntry\022\013\n\003key\030\001 " + - "\001(\r\022\r\n\005value\030\002 \001(\r:\0028\001\032>\n\034ProudSkillExtr" + - "aLevelMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001" + - "(\r:\0028\001B\033\n\031emu.grasscutter.net.protob\006pro" + - "to3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.ServerBuffOuterClass.getDescriptor(), - }); - internal_static_SceneAvatarInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SceneAvatarInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneAvatarInfo_descriptor, - new java.lang.String[] { "PlayerId", "AvatarId", "Guid", "PeerId", "EquipIdList", "SkillDepotId", "TalentIdList", "Weapon", "ReliquaryList", "CoreProudSkillLevel", "InherentProudSkillList", "SkillLevelMap", "ProudSkillExtraLevelMap", "ServerBuffList", "TeamResonanceList", "WearingFlycloakId", "BornTime", "CostumeId", }); - internal_static_SceneAvatarInfo_SkillLevelMapEntry_descriptor = - internal_static_SceneAvatarInfo_descriptor.getNestedTypes().get(0); - internal_static_SceneAvatarInfo_SkillLevelMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneAvatarInfo_SkillLevelMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_SceneAvatarInfo_ProudSkillExtraLevelMapEntry_descriptor = - internal_static_SceneAvatarInfo_descriptor.getNestedTypes().get(1); - internal_static_SceneAvatarInfo_ProudSkillExtraLevelMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneAvatarInfo_ProudSkillExtraLevelMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.ServerBuffOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SceneEntityAiInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SceneEntityAiInfoOuterClass.java deleted file mode 100644 index d0541fe8c..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SceneEntityAiInfoOuterClass.java +++ /dev/null @@ -1,1959 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SceneEntityAiInfo.proto - -package emu.grasscutter.net.proto; - -public final class SceneEntityAiInfoOuterClass { - private SceneEntityAiInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SceneEntityAiInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:SceneEntityAiInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>bool isAiOpen = 1;</code> - * @return The isAiOpen. - */ - boolean getIsAiOpen(); - - /** - * <code>.Vector bornPos = 2;</code> - * @return Whether the bornPos field is set. - */ - boolean hasBornPos(); - /** - * <code>.Vector bornPos = 2;</code> - * @return The bornPos. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getBornPos(); - /** - * <code>.Vector bornPos = 2;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getBornPosOrBuilder(); - - /** - * <code>map<uint32, uint32> skillCdMap = 3;</code> - */ - int getSkillCdMapCount(); - /** - * <code>map<uint32, uint32> skillCdMap = 3;</code> - */ - boolean containsSkillCdMap( - int key); - /** - * Use {@link #getSkillCdMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Integer> - getSkillCdMap(); - /** - * <code>map<uint32, uint32> skillCdMap = 3;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Integer> - getSkillCdMapMap(); - /** - * <code>map<uint32, uint32> skillCdMap = 3;</code> - */ - - int getSkillCdMapOrDefault( - int key, - int defaultValue); - /** - * <code>map<uint32, uint32> skillCdMap = 3;</code> - */ - - int getSkillCdMapOrThrow( - int key); - - /** - * <code>.ServantInfo servantInfo = 4;</code> - * @return Whether the servantInfo field is set. - */ - boolean hasServantInfo(); - /** - * <code>.ServantInfo servantInfo = 4;</code> - * @return The servantInfo. - */ - emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo getServantInfo(); - /** - * <code>.ServantInfo servantInfo = 4;</code> - */ - emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfoOrBuilder getServantInfoOrBuilder(); - - /** - * <code>map<uint32, uint32> aiThreatMap = 5;</code> - */ - int getAiThreatMapCount(); - /** - * <code>map<uint32, uint32> aiThreatMap = 5;</code> - */ - boolean containsAiThreatMap( - int key); - /** - * Use {@link #getAiThreatMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Integer> - getAiThreatMap(); - /** - * <code>map<uint32, uint32> aiThreatMap = 5;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Integer> - getAiThreatMapMap(); - /** - * <code>map<uint32, uint32> aiThreatMap = 5;</code> - */ - - int getAiThreatMapOrDefault( - int key, - int defaultValue); - /** - * <code>map<uint32, uint32> aiThreatMap = 5;</code> - */ - - int getAiThreatMapOrThrow( - int key); - - /** - * <code>map<uint32, uint32> skillGroupCdMap = 6;</code> - */ - int getSkillGroupCdMapCount(); - /** - * <code>map<uint32, uint32> skillGroupCdMap = 6;</code> - */ - boolean containsSkillGroupCdMap( - int key); - /** - * Use {@link #getSkillGroupCdMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Integer> - getSkillGroupCdMap(); - /** - * <code>map<uint32, uint32> skillGroupCdMap = 6;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Integer> - getSkillGroupCdMapMap(); - /** - * <code>map<uint32, uint32> skillGroupCdMap = 6;</code> - */ - - int getSkillGroupCdMapOrDefault( - int key, - int defaultValue); - /** - * <code>map<uint32, uint32> skillGroupCdMap = 6;</code> - */ - - int getSkillGroupCdMapOrThrow( - int key); - - /** - * <code>uint32 curTactic = 7;</code> - * @return The curTactic. - */ - int getCurTactic(); - } - /** - * Protobuf type {@code SceneEntityAiInfo} - */ - public static final class SceneEntityAiInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SceneEntityAiInfo) - SceneEntityAiInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use SceneEntityAiInfo.newBuilder() to construct. - private SceneEntityAiInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SceneEntityAiInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SceneEntityAiInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SceneEntityAiInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - isAiOpen_ = input.readBool(); - break; - } - case 18: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (bornPos_ != null) { - subBuilder = bornPos_.toBuilder(); - } - bornPos_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(bornPos_); - bornPos_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - skillCdMap_ = com.google.protobuf.MapField.newMapField( - SkillCdMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - skillCdMap__ = input.readMessage( - SkillCdMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - skillCdMap_.getMutableMap().put( - skillCdMap__.getKey(), skillCdMap__.getValue()); - break; - } - case 34: { - emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo.Builder subBuilder = null; - if (servantInfo_ != null) { - subBuilder = servantInfo_.toBuilder(); - } - servantInfo_ = input.readMessage(emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(servantInfo_); - servantInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - aiThreatMap_ = com.google.protobuf.MapField.newMapField( - AiThreatMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - aiThreatMap__ = input.readMessage( - AiThreatMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - aiThreatMap_.getMutableMap().put( - aiThreatMap__.getKey(), aiThreatMap__.getValue()); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - skillGroupCdMap_ = com.google.protobuf.MapField.newMapField( - SkillGroupCdMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - skillGroupCdMap__ = input.readMessage( - SkillGroupCdMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - skillGroupCdMap_.getMutableMap().put( - skillGroupCdMap__.getKey(), skillGroupCdMap__.getValue()); - break; - } - case 56: { - - curTactic_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.internal_static_SceneEntityAiInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetSkillCdMap(); - case 5: - return internalGetAiThreatMap(); - case 6: - return internalGetSkillGroupCdMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.internal_static_SceneEntityAiInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo.class, emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo.Builder.class); - } - - public static final int ISAIOPEN_FIELD_NUMBER = 1; - private boolean isAiOpen_; - /** - * <code>bool isAiOpen = 1;</code> - * @return The isAiOpen. - */ - @java.lang.Override - public boolean getIsAiOpen() { - return isAiOpen_; - } - - public static final int BORNPOS_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.VectorOuterClass.Vector bornPos_; - /** - * <code>.Vector bornPos = 2;</code> - * @return Whether the bornPos field is set. - */ - @java.lang.Override - public boolean hasBornPos() { - return bornPos_ != null; - } - /** - * <code>.Vector bornPos = 2;</code> - * @return The bornPos. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getBornPos() { - return bornPos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : bornPos_; - } - /** - * <code>.Vector bornPos = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getBornPosOrBuilder() { - return getBornPos(); - } - - public static final int SKILLCDMAP_FIELD_NUMBER = 3; - private static final class SkillCdMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Integer>newDefaultInstance( - emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.internal_static_SceneEntityAiInfo_SkillCdMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> skillCdMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetSkillCdMap() { - if (skillCdMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SkillCdMapDefaultEntryHolder.defaultEntry); - } - return skillCdMap_; - } - - public int getSkillCdMapCount() { - return internalGetSkillCdMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> skillCdMap = 3;</code> - */ - - @java.lang.Override - public boolean containsSkillCdMap( - int key) { - - return internalGetSkillCdMap().getMap().containsKey(key); - } - /** - * Use {@link #getSkillCdMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillCdMap() { - return getSkillCdMapMap(); - } - /** - * <code>map<uint32, uint32> skillCdMap = 3;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillCdMapMap() { - return internalGetSkillCdMap().getMap(); - } - /** - * <code>map<uint32, uint32> skillCdMap = 3;</code> - */ - @java.lang.Override - - public int getSkillCdMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkillCdMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> skillCdMap = 3;</code> - */ - @java.lang.Override - - public int getSkillCdMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkillCdMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int SERVANTINFO_FIELD_NUMBER = 4; - private emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo servantInfo_; - /** - * <code>.ServantInfo servantInfo = 4;</code> - * @return Whether the servantInfo field is set. - */ - @java.lang.Override - public boolean hasServantInfo() { - return servantInfo_ != null; - } - /** - * <code>.ServantInfo servantInfo = 4;</code> - * @return The servantInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo getServantInfo() { - return servantInfo_ == null ? emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo.getDefaultInstance() : servantInfo_; - } - /** - * <code>.ServantInfo servantInfo = 4;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfoOrBuilder getServantInfoOrBuilder() { - return getServantInfo(); - } - - public static final int AITHREATMAP_FIELD_NUMBER = 5; - private static final class AiThreatMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Integer>newDefaultInstance( - emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.internal_static_SceneEntityAiInfo_AiThreatMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> aiThreatMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetAiThreatMap() { - if (aiThreatMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AiThreatMapDefaultEntryHolder.defaultEntry); - } - return aiThreatMap_; - } - - public int getAiThreatMapCount() { - return internalGetAiThreatMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> aiThreatMap = 5;</code> - */ - - @java.lang.Override - public boolean containsAiThreatMap( - int key) { - - return internalGetAiThreatMap().getMap().containsKey(key); - } - /** - * Use {@link #getAiThreatMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getAiThreatMap() { - return getAiThreatMapMap(); - } - /** - * <code>map<uint32, uint32> aiThreatMap = 5;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getAiThreatMapMap() { - return internalGetAiThreatMap().getMap(); - } - /** - * <code>map<uint32, uint32> aiThreatMap = 5;</code> - */ - @java.lang.Override - - public int getAiThreatMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetAiThreatMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> aiThreatMap = 5;</code> - */ - @java.lang.Override - - public int getAiThreatMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetAiThreatMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int SKILLGROUPCDMAP_FIELD_NUMBER = 6; - private static final class SkillGroupCdMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Integer>newDefaultInstance( - emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.internal_static_SceneEntityAiInfo_SkillGroupCdMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> skillGroupCdMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetSkillGroupCdMap() { - if (skillGroupCdMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SkillGroupCdMapDefaultEntryHolder.defaultEntry); - } - return skillGroupCdMap_; - } - - public int getSkillGroupCdMapCount() { - return internalGetSkillGroupCdMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> skillGroupCdMap = 6;</code> - */ - - @java.lang.Override - public boolean containsSkillGroupCdMap( - int key) { - - return internalGetSkillGroupCdMap().getMap().containsKey(key); - } - /** - * Use {@link #getSkillGroupCdMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillGroupCdMap() { - return getSkillGroupCdMapMap(); - } - /** - * <code>map<uint32, uint32> skillGroupCdMap = 6;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillGroupCdMapMap() { - return internalGetSkillGroupCdMap().getMap(); - } - /** - * <code>map<uint32, uint32> skillGroupCdMap = 6;</code> - */ - @java.lang.Override - - public int getSkillGroupCdMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkillGroupCdMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> skillGroupCdMap = 6;</code> - */ - @java.lang.Override - - public int getSkillGroupCdMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkillGroupCdMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int CURTACTIC_FIELD_NUMBER = 7; - private int curTactic_; - /** - * <code>uint32 curTactic = 7;</code> - * @return The curTactic. - */ - @java.lang.Override - public int getCurTactic() { - return curTactic_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (isAiOpen_ != false) { - output.writeBool(1, isAiOpen_); - } - if (bornPos_ != null) { - output.writeMessage(2, getBornPos()); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetSkillCdMap(), - SkillCdMapDefaultEntryHolder.defaultEntry, - 3); - if (servantInfo_ != null) { - output.writeMessage(4, getServantInfo()); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetAiThreatMap(), - AiThreatMapDefaultEntryHolder.defaultEntry, - 5); - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetSkillGroupCdMap(), - SkillGroupCdMapDefaultEntryHolder.defaultEntry, - 6); - if (curTactic_ != 0) { - output.writeUInt32(7, curTactic_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (isAiOpen_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, isAiOpen_); - } - if (bornPos_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBornPos()); - } - for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry - : internalGetSkillCdMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - skillCdMap__ = SkillCdMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, skillCdMap__); - } - if (servantInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getServantInfo()); - } - for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry - : internalGetAiThreatMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - aiThreatMap__ = AiThreatMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, aiThreatMap__); - } - for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry - : internalGetSkillGroupCdMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - skillGroupCdMap__ = SkillGroupCdMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, skillGroupCdMap__); - } - if (curTactic_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(7, curTactic_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo other = (emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo) obj; - - if (getIsAiOpen() - != other.getIsAiOpen()) return false; - if (hasBornPos() != other.hasBornPos()) return false; - if (hasBornPos()) { - if (!getBornPos() - .equals(other.getBornPos())) return false; - } - if (!internalGetSkillCdMap().equals( - other.internalGetSkillCdMap())) return false; - if (hasServantInfo() != other.hasServantInfo()) return false; - if (hasServantInfo()) { - if (!getServantInfo() - .equals(other.getServantInfo())) return false; - } - if (!internalGetAiThreatMap().equals( - other.internalGetAiThreatMap())) return false; - if (!internalGetSkillGroupCdMap().equals( - other.internalGetSkillGroupCdMap())) return false; - if (getCurTactic() - != other.getCurTactic()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ISAIOPEN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsAiOpen()); - if (hasBornPos()) { - hash = (37 * hash) + BORNPOS_FIELD_NUMBER; - hash = (53 * hash) + getBornPos().hashCode(); - } - if (!internalGetSkillCdMap().getMap().isEmpty()) { - hash = (37 * hash) + SKILLCDMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetSkillCdMap().hashCode(); - } - if (hasServantInfo()) { - hash = (37 * hash) + SERVANTINFO_FIELD_NUMBER; - hash = (53 * hash) + getServantInfo().hashCode(); - } - if (!internalGetAiThreatMap().getMap().isEmpty()) { - hash = (37 * hash) + AITHREATMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetAiThreatMap().hashCode(); - } - if (!internalGetSkillGroupCdMap().getMap().isEmpty()) { - hash = (37 * hash) + SKILLGROUPCDMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetSkillGroupCdMap().hashCode(); - } - hash = (37 * hash) + CURTACTIC_FIELD_NUMBER; - hash = (53 * hash) + getCurTactic(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SceneEntityAiInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SceneEntityAiInfo) - emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.internal_static_SceneEntityAiInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetSkillCdMap(); - case 5: - return internalGetAiThreatMap(); - case 6: - return internalGetSkillGroupCdMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 3: - return internalGetMutableSkillCdMap(); - case 5: - return internalGetMutableAiThreatMap(); - case 6: - return internalGetMutableSkillGroupCdMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.internal_static_SceneEntityAiInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo.class, emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - isAiOpen_ = false; - - if (bornPosBuilder_ == null) { - bornPos_ = null; - } else { - bornPos_ = null; - bornPosBuilder_ = null; - } - internalGetMutableSkillCdMap().clear(); - if (servantInfoBuilder_ == null) { - servantInfo_ = null; - } else { - servantInfo_ = null; - servantInfoBuilder_ = null; - } - internalGetMutableAiThreatMap().clear(); - internalGetMutableSkillGroupCdMap().clear(); - curTactic_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.internal_static_SceneEntityAiInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo build() { - emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo buildPartial() { - emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo result = new emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo(this); - int from_bitField0_ = bitField0_; - result.isAiOpen_ = isAiOpen_; - if (bornPosBuilder_ == null) { - result.bornPos_ = bornPos_; - } else { - result.bornPos_ = bornPosBuilder_.build(); - } - result.skillCdMap_ = internalGetSkillCdMap(); - result.skillCdMap_.makeImmutable(); - if (servantInfoBuilder_ == null) { - result.servantInfo_ = servantInfo_; - } else { - result.servantInfo_ = servantInfoBuilder_.build(); - } - result.aiThreatMap_ = internalGetAiThreatMap(); - result.aiThreatMap_.makeImmutable(); - result.skillGroupCdMap_ = internalGetSkillGroupCdMap(); - result.skillGroupCdMap_.makeImmutable(); - result.curTactic_ = curTactic_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo) { - return mergeFrom((emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo other) { - if (other == emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo.getDefaultInstance()) return this; - if (other.getIsAiOpen() != false) { - setIsAiOpen(other.getIsAiOpen()); - } - if (other.hasBornPos()) { - mergeBornPos(other.getBornPos()); - } - internalGetMutableSkillCdMap().mergeFrom( - other.internalGetSkillCdMap()); - if (other.hasServantInfo()) { - mergeServantInfo(other.getServantInfo()); - } - internalGetMutableAiThreatMap().mergeFrom( - other.internalGetAiThreatMap()); - internalGetMutableSkillGroupCdMap().mergeFrom( - other.internalGetSkillGroupCdMap()); - if (other.getCurTactic() != 0) { - setCurTactic(other.getCurTactic()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private boolean isAiOpen_ ; - /** - * <code>bool isAiOpen = 1;</code> - * @return The isAiOpen. - */ - @java.lang.Override - public boolean getIsAiOpen() { - return isAiOpen_; - } - /** - * <code>bool isAiOpen = 1;</code> - * @param value The isAiOpen to set. - * @return This builder for chaining. - */ - public Builder setIsAiOpen(boolean value) { - - isAiOpen_ = value; - onChanged(); - return this; - } - /** - * <code>bool isAiOpen = 1;</code> - * @return This builder for chaining. - */ - public Builder clearIsAiOpen() { - - isAiOpen_ = false; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.VectorOuterClass.Vector bornPos_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> bornPosBuilder_; - /** - * <code>.Vector bornPos = 2;</code> - * @return Whether the bornPos field is set. - */ - public boolean hasBornPos() { - return bornPosBuilder_ != null || bornPos_ != null; - } - /** - * <code>.Vector bornPos = 2;</code> - * @return The bornPos. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getBornPos() { - if (bornPosBuilder_ == null) { - return bornPos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : bornPos_; - } else { - return bornPosBuilder_.getMessage(); - } - } - /** - * <code>.Vector bornPos = 2;</code> - */ - public Builder setBornPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (bornPosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - bornPos_ = value; - onChanged(); - } else { - bornPosBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Vector bornPos = 2;</code> - */ - public Builder setBornPos( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (bornPosBuilder_ == null) { - bornPos_ = builderForValue.build(); - onChanged(); - } else { - bornPosBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Vector bornPos = 2;</code> - */ - public Builder mergeBornPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (bornPosBuilder_ == null) { - if (bornPos_ != null) { - bornPos_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(bornPos_).mergeFrom(value).buildPartial(); - } else { - bornPos_ = value; - } - onChanged(); - } else { - bornPosBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Vector bornPos = 2;</code> - */ - public Builder clearBornPos() { - if (bornPosBuilder_ == null) { - bornPos_ = null; - onChanged(); - } else { - bornPos_ = null; - bornPosBuilder_ = null; - } - - return this; - } - /** - * <code>.Vector bornPos = 2;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getBornPosBuilder() { - - onChanged(); - return getBornPosFieldBuilder().getBuilder(); - } - /** - * <code>.Vector bornPos = 2;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getBornPosOrBuilder() { - if (bornPosBuilder_ != null) { - return bornPosBuilder_.getMessageOrBuilder(); - } else { - return bornPos_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : bornPos_; - } - } - /** - * <code>.Vector bornPos = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getBornPosFieldBuilder() { - if (bornPosBuilder_ == null) { - bornPosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getBornPos(), - getParentForChildren(), - isClean()); - bornPos_ = null; - } - return bornPosBuilder_; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> skillCdMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetSkillCdMap() { - if (skillCdMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SkillCdMapDefaultEntryHolder.defaultEntry); - } - return skillCdMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetMutableSkillCdMap() { - onChanged();; - if (skillCdMap_ == null) { - skillCdMap_ = com.google.protobuf.MapField.newMapField( - SkillCdMapDefaultEntryHolder.defaultEntry); - } - if (!skillCdMap_.isMutable()) { - skillCdMap_ = skillCdMap_.copy(); - } - return skillCdMap_; - } - - public int getSkillCdMapCount() { - return internalGetSkillCdMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> skillCdMap = 3;</code> - */ - - @java.lang.Override - public boolean containsSkillCdMap( - int key) { - - return internalGetSkillCdMap().getMap().containsKey(key); - } - /** - * Use {@link #getSkillCdMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillCdMap() { - return getSkillCdMapMap(); - } - /** - * <code>map<uint32, uint32> skillCdMap = 3;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillCdMapMap() { - return internalGetSkillCdMap().getMap(); - } - /** - * <code>map<uint32, uint32> skillCdMap = 3;</code> - */ - @java.lang.Override - - public int getSkillCdMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkillCdMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> skillCdMap = 3;</code> - */ - @java.lang.Override - - public int getSkillCdMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkillCdMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearSkillCdMap() { - internalGetMutableSkillCdMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, uint32> skillCdMap = 3;</code> - */ - - public Builder removeSkillCdMap( - int key) { - - internalGetMutableSkillCdMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> - getMutableSkillCdMap() { - return internalGetMutableSkillCdMap().getMutableMap(); - } - /** - * <code>map<uint32, uint32> skillCdMap = 3;</code> - */ - public Builder putSkillCdMap( - int key, - int value) { - - - internalGetMutableSkillCdMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, uint32> skillCdMap = 3;</code> - */ - - public Builder putAllSkillCdMap( - java.util.Map<java.lang.Integer, java.lang.Integer> values) { - internalGetMutableSkillCdMap().getMutableMap() - .putAll(values); - return this; - } - - private emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo servantInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo, emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo.Builder, emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfoOrBuilder> servantInfoBuilder_; - /** - * <code>.ServantInfo servantInfo = 4;</code> - * @return Whether the servantInfo field is set. - */ - public boolean hasServantInfo() { - return servantInfoBuilder_ != null || servantInfo_ != null; - } - /** - * <code>.ServantInfo servantInfo = 4;</code> - * @return The servantInfo. - */ - public emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo getServantInfo() { - if (servantInfoBuilder_ == null) { - return servantInfo_ == null ? emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo.getDefaultInstance() : servantInfo_; - } else { - return servantInfoBuilder_.getMessage(); - } - } - /** - * <code>.ServantInfo servantInfo = 4;</code> - */ - public Builder setServantInfo(emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo value) { - if (servantInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - servantInfo_ = value; - onChanged(); - } else { - servantInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.ServantInfo servantInfo = 4;</code> - */ - public Builder setServantInfo( - emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo.Builder builderForValue) { - if (servantInfoBuilder_ == null) { - servantInfo_ = builderForValue.build(); - onChanged(); - } else { - servantInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.ServantInfo servantInfo = 4;</code> - */ - public Builder mergeServantInfo(emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo value) { - if (servantInfoBuilder_ == null) { - if (servantInfo_ != null) { - servantInfo_ = - emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo.newBuilder(servantInfo_).mergeFrom(value).buildPartial(); - } else { - servantInfo_ = value; - } - onChanged(); - } else { - servantInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.ServantInfo servantInfo = 4;</code> - */ - public Builder clearServantInfo() { - if (servantInfoBuilder_ == null) { - servantInfo_ = null; - onChanged(); - } else { - servantInfo_ = null; - servantInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.ServantInfo servantInfo = 4;</code> - */ - public emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo.Builder getServantInfoBuilder() { - - onChanged(); - return getServantInfoFieldBuilder().getBuilder(); - } - /** - * <code>.ServantInfo servantInfo = 4;</code> - */ - public emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfoOrBuilder getServantInfoOrBuilder() { - if (servantInfoBuilder_ != null) { - return servantInfoBuilder_.getMessageOrBuilder(); - } else { - return servantInfo_ == null ? - emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo.getDefaultInstance() : servantInfo_; - } - } - /** - * <code>.ServantInfo servantInfo = 4;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo, emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo.Builder, emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfoOrBuilder> - getServantInfoFieldBuilder() { - if (servantInfoBuilder_ == null) { - servantInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo, emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo.Builder, emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfoOrBuilder>( - getServantInfo(), - getParentForChildren(), - isClean()); - servantInfo_ = null; - } - return servantInfoBuilder_; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> aiThreatMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetAiThreatMap() { - if (aiThreatMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AiThreatMapDefaultEntryHolder.defaultEntry); - } - return aiThreatMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetMutableAiThreatMap() { - onChanged();; - if (aiThreatMap_ == null) { - aiThreatMap_ = com.google.protobuf.MapField.newMapField( - AiThreatMapDefaultEntryHolder.defaultEntry); - } - if (!aiThreatMap_.isMutable()) { - aiThreatMap_ = aiThreatMap_.copy(); - } - return aiThreatMap_; - } - - public int getAiThreatMapCount() { - return internalGetAiThreatMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> aiThreatMap = 5;</code> - */ - - @java.lang.Override - public boolean containsAiThreatMap( - int key) { - - return internalGetAiThreatMap().getMap().containsKey(key); - } - /** - * Use {@link #getAiThreatMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getAiThreatMap() { - return getAiThreatMapMap(); - } - /** - * <code>map<uint32, uint32> aiThreatMap = 5;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getAiThreatMapMap() { - return internalGetAiThreatMap().getMap(); - } - /** - * <code>map<uint32, uint32> aiThreatMap = 5;</code> - */ - @java.lang.Override - - public int getAiThreatMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetAiThreatMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> aiThreatMap = 5;</code> - */ - @java.lang.Override - - public int getAiThreatMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetAiThreatMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearAiThreatMap() { - internalGetMutableAiThreatMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, uint32> aiThreatMap = 5;</code> - */ - - public Builder removeAiThreatMap( - int key) { - - internalGetMutableAiThreatMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> - getMutableAiThreatMap() { - return internalGetMutableAiThreatMap().getMutableMap(); - } - /** - * <code>map<uint32, uint32> aiThreatMap = 5;</code> - */ - public Builder putAiThreatMap( - int key, - int value) { - - - internalGetMutableAiThreatMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, uint32> aiThreatMap = 5;</code> - */ - - public Builder putAllAiThreatMap( - java.util.Map<java.lang.Integer, java.lang.Integer> values) { - internalGetMutableAiThreatMap().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> skillGroupCdMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetSkillGroupCdMap() { - if (skillGroupCdMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SkillGroupCdMapDefaultEntryHolder.defaultEntry); - } - return skillGroupCdMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetMutableSkillGroupCdMap() { - onChanged();; - if (skillGroupCdMap_ == null) { - skillGroupCdMap_ = com.google.protobuf.MapField.newMapField( - SkillGroupCdMapDefaultEntryHolder.defaultEntry); - } - if (!skillGroupCdMap_.isMutable()) { - skillGroupCdMap_ = skillGroupCdMap_.copy(); - } - return skillGroupCdMap_; - } - - public int getSkillGroupCdMapCount() { - return internalGetSkillGroupCdMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> skillGroupCdMap = 6;</code> - */ - - @java.lang.Override - public boolean containsSkillGroupCdMap( - int key) { - - return internalGetSkillGroupCdMap().getMap().containsKey(key); - } - /** - * Use {@link #getSkillGroupCdMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillGroupCdMap() { - return getSkillGroupCdMapMap(); - } - /** - * <code>map<uint32, uint32> skillGroupCdMap = 6;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillGroupCdMapMap() { - return internalGetSkillGroupCdMap().getMap(); - } - /** - * <code>map<uint32, uint32> skillGroupCdMap = 6;</code> - */ - @java.lang.Override - - public int getSkillGroupCdMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkillGroupCdMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> skillGroupCdMap = 6;</code> - */ - @java.lang.Override - - public int getSkillGroupCdMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkillGroupCdMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearSkillGroupCdMap() { - internalGetMutableSkillGroupCdMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, uint32> skillGroupCdMap = 6;</code> - */ - - public Builder removeSkillGroupCdMap( - int key) { - - internalGetMutableSkillGroupCdMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> - getMutableSkillGroupCdMap() { - return internalGetMutableSkillGroupCdMap().getMutableMap(); - } - /** - * <code>map<uint32, uint32> skillGroupCdMap = 6;</code> - */ - public Builder putSkillGroupCdMap( - int key, - int value) { - - - internalGetMutableSkillGroupCdMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, uint32> skillGroupCdMap = 6;</code> - */ - - public Builder putAllSkillGroupCdMap( - java.util.Map<java.lang.Integer, java.lang.Integer> values) { - internalGetMutableSkillGroupCdMap().getMutableMap() - .putAll(values); - return this; - } - - private int curTactic_ ; - /** - * <code>uint32 curTactic = 7;</code> - * @return The curTactic. - */ - @java.lang.Override - public int getCurTactic() { - return curTactic_; - } - /** - * <code>uint32 curTactic = 7;</code> - * @param value The curTactic to set. - * @return This builder for chaining. - */ - public Builder setCurTactic(int value) { - - curTactic_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 curTactic = 7;</code> - * @return This builder for chaining. - */ - public Builder clearCurTactic() { - - curTactic_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SceneEntityAiInfo) - } - - // @@protoc_insertion_point(class_scope:SceneEntityAiInfo) - private static final emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo(); - } - - public static emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SceneEntityAiInfo> - PARSER = new com.google.protobuf.AbstractParser<SceneEntityAiInfo>() { - @java.lang.Override - public SceneEntityAiInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SceneEntityAiInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SceneEntityAiInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SceneEntityAiInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneEntityAiInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneEntityAiInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneEntityAiInfo_SkillCdMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneEntityAiInfo_SkillCdMapEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneEntityAiInfo_AiThreatMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneEntityAiInfo_AiThreatMapEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneEntityAiInfo_SkillGroupCdMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneEntityAiInfo_SkillGroupCdMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027SceneEntityAiInfo.proto\032\021ServantInfo.p" + - "roto\032\014Vector.proto\"\310\003\n\021SceneEntityAiInfo" + - "\022\020\n\010isAiOpen\030\001 \001(\010\022\030\n\007bornPos\030\002 \001(\0132\007.Ve" + - "ctor\0226\n\nskillCdMap\030\003 \003(\0132\".SceneEntityAi" + - "Info.SkillCdMapEntry\022!\n\013servantInfo\030\004 \001(" + - "\0132\014.ServantInfo\0228\n\013aiThreatMap\030\005 \003(\0132#.S" + - "ceneEntityAiInfo.AiThreatMapEntry\022@\n\017ski" + - "llGroupCdMap\030\006 \003(\0132\'.SceneEntityAiInfo.S" + - "killGroupCdMapEntry\022\021\n\tcurTactic\030\007 \001(\r\0321" + - "\n\017SkillCdMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030" + - "\002 \001(\r:\0028\001\0322\n\020AiThreatMapEntry\022\013\n\003key\030\001 \001" + - "(\r\022\r\n\005value\030\002 \001(\r:\0028\001\0326\n\024SkillGroupCdMap" + - "Entry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\r:\0028\001B\033\n" + - "\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ServantInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(), - }); - internal_static_SceneEntityAiInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SceneEntityAiInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneEntityAiInfo_descriptor, - new java.lang.String[] { "IsAiOpen", "BornPos", "SkillCdMap", "ServantInfo", "AiThreatMap", "SkillGroupCdMap", "CurTactic", }); - internal_static_SceneEntityAiInfo_SkillCdMapEntry_descriptor = - internal_static_SceneEntityAiInfo_descriptor.getNestedTypes().get(0); - internal_static_SceneEntityAiInfo_SkillCdMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneEntityAiInfo_SkillCdMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_SceneEntityAiInfo_AiThreatMapEntry_descriptor = - internal_static_SceneEntityAiInfo_descriptor.getNestedTypes().get(1); - internal_static_SceneEntityAiInfo_AiThreatMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneEntityAiInfo_AiThreatMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_SceneEntityAiInfo_SkillGroupCdMapEntry_descriptor = - internal_static_SceneEntityAiInfo_descriptor.getNestedTypes().get(2); - internal_static_SceneEntityAiInfo_SkillGroupCdMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneEntityAiInfo_SkillGroupCdMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - emu.grasscutter.net.proto.ServantInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SceneEntityAppearNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SceneEntityAppearNotifyOuterClass.java deleted file mode 100644 index 381545f46..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SceneEntityAppearNotifyOuterClass.java +++ /dev/null @@ -1,1025 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SceneEntityAppearNotify.proto - -package emu.grasscutter.net.proto; - -public final class SceneEntityAppearNotifyOuterClass { - private SceneEntityAppearNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SceneEntityAppearNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:SceneEntityAppearNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - java.util.List<emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo> - getEntityListList(); - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo getEntityList(int index); - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - int getEntityListCount(); - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfoOrBuilder> - getEntityListOrBuilderList(); - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfoOrBuilder getEntityListOrBuilder( - int index); - - /** - * <code>.VisionType appearType = 2;</code> - * @return The enum numeric value on the wire for appearType. - */ - int getAppearTypeValue(); - /** - * <code>.VisionType appearType = 2;</code> - * @return The appearType. - */ - emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType getAppearType(); - - /** - * <code>uint32 param = 3;</code> - * @return The param. - */ - int getParam(); - } - /** - * Protobuf type {@code SceneEntityAppearNotify} - */ - public static final class SceneEntityAppearNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SceneEntityAppearNotify) - SceneEntityAppearNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use SceneEntityAppearNotify.newBuilder() to construct. - private SceneEntityAppearNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SceneEntityAppearNotify() { - entityList_ = java.util.Collections.emptyList(); - appearType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SceneEntityAppearNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SceneEntityAppearNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - entityList_ = new java.util.ArrayList<emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo>(); - mutable_bitField0_ |= 0x00000001; - } - entityList_.add( - input.readMessage(emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.parser(), extensionRegistry)); - break; - } - case 16: { - int rawValue = input.readEnum(); - - appearType_ = rawValue; - break; - } - case 24: { - - param_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - entityList_ = java.util.Collections.unmodifiableList(entityList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.internal_static_SceneEntityAppearNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.internal_static_SceneEntityAppearNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify.class, emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify.Builder.class); - } - - public static final int ENTITYLIST_FIELD_NUMBER = 1; - private java.util.List<emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo> entityList_; - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo> getEntityListList() { - return entityList_; - } - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfoOrBuilder> - getEntityListOrBuilderList() { - return entityList_; - } - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - @java.lang.Override - public int getEntityListCount() { - return entityList_.size(); - } - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo getEntityList(int index) { - return entityList_.get(index); - } - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfoOrBuilder getEntityListOrBuilder( - int index) { - return entityList_.get(index); - } - - public static final int APPEARTYPE_FIELD_NUMBER = 2; - private int appearType_; - /** - * <code>.VisionType appearType = 2;</code> - * @return The enum numeric value on the wire for appearType. - */ - @java.lang.Override public int getAppearTypeValue() { - return appearType_; - } - /** - * <code>.VisionType appearType = 2;</code> - * @return The appearType. - */ - @java.lang.Override public emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType getAppearType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType result = emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType.valueOf(appearType_); - return result == null ? emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType.UNRECOGNIZED : result; - } - - public static final int PARAM_FIELD_NUMBER = 3; - private int param_; - /** - * <code>uint32 param = 3;</code> - * @return The param. - */ - @java.lang.Override - public int getParam() { - return param_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < entityList_.size(); i++) { - output.writeMessage(1, entityList_.get(i)); - } - if (appearType_ != emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType.VisionNone.getNumber()) { - output.writeEnum(2, appearType_); - } - if (param_ != 0) { - output.writeUInt32(3, param_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < entityList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, entityList_.get(i)); - } - if (appearType_ != emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType.VisionNone.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, appearType_); - } - if (param_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, param_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify other = (emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify) obj; - - if (!getEntityListList() - .equals(other.getEntityListList())) return false; - if (appearType_ != other.appearType_) return false; - if (getParam() - != other.getParam()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEntityListCount() > 0) { - hash = (37 * hash) + ENTITYLIST_FIELD_NUMBER; - hash = (53 * hash) + getEntityListList().hashCode(); - } - hash = (37 * hash) + APPEARTYPE_FIELD_NUMBER; - hash = (53 * hash) + appearType_; - hash = (37 * hash) + PARAM_FIELD_NUMBER; - hash = (53 * hash) + getParam(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SceneEntityAppearNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SceneEntityAppearNotify) - emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.internal_static_SceneEntityAppearNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.internal_static_SceneEntityAppearNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify.class, emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEntityListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (entityListBuilder_ == null) { - entityList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - entityListBuilder_.clear(); - } - appearType_ = 0; - - param_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.internal_static_SceneEntityAppearNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify build() { - emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify buildPartial() { - emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify result = new emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify(this); - int from_bitField0_ = bitField0_; - if (entityListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - entityList_ = java.util.Collections.unmodifiableList(entityList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.entityList_ = entityList_; - } else { - result.entityList_ = entityListBuilder_.build(); - } - result.appearType_ = appearType_; - result.param_ = param_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify) { - return mergeFrom((emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify other) { - if (other == emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify.getDefaultInstance()) return this; - if (entityListBuilder_ == null) { - if (!other.entityList_.isEmpty()) { - if (entityList_.isEmpty()) { - entityList_ = other.entityList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEntityListIsMutable(); - entityList_.addAll(other.entityList_); - } - onChanged(); - } - } else { - if (!other.entityList_.isEmpty()) { - if (entityListBuilder_.isEmpty()) { - entityListBuilder_.dispose(); - entityListBuilder_ = null; - entityList_ = other.entityList_; - bitField0_ = (bitField0_ & ~0x00000001); - entityListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEntityListFieldBuilder() : null; - } else { - entityListBuilder_.addAllMessages(other.entityList_); - } - } - } - if (other.appearType_ != 0) { - setAppearTypeValue(other.getAppearTypeValue()); - } - if (other.getParam() != 0) { - setParam(other.getParam()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List<emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo> entityList_ = - java.util.Collections.emptyList(); - private void ensureEntityListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - entityList_ = new java.util.ArrayList<emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo>(entityList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo, emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder, emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfoOrBuilder> entityListBuilder_; - - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo> getEntityListList() { - if (entityListBuilder_ == null) { - return java.util.Collections.unmodifiableList(entityList_); - } else { - return entityListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - public int getEntityListCount() { - if (entityListBuilder_ == null) { - return entityList_.size(); - } else { - return entityListBuilder_.getCount(); - } - } - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo getEntityList(int index) { - if (entityListBuilder_ == null) { - return entityList_.get(index); - } else { - return entityListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - public Builder setEntityList( - int index, emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo value) { - if (entityListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntityListIsMutable(); - entityList_.set(index, value); - onChanged(); - } else { - entityListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - public Builder setEntityList( - int index, emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder builderForValue) { - if (entityListBuilder_ == null) { - ensureEntityListIsMutable(); - entityList_.set(index, builderForValue.build()); - onChanged(); - } else { - entityListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - public Builder addEntityList(emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo value) { - if (entityListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntityListIsMutable(); - entityList_.add(value); - onChanged(); - } else { - entityListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - public Builder addEntityList( - int index, emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo value) { - if (entityListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntityListIsMutable(); - entityList_.add(index, value); - onChanged(); - } else { - entityListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - public Builder addEntityList( - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder builderForValue) { - if (entityListBuilder_ == null) { - ensureEntityListIsMutable(); - entityList_.add(builderForValue.build()); - onChanged(); - } else { - entityListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - public Builder addEntityList( - int index, emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder builderForValue) { - if (entityListBuilder_ == null) { - ensureEntityListIsMutable(); - entityList_.add(index, builderForValue.build()); - onChanged(); - } else { - entityListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - public Builder addAllEntityList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo> values) { - if (entityListBuilder_ == null) { - ensureEntityListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, entityList_); - onChanged(); - } else { - entityListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - public Builder clearEntityList() { - if (entityListBuilder_ == null) { - entityList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - entityListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - public Builder removeEntityList(int index) { - if (entityListBuilder_ == null) { - ensureEntityListIsMutable(); - entityList_.remove(index); - onChanged(); - } else { - entityListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder getEntityListBuilder( - int index) { - return getEntityListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfoOrBuilder getEntityListOrBuilder( - int index) { - if (entityListBuilder_ == null) { - return entityList_.get(index); } else { - return entityListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfoOrBuilder> - getEntityListOrBuilderList() { - if (entityListBuilder_ != null) { - return entityListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(entityList_); - } - } - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder addEntityListBuilder() { - return getEntityListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.getDefaultInstance()); - } - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder addEntityListBuilder( - int index) { - return getEntityListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.getDefaultInstance()); - } - /** - * <code>repeated .SceneEntityInfo entityList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder> - getEntityListBuilderList() { - return getEntityListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo, emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder, emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfoOrBuilder> - getEntityListFieldBuilder() { - if (entityListBuilder_ == null) { - entityListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo, emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder, emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfoOrBuilder>( - entityList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - entityList_ = null; - } - return entityListBuilder_; - } - - private int appearType_ = 0; - /** - * <code>.VisionType appearType = 2;</code> - * @return The enum numeric value on the wire for appearType. - */ - @java.lang.Override public int getAppearTypeValue() { - return appearType_; - } - /** - * <code>.VisionType appearType = 2;</code> - * @param value The enum numeric value on the wire for appearType to set. - * @return This builder for chaining. - */ - public Builder setAppearTypeValue(int value) { - - appearType_ = value; - onChanged(); - return this; - } - /** - * <code>.VisionType appearType = 2;</code> - * @return The appearType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType getAppearType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType result = emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType.valueOf(appearType_); - return result == null ? emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType.UNRECOGNIZED : result; - } - /** - * <code>.VisionType appearType = 2;</code> - * @param value The appearType to set. - * @return This builder for chaining. - */ - public Builder setAppearType(emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType value) { - if (value == null) { - throw new NullPointerException(); - } - - appearType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.VisionType appearType = 2;</code> - * @return This builder for chaining. - */ - public Builder clearAppearType() { - - appearType_ = 0; - onChanged(); - return this; - } - - private int param_ ; - /** - * <code>uint32 param = 3;</code> - * @return The param. - */ - @java.lang.Override - public int getParam() { - return param_; - } - /** - * <code>uint32 param = 3;</code> - * @param value The param to set. - * @return This builder for chaining. - */ - public Builder setParam(int value) { - - param_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 param = 3;</code> - * @return This builder for chaining. - */ - public Builder clearParam() { - - param_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SceneEntityAppearNotify) - } - - // @@protoc_insertion_point(class_scope:SceneEntityAppearNotify) - private static final emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify(); - } - - public static emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SceneEntityAppearNotify> - PARSER = new com.google.protobuf.AbstractParser<SceneEntityAppearNotify>() { - @java.lang.Override - public SceneEntityAppearNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SceneEntityAppearNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SceneEntityAppearNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SceneEntityAppearNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneEntityAppearNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneEntityAppearNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035SceneEntityAppearNotify.proto\032\025SceneEn" + - "tityInfo.proto\032\020VisionType.proto\"o\n\027Scen" + - "eEntityAppearNotify\022$\n\nentityList\030\001 \003(\0132" + - "\020.SceneEntityInfo\022\037\n\nappearType\030\002 \001(\0162\013." + - "VisionType\022\r\n\005param\030\003 \001(\rB\033\n\031emu.grasscu" + - "tter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.VisionTypeOuterClass.getDescriptor(), - }); - internal_static_SceneEntityAppearNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SceneEntityAppearNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneEntityAppearNotify_descriptor, - new java.lang.String[] { "EntityList", "AppearType", "Param", }); - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.VisionTypeOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SceneEntityDisappearNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SceneEntityDisappearNotifyOuterClass.java deleted file mode 100644 index 3eee584b8..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SceneEntityDisappearNotifyOuterClass.java +++ /dev/null @@ -1,774 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SceneEntityDisappearNotify.proto - -package emu.grasscutter.net.proto; - -public final class SceneEntityDisappearNotifyOuterClass { - private SceneEntityDisappearNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SceneEntityDisappearNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:SceneEntityDisappearNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated uint32 entityList = 1;</code> - * @return A list containing the entityList. - */ - java.util.List<java.lang.Integer> getEntityListList(); - /** - * <code>repeated uint32 entityList = 1;</code> - * @return The count of entityList. - */ - int getEntityListCount(); - /** - * <code>repeated uint32 entityList = 1;</code> - * @param index The index of the element to return. - * @return The entityList at the given index. - */ - int getEntityList(int index); - - /** - * <code>.VisionType disappearType = 2;</code> - * @return The enum numeric value on the wire for disappearType. - */ - int getDisappearTypeValue(); - /** - * <code>.VisionType disappearType = 2;</code> - * @return The disappearType. - */ - emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType getDisappearType(); - } - /** - * Protobuf type {@code SceneEntityDisappearNotify} - */ - public static final class SceneEntityDisappearNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SceneEntityDisappearNotify) - SceneEntityDisappearNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use SceneEntityDisappearNotify.newBuilder() to construct. - private SceneEntityDisappearNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SceneEntityDisappearNotify() { - entityList_ = emptyIntList(); - disappearType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SceneEntityDisappearNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SceneEntityDisappearNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - entityList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - entityList_.addInt(input.readUInt32()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - entityList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - entityList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 16: { - int rawValue = input.readEnum(); - - disappearType_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - entityList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.internal_static_SceneEntityDisappearNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.internal_static_SceneEntityDisappearNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify.class, emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify.Builder.class); - } - - public static final int ENTITYLIST_FIELD_NUMBER = 1; - private com.google.protobuf.Internal.IntList entityList_; - /** - * <code>repeated uint32 entityList = 1;</code> - * @return A list containing the entityList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getEntityListList() { - return entityList_; - } - /** - * <code>repeated uint32 entityList = 1;</code> - * @return The count of entityList. - */ - public int getEntityListCount() { - return entityList_.size(); - } - /** - * <code>repeated uint32 entityList = 1;</code> - * @param index The index of the element to return. - * @return The entityList at the given index. - */ - public int getEntityList(int index) { - return entityList_.getInt(index); - } - private int entityListMemoizedSerializedSize = -1; - - public static final int DISAPPEARTYPE_FIELD_NUMBER = 2; - private int disappearType_; - /** - * <code>.VisionType disappearType = 2;</code> - * @return The enum numeric value on the wire for disappearType. - */ - @java.lang.Override public int getDisappearTypeValue() { - return disappearType_; - } - /** - * <code>.VisionType disappearType = 2;</code> - * @return The disappearType. - */ - @java.lang.Override public emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType getDisappearType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType result = emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType.valueOf(disappearType_); - return result == null ? emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getEntityListList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(entityListMemoizedSerializedSize); - } - for (int i = 0; i < entityList_.size(); i++) { - output.writeUInt32NoTag(entityList_.getInt(i)); - } - if (disappearType_ != emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType.VisionNone.getNumber()) { - output.writeEnum(2, disappearType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < entityList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(entityList_.getInt(i)); - } - size += dataSize; - if (!getEntityListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - entityListMemoizedSerializedSize = dataSize; - } - if (disappearType_ != emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType.VisionNone.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, disappearType_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify other = (emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify) obj; - - if (!getEntityListList() - .equals(other.getEntityListList())) return false; - if (disappearType_ != other.disappearType_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEntityListCount() > 0) { - hash = (37 * hash) + ENTITYLIST_FIELD_NUMBER; - hash = (53 * hash) + getEntityListList().hashCode(); - } - hash = (37 * hash) + DISAPPEARTYPE_FIELD_NUMBER; - hash = (53 * hash) + disappearType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SceneEntityDisappearNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SceneEntityDisappearNotify) - emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.internal_static_SceneEntityDisappearNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.internal_static_SceneEntityDisappearNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify.class, emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - entityList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - disappearType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.internal_static_SceneEntityDisappearNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify build() { - emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify buildPartial() { - emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify result = new emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - entityList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.entityList_ = entityList_; - result.disappearType_ = disappearType_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify) { - return mergeFrom((emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify other) { - if (other == emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify.getDefaultInstance()) return this; - if (!other.entityList_.isEmpty()) { - if (entityList_.isEmpty()) { - entityList_ = other.entityList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEntityListIsMutable(); - entityList_.addAll(other.entityList_); - } - onChanged(); - } - if (other.disappearType_ != 0) { - setDisappearTypeValue(other.getDisappearTypeValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.Internal.IntList entityList_ = emptyIntList(); - private void ensureEntityListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - entityList_ = mutableCopy(entityList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 entityList = 1;</code> - * @return A list containing the entityList. - */ - public java.util.List<java.lang.Integer> - getEntityListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(entityList_) : entityList_; - } - /** - * <code>repeated uint32 entityList = 1;</code> - * @return The count of entityList. - */ - public int getEntityListCount() { - return entityList_.size(); - } - /** - * <code>repeated uint32 entityList = 1;</code> - * @param index The index of the element to return. - * @return The entityList at the given index. - */ - public int getEntityList(int index) { - return entityList_.getInt(index); - } - /** - * <code>repeated uint32 entityList = 1;</code> - * @param index The index to set the value at. - * @param value The entityList to set. - * @return This builder for chaining. - */ - public Builder setEntityList( - int index, int value) { - ensureEntityListIsMutable(); - entityList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 entityList = 1;</code> - * @param value The entityList to add. - * @return This builder for chaining. - */ - public Builder addEntityList(int value) { - ensureEntityListIsMutable(); - entityList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 entityList = 1;</code> - * @param values The entityList to add. - * @return This builder for chaining. - */ - public Builder addAllEntityList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureEntityListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, entityList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 entityList = 1;</code> - * @return This builder for chaining. - */ - public Builder clearEntityList() { - entityList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private int disappearType_ = 0; - /** - * <code>.VisionType disappearType = 2;</code> - * @return The enum numeric value on the wire for disappearType. - */ - @java.lang.Override public int getDisappearTypeValue() { - return disappearType_; - } - /** - * <code>.VisionType disappearType = 2;</code> - * @param value The enum numeric value on the wire for disappearType to set. - * @return This builder for chaining. - */ - public Builder setDisappearTypeValue(int value) { - - disappearType_ = value; - onChanged(); - return this; - } - /** - * <code>.VisionType disappearType = 2;</code> - * @return The disappearType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType getDisappearType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType result = emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType.valueOf(disappearType_); - return result == null ? emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType.UNRECOGNIZED : result; - } - /** - * <code>.VisionType disappearType = 2;</code> - * @param value The disappearType to set. - * @return This builder for chaining. - */ - public Builder setDisappearType(emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType value) { - if (value == null) { - throw new NullPointerException(); - } - - disappearType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.VisionType disappearType = 2;</code> - * @return This builder for chaining. - */ - public Builder clearDisappearType() { - - disappearType_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SceneEntityDisappearNotify) - } - - // @@protoc_insertion_point(class_scope:SceneEntityDisappearNotify) - private static final emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify(); - } - - public static emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SceneEntityDisappearNotify> - PARSER = new com.google.protobuf.AbstractParser<SceneEntityDisappearNotify>() { - @java.lang.Override - public SceneEntityDisappearNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SceneEntityDisappearNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SceneEntityDisappearNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SceneEntityDisappearNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneEntityDisappearNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneEntityDisappearNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n SceneEntityDisappearNotify.proto\032\020Visi" + - "onType.proto\"T\n\032SceneEntityDisappearNoti" + - "fy\022\022\n\nentityList\030\001 \003(\r\022\"\n\rdisappearType\030" + - "\002 \001(\0162\013.VisionTypeB\033\n\031emu.grasscutter.ne" + - "t.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.VisionTypeOuterClass.getDescriptor(), - }); - internal_static_SceneEntityDisappearNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SceneEntityDisappearNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneEntityDisappearNotify_descriptor, - new java.lang.String[] { "EntityList", "DisappearType", }); - emu.grasscutter.net.proto.VisionTypeOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SceneEntityInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SceneEntityInfoOuterClass.java deleted file mode 100644 index 7c8e90f78..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SceneEntityInfoOuterClass.java +++ /dev/null @@ -1,4353 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SceneEntityInfo.proto - -package emu.grasscutter.net.proto; - -public final class SceneEntityInfoOuterClass { - private SceneEntityInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SceneEntityInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:SceneEntityInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.ProtEntityType entityType = 1;</code> - * @return The enum numeric value on the wire for entityType. - */ - int getEntityTypeValue(); - /** - * <code>.ProtEntityType entityType = 1;</code> - * @return The entityType. - */ - emu.grasscutter.net.proto.ProtEntityTypeOuterClass.ProtEntityType getEntityType(); - - /** - * <code>uint32 entityId = 2;</code> - * @return The entityId. - */ - int getEntityId(); - - /** - * <code>string name = 3;</code> - * @return The name. - */ - java.lang.String getName(); - /** - * <code>string name = 3;</code> - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * <code>.MotionInfo motionInfo = 4;</code> - * @return Whether the motionInfo field is set. - */ - boolean hasMotionInfo(); - /** - * <code>.MotionInfo motionInfo = 4;</code> - * @return The motionInfo. - */ - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo getMotionInfo(); - /** - * <code>.MotionInfo motionInfo = 4;</code> - */ - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfoOrBuilder getMotionInfoOrBuilder(); - - /** - * <code>repeated .PropPair propList = 5;</code> - */ - java.util.List<emu.grasscutter.net.proto.PropPairOuterClass.PropPair> - getPropListList(); - /** - * <code>repeated .PropPair propList = 5;</code> - */ - emu.grasscutter.net.proto.PropPairOuterClass.PropPair getPropList(int index); - /** - * <code>repeated .PropPair propList = 5;</code> - */ - int getPropListCount(); - /** - * <code>repeated .PropPair propList = 5;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.PropPairOuterClass.PropPairOrBuilder> - getPropListOrBuilderList(); - /** - * <code>repeated .PropPair propList = 5;</code> - */ - emu.grasscutter.net.proto.PropPairOuterClass.PropPairOrBuilder getPropListOrBuilder( - int index); - - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - java.util.List<emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair> - getFightPropListList(); - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair getFightPropList(int index); - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - int getFightPropListCount(); - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPairOrBuilder> - getFightPropListOrBuilderList(); - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPairOrBuilder getFightPropListOrBuilder( - int index); - - /** - * <code>uint32 lifeState = 7;</code> - * @return The lifeState. - */ - int getLifeState(); - - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - java.util.List<emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair> - getAnimatorParaListList(); - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair getAnimatorParaList(int index); - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - int getAnimatorParaListCount(); - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPairOrBuilder> - getAnimatorParaListOrBuilderList(); - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPairOrBuilder getAnimatorParaListOrBuilder( - int index); - - /** - * <code>.SceneAvatarInfo avatar = 10;</code> - * @return Whether the avatar field is set. - */ - boolean hasAvatar(); - /** - * <code>.SceneAvatarInfo avatar = 10;</code> - * @return The avatar. - */ - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo getAvatar(); - /** - * <code>.SceneAvatarInfo avatar = 10;</code> - */ - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfoOrBuilder getAvatarOrBuilder(); - - /** - * <code>.SceneMonsterInfo monster = 11;</code> - * @return Whether the monster field is set. - */ - boolean hasMonster(); - /** - * <code>.SceneMonsterInfo monster = 11;</code> - * @return The monster. - */ - emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo getMonster(); - /** - * <code>.SceneMonsterInfo monster = 11;</code> - */ - emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfoOrBuilder getMonsterOrBuilder(); - - /** - * <code>.SceneNpcInfo npc = 12;</code> - * @return Whether the npc field is set. - */ - boolean hasNpc(); - /** - * <code>.SceneNpcInfo npc = 12;</code> - * @return The npc. - */ - emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo getNpc(); - /** - * <code>.SceneNpcInfo npc = 12;</code> - */ - emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfoOrBuilder getNpcOrBuilder(); - - /** - * <code>.SceneGadgetInfo gadget = 13;</code> - * @return Whether the gadget field is set. - */ - boolean hasGadget(); - /** - * <code>.SceneGadgetInfo gadget = 13;</code> - * @return The gadget. - */ - emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo getGadget(); - /** - * <code>.SceneGadgetInfo gadget = 13;</code> - */ - emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfoOrBuilder getGadgetOrBuilder(); - - /** - * <code>uint32 lastMoveSceneTimeMs = 17;</code> - * @return The lastMoveSceneTimeMs. - */ - int getLastMoveSceneTimeMs(); - - /** - * <code>uint32 lastMoveReliableSeq = 18;</code> - * @return The lastMoveReliableSeq. - */ - int getLastMoveReliableSeq(); - - /** - * <code>.EntityClientData entityClientData = 19;</code> - * @return Whether the entityClientData field is set. - */ - boolean hasEntityClientData(); - /** - * <code>.EntityClientData entityClientData = 19;</code> - * @return The entityClientData. - */ - emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData getEntityClientData(); - /** - * <code>.EntityClientData entityClientData = 19;</code> - */ - emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientDataOrBuilder getEntityClientDataOrBuilder(); - - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - java.util.List<emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo> - getEntityEnvironmentInfoListList(); - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo getEntityEnvironmentInfoList(int index); - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - int getEntityEnvironmentInfoListCount(); - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfoOrBuilder> - getEntityEnvironmentInfoListOrBuilderList(); - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfoOrBuilder getEntityEnvironmentInfoListOrBuilder( - int index); - - /** - * <code>.EntityAuthorityInfo entityAuthorityInfo = 21;</code> - * @return Whether the entityAuthorityInfo field is set. - */ - boolean hasEntityAuthorityInfo(); - /** - * <code>.EntityAuthorityInfo entityAuthorityInfo = 21;</code> - * @return The entityAuthorityInfo. - */ - emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo getEntityAuthorityInfo(); - /** - * <code>.EntityAuthorityInfo entityAuthorityInfo = 21;</code> - */ - emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfoOrBuilder getEntityAuthorityInfoOrBuilder(); - - /** - * <code>repeated string tagList = 22;</code> - * @return A list containing the tagList. - */ - java.util.List<java.lang.String> - getTagListList(); - /** - * <code>repeated string tagList = 22;</code> - * @return The count of tagList. - */ - int getTagListCount(); - /** - * <code>repeated string tagList = 22;</code> - * @param index The index of the element to return. - * @return The tagList at the given index. - */ - java.lang.String getTagList(int index); - /** - * <code>repeated string tagList = 22;</code> - * @param index The index of the value to return. - * @return The bytes of the tagList at the given index. - */ - com.google.protobuf.ByteString - getTagListBytes(int index); - - public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.EntityCase getEntityCase(); - } - /** - * Protobuf type {@code SceneEntityInfo} - */ - public static final class SceneEntityInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SceneEntityInfo) - SceneEntityInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use SceneEntityInfo.newBuilder() to construct. - private SceneEntityInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SceneEntityInfo() { - entityType_ = 0; - name_ = ""; - propList_ = java.util.Collections.emptyList(); - fightPropList_ = java.util.Collections.emptyList(); - animatorParaList_ = java.util.Collections.emptyList(); - entityEnvironmentInfoList_ = java.util.Collections.emptyList(); - tagList_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SceneEntityInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SceneEntityInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - entityType_ = rawValue; - break; - } - case 16: { - - entityId_ = input.readUInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 34: { - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.Builder subBuilder = null; - if (motionInfo_ != null) { - subBuilder = motionInfo_.toBuilder(); - } - motionInfo_ = input.readMessage(emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(motionInfo_); - motionInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - propList_ = new java.util.ArrayList<emu.grasscutter.net.proto.PropPairOuterClass.PropPair>(); - mutable_bitField0_ |= 0x00000001; - } - propList_.add( - input.readMessage(emu.grasscutter.net.proto.PropPairOuterClass.PropPair.parser(), extensionRegistry)); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - fightPropList_ = new java.util.ArrayList<emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair>(); - mutable_bitField0_ |= 0x00000002; - } - fightPropList_.add( - input.readMessage(emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair.parser(), extensionRegistry)); - break; - } - case 56: { - - lifeState_ = input.readUInt32(); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - animatorParaList_ = new java.util.ArrayList<emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair>(); - mutable_bitField0_ |= 0x00000004; - } - animatorParaList_.add( - input.readMessage(emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.parser(), extensionRegistry)); - break; - } - case 82: { - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.Builder subBuilder = null; - if (entityCase_ == 10) { - subBuilder = ((emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo) entity_).toBuilder(); - } - entity_ = - input.readMessage(emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo) entity_); - entity_ = subBuilder.buildPartial(); - } - entityCase_ = 10; - break; - } - case 90: { - emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo.Builder subBuilder = null; - if (entityCase_ == 11) { - subBuilder = ((emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo) entity_).toBuilder(); - } - entity_ = - input.readMessage(emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo) entity_); - entity_ = subBuilder.buildPartial(); - } - entityCase_ = 11; - break; - } - case 98: { - emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo.Builder subBuilder = null; - if (entityCase_ == 12) { - subBuilder = ((emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo) entity_).toBuilder(); - } - entity_ = - input.readMessage(emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo) entity_); - entity_ = subBuilder.buildPartial(); - } - entityCase_ = 12; - break; - } - case 106: { - emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo.Builder subBuilder = null; - if (entityCase_ == 13) { - subBuilder = ((emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo) entity_).toBuilder(); - } - entity_ = - input.readMessage(emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo) entity_); - entity_ = subBuilder.buildPartial(); - } - entityCase_ = 13; - break; - } - case 136: { - - lastMoveSceneTimeMs_ = input.readUInt32(); - break; - } - case 144: { - - lastMoveReliableSeq_ = input.readUInt32(); - break; - } - case 154: { - emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.Builder subBuilder = null; - if (entityClientData_ != null) { - subBuilder = entityClientData_.toBuilder(); - } - entityClientData_ = input.readMessage(emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entityClientData_); - entityClientData_ = subBuilder.buildPartial(); - } - - break; - } - case 162: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - entityEnvironmentInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo>(); - mutable_bitField0_ |= 0x00000008; - } - entityEnvironmentInfoList_.add( - input.readMessage(emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo.parser(), extensionRegistry)); - break; - } - case 170: { - emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo.Builder subBuilder = null; - if (entityAuthorityInfo_ != null) { - subBuilder = entityAuthorityInfo_.toBuilder(); - } - entityAuthorityInfo_ = input.readMessage(emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entityAuthorityInfo_); - entityAuthorityInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 178: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - tagList_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000010; - } - tagList_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - propList_ = java.util.Collections.unmodifiableList(propList_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - fightPropList_ = java.util.Collections.unmodifiableList(fightPropList_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - animatorParaList_ = java.util.Collections.unmodifiableList(animatorParaList_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - entityEnvironmentInfoList_ = java.util.Collections.unmodifiableList(entityEnvironmentInfoList_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - tagList_ = tagList_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneEntityInfoOuterClass.internal_static_SceneEntityInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneEntityInfoOuterClass.internal_static_SceneEntityInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.class, emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder.class); - } - - private int entityCase_ = 0; - private java.lang.Object entity_; - public enum EntityCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - AVATAR(10), - MONSTER(11), - NPC(12), - GADGET(13), - ENTITY_NOT_SET(0); - private final int value; - private EntityCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static EntityCase valueOf(int value) { - return forNumber(value); - } - - public static EntityCase forNumber(int value) { - switch (value) { - case 10: return AVATAR; - case 11: return MONSTER; - case 12: return NPC; - case 13: return GADGET; - case 0: return ENTITY_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public EntityCase - getEntityCase() { - return EntityCase.forNumber( - entityCase_); - } - - public static final int ENTITYTYPE_FIELD_NUMBER = 1; - private int entityType_; - /** - * <code>.ProtEntityType entityType = 1;</code> - * @return The enum numeric value on the wire for entityType. - */ - @java.lang.Override public int getEntityTypeValue() { - return entityType_; - } - /** - * <code>.ProtEntityType entityType = 1;</code> - * @return The entityType. - */ - @java.lang.Override public emu.grasscutter.net.proto.ProtEntityTypeOuterClass.ProtEntityType getEntityType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.ProtEntityTypeOuterClass.ProtEntityType result = emu.grasscutter.net.proto.ProtEntityTypeOuterClass.ProtEntityType.valueOf(entityType_); - return result == null ? emu.grasscutter.net.proto.ProtEntityTypeOuterClass.ProtEntityType.UNRECOGNIZED : result; - } - - public static final int ENTITYID_FIELD_NUMBER = 2; - private int entityId_; - /** - * <code>uint32 entityId = 2;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - - public static final int NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object name_; - /** - * <code>string name = 3;</code> - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * <code>string name = 3;</code> - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MOTIONINFO_FIELD_NUMBER = 4; - private emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo motionInfo_; - /** - * <code>.MotionInfo motionInfo = 4;</code> - * @return Whether the motionInfo field is set. - */ - @java.lang.Override - public boolean hasMotionInfo() { - return motionInfo_ != null; - } - /** - * <code>.MotionInfo motionInfo = 4;</code> - * @return The motionInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo getMotionInfo() { - return motionInfo_ == null ? emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.getDefaultInstance() : motionInfo_; - } - /** - * <code>.MotionInfo motionInfo = 4;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfoOrBuilder getMotionInfoOrBuilder() { - return getMotionInfo(); - } - - public static final int PROPLIST_FIELD_NUMBER = 5; - private java.util.List<emu.grasscutter.net.proto.PropPairOuterClass.PropPair> propList_; - /** - * <code>repeated .PropPair propList = 5;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.PropPairOuterClass.PropPair> getPropListList() { - return propList_; - } - /** - * <code>repeated .PropPair propList = 5;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.PropPairOuterClass.PropPairOrBuilder> - getPropListOrBuilderList() { - return propList_; - } - /** - * <code>repeated .PropPair propList = 5;</code> - */ - @java.lang.Override - public int getPropListCount() { - return propList_.size(); - } - /** - * <code>repeated .PropPair propList = 5;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.PropPairOuterClass.PropPair getPropList(int index) { - return propList_.get(index); - } - /** - * <code>repeated .PropPair propList = 5;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.PropPairOuterClass.PropPairOrBuilder getPropListOrBuilder( - int index) { - return propList_.get(index); - } - - public static final int FIGHTPROPLIST_FIELD_NUMBER = 6; - private java.util.List<emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair> fightPropList_; - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair> getFightPropListList() { - return fightPropList_; - } - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPairOrBuilder> - getFightPropListOrBuilderList() { - return fightPropList_; - } - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - @java.lang.Override - public int getFightPropListCount() { - return fightPropList_.size(); - } - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair getFightPropList(int index) { - return fightPropList_.get(index); - } - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPairOrBuilder getFightPropListOrBuilder( - int index) { - return fightPropList_.get(index); - } - - public static final int LIFESTATE_FIELD_NUMBER = 7; - private int lifeState_; - /** - * <code>uint32 lifeState = 7;</code> - * @return The lifeState. - */ - @java.lang.Override - public int getLifeState() { - return lifeState_; - } - - public static final int ANIMATORPARALIST_FIELD_NUMBER = 9; - private java.util.List<emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair> animatorParaList_; - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair> getAnimatorParaListList() { - return animatorParaList_; - } - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPairOrBuilder> - getAnimatorParaListOrBuilderList() { - return animatorParaList_; - } - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - @java.lang.Override - public int getAnimatorParaListCount() { - return animatorParaList_.size(); - } - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair getAnimatorParaList(int index) { - return animatorParaList_.get(index); - } - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPairOrBuilder getAnimatorParaListOrBuilder( - int index) { - return animatorParaList_.get(index); - } - - public static final int AVATAR_FIELD_NUMBER = 10; - /** - * <code>.SceneAvatarInfo avatar = 10;</code> - * @return Whether the avatar field is set. - */ - @java.lang.Override - public boolean hasAvatar() { - return entityCase_ == 10; - } - /** - * <code>.SceneAvatarInfo avatar = 10;</code> - * @return The avatar. - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo getAvatar() { - if (entityCase_ == 10) { - return (emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo) entity_; - } - return emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.getDefaultInstance(); - } - /** - * <code>.SceneAvatarInfo avatar = 10;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfoOrBuilder getAvatarOrBuilder() { - if (entityCase_ == 10) { - return (emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo) entity_; - } - return emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.getDefaultInstance(); - } - - public static final int MONSTER_FIELD_NUMBER = 11; - /** - * <code>.SceneMonsterInfo monster = 11;</code> - * @return Whether the monster field is set. - */ - @java.lang.Override - public boolean hasMonster() { - return entityCase_ == 11; - } - /** - * <code>.SceneMonsterInfo monster = 11;</code> - * @return The monster. - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo getMonster() { - if (entityCase_ == 11) { - return (emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo) entity_; - } - return emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo.getDefaultInstance(); - } - /** - * <code>.SceneMonsterInfo monster = 11;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfoOrBuilder getMonsterOrBuilder() { - if (entityCase_ == 11) { - return (emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo) entity_; - } - return emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo.getDefaultInstance(); - } - - public static final int NPC_FIELD_NUMBER = 12; - /** - * <code>.SceneNpcInfo npc = 12;</code> - * @return Whether the npc field is set. - */ - @java.lang.Override - public boolean hasNpc() { - return entityCase_ == 12; - } - /** - * <code>.SceneNpcInfo npc = 12;</code> - * @return The npc. - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo getNpc() { - if (entityCase_ == 12) { - return (emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo) entity_; - } - return emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo.getDefaultInstance(); - } - /** - * <code>.SceneNpcInfo npc = 12;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfoOrBuilder getNpcOrBuilder() { - if (entityCase_ == 12) { - return (emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo) entity_; - } - return emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo.getDefaultInstance(); - } - - public static final int GADGET_FIELD_NUMBER = 13; - /** - * <code>.SceneGadgetInfo gadget = 13;</code> - * @return Whether the gadget field is set. - */ - @java.lang.Override - public boolean hasGadget() { - return entityCase_ == 13; - } - /** - * <code>.SceneGadgetInfo gadget = 13;</code> - * @return The gadget. - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo getGadget() { - if (entityCase_ == 13) { - return (emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo) entity_; - } - return emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo.getDefaultInstance(); - } - /** - * <code>.SceneGadgetInfo gadget = 13;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfoOrBuilder getGadgetOrBuilder() { - if (entityCase_ == 13) { - return (emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo) entity_; - } - return emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo.getDefaultInstance(); - } - - public static final int LASTMOVESCENETIMEMS_FIELD_NUMBER = 17; - private int lastMoveSceneTimeMs_; - /** - * <code>uint32 lastMoveSceneTimeMs = 17;</code> - * @return The lastMoveSceneTimeMs. - */ - @java.lang.Override - public int getLastMoveSceneTimeMs() { - return lastMoveSceneTimeMs_; - } - - public static final int LASTMOVERELIABLESEQ_FIELD_NUMBER = 18; - private int lastMoveReliableSeq_; - /** - * <code>uint32 lastMoveReliableSeq = 18;</code> - * @return The lastMoveReliableSeq. - */ - @java.lang.Override - public int getLastMoveReliableSeq() { - return lastMoveReliableSeq_; - } - - public static final int ENTITYCLIENTDATA_FIELD_NUMBER = 19; - private emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData entityClientData_; - /** - * <code>.EntityClientData entityClientData = 19;</code> - * @return Whether the entityClientData field is set. - */ - @java.lang.Override - public boolean hasEntityClientData() { - return entityClientData_ != null; - } - /** - * <code>.EntityClientData entityClientData = 19;</code> - * @return The entityClientData. - */ - @java.lang.Override - public emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData getEntityClientData() { - return entityClientData_ == null ? emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.getDefaultInstance() : entityClientData_; - } - /** - * <code>.EntityClientData entityClientData = 19;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientDataOrBuilder getEntityClientDataOrBuilder() { - return getEntityClientData(); - } - - public static final int ENTITYENVIRONMENTINFOLIST_FIELD_NUMBER = 20; - private java.util.List<emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo> entityEnvironmentInfoList_; - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo> getEntityEnvironmentInfoListList() { - return entityEnvironmentInfoList_; - } - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfoOrBuilder> - getEntityEnvironmentInfoListOrBuilderList() { - return entityEnvironmentInfoList_; - } - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - @java.lang.Override - public int getEntityEnvironmentInfoListCount() { - return entityEnvironmentInfoList_.size(); - } - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo getEntityEnvironmentInfoList(int index) { - return entityEnvironmentInfoList_.get(index); - } - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfoOrBuilder getEntityEnvironmentInfoListOrBuilder( - int index) { - return entityEnvironmentInfoList_.get(index); - } - - public static final int ENTITYAUTHORITYINFO_FIELD_NUMBER = 21; - private emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo entityAuthorityInfo_; - /** - * <code>.EntityAuthorityInfo entityAuthorityInfo = 21;</code> - * @return Whether the entityAuthorityInfo field is set. - */ - @java.lang.Override - public boolean hasEntityAuthorityInfo() { - return entityAuthorityInfo_ != null; - } - /** - * <code>.EntityAuthorityInfo entityAuthorityInfo = 21;</code> - * @return The entityAuthorityInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo getEntityAuthorityInfo() { - return entityAuthorityInfo_ == null ? emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo.getDefaultInstance() : entityAuthorityInfo_; - } - /** - * <code>.EntityAuthorityInfo entityAuthorityInfo = 21;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfoOrBuilder getEntityAuthorityInfoOrBuilder() { - return getEntityAuthorityInfo(); - } - - public static final int TAGLIST_FIELD_NUMBER = 22; - private com.google.protobuf.LazyStringList tagList_; - /** - * <code>repeated string tagList = 22;</code> - * @return A list containing the tagList. - */ - public com.google.protobuf.ProtocolStringList - getTagListList() { - return tagList_; - } - /** - * <code>repeated string tagList = 22;</code> - * @return The count of tagList. - */ - public int getTagListCount() { - return tagList_.size(); - } - /** - * <code>repeated string tagList = 22;</code> - * @param index The index of the element to return. - * @return The tagList at the given index. - */ - public java.lang.String getTagList(int index) { - return tagList_.get(index); - } - /** - * <code>repeated string tagList = 22;</code> - * @param index The index of the value to return. - * @return The bytes of the tagList at the given index. - */ - public com.google.protobuf.ByteString - getTagListBytes(int index) { - return tagList_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (entityType_ != emu.grasscutter.net.proto.ProtEntityTypeOuterClass.ProtEntityType.ProtEntityNone.getNumber()) { - output.writeEnum(1, entityType_); - } - if (entityId_ != 0) { - output.writeUInt32(2, entityId_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); - } - if (motionInfo_ != null) { - output.writeMessage(4, getMotionInfo()); - } - for (int i = 0; i < propList_.size(); i++) { - output.writeMessage(5, propList_.get(i)); - } - for (int i = 0; i < fightPropList_.size(); i++) { - output.writeMessage(6, fightPropList_.get(i)); - } - if (lifeState_ != 0) { - output.writeUInt32(7, lifeState_); - } - for (int i = 0; i < animatorParaList_.size(); i++) { - output.writeMessage(9, animatorParaList_.get(i)); - } - if (entityCase_ == 10) { - output.writeMessage(10, (emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo) entity_); - } - if (entityCase_ == 11) { - output.writeMessage(11, (emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo) entity_); - } - if (entityCase_ == 12) { - output.writeMessage(12, (emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo) entity_); - } - if (entityCase_ == 13) { - output.writeMessage(13, (emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo) entity_); - } - if (lastMoveSceneTimeMs_ != 0) { - output.writeUInt32(17, lastMoveSceneTimeMs_); - } - if (lastMoveReliableSeq_ != 0) { - output.writeUInt32(18, lastMoveReliableSeq_); - } - if (entityClientData_ != null) { - output.writeMessage(19, getEntityClientData()); - } - for (int i = 0; i < entityEnvironmentInfoList_.size(); i++) { - output.writeMessage(20, entityEnvironmentInfoList_.get(i)); - } - if (entityAuthorityInfo_ != null) { - output.writeMessage(21, getEntityAuthorityInfo()); - } - for (int i = 0; i < tagList_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 22, tagList_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entityType_ != emu.grasscutter.net.proto.ProtEntityTypeOuterClass.ProtEntityType.ProtEntityNone.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, entityType_); - } - if (entityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, entityId_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); - } - if (motionInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getMotionInfo()); - } - for (int i = 0; i < propList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, propList_.get(i)); - } - for (int i = 0; i < fightPropList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, fightPropList_.get(i)); - } - if (lifeState_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(7, lifeState_); - } - for (int i = 0; i < animatorParaList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, animatorParaList_.get(i)); - } - if (entityCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo) entity_); - } - if (entityCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo) entity_); - } - if (entityCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo) entity_); - } - if (entityCase_ == 13) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, (emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo) entity_); - } - if (lastMoveSceneTimeMs_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(17, lastMoveSceneTimeMs_); - } - if (lastMoveReliableSeq_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(18, lastMoveReliableSeq_); - } - if (entityClientData_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getEntityClientData()); - } - for (int i = 0; i < entityEnvironmentInfoList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, entityEnvironmentInfoList_.get(i)); - } - if (entityAuthorityInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, getEntityAuthorityInfo()); - } - { - int dataSize = 0; - for (int i = 0; i < tagList_.size(); i++) { - dataSize += computeStringSizeNoTag(tagList_.getRaw(i)); - } - size += dataSize; - size += 2 * getTagListList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo other = (emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo) obj; - - if (entityType_ != other.entityType_) return false; - if (getEntityId() - != other.getEntityId()) return false; - if (!getName() - .equals(other.getName())) return false; - if (hasMotionInfo() != other.hasMotionInfo()) return false; - if (hasMotionInfo()) { - if (!getMotionInfo() - .equals(other.getMotionInfo())) return false; - } - if (!getPropListList() - .equals(other.getPropListList())) return false; - if (!getFightPropListList() - .equals(other.getFightPropListList())) return false; - if (getLifeState() - != other.getLifeState()) return false; - if (!getAnimatorParaListList() - .equals(other.getAnimatorParaListList())) return false; - if (getLastMoveSceneTimeMs() - != other.getLastMoveSceneTimeMs()) return false; - if (getLastMoveReliableSeq() - != other.getLastMoveReliableSeq()) return false; - if (hasEntityClientData() != other.hasEntityClientData()) return false; - if (hasEntityClientData()) { - if (!getEntityClientData() - .equals(other.getEntityClientData())) return false; - } - if (!getEntityEnvironmentInfoListList() - .equals(other.getEntityEnvironmentInfoListList())) return false; - if (hasEntityAuthorityInfo() != other.hasEntityAuthorityInfo()) return false; - if (hasEntityAuthorityInfo()) { - if (!getEntityAuthorityInfo() - .equals(other.getEntityAuthorityInfo())) return false; - } - if (!getTagListList() - .equals(other.getTagListList())) return false; - if (!getEntityCase().equals(other.getEntityCase())) return false; - switch (entityCase_) { - case 10: - if (!getAvatar() - .equals(other.getAvatar())) return false; - break; - case 11: - if (!getMonster() - .equals(other.getMonster())) return false; - break; - case 12: - if (!getNpc() - .equals(other.getNpc())) return false; - break; - case 13: - if (!getGadget() - .equals(other.getGadget())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENTITYTYPE_FIELD_NUMBER; - hash = (53 * hash) + entityType_; - hash = (37 * hash) + ENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasMotionInfo()) { - hash = (37 * hash) + MOTIONINFO_FIELD_NUMBER; - hash = (53 * hash) + getMotionInfo().hashCode(); - } - if (getPropListCount() > 0) { - hash = (37 * hash) + PROPLIST_FIELD_NUMBER; - hash = (53 * hash) + getPropListList().hashCode(); - } - if (getFightPropListCount() > 0) { - hash = (37 * hash) + FIGHTPROPLIST_FIELD_NUMBER; - hash = (53 * hash) + getFightPropListList().hashCode(); - } - hash = (37 * hash) + LIFESTATE_FIELD_NUMBER; - hash = (53 * hash) + getLifeState(); - if (getAnimatorParaListCount() > 0) { - hash = (37 * hash) + ANIMATORPARALIST_FIELD_NUMBER; - hash = (53 * hash) + getAnimatorParaListList().hashCode(); - } - hash = (37 * hash) + LASTMOVESCENETIMEMS_FIELD_NUMBER; - hash = (53 * hash) + getLastMoveSceneTimeMs(); - hash = (37 * hash) + LASTMOVERELIABLESEQ_FIELD_NUMBER; - hash = (53 * hash) + getLastMoveReliableSeq(); - if (hasEntityClientData()) { - hash = (37 * hash) + ENTITYCLIENTDATA_FIELD_NUMBER; - hash = (53 * hash) + getEntityClientData().hashCode(); - } - if (getEntityEnvironmentInfoListCount() > 0) { - hash = (37 * hash) + ENTITYENVIRONMENTINFOLIST_FIELD_NUMBER; - hash = (53 * hash) + getEntityEnvironmentInfoListList().hashCode(); - } - if (hasEntityAuthorityInfo()) { - hash = (37 * hash) + ENTITYAUTHORITYINFO_FIELD_NUMBER; - hash = (53 * hash) + getEntityAuthorityInfo().hashCode(); - } - if (getTagListCount() > 0) { - hash = (37 * hash) + TAGLIST_FIELD_NUMBER; - hash = (53 * hash) + getTagListList().hashCode(); - } - switch (entityCase_) { - case 10: - hash = (37 * hash) + AVATAR_FIELD_NUMBER; - hash = (53 * hash) + getAvatar().hashCode(); - break; - case 11: - hash = (37 * hash) + MONSTER_FIELD_NUMBER; - hash = (53 * hash) + getMonster().hashCode(); - break; - case 12: - hash = (37 * hash) + NPC_FIELD_NUMBER; - hash = (53 * hash) + getNpc().hashCode(); - break; - case 13: - hash = (37 * hash) + GADGET_FIELD_NUMBER; - hash = (53 * hash) + getGadget().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SceneEntityInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SceneEntityInfo) - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneEntityInfoOuterClass.internal_static_SceneEntityInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneEntityInfoOuterClass.internal_static_SceneEntityInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.class, emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPropListFieldBuilder(); - getFightPropListFieldBuilder(); - getAnimatorParaListFieldBuilder(); - getEntityEnvironmentInfoListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - entityType_ = 0; - - entityId_ = 0; - - name_ = ""; - - if (motionInfoBuilder_ == null) { - motionInfo_ = null; - } else { - motionInfo_ = null; - motionInfoBuilder_ = null; - } - if (propListBuilder_ == null) { - propList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - propListBuilder_.clear(); - } - if (fightPropListBuilder_ == null) { - fightPropList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - fightPropListBuilder_.clear(); - } - lifeState_ = 0; - - if (animatorParaListBuilder_ == null) { - animatorParaList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - animatorParaListBuilder_.clear(); - } - lastMoveSceneTimeMs_ = 0; - - lastMoveReliableSeq_ = 0; - - if (entityClientDataBuilder_ == null) { - entityClientData_ = null; - } else { - entityClientData_ = null; - entityClientDataBuilder_ = null; - } - if (entityEnvironmentInfoListBuilder_ == null) { - entityEnvironmentInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - entityEnvironmentInfoListBuilder_.clear(); - } - if (entityAuthorityInfoBuilder_ == null) { - entityAuthorityInfo_ = null; - } else { - entityAuthorityInfo_ = null; - entityAuthorityInfoBuilder_ = null; - } - tagList_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - entityCase_ = 0; - entity_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SceneEntityInfoOuterClass.internal_static_SceneEntityInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo build() { - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo buildPartial() { - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo result = new emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo(this); - int from_bitField0_ = bitField0_; - result.entityType_ = entityType_; - result.entityId_ = entityId_; - result.name_ = name_; - if (motionInfoBuilder_ == null) { - result.motionInfo_ = motionInfo_; - } else { - result.motionInfo_ = motionInfoBuilder_.build(); - } - if (propListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - propList_ = java.util.Collections.unmodifiableList(propList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.propList_ = propList_; - } else { - result.propList_ = propListBuilder_.build(); - } - if (fightPropListBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - fightPropList_ = java.util.Collections.unmodifiableList(fightPropList_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.fightPropList_ = fightPropList_; - } else { - result.fightPropList_ = fightPropListBuilder_.build(); - } - result.lifeState_ = lifeState_; - if (animatorParaListBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - animatorParaList_ = java.util.Collections.unmodifiableList(animatorParaList_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.animatorParaList_ = animatorParaList_; - } else { - result.animatorParaList_ = animatorParaListBuilder_.build(); - } - if (entityCase_ == 10) { - if (avatarBuilder_ == null) { - result.entity_ = entity_; - } else { - result.entity_ = avatarBuilder_.build(); - } - } - if (entityCase_ == 11) { - if (monsterBuilder_ == null) { - result.entity_ = entity_; - } else { - result.entity_ = monsterBuilder_.build(); - } - } - if (entityCase_ == 12) { - if (npcBuilder_ == null) { - result.entity_ = entity_; - } else { - result.entity_ = npcBuilder_.build(); - } - } - if (entityCase_ == 13) { - if (gadgetBuilder_ == null) { - result.entity_ = entity_; - } else { - result.entity_ = gadgetBuilder_.build(); - } - } - result.lastMoveSceneTimeMs_ = lastMoveSceneTimeMs_; - result.lastMoveReliableSeq_ = lastMoveReliableSeq_; - if (entityClientDataBuilder_ == null) { - result.entityClientData_ = entityClientData_; - } else { - result.entityClientData_ = entityClientDataBuilder_.build(); - } - if (entityEnvironmentInfoListBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - entityEnvironmentInfoList_ = java.util.Collections.unmodifiableList(entityEnvironmentInfoList_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.entityEnvironmentInfoList_ = entityEnvironmentInfoList_; - } else { - result.entityEnvironmentInfoList_ = entityEnvironmentInfoListBuilder_.build(); - } - if (entityAuthorityInfoBuilder_ == null) { - result.entityAuthorityInfo_ = entityAuthorityInfo_; - } else { - result.entityAuthorityInfo_ = entityAuthorityInfoBuilder_.build(); - } - if (((bitField0_ & 0x00000010) != 0)) { - tagList_ = tagList_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.tagList_ = tagList_; - result.entityCase_ = entityCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo) { - return mergeFrom((emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo other) { - if (other == emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.getDefaultInstance()) return this; - if (other.entityType_ != 0) { - setEntityTypeValue(other.getEntityTypeValue()); - } - if (other.getEntityId() != 0) { - setEntityId(other.getEntityId()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasMotionInfo()) { - mergeMotionInfo(other.getMotionInfo()); - } - if (propListBuilder_ == null) { - if (!other.propList_.isEmpty()) { - if (propList_.isEmpty()) { - propList_ = other.propList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePropListIsMutable(); - propList_.addAll(other.propList_); - } - onChanged(); - } - } else { - if (!other.propList_.isEmpty()) { - if (propListBuilder_.isEmpty()) { - propListBuilder_.dispose(); - propListBuilder_ = null; - propList_ = other.propList_; - bitField0_ = (bitField0_ & ~0x00000001); - propListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPropListFieldBuilder() : null; - } else { - propListBuilder_.addAllMessages(other.propList_); - } - } - } - if (fightPropListBuilder_ == null) { - if (!other.fightPropList_.isEmpty()) { - if (fightPropList_.isEmpty()) { - fightPropList_ = other.fightPropList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureFightPropListIsMutable(); - fightPropList_.addAll(other.fightPropList_); - } - onChanged(); - } - } else { - if (!other.fightPropList_.isEmpty()) { - if (fightPropListBuilder_.isEmpty()) { - fightPropListBuilder_.dispose(); - fightPropListBuilder_ = null; - fightPropList_ = other.fightPropList_; - bitField0_ = (bitField0_ & ~0x00000002); - fightPropListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFightPropListFieldBuilder() : null; - } else { - fightPropListBuilder_.addAllMessages(other.fightPropList_); - } - } - } - if (other.getLifeState() != 0) { - setLifeState(other.getLifeState()); - } - if (animatorParaListBuilder_ == null) { - if (!other.animatorParaList_.isEmpty()) { - if (animatorParaList_.isEmpty()) { - animatorParaList_ = other.animatorParaList_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureAnimatorParaListIsMutable(); - animatorParaList_.addAll(other.animatorParaList_); - } - onChanged(); - } - } else { - if (!other.animatorParaList_.isEmpty()) { - if (animatorParaListBuilder_.isEmpty()) { - animatorParaListBuilder_.dispose(); - animatorParaListBuilder_ = null; - animatorParaList_ = other.animatorParaList_; - bitField0_ = (bitField0_ & ~0x00000004); - animatorParaListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAnimatorParaListFieldBuilder() : null; - } else { - animatorParaListBuilder_.addAllMessages(other.animatorParaList_); - } - } - } - if (other.getLastMoveSceneTimeMs() != 0) { - setLastMoveSceneTimeMs(other.getLastMoveSceneTimeMs()); - } - if (other.getLastMoveReliableSeq() != 0) { - setLastMoveReliableSeq(other.getLastMoveReliableSeq()); - } - if (other.hasEntityClientData()) { - mergeEntityClientData(other.getEntityClientData()); - } - if (entityEnvironmentInfoListBuilder_ == null) { - if (!other.entityEnvironmentInfoList_.isEmpty()) { - if (entityEnvironmentInfoList_.isEmpty()) { - entityEnvironmentInfoList_ = other.entityEnvironmentInfoList_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureEntityEnvironmentInfoListIsMutable(); - entityEnvironmentInfoList_.addAll(other.entityEnvironmentInfoList_); - } - onChanged(); - } - } else { - if (!other.entityEnvironmentInfoList_.isEmpty()) { - if (entityEnvironmentInfoListBuilder_.isEmpty()) { - entityEnvironmentInfoListBuilder_.dispose(); - entityEnvironmentInfoListBuilder_ = null; - entityEnvironmentInfoList_ = other.entityEnvironmentInfoList_; - bitField0_ = (bitField0_ & ~0x00000008); - entityEnvironmentInfoListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEntityEnvironmentInfoListFieldBuilder() : null; - } else { - entityEnvironmentInfoListBuilder_.addAllMessages(other.entityEnvironmentInfoList_); - } - } - } - if (other.hasEntityAuthorityInfo()) { - mergeEntityAuthorityInfo(other.getEntityAuthorityInfo()); - } - if (!other.tagList_.isEmpty()) { - if (tagList_.isEmpty()) { - tagList_ = other.tagList_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureTagListIsMutable(); - tagList_.addAll(other.tagList_); - } - onChanged(); - } - switch (other.getEntityCase()) { - case AVATAR: { - mergeAvatar(other.getAvatar()); - break; - } - case MONSTER: { - mergeMonster(other.getMonster()); - break; - } - case NPC: { - mergeNpc(other.getNpc()); - break; - } - case GADGET: { - mergeGadget(other.getGadget()); - break; - } - case ENTITY_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int entityCase_ = 0; - private java.lang.Object entity_; - public EntityCase - getEntityCase() { - return EntityCase.forNumber( - entityCase_); - } - - public Builder clearEntity() { - entityCase_ = 0; - entity_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private int entityType_ = 0; - /** - * <code>.ProtEntityType entityType = 1;</code> - * @return The enum numeric value on the wire for entityType. - */ - @java.lang.Override public int getEntityTypeValue() { - return entityType_; - } - /** - * <code>.ProtEntityType entityType = 1;</code> - * @param value The enum numeric value on the wire for entityType to set. - * @return This builder for chaining. - */ - public Builder setEntityTypeValue(int value) { - - entityType_ = value; - onChanged(); - return this; - } - /** - * <code>.ProtEntityType entityType = 1;</code> - * @return The entityType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ProtEntityTypeOuterClass.ProtEntityType getEntityType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.ProtEntityTypeOuterClass.ProtEntityType result = emu.grasscutter.net.proto.ProtEntityTypeOuterClass.ProtEntityType.valueOf(entityType_); - return result == null ? emu.grasscutter.net.proto.ProtEntityTypeOuterClass.ProtEntityType.UNRECOGNIZED : result; - } - /** - * <code>.ProtEntityType entityType = 1;</code> - * @param value The entityType to set. - * @return This builder for chaining. - */ - public Builder setEntityType(emu.grasscutter.net.proto.ProtEntityTypeOuterClass.ProtEntityType value) { - if (value == null) { - throw new NullPointerException(); - } - - entityType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.ProtEntityType entityType = 1;</code> - * @return This builder for chaining. - */ - public Builder clearEntityType() { - - entityType_ = 0; - onChanged(); - return this; - } - - private int entityId_ ; - /** - * <code>uint32 entityId = 2;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - /** - * <code>uint32 entityId = 2;</code> - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId(int value) { - - entityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 entityId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearEntityId() { - - entityId_ = 0; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * <code>string name = 3;</code> - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string name = 3;</code> - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string name = 3;</code> - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * <code>string name = 3;</code> - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * <code>string name = 3;</code> - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo motionInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo, emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.Builder, emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfoOrBuilder> motionInfoBuilder_; - /** - * <code>.MotionInfo motionInfo = 4;</code> - * @return Whether the motionInfo field is set. - */ - public boolean hasMotionInfo() { - return motionInfoBuilder_ != null || motionInfo_ != null; - } - /** - * <code>.MotionInfo motionInfo = 4;</code> - * @return The motionInfo. - */ - public emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo getMotionInfo() { - if (motionInfoBuilder_ == null) { - return motionInfo_ == null ? emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.getDefaultInstance() : motionInfo_; - } else { - return motionInfoBuilder_.getMessage(); - } - } - /** - * <code>.MotionInfo motionInfo = 4;</code> - */ - public Builder setMotionInfo(emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo value) { - if (motionInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - motionInfo_ = value; - onChanged(); - } else { - motionInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.MotionInfo motionInfo = 4;</code> - */ - public Builder setMotionInfo( - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.Builder builderForValue) { - if (motionInfoBuilder_ == null) { - motionInfo_ = builderForValue.build(); - onChanged(); - } else { - motionInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.MotionInfo motionInfo = 4;</code> - */ - public Builder mergeMotionInfo(emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo value) { - if (motionInfoBuilder_ == null) { - if (motionInfo_ != null) { - motionInfo_ = - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.newBuilder(motionInfo_).mergeFrom(value).buildPartial(); - } else { - motionInfo_ = value; - } - onChanged(); - } else { - motionInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.MotionInfo motionInfo = 4;</code> - */ - public Builder clearMotionInfo() { - if (motionInfoBuilder_ == null) { - motionInfo_ = null; - onChanged(); - } else { - motionInfo_ = null; - motionInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.MotionInfo motionInfo = 4;</code> - */ - public emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.Builder getMotionInfoBuilder() { - - onChanged(); - return getMotionInfoFieldBuilder().getBuilder(); - } - /** - * <code>.MotionInfo motionInfo = 4;</code> - */ - public emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfoOrBuilder getMotionInfoOrBuilder() { - if (motionInfoBuilder_ != null) { - return motionInfoBuilder_.getMessageOrBuilder(); - } else { - return motionInfo_ == null ? - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.getDefaultInstance() : motionInfo_; - } - } - /** - * <code>.MotionInfo motionInfo = 4;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo, emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.Builder, emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfoOrBuilder> - getMotionInfoFieldBuilder() { - if (motionInfoBuilder_ == null) { - motionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo, emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.Builder, emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfoOrBuilder>( - getMotionInfo(), - getParentForChildren(), - isClean()); - motionInfo_ = null; - } - return motionInfoBuilder_; - } - - private java.util.List<emu.grasscutter.net.proto.PropPairOuterClass.PropPair> propList_ = - java.util.Collections.emptyList(); - private void ensurePropListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - propList_ = new java.util.ArrayList<emu.grasscutter.net.proto.PropPairOuterClass.PropPair>(propList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.PropPairOuterClass.PropPair, emu.grasscutter.net.proto.PropPairOuterClass.PropPair.Builder, emu.grasscutter.net.proto.PropPairOuterClass.PropPairOrBuilder> propListBuilder_; - - /** - * <code>repeated .PropPair propList = 5;</code> - */ - public java.util.List<emu.grasscutter.net.proto.PropPairOuterClass.PropPair> getPropListList() { - if (propListBuilder_ == null) { - return java.util.Collections.unmodifiableList(propList_); - } else { - return propListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .PropPair propList = 5;</code> - */ - public int getPropListCount() { - if (propListBuilder_ == null) { - return propList_.size(); - } else { - return propListBuilder_.getCount(); - } - } - /** - * <code>repeated .PropPair propList = 5;</code> - */ - public emu.grasscutter.net.proto.PropPairOuterClass.PropPair getPropList(int index) { - if (propListBuilder_ == null) { - return propList_.get(index); - } else { - return propListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .PropPair propList = 5;</code> - */ - public Builder setPropList( - int index, emu.grasscutter.net.proto.PropPairOuterClass.PropPair value) { - if (propListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropListIsMutable(); - propList_.set(index, value); - onChanged(); - } else { - propListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .PropPair propList = 5;</code> - */ - public Builder setPropList( - int index, emu.grasscutter.net.proto.PropPairOuterClass.PropPair.Builder builderForValue) { - if (propListBuilder_ == null) { - ensurePropListIsMutable(); - propList_.set(index, builderForValue.build()); - onChanged(); - } else { - propListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .PropPair propList = 5;</code> - */ - public Builder addPropList(emu.grasscutter.net.proto.PropPairOuterClass.PropPair value) { - if (propListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropListIsMutable(); - propList_.add(value); - onChanged(); - } else { - propListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .PropPair propList = 5;</code> - */ - public Builder addPropList( - int index, emu.grasscutter.net.proto.PropPairOuterClass.PropPair value) { - if (propListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropListIsMutable(); - propList_.add(index, value); - onChanged(); - } else { - propListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .PropPair propList = 5;</code> - */ - public Builder addPropList( - emu.grasscutter.net.proto.PropPairOuterClass.PropPair.Builder builderForValue) { - if (propListBuilder_ == null) { - ensurePropListIsMutable(); - propList_.add(builderForValue.build()); - onChanged(); - } else { - propListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .PropPair propList = 5;</code> - */ - public Builder addPropList( - int index, emu.grasscutter.net.proto.PropPairOuterClass.PropPair.Builder builderForValue) { - if (propListBuilder_ == null) { - ensurePropListIsMutable(); - propList_.add(index, builderForValue.build()); - onChanged(); - } else { - propListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .PropPair propList = 5;</code> - */ - public Builder addAllPropList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.PropPairOuterClass.PropPair> values) { - if (propListBuilder_ == null) { - ensurePropListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, propList_); - onChanged(); - } else { - propListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .PropPair propList = 5;</code> - */ - public Builder clearPropList() { - if (propListBuilder_ == null) { - propList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - propListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .PropPair propList = 5;</code> - */ - public Builder removePropList(int index) { - if (propListBuilder_ == null) { - ensurePropListIsMutable(); - propList_.remove(index); - onChanged(); - } else { - propListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .PropPair propList = 5;</code> - */ - public emu.grasscutter.net.proto.PropPairOuterClass.PropPair.Builder getPropListBuilder( - int index) { - return getPropListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .PropPair propList = 5;</code> - */ - public emu.grasscutter.net.proto.PropPairOuterClass.PropPairOrBuilder getPropListOrBuilder( - int index) { - if (propListBuilder_ == null) { - return propList_.get(index); } else { - return propListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .PropPair propList = 5;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.PropPairOuterClass.PropPairOrBuilder> - getPropListOrBuilderList() { - if (propListBuilder_ != null) { - return propListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(propList_); - } - } - /** - * <code>repeated .PropPair propList = 5;</code> - */ - public emu.grasscutter.net.proto.PropPairOuterClass.PropPair.Builder addPropListBuilder() { - return getPropListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.PropPairOuterClass.PropPair.getDefaultInstance()); - } - /** - * <code>repeated .PropPair propList = 5;</code> - */ - public emu.grasscutter.net.proto.PropPairOuterClass.PropPair.Builder addPropListBuilder( - int index) { - return getPropListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.PropPairOuterClass.PropPair.getDefaultInstance()); - } - /** - * <code>repeated .PropPair propList = 5;</code> - */ - public java.util.List<emu.grasscutter.net.proto.PropPairOuterClass.PropPair.Builder> - getPropListBuilderList() { - return getPropListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.PropPairOuterClass.PropPair, emu.grasscutter.net.proto.PropPairOuterClass.PropPair.Builder, emu.grasscutter.net.proto.PropPairOuterClass.PropPairOrBuilder> - getPropListFieldBuilder() { - if (propListBuilder_ == null) { - propListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.PropPairOuterClass.PropPair, emu.grasscutter.net.proto.PropPairOuterClass.PropPair.Builder, emu.grasscutter.net.proto.PropPairOuterClass.PropPairOrBuilder>( - propList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - propList_ = null; - } - return propListBuilder_; - } - - private java.util.List<emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair> fightPropList_ = - java.util.Collections.emptyList(); - private void ensureFightPropListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - fightPropList_ = new java.util.ArrayList<emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair>(fightPropList_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair, emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair.Builder, emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPairOrBuilder> fightPropListBuilder_; - - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - public java.util.List<emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair> getFightPropListList() { - if (fightPropListBuilder_ == null) { - return java.util.Collections.unmodifiableList(fightPropList_); - } else { - return fightPropListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - public int getFightPropListCount() { - if (fightPropListBuilder_ == null) { - return fightPropList_.size(); - } else { - return fightPropListBuilder_.getCount(); - } - } - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - public emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair getFightPropList(int index) { - if (fightPropListBuilder_ == null) { - return fightPropList_.get(index); - } else { - return fightPropListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - public Builder setFightPropList( - int index, emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair value) { - if (fightPropListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFightPropListIsMutable(); - fightPropList_.set(index, value); - onChanged(); - } else { - fightPropListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - public Builder setFightPropList( - int index, emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair.Builder builderForValue) { - if (fightPropListBuilder_ == null) { - ensureFightPropListIsMutable(); - fightPropList_.set(index, builderForValue.build()); - onChanged(); - } else { - fightPropListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - public Builder addFightPropList(emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair value) { - if (fightPropListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFightPropListIsMutable(); - fightPropList_.add(value); - onChanged(); - } else { - fightPropListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - public Builder addFightPropList( - int index, emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair value) { - if (fightPropListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFightPropListIsMutable(); - fightPropList_.add(index, value); - onChanged(); - } else { - fightPropListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - public Builder addFightPropList( - emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair.Builder builderForValue) { - if (fightPropListBuilder_ == null) { - ensureFightPropListIsMutable(); - fightPropList_.add(builderForValue.build()); - onChanged(); - } else { - fightPropListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - public Builder addFightPropList( - int index, emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair.Builder builderForValue) { - if (fightPropListBuilder_ == null) { - ensureFightPropListIsMutable(); - fightPropList_.add(index, builderForValue.build()); - onChanged(); - } else { - fightPropListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - public Builder addAllFightPropList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair> values) { - if (fightPropListBuilder_ == null) { - ensureFightPropListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fightPropList_); - onChanged(); - } else { - fightPropListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - public Builder clearFightPropList() { - if (fightPropListBuilder_ == null) { - fightPropList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - fightPropListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - public Builder removeFightPropList(int index) { - if (fightPropListBuilder_ == null) { - ensureFightPropListIsMutable(); - fightPropList_.remove(index); - onChanged(); - } else { - fightPropListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - public emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair.Builder getFightPropListBuilder( - int index) { - return getFightPropListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - public emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPairOrBuilder getFightPropListOrBuilder( - int index) { - if (fightPropListBuilder_ == null) { - return fightPropList_.get(index); } else { - return fightPropListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPairOrBuilder> - getFightPropListOrBuilderList() { - if (fightPropListBuilder_ != null) { - return fightPropListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(fightPropList_); - } - } - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - public emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair.Builder addFightPropListBuilder() { - return getFightPropListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair.getDefaultInstance()); - } - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - public emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair.Builder addFightPropListBuilder( - int index) { - return getFightPropListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair.getDefaultInstance()); - } - /** - * <code>repeated .FightPropPair fightPropList = 6;</code> - */ - public java.util.List<emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair.Builder> - getFightPropListBuilderList() { - return getFightPropListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair, emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair.Builder, emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPairOrBuilder> - getFightPropListFieldBuilder() { - if (fightPropListBuilder_ == null) { - fightPropListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair, emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair.Builder, emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPairOrBuilder>( - fightPropList_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - fightPropList_ = null; - } - return fightPropListBuilder_; - } - - private int lifeState_ ; - /** - * <code>uint32 lifeState = 7;</code> - * @return The lifeState. - */ - @java.lang.Override - public int getLifeState() { - return lifeState_; - } - /** - * <code>uint32 lifeState = 7;</code> - * @param value The lifeState to set. - * @return This builder for chaining. - */ - public Builder setLifeState(int value) { - - lifeState_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 lifeState = 7;</code> - * @return This builder for chaining. - */ - public Builder clearLifeState() { - - lifeState_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair> animatorParaList_ = - java.util.Collections.emptyList(); - private void ensureAnimatorParaListIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - animatorParaList_ = new java.util.ArrayList<emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair>(animatorParaList_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair, emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder, emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPairOrBuilder> animatorParaListBuilder_; - - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair> getAnimatorParaListList() { - if (animatorParaListBuilder_ == null) { - return java.util.Collections.unmodifiableList(animatorParaList_); - } else { - return animatorParaListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - public int getAnimatorParaListCount() { - if (animatorParaListBuilder_ == null) { - return animatorParaList_.size(); - } else { - return animatorParaListBuilder_.getCount(); - } - } - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair getAnimatorParaList(int index) { - if (animatorParaListBuilder_ == null) { - return animatorParaList_.get(index); - } else { - return animatorParaListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - public Builder setAnimatorParaList( - int index, emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair value) { - if (animatorParaListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAnimatorParaListIsMutable(); - animatorParaList_.set(index, value); - onChanged(); - } else { - animatorParaListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - public Builder setAnimatorParaList( - int index, emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder builderForValue) { - if (animatorParaListBuilder_ == null) { - ensureAnimatorParaListIsMutable(); - animatorParaList_.set(index, builderForValue.build()); - onChanged(); - } else { - animatorParaListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - public Builder addAnimatorParaList(emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair value) { - if (animatorParaListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAnimatorParaListIsMutable(); - animatorParaList_.add(value); - onChanged(); - } else { - animatorParaListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - public Builder addAnimatorParaList( - int index, emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair value) { - if (animatorParaListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAnimatorParaListIsMutable(); - animatorParaList_.add(index, value); - onChanged(); - } else { - animatorParaListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - public Builder addAnimatorParaList( - emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder builderForValue) { - if (animatorParaListBuilder_ == null) { - ensureAnimatorParaListIsMutable(); - animatorParaList_.add(builderForValue.build()); - onChanged(); - } else { - animatorParaListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - public Builder addAnimatorParaList( - int index, emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder builderForValue) { - if (animatorParaListBuilder_ == null) { - ensureAnimatorParaListIsMutable(); - animatorParaList_.add(index, builderForValue.build()); - onChanged(); - } else { - animatorParaListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - public Builder addAllAnimatorParaList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair> values) { - if (animatorParaListBuilder_ == null) { - ensureAnimatorParaListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, animatorParaList_); - onChanged(); - } else { - animatorParaListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - public Builder clearAnimatorParaList() { - if (animatorParaListBuilder_ == null) { - animatorParaList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - animatorParaListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - public Builder removeAnimatorParaList(int index) { - if (animatorParaListBuilder_ == null) { - ensureAnimatorParaListIsMutable(); - animatorParaList_.remove(index); - onChanged(); - } else { - animatorParaListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder getAnimatorParaListBuilder( - int index) { - return getAnimatorParaListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPairOrBuilder getAnimatorParaListOrBuilder( - int index) { - if (animatorParaListBuilder_ == null) { - return animatorParaList_.get(index); } else { - return animatorParaListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPairOrBuilder> - getAnimatorParaListOrBuilderList() { - if (animatorParaListBuilder_ != null) { - return animatorParaListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(animatorParaList_); - } - } - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder addAnimatorParaListBuilder() { - return getAnimatorParaListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.getDefaultInstance()); - } - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder addAnimatorParaListBuilder( - int index) { - return getAnimatorParaListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.getDefaultInstance()); - } - /** - * <code>repeated .AnimatorParameterValueInfoPair animatorParaList = 9;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder> - getAnimatorParaListBuilderList() { - return getAnimatorParaListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair, emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder, emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPairOrBuilder> - getAnimatorParaListFieldBuilder() { - if (animatorParaListBuilder_ == null) { - animatorParaListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair, emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder, emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPairOrBuilder>( - animatorParaList_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - animatorParaList_ = null; - } - return animatorParaListBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo, emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.Builder, emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfoOrBuilder> avatarBuilder_; - /** - * <code>.SceneAvatarInfo avatar = 10;</code> - * @return Whether the avatar field is set. - */ - @java.lang.Override - public boolean hasAvatar() { - return entityCase_ == 10; - } - /** - * <code>.SceneAvatarInfo avatar = 10;</code> - * @return The avatar. - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo getAvatar() { - if (avatarBuilder_ == null) { - if (entityCase_ == 10) { - return (emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo) entity_; - } - return emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.getDefaultInstance(); - } else { - if (entityCase_ == 10) { - return avatarBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.getDefaultInstance(); - } - } - /** - * <code>.SceneAvatarInfo avatar = 10;</code> - */ - public Builder setAvatar(emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo value) { - if (avatarBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entity_ = value; - onChanged(); - } else { - avatarBuilder_.setMessage(value); - } - entityCase_ = 10; - return this; - } - /** - * <code>.SceneAvatarInfo avatar = 10;</code> - */ - public Builder setAvatar( - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.Builder builderForValue) { - if (avatarBuilder_ == null) { - entity_ = builderForValue.build(); - onChanged(); - } else { - avatarBuilder_.setMessage(builderForValue.build()); - } - entityCase_ = 10; - return this; - } - /** - * <code>.SceneAvatarInfo avatar = 10;</code> - */ - public Builder mergeAvatar(emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo value) { - if (avatarBuilder_ == null) { - if (entityCase_ == 10 && - entity_ != emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.getDefaultInstance()) { - entity_ = emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.newBuilder((emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo) entity_) - .mergeFrom(value).buildPartial(); - } else { - entity_ = value; - } - onChanged(); - } else { - if (entityCase_ == 10) { - avatarBuilder_.mergeFrom(value); - } - avatarBuilder_.setMessage(value); - } - entityCase_ = 10; - return this; - } - /** - * <code>.SceneAvatarInfo avatar = 10;</code> - */ - public Builder clearAvatar() { - if (avatarBuilder_ == null) { - if (entityCase_ == 10) { - entityCase_ = 0; - entity_ = null; - onChanged(); - } - } else { - if (entityCase_ == 10) { - entityCase_ = 0; - entity_ = null; - } - avatarBuilder_.clear(); - } - return this; - } - /** - * <code>.SceneAvatarInfo avatar = 10;</code> - */ - public emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.Builder getAvatarBuilder() { - return getAvatarFieldBuilder().getBuilder(); - } - /** - * <code>.SceneAvatarInfo avatar = 10;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfoOrBuilder getAvatarOrBuilder() { - if ((entityCase_ == 10) && (avatarBuilder_ != null)) { - return avatarBuilder_.getMessageOrBuilder(); - } else { - if (entityCase_ == 10) { - return (emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo) entity_; - } - return emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.getDefaultInstance(); - } - } - /** - * <code>.SceneAvatarInfo avatar = 10;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo, emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.Builder, emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfoOrBuilder> - getAvatarFieldBuilder() { - if (avatarBuilder_ == null) { - if (!(entityCase_ == 10)) { - entity_ = emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.getDefaultInstance(); - } - avatarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo, emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.Builder, emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfoOrBuilder>( - (emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo) entity_, - getParentForChildren(), - isClean()); - entity_ = null; - } - entityCase_ = 10; - onChanged();; - return avatarBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo, emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo.Builder, emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfoOrBuilder> monsterBuilder_; - /** - * <code>.SceneMonsterInfo monster = 11;</code> - * @return Whether the monster field is set. - */ - @java.lang.Override - public boolean hasMonster() { - return entityCase_ == 11; - } - /** - * <code>.SceneMonsterInfo monster = 11;</code> - * @return The monster. - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo getMonster() { - if (monsterBuilder_ == null) { - if (entityCase_ == 11) { - return (emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo) entity_; - } - return emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo.getDefaultInstance(); - } else { - if (entityCase_ == 11) { - return monsterBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo.getDefaultInstance(); - } - } - /** - * <code>.SceneMonsterInfo monster = 11;</code> - */ - public Builder setMonster(emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo value) { - if (monsterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entity_ = value; - onChanged(); - } else { - monsterBuilder_.setMessage(value); - } - entityCase_ = 11; - return this; - } - /** - * <code>.SceneMonsterInfo monster = 11;</code> - */ - public Builder setMonster( - emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo.Builder builderForValue) { - if (monsterBuilder_ == null) { - entity_ = builderForValue.build(); - onChanged(); - } else { - monsterBuilder_.setMessage(builderForValue.build()); - } - entityCase_ = 11; - return this; - } - /** - * <code>.SceneMonsterInfo monster = 11;</code> - */ - public Builder mergeMonster(emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo value) { - if (monsterBuilder_ == null) { - if (entityCase_ == 11 && - entity_ != emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo.getDefaultInstance()) { - entity_ = emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo.newBuilder((emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo) entity_) - .mergeFrom(value).buildPartial(); - } else { - entity_ = value; - } - onChanged(); - } else { - if (entityCase_ == 11) { - monsterBuilder_.mergeFrom(value); - } - monsterBuilder_.setMessage(value); - } - entityCase_ = 11; - return this; - } - /** - * <code>.SceneMonsterInfo monster = 11;</code> - */ - public Builder clearMonster() { - if (monsterBuilder_ == null) { - if (entityCase_ == 11) { - entityCase_ = 0; - entity_ = null; - onChanged(); - } - } else { - if (entityCase_ == 11) { - entityCase_ = 0; - entity_ = null; - } - monsterBuilder_.clear(); - } - return this; - } - /** - * <code>.SceneMonsterInfo monster = 11;</code> - */ - public emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo.Builder getMonsterBuilder() { - return getMonsterFieldBuilder().getBuilder(); - } - /** - * <code>.SceneMonsterInfo monster = 11;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfoOrBuilder getMonsterOrBuilder() { - if ((entityCase_ == 11) && (monsterBuilder_ != null)) { - return monsterBuilder_.getMessageOrBuilder(); - } else { - if (entityCase_ == 11) { - return (emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo) entity_; - } - return emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo.getDefaultInstance(); - } - } - /** - * <code>.SceneMonsterInfo monster = 11;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo, emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo.Builder, emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfoOrBuilder> - getMonsterFieldBuilder() { - if (monsterBuilder_ == null) { - if (!(entityCase_ == 11)) { - entity_ = emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo.getDefaultInstance(); - } - monsterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo, emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo.Builder, emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfoOrBuilder>( - (emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo) entity_, - getParentForChildren(), - isClean()); - entity_ = null; - } - entityCase_ = 11; - onChanged();; - return monsterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo, emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo.Builder, emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfoOrBuilder> npcBuilder_; - /** - * <code>.SceneNpcInfo npc = 12;</code> - * @return Whether the npc field is set. - */ - @java.lang.Override - public boolean hasNpc() { - return entityCase_ == 12; - } - /** - * <code>.SceneNpcInfo npc = 12;</code> - * @return The npc. - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo getNpc() { - if (npcBuilder_ == null) { - if (entityCase_ == 12) { - return (emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo) entity_; - } - return emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo.getDefaultInstance(); - } else { - if (entityCase_ == 12) { - return npcBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo.getDefaultInstance(); - } - } - /** - * <code>.SceneNpcInfo npc = 12;</code> - */ - public Builder setNpc(emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo value) { - if (npcBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entity_ = value; - onChanged(); - } else { - npcBuilder_.setMessage(value); - } - entityCase_ = 12; - return this; - } - /** - * <code>.SceneNpcInfo npc = 12;</code> - */ - public Builder setNpc( - emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo.Builder builderForValue) { - if (npcBuilder_ == null) { - entity_ = builderForValue.build(); - onChanged(); - } else { - npcBuilder_.setMessage(builderForValue.build()); - } - entityCase_ = 12; - return this; - } - /** - * <code>.SceneNpcInfo npc = 12;</code> - */ - public Builder mergeNpc(emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo value) { - if (npcBuilder_ == null) { - if (entityCase_ == 12 && - entity_ != emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo.getDefaultInstance()) { - entity_ = emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo.newBuilder((emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo) entity_) - .mergeFrom(value).buildPartial(); - } else { - entity_ = value; - } - onChanged(); - } else { - if (entityCase_ == 12) { - npcBuilder_.mergeFrom(value); - } - npcBuilder_.setMessage(value); - } - entityCase_ = 12; - return this; - } - /** - * <code>.SceneNpcInfo npc = 12;</code> - */ - public Builder clearNpc() { - if (npcBuilder_ == null) { - if (entityCase_ == 12) { - entityCase_ = 0; - entity_ = null; - onChanged(); - } - } else { - if (entityCase_ == 12) { - entityCase_ = 0; - entity_ = null; - } - npcBuilder_.clear(); - } - return this; - } - /** - * <code>.SceneNpcInfo npc = 12;</code> - */ - public emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo.Builder getNpcBuilder() { - return getNpcFieldBuilder().getBuilder(); - } - /** - * <code>.SceneNpcInfo npc = 12;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfoOrBuilder getNpcOrBuilder() { - if ((entityCase_ == 12) && (npcBuilder_ != null)) { - return npcBuilder_.getMessageOrBuilder(); - } else { - if (entityCase_ == 12) { - return (emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo) entity_; - } - return emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo.getDefaultInstance(); - } - } - /** - * <code>.SceneNpcInfo npc = 12;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo, emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo.Builder, emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfoOrBuilder> - getNpcFieldBuilder() { - if (npcBuilder_ == null) { - if (!(entityCase_ == 12)) { - entity_ = emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo.getDefaultInstance(); - } - npcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo, emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo.Builder, emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfoOrBuilder>( - (emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo) entity_, - getParentForChildren(), - isClean()); - entity_ = null; - } - entityCase_ = 12; - onChanged();; - return npcBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo, emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo.Builder, emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfoOrBuilder> gadgetBuilder_; - /** - * <code>.SceneGadgetInfo gadget = 13;</code> - * @return Whether the gadget field is set. - */ - @java.lang.Override - public boolean hasGadget() { - return entityCase_ == 13; - } - /** - * <code>.SceneGadgetInfo gadget = 13;</code> - * @return The gadget. - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo getGadget() { - if (gadgetBuilder_ == null) { - if (entityCase_ == 13) { - return (emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo) entity_; - } - return emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo.getDefaultInstance(); - } else { - if (entityCase_ == 13) { - return gadgetBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo.getDefaultInstance(); - } - } - /** - * <code>.SceneGadgetInfo gadget = 13;</code> - */ - public Builder setGadget(emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo value) { - if (gadgetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entity_ = value; - onChanged(); - } else { - gadgetBuilder_.setMessage(value); - } - entityCase_ = 13; - return this; - } - /** - * <code>.SceneGadgetInfo gadget = 13;</code> - */ - public Builder setGadget( - emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo.Builder builderForValue) { - if (gadgetBuilder_ == null) { - entity_ = builderForValue.build(); - onChanged(); - } else { - gadgetBuilder_.setMessage(builderForValue.build()); - } - entityCase_ = 13; - return this; - } - /** - * <code>.SceneGadgetInfo gadget = 13;</code> - */ - public Builder mergeGadget(emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo value) { - if (gadgetBuilder_ == null) { - if (entityCase_ == 13 && - entity_ != emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo.getDefaultInstance()) { - entity_ = emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo.newBuilder((emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo) entity_) - .mergeFrom(value).buildPartial(); - } else { - entity_ = value; - } - onChanged(); - } else { - if (entityCase_ == 13) { - gadgetBuilder_.mergeFrom(value); - } - gadgetBuilder_.setMessage(value); - } - entityCase_ = 13; - return this; - } - /** - * <code>.SceneGadgetInfo gadget = 13;</code> - */ - public Builder clearGadget() { - if (gadgetBuilder_ == null) { - if (entityCase_ == 13) { - entityCase_ = 0; - entity_ = null; - onChanged(); - } - } else { - if (entityCase_ == 13) { - entityCase_ = 0; - entity_ = null; - } - gadgetBuilder_.clear(); - } - return this; - } - /** - * <code>.SceneGadgetInfo gadget = 13;</code> - */ - public emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo.Builder getGadgetBuilder() { - return getGadgetFieldBuilder().getBuilder(); - } - /** - * <code>.SceneGadgetInfo gadget = 13;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfoOrBuilder getGadgetOrBuilder() { - if ((entityCase_ == 13) && (gadgetBuilder_ != null)) { - return gadgetBuilder_.getMessageOrBuilder(); - } else { - if (entityCase_ == 13) { - return (emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo) entity_; - } - return emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo.getDefaultInstance(); - } - } - /** - * <code>.SceneGadgetInfo gadget = 13;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo, emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo.Builder, emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfoOrBuilder> - getGadgetFieldBuilder() { - if (gadgetBuilder_ == null) { - if (!(entityCase_ == 13)) { - entity_ = emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo.getDefaultInstance(); - } - gadgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo, emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo.Builder, emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfoOrBuilder>( - (emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo) entity_, - getParentForChildren(), - isClean()); - entity_ = null; - } - entityCase_ = 13; - onChanged();; - return gadgetBuilder_; - } - - private int lastMoveSceneTimeMs_ ; - /** - * <code>uint32 lastMoveSceneTimeMs = 17;</code> - * @return The lastMoveSceneTimeMs. - */ - @java.lang.Override - public int getLastMoveSceneTimeMs() { - return lastMoveSceneTimeMs_; - } - /** - * <code>uint32 lastMoveSceneTimeMs = 17;</code> - * @param value The lastMoveSceneTimeMs to set. - * @return This builder for chaining. - */ - public Builder setLastMoveSceneTimeMs(int value) { - - lastMoveSceneTimeMs_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 lastMoveSceneTimeMs = 17;</code> - * @return This builder for chaining. - */ - public Builder clearLastMoveSceneTimeMs() { - - lastMoveSceneTimeMs_ = 0; - onChanged(); - return this; - } - - private int lastMoveReliableSeq_ ; - /** - * <code>uint32 lastMoveReliableSeq = 18;</code> - * @return The lastMoveReliableSeq. - */ - @java.lang.Override - public int getLastMoveReliableSeq() { - return lastMoveReliableSeq_; - } - /** - * <code>uint32 lastMoveReliableSeq = 18;</code> - * @param value The lastMoveReliableSeq to set. - * @return This builder for chaining. - */ - public Builder setLastMoveReliableSeq(int value) { - - lastMoveReliableSeq_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 lastMoveReliableSeq = 18;</code> - * @return This builder for chaining. - */ - public Builder clearLastMoveReliableSeq() { - - lastMoveReliableSeq_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData entityClientData_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData, emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.Builder, emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientDataOrBuilder> entityClientDataBuilder_; - /** - * <code>.EntityClientData entityClientData = 19;</code> - * @return Whether the entityClientData field is set. - */ - public boolean hasEntityClientData() { - return entityClientDataBuilder_ != null || entityClientData_ != null; - } - /** - * <code>.EntityClientData entityClientData = 19;</code> - * @return The entityClientData. - */ - public emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData getEntityClientData() { - if (entityClientDataBuilder_ == null) { - return entityClientData_ == null ? emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.getDefaultInstance() : entityClientData_; - } else { - return entityClientDataBuilder_.getMessage(); - } - } - /** - * <code>.EntityClientData entityClientData = 19;</code> - */ - public Builder setEntityClientData(emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData value) { - if (entityClientDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entityClientData_ = value; - onChanged(); - } else { - entityClientDataBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.EntityClientData entityClientData = 19;</code> - */ - public Builder setEntityClientData( - emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.Builder builderForValue) { - if (entityClientDataBuilder_ == null) { - entityClientData_ = builderForValue.build(); - onChanged(); - } else { - entityClientDataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.EntityClientData entityClientData = 19;</code> - */ - public Builder mergeEntityClientData(emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData value) { - if (entityClientDataBuilder_ == null) { - if (entityClientData_ != null) { - entityClientData_ = - emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.newBuilder(entityClientData_).mergeFrom(value).buildPartial(); - } else { - entityClientData_ = value; - } - onChanged(); - } else { - entityClientDataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.EntityClientData entityClientData = 19;</code> - */ - public Builder clearEntityClientData() { - if (entityClientDataBuilder_ == null) { - entityClientData_ = null; - onChanged(); - } else { - entityClientData_ = null; - entityClientDataBuilder_ = null; - } - - return this; - } - /** - * <code>.EntityClientData entityClientData = 19;</code> - */ - public emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.Builder getEntityClientDataBuilder() { - - onChanged(); - return getEntityClientDataFieldBuilder().getBuilder(); - } - /** - * <code>.EntityClientData entityClientData = 19;</code> - */ - public emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientDataOrBuilder getEntityClientDataOrBuilder() { - if (entityClientDataBuilder_ != null) { - return entityClientDataBuilder_.getMessageOrBuilder(); - } else { - return entityClientData_ == null ? - emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.getDefaultInstance() : entityClientData_; - } - } - /** - * <code>.EntityClientData entityClientData = 19;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData, emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.Builder, emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientDataOrBuilder> - getEntityClientDataFieldBuilder() { - if (entityClientDataBuilder_ == null) { - entityClientDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData, emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.Builder, emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientDataOrBuilder>( - getEntityClientData(), - getParentForChildren(), - isClean()); - entityClientData_ = null; - } - return entityClientDataBuilder_; - } - - private java.util.List<emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo> entityEnvironmentInfoList_ = - java.util.Collections.emptyList(); - private void ensureEntityEnvironmentInfoListIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - entityEnvironmentInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo>(entityEnvironmentInfoList_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo, emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo.Builder, emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfoOrBuilder> entityEnvironmentInfoListBuilder_; - - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - public java.util.List<emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo> getEntityEnvironmentInfoListList() { - if (entityEnvironmentInfoListBuilder_ == null) { - return java.util.Collections.unmodifiableList(entityEnvironmentInfoList_); - } else { - return entityEnvironmentInfoListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - public int getEntityEnvironmentInfoListCount() { - if (entityEnvironmentInfoListBuilder_ == null) { - return entityEnvironmentInfoList_.size(); - } else { - return entityEnvironmentInfoListBuilder_.getCount(); - } - } - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - public emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo getEntityEnvironmentInfoList(int index) { - if (entityEnvironmentInfoListBuilder_ == null) { - return entityEnvironmentInfoList_.get(index); - } else { - return entityEnvironmentInfoListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - public Builder setEntityEnvironmentInfoList( - int index, emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo value) { - if (entityEnvironmentInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntityEnvironmentInfoListIsMutable(); - entityEnvironmentInfoList_.set(index, value); - onChanged(); - } else { - entityEnvironmentInfoListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - public Builder setEntityEnvironmentInfoList( - int index, emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo.Builder builderForValue) { - if (entityEnvironmentInfoListBuilder_ == null) { - ensureEntityEnvironmentInfoListIsMutable(); - entityEnvironmentInfoList_.set(index, builderForValue.build()); - onChanged(); - } else { - entityEnvironmentInfoListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - public Builder addEntityEnvironmentInfoList(emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo value) { - if (entityEnvironmentInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntityEnvironmentInfoListIsMutable(); - entityEnvironmentInfoList_.add(value); - onChanged(); - } else { - entityEnvironmentInfoListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - public Builder addEntityEnvironmentInfoList( - int index, emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo value) { - if (entityEnvironmentInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntityEnvironmentInfoListIsMutable(); - entityEnvironmentInfoList_.add(index, value); - onChanged(); - } else { - entityEnvironmentInfoListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - public Builder addEntityEnvironmentInfoList( - emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo.Builder builderForValue) { - if (entityEnvironmentInfoListBuilder_ == null) { - ensureEntityEnvironmentInfoListIsMutable(); - entityEnvironmentInfoList_.add(builderForValue.build()); - onChanged(); - } else { - entityEnvironmentInfoListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - public Builder addEntityEnvironmentInfoList( - int index, emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo.Builder builderForValue) { - if (entityEnvironmentInfoListBuilder_ == null) { - ensureEntityEnvironmentInfoListIsMutable(); - entityEnvironmentInfoList_.add(index, builderForValue.build()); - onChanged(); - } else { - entityEnvironmentInfoListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - public Builder addAllEntityEnvironmentInfoList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo> values) { - if (entityEnvironmentInfoListBuilder_ == null) { - ensureEntityEnvironmentInfoListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, entityEnvironmentInfoList_); - onChanged(); - } else { - entityEnvironmentInfoListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - public Builder clearEntityEnvironmentInfoList() { - if (entityEnvironmentInfoListBuilder_ == null) { - entityEnvironmentInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - entityEnvironmentInfoListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - public Builder removeEntityEnvironmentInfoList(int index) { - if (entityEnvironmentInfoListBuilder_ == null) { - ensureEntityEnvironmentInfoListIsMutable(); - entityEnvironmentInfoList_.remove(index); - onChanged(); - } else { - entityEnvironmentInfoListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - public emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo.Builder getEntityEnvironmentInfoListBuilder( - int index) { - return getEntityEnvironmentInfoListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - public emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfoOrBuilder getEntityEnvironmentInfoListOrBuilder( - int index) { - if (entityEnvironmentInfoListBuilder_ == null) { - return entityEnvironmentInfoList_.get(index); } else { - return entityEnvironmentInfoListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfoOrBuilder> - getEntityEnvironmentInfoListOrBuilderList() { - if (entityEnvironmentInfoListBuilder_ != null) { - return entityEnvironmentInfoListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(entityEnvironmentInfoList_); - } - } - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - public emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo.Builder addEntityEnvironmentInfoListBuilder() { - return getEntityEnvironmentInfoListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo.getDefaultInstance()); - } - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - public emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo.Builder addEntityEnvironmentInfoListBuilder( - int index) { - return getEntityEnvironmentInfoListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo.getDefaultInstance()); - } - /** - * <code>repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20;</code> - */ - public java.util.List<emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo.Builder> - getEntityEnvironmentInfoListBuilderList() { - return getEntityEnvironmentInfoListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo, emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo.Builder, emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfoOrBuilder> - getEntityEnvironmentInfoListFieldBuilder() { - if (entityEnvironmentInfoListBuilder_ == null) { - entityEnvironmentInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo, emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo.Builder, emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfoOrBuilder>( - entityEnvironmentInfoList_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - entityEnvironmentInfoList_ = null; - } - return entityEnvironmentInfoListBuilder_; - } - - private emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo entityAuthorityInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo, emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo.Builder, emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfoOrBuilder> entityAuthorityInfoBuilder_; - /** - * <code>.EntityAuthorityInfo entityAuthorityInfo = 21;</code> - * @return Whether the entityAuthorityInfo field is set. - */ - public boolean hasEntityAuthorityInfo() { - return entityAuthorityInfoBuilder_ != null || entityAuthorityInfo_ != null; - } - /** - * <code>.EntityAuthorityInfo entityAuthorityInfo = 21;</code> - * @return The entityAuthorityInfo. - */ - public emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo getEntityAuthorityInfo() { - if (entityAuthorityInfoBuilder_ == null) { - return entityAuthorityInfo_ == null ? emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo.getDefaultInstance() : entityAuthorityInfo_; - } else { - return entityAuthorityInfoBuilder_.getMessage(); - } - } - /** - * <code>.EntityAuthorityInfo entityAuthorityInfo = 21;</code> - */ - public Builder setEntityAuthorityInfo(emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo value) { - if (entityAuthorityInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entityAuthorityInfo_ = value; - onChanged(); - } else { - entityAuthorityInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.EntityAuthorityInfo entityAuthorityInfo = 21;</code> - */ - public Builder setEntityAuthorityInfo( - emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo.Builder builderForValue) { - if (entityAuthorityInfoBuilder_ == null) { - entityAuthorityInfo_ = builderForValue.build(); - onChanged(); - } else { - entityAuthorityInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.EntityAuthorityInfo entityAuthorityInfo = 21;</code> - */ - public Builder mergeEntityAuthorityInfo(emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo value) { - if (entityAuthorityInfoBuilder_ == null) { - if (entityAuthorityInfo_ != null) { - entityAuthorityInfo_ = - emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo.newBuilder(entityAuthorityInfo_).mergeFrom(value).buildPartial(); - } else { - entityAuthorityInfo_ = value; - } - onChanged(); - } else { - entityAuthorityInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.EntityAuthorityInfo entityAuthorityInfo = 21;</code> - */ - public Builder clearEntityAuthorityInfo() { - if (entityAuthorityInfoBuilder_ == null) { - entityAuthorityInfo_ = null; - onChanged(); - } else { - entityAuthorityInfo_ = null; - entityAuthorityInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.EntityAuthorityInfo entityAuthorityInfo = 21;</code> - */ - public emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo.Builder getEntityAuthorityInfoBuilder() { - - onChanged(); - return getEntityAuthorityInfoFieldBuilder().getBuilder(); - } - /** - * <code>.EntityAuthorityInfo entityAuthorityInfo = 21;</code> - */ - public emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfoOrBuilder getEntityAuthorityInfoOrBuilder() { - if (entityAuthorityInfoBuilder_ != null) { - return entityAuthorityInfoBuilder_.getMessageOrBuilder(); - } else { - return entityAuthorityInfo_ == null ? - emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo.getDefaultInstance() : entityAuthorityInfo_; - } - } - /** - * <code>.EntityAuthorityInfo entityAuthorityInfo = 21;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo, emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo.Builder, emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfoOrBuilder> - getEntityAuthorityInfoFieldBuilder() { - if (entityAuthorityInfoBuilder_ == null) { - entityAuthorityInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo, emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo.Builder, emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfoOrBuilder>( - getEntityAuthorityInfo(), - getParentForChildren(), - isClean()); - entityAuthorityInfo_ = null; - } - return entityAuthorityInfoBuilder_; - } - - private com.google.protobuf.LazyStringList tagList_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTagListIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - tagList_ = new com.google.protobuf.LazyStringArrayList(tagList_); - bitField0_ |= 0x00000010; - } - } - /** - * <code>repeated string tagList = 22;</code> - * @return A list containing the tagList. - */ - public com.google.protobuf.ProtocolStringList - getTagListList() { - return tagList_.getUnmodifiableView(); - } - /** - * <code>repeated string tagList = 22;</code> - * @return The count of tagList. - */ - public int getTagListCount() { - return tagList_.size(); - } - /** - * <code>repeated string tagList = 22;</code> - * @param index The index of the element to return. - * @return The tagList at the given index. - */ - public java.lang.String getTagList(int index) { - return tagList_.get(index); - } - /** - * <code>repeated string tagList = 22;</code> - * @param index The index of the value to return. - * @return The bytes of the tagList at the given index. - */ - public com.google.protobuf.ByteString - getTagListBytes(int index) { - return tagList_.getByteString(index); - } - /** - * <code>repeated string tagList = 22;</code> - * @param index The index to set the value at. - * @param value The tagList to set. - * @return This builder for chaining. - */ - public Builder setTagList( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagListIsMutable(); - tagList_.set(index, value); - onChanged(); - return this; - } - /** - * <code>repeated string tagList = 22;</code> - * @param value The tagList to add. - * @return This builder for chaining. - */ - public Builder addTagList( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagListIsMutable(); - tagList_.add(value); - onChanged(); - return this; - } - /** - * <code>repeated string tagList = 22;</code> - * @param values The tagList to add. - * @return This builder for chaining. - */ - public Builder addAllTagList( - java.lang.Iterable<java.lang.String> values) { - ensureTagListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tagList_); - onChanged(); - return this; - } - /** - * <code>repeated string tagList = 22;</code> - * @return This builder for chaining. - */ - public Builder clearTagList() { - tagList_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * <code>repeated string tagList = 22;</code> - * @param value The bytes of the tagList to add. - * @return This builder for chaining. - */ - public Builder addTagListBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTagListIsMutable(); - tagList_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SceneEntityInfo) - } - - // @@protoc_insertion_point(class_scope:SceneEntityInfo) - private static final emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo(); - } - - public static emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SceneEntityInfo> - PARSER = new com.google.protobuf.AbstractParser<SceneEntityInfo>() { - @java.lang.Override - public SceneEntityInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SceneEntityInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SceneEntityInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SceneEntityInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneEntityInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneEntityInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025SceneEntityInfo.proto\032$AnimatorParamet" + - "erValueInfoPair.proto\032\031EntityAuthorityIn" + - "fo.proto\032\026EntityClientData.proto\032\033Entity" + - "EnvironmentInfo.proto\032\023FightPropPair.pro" + - "to\032\020MotionInfo.proto\032\016PropPair.proto\032\024Pr" + - "otEntityType.proto\032\025SceneAvatarInfo.prot" + - "o\032\025SceneGadgetInfo.proto\032\026SceneMonsterIn" + - "fo.proto\032\022SceneNpcInfo.proto\"\205\005\n\017SceneEn" + - "tityInfo\022#\n\nentityType\030\001 \001(\0162\017.ProtEntit" + - "yType\022\020\n\010entityId\030\002 \001(\r\022\014\n\004name\030\003 \001(\t\022\037\n" + - "\nmotionInfo\030\004 \001(\0132\013.MotionInfo\022\033\n\010propLi" + - "st\030\005 \003(\0132\t.PropPair\022%\n\rfightPropList\030\006 \003" + - "(\0132\016.FightPropPair\022\021\n\tlifeState\030\007 \001(\r\0229\n" + - "\020animatorParaList\030\t \003(\0132\037.AnimatorParame" + - "terValueInfoPair\022\"\n\006avatar\030\n \001(\0132\020.Scene" + - "AvatarInfoH\000\022$\n\007monster\030\013 \001(\0132\021.SceneMon" + - "sterInfoH\000\022\034\n\003npc\030\014 \001(\0132\r.SceneNpcInfoH\000" + - "\022\"\n\006gadget\030\r \001(\0132\020.SceneGadgetInfoH\000\022\033\n\023" + - "lastMoveSceneTimeMs\030\021 \001(\r\022\033\n\023lastMoveRel" + - "iableSeq\030\022 \001(\r\022+\n\020entityClientData\030\023 \001(\013" + - "2\021.EntityClientData\0229\n\031entityEnvironment" + - "InfoList\030\024 \003(\0132\026.EntityEnvironmentInfo\0221" + - "\n\023entityAuthorityInfo\030\025 \001(\0132\024.EntityAuth" + - "orityInfo\022\017\n\007tagList\030\026 \003(\tB\010\n\006entityB\033\n\031" + - "emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.getDescriptor(), - emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.EntityClientDataOuterClass.getDescriptor(), - emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.FightPropPairOuterClass.getDescriptor(), - emu.grasscutter.net.proto.MotionInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.PropPairOuterClass.getDescriptor(), - emu.grasscutter.net.proto.ProtEntityTypeOuterClass.getDescriptor(), - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.SceneNpcInfoOuterClass.getDescriptor(), - }); - internal_static_SceneEntityInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SceneEntityInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneEntityInfo_descriptor, - new java.lang.String[] { "EntityType", "EntityId", "Name", "MotionInfo", "PropList", "FightPropList", "LifeState", "AnimatorParaList", "Avatar", "Monster", "Npc", "Gadget", "LastMoveSceneTimeMs", "LastMoveReliableSeq", "EntityClientData", "EntityEnvironmentInfoList", "EntityAuthorityInfo", "TagList", "Entity", }); - emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.getDescriptor(); - emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.EntityClientDataOuterClass.getDescriptor(); - emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.FightPropPairOuterClass.getDescriptor(); - emu.grasscutter.net.proto.MotionInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.PropPairOuterClass.getDescriptor(); - emu.grasscutter.net.proto.ProtEntityTypeOuterClass.getDescriptor(); - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.SceneNpcInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SceneEntityMoveNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SceneEntityMoveNotifyOuterClass.java deleted file mode 100644 index 8c1f1fe7c..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SceneEntityMoveNotifyOuterClass.java +++ /dev/null @@ -1,883 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SceneEntityMoveNotify.proto - -package emu.grasscutter.net.proto; - -public final class SceneEntityMoveNotifyOuterClass { - private SceneEntityMoveNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SceneEntityMoveNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:SceneEntityMoveNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - int getEntityId(); - - /** - * <code>.MotionInfo motionInfo = 2;</code> - * @return Whether the motionInfo field is set. - */ - boolean hasMotionInfo(); - /** - * <code>.MotionInfo motionInfo = 2;</code> - * @return The motionInfo. - */ - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo getMotionInfo(); - /** - * <code>.MotionInfo motionInfo = 2;</code> - */ - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfoOrBuilder getMotionInfoOrBuilder(); - - /** - * <code>uint32 sceneTime = 3;</code> - * @return The sceneTime. - */ - int getSceneTime(); - - /** - * <code>uint32 reliableSeq = 4;</code> - * @return The reliableSeq. - */ - int getReliableSeq(); - } - /** - * Protobuf type {@code SceneEntityMoveNotify} - */ - public static final class SceneEntityMoveNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SceneEntityMoveNotify) - SceneEntityMoveNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use SceneEntityMoveNotify.newBuilder() to construct. - private SceneEntityMoveNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SceneEntityMoveNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SceneEntityMoveNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SceneEntityMoveNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - entityId_ = input.readUInt32(); - break; - } - case 18: { - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.Builder subBuilder = null; - if (motionInfo_ != null) { - subBuilder = motionInfo_.toBuilder(); - } - motionInfo_ = input.readMessage(emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(motionInfo_); - motionInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - sceneTime_ = input.readUInt32(); - break; - } - case 32: { - - reliableSeq_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.internal_static_SceneEntityMoveNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.internal_static_SceneEntityMoveNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify.class, emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify.Builder.class); - } - - public static final int ENTITYID_FIELD_NUMBER = 1; - private int entityId_; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - - public static final int MOTIONINFO_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo motionInfo_; - /** - * <code>.MotionInfo motionInfo = 2;</code> - * @return Whether the motionInfo field is set. - */ - @java.lang.Override - public boolean hasMotionInfo() { - return motionInfo_ != null; - } - /** - * <code>.MotionInfo motionInfo = 2;</code> - * @return The motionInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo getMotionInfo() { - return motionInfo_ == null ? emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.getDefaultInstance() : motionInfo_; - } - /** - * <code>.MotionInfo motionInfo = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfoOrBuilder getMotionInfoOrBuilder() { - return getMotionInfo(); - } - - public static final int SCENETIME_FIELD_NUMBER = 3; - private int sceneTime_; - /** - * <code>uint32 sceneTime = 3;</code> - * @return The sceneTime. - */ - @java.lang.Override - public int getSceneTime() { - return sceneTime_; - } - - public static final int RELIABLESEQ_FIELD_NUMBER = 4; - private int reliableSeq_; - /** - * <code>uint32 reliableSeq = 4;</code> - * @return The reliableSeq. - */ - @java.lang.Override - public int getReliableSeq() { - return reliableSeq_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (entityId_ != 0) { - output.writeUInt32(1, entityId_); - } - if (motionInfo_ != null) { - output.writeMessage(2, getMotionInfo()); - } - if (sceneTime_ != 0) { - output.writeUInt32(3, sceneTime_); - } - if (reliableSeq_ != 0) { - output.writeUInt32(4, reliableSeq_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, entityId_); - } - if (motionInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMotionInfo()); - } - if (sceneTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, sceneTime_); - } - if (reliableSeq_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, reliableSeq_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify other = (emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify) obj; - - if (getEntityId() - != other.getEntityId()) return false; - if (hasMotionInfo() != other.hasMotionInfo()) return false; - if (hasMotionInfo()) { - if (!getMotionInfo() - .equals(other.getMotionInfo())) return false; - } - if (getSceneTime() - != other.getSceneTime()) return false; - if (getReliableSeq() - != other.getReliableSeq()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId(); - if (hasMotionInfo()) { - hash = (37 * hash) + MOTIONINFO_FIELD_NUMBER; - hash = (53 * hash) + getMotionInfo().hashCode(); - } - hash = (37 * hash) + SCENETIME_FIELD_NUMBER; - hash = (53 * hash) + getSceneTime(); - hash = (37 * hash) + RELIABLESEQ_FIELD_NUMBER; - hash = (53 * hash) + getReliableSeq(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SceneEntityMoveNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SceneEntityMoveNotify) - emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.internal_static_SceneEntityMoveNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.internal_static_SceneEntityMoveNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify.class, emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - entityId_ = 0; - - if (motionInfoBuilder_ == null) { - motionInfo_ = null; - } else { - motionInfo_ = null; - motionInfoBuilder_ = null; - } - sceneTime_ = 0; - - reliableSeq_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.internal_static_SceneEntityMoveNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify build() { - emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify buildPartial() { - emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify result = new emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify(this); - result.entityId_ = entityId_; - if (motionInfoBuilder_ == null) { - result.motionInfo_ = motionInfo_; - } else { - result.motionInfo_ = motionInfoBuilder_.build(); - } - result.sceneTime_ = sceneTime_; - result.reliableSeq_ = reliableSeq_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify) { - return mergeFrom((emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify other) { - if (other == emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify.getDefaultInstance()) return this; - if (other.getEntityId() != 0) { - setEntityId(other.getEntityId()); - } - if (other.hasMotionInfo()) { - mergeMotionInfo(other.getMotionInfo()); - } - if (other.getSceneTime() != 0) { - setSceneTime(other.getSceneTime()); - } - if (other.getReliableSeq() != 0) { - setReliableSeq(other.getReliableSeq()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int entityId_ ; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - /** - * <code>uint32 entityId = 1;</code> - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId(int value) { - - entityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 entityId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearEntityId() { - - entityId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo motionInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo, emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.Builder, emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfoOrBuilder> motionInfoBuilder_; - /** - * <code>.MotionInfo motionInfo = 2;</code> - * @return Whether the motionInfo field is set. - */ - public boolean hasMotionInfo() { - return motionInfoBuilder_ != null || motionInfo_ != null; - } - /** - * <code>.MotionInfo motionInfo = 2;</code> - * @return The motionInfo. - */ - public emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo getMotionInfo() { - if (motionInfoBuilder_ == null) { - return motionInfo_ == null ? emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.getDefaultInstance() : motionInfo_; - } else { - return motionInfoBuilder_.getMessage(); - } - } - /** - * <code>.MotionInfo motionInfo = 2;</code> - */ - public Builder setMotionInfo(emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo value) { - if (motionInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - motionInfo_ = value; - onChanged(); - } else { - motionInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.MotionInfo motionInfo = 2;</code> - */ - public Builder setMotionInfo( - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.Builder builderForValue) { - if (motionInfoBuilder_ == null) { - motionInfo_ = builderForValue.build(); - onChanged(); - } else { - motionInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.MotionInfo motionInfo = 2;</code> - */ - public Builder mergeMotionInfo(emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo value) { - if (motionInfoBuilder_ == null) { - if (motionInfo_ != null) { - motionInfo_ = - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.newBuilder(motionInfo_).mergeFrom(value).buildPartial(); - } else { - motionInfo_ = value; - } - onChanged(); - } else { - motionInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.MotionInfo motionInfo = 2;</code> - */ - public Builder clearMotionInfo() { - if (motionInfoBuilder_ == null) { - motionInfo_ = null; - onChanged(); - } else { - motionInfo_ = null; - motionInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.MotionInfo motionInfo = 2;</code> - */ - public emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.Builder getMotionInfoBuilder() { - - onChanged(); - return getMotionInfoFieldBuilder().getBuilder(); - } - /** - * <code>.MotionInfo motionInfo = 2;</code> - */ - public emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfoOrBuilder getMotionInfoOrBuilder() { - if (motionInfoBuilder_ != null) { - return motionInfoBuilder_.getMessageOrBuilder(); - } else { - return motionInfo_ == null ? - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.getDefaultInstance() : motionInfo_; - } - } - /** - * <code>.MotionInfo motionInfo = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo, emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.Builder, emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfoOrBuilder> - getMotionInfoFieldBuilder() { - if (motionInfoBuilder_ == null) { - motionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo, emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.Builder, emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfoOrBuilder>( - getMotionInfo(), - getParentForChildren(), - isClean()); - motionInfo_ = null; - } - return motionInfoBuilder_; - } - - private int sceneTime_ ; - /** - * <code>uint32 sceneTime = 3;</code> - * @return The sceneTime. - */ - @java.lang.Override - public int getSceneTime() { - return sceneTime_; - } - /** - * <code>uint32 sceneTime = 3;</code> - * @param value The sceneTime to set. - * @return This builder for chaining. - */ - public Builder setSceneTime(int value) { - - sceneTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 sceneTime = 3;</code> - * @return This builder for chaining. - */ - public Builder clearSceneTime() { - - sceneTime_ = 0; - onChanged(); - return this; - } - - private int reliableSeq_ ; - /** - * <code>uint32 reliableSeq = 4;</code> - * @return The reliableSeq. - */ - @java.lang.Override - public int getReliableSeq() { - return reliableSeq_; - } - /** - * <code>uint32 reliableSeq = 4;</code> - * @param value The reliableSeq to set. - * @return This builder for chaining. - */ - public Builder setReliableSeq(int value) { - - reliableSeq_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 reliableSeq = 4;</code> - * @return This builder for chaining. - */ - public Builder clearReliableSeq() { - - reliableSeq_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SceneEntityMoveNotify) - } - - // @@protoc_insertion_point(class_scope:SceneEntityMoveNotify) - private static final emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify(); - } - - public static emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SceneEntityMoveNotify> - PARSER = new com.google.protobuf.AbstractParser<SceneEntityMoveNotify>() { - @java.lang.Override - public SceneEntityMoveNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SceneEntityMoveNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SceneEntityMoveNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SceneEntityMoveNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneEntityMoveNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneEntityMoveNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033SceneEntityMoveNotify.proto\032\020MotionInf" + - "o.proto\"r\n\025SceneEntityMoveNotify\022\020\n\010enti" + - "tyId\030\001 \001(\r\022\037\n\nmotionInfo\030\002 \001(\0132\013.MotionI" + - "nfo\022\021\n\tsceneTime\030\003 \001(\r\022\023\n\013reliableSeq\030\004 " + - "\001(\rB\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.MotionInfoOuterClass.getDescriptor(), - }); - internal_static_SceneEntityMoveNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SceneEntityMoveNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneEntityMoveNotify_descriptor, - new java.lang.String[] { "EntityId", "MotionInfo", "SceneTime", "ReliableSeq", }); - emu.grasscutter.net.proto.MotionInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SceneForceUnlockNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SceneForceUnlockNotifyOuterClass.java deleted file mode 100644 index 04c665bec..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SceneForceUnlockNotifyOuterClass.java +++ /dev/null @@ -1,735 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SceneForceUnlockNotify.proto - -package emu.grasscutter.net.proto; - -public final class SceneForceUnlockNotifyOuterClass { - private SceneForceUnlockNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SceneForceUnlockNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:SceneForceUnlockNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated uint32 forceIdList = 1;</code> - * @return A list containing the forceIdList. - */ - java.util.List<java.lang.Integer> getForceIdListList(); - /** - * <code>repeated uint32 forceIdList = 1;</code> - * @return The count of forceIdList. - */ - int getForceIdListCount(); - /** - * <code>repeated uint32 forceIdList = 1;</code> - * @param index The index of the element to return. - * @return The forceIdList at the given index. - */ - int getForceIdList(int index); - - /** - * <code>bool isAdd = 2;</code> - * @return The isAdd. - */ - boolean getIsAdd(); - } - /** - * Protobuf type {@code SceneForceUnlockNotify} - */ - public static final class SceneForceUnlockNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SceneForceUnlockNotify) - SceneForceUnlockNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use SceneForceUnlockNotify.newBuilder() to construct. - private SceneForceUnlockNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SceneForceUnlockNotify() { - forceIdList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SceneForceUnlockNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SceneForceUnlockNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - forceIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - forceIdList_.addInt(input.readUInt32()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - forceIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - forceIdList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 16: { - - isAdd_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - forceIdList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.internal_static_SceneForceUnlockNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.internal_static_SceneForceUnlockNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify.class, emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify.Builder.class); - } - - public static final int FORCEIDLIST_FIELD_NUMBER = 1; - private com.google.protobuf.Internal.IntList forceIdList_; - /** - * <code>repeated uint32 forceIdList = 1;</code> - * @return A list containing the forceIdList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getForceIdListList() { - return forceIdList_; - } - /** - * <code>repeated uint32 forceIdList = 1;</code> - * @return The count of forceIdList. - */ - public int getForceIdListCount() { - return forceIdList_.size(); - } - /** - * <code>repeated uint32 forceIdList = 1;</code> - * @param index The index of the element to return. - * @return The forceIdList at the given index. - */ - public int getForceIdList(int index) { - return forceIdList_.getInt(index); - } - private int forceIdListMemoizedSerializedSize = -1; - - public static final int ISADD_FIELD_NUMBER = 2; - private boolean isAdd_; - /** - * <code>bool isAdd = 2;</code> - * @return The isAdd. - */ - @java.lang.Override - public boolean getIsAdd() { - return isAdd_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getForceIdListList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(forceIdListMemoizedSerializedSize); - } - for (int i = 0; i < forceIdList_.size(); i++) { - output.writeUInt32NoTag(forceIdList_.getInt(i)); - } - if (isAdd_ != false) { - output.writeBool(2, isAdd_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < forceIdList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(forceIdList_.getInt(i)); - } - size += dataSize; - if (!getForceIdListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - forceIdListMemoizedSerializedSize = dataSize; - } - if (isAdd_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isAdd_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify other = (emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify) obj; - - if (!getForceIdListList() - .equals(other.getForceIdListList())) return false; - if (getIsAdd() - != other.getIsAdd()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getForceIdListCount() > 0) { - hash = (37 * hash) + FORCEIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getForceIdListList().hashCode(); - } - hash = (37 * hash) + ISADD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsAdd()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SceneForceUnlockNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SceneForceUnlockNotify) - emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.internal_static_SceneForceUnlockNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.internal_static_SceneForceUnlockNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify.class, emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - forceIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - isAdd_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.internal_static_SceneForceUnlockNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify build() { - emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify buildPartial() { - emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify result = new emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - forceIdList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.forceIdList_ = forceIdList_; - result.isAdd_ = isAdd_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify) { - return mergeFrom((emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify other) { - if (other == emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify.getDefaultInstance()) return this; - if (!other.forceIdList_.isEmpty()) { - if (forceIdList_.isEmpty()) { - forceIdList_ = other.forceIdList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureForceIdListIsMutable(); - forceIdList_.addAll(other.forceIdList_); - } - onChanged(); - } - if (other.getIsAdd() != false) { - setIsAdd(other.getIsAdd()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.Internal.IntList forceIdList_ = emptyIntList(); - private void ensureForceIdListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - forceIdList_ = mutableCopy(forceIdList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 forceIdList = 1;</code> - * @return A list containing the forceIdList. - */ - public java.util.List<java.lang.Integer> - getForceIdListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(forceIdList_) : forceIdList_; - } - /** - * <code>repeated uint32 forceIdList = 1;</code> - * @return The count of forceIdList. - */ - public int getForceIdListCount() { - return forceIdList_.size(); - } - /** - * <code>repeated uint32 forceIdList = 1;</code> - * @param index The index of the element to return. - * @return The forceIdList at the given index. - */ - public int getForceIdList(int index) { - return forceIdList_.getInt(index); - } - /** - * <code>repeated uint32 forceIdList = 1;</code> - * @param index The index to set the value at. - * @param value The forceIdList to set. - * @return This builder for chaining. - */ - public Builder setForceIdList( - int index, int value) { - ensureForceIdListIsMutable(); - forceIdList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 forceIdList = 1;</code> - * @param value The forceIdList to add. - * @return This builder for chaining. - */ - public Builder addForceIdList(int value) { - ensureForceIdListIsMutable(); - forceIdList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 forceIdList = 1;</code> - * @param values The forceIdList to add. - * @return This builder for chaining. - */ - public Builder addAllForceIdList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureForceIdListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, forceIdList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 forceIdList = 1;</code> - * @return This builder for chaining. - */ - public Builder clearForceIdList() { - forceIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private boolean isAdd_ ; - /** - * <code>bool isAdd = 2;</code> - * @return The isAdd. - */ - @java.lang.Override - public boolean getIsAdd() { - return isAdd_; - } - /** - * <code>bool isAdd = 2;</code> - * @param value The isAdd to set. - * @return This builder for chaining. - */ - public Builder setIsAdd(boolean value) { - - isAdd_ = value; - onChanged(); - return this; - } - /** - * <code>bool isAdd = 2;</code> - * @return This builder for chaining. - */ - public Builder clearIsAdd() { - - isAdd_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SceneForceUnlockNotify) - } - - // @@protoc_insertion_point(class_scope:SceneForceUnlockNotify) - private static final emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify(); - } - - public static emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SceneForceUnlockNotify> - PARSER = new com.google.protobuf.AbstractParser<SceneForceUnlockNotify>() { - @java.lang.Override - public SceneForceUnlockNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SceneForceUnlockNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SceneForceUnlockNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SceneForceUnlockNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneForceUnlockNotifyOuterClass.SceneForceUnlockNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneForceUnlockNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneForceUnlockNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034SceneForceUnlockNotify.proto\"<\n\026SceneF" + - "orceUnlockNotify\022\023\n\013forceIdList\030\001 \003(\r\022\r\n" + - "\005isAdd\030\002 \001(\010B\033\n\031emu.grasscutter.net.prot" + - "ob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SceneForceUnlockNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SceneForceUnlockNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneForceUnlockNotify_descriptor, - new java.lang.String[] { "ForceIdList", "IsAdd", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SceneGadgetInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SceneGadgetInfoOuterClass.java deleted file mode 100644 index 9b8e04968..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SceneGadgetInfoOuterClass.java +++ /dev/null @@ -1,3364 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SceneGadgetInfo.proto - -package emu.grasscutter.net.proto; - -public final class SceneGadgetInfoOuterClass { - private SceneGadgetInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SceneGadgetInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:SceneGadgetInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 gadgetId = 1;</code> - * @return The gadgetId. - */ - int getGadgetId(); - - /** - * <code>uint32 groupId = 2;</code> - * @return The groupId. - */ - int getGroupId(); - - /** - * <code>uint32 configId = 3;</code> - * @return The configId. - */ - int getConfigId(); - - /** - * <code>uint32 ownerEntityId = 4;</code> - * @return The ownerEntityId. - */ - int getOwnerEntityId(); - - /** - * <code>.GadgetBornType bornType = 5;</code> - * @return The enum numeric value on the wire for bornType. - */ - int getBornTypeValue(); - /** - * <code>.GadgetBornType bornType = 5;</code> - * @return The bornType. - */ - emu.grasscutter.net.proto.GadgetBornTypeOuterClass.GadgetBornType getBornType(); - - /** - * <code>uint32 gadgetState = 6;</code> - * @return The gadgetState. - */ - int getGadgetState(); - - /** - * <code>uint32 gadgetType = 7;</code> - * @return The gadgetType. - */ - int getGadgetType(); - - /** - * <code>bool isShowCutscene = 8;</code> - * @return The isShowCutscene. - */ - boolean getIsShowCutscene(); - - /** - * <code>uint32 authorityPeerId = 9;</code> - * @return The authorityPeerId. - */ - int getAuthorityPeerId(); - - /** - * <code>bool isEnableInteract = 10;</code> - * @return The isEnableInteract. - */ - boolean getIsEnableInteract(); - - /** - * <code>uint32 interactId = 11;</code> - * @return The interactId. - */ - int getInteractId(); - - /** - * <code>.Item trifleItem = 12;</code> - * @return Whether the trifleItem field is set. - */ - boolean hasTrifleItem(); - /** - * <code>.Item trifleItem = 12;</code> - * @return The trifleItem. - */ - emu.grasscutter.net.proto.ItemOuterClass.Item getTrifleItem(); - /** - * <code>.Item trifleItem = 12;</code> - */ - emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder getTrifleItemOrBuilder(); - - /** - * <code>uint32 gatherGadget = 13;</code> - * @return The gatherGadget. - */ - int getGatherGadget(); - - /** - * <code>uint32 worktop = 14;</code> - * @return The worktop. - */ - int getWorktop(); - - /** - * <code>.GadgetClientParam clientGadget = 15;</code> - * @return Whether the clientGadget field is set. - */ - boolean hasClientGadget(); - /** - * <code>.GadgetClientParam clientGadget = 15;</code> - * @return The clientGadget. - */ - emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam getClientGadget(); - /** - * <code>.GadgetClientParam clientGadget = 15;</code> - */ - emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParamOrBuilder getClientGadgetOrBuilder(); - - /** - * <code>uint32 weather = 17;</code> - * @return The weather. - */ - int getWeather(); - - /** - * <code>uint32 abilityGadget = 18;</code> - * @return The abilityGadget. - */ - int getAbilityGadget(); - - /** - * <code>uint32 statueGadget = 19;</code> - * @return The statueGadget. - */ - int getStatueGadget(); - - /** - * <code>uint32 bossChest = 20;</code> - * @return The bossChest. - */ - int getBossChest(); - - /** - * <code>uint32 blossomChest = 41;</code> - * @return The blossomChest. - */ - int getBlossomChest(); - - /** - * <code>uint32 mpPlayReward = 42;</code> - * @return The mpPlayReward. - */ - int getMpPlayReward(); - - /** - * <code>uint32 generalReward = 43;</code> - * @return The generalReward. - */ - int getGeneralReward(); - - /** - * <code>uint32 offeringInfo = 44;</code> - * @return The offeringInfo. - */ - int getOfferingInfo(); - - /** - * <code>uint32 foundationInfo = 45;</code> - * @return The foundationInfo. - */ - int getFoundationInfo(); - - /** - * <code>uint32 markFlag = 21;</code> - * @return The markFlag. - */ - int getMarkFlag(); - - /** - * <code>uint32 propOwnerEntityId = 22;</code> - * @return The propOwnerEntityId. - */ - int getPropOwnerEntityId(); - - /** - * <code>.PlatformInfo platform = 23;</code> - * @return Whether the platform field is set. - */ - boolean hasPlatform(); - /** - * <code>.PlatformInfo platform = 23;</code> - * @return The platform. - */ - emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo getPlatform(); - /** - * <code>.PlatformInfo platform = 23;</code> - */ - emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfoOrBuilder getPlatformOrBuilder(); - - /** - * <code>repeated uint32 interactUidList = 24;</code> - * @return A list containing the interactUidList. - */ - java.util.List<java.lang.Integer> getInteractUidListList(); - /** - * <code>repeated uint32 interactUidList = 24;</code> - * @return The count of interactUidList. - */ - int getInteractUidListCount(); - /** - * <code>repeated uint32 interactUidList = 24;</code> - * @param index The index of the element to return. - * @return The interactUidList at the given index. - */ - int getInteractUidList(int index); - - /** - * <code>uint32 draftId = 25;</code> - * @return The draftId. - */ - int getDraftId(); - - /** - * <code>uint32 gadgetTalkState = 26;</code> - * @return The gadgetTalkState. - */ - int getGadgetTalkState(); - - /** - * <code>.GadgetPlayInfo playInfo = 100;</code> - * @return Whether the playInfo field is set. - */ - boolean hasPlayInfo(); - /** - * <code>.GadgetPlayInfo playInfo = 100;</code> - * @return The playInfo. - */ - emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo getPlayInfo(); - /** - * <code>.GadgetPlayInfo playInfo = 100;</code> - */ - emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfoOrBuilder getPlayInfoOrBuilder(); - } - /** - * Protobuf type {@code SceneGadgetInfo} - */ - public static final class SceneGadgetInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SceneGadgetInfo) - SceneGadgetInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use SceneGadgetInfo.newBuilder() to construct. - private SceneGadgetInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SceneGadgetInfo() { - bornType_ = 0; - interactUidList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SceneGadgetInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SceneGadgetInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - gadgetId_ = input.readUInt32(); - break; - } - case 16: { - - groupId_ = input.readUInt32(); - break; - } - case 24: { - - configId_ = input.readUInt32(); - break; - } - case 32: { - - ownerEntityId_ = input.readUInt32(); - break; - } - case 40: { - int rawValue = input.readEnum(); - - bornType_ = rawValue; - break; - } - case 48: { - - gadgetState_ = input.readUInt32(); - break; - } - case 56: { - - gadgetType_ = input.readUInt32(); - break; - } - case 64: { - - isShowCutscene_ = input.readBool(); - break; - } - case 72: { - - authorityPeerId_ = input.readUInt32(); - break; - } - case 80: { - - isEnableInteract_ = input.readBool(); - break; - } - case 88: { - - interactId_ = input.readUInt32(); - break; - } - case 98: { - emu.grasscutter.net.proto.ItemOuterClass.Item.Builder subBuilder = null; - if (trifleItem_ != null) { - subBuilder = trifleItem_.toBuilder(); - } - trifleItem_ = input.readMessage(emu.grasscutter.net.proto.ItemOuterClass.Item.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(trifleItem_); - trifleItem_ = subBuilder.buildPartial(); - } - - break; - } - case 104: { - - gatherGadget_ = input.readUInt32(); - break; - } - case 112: { - - worktop_ = input.readUInt32(); - break; - } - case 122: { - emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam.Builder subBuilder = null; - if (clientGadget_ != null) { - subBuilder = clientGadget_.toBuilder(); - } - clientGadget_ = input.readMessage(emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(clientGadget_); - clientGadget_ = subBuilder.buildPartial(); - } - - break; - } - case 136: { - - weather_ = input.readUInt32(); - break; - } - case 144: { - - abilityGadget_ = input.readUInt32(); - break; - } - case 152: { - - statueGadget_ = input.readUInt32(); - break; - } - case 160: { - - bossChest_ = input.readUInt32(); - break; - } - case 168: { - - markFlag_ = input.readUInt32(); - break; - } - case 176: { - - propOwnerEntityId_ = input.readUInt32(); - break; - } - case 186: { - emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo.Builder subBuilder = null; - if (platform_ != null) { - subBuilder = platform_.toBuilder(); - } - platform_ = input.readMessage(emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(platform_); - platform_ = subBuilder.buildPartial(); - } - - break; - } - case 192: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - interactUidList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - interactUidList_.addInt(input.readUInt32()); - break; - } - case 194: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - interactUidList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - interactUidList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 200: { - - draftId_ = input.readUInt32(); - break; - } - case 208: { - - gadgetTalkState_ = input.readUInt32(); - break; - } - case 328: { - - blossomChest_ = input.readUInt32(); - break; - } - case 336: { - - mpPlayReward_ = input.readUInt32(); - break; - } - case 344: { - - generalReward_ = input.readUInt32(); - break; - } - case 352: { - - offeringInfo_ = input.readUInt32(); - break; - } - case 360: { - - foundationInfo_ = input.readUInt32(); - break; - } - case 802: { - emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo.Builder subBuilder = null; - if (playInfo_ != null) { - subBuilder = playInfo_.toBuilder(); - } - playInfo_ = input.readMessage(emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(playInfo_); - playInfo_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - interactUidList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.internal_static_SceneGadgetInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.internal_static_SceneGadgetInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo.class, emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo.Builder.class); - } - - public static final int GADGETID_FIELD_NUMBER = 1; - private int gadgetId_; - /** - * <code>uint32 gadgetId = 1;</code> - * @return The gadgetId. - */ - @java.lang.Override - public int getGadgetId() { - return gadgetId_; - } - - public static final int GROUPID_FIELD_NUMBER = 2; - private int groupId_; - /** - * <code>uint32 groupId = 2;</code> - * @return The groupId. - */ - @java.lang.Override - public int getGroupId() { - return groupId_; - } - - public static final int CONFIGID_FIELD_NUMBER = 3; - private int configId_; - /** - * <code>uint32 configId = 3;</code> - * @return The configId. - */ - @java.lang.Override - public int getConfigId() { - return configId_; - } - - public static final int OWNERENTITYID_FIELD_NUMBER = 4; - private int ownerEntityId_; - /** - * <code>uint32 ownerEntityId = 4;</code> - * @return The ownerEntityId. - */ - @java.lang.Override - public int getOwnerEntityId() { - return ownerEntityId_; - } - - public static final int BORNTYPE_FIELD_NUMBER = 5; - private int bornType_; - /** - * <code>.GadgetBornType bornType = 5;</code> - * @return The enum numeric value on the wire for bornType. - */ - @java.lang.Override public int getBornTypeValue() { - return bornType_; - } - /** - * <code>.GadgetBornType bornType = 5;</code> - * @return The bornType. - */ - @java.lang.Override public emu.grasscutter.net.proto.GadgetBornTypeOuterClass.GadgetBornType getBornType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.GadgetBornTypeOuterClass.GadgetBornType result = emu.grasscutter.net.proto.GadgetBornTypeOuterClass.GadgetBornType.valueOf(bornType_); - return result == null ? emu.grasscutter.net.proto.GadgetBornTypeOuterClass.GadgetBornType.UNRECOGNIZED : result; - } - - public static final int GADGETSTATE_FIELD_NUMBER = 6; - private int gadgetState_; - /** - * <code>uint32 gadgetState = 6;</code> - * @return The gadgetState. - */ - @java.lang.Override - public int getGadgetState() { - return gadgetState_; - } - - public static final int GADGETTYPE_FIELD_NUMBER = 7; - private int gadgetType_; - /** - * <code>uint32 gadgetType = 7;</code> - * @return The gadgetType. - */ - @java.lang.Override - public int getGadgetType() { - return gadgetType_; - } - - public static final int ISSHOWCUTSCENE_FIELD_NUMBER = 8; - private boolean isShowCutscene_; - /** - * <code>bool isShowCutscene = 8;</code> - * @return The isShowCutscene. - */ - @java.lang.Override - public boolean getIsShowCutscene() { - return isShowCutscene_; - } - - public static final int AUTHORITYPEERID_FIELD_NUMBER = 9; - private int authorityPeerId_; - /** - * <code>uint32 authorityPeerId = 9;</code> - * @return The authorityPeerId. - */ - @java.lang.Override - public int getAuthorityPeerId() { - return authorityPeerId_; - } - - public static final int ISENABLEINTERACT_FIELD_NUMBER = 10; - private boolean isEnableInteract_; - /** - * <code>bool isEnableInteract = 10;</code> - * @return The isEnableInteract. - */ - @java.lang.Override - public boolean getIsEnableInteract() { - return isEnableInteract_; - } - - public static final int INTERACTID_FIELD_NUMBER = 11; - private int interactId_; - /** - * <code>uint32 interactId = 11;</code> - * @return The interactId. - */ - @java.lang.Override - public int getInteractId() { - return interactId_; - } - - public static final int TRIFLEITEM_FIELD_NUMBER = 12; - private emu.grasscutter.net.proto.ItemOuterClass.Item trifleItem_; - /** - * <code>.Item trifleItem = 12;</code> - * @return Whether the trifleItem field is set. - */ - @java.lang.Override - public boolean hasTrifleItem() { - return trifleItem_ != null; - } - /** - * <code>.Item trifleItem = 12;</code> - * @return The trifleItem. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemOuterClass.Item getTrifleItem() { - return trifleItem_ == null ? emu.grasscutter.net.proto.ItemOuterClass.Item.getDefaultInstance() : trifleItem_; - } - /** - * <code>.Item trifleItem = 12;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder getTrifleItemOrBuilder() { - return getTrifleItem(); - } - - public static final int GATHERGADGET_FIELD_NUMBER = 13; - private int gatherGadget_; - /** - * <code>uint32 gatherGadget = 13;</code> - * @return The gatherGadget. - */ - @java.lang.Override - public int getGatherGadget() { - return gatherGadget_; - } - - public static final int WORKTOP_FIELD_NUMBER = 14; - private int worktop_; - /** - * <code>uint32 worktop = 14;</code> - * @return The worktop. - */ - @java.lang.Override - public int getWorktop() { - return worktop_; - } - - public static final int CLIENTGADGET_FIELD_NUMBER = 15; - private emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam clientGadget_; - /** - * <code>.GadgetClientParam clientGadget = 15;</code> - * @return Whether the clientGadget field is set. - */ - @java.lang.Override - public boolean hasClientGadget() { - return clientGadget_ != null; - } - /** - * <code>.GadgetClientParam clientGadget = 15;</code> - * @return The clientGadget. - */ - @java.lang.Override - public emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam getClientGadget() { - return clientGadget_ == null ? emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam.getDefaultInstance() : clientGadget_; - } - /** - * <code>.GadgetClientParam clientGadget = 15;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParamOrBuilder getClientGadgetOrBuilder() { - return getClientGadget(); - } - - public static final int WEATHER_FIELD_NUMBER = 17; - private int weather_; - /** - * <code>uint32 weather = 17;</code> - * @return The weather. - */ - @java.lang.Override - public int getWeather() { - return weather_; - } - - public static final int ABILITYGADGET_FIELD_NUMBER = 18; - private int abilityGadget_; - /** - * <code>uint32 abilityGadget = 18;</code> - * @return The abilityGadget. - */ - @java.lang.Override - public int getAbilityGadget() { - return abilityGadget_; - } - - public static final int STATUEGADGET_FIELD_NUMBER = 19; - private int statueGadget_; - /** - * <code>uint32 statueGadget = 19;</code> - * @return The statueGadget. - */ - @java.lang.Override - public int getStatueGadget() { - return statueGadget_; - } - - public static final int BOSSCHEST_FIELD_NUMBER = 20; - private int bossChest_; - /** - * <code>uint32 bossChest = 20;</code> - * @return The bossChest. - */ - @java.lang.Override - public int getBossChest() { - return bossChest_; - } - - public static final int BLOSSOMCHEST_FIELD_NUMBER = 41; - private int blossomChest_; - /** - * <code>uint32 blossomChest = 41;</code> - * @return The blossomChest. - */ - @java.lang.Override - public int getBlossomChest() { - return blossomChest_; - } - - public static final int MPPLAYREWARD_FIELD_NUMBER = 42; - private int mpPlayReward_; - /** - * <code>uint32 mpPlayReward = 42;</code> - * @return The mpPlayReward. - */ - @java.lang.Override - public int getMpPlayReward() { - return mpPlayReward_; - } - - public static final int GENERALREWARD_FIELD_NUMBER = 43; - private int generalReward_; - /** - * <code>uint32 generalReward = 43;</code> - * @return The generalReward. - */ - @java.lang.Override - public int getGeneralReward() { - return generalReward_; - } - - public static final int OFFERINGINFO_FIELD_NUMBER = 44; - private int offeringInfo_; - /** - * <code>uint32 offeringInfo = 44;</code> - * @return The offeringInfo. - */ - @java.lang.Override - public int getOfferingInfo() { - return offeringInfo_; - } - - public static final int FOUNDATIONINFO_FIELD_NUMBER = 45; - private int foundationInfo_; - /** - * <code>uint32 foundationInfo = 45;</code> - * @return The foundationInfo. - */ - @java.lang.Override - public int getFoundationInfo() { - return foundationInfo_; - } - - public static final int MARKFLAG_FIELD_NUMBER = 21; - private int markFlag_; - /** - * <code>uint32 markFlag = 21;</code> - * @return The markFlag. - */ - @java.lang.Override - public int getMarkFlag() { - return markFlag_; - } - - public static final int PROPOWNERENTITYID_FIELD_NUMBER = 22; - private int propOwnerEntityId_; - /** - * <code>uint32 propOwnerEntityId = 22;</code> - * @return The propOwnerEntityId. - */ - @java.lang.Override - public int getPropOwnerEntityId() { - return propOwnerEntityId_; - } - - public static final int PLATFORM_FIELD_NUMBER = 23; - private emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo platform_; - /** - * <code>.PlatformInfo platform = 23;</code> - * @return Whether the platform field is set. - */ - @java.lang.Override - public boolean hasPlatform() { - return platform_ != null; - } - /** - * <code>.PlatformInfo platform = 23;</code> - * @return The platform. - */ - @java.lang.Override - public emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo getPlatform() { - return platform_ == null ? emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo.getDefaultInstance() : platform_; - } - /** - * <code>.PlatformInfo platform = 23;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfoOrBuilder getPlatformOrBuilder() { - return getPlatform(); - } - - public static final int INTERACTUIDLIST_FIELD_NUMBER = 24; - private com.google.protobuf.Internal.IntList interactUidList_; - /** - * <code>repeated uint32 interactUidList = 24;</code> - * @return A list containing the interactUidList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getInteractUidListList() { - return interactUidList_; - } - /** - * <code>repeated uint32 interactUidList = 24;</code> - * @return The count of interactUidList. - */ - public int getInteractUidListCount() { - return interactUidList_.size(); - } - /** - * <code>repeated uint32 interactUidList = 24;</code> - * @param index The index of the element to return. - * @return The interactUidList at the given index. - */ - public int getInteractUidList(int index) { - return interactUidList_.getInt(index); - } - private int interactUidListMemoizedSerializedSize = -1; - - public static final int DRAFTID_FIELD_NUMBER = 25; - private int draftId_; - /** - * <code>uint32 draftId = 25;</code> - * @return The draftId. - */ - @java.lang.Override - public int getDraftId() { - return draftId_; - } - - public static final int GADGETTALKSTATE_FIELD_NUMBER = 26; - private int gadgetTalkState_; - /** - * <code>uint32 gadgetTalkState = 26;</code> - * @return The gadgetTalkState. - */ - @java.lang.Override - public int getGadgetTalkState() { - return gadgetTalkState_; - } - - public static final int PLAYINFO_FIELD_NUMBER = 100; - private emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo playInfo_; - /** - * <code>.GadgetPlayInfo playInfo = 100;</code> - * @return Whether the playInfo field is set. - */ - @java.lang.Override - public boolean hasPlayInfo() { - return playInfo_ != null; - } - /** - * <code>.GadgetPlayInfo playInfo = 100;</code> - * @return The playInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo getPlayInfo() { - return playInfo_ == null ? emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo.getDefaultInstance() : playInfo_; - } - /** - * <code>.GadgetPlayInfo playInfo = 100;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfoOrBuilder getPlayInfoOrBuilder() { - return getPlayInfo(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (gadgetId_ != 0) { - output.writeUInt32(1, gadgetId_); - } - if (groupId_ != 0) { - output.writeUInt32(2, groupId_); - } - if (configId_ != 0) { - output.writeUInt32(3, configId_); - } - if (ownerEntityId_ != 0) { - output.writeUInt32(4, ownerEntityId_); - } - if (bornType_ != emu.grasscutter.net.proto.GadgetBornTypeOuterClass.GadgetBornType.GadgetBornNone.getNumber()) { - output.writeEnum(5, bornType_); - } - if (gadgetState_ != 0) { - output.writeUInt32(6, gadgetState_); - } - if (gadgetType_ != 0) { - output.writeUInt32(7, gadgetType_); - } - if (isShowCutscene_ != false) { - output.writeBool(8, isShowCutscene_); - } - if (authorityPeerId_ != 0) { - output.writeUInt32(9, authorityPeerId_); - } - if (isEnableInteract_ != false) { - output.writeBool(10, isEnableInteract_); - } - if (interactId_ != 0) { - output.writeUInt32(11, interactId_); - } - if (trifleItem_ != null) { - output.writeMessage(12, getTrifleItem()); - } - if (gatherGadget_ != 0) { - output.writeUInt32(13, gatherGadget_); - } - if (worktop_ != 0) { - output.writeUInt32(14, worktop_); - } - if (clientGadget_ != null) { - output.writeMessage(15, getClientGadget()); - } - if (weather_ != 0) { - output.writeUInt32(17, weather_); - } - if (abilityGadget_ != 0) { - output.writeUInt32(18, abilityGadget_); - } - if (statueGadget_ != 0) { - output.writeUInt32(19, statueGadget_); - } - if (bossChest_ != 0) { - output.writeUInt32(20, bossChest_); - } - if (markFlag_ != 0) { - output.writeUInt32(21, markFlag_); - } - if (propOwnerEntityId_ != 0) { - output.writeUInt32(22, propOwnerEntityId_); - } - if (platform_ != null) { - output.writeMessage(23, getPlatform()); - } - if (getInteractUidListList().size() > 0) { - output.writeUInt32NoTag(194); - output.writeUInt32NoTag(interactUidListMemoizedSerializedSize); - } - for (int i = 0; i < interactUidList_.size(); i++) { - output.writeUInt32NoTag(interactUidList_.getInt(i)); - } - if (draftId_ != 0) { - output.writeUInt32(25, draftId_); - } - if (gadgetTalkState_ != 0) { - output.writeUInt32(26, gadgetTalkState_); - } - if (blossomChest_ != 0) { - output.writeUInt32(41, blossomChest_); - } - if (mpPlayReward_ != 0) { - output.writeUInt32(42, mpPlayReward_); - } - if (generalReward_ != 0) { - output.writeUInt32(43, generalReward_); - } - if (offeringInfo_ != 0) { - output.writeUInt32(44, offeringInfo_); - } - if (foundationInfo_ != 0) { - output.writeUInt32(45, foundationInfo_); - } - if (playInfo_ != null) { - output.writeMessage(100, getPlayInfo()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (gadgetId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, gadgetId_); - } - if (groupId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, groupId_); - } - if (configId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, configId_); - } - if (ownerEntityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, ownerEntityId_); - } - if (bornType_ != emu.grasscutter.net.proto.GadgetBornTypeOuterClass.GadgetBornType.GadgetBornNone.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, bornType_); - } - if (gadgetState_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, gadgetState_); - } - if (gadgetType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(7, gadgetType_); - } - if (isShowCutscene_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, isShowCutscene_); - } - if (authorityPeerId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(9, authorityPeerId_); - } - if (isEnableInteract_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(10, isEnableInteract_); - } - if (interactId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(11, interactId_); - } - if (trifleItem_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getTrifleItem()); - } - if (gatherGadget_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(13, gatherGadget_); - } - if (worktop_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(14, worktop_); - } - if (clientGadget_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getClientGadget()); - } - if (weather_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(17, weather_); - } - if (abilityGadget_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(18, abilityGadget_); - } - if (statueGadget_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(19, statueGadget_); - } - if (bossChest_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(20, bossChest_); - } - if (markFlag_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(21, markFlag_); - } - if (propOwnerEntityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(22, propOwnerEntityId_); - } - if (platform_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, getPlatform()); - } - { - int dataSize = 0; - for (int i = 0; i < interactUidList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(interactUidList_.getInt(i)); - } - size += dataSize; - if (!getInteractUidListList().isEmpty()) { - size += 2; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - interactUidListMemoizedSerializedSize = dataSize; - } - if (draftId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(25, draftId_); - } - if (gadgetTalkState_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(26, gadgetTalkState_); - } - if (blossomChest_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(41, blossomChest_); - } - if (mpPlayReward_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(42, mpPlayReward_); - } - if (generalReward_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(43, generalReward_); - } - if (offeringInfo_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(44, offeringInfo_); - } - if (foundationInfo_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(45, foundationInfo_); - } - if (playInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(100, getPlayInfo()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo other = (emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo) obj; - - if (getGadgetId() - != other.getGadgetId()) return false; - if (getGroupId() - != other.getGroupId()) return false; - if (getConfigId() - != other.getConfigId()) return false; - if (getOwnerEntityId() - != other.getOwnerEntityId()) return false; - if (bornType_ != other.bornType_) return false; - if (getGadgetState() - != other.getGadgetState()) return false; - if (getGadgetType() - != other.getGadgetType()) return false; - if (getIsShowCutscene() - != other.getIsShowCutscene()) return false; - if (getAuthorityPeerId() - != other.getAuthorityPeerId()) return false; - if (getIsEnableInteract() - != other.getIsEnableInteract()) return false; - if (getInteractId() - != other.getInteractId()) return false; - if (hasTrifleItem() != other.hasTrifleItem()) return false; - if (hasTrifleItem()) { - if (!getTrifleItem() - .equals(other.getTrifleItem())) return false; - } - if (getGatherGadget() - != other.getGatherGadget()) return false; - if (getWorktop() - != other.getWorktop()) return false; - if (hasClientGadget() != other.hasClientGadget()) return false; - if (hasClientGadget()) { - if (!getClientGadget() - .equals(other.getClientGadget())) return false; - } - if (getWeather() - != other.getWeather()) return false; - if (getAbilityGadget() - != other.getAbilityGadget()) return false; - if (getStatueGadget() - != other.getStatueGadget()) return false; - if (getBossChest() - != other.getBossChest()) return false; - if (getBlossomChest() - != other.getBlossomChest()) return false; - if (getMpPlayReward() - != other.getMpPlayReward()) return false; - if (getGeneralReward() - != other.getGeneralReward()) return false; - if (getOfferingInfo() - != other.getOfferingInfo()) return false; - if (getFoundationInfo() - != other.getFoundationInfo()) return false; - if (getMarkFlag() - != other.getMarkFlag()) return false; - if (getPropOwnerEntityId() - != other.getPropOwnerEntityId()) return false; - if (hasPlatform() != other.hasPlatform()) return false; - if (hasPlatform()) { - if (!getPlatform() - .equals(other.getPlatform())) return false; - } - if (!getInteractUidListList() - .equals(other.getInteractUidListList())) return false; - if (getDraftId() - != other.getDraftId()) return false; - if (getGadgetTalkState() - != other.getGadgetTalkState()) return false; - if (hasPlayInfo() != other.hasPlayInfo()) return false; - if (hasPlayInfo()) { - if (!getPlayInfo() - .equals(other.getPlayInfo())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GADGETID_FIELD_NUMBER; - hash = (53 * hash) + getGadgetId(); - hash = (37 * hash) + GROUPID_FIELD_NUMBER; - hash = (53 * hash) + getGroupId(); - hash = (37 * hash) + CONFIGID_FIELD_NUMBER; - hash = (53 * hash) + getConfigId(); - hash = (37 * hash) + OWNERENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getOwnerEntityId(); - hash = (37 * hash) + BORNTYPE_FIELD_NUMBER; - hash = (53 * hash) + bornType_; - hash = (37 * hash) + GADGETSTATE_FIELD_NUMBER; - hash = (53 * hash) + getGadgetState(); - hash = (37 * hash) + GADGETTYPE_FIELD_NUMBER; - hash = (53 * hash) + getGadgetType(); - hash = (37 * hash) + ISSHOWCUTSCENE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsShowCutscene()); - hash = (37 * hash) + AUTHORITYPEERID_FIELD_NUMBER; - hash = (53 * hash) + getAuthorityPeerId(); - hash = (37 * hash) + ISENABLEINTERACT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsEnableInteract()); - hash = (37 * hash) + INTERACTID_FIELD_NUMBER; - hash = (53 * hash) + getInteractId(); - if (hasTrifleItem()) { - hash = (37 * hash) + TRIFLEITEM_FIELD_NUMBER; - hash = (53 * hash) + getTrifleItem().hashCode(); - } - hash = (37 * hash) + GATHERGADGET_FIELD_NUMBER; - hash = (53 * hash) + getGatherGadget(); - hash = (37 * hash) + WORKTOP_FIELD_NUMBER; - hash = (53 * hash) + getWorktop(); - if (hasClientGadget()) { - hash = (37 * hash) + CLIENTGADGET_FIELD_NUMBER; - hash = (53 * hash) + getClientGadget().hashCode(); - } - hash = (37 * hash) + WEATHER_FIELD_NUMBER; - hash = (53 * hash) + getWeather(); - hash = (37 * hash) + ABILITYGADGET_FIELD_NUMBER; - hash = (53 * hash) + getAbilityGadget(); - hash = (37 * hash) + STATUEGADGET_FIELD_NUMBER; - hash = (53 * hash) + getStatueGadget(); - hash = (37 * hash) + BOSSCHEST_FIELD_NUMBER; - hash = (53 * hash) + getBossChest(); - hash = (37 * hash) + BLOSSOMCHEST_FIELD_NUMBER; - hash = (53 * hash) + getBlossomChest(); - hash = (37 * hash) + MPPLAYREWARD_FIELD_NUMBER; - hash = (53 * hash) + getMpPlayReward(); - hash = (37 * hash) + GENERALREWARD_FIELD_NUMBER; - hash = (53 * hash) + getGeneralReward(); - hash = (37 * hash) + OFFERINGINFO_FIELD_NUMBER; - hash = (53 * hash) + getOfferingInfo(); - hash = (37 * hash) + FOUNDATIONINFO_FIELD_NUMBER; - hash = (53 * hash) + getFoundationInfo(); - hash = (37 * hash) + MARKFLAG_FIELD_NUMBER; - hash = (53 * hash) + getMarkFlag(); - hash = (37 * hash) + PROPOWNERENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getPropOwnerEntityId(); - if (hasPlatform()) { - hash = (37 * hash) + PLATFORM_FIELD_NUMBER; - hash = (53 * hash) + getPlatform().hashCode(); - } - if (getInteractUidListCount() > 0) { - hash = (37 * hash) + INTERACTUIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getInteractUidListList().hashCode(); - } - hash = (37 * hash) + DRAFTID_FIELD_NUMBER; - hash = (53 * hash) + getDraftId(); - hash = (37 * hash) + GADGETTALKSTATE_FIELD_NUMBER; - hash = (53 * hash) + getGadgetTalkState(); - if (hasPlayInfo()) { - hash = (37 * hash) + PLAYINFO_FIELD_NUMBER; - hash = (53 * hash) + getPlayInfo().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SceneGadgetInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SceneGadgetInfo) - emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.internal_static_SceneGadgetInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.internal_static_SceneGadgetInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo.class, emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - gadgetId_ = 0; - - groupId_ = 0; - - configId_ = 0; - - ownerEntityId_ = 0; - - bornType_ = 0; - - gadgetState_ = 0; - - gadgetType_ = 0; - - isShowCutscene_ = false; - - authorityPeerId_ = 0; - - isEnableInteract_ = false; - - interactId_ = 0; - - if (trifleItemBuilder_ == null) { - trifleItem_ = null; - } else { - trifleItem_ = null; - trifleItemBuilder_ = null; - } - gatherGadget_ = 0; - - worktop_ = 0; - - if (clientGadgetBuilder_ == null) { - clientGadget_ = null; - } else { - clientGadget_ = null; - clientGadgetBuilder_ = null; - } - weather_ = 0; - - abilityGadget_ = 0; - - statueGadget_ = 0; - - bossChest_ = 0; - - blossomChest_ = 0; - - mpPlayReward_ = 0; - - generalReward_ = 0; - - offeringInfo_ = 0; - - foundationInfo_ = 0; - - markFlag_ = 0; - - propOwnerEntityId_ = 0; - - if (platformBuilder_ == null) { - platform_ = null; - } else { - platform_ = null; - platformBuilder_ = null; - } - interactUidList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - draftId_ = 0; - - gadgetTalkState_ = 0; - - if (playInfoBuilder_ == null) { - playInfo_ = null; - } else { - playInfo_ = null; - playInfoBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.internal_static_SceneGadgetInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo build() { - emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo buildPartial() { - emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo result = new emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo(this); - int from_bitField0_ = bitField0_; - result.gadgetId_ = gadgetId_; - result.groupId_ = groupId_; - result.configId_ = configId_; - result.ownerEntityId_ = ownerEntityId_; - result.bornType_ = bornType_; - result.gadgetState_ = gadgetState_; - result.gadgetType_ = gadgetType_; - result.isShowCutscene_ = isShowCutscene_; - result.authorityPeerId_ = authorityPeerId_; - result.isEnableInteract_ = isEnableInteract_; - result.interactId_ = interactId_; - if (trifleItemBuilder_ == null) { - result.trifleItem_ = trifleItem_; - } else { - result.trifleItem_ = trifleItemBuilder_.build(); - } - result.gatherGadget_ = gatherGadget_; - result.worktop_ = worktop_; - if (clientGadgetBuilder_ == null) { - result.clientGadget_ = clientGadget_; - } else { - result.clientGadget_ = clientGadgetBuilder_.build(); - } - result.weather_ = weather_; - result.abilityGadget_ = abilityGadget_; - result.statueGadget_ = statueGadget_; - result.bossChest_ = bossChest_; - result.blossomChest_ = blossomChest_; - result.mpPlayReward_ = mpPlayReward_; - result.generalReward_ = generalReward_; - result.offeringInfo_ = offeringInfo_; - result.foundationInfo_ = foundationInfo_; - result.markFlag_ = markFlag_; - result.propOwnerEntityId_ = propOwnerEntityId_; - if (platformBuilder_ == null) { - result.platform_ = platform_; - } else { - result.platform_ = platformBuilder_.build(); - } - if (((bitField0_ & 0x00000001) != 0)) { - interactUidList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.interactUidList_ = interactUidList_; - result.draftId_ = draftId_; - result.gadgetTalkState_ = gadgetTalkState_; - if (playInfoBuilder_ == null) { - result.playInfo_ = playInfo_; - } else { - result.playInfo_ = playInfoBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo) { - return mergeFrom((emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo other) { - if (other == emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo.getDefaultInstance()) return this; - if (other.getGadgetId() != 0) { - setGadgetId(other.getGadgetId()); - } - if (other.getGroupId() != 0) { - setGroupId(other.getGroupId()); - } - if (other.getConfigId() != 0) { - setConfigId(other.getConfigId()); - } - if (other.getOwnerEntityId() != 0) { - setOwnerEntityId(other.getOwnerEntityId()); - } - if (other.bornType_ != 0) { - setBornTypeValue(other.getBornTypeValue()); - } - if (other.getGadgetState() != 0) { - setGadgetState(other.getGadgetState()); - } - if (other.getGadgetType() != 0) { - setGadgetType(other.getGadgetType()); - } - if (other.getIsShowCutscene() != false) { - setIsShowCutscene(other.getIsShowCutscene()); - } - if (other.getAuthorityPeerId() != 0) { - setAuthorityPeerId(other.getAuthorityPeerId()); - } - if (other.getIsEnableInteract() != false) { - setIsEnableInteract(other.getIsEnableInteract()); - } - if (other.getInteractId() != 0) { - setInteractId(other.getInteractId()); - } - if (other.hasTrifleItem()) { - mergeTrifleItem(other.getTrifleItem()); - } - if (other.getGatherGadget() != 0) { - setGatherGadget(other.getGatherGadget()); - } - if (other.getWorktop() != 0) { - setWorktop(other.getWorktop()); - } - if (other.hasClientGadget()) { - mergeClientGadget(other.getClientGadget()); - } - if (other.getWeather() != 0) { - setWeather(other.getWeather()); - } - if (other.getAbilityGadget() != 0) { - setAbilityGadget(other.getAbilityGadget()); - } - if (other.getStatueGadget() != 0) { - setStatueGadget(other.getStatueGadget()); - } - if (other.getBossChest() != 0) { - setBossChest(other.getBossChest()); - } - if (other.getBlossomChest() != 0) { - setBlossomChest(other.getBlossomChest()); - } - if (other.getMpPlayReward() != 0) { - setMpPlayReward(other.getMpPlayReward()); - } - if (other.getGeneralReward() != 0) { - setGeneralReward(other.getGeneralReward()); - } - if (other.getOfferingInfo() != 0) { - setOfferingInfo(other.getOfferingInfo()); - } - if (other.getFoundationInfo() != 0) { - setFoundationInfo(other.getFoundationInfo()); - } - if (other.getMarkFlag() != 0) { - setMarkFlag(other.getMarkFlag()); - } - if (other.getPropOwnerEntityId() != 0) { - setPropOwnerEntityId(other.getPropOwnerEntityId()); - } - if (other.hasPlatform()) { - mergePlatform(other.getPlatform()); - } - if (!other.interactUidList_.isEmpty()) { - if (interactUidList_.isEmpty()) { - interactUidList_ = other.interactUidList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureInteractUidListIsMutable(); - interactUidList_.addAll(other.interactUidList_); - } - onChanged(); - } - if (other.getDraftId() != 0) { - setDraftId(other.getDraftId()); - } - if (other.getGadgetTalkState() != 0) { - setGadgetTalkState(other.getGadgetTalkState()); - } - if (other.hasPlayInfo()) { - mergePlayInfo(other.getPlayInfo()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gadgetId_ ; - /** - * <code>uint32 gadgetId = 1;</code> - * @return The gadgetId. - */ - @java.lang.Override - public int getGadgetId() { - return gadgetId_; - } - /** - * <code>uint32 gadgetId = 1;</code> - * @param value The gadgetId to set. - * @return This builder for chaining. - */ - public Builder setGadgetId(int value) { - - gadgetId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gadgetId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearGadgetId() { - - gadgetId_ = 0; - onChanged(); - return this; - } - - private int groupId_ ; - /** - * <code>uint32 groupId = 2;</code> - * @return The groupId. - */ - @java.lang.Override - public int getGroupId() { - return groupId_; - } - /** - * <code>uint32 groupId = 2;</code> - * @param value The groupId to set. - * @return This builder for chaining. - */ - public Builder setGroupId(int value) { - - groupId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 groupId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearGroupId() { - - groupId_ = 0; - onChanged(); - return this; - } - - private int configId_ ; - /** - * <code>uint32 configId = 3;</code> - * @return The configId. - */ - @java.lang.Override - public int getConfigId() { - return configId_; - } - /** - * <code>uint32 configId = 3;</code> - * @param value The configId to set. - * @return This builder for chaining. - */ - public Builder setConfigId(int value) { - - configId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 configId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearConfigId() { - - configId_ = 0; - onChanged(); - return this; - } - - private int ownerEntityId_ ; - /** - * <code>uint32 ownerEntityId = 4;</code> - * @return The ownerEntityId. - */ - @java.lang.Override - public int getOwnerEntityId() { - return ownerEntityId_; - } - /** - * <code>uint32 ownerEntityId = 4;</code> - * @param value The ownerEntityId to set. - * @return This builder for chaining. - */ - public Builder setOwnerEntityId(int value) { - - ownerEntityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 ownerEntityId = 4;</code> - * @return This builder for chaining. - */ - public Builder clearOwnerEntityId() { - - ownerEntityId_ = 0; - onChanged(); - return this; - } - - private int bornType_ = 0; - /** - * <code>.GadgetBornType bornType = 5;</code> - * @return The enum numeric value on the wire for bornType. - */ - @java.lang.Override public int getBornTypeValue() { - return bornType_; - } - /** - * <code>.GadgetBornType bornType = 5;</code> - * @param value The enum numeric value on the wire for bornType to set. - * @return This builder for chaining. - */ - public Builder setBornTypeValue(int value) { - - bornType_ = value; - onChanged(); - return this; - } - /** - * <code>.GadgetBornType bornType = 5;</code> - * @return The bornType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.GadgetBornTypeOuterClass.GadgetBornType getBornType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.GadgetBornTypeOuterClass.GadgetBornType result = emu.grasscutter.net.proto.GadgetBornTypeOuterClass.GadgetBornType.valueOf(bornType_); - return result == null ? emu.grasscutter.net.proto.GadgetBornTypeOuterClass.GadgetBornType.UNRECOGNIZED : result; - } - /** - * <code>.GadgetBornType bornType = 5;</code> - * @param value The bornType to set. - * @return This builder for chaining. - */ - public Builder setBornType(emu.grasscutter.net.proto.GadgetBornTypeOuterClass.GadgetBornType value) { - if (value == null) { - throw new NullPointerException(); - } - - bornType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.GadgetBornType bornType = 5;</code> - * @return This builder for chaining. - */ - public Builder clearBornType() { - - bornType_ = 0; - onChanged(); - return this; - } - - private int gadgetState_ ; - /** - * <code>uint32 gadgetState = 6;</code> - * @return The gadgetState. - */ - @java.lang.Override - public int getGadgetState() { - return gadgetState_; - } - /** - * <code>uint32 gadgetState = 6;</code> - * @param value The gadgetState to set. - * @return This builder for chaining. - */ - public Builder setGadgetState(int value) { - - gadgetState_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gadgetState = 6;</code> - * @return This builder for chaining. - */ - public Builder clearGadgetState() { - - gadgetState_ = 0; - onChanged(); - return this; - } - - private int gadgetType_ ; - /** - * <code>uint32 gadgetType = 7;</code> - * @return The gadgetType. - */ - @java.lang.Override - public int getGadgetType() { - return gadgetType_; - } - /** - * <code>uint32 gadgetType = 7;</code> - * @param value The gadgetType to set. - * @return This builder for chaining. - */ - public Builder setGadgetType(int value) { - - gadgetType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gadgetType = 7;</code> - * @return This builder for chaining. - */ - public Builder clearGadgetType() { - - gadgetType_ = 0; - onChanged(); - return this; - } - - private boolean isShowCutscene_ ; - /** - * <code>bool isShowCutscene = 8;</code> - * @return The isShowCutscene. - */ - @java.lang.Override - public boolean getIsShowCutscene() { - return isShowCutscene_; - } - /** - * <code>bool isShowCutscene = 8;</code> - * @param value The isShowCutscene to set. - * @return This builder for chaining. - */ - public Builder setIsShowCutscene(boolean value) { - - isShowCutscene_ = value; - onChanged(); - return this; - } - /** - * <code>bool isShowCutscene = 8;</code> - * @return This builder for chaining. - */ - public Builder clearIsShowCutscene() { - - isShowCutscene_ = false; - onChanged(); - return this; - } - - private int authorityPeerId_ ; - /** - * <code>uint32 authorityPeerId = 9;</code> - * @return The authorityPeerId. - */ - @java.lang.Override - public int getAuthorityPeerId() { - return authorityPeerId_; - } - /** - * <code>uint32 authorityPeerId = 9;</code> - * @param value The authorityPeerId to set. - * @return This builder for chaining. - */ - public Builder setAuthorityPeerId(int value) { - - authorityPeerId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 authorityPeerId = 9;</code> - * @return This builder for chaining. - */ - public Builder clearAuthorityPeerId() { - - authorityPeerId_ = 0; - onChanged(); - return this; - } - - private boolean isEnableInteract_ ; - /** - * <code>bool isEnableInteract = 10;</code> - * @return The isEnableInteract. - */ - @java.lang.Override - public boolean getIsEnableInteract() { - return isEnableInteract_; - } - /** - * <code>bool isEnableInteract = 10;</code> - * @param value The isEnableInteract to set. - * @return This builder for chaining. - */ - public Builder setIsEnableInteract(boolean value) { - - isEnableInteract_ = value; - onChanged(); - return this; - } - /** - * <code>bool isEnableInteract = 10;</code> - * @return This builder for chaining. - */ - public Builder clearIsEnableInteract() { - - isEnableInteract_ = false; - onChanged(); - return this; - } - - private int interactId_ ; - /** - * <code>uint32 interactId = 11;</code> - * @return The interactId. - */ - @java.lang.Override - public int getInteractId() { - return interactId_; - } - /** - * <code>uint32 interactId = 11;</code> - * @param value The interactId to set. - * @return This builder for chaining. - */ - public Builder setInteractId(int value) { - - interactId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 interactId = 11;</code> - * @return This builder for chaining. - */ - public Builder clearInteractId() { - - interactId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.ItemOuterClass.Item trifleItem_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ItemOuterClass.Item, emu.grasscutter.net.proto.ItemOuterClass.Item.Builder, emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder> trifleItemBuilder_; - /** - * <code>.Item trifleItem = 12;</code> - * @return Whether the trifleItem field is set. - */ - public boolean hasTrifleItem() { - return trifleItemBuilder_ != null || trifleItem_ != null; - } - /** - * <code>.Item trifleItem = 12;</code> - * @return The trifleItem. - */ - public emu.grasscutter.net.proto.ItemOuterClass.Item getTrifleItem() { - if (trifleItemBuilder_ == null) { - return trifleItem_ == null ? emu.grasscutter.net.proto.ItemOuterClass.Item.getDefaultInstance() : trifleItem_; - } else { - return trifleItemBuilder_.getMessage(); - } - } - /** - * <code>.Item trifleItem = 12;</code> - */ - public Builder setTrifleItem(emu.grasscutter.net.proto.ItemOuterClass.Item value) { - if (trifleItemBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - trifleItem_ = value; - onChanged(); - } else { - trifleItemBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Item trifleItem = 12;</code> - */ - public Builder setTrifleItem( - emu.grasscutter.net.proto.ItemOuterClass.Item.Builder builderForValue) { - if (trifleItemBuilder_ == null) { - trifleItem_ = builderForValue.build(); - onChanged(); - } else { - trifleItemBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Item trifleItem = 12;</code> - */ - public Builder mergeTrifleItem(emu.grasscutter.net.proto.ItemOuterClass.Item value) { - if (trifleItemBuilder_ == null) { - if (trifleItem_ != null) { - trifleItem_ = - emu.grasscutter.net.proto.ItemOuterClass.Item.newBuilder(trifleItem_).mergeFrom(value).buildPartial(); - } else { - trifleItem_ = value; - } - onChanged(); - } else { - trifleItemBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Item trifleItem = 12;</code> - */ - public Builder clearTrifleItem() { - if (trifleItemBuilder_ == null) { - trifleItem_ = null; - onChanged(); - } else { - trifleItem_ = null; - trifleItemBuilder_ = null; - } - - return this; - } - /** - * <code>.Item trifleItem = 12;</code> - */ - public emu.grasscutter.net.proto.ItemOuterClass.Item.Builder getTrifleItemBuilder() { - - onChanged(); - return getTrifleItemFieldBuilder().getBuilder(); - } - /** - * <code>.Item trifleItem = 12;</code> - */ - public emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder getTrifleItemOrBuilder() { - if (trifleItemBuilder_ != null) { - return trifleItemBuilder_.getMessageOrBuilder(); - } else { - return trifleItem_ == null ? - emu.grasscutter.net.proto.ItemOuterClass.Item.getDefaultInstance() : trifleItem_; - } - } - /** - * <code>.Item trifleItem = 12;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ItemOuterClass.Item, emu.grasscutter.net.proto.ItemOuterClass.Item.Builder, emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder> - getTrifleItemFieldBuilder() { - if (trifleItemBuilder_ == null) { - trifleItemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ItemOuterClass.Item, emu.grasscutter.net.proto.ItemOuterClass.Item.Builder, emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder>( - getTrifleItem(), - getParentForChildren(), - isClean()); - trifleItem_ = null; - } - return trifleItemBuilder_; - } - - private int gatherGadget_ ; - /** - * <code>uint32 gatherGadget = 13;</code> - * @return The gatherGadget. - */ - @java.lang.Override - public int getGatherGadget() { - return gatherGadget_; - } - /** - * <code>uint32 gatherGadget = 13;</code> - * @param value The gatherGadget to set. - * @return This builder for chaining. - */ - public Builder setGatherGadget(int value) { - - gatherGadget_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gatherGadget = 13;</code> - * @return This builder for chaining. - */ - public Builder clearGatherGadget() { - - gatherGadget_ = 0; - onChanged(); - return this; - } - - private int worktop_ ; - /** - * <code>uint32 worktop = 14;</code> - * @return The worktop. - */ - @java.lang.Override - public int getWorktop() { - return worktop_; - } - /** - * <code>uint32 worktop = 14;</code> - * @param value The worktop to set. - * @return This builder for chaining. - */ - public Builder setWorktop(int value) { - - worktop_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 worktop = 14;</code> - * @return This builder for chaining. - */ - public Builder clearWorktop() { - - worktop_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam clientGadget_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam, emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam.Builder, emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParamOrBuilder> clientGadgetBuilder_; - /** - * <code>.GadgetClientParam clientGadget = 15;</code> - * @return Whether the clientGadget field is set. - */ - public boolean hasClientGadget() { - return clientGadgetBuilder_ != null || clientGadget_ != null; - } - /** - * <code>.GadgetClientParam clientGadget = 15;</code> - * @return The clientGadget. - */ - public emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam getClientGadget() { - if (clientGadgetBuilder_ == null) { - return clientGadget_ == null ? emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam.getDefaultInstance() : clientGadget_; - } else { - return clientGadgetBuilder_.getMessage(); - } - } - /** - * <code>.GadgetClientParam clientGadget = 15;</code> - */ - public Builder setClientGadget(emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam value) { - if (clientGadgetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - clientGadget_ = value; - onChanged(); - } else { - clientGadgetBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.GadgetClientParam clientGadget = 15;</code> - */ - public Builder setClientGadget( - emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam.Builder builderForValue) { - if (clientGadgetBuilder_ == null) { - clientGadget_ = builderForValue.build(); - onChanged(); - } else { - clientGadgetBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.GadgetClientParam clientGadget = 15;</code> - */ - public Builder mergeClientGadget(emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam value) { - if (clientGadgetBuilder_ == null) { - if (clientGadget_ != null) { - clientGadget_ = - emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam.newBuilder(clientGadget_).mergeFrom(value).buildPartial(); - } else { - clientGadget_ = value; - } - onChanged(); - } else { - clientGadgetBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.GadgetClientParam clientGadget = 15;</code> - */ - public Builder clearClientGadget() { - if (clientGadgetBuilder_ == null) { - clientGadget_ = null; - onChanged(); - } else { - clientGadget_ = null; - clientGadgetBuilder_ = null; - } - - return this; - } - /** - * <code>.GadgetClientParam clientGadget = 15;</code> - */ - public emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam.Builder getClientGadgetBuilder() { - - onChanged(); - return getClientGadgetFieldBuilder().getBuilder(); - } - /** - * <code>.GadgetClientParam clientGadget = 15;</code> - */ - public emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParamOrBuilder getClientGadgetOrBuilder() { - if (clientGadgetBuilder_ != null) { - return clientGadgetBuilder_.getMessageOrBuilder(); - } else { - return clientGadget_ == null ? - emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam.getDefaultInstance() : clientGadget_; - } - } - /** - * <code>.GadgetClientParam clientGadget = 15;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam, emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam.Builder, emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParamOrBuilder> - getClientGadgetFieldBuilder() { - if (clientGadgetBuilder_ == null) { - clientGadgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam, emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam.Builder, emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParamOrBuilder>( - getClientGadget(), - getParentForChildren(), - isClean()); - clientGadget_ = null; - } - return clientGadgetBuilder_; - } - - private int weather_ ; - /** - * <code>uint32 weather = 17;</code> - * @return The weather. - */ - @java.lang.Override - public int getWeather() { - return weather_; - } - /** - * <code>uint32 weather = 17;</code> - * @param value The weather to set. - * @return This builder for chaining. - */ - public Builder setWeather(int value) { - - weather_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 weather = 17;</code> - * @return This builder for chaining. - */ - public Builder clearWeather() { - - weather_ = 0; - onChanged(); - return this; - } - - private int abilityGadget_ ; - /** - * <code>uint32 abilityGadget = 18;</code> - * @return The abilityGadget. - */ - @java.lang.Override - public int getAbilityGadget() { - return abilityGadget_; - } - /** - * <code>uint32 abilityGadget = 18;</code> - * @param value The abilityGadget to set. - * @return This builder for chaining. - */ - public Builder setAbilityGadget(int value) { - - abilityGadget_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 abilityGadget = 18;</code> - * @return This builder for chaining. - */ - public Builder clearAbilityGadget() { - - abilityGadget_ = 0; - onChanged(); - return this; - } - - private int statueGadget_ ; - /** - * <code>uint32 statueGadget = 19;</code> - * @return The statueGadget. - */ - @java.lang.Override - public int getStatueGadget() { - return statueGadget_; - } - /** - * <code>uint32 statueGadget = 19;</code> - * @param value The statueGadget to set. - * @return This builder for chaining. - */ - public Builder setStatueGadget(int value) { - - statueGadget_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 statueGadget = 19;</code> - * @return This builder for chaining. - */ - public Builder clearStatueGadget() { - - statueGadget_ = 0; - onChanged(); - return this; - } - - private int bossChest_ ; - /** - * <code>uint32 bossChest = 20;</code> - * @return The bossChest. - */ - @java.lang.Override - public int getBossChest() { - return bossChest_; - } - /** - * <code>uint32 bossChest = 20;</code> - * @param value The bossChest to set. - * @return This builder for chaining. - */ - public Builder setBossChest(int value) { - - bossChest_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 bossChest = 20;</code> - * @return This builder for chaining. - */ - public Builder clearBossChest() { - - bossChest_ = 0; - onChanged(); - return this; - } - - private int blossomChest_ ; - /** - * <code>uint32 blossomChest = 41;</code> - * @return The blossomChest. - */ - @java.lang.Override - public int getBlossomChest() { - return blossomChest_; - } - /** - * <code>uint32 blossomChest = 41;</code> - * @param value The blossomChest to set. - * @return This builder for chaining. - */ - public Builder setBlossomChest(int value) { - - blossomChest_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 blossomChest = 41;</code> - * @return This builder for chaining. - */ - public Builder clearBlossomChest() { - - blossomChest_ = 0; - onChanged(); - return this; - } - - private int mpPlayReward_ ; - /** - * <code>uint32 mpPlayReward = 42;</code> - * @return The mpPlayReward. - */ - @java.lang.Override - public int getMpPlayReward() { - return mpPlayReward_; - } - /** - * <code>uint32 mpPlayReward = 42;</code> - * @param value The mpPlayReward to set. - * @return This builder for chaining. - */ - public Builder setMpPlayReward(int value) { - - mpPlayReward_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 mpPlayReward = 42;</code> - * @return This builder for chaining. - */ - public Builder clearMpPlayReward() { - - mpPlayReward_ = 0; - onChanged(); - return this; - } - - private int generalReward_ ; - /** - * <code>uint32 generalReward = 43;</code> - * @return The generalReward. - */ - @java.lang.Override - public int getGeneralReward() { - return generalReward_; - } - /** - * <code>uint32 generalReward = 43;</code> - * @param value The generalReward to set. - * @return This builder for chaining. - */ - public Builder setGeneralReward(int value) { - - generalReward_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 generalReward = 43;</code> - * @return This builder for chaining. - */ - public Builder clearGeneralReward() { - - generalReward_ = 0; - onChanged(); - return this; - } - - private int offeringInfo_ ; - /** - * <code>uint32 offeringInfo = 44;</code> - * @return The offeringInfo. - */ - @java.lang.Override - public int getOfferingInfo() { - return offeringInfo_; - } - /** - * <code>uint32 offeringInfo = 44;</code> - * @param value The offeringInfo to set. - * @return This builder for chaining. - */ - public Builder setOfferingInfo(int value) { - - offeringInfo_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 offeringInfo = 44;</code> - * @return This builder for chaining. - */ - public Builder clearOfferingInfo() { - - offeringInfo_ = 0; - onChanged(); - return this; - } - - private int foundationInfo_ ; - /** - * <code>uint32 foundationInfo = 45;</code> - * @return The foundationInfo. - */ - @java.lang.Override - public int getFoundationInfo() { - return foundationInfo_; - } - /** - * <code>uint32 foundationInfo = 45;</code> - * @param value The foundationInfo to set. - * @return This builder for chaining. - */ - public Builder setFoundationInfo(int value) { - - foundationInfo_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 foundationInfo = 45;</code> - * @return This builder for chaining. - */ - public Builder clearFoundationInfo() { - - foundationInfo_ = 0; - onChanged(); - return this; - } - - private int markFlag_ ; - /** - * <code>uint32 markFlag = 21;</code> - * @return The markFlag. - */ - @java.lang.Override - public int getMarkFlag() { - return markFlag_; - } - /** - * <code>uint32 markFlag = 21;</code> - * @param value The markFlag to set. - * @return This builder for chaining. - */ - public Builder setMarkFlag(int value) { - - markFlag_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 markFlag = 21;</code> - * @return This builder for chaining. - */ - public Builder clearMarkFlag() { - - markFlag_ = 0; - onChanged(); - return this; - } - - private int propOwnerEntityId_ ; - /** - * <code>uint32 propOwnerEntityId = 22;</code> - * @return The propOwnerEntityId. - */ - @java.lang.Override - public int getPropOwnerEntityId() { - return propOwnerEntityId_; - } - /** - * <code>uint32 propOwnerEntityId = 22;</code> - * @param value The propOwnerEntityId to set. - * @return This builder for chaining. - */ - public Builder setPropOwnerEntityId(int value) { - - propOwnerEntityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 propOwnerEntityId = 22;</code> - * @return This builder for chaining. - */ - public Builder clearPropOwnerEntityId() { - - propOwnerEntityId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo platform_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo, emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo.Builder, emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfoOrBuilder> platformBuilder_; - /** - * <code>.PlatformInfo platform = 23;</code> - * @return Whether the platform field is set. - */ - public boolean hasPlatform() { - return platformBuilder_ != null || platform_ != null; - } - /** - * <code>.PlatformInfo platform = 23;</code> - * @return The platform. - */ - public emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo getPlatform() { - if (platformBuilder_ == null) { - return platform_ == null ? emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo.getDefaultInstance() : platform_; - } else { - return platformBuilder_.getMessage(); - } - } - /** - * <code>.PlatformInfo platform = 23;</code> - */ - public Builder setPlatform(emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo value) { - if (platformBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - platform_ = value; - onChanged(); - } else { - platformBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.PlatformInfo platform = 23;</code> - */ - public Builder setPlatform( - emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo.Builder builderForValue) { - if (platformBuilder_ == null) { - platform_ = builderForValue.build(); - onChanged(); - } else { - platformBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.PlatformInfo platform = 23;</code> - */ - public Builder mergePlatform(emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo value) { - if (platformBuilder_ == null) { - if (platform_ != null) { - platform_ = - emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo.newBuilder(platform_).mergeFrom(value).buildPartial(); - } else { - platform_ = value; - } - onChanged(); - } else { - platformBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.PlatformInfo platform = 23;</code> - */ - public Builder clearPlatform() { - if (platformBuilder_ == null) { - platform_ = null; - onChanged(); - } else { - platform_ = null; - platformBuilder_ = null; - } - - return this; - } - /** - * <code>.PlatformInfo platform = 23;</code> - */ - public emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo.Builder getPlatformBuilder() { - - onChanged(); - return getPlatformFieldBuilder().getBuilder(); - } - /** - * <code>.PlatformInfo platform = 23;</code> - */ - public emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfoOrBuilder getPlatformOrBuilder() { - if (platformBuilder_ != null) { - return platformBuilder_.getMessageOrBuilder(); - } else { - return platform_ == null ? - emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo.getDefaultInstance() : platform_; - } - } - /** - * <code>.PlatformInfo platform = 23;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo, emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo.Builder, emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfoOrBuilder> - getPlatformFieldBuilder() { - if (platformBuilder_ == null) { - platformBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo, emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo.Builder, emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfoOrBuilder>( - getPlatform(), - getParentForChildren(), - isClean()); - platform_ = null; - } - return platformBuilder_; - } - - private com.google.protobuf.Internal.IntList interactUidList_ = emptyIntList(); - private void ensureInteractUidListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - interactUidList_ = mutableCopy(interactUidList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 interactUidList = 24;</code> - * @return A list containing the interactUidList. - */ - public java.util.List<java.lang.Integer> - getInteractUidListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(interactUidList_) : interactUidList_; - } - /** - * <code>repeated uint32 interactUidList = 24;</code> - * @return The count of interactUidList. - */ - public int getInteractUidListCount() { - return interactUidList_.size(); - } - /** - * <code>repeated uint32 interactUidList = 24;</code> - * @param index The index of the element to return. - * @return The interactUidList at the given index. - */ - public int getInteractUidList(int index) { - return interactUidList_.getInt(index); - } - /** - * <code>repeated uint32 interactUidList = 24;</code> - * @param index The index to set the value at. - * @param value The interactUidList to set. - * @return This builder for chaining. - */ - public Builder setInteractUidList( - int index, int value) { - ensureInteractUidListIsMutable(); - interactUidList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 interactUidList = 24;</code> - * @param value The interactUidList to add. - * @return This builder for chaining. - */ - public Builder addInteractUidList(int value) { - ensureInteractUidListIsMutable(); - interactUidList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 interactUidList = 24;</code> - * @param values The interactUidList to add. - * @return This builder for chaining. - */ - public Builder addAllInteractUidList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureInteractUidListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, interactUidList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 interactUidList = 24;</code> - * @return This builder for chaining. - */ - public Builder clearInteractUidList() { - interactUidList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private int draftId_ ; - /** - * <code>uint32 draftId = 25;</code> - * @return The draftId. - */ - @java.lang.Override - public int getDraftId() { - return draftId_; - } - /** - * <code>uint32 draftId = 25;</code> - * @param value The draftId to set. - * @return This builder for chaining. - */ - public Builder setDraftId(int value) { - - draftId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 draftId = 25;</code> - * @return This builder for chaining. - */ - public Builder clearDraftId() { - - draftId_ = 0; - onChanged(); - return this; - } - - private int gadgetTalkState_ ; - /** - * <code>uint32 gadgetTalkState = 26;</code> - * @return The gadgetTalkState. - */ - @java.lang.Override - public int getGadgetTalkState() { - return gadgetTalkState_; - } - /** - * <code>uint32 gadgetTalkState = 26;</code> - * @param value The gadgetTalkState to set. - * @return This builder for chaining. - */ - public Builder setGadgetTalkState(int value) { - - gadgetTalkState_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gadgetTalkState = 26;</code> - * @return This builder for chaining. - */ - public Builder clearGadgetTalkState() { - - gadgetTalkState_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo playInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo, emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo.Builder, emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfoOrBuilder> playInfoBuilder_; - /** - * <code>.GadgetPlayInfo playInfo = 100;</code> - * @return Whether the playInfo field is set. - */ - public boolean hasPlayInfo() { - return playInfoBuilder_ != null || playInfo_ != null; - } - /** - * <code>.GadgetPlayInfo playInfo = 100;</code> - * @return The playInfo. - */ - public emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo getPlayInfo() { - if (playInfoBuilder_ == null) { - return playInfo_ == null ? emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo.getDefaultInstance() : playInfo_; - } else { - return playInfoBuilder_.getMessage(); - } - } - /** - * <code>.GadgetPlayInfo playInfo = 100;</code> - */ - public Builder setPlayInfo(emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo value) { - if (playInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - playInfo_ = value; - onChanged(); - } else { - playInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.GadgetPlayInfo playInfo = 100;</code> - */ - public Builder setPlayInfo( - emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo.Builder builderForValue) { - if (playInfoBuilder_ == null) { - playInfo_ = builderForValue.build(); - onChanged(); - } else { - playInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.GadgetPlayInfo playInfo = 100;</code> - */ - public Builder mergePlayInfo(emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo value) { - if (playInfoBuilder_ == null) { - if (playInfo_ != null) { - playInfo_ = - emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo.newBuilder(playInfo_).mergeFrom(value).buildPartial(); - } else { - playInfo_ = value; - } - onChanged(); - } else { - playInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.GadgetPlayInfo playInfo = 100;</code> - */ - public Builder clearPlayInfo() { - if (playInfoBuilder_ == null) { - playInfo_ = null; - onChanged(); - } else { - playInfo_ = null; - playInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.GadgetPlayInfo playInfo = 100;</code> - */ - public emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo.Builder getPlayInfoBuilder() { - - onChanged(); - return getPlayInfoFieldBuilder().getBuilder(); - } - /** - * <code>.GadgetPlayInfo playInfo = 100;</code> - */ - public emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfoOrBuilder getPlayInfoOrBuilder() { - if (playInfoBuilder_ != null) { - return playInfoBuilder_.getMessageOrBuilder(); - } else { - return playInfo_ == null ? - emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo.getDefaultInstance() : playInfo_; - } - } - /** - * <code>.GadgetPlayInfo playInfo = 100;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo, emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo.Builder, emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfoOrBuilder> - getPlayInfoFieldBuilder() { - if (playInfoBuilder_ == null) { - playInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo, emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo.Builder, emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfoOrBuilder>( - getPlayInfo(), - getParentForChildren(), - isClean()); - playInfo_ = null; - } - return playInfoBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SceneGadgetInfo) - } - - // @@protoc_insertion_point(class_scope:SceneGadgetInfo) - private static final emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo(); - } - - public static emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SceneGadgetInfo> - PARSER = new com.google.protobuf.AbstractParser<SceneGadgetInfo>() { - @java.lang.Override - public SceneGadgetInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SceneGadgetInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SceneGadgetInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SceneGadgetInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneGadgetInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneGadgetInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025SceneGadgetInfo.proto\032\024GadgetBornType." + - "proto\032\027GadgetClientParam.proto\032\024GadgetPl" + - "ayInfo.proto\032\nItem.proto\032\022PlatformInfo.p" + - "roto\"\352\005\n\017SceneGadgetInfo\022\020\n\010gadgetId\030\001 \001" + - "(\r\022\017\n\007groupId\030\002 \001(\r\022\020\n\010configId\030\003 \001(\r\022\025\n" + - "\rownerEntityId\030\004 \001(\r\022!\n\010bornType\030\005 \001(\0162\017" + - ".GadgetBornType\022\023\n\013gadgetState\030\006 \001(\r\022\022\n\n" + - "gadgetType\030\007 \001(\r\022\026\n\016isShowCutscene\030\010 \001(\010" + - "\022\027\n\017authorityPeerId\030\t \001(\r\022\030\n\020isEnableInt" + - "eract\030\n \001(\010\022\022\n\ninteractId\030\013 \001(\r\022\031\n\ntrifl" + - "eItem\030\014 \001(\0132\005.Item\022\024\n\014gatherGadget\030\r \001(\r" + - "\022\017\n\007worktop\030\016 \001(\r\022(\n\014clientGadget\030\017 \001(\0132" + - "\022.GadgetClientParam\022\017\n\007weather\030\021 \001(\r\022\025\n\r" + - "abilityGadget\030\022 \001(\r\022\024\n\014statueGadget\030\023 \001(" + - "\r\022\021\n\tbossChest\030\024 \001(\r\022\024\n\014blossomChest\030) \001" + - "(\r\022\024\n\014mpPlayReward\030* \001(\r\022\025\n\rgeneralRewar" + - "d\030+ \001(\r\022\024\n\014offeringInfo\030, \001(\r\022\026\n\016foundat" + - "ionInfo\030- \001(\r\022\020\n\010markFlag\030\025 \001(\r\022\031\n\021propO" + - "wnerEntityId\030\026 \001(\r\022\037\n\010platform\030\027 \001(\0132\r.P" + - "latformInfo\022\027\n\017interactUidList\030\030 \003(\r\022\017\n\007" + - "draftId\030\031 \001(\r\022\027\n\017gadgetTalkState\030\032 \001(\r\022!" + - "\n\010playInfo\030d \001(\0132\017.GadgetPlayInfoB\033\n\031emu" + - ".grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.GadgetBornTypeOuterClass.getDescriptor(), - emu.grasscutter.net.proto.GadgetClientParamOuterClass.getDescriptor(), - emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.ItemOuterClass.getDescriptor(), - emu.grasscutter.net.proto.PlatformInfoOuterClass.getDescriptor(), - }); - internal_static_SceneGadgetInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SceneGadgetInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneGadgetInfo_descriptor, - new java.lang.String[] { "GadgetId", "GroupId", "ConfigId", "OwnerEntityId", "BornType", "GadgetState", "GadgetType", "IsShowCutscene", "AuthorityPeerId", "IsEnableInteract", "InteractId", "TrifleItem", "GatherGadget", "Worktop", "ClientGadget", "Weather", "AbilityGadget", "StatueGadget", "BossChest", "BlossomChest", "MpPlayReward", "GeneralReward", "OfferingInfo", "FoundationInfo", "MarkFlag", "PropOwnerEntityId", "Platform", "InteractUidList", "DraftId", "GadgetTalkState", "PlayInfo", }); - emu.grasscutter.net.proto.GadgetBornTypeOuterClass.getDescriptor(); - emu.grasscutter.net.proto.GadgetClientParamOuterClass.getDescriptor(); - emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.ItemOuterClass.getDescriptor(); - emu.grasscutter.net.proto.PlatformInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SceneInitFinishRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SceneInitFinishRspOuterClass.java deleted file mode 100644 index e0812c8dd..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SceneInitFinishRspOuterClass.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SceneInitFinishRsp.proto - -package emu.grasscutter.net.proto; - -public final class SceneInitFinishRspOuterClass { - private SceneInitFinishRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SceneInitFinishRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:SceneInitFinishRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint32 enterSceneToken = 2;</code> - * @return The enterSceneToken. - */ - int getEnterSceneToken(); - } - /** - * Protobuf type {@code SceneInitFinishRsp} - */ - public static final class SceneInitFinishRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SceneInitFinishRsp) - SceneInitFinishRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use SceneInitFinishRsp.newBuilder() to construct. - private SceneInitFinishRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SceneInitFinishRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SceneInitFinishRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SceneInitFinishRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - enterSceneToken_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.internal_static_SceneInitFinishRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.internal_static_SceneInitFinishRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp.class, emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int ENTERSCENETOKEN_FIELD_NUMBER = 2; - private int enterSceneToken_; - /** - * <code>uint32 enterSceneToken = 2;</code> - * @return The enterSceneToken. - */ - @java.lang.Override - public int getEnterSceneToken() { - return enterSceneToken_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (enterSceneToken_ != 0) { - output.writeUInt32(2, enterSceneToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (enterSceneToken_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, enterSceneToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp other = (emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getEnterSceneToken() - != other.getEnterSceneToken()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + ENTERSCENETOKEN_FIELD_NUMBER; - hash = (53 * hash) + getEnterSceneToken(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SceneInitFinishRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SceneInitFinishRsp) - emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.internal_static_SceneInitFinishRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.internal_static_SceneInitFinishRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp.class, emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - enterSceneToken_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.internal_static_SceneInitFinishRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp build() { - emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp buildPartial() { - emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp result = new emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp(this); - result.retcode_ = retcode_; - result.enterSceneToken_ = enterSceneToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp) { - return mergeFrom((emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp other) { - if (other == emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getEnterSceneToken() != 0) { - setEnterSceneToken(other.getEnterSceneToken()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int enterSceneToken_ ; - /** - * <code>uint32 enterSceneToken = 2;</code> - * @return The enterSceneToken. - */ - @java.lang.Override - public int getEnterSceneToken() { - return enterSceneToken_; - } - /** - * <code>uint32 enterSceneToken = 2;</code> - * @param value The enterSceneToken to set. - * @return This builder for chaining. - */ - public Builder setEnterSceneToken(int value) { - - enterSceneToken_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 enterSceneToken = 2;</code> - * @return This builder for chaining. - */ - public Builder clearEnterSceneToken() { - - enterSceneToken_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SceneInitFinishRsp) - } - - // @@protoc_insertion_point(class_scope:SceneInitFinishRsp) - private static final emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp(); - } - - public static emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SceneInitFinishRsp> - PARSER = new com.google.protobuf.AbstractParser<SceneInitFinishRsp>() { - @java.lang.Override - public SceneInitFinishRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SceneInitFinishRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SceneInitFinishRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SceneInitFinishRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneInitFinishRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneInitFinishRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030SceneInitFinishRsp.proto\">\n\022SceneInitF" + - "inishRsp\022\017\n\007retcode\030\001 \001(\005\022\027\n\017enterSceneT" + - "oken\030\002 \001(\rB\033\n\031emu.grasscutter.net.protob" + - "\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SceneInitFinishRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SceneInitFinishRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneInitFinishRsp_descriptor, - new java.lang.String[] { "Retcode", "EnterSceneToken", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SceneKickPlayerNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SceneKickPlayerNotifyOuterClass.java deleted file mode 100644 index 3bd2e8508..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SceneKickPlayerNotifyOuterClass.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SceneKickPlayerNotify.proto - -package emu.grasscutter.net.proto; - -public final class SceneKickPlayerNotifyOuterClass { - private SceneKickPlayerNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SceneKickPlayerNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:SceneKickPlayerNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 kickerUid = 1;</code> - * @return The kickerUid. - */ - int getKickerUid(); - - /** - * <code>uint32 targetUid = 2;</code> - * @return The targetUid. - */ - int getTargetUid(); - } - /** - * Protobuf type {@code SceneKickPlayerNotify} - */ - public static final class SceneKickPlayerNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SceneKickPlayerNotify) - SceneKickPlayerNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use SceneKickPlayerNotify.newBuilder() to construct. - private SceneKickPlayerNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SceneKickPlayerNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SceneKickPlayerNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SceneKickPlayerNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - kickerUid_ = input.readUInt32(); - break; - } - case 16: { - - targetUid_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.internal_static_SceneKickPlayerNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.internal_static_SceneKickPlayerNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify.class, emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify.Builder.class); - } - - public static final int KICKERUID_FIELD_NUMBER = 1; - private int kickerUid_; - /** - * <code>uint32 kickerUid = 1;</code> - * @return The kickerUid. - */ - @java.lang.Override - public int getKickerUid() { - return kickerUid_; - } - - public static final int TARGETUID_FIELD_NUMBER = 2; - private int targetUid_; - /** - * <code>uint32 targetUid = 2;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (kickerUid_ != 0) { - output.writeUInt32(1, kickerUid_); - } - if (targetUid_ != 0) { - output.writeUInt32(2, targetUid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (kickerUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, kickerUid_); - } - if (targetUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, targetUid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify other = (emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify) obj; - - if (getKickerUid() - != other.getKickerUid()) return false; - if (getTargetUid() - != other.getTargetUid()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KICKERUID_FIELD_NUMBER; - hash = (53 * hash) + getKickerUid(); - hash = (37 * hash) + TARGETUID_FIELD_NUMBER; - hash = (53 * hash) + getTargetUid(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SceneKickPlayerNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SceneKickPlayerNotify) - emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.internal_static_SceneKickPlayerNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.internal_static_SceneKickPlayerNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify.class, emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - kickerUid_ = 0; - - targetUid_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.internal_static_SceneKickPlayerNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify build() { - emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify buildPartial() { - emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify result = new emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify(this); - result.kickerUid_ = kickerUid_; - result.targetUid_ = targetUid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify) { - return mergeFrom((emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify other) { - if (other == emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify.getDefaultInstance()) return this; - if (other.getKickerUid() != 0) { - setKickerUid(other.getKickerUid()); - } - if (other.getTargetUid() != 0) { - setTargetUid(other.getTargetUid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int kickerUid_ ; - /** - * <code>uint32 kickerUid = 1;</code> - * @return The kickerUid. - */ - @java.lang.Override - public int getKickerUid() { - return kickerUid_; - } - /** - * <code>uint32 kickerUid = 1;</code> - * @param value The kickerUid to set. - * @return This builder for chaining. - */ - public Builder setKickerUid(int value) { - - kickerUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 kickerUid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearKickerUid() { - - kickerUid_ = 0; - onChanged(); - return this; - } - - private int targetUid_ ; - /** - * <code>uint32 targetUid = 2;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - /** - * <code>uint32 targetUid = 2;</code> - * @param value The targetUid to set. - * @return This builder for chaining. - */ - public Builder setTargetUid(int value) { - - targetUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 targetUid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearTargetUid() { - - targetUid_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SceneKickPlayerNotify) - } - - // @@protoc_insertion_point(class_scope:SceneKickPlayerNotify) - private static final emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify(); - } - - public static emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SceneKickPlayerNotify> - PARSER = new com.google.protobuf.AbstractParser<SceneKickPlayerNotify>() { - @java.lang.Override - public SceneKickPlayerNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SceneKickPlayerNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SceneKickPlayerNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SceneKickPlayerNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneKickPlayerNotifyOuterClass.SceneKickPlayerNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneKickPlayerNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneKickPlayerNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033SceneKickPlayerNotify.proto\"=\n\025SceneKi" + - "ckPlayerNotify\022\021\n\tkickerUid\030\001 \001(\r\022\021\n\ttar" + - "getUid\030\002 \001(\rB\033\n\031emu.grasscutter.net.prot" + - "ob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SceneKickPlayerNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SceneKickPlayerNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneKickPlayerNotify_descriptor, - new java.lang.String[] { "KickerUid", "TargetUid", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SceneKickPlayerReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SceneKickPlayerReqOuterClass.java deleted file mode 100644 index 04ba461da..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SceneKickPlayerReqOuterClass.java +++ /dev/null @@ -1,536 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SceneKickPlayerReq.proto - -package emu.grasscutter.net.proto; - -public final class SceneKickPlayerReqOuterClass { - private SceneKickPlayerReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SceneKickPlayerReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:SceneKickPlayerReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - int getTargetUid(); - } - /** - * Protobuf type {@code SceneKickPlayerReq} - */ - public static final class SceneKickPlayerReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SceneKickPlayerReq) - SceneKickPlayerReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use SceneKickPlayerReq.newBuilder() to construct. - private SceneKickPlayerReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SceneKickPlayerReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SceneKickPlayerReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SceneKickPlayerReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - targetUid_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.internal_static_SceneKickPlayerReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.internal_static_SceneKickPlayerReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq.class, emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq.Builder.class); - } - - public static final int TARGETUID_FIELD_NUMBER = 1; - private int targetUid_; - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (targetUid_ != 0) { - output.writeUInt32(1, targetUid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (targetUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, targetUid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq other = (emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq) obj; - - if (getTargetUid() - != other.getTargetUid()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TARGETUID_FIELD_NUMBER; - hash = (53 * hash) + getTargetUid(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SceneKickPlayerReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SceneKickPlayerReq) - emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.internal_static_SceneKickPlayerReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.internal_static_SceneKickPlayerReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq.class, emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - targetUid_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.internal_static_SceneKickPlayerReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq build() { - emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq buildPartial() { - emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq result = new emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq(this); - result.targetUid_ = targetUid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq) { - return mergeFrom((emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq other) { - if (other == emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq.getDefaultInstance()) return this; - if (other.getTargetUid() != 0) { - setTargetUid(other.getTargetUid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int targetUid_ ; - /** - * <code>uint32 targetUid = 1;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - /** - * <code>uint32 targetUid = 1;</code> - * @param value The targetUid to set. - * @return This builder for chaining. - */ - public Builder setTargetUid(int value) { - - targetUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 targetUid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTargetUid() { - - targetUid_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SceneKickPlayerReq) - } - - // @@protoc_insertion_point(class_scope:SceneKickPlayerReq) - private static final emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq(); - } - - public static emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SceneKickPlayerReq> - PARSER = new com.google.protobuf.AbstractParser<SceneKickPlayerReq>() { - @java.lang.Override - public SceneKickPlayerReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SceneKickPlayerReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SceneKickPlayerReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SceneKickPlayerReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneKickPlayerReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneKickPlayerReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030SceneKickPlayerReq.proto\"\'\n\022SceneKickP" + - "layerReq\022\021\n\ttargetUid\030\001 \001(\rB\033\n\031emu.grass" + - "cutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SceneKickPlayerReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SceneKickPlayerReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneKickPlayerReq_descriptor, - new java.lang.String[] { "TargetUid", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SceneKickPlayerRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SceneKickPlayerRspOuterClass.java deleted file mode 100644 index 88281b72f..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SceneKickPlayerRspOuterClass.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SceneKickPlayerRsp.proto - -package emu.grasscutter.net.proto; - -public final class SceneKickPlayerRspOuterClass { - private SceneKickPlayerRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SceneKickPlayerRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:SceneKickPlayerRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint32 targetUid = 2;</code> - * @return The targetUid. - */ - int getTargetUid(); - } - /** - * Protobuf type {@code SceneKickPlayerRsp} - */ - public static final class SceneKickPlayerRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SceneKickPlayerRsp) - SceneKickPlayerRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use SceneKickPlayerRsp.newBuilder() to construct. - private SceneKickPlayerRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SceneKickPlayerRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SceneKickPlayerRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SceneKickPlayerRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - targetUid_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.internal_static_SceneKickPlayerRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.internal_static_SceneKickPlayerRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp.class, emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int TARGETUID_FIELD_NUMBER = 2; - private int targetUid_; - /** - * <code>uint32 targetUid = 2;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (targetUid_ != 0) { - output.writeUInt32(2, targetUid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (targetUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, targetUid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp other = (emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getTargetUid() - != other.getTargetUid()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + TARGETUID_FIELD_NUMBER; - hash = (53 * hash) + getTargetUid(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SceneKickPlayerRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SceneKickPlayerRsp) - emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.internal_static_SceneKickPlayerRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.internal_static_SceneKickPlayerRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp.class, emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - targetUid_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.internal_static_SceneKickPlayerRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp build() { - emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp buildPartial() { - emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp result = new emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp(this); - result.retcode_ = retcode_; - result.targetUid_ = targetUid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp) { - return mergeFrom((emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp other) { - if (other == emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getTargetUid() != 0) { - setTargetUid(other.getTargetUid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int targetUid_ ; - /** - * <code>uint32 targetUid = 2;</code> - * @return The targetUid. - */ - @java.lang.Override - public int getTargetUid() { - return targetUid_; - } - /** - * <code>uint32 targetUid = 2;</code> - * @param value The targetUid to set. - * @return This builder for chaining. - */ - public Builder setTargetUid(int value) { - - targetUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 targetUid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearTargetUid() { - - targetUid_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SceneKickPlayerRsp) - } - - // @@protoc_insertion_point(class_scope:SceneKickPlayerRsp) - private static final emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp(); - } - - public static emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SceneKickPlayerRsp> - PARSER = new com.google.protobuf.AbstractParser<SceneKickPlayerRsp>() { - @java.lang.Override - public SceneKickPlayerRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SceneKickPlayerRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SceneKickPlayerRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SceneKickPlayerRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneKickPlayerRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneKickPlayerRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030SceneKickPlayerRsp.proto\"8\n\022SceneKickP" + - "layerRsp\022\017\n\007retcode\030\001 \001(\005\022\021\n\ttargetUid\030\002" + - " \001(\rB\033\n\031emu.grasscutter.net.protob\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SceneKickPlayerRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SceneKickPlayerRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneKickPlayerRsp_descriptor, - new java.lang.String[] { "Retcode", "TargetUid", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SceneMonsterInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SceneMonsterInfoOuterClass.java deleted file mode 100644 index 5c5b702d6..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SceneMonsterInfoOuterClass.java +++ /dev/null @@ -1,2575 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SceneMonsterInfo.proto - -package emu.grasscutter.net.proto; - -public final class SceneMonsterInfoOuterClass { - private SceneMonsterInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SceneMonsterInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:SceneMonsterInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 monsterId = 1;</code> - * @return The monsterId. - */ - int getMonsterId(); - - /** - * <code>uint32 groupId = 2;</code> - * @return The groupId. - */ - int getGroupId(); - - /** - * <code>uint32 configId = 3;</code> - * @return The configId. - */ - int getConfigId(); - - /** - * <code>.SceneWeaponInfo weaponList = 4;</code> - * @return Whether the weaponList field is set. - */ - boolean hasWeaponList(); - /** - * <code>.SceneWeaponInfo weaponList = 4;</code> - * @return The weaponList. - */ - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo getWeaponList(); - /** - * <code>.SceneWeaponInfo weaponList = 4;</code> - */ - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfoOrBuilder getWeaponListOrBuilder(); - - /** - * <code>uint32 authorityPeerId = 5;</code> - * @return The authorityPeerId. - */ - int getAuthorityPeerId(); - - /** - * <code>repeated uint32 affixList = 6;</code> - * @return A list containing the affixList. - */ - java.util.List<java.lang.Integer> getAffixListList(); - /** - * <code>repeated uint32 affixList = 6;</code> - * @return The count of affixList. - */ - int getAffixListCount(); - /** - * <code>repeated uint32 affixList = 6;</code> - * @param index The index of the element to return. - * @return The affixList at the given index. - */ - int getAffixList(int index); - - /** - * <code>bool isElite = 7;</code> - * @return The isElite. - */ - boolean getIsElite(); - - /** - * <code>uint32 ownerEntityId = 8;</code> - * @return The ownerEntityId. - */ - int getOwnerEntityId(); - - /** - * <code>uint32 summonedTag = 9;</code> - * @return The summonedTag. - */ - int getSummonedTag(); - - /** - * <code>map<uint32, uint32> summonTagMap = 10;</code> - */ - int getSummonTagMapCount(); - /** - * <code>map<uint32, uint32> summonTagMap = 10;</code> - */ - boolean containsSummonTagMap( - int key); - /** - * Use {@link #getSummonTagMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Integer> - getSummonTagMap(); - /** - * <code>map<uint32, uint32> summonTagMap = 10;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Integer> - getSummonTagMapMap(); - /** - * <code>map<uint32, uint32> summonTagMap = 10;</code> - */ - - int getSummonTagMapOrDefault( - int key, - int defaultValue); - /** - * <code>map<uint32, uint32> summonTagMap = 10;</code> - */ - - int getSummonTagMapOrThrow( - int key); - - /** - * <code>uint32 poseId = 11;</code> - * @return The poseId. - */ - int getPoseId(); - - /** - * <code>.MonsterBornType bornType = 12;</code> - * @return The enum numeric value on the wire for bornType. - */ - int getBornTypeValue(); - /** - * <code>.MonsterBornType bornType = 12;</code> - * @return The bornType. - */ - emu.grasscutter.net.proto.MonsterBornTypeOuterClass.MonsterBornType getBornType(); - - /** - * <code>uint32 blockId = 13;</code> - * @return The blockId. - */ - int getBlockId(); - - /** - * <code>uint32 markFlag = 14;</code> - * @return The markFlag. - */ - int getMarkFlag(); - - /** - * <code>uint32 titleId = 15;</code> - * @return The titleId. - */ - int getTitleId(); - - /** - * <code>uint32 specialNameId = 16;</code> - * @return The specialNameId. - */ - int getSpecialNameId(); - - /** - * <code>uint32 attackTargetId = 17;</code> - * @return The attackTargetId. - */ - int getAttackTargetId(); - - /** - * <code>.MonsterRoute monsterRoute = 18;</code> - * @return Whether the monsterRoute field is set. - */ - boolean hasMonsterRoute(); - /** - * <code>.MonsterRoute monsterRoute = 18;</code> - * @return The monsterRoute. - */ - emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute getMonsterRoute(); - /** - * <code>.MonsterRoute monsterRoute = 18;</code> - */ - emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRouteOrBuilder getMonsterRouteOrBuilder(); - - /** - * <code>uint32 aiConfigId = 19;</code> - * @return The aiConfigId. - */ - int getAiConfigId(); - - /** - * <code>uint32 unk1 = 21;</code> - * @return The unk1. - */ - int getUnk1(); - } - /** - * Protobuf type {@code SceneMonsterInfo} - */ - public static final class SceneMonsterInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SceneMonsterInfo) - SceneMonsterInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use SceneMonsterInfo.newBuilder() to construct. - private SceneMonsterInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SceneMonsterInfo() { - affixList_ = emptyIntList(); - bornType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SceneMonsterInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SceneMonsterInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - monsterId_ = input.readUInt32(); - break; - } - case 16: { - - groupId_ = input.readUInt32(); - break; - } - case 24: { - - configId_ = input.readUInt32(); - break; - } - case 34: { - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.Builder subBuilder = null; - if (weaponList_ != null) { - subBuilder = weaponList_.toBuilder(); - } - weaponList_ = input.readMessage(emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(weaponList_); - weaponList_ = subBuilder.buildPartial(); - } - - break; - } - case 40: { - - authorityPeerId_ = input.readUInt32(); - break; - } - case 48: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - affixList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - affixList_.addInt(input.readUInt32()); - break; - } - case 50: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - affixList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - affixList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 56: { - - isElite_ = input.readBool(); - break; - } - case 64: { - - ownerEntityId_ = input.readUInt32(); - break; - } - case 72: { - - summonedTag_ = input.readUInt32(); - break; - } - case 82: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - summonTagMap_ = com.google.protobuf.MapField.newMapField( - SummonTagMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - summonTagMap__ = input.readMessage( - SummonTagMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - summonTagMap_.getMutableMap().put( - summonTagMap__.getKey(), summonTagMap__.getValue()); - break; - } - case 88: { - - poseId_ = input.readUInt32(); - break; - } - case 96: { - int rawValue = input.readEnum(); - - bornType_ = rawValue; - break; - } - case 104: { - - blockId_ = input.readUInt32(); - break; - } - case 112: { - - markFlag_ = input.readUInt32(); - break; - } - case 120: { - - titleId_ = input.readUInt32(); - break; - } - case 128: { - - specialNameId_ = input.readUInt32(); - break; - } - case 136: { - - attackTargetId_ = input.readUInt32(); - break; - } - case 146: { - emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute.Builder subBuilder = null; - if (monsterRoute_ != null) { - subBuilder = monsterRoute_.toBuilder(); - } - monsterRoute_ = input.readMessage(emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(monsterRoute_); - monsterRoute_ = subBuilder.buildPartial(); - } - - break; - } - case 152: { - - aiConfigId_ = input.readUInt32(); - break; - } - case 168: { - - unk1_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - affixList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.internal_static_SceneMonsterInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 10: - return internalGetSummonTagMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.internal_static_SceneMonsterInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo.class, emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo.Builder.class); - } - - public static final int MONSTERID_FIELD_NUMBER = 1; - private int monsterId_; - /** - * <code>uint32 monsterId = 1;</code> - * @return The monsterId. - */ - @java.lang.Override - public int getMonsterId() { - return monsterId_; - } - - public static final int GROUPID_FIELD_NUMBER = 2; - private int groupId_; - /** - * <code>uint32 groupId = 2;</code> - * @return The groupId. - */ - @java.lang.Override - public int getGroupId() { - return groupId_; - } - - public static final int CONFIGID_FIELD_NUMBER = 3; - private int configId_; - /** - * <code>uint32 configId = 3;</code> - * @return The configId. - */ - @java.lang.Override - public int getConfigId() { - return configId_; - } - - public static final int WEAPONLIST_FIELD_NUMBER = 4; - private emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo weaponList_; - /** - * <code>.SceneWeaponInfo weaponList = 4;</code> - * @return Whether the weaponList field is set. - */ - @java.lang.Override - public boolean hasWeaponList() { - return weaponList_ != null; - } - /** - * <code>.SceneWeaponInfo weaponList = 4;</code> - * @return The weaponList. - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo getWeaponList() { - return weaponList_ == null ? emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.getDefaultInstance() : weaponList_; - } - /** - * <code>.SceneWeaponInfo weaponList = 4;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfoOrBuilder getWeaponListOrBuilder() { - return getWeaponList(); - } - - public static final int AUTHORITYPEERID_FIELD_NUMBER = 5; - private int authorityPeerId_; - /** - * <code>uint32 authorityPeerId = 5;</code> - * @return The authorityPeerId. - */ - @java.lang.Override - public int getAuthorityPeerId() { - return authorityPeerId_; - } - - public static final int AFFIXLIST_FIELD_NUMBER = 6; - private com.google.protobuf.Internal.IntList affixList_; - /** - * <code>repeated uint32 affixList = 6;</code> - * @return A list containing the affixList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getAffixListList() { - return affixList_; - } - /** - * <code>repeated uint32 affixList = 6;</code> - * @return The count of affixList. - */ - public int getAffixListCount() { - return affixList_.size(); - } - /** - * <code>repeated uint32 affixList = 6;</code> - * @param index The index of the element to return. - * @return The affixList at the given index. - */ - public int getAffixList(int index) { - return affixList_.getInt(index); - } - private int affixListMemoizedSerializedSize = -1; - - public static final int ISELITE_FIELD_NUMBER = 7; - private boolean isElite_; - /** - * <code>bool isElite = 7;</code> - * @return The isElite. - */ - @java.lang.Override - public boolean getIsElite() { - return isElite_; - } - - public static final int OWNERENTITYID_FIELD_NUMBER = 8; - private int ownerEntityId_; - /** - * <code>uint32 ownerEntityId = 8;</code> - * @return The ownerEntityId. - */ - @java.lang.Override - public int getOwnerEntityId() { - return ownerEntityId_; - } - - public static final int SUMMONEDTAG_FIELD_NUMBER = 9; - private int summonedTag_; - /** - * <code>uint32 summonedTag = 9;</code> - * @return The summonedTag. - */ - @java.lang.Override - public int getSummonedTag() { - return summonedTag_; - } - - public static final int SUMMONTAGMAP_FIELD_NUMBER = 10; - private static final class SummonTagMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Integer>newDefaultInstance( - emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.internal_static_SceneMonsterInfo_SummonTagMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> summonTagMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetSummonTagMap() { - if (summonTagMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SummonTagMapDefaultEntryHolder.defaultEntry); - } - return summonTagMap_; - } - - public int getSummonTagMapCount() { - return internalGetSummonTagMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> summonTagMap = 10;</code> - */ - - @java.lang.Override - public boolean containsSummonTagMap( - int key) { - - return internalGetSummonTagMap().getMap().containsKey(key); - } - /** - * Use {@link #getSummonTagMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getSummonTagMap() { - return getSummonTagMapMap(); - } - /** - * <code>map<uint32, uint32> summonTagMap = 10;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getSummonTagMapMap() { - return internalGetSummonTagMap().getMap(); - } - /** - * <code>map<uint32, uint32> summonTagMap = 10;</code> - */ - @java.lang.Override - - public int getSummonTagMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSummonTagMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> summonTagMap = 10;</code> - */ - @java.lang.Override - - public int getSummonTagMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSummonTagMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int POSEID_FIELD_NUMBER = 11; - private int poseId_; - /** - * <code>uint32 poseId = 11;</code> - * @return The poseId. - */ - @java.lang.Override - public int getPoseId() { - return poseId_; - } - - public static final int BORNTYPE_FIELD_NUMBER = 12; - private int bornType_; - /** - * <code>.MonsterBornType bornType = 12;</code> - * @return The enum numeric value on the wire for bornType. - */ - @java.lang.Override public int getBornTypeValue() { - return bornType_; - } - /** - * <code>.MonsterBornType bornType = 12;</code> - * @return The bornType. - */ - @java.lang.Override public emu.grasscutter.net.proto.MonsterBornTypeOuterClass.MonsterBornType getBornType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.MonsterBornTypeOuterClass.MonsterBornType result = emu.grasscutter.net.proto.MonsterBornTypeOuterClass.MonsterBornType.valueOf(bornType_); - return result == null ? emu.grasscutter.net.proto.MonsterBornTypeOuterClass.MonsterBornType.UNRECOGNIZED : result; - } - - public static final int BLOCKID_FIELD_NUMBER = 13; - private int blockId_; - /** - * <code>uint32 blockId = 13;</code> - * @return The blockId. - */ - @java.lang.Override - public int getBlockId() { - return blockId_; - } - - public static final int MARKFLAG_FIELD_NUMBER = 14; - private int markFlag_; - /** - * <code>uint32 markFlag = 14;</code> - * @return The markFlag. - */ - @java.lang.Override - public int getMarkFlag() { - return markFlag_; - } - - public static final int TITLEID_FIELD_NUMBER = 15; - private int titleId_; - /** - * <code>uint32 titleId = 15;</code> - * @return The titleId. - */ - @java.lang.Override - public int getTitleId() { - return titleId_; - } - - public static final int SPECIALNAMEID_FIELD_NUMBER = 16; - private int specialNameId_; - /** - * <code>uint32 specialNameId = 16;</code> - * @return The specialNameId. - */ - @java.lang.Override - public int getSpecialNameId() { - return specialNameId_; - } - - public static final int ATTACKTARGETID_FIELD_NUMBER = 17; - private int attackTargetId_; - /** - * <code>uint32 attackTargetId = 17;</code> - * @return The attackTargetId. - */ - @java.lang.Override - public int getAttackTargetId() { - return attackTargetId_; - } - - public static final int MONSTERROUTE_FIELD_NUMBER = 18; - private emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute monsterRoute_; - /** - * <code>.MonsterRoute monsterRoute = 18;</code> - * @return Whether the monsterRoute field is set. - */ - @java.lang.Override - public boolean hasMonsterRoute() { - return monsterRoute_ != null; - } - /** - * <code>.MonsterRoute monsterRoute = 18;</code> - * @return The monsterRoute. - */ - @java.lang.Override - public emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute getMonsterRoute() { - return monsterRoute_ == null ? emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute.getDefaultInstance() : monsterRoute_; - } - /** - * <code>.MonsterRoute monsterRoute = 18;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRouteOrBuilder getMonsterRouteOrBuilder() { - return getMonsterRoute(); - } - - public static final int AICONFIGID_FIELD_NUMBER = 19; - private int aiConfigId_; - /** - * <code>uint32 aiConfigId = 19;</code> - * @return The aiConfigId. - */ - @java.lang.Override - public int getAiConfigId() { - return aiConfigId_; - } - - public static final int UNK1_FIELD_NUMBER = 21; - private int unk1_; - /** - * <code>uint32 unk1 = 21;</code> - * @return The unk1. - */ - @java.lang.Override - public int getUnk1() { - return unk1_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (monsterId_ != 0) { - output.writeUInt32(1, monsterId_); - } - if (groupId_ != 0) { - output.writeUInt32(2, groupId_); - } - if (configId_ != 0) { - output.writeUInt32(3, configId_); - } - if (weaponList_ != null) { - output.writeMessage(4, getWeaponList()); - } - if (authorityPeerId_ != 0) { - output.writeUInt32(5, authorityPeerId_); - } - if (getAffixListList().size() > 0) { - output.writeUInt32NoTag(50); - output.writeUInt32NoTag(affixListMemoizedSerializedSize); - } - for (int i = 0; i < affixList_.size(); i++) { - output.writeUInt32NoTag(affixList_.getInt(i)); - } - if (isElite_ != false) { - output.writeBool(7, isElite_); - } - if (ownerEntityId_ != 0) { - output.writeUInt32(8, ownerEntityId_); - } - if (summonedTag_ != 0) { - output.writeUInt32(9, summonedTag_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetSummonTagMap(), - SummonTagMapDefaultEntryHolder.defaultEntry, - 10); - if (poseId_ != 0) { - output.writeUInt32(11, poseId_); - } - if (bornType_ != emu.grasscutter.net.proto.MonsterBornTypeOuterClass.MonsterBornType.MonsterBornNone.getNumber()) { - output.writeEnum(12, bornType_); - } - if (blockId_ != 0) { - output.writeUInt32(13, blockId_); - } - if (markFlag_ != 0) { - output.writeUInt32(14, markFlag_); - } - if (titleId_ != 0) { - output.writeUInt32(15, titleId_); - } - if (specialNameId_ != 0) { - output.writeUInt32(16, specialNameId_); - } - if (attackTargetId_ != 0) { - output.writeUInt32(17, attackTargetId_); - } - if (monsterRoute_ != null) { - output.writeMessage(18, getMonsterRoute()); - } - if (aiConfigId_ != 0) { - output.writeUInt32(19, aiConfigId_); - } - if (unk1_ != 0) { - output.writeUInt32(21, unk1_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (monsterId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, monsterId_); - } - if (groupId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, groupId_); - } - if (configId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, configId_); - } - if (weaponList_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getWeaponList()); - } - if (authorityPeerId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, authorityPeerId_); - } - { - int dataSize = 0; - for (int i = 0; i < affixList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(affixList_.getInt(i)); - } - size += dataSize; - if (!getAffixListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - affixListMemoizedSerializedSize = dataSize; - } - if (isElite_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, isElite_); - } - if (ownerEntityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(8, ownerEntityId_); - } - if (summonedTag_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(9, summonedTag_); - } - for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry - : internalGetSummonTagMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - summonTagMap__ = SummonTagMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, summonTagMap__); - } - if (poseId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(11, poseId_); - } - if (bornType_ != emu.grasscutter.net.proto.MonsterBornTypeOuterClass.MonsterBornType.MonsterBornNone.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(12, bornType_); - } - if (blockId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(13, blockId_); - } - if (markFlag_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(14, markFlag_); - } - if (titleId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(15, titleId_); - } - if (specialNameId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(16, specialNameId_); - } - if (attackTargetId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(17, attackTargetId_); - } - if (monsterRoute_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, getMonsterRoute()); - } - if (aiConfigId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(19, aiConfigId_); - } - if (unk1_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(21, unk1_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo other = (emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo) obj; - - if (getMonsterId() - != other.getMonsterId()) return false; - if (getGroupId() - != other.getGroupId()) return false; - if (getConfigId() - != other.getConfigId()) return false; - if (hasWeaponList() != other.hasWeaponList()) return false; - if (hasWeaponList()) { - if (!getWeaponList() - .equals(other.getWeaponList())) return false; - } - if (getAuthorityPeerId() - != other.getAuthorityPeerId()) return false; - if (!getAffixListList() - .equals(other.getAffixListList())) return false; - if (getIsElite() - != other.getIsElite()) return false; - if (getOwnerEntityId() - != other.getOwnerEntityId()) return false; - if (getSummonedTag() - != other.getSummonedTag()) return false; - if (!internalGetSummonTagMap().equals( - other.internalGetSummonTagMap())) return false; - if (getPoseId() - != other.getPoseId()) return false; - if (bornType_ != other.bornType_) return false; - if (getBlockId() - != other.getBlockId()) return false; - if (getMarkFlag() - != other.getMarkFlag()) return false; - if (getTitleId() - != other.getTitleId()) return false; - if (getSpecialNameId() - != other.getSpecialNameId()) return false; - if (getAttackTargetId() - != other.getAttackTargetId()) return false; - if (hasMonsterRoute() != other.hasMonsterRoute()) return false; - if (hasMonsterRoute()) { - if (!getMonsterRoute() - .equals(other.getMonsterRoute())) return false; - } - if (getAiConfigId() - != other.getAiConfigId()) return false; - if (getUnk1() - != other.getUnk1()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MONSTERID_FIELD_NUMBER; - hash = (53 * hash) + getMonsterId(); - hash = (37 * hash) + GROUPID_FIELD_NUMBER; - hash = (53 * hash) + getGroupId(); - hash = (37 * hash) + CONFIGID_FIELD_NUMBER; - hash = (53 * hash) + getConfigId(); - if (hasWeaponList()) { - hash = (37 * hash) + WEAPONLIST_FIELD_NUMBER; - hash = (53 * hash) + getWeaponList().hashCode(); - } - hash = (37 * hash) + AUTHORITYPEERID_FIELD_NUMBER; - hash = (53 * hash) + getAuthorityPeerId(); - if (getAffixListCount() > 0) { - hash = (37 * hash) + AFFIXLIST_FIELD_NUMBER; - hash = (53 * hash) + getAffixListList().hashCode(); - } - hash = (37 * hash) + ISELITE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsElite()); - hash = (37 * hash) + OWNERENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getOwnerEntityId(); - hash = (37 * hash) + SUMMONEDTAG_FIELD_NUMBER; - hash = (53 * hash) + getSummonedTag(); - if (!internalGetSummonTagMap().getMap().isEmpty()) { - hash = (37 * hash) + SUMMONTAGMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetSummonTagMap().hashCode(); - } - hash = (37 * hash) + POSEID_FIELD_NUMBER; - hash = (53 * hash) + getPoseId(); - hash = (37 * hash) + BORNTYPE_FIELD_NUMBER; - hash = (53 * hash) + bornType_; - hash = (37 * hash) + BLOCKID_FIELD_NUMBER; - hash = (53 * hash) + getBlockId(); - hash = (37 * hash) + MARKFLAG_FIELD_NUMBER; - hash = (53 * hash) + getMarkFlag(); - hash = (37 * hash) + TITLEID_FIELD_NUMBER; - hash = (53 * hash) + getTitleId(); - hash = (37 * hash) + SPECIALNAMEID_FIELD_NUMBER; - hash = (53 * hash) + getSpecialNameId(); - hash = (37 * hash) + ATTACKTARGETID_FIELD_NUMBER; - hash = (53 * hash) + getAttackTargetId(); - if (hasMonsterRoute()) { - hash = (37 * hash) + MONSTERROUTE_FIELD_NUMBER; - hash = (53 * hash) + getMonsterRoute().hashCode(); - } - hash = (37 * hash) + AICONFIGID_FIELD_NUMBER; - hash = (53 * hash) + getAiConfigId(); - hash = (37 * hash) + UNK1_FIELD_NUMBER; - hash = (53 * hash) + getUnk1(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SceneMonsterInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SceneMonsterInfo) - emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.internal_static_SceneMonsterInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 10: - return internalGetSummonTagMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 10: - return internalGetMutableSummonTagMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.internal_static_SceneMonsterInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo.class, emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - monsterId_ = 0; - - groupId_ = 0; - - configId_ = 0; - - if (weaponListBuilder_ == null) { - weaponList_ = null; - } else { - weaponList_ = null; - weaponListBuilder_ = null; - } - authorityPeerId_ = 0; - - affixList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - isElite_ = false; - - ownerEntityId_ = 0; - - summonedTag_ = 0; - - internalGetMutableSummonTagMap().clear(); - poseId_ = 0; - - bornType_ = 0; - - blockId_ = 0; - - markFlag_ = 0; - - titleId_ = 0; - - specialNameId_ = 0; - - attackTargetId_ = 0; - - if (monsterRouteBuilder_ == null) { - monsterRoute_ = null; - } else { - monsterRoute_ = null; - monsterRouteBuilder_ = null; - } - aiConfigId_ = 0; - - unk1_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.internal_static_SceneMonsterInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo build() { - emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo buildPartial() { - emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo result = new emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo(this); - int from_bitField0_ = bitField0_; - result.monsterId_ = monsterId_; - result.groupId_ = groupId_; - result.configId_ = configId_; - if (weaponListBuilder_ == null) { - result.weaponList_ = weaponList_; - } else { - result.weaponList_ = weaponListBuilder_.build(); - } - result.authorityPeerId_ = authorityPeerId_; - if (((bitField0_ & 0x00000001) != 0)) { - affixList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.affixList_ = affixList_; - result.isElite_ = isElite_; - result.ownerEntityId_ = ownerEntityId_; - result.summonedTag_ = summonedTag_; - result.summonTagMap_ = internalGetSummonTagMap(); - result.summonTagMap_.makeImmutable(); - result.poseId_ = poseId_; - result.bornType_ = bornType_; - result.blockId_ = blockId_; - result.markFlag_ = markFlag_; - result.titleId_ = titleId_; - result.specialNameId_ = specialNameId_; - result.attackTargetId_ = attackTargetId_; - if (monsterRouteBuilder_ == null) { - result.monsterRoute_ = monsterRoute_; - } else { - result.monsterRoute_ = monsterRouteBuilder_.build(); - } - result.aiConfigId_ = aiConfigId_; - result.unk1_ = unk1_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo) { - return mergeFrom((emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo other) { - if (other == emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo.getDefaultInstance()) return this; - if (other.getMonsterId() != 0) { - setMonsterId(other.getMonsterId()); - } - if (other.getGroupId() != 0) { - setGroupId(other.getGroupId()); - } - if (other.getConfigId() != 0) { - setConfigId(other.getConfigId()); - } - if (other.hasWeaponList()) { - mergeWeaponList(other.getWeaponList()); - } - if (other.getAuthorityPeerId() != 0) { - setAuthorityPeerId(other.getAuthorityPeerId()); - } - if (!other.affixList_.isEmpty()) { - if (affixList_.isEmpty()) { - affixList_ = other.affixList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAffixListIsMutable(); - affixList_.addAll(other.affixList_); - } - onChanged(); - } - if (other.getIsElite() != false) { - setIsElite(other.getIsElite()); - } - if (other.getOwnerEntityId() != 0) { - setOwnerEntityId(other.getOwnerEntityId()); - } - if (other.getSummonedTag() != 0) { - setSummonedTag(other.getSummonedTag()); - } - internalGetMutableSummonTagMap().mergeFrom( - other.internalGetSummonTagMap()); - if (other.getPoseId() != 0) { - setPoseId(other.getPoseId()); - } - if (other.bornType_ != 0) { - setBornTypeValue(other.getBornTypeValue()); - } - if (other.getBlockId() != 0) { - setBlockId(other.getBlockId()); - } - if (other.getMarkFlag() != 0) { - setMarkFlag(other.getMarkFlag()); - } - if (other.getTitleId() != 0) { - setTitleId(other.getTitleId()); - } - if (other.getSpecialNameId() != 0) { - setSpecialNameId(other.getSpecialNameId()); - } - if (other.getAttackTargetId() != 0) { - setAttackTargetId(other.getAttackTargetId()); - } - if (other.hasMonsterRoute()) { - mergeMonsterRoute(other.getMonsterRoute()); - } - if (other.getAiConfigId() != 0) { - setAiConfigId(other.getAiConfigId()); - } - if (other.getUnk1() != 0) { - setUnk1(other.getUnk1()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int monsterId_ ; - /** - * <code>uint32 monsterId = 1;</code> - * @return The monsterId. - */ - @java.lang.Override - public int getMonsterId() { - return monsterId_; - } - /** - * <code>uint32 monsterId = 1;</code> - * @param value The monsterId to set. - * @return This builder for chaining. - */ - public Builder setMonsterId(int value) { - - monsterId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 monsterId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearMonsterId() { - - monsterId_ = 0; - onChanged(); - return this; - } - - private int groupId_ ; - /** - * <code>uint32 groupId = 2;</code> - * @return The groupId. - */ - @java.lang.Override - public int getGroupId() { - return groupId_; - } - /** - * <code>uint32 groupId = 2;</code> - * @param value The groupId to set. - * @return This builder for chaining. - */ - public Builder setGroupId(int value) { - - groupId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 groupId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearGroupId() { - - groupId_ = 0; - onChanged(); - return this; - } - - private int configId_ ; - /** - * <code>uint32 configId = 3;</code> - * @return The configId. - */ - @java.lang.Override - public int getConfigId() { - return configId_; - } - /** - * <code>uint32 configId = 3;</code> - * @param value The configId to set. - * @return This builder for chaining. - */ - public Builder setConfigId(int value) { - - configId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 configId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearConfigId() { - - configId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo weaponList_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo, emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.Builder, emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfoOrBuilder> weaponListBuilder_; - /** - * <code>.SceneWeaponInfo weaponList = 4;</code> - * @return Whether the weaponList field is set. - */ - public boolean hasWeaponList() { - return weaponListBuilder_ != null || weaponList_ != null; - } - /** - * <code>.SceneWeaponInfo weaponList = 4;</code> - * @return The weaponList. - */ - public emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo getWeaponList() { - if (weaponListBuilder_ == null) { - return weaponList_ == null ? emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.getDefaultInstance() : weaponList_; - } else { - return weaponListBuilder_.getMessage(); - } - } - /** - * <code>.SceneWeaponInfo weaponList = 4;</code> - */ - public Builder setWeaponList(emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo value) { - if (weaponListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - weaponList_ = value; - onChanged(); - } else { - weaponListBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.SceneWeaponInfo weaponList = 4;</code> - */ - public Builder setWeaponList( - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.Builder builderForValue) { - if (weaponListBuilder_ == null) { - weaponList_ = builderForValue.build(); - onChanged(); - } else { - weaponListBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.SceneWeaponInfo weaponList = 4;</code> - */ - public Builder mergeWeaponList(emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo value) { - if (weaponListBuilder_ == null) { - if (weaponList_ != null) { - weaponList_ = - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.newBuilder(weaponList_).mergeFrom(value).buildPartial(); - } else { - weaponList_ = value; - } - onChanged(); - } else { - weaponListBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.SceneWeaponInfo weaponList = 4;</code> - */ - public Builder clearWeaponList() { - if (weaponListBuilder_ == null) { - weaponList_ = null; - onChanged(); - } else { - weaponList_ = null; - weaponListBuilder_ = null; - } - - return this; - } - /** - * <code>.SceneWeaponInfo weaponList = 4;</code> - */ - public emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.Builder getWeaponListBuilder() { - - onChanged(); - return getWeaponListFieldBuilder().getBuilder(); - } - /** - * <code>.SceneWeaponInfo weaponList = 4;</code> - */ - public emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfoOrBuilder getWeaponListOrBuilder() { - if (weaponListBuilder_ != null) { - return weaponListBuilder_.getMessageOrBuilder(); - } else { - return weaponList_ == null ? - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.getDefaultInstance() : weaponList_; - } - } - /** - * <code>.SceneWeaponInfo weaponList = 4;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo, emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.Builder, emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfoOrBuilder> - getWeaponListFieldBuilder() { - if (weaponListBuilder_ == null) { - weaponListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo, emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.Builder, emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfoOrBuilder>( - getWeaponList(), - getParentForChildren(), - isClean()); - weaponList_ = null; - } - return weaponListBuilder_; - } - - private int authorityPeerId_ ; - /** - * <code>uint32 authorityPeerId = 5;</code> - * @return The authorityPeerId. - */ - @java.lang.Override - public int getAuthorityPeerId() { - return authorityPeerId_; - } - /** - * <code>uint32 authorityPeerId = 5;</code> - * @param value The authorityPeerId to set. - * @return This builder for chaining. - */ - public Builder setAuthorityPeerId(int value) { - - authorityPeerId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 authorityPeerId = 5;</code> - * @return This builder for chaining. - */ - public Builder clearAuthorityPeerId() { - - authorityPeerId_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList affixList_ = emptyIntList(); - private void ensureAffixListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - affixList_ = mutableCopy(affixList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 affixList = 6;</code> - * @return A list containing the affixList. - */ - public java.util.List<java.lang.Integer> - getAffixListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(affixList_) : affixList_; - } - /** - * <code>repeated uint32 affixList = 6;</code> - * @return The count of affixList. - */ - public int getAffixListCount() { - return affixList_.size(); - } - /** - * <code>repeated uint32 affixList = 6;</code> - * @param index The index of the element to return. - * @return The affixList at the given index. - */ - public int getAffixList(int index) { - return affixList_.getInt(index); - } - /** - * <code>repeated uint32 affixList = 6;</code> - * @param index The index to set the value at. - * @param value The affixList to set. - * @return This builder for chaining. - */ - public Builder setAffixList( - int index, int value) { - ensureAffixListIsMutable(); - affixList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 affixList = 6;</code> - * @param value The affixList to add. - * @return This builder for chaining. - */ - public Builder addAffixList(int value) { - ensureAffixListIsMutable(); - affixList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 affixList = 6;</code> - * @param values The affixList to add. - * @return This builder for chaining. - */ - public Builder addAllAffixList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureAffixListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, affixList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 affixList = 6;</code> - * @return This builder for chaining. - */ - public Builder clearAffixList() { - affixList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private boolean isElite_ ; - /** - * <code>bool isElite = 7;</code> - * @return The isElite. - */ - @java.lang.Override - public boolean getIsElite() { - return isElite_; - } - /** - * <code>bool isElite = 7;</code> - * @param value The isElite to set. - * @return This builder for chaining. - */ - public Builder setIsElite(boolean value) { - - isElite_ = value; - onChanged(); - return this; - } - /** - * <code>bool isElite = 7;</code> - * @return This builder for chaining. - */ - public Builder clearIsElite() { - - isElite_ = false; - onChanged(); - return this; - } - - private int ownerEntityId_ ; - /** - * <code>uint32 ownerEntityId = 8;</code> - * @return The ownerEntityId. - */ - @java.lang.Override - public int getOwnerEntityId() { - return ownerEntityId_; - } - /** - * <code>uint32 ownerEntityId = 8;</code> - * @param value The ownerEntityId to set. - * @return This builder for chaining. - */ - public Builder setOwnerEntityId(int value) { - - ownerEntityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 ownerEntityId = 8;</code> - * @return This builder for chaining. - */ - public Builder clearOwnerEntityId() { - - ownerEntityId_ = 0; - onChanged(); - return this; - } - - private int summonedTag_ ; - /** - * <code>uint32 summonedTag = 9;</code> - * @return The summonedTag. - */ - @java.lang.Override - public int getSummonedTag() { - return summonedTag_; - } - /** - * <code>uint32 summonedTag = 9;</code> - * @param value The summonedTag to set. - * @return This builder for chaining. - */ - public Builder setSummonedTag(int value) { - - summonedTag_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 summonedTag = 9;</code> - * @return This builder for chaining. - */ - public Builder clearSummonedTag() { - - summonedTag_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> summonTagMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetSummonTagMap() { - if (summonTagMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SummonTagMapDefaultEntryHolder.defaultEntry); - } - return summonTagMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetMutableSummonTagMap() { - onChanged();; - if (summonTagMap_ == null) { - summonTagMap_ = com.google.protobuf.MapField.newMapField( - SummonTagMapDefaultEntryHolder.defaultEntry); - } - if (!summonTagMap_.isMutable()) { - summonTagMap_ = summonTagMap_.copy(); - } - return summonTagMap_; - } - - public int getSummonTagMapCount() { - return internalGetSummonTagMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> summonTagMap = 10;</code> - */ - - @java.lang.Override - public boolean containsSummonTagMap( - int key) { - - return internalGetSummonTagMap().getMap().containsKey(key); - } - /** - * Use {@link #getSummonTagMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getSummonTagMap() { - return getSummonTagMapMap(); - } - /** - * <code>map<uint32, uint32> summonTagMap = 10;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getSummonTagMapMap() { - return internalGetSummonTagMap().getMap(); - } - /** - * <code>map<uint32, uint32> summonTagMap = 10;</code> - */ - @java.lang.Override - - public int getSummonTagMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSummonTagMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> summonTagMap = 10;</code> - */ - @java.lang.Override - - public int getSummonTagMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSummonTagMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearSummonTagMap() { - internalGetMutableSummonTagMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, uint32> summonTagMap = 10;</code> - */ - - public Builder removeSummonTagMap( - int key) { - - internalGetMutableSummonTagMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> - getMutableSummonTagMap() { - return internalGetMutableSummonTagMap().getMutableMap(); - } - /** - * <code>map<uint32, uint32> summonTagMap = 10;</code> - */ - public Builder putSummonTagMap( - int key, - int value) { - - - internalGetMutableSummonTagMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, uint32> summonTagMap = 10;</code> - */ - - public Builder putAllSummonTagMap( - java.util.Map<java.lang.Integer, java.lang.Integer> values) { - internalGetMutableSummonTagMap().getMutableMap() - .putAll(values); - return this; - } - - private int poseId_ ; - /** - * <code>uint32 poseId = 11;</code> - * @return The poseId. - */ - @java.lang.Override - public int getPoseId() { - return poseId_; - } - /** - * <code>uint32 poseId = 11;</code> - * @param value The poseId to set. - * @return This builder for chaining. - */ - public Builder setPoseId(int value) { - - poseId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 poseId = 11;</code> - * @return This builder for chaining. - */ - public Builder clearPoseId() { - - poseId_ = 0; - onChanged(); - return this; - } - - private int bornType_ = 0; - /** - * <code>.MonsterBornType bornType = 12;</code> - * @return The enum numeric value on the wire for bornType. - */ - @java.lang.Override public int getBornTypeValue() { - return bornType_; - } - /** - * <code>.MonsterBornType bornType = 12;</code> - * @param value The enum numeric value on the wire for bornType to set. - * @return This builder for chaining. - */ - public Builder setBornTypeValue(int value) { - - bornType_ = value; - onChanged(); - return this; - } - /** - * <code>.MonsterBornType bornType = 12;</code> - * @return The bornType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.MonsterBornTypeOuterClass.MonsterBornType getBornType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.MonsterBornTypeOuterClass.MonsterBornType result = emu.grasscutter.net.proto.MonsterBornTypeOuterClass.MonsterBornType.valueOf(bornType_); - return result == null ? emu.grasscutter.net.proto.MonsterBornTypeOuterClass.MonsterBornType.UNRECOGNIZED : result; - } - /** - * <code>.MonsterBornType bornType = 12;</code> - * @param value The bornType to set. - * @return This builder for chaining. - */ - public Builder setBornType(emu.grasscutter.net.proto.MonsterBornTypeOuterClass.MonsterBornType value) { - if (value == null) { - throw new NullPointerException(); - } - - bornType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.MonsterBornType bornType = 12;</code> - * @return This builder for chaining. - */ - public Builder clearBornType() { - - bornType_ = 0; - onChanged(); - return this; - } - - private int blockId_ ; - /** - * <code>uint32 blockId = 13;</code> - * @return The blockId. - */ - @java.lang.Override - public int getBlockId() { - return blockId_; - } - /** - * <code>uint32 blockId = 13;</code> - * @param value The blockId to set. - * @return This builder for chaining. - */ - public Builder setBlockId(int value) { - - blockId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 blockId = 13;</code> - * @return This builder for chaining. - */ - public Builder clearBlockId() { - - blockId_ = 0; - onChanged(); - return this; - } - - private int markFlag_ ; - /** - * <code>uint32 markFlag = 14;</code> - * @return The markFlag. - */ - @java.lang.Override - public int getMarkFlag() { - return markFlag_; - } - /** - * <code>uint32 markFlag = 14;</code> - * @param value The markFlag to set. - * @return This builder for chaining. - */ - public Builder setMarkFlag(int value) { - - markFlag_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 markFlag = 14;</code> - * @return This builder for chaining. - */ - public Builder clearMarkFlag() { - - markFlag_ = 0; - onChanged(); - return this; - } - - private int titleId_ ; - /** - * <code>uint32 titleId = 15;</code> - * @return The titleId. - */ - @java.lang.Override - public int getTitleId() { - return titleId_; - } - /** - * <code>uint32 titleId = 15;</code> - * @param value The titleId to set. - * @return This builder for chaining. - */ - public Builder setTitleId(int value) { - - titleId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 titleId = 15;</code> - * @return This builder for chaining. - */ - public Builder clearTitleId() { - - titleId_ = 0; - onChanged(); - return this; - } - - private int specialNameId_ ; - /** - * <code>uint32 specialNameId = 16;</code> - * @return The specialNameId. - */ - @java.lang.Override - public int getSpecialNameId() { - return specialNameId_; - } - /** - * <code>uint32 specialNameId = 16;</code> - * @param value The specialNameId to set. - * @return This builder for chaining. - */ - public Builder setSpecialNameId(int value) { - - specialNameId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 specialNameId = 16;</code> - * @return This builder for chaining. - */ - public Builder clearSpecialNameId() { - - specialNameId_ = 0; - onChanged(); - return this; - } - - private int attackTargetId_ ; - /** - * <code>uint32 attackTargetId = 17;</code> - * @return The attackTargetId. - */ - @java.lang.Override - public int getAttackTargetId() { - return attackTargetId_; - } - /** - * <code>uint32 attackTargetId = 17;</code> - * @param value The attackTargetId to set. - * @return This builder for chaining. - */ - public Builder setAttackTargetId(int value) { - - attackTargetId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 attackTargetId = 17;</code> - * @return This builder for chaining. - */ - public Builder clearAttackTargetId() { - - attackTargetId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute monsterRoute_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute, emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute.Builder, emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRouteOrBuilder> monsterRouteBuilder_; - /** - * <code>.MonsterRoute monsterRoute = 18;</code> - * @return Whether the monsterRoute field is set. - */ - public boolean hasMonsterRoute() { - return monsterRouteBuilder_ != null || monsterRoute_ != null; - } - /** - * <code>.MonsterRoute monsterRoute = 18;</code> - * @return The monsterRoute. - */ - public emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute getMonsterRoute() { - if (monsterRouteBuilder_ == null) { - return monsterRoute_ == null ? emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute.getDefaultInstance() : monsterRoute_; - } else { - return monsterRouteBuilder_.getMessage(); - } - } - /** - * <code>.MonsterRoute monsterRoute = 18;</code> - */ - public Builder setMonsterRoute(emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute value) { - if (monsterRouteBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - monsterRoute_ = value; - onChanged(); - } else { - monsterRouteBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.MonsterRoute monsterRoute = 18;</code> - */ - public Builder setMonsterRoute( - emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute.Builder builderForValue) { - if (monsterRouteBuilder_ == null) { - monsterRoute_ = builderForValue.build(); - onChanged(); - } else { - monsterRouteBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.MonsterRoute monsterRoute = 18;</code> - */ - public Builder mergeMonsterRoute(emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute value) { - if (monsterRouteBuilder_ == null) { - if (monsterRoute_ != null) { - monsterRoute_ = - emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute.newBuilder(monsterRoute_).mergeFrom(value).buildPartial(); - } else { - monsterRoute_ = value; - } - onChanged(); - } else { - monsterRouteBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.MonsterRoute monsterRoute = 18;</code> - */ - public Builder clearMonsterRoute() { - if (monsterRouteBuilder_ == null) { - monsterRoute_ = null; - onChanged(); - } else { - monsterRoute_ = null; - monsterRouteBuilder_ = null; - } - - return this; - } - /** - * <code>.MonsterRoute monsterRoute = 18;</code> - */ - public emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute.Builder getMonsterRouteBuilder() { - - onChanged(); - return getMonsterRouteFieldBuilder().getBuilder(); - } - /** - * <code>.MonsterRoute monsterRoute = 18;</code> - */ - public emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRouteOrBuilder getMonsterRouteOrBuilder() { - if (monsterRouteBuilder_ != null) { - return monsterRouteBuilder_.getMessageOrBuilder(); - } else { - return monsterRoute_ == null ? - emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute.getDefaultInstance() : monsterRoute_; - } - } - /** - * <code>.MonsterRoute monsterRoute = 18;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute, emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute.Builder, emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRouteOrBuilder> - getMonsterRouteFieldBuilder() { - if (monsterRouteBuilder_ == null) { - monsterRouteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute, emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute.Builder, emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRouteOrBuilder>( - getMonsterRoute(), - getParentForChildren(), - isClean()); - monsterRoute_ = null; - } - return monsterRouteBuilder_; - } - - private int aiConfigId_ ; - /** - * <code>uint32 aiConfigId = 19;</code> - * @return The aiConfigId. - */ - @java.lang.Override - public int getAiConfigId() { - return aiConfigId_; - } - /** - * <code>uint32 aiConfigId = 19;</code> - * @param value The aiConfigId to set. - * @return This builder for chaining. - */ - public Builder setAiConfigId(int value) { - - aiConfigId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 aiConfigId = 19;</code> - * @return This builder for chaining. - */ - public Builder clearAiConfigId() { - - aiConfigId_ = 0; - onChanged(); - return this; - } - - private int unk1_ ; - /** - * <code>uint32 unk1 = 21;</code> - * @return The unk1. - */ - @java.lang.Override - public int getUnk1() { - return unk1_; - } - /** - * <code>uint32 unk1 = 21;</code> - * @param value The unk1 to set. - * @return This builder for chaining. - */ - public Builder setUnk1(int value) { - - unk1_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 unk1 = 21;</code> - * @return This builder for chaining. - */ - public Builder clearUnk1() { - - unk1_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SceneMonsterInfo) - } - - // @@protoc_insertion_point(class_scope:SceneMonsterInfo) - private static final emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo(); - } - - public static emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SceneMonsterInfo> - PARSER = new com.google.protobuf.AbstractParser<SceneMonsterInfo>() { - @java.lang.Override - public SceneMonsterInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SceneMonsterInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SceneMonsterInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SceneMonsterInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneMonsterInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneMonsterInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneMonsterInfo_SummonTagMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneMonsterInfo_SummonTagMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026SceneMonsterInfo.proto\032\025MonsterBornTyp" + - "e.proto\032\022MonsterRoute.proto\032\025SceneWeapon" + - "Info.proto\"\245\004\n\020SceneMonsterInfo\022\021\n\tmonst" + - "erId\030\001 \001(\r\022\017\n\007groupId\030\002 \001(\r\022\020\n\010configId\030" + - "\003 \001(\r\022$\n\nweaponList\030\004 \001(\0132\020.SceneWeaponI" + - "nfo\022\027\n\017authorityPeerId\030\005 \001(\r\022\021\n\taffixLis" + - "t\030\006 \003(\r\022\017\n\007isElite\030\007 \001(\010\022\025\n\rownerEntityI" + - "d\030\010 \001(\r\022\023\n\013summonedTag\030\t \001(\r\0229\n\014summonTa" + - "gMap\030\n \003(\0132#.SceneMonsterInfo.SummonTagM" + - "apEntry\022\016\n\006poseId\030\013 \001(\r\022\"\n\010bornType\030\014 \001(" + - "\0162\020.MonsterBornType\022\017\n\007blockId\030\r \001(\r\022\020\n\010" + - "markFlag\030\016 \001(\r\022\017\n\007titleId\030\017 \001(\r\022\025\n\rspeci" + - "alNameId\030\020 \001(\r\022\026\n\016attackTargetId\030\021 \001(\r\022#" + - "\n\014monsterRoute\030\022 \001(\0132\r.MonsterRoute\022\022\n\na" + - "iConfigId\030\023 \001(\r\022\014\n\004unk1\030\025 \001(\r\0323\n\021SummonT" + - "agMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\r:\002" + - "8\001B\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.MonsterBornTypeOuterClass.getDescriptor(), - emu.grasscutter.net.proto.MonsterRouteOuterClass.getDescriptor(), - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.getDescriptor(), - }); - internal_static_SceneMonsterInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SceneMonsterInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneMonsterInfo_descriptor, - new java.lang.String[] { "MonsterId", "GroupId", "ConfigId", "WeaponList", "AuthorityPeerId", "AffixList", "IsElite", "OwnerEntityId", "SummonedTag", "SummonTagMap", "PoseId", "BornType", "BlockId", "MarkFlag", "TitleId", "SpecialNameId", "AttackTargetId", "MonsterRoute", "AiConfigId", "Unk1", }); - internal_static_SceneMonsterInfo_SummonTagMapEntry_descriptor = - internal_static_SceneMonsterInfo_descriptor.getNestedTypes().get(0); - internal_static_SceneMonsterInfo_SummonTagMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneMonsterInfo_SummonTagMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - emu.grasscutter.net.proto.MonsterBornTypeOuterClass.getDescriptor(); - emu.grasscutter.net.proto.MonsterRouteOuterClass.getDescriptor(); - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SceneNpcInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SceneNpcInfoOuterClass.java deleted file mode 100644 index 048726277..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SceneNpcInfoOuterClass.java +++ /dev/null @@ -1,747 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SceneNpcInfo.proto - -package emu.grasscutter.net.proto; - -public final class SceneNpcInfoOuterClass { - private SceneNpcInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SceneNpcInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:SceneNpcInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 npcId = 1;</code> - * @return The npcId. - */ - int getNpcId(); - - /** - * <code>uint32 roomId = 2;</code> - * @return The roomId. - */ - int getRoomId(); - - /** - * <code>uint32 parentQuestId = 3;</code> - * @return The parentQuestId. - */ - int getParentQuestId(); - - /** - * <code>uint32 blockId = 4;</code> - * @return The blockId. - */ - int getBlockId(); - } - /** - * Protobuf type {@code SceneNpcInfo} - */ - public static final class SceneNpcInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SceneNpcInfo) - SceneNpcInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use SceneNpcInfo.newBuilder() to construct. - private SceneNpcInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SceneNpcInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SceneNpcInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SceneNpcInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - npcId_ = input.readUInt32(); - break; - } - case 16: { - - roomId_ = input.readUInt32(); - break; - } - case 24: { - - parentQuestId_ = input.readUInt32(); - break; - } - case 32: { - - blockId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneNpcInfoOuterClass.internal_static_SceneNpcInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneNpcInfoOuterClass.internal_static_SceneNpcInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo.class, emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo.Builder.class); - } - - public static final int NPCID_FIELD_NUMBER = 1; - private int npcId_; - /** - * <code>uint32 npcId = 1;</code> - * @return The npcId. - */ - @java.lang.Override - public int getNpcId() { - return npcId_; - } - - public static final int ROOMID_FIELD_NUMBER = 2; - private int roomId_; - /** - * <code>uint32 roomId = 2;</code> - * @return The roomId. - */ - @java.lang.Override - public int getRoomId() { - return roomId_; - } - - public static final int PARENTQUESTID_FIELD_NUMBER = 3; - private int parentQuestId_; - /** - * <code>uint32 parentQuestId = 3;</code> - * @return The parentQuestId. - */ - @java.lang.Override - public int getParentQuestId() { - return parentQuestId_; - } - - public static final int BLOCKID_FIELD_NUMBER = 4; - private int blockId_; - /** - * <code>uint32 blockId = 4;</code> - * @return The blockId. - */ - @java.lang.Override - public int getBlockId() { - return blockId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (npcId_ != 0) { - output.writeUInt32(1, npcId_); - } - if (roomId_ != 0) { - output.writeUInt32(2, roomId_); - } - if (parentQuestId_ != 0) { - output.writeUInt32(3, parentQuestId_); - } - if (blockId_ != 0) { - output.writeUInt32(4, blockId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (npcId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, npcId_); - } - if (roomId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, roomId_); - } - if (parentQuestId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, parentQuestId_); - } - if (blockId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, blockId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo other = (emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo) obj; - - if (getNpcId() - != other.getNpcId()) return false; - if (getRoomId() - != other.getRoomId()) return false; - if (getParentQuestId() - != other.getParentQuestId()) return false; - if (getBlockId() - != other.getBlockId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NPCID_FIELD_NUMBER; - hash = (53 * hash) + getNpcId(); - hash = (37 * hash) + ROOMID_FIELD_NUMBER; - hash = (53 * hash) + getRoomId(); - hash = (37 * hash) + PARENTQUESTID_FIELD_NUMBER; - hash = (53 * hash) + getParentQuestId(); - hash = (37 * hash) + BLOCKID_FIELD_NUMBER; - hash = (53 * hash) + getBlockId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SceneNpcInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SceneNpcInfo) - emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneNpcInfoOuterClass.internal_static_SceneNpcInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneNpcInfoOuterClass.internal_static_SceneNpcInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo.class, emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - npcId_ = 0; - - roomId_ = 0; - - parentQuestId_ = 0; - - blockId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SceneNpcInfoOuterClass.internal_static_SceneNpcInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo build() { - emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo buildPartial() { - emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo result = new emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo(this); - result.npcId_ = npcId_; - result.roomId_ = roomId_; - result.parentQuestId_ = parentQuestId_; - result.blockId_ = blockId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo) { - return mergeFrom((emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo other) { - if (other == emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo.getDefaultInstance()) return this; - if (other.getNpcId() != 0) { - setNpcId(other.getNpcId()); - } - if (other.getRoomId() != 0) { - setRoomId(other.getRoomId()); - } - if (other.getParentQuestId() != 0) { - setParentQuestId(other.getParentQuestId()); - } - if (other.getBlockId() != 0) { - setBlockId(other.getBlockId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int npcId_ ; - /** - * <code>uint32 npcId = 1;</code> - * @return The npcId. - */ - @java.lang.Override - public int getNpcId() { - return npcId_; - } - /** - * <code>uint32 npcId = 1;</code> - * @param value The npcId to set. - * @return This builder for chaining. - */ - public Builder setNpcId(int value) { - - npcId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 npcId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearNpcId() { - - npcId_ = 0; - onChanged(); - return this; - } - - private int roomId_ ; - /** - * <code>uint32 roomId = 2;</code> - * @return The roomId. - */ - @java.lang.Override - public int getRoomId() { - return roomId_; - } - /** - * <code>uint32 roomId = 2;</code> - * @param value The roomId to set. - * @return This builder for chaining. - */ - public Builder setRoomId(int value) { - - roomId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 roomId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearRoomId() { - - roomId_ = 0; - onChanged(); - return this; - } - - private int parentQuestId_ ; - /** - * <code>uint32 parentQuestId = 3;</code> - * @return The parentQuestId. - */ - @java.lang.Override - public int getParentQuestId() { - return parentQuestId_; - } - /** - * <code>uint32 parentQuestId = 3;</code> - * @param value The parentQuestId to set. - * @return This builder for chaining. - */ - public Builder setParentQuestId(int value) { - - parentQuestId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 parentQuestId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearParentQuestId() { - - parentQuestId_ = 0; - onChanged(); - return this; - } - - private int blockId_ ; - /** - * <code>uint32 blockId = 4;</code> - * @return The blockId. - */ - @java.lang.Override - public int getBlockId() { - return blockId_; - } - /** - * <code>uint32 blockId = 4;</code> - * @param value The blockId to set. - * @return This builder for chaining. - */ - public Builder setBlockId(int value) { - - blockId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 blockId = 4;</code> - * @return This builder for chaining. - */ - public Builder clearBlockId() { - - blockId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SceneNpcInfo) - } - - // @@protoc_insertion_point(class_scope:SceneNpcInfo) - private static final emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo(); - } - - public static emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SceneNpcInfo> - PARSER = new com.google.protobuf.AbstractParser<SceneNpcInfo>() { - @java.lang.Override - public SceneNpcInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SceneNpcInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SceneNpcInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SceneNpcInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneNpcInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneNpcInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\022SceneNpcInfo.proto\"U\n\014SceneNpcInfo\022\r\n\005" + - "npcId\030\001 \001(\r\022\016\n\006roomId\030\002 \001(\r\022\025\n\rparentQue" + - "stId\030\003 \001(\r\022\017\n\007blockId\030\004 \001(\rB\033\n\031emu.grass" + - "cutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SceneNpcInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SceneNpcInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneNpcInfo_descriptor, - new java.lang.String[] { "NpcId", "RoomId", "ParentQuestId", "BlockId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ScenePlayerInfoNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ScenePlayerInfoNotifyOuterClass.java deleted file mode 100644 index 1ee7ebbc7..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ScenePlayerInfoNotifyOuterClass.java +++ /dev/null @@ -1,844 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ScenePlayerInfoNotify.proto - -package emu.grasscutter.net.proto; - -public final class ScenePlayerInfoNotifyOuterClass { - private ScenePlayerInfoNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ScenePlayerInfoNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:ScenePlayerInfoNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - java.util.List<emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo> - getPlayerInfoListList(); - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo getPlayerInfoList(int index); - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - int getPlayerInfoListCount(); - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfoOrBuilder> - getPlayerInfoListOrBuilderList(); - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfoOrBuilder getPlayerInfoListOrBuilder( - int index); - } - /** - * Protobuf type {@code ScenePlayerInfoNotify} - */ - public static final class ScenePlayerInfoNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ScenePlayerInfoNotify) - ScenePlayerInfoNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use ScenePlayerInfoNotify.newBuilder() to construct. - private ScenePlayerInfoNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ScenePlayerInfoNotify() { - playerInfoList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ScenePlayerInfoNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ScenePlayerInfoNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - playerInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo>(); - mutable_bitField0_ |= 0x00000001; - } - playerInfoList_.add( - input.readMessage(emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - playerInfoList_ = java.util.Collections.unmodifiableList(playerInfoList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.internal_static_ScenePlayerInfoNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.internal_static_ScenePlayerInfoNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify.class, emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify.Builder.class); - } - - public static final int PLAYERINFOLIST_FIELD_NUMBER = 1; - private java.util.List<emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo> playerInfoList_; - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo> getPlayerInfoListList() { - return playerInfoList_; - } - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfoOrBuilder> - getPlayerInfoListOrBuilderList() { - return playerInfoList_; - } - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - @java.lang.Override - public int getPlayerInfoListCount() { - return playerInfoList_.size(); - } - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo getPlayerInfoList(int index) { - return playerInfoList_.get(index); - } - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfoOrBuilder getPlayerInfoListOrBuilder( - int index) { - return playerInfoList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < playerInfoList_.size(); i++) { - output.writeMessage(1, playerInfoList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < playerInfoList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, playerInfoList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify other = (emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify) obj; - - if (!getPlayerInfoListList() - .equals(other.getPlayerInfoListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPlayerInfoListCount() > 0) { - hash = (37 * hash) + PLAYERINFOLIST_FIELD_NUMBER; - hash = (53 * hash) + getPlayerInfoListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ScenePlayerInfoNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ScenePlayerInfoNotify) - emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.internal_static_ScenePlayerInfoNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.internal_static_ScenePlayerInfoNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify.class, emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPlayerInfoListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (playerInfoListBuilder_ == null) { - playerInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - playerInfoListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.internal_static_ScenePlayerInfoNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify build() { - emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify buildPartial() { - emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify result = new emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify(this); - int from_bitField0_ = bitField0_; - if (playerInfoListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - playerInfoList_ = java.util.Collections.unmodifiableList(playerInfoList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.playerInfoList_ = playerInfoList_; - } else { - result.playerInfoList_ = playerInfoListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify) { - return mergeFrom((emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify other) { - if (other == emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify.getDefaultInstance()) return this; - if (playerInfoListBuilder_ == null) { - if (!other.playerInfoList_.isEmpty()) { - if (playerInfoList_.isEmpty()) { - playerInfoList_ = other.playerInfoList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePlayerInfoListIsMutable(); - playerInfoList_.addAll(other.playerInfoList_); - } - onChanged(); - } - } else { - if (!other.playerInfoList_.isEmpty()) { - if (playerInfoListBuilder_.isEmpty()) { - playerInfoListBuilder_.dispose(); - playerInfoListBuilder_ = null; - playerInfoList_ = other.playerInfoList_; - bitField0_ = (bitField0_ & ~0x00000001); - playerInfoListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPlayerInfoListFieldBuilder() : null; - } else { - playerInfoListBuilder_.addAllMessages(other.playerInfoList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List<emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo> playerInfoList_ = - java.util.Collections.emptyList(); - private void ensurePlayerInfoListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - playerInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo>(playerInfoList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo, emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo.Builder, emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfoOrBuilder> playerInfoListBuilder_; - - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo> getPlayerInfoListList() { - if (playerInfoListBuilder_ == null) { - return java.util.Collections.unmodifiableList(playerInfoList_); - } else { - return playerInfoListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - public int getPlayerInfoListCount() { - if (playerInfoListBuilder_ == null) { - return playerInfoList_.size(); - } else { - return playerInfoListBuilder_.getCount(); - } - } - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - public emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo getPlayerInfoList(int index) { - if (playerInfoListBuilder_ == null) { - return playerInfoList_.get(index); - } else { - return playerInfoListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - public Builder setPlayerInfoList( - int index, emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo value) { - if (playerInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePlayerInfoListIsMutable(); - playerInfoList_.set(index, value); - onChanged(); - } else { - playerInfoListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - public Builder setPlayerInfoList( - int index, emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo.Builder builderForValue) { - if (playerInfoListBuilder_ == null) { - ensurePlayerInfoListIsMutable(); - playerInfoList_.set(index, builderForValue.build()); - onChanged(); - } else { - playerInfoListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - public Builder addPlayerInfoList(emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo value) { - if (playerInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePlayerInfoListIsMutable(); - playerInfoList_.add(value); - onChanged(); - } else { - playerInfoListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - public Builder addPlayerInfoList( - int index, emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo value) { - if (playerInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePlayerInfoListIsMutable(); - playerInfoList_.add(index, value); - onChanged(); - } else { - playerInfoListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - public Builder addPlayerInfoList( - emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo.Builder builderForValue) { - if (playerInfoListBuilder_ == null) { - ensurePlayerInfoListIsMutable(); - playerInfoList_.add(builderForValue.build()); - onChanged(); - } else { - playerInfoListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - public Builder addPlayerInfoList( - int index, emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo.Builder builderForValue) { - if (playerInfoListBuilder_ == null) { - ensurePlayerInfoListIsMutable(); - playerInfoList_.add(index, builderForValue.build()); - onChanged(); - } else { - playerInfoListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - public Builder addAllPlayerInfoList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo> values) { - if (playerInfoListBuilder_ == null) { - ensurePlayerInfoListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, playerInfoList_); - onChanged(); - } else { - playerInfoListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - public Builder clearPlayerInfoList() { - if (playerInfoListBuilder_ == null) { - playerInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - playerInfoListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - public Builder removePlayerInfoList(int index) { - if (playerInfoListBuilder_ == null) { - ensurePlayerInfoListIsMutable(); - playerInfoList_.remove(index); - onChanged(); - } else { - playerInfoListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - public emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo.Builder getPlayerInfoListBuilder( - int index) { - return getPlayerInfoListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - public emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfoOrBuilder getPlayerInfoListOrBuilder( - int index) { - if (playerInfoListBuilder_ == null) { - return playerInfoList_.get(index); } else { - return playerInfoListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfoOrBuilder> - getPlayerInfoListOrBuilderList() { - if (playerInfoListBuilder_ != null) { - return playerInfoListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(playerInfoList_); - } - } - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - public emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo.Builder addPlayerInfoListBuilder() { - return getPlayerInfoListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo.getDefaultInstance()); - } - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - public emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo.Builder addPlayerInfoListBuilder( - int index) { - return getPlayerInfoListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo.getDefaultInstance()); - } - /** - * <code>repeated .ScenePlayerInfo playerInfoList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo.Builder> - getPlayerInfoListBuilderList() { - return getPlayerInfoListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo, emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo.Builder, emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfoOrBuilder> - getPlayerInfoListFieldBuilder() { - if (playerInfoListBuilder_ == null) { - playerInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo, emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo.Builder, emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfoOrBuilder>( - playerInfoList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - playerInfoList_ = null; - } - return playerInfoListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ScenePlayerInfoNotify) - } - - // @@protoc_insertion_point(class_scope:ScenePlayerInfoNotify) - private static final emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify(); - } - - public static emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ScenePlayerInfoNotify> - PARSER = new com.google.protobuf.AbstractParser<ScenePlayerInfoNotify>() { - @java.lang.Override - public ScenePlayerInfoNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScenePlayerInfoNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ScenePlayerInfoNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ScenePlayerInfoNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ScenePlayerInfoNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ScenePlayerInfoNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033ScenePlayerInfoNotify.proto\032\025ScenePlay" + - "erInfo.proto\"A\n\025ScenePlayerInfoNotify\022(\n" + - "\016playerInfoList\030\001 \003(\0132\020.ScenePlayerInfoB" + - "\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.getDescriptor(), - }); - internal_static_ScenePlayerInfoNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ScenePlayerInfoNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ScenePlayerInfoNotify_descriptor, - new java.lang.String[] { "PlayerInfoList", }); - emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ScenePlayerInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ScenePlayerInfoOuterClass.java deleted file mode 100644 index a9cb00102..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ScenePlayerInfoOuterClass.java +++ /dev/null @@ -1,1105 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ScenePlayerInfo.proto - -package emu.grasscutter.net.proto; - -public final class ScenePlayerInfoOuterClass { - private ScenePlayerInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ScenePlayerInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:ScenePlayerInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 uid = 1;</code> - * @return The uid. - */ - int getUid(); - - /** - * <code>uint32 peerId = 2;</code> - * @return The peerId. - */ - int getPeerId(); - - /** - * <code>string name = 3;</code> - * @return The name. - */ - java.lang.String getName(); - /** - * <code>string name = 3;</code> - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * <code>bool isConnected = 4;</code> - * @return The isConnected. - */ - boolean getIsConnected(); - - /** - * <code>uint32 sceneId = 5;</code> - * @return The sceneId. - */ - int getSceneId(); - - /** - * <code>.OnlinePlayerInfo onlinePlayerInfo = 6;</code> - * @return Whether the onlinePlayerInfo field is set. - */ - boolean hasOnlinePlayerInfo(); - /** - * <code>.OnlinePlayerInfo onlinePlayerInfo = 6;</code> - * @return The onlinePlayerInfo. - */ - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo getOnlinePlayerInfo(); - /** - * <code>.OnlinePlayerInfo onlinePlayerInfo = 6;</code> - */ - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfoOrBuilder getOnlinePlayerInfoOrBuilder(); - } - /** - * Protobuf type {@code ScenePlayerInfo} - */ - public static final class ScenePlayerInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ScenePlayerInfo) - ScenePlayerInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use ScenePlayerInfo.newBuilder() to construct. - private ScenePlayerInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ScenePlayerInfo() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ScenePlayerInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ScenePlayerInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - uid_ = input.readUInt32(); - break; - } - case 16: { - - peerId_ = input.readUInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 32: { - - isConnected_ = input.readBool(); - break; - } - case 40: { - - sceneId_ = input.readUInt32(); - break; - } - case 50: { - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder subBuilder = null; - if (onlinePlayerInfo_ != null) { - subBuilder = onlinePlayerInfo_.toBuilder(); - } - onlinePlayerInfo_ = input.readMessage(emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(onlinePlayerInfo_); - onlinePlayerInfo_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.internal_static_ScenePlayerInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.internal_static_ScenePlayerInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo.class, emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo.Builder.class); - } - - public static final int UID_FIELD_NUMBER = 1; - private int uid_; - /** - * <code>uint32 uid = 1;</code> - * @return The uid. - */ - @java.lang.Override - public int getUid() { - return uid_; - } - - public static final int PEERID_FIELD_NUMBER = 2; - private int peerId_; - /** - * <code>uint32 peerId = 2;</code> - * @return The peerId. - */ - @java.lang.Override - public int getPeerId() { - return peerId_; - } - - public static final int NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object name_; - /** - * <code>string name = 3;</code> - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * <code>string name = 3;</code> - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ISCONNECTED_FIELD_NUMBER = 4; - private boolean isConnected_; - /** - * <code>bool isConnected = 4;</code> - * @return The isConnected. - */ - @java.lang.Override - public boolean getIsConnected() { - return isConnected_; - } - - public static final int SCENEID_FIELD_NUMBER = 5; - private int sceneId_; - /** - * <code>uint32 sceneId = 5;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - - public static final int ONLINEPLAYERINFO_FIELD_NUMBER = 6; - private emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo onlinePlayerInfo_; - /** - * <code>.OnlinePlayerInfo onlinePlayerInfo = 6;</code> - * @return Whether the onlinePlayerInfo field is set. - */ - @java.lang.Override - public boolean hasOnlinePlayerInfo() { - return onlinePlayerInfo_ != null; - } - /** - * <code>.OnlinePlayerInfo onlinePlayerInfo = 6;</code> - * @return The onlinePlayerInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo getOnlinePlayerInfo() { - return onlinePlayerInfo_ == null ? emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.getDefaultInstance() : onlinePlayerInfo_; - } - /** - * <code>.OnlinePlayerInfo onlinePlayerInfo = 6;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfoOrBuilder getOnlinePlayerInfoOrBuilder() { - return getOnlinePlayerInfo(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (uid_ != 0) { - output.writeUInt32(1, uid_); - } - if (peerId_ != 0) { - output.writeUInt32(2, peerId_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); - } - if (isConnected_ != false) { - output.writeBool(4, isConnected_); - } - if (sceneId_ != 0) { - output.writeUInt32(5, sceneId_); - } - if (onlinePlayerInfo_ != null) { - output.writeMessage(6, getOnlinePlayerInfo()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (uid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, uid_); - } - if (peerId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, peerId_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); - } - if (isConnected_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, isConnected_); - } - if (sceneId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, sceneId_); - } - if (onlinePlayerInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getOnlinePlayerInfo()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo other = (emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo) obj; - - if (getUid() - != other.getUid()) return false; - if (getPeerId() - != other.getPeerId()) return false; - if (!getName() - .equals(other.getName())) return false; - if (getIsConnected() - != other.getIsConnected()) return false; - if (getSceneId() - != other.getSceneId()) return false; - if (hasOnlinePlayerInfo() != other.hasOnlinePlayerInfo()) return false; - if (hasOnlinePlayerInfo()) { - if (!getOnlinePlayerInfo() - .equals(other.getOnlinePlayerInfo())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + UID_FIELD_NUMBER; - hash = (53 * hash) + getUid(); - hash = (37 * hash) + PEERID_FIELD_NUMBER; - hash = (53 * hash) + getPeerId(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + ISCONNECTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsConnected()); - hash = (37 * hash) + SCENEID_FIELD_NUMBER; - hash = (53 * hash) + getSceneId(); - if (hasOnlinePlayerInfo()) { - hash = (37 * hash) + ONLINEPLAYERINFO_FIELD_NUMBER; - hash = (53 * hash) + getOnlinePlayerInfo().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ScenePlayerInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ScenePlayerInfo) - emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.internal_static_ScenePlayerInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.internal_static_ScenePlayerInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo.class, emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - uid_ = 0; - - peerId_ = 0; - - name_ = ""; - - isConnected_ = false; - - sceneId_ = 0; - - if (onlinePlayerInfoBuilder_ == null) { - onlinePlayerInfo_ = null; - } else { - onlinePlayerInfo_ = null; - onlinePlayerInfoBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.internal_static_ScenePlayerInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo build() { - emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo buildPartial() { - emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo result = new emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo(this); - result.uid_ = uid_; - result.peerId_ = peerId_; - result.name_ = name_; - result.isConnected_ = isConnected_; - result.sceneId_ = sceneId_; - if (onlinePlayerInfoBuilder_ == null) { - result.onlinePlayerInfo_ = onlinePlayerInfo_; - } else { - result.onlinePlayerInfo_ = onlinePlayerInfoBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo) { - return mergeFrom((emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo other) { - if (other == emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo.getDefaultInstance()) return this; - if (other.getUid() != 0) { - setUid(other.getUid()); - } - if (other.getPeerId() != 0) { - setPeerId(other.getPeerId()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getIsConnected() != false) { - setIsConnected(other.getIsConnected()); - } - if (other.getSceneId() != 0) { - setSceneId(other.getSceneId()); - } - if (other.hasOnlinePlayerInfo()) { - mergeOnlinePlayerInfo(other.getOnlinePlayerInfo()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int uid_ ; - /** - * <code>uint32 uid = 1;</code> - * @return The uid. - */ - @java.lang.Override - public int getUid() { - return uid_; - } - /** - * <code>uint32 uid = 1;</code> - * @param value The uid to set. - * @return This builder for chaining. - */ - public Builder setUid(int value) { - - uid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 uid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearUid() { - - uid_ = 0; - onChanged(); - return this; - } - - private int peerId_ ; - /** - * <code>uint32 peerId = 2;</code> - * @return The peerId. - */ - @java.lang.Override - public int getPeerId() { - return peerId_; - } - /** - * <code>uint32 peerId = 2;</code> - * @param value The peerId to set. - * @return This builder for chaining. - */ - public Builder setPeerId(int value) { - - peerId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 peerId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearPeerId() { - - peerId_ = 0; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * <code>string name = 3;</code> - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string name = 3;</code> - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string name = 3;</code> - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * <code>string name = 3;</code> - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * <code>string name = 3;</code> - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private boolean isConnected_ ; - /** - * <code>bool isConnected = 4;</code> - * @return The isConnected. - */ - @java.lang.Override - public boolean getIsConnected() { - return isConnected_; - } - /** - * <code>bool isConnected = 4;</code> - * @param value The isConnected to set. - * @return This builder for chaining. - */ - public Builder setIsConnected(boolean value) { - - isConnected_ = value; - onChanged(); - return this; - } - /** - * <code>bool isConnected = 4;</code> - * @return This builder for chaining. - */ - public Builder clearIsConnected() { - - isConnected_ = false; - onChanged(); - return this; - } - - private int sceneId_ ; - /** - * <code>uint32 sceneId = 5;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - /** - * <code>uint32 sceneId = 5;</code> - * @param value The sceneId to set. - * @return This builder for chaining. - */ - public Builder setSceneId(int value) { - - sceneId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 sceneId = 5;</code> - * @return This builder for chaining. - */ - public Builder clearSceneId() { - - sceneId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo onlinePlayerInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo, emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder, emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfoOrBuilder> onlinePlayerInfoBuilder_; - /** - * <code>.OnlinePlayerInfo onlinePlayerInfo = 6;</code> - * @return Whether the onlinePlayerInfo field is set. - */ - public boolean hasOnlinePlayerInfo() { - return onlinePlayerInfoBuilder_ != null || onlinePlayerInfo_ != null; - } - /** - * <code>.OnlinePlayerInfo onlinePlayerInfo = 6;</code> - * @return The onlinePlayerInfo. - */ - public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo getOnlinePlayerInfo() { - if (onlinePlayerInfoBuilder_ == null) { - return onlinePlayerInfo_ == null ? emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.getDefaultInstance() : onlinePlayerInfo_; - } else { - return onlinePlayerInfoBuilder_.getMessage(); - } - } - /** - * <code>.OnlinePlayerInfo onlinePlayerInfo = 6;</code> - */ - public Builder setOnlinePlayerInfo(emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo value) { - if (onlinePlayerInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - onlinePlayerInfo_ = value; - onChanged(); - } else { - onlinePlayerInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.OnlinePlayerInfo onlinePlayerInfo = 6;</code> - */ - public Builder setOnlinePlayerInfo( - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder builderForValue) { - if (onlinePlayerInfoBuilder_ == null) { - onlinePlayerInfo_ = builderForValue.build(); - onChanged(); - } else { - onlinePlayerInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.OnlinePlayerInfo onlinePlayerInfo = 6;</code> - */ - public Builder mergeOnlinePlayerInfo(emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo value) { - if (onlinePlayerInfoBuilder_ == null) { - if (onlinePlayerInfo_ != null) { - onlinePlayerInfo_ = - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.newBuilder(onlinePlayerInfo_).mergeFrom(value).buildPartial(); - } else { - onlinePlayerInfo_ = value; - } - onChanged(); - } else { - onlinePlayerInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.OnlinePlayerInfo onlinePlayerInfo = 6;</code> - */ - public Builder clearOnlinePlayerInfo() { - if (onlinePlayerInfoBuilder_ == null) { - onlinePlayerInfo_ = null; - onChanged(); - } else { - onlinePlayerInfo_ = null; - onlinePlayerInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.OnlinePlayerInfo onlinePlayerInfo = 6;</code> - */ - public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder getOnlinePlayerInfoBuilder() { - - onChanged(); - return getOnlinePlayerInfoFieldBuilder().getBuilder(); - } - /** - * <code>.OnlinePlayerInfo onlinePlayerInfo = 6;</code> - */ - public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfoOrBuilder getOnlinePlayerInfoOrBuilder() { - if (onlinePlayerInfoBuilder_ != null) { - return onlinePlayerInfoBuilder_.getMessageOrBuilder(); - } else { - return onlinePlayerInfo_ == null ? - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.getDefaultInstance() : onlinePlayerInfo_; - } - } - /** - * <code>.OnlinePlayerInfo onlinePlayerInfo = 6;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo, emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder, emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfoOrBuilder> - getOnlinePlayerInfoFieldBuilder() { - if (onlinePlayerInfoBuilder_ == null) { - onlinePlayerInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo, emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder, emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfoOrBuilder>( - getOnlinePlayerInfo(), - getParentForChildren(), - isClean()); - onlinePlayerInfo_ = null; - } - return onlinePlayerInfoBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ScenePlayerInfo) - } - - // @@protoc_insertion_point(class_scope:ScenePlayerInfo) - private static final emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo(); - } - - public static emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ScenePlayerInfo> - PARSER = new com.google.protobuf.AbstractParser<ScenePlayerInfo>() { - @java.lang.Override - public ScenePlayerInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScenePlayerInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ScenePlayerInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ScenePlayerInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ScenePlayerInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ScenePlayerInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025ScenePlayerInfo.proto\032\026OnlinePlayerInf" + - "o.proto\"\217\001\n\017ScenePlayerInfo\022\013\n\003uid\030\001 \001(\r" + - "\022\016\n\006peerId\030\002 \001(\r\022\014\n\004name\030\003 \001(\t\022\023\n\013isConn" + - "ected\030\004 \001(\010\022\017\n\007sceneId\030\005 \001(\r\022+\n\020onlinePl" + - "ayerInfo\030\006 \001(\0132\021.OnlinePlayerInfoB\033\n\031emu" + - ".grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.getDescriptor(), - }); - internal_static_ScenePlayerInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ScenePlayerInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ScenePlayerInfo_descriptor, - new java.lang.String[] { "Uid", "PeerId", "Name", "IsConnected", "SceneId", "OnlinePlayerInfo", }); - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ScenePlayerLocationNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ScenePlayerLocationNotifyOuterClass.java deleted file mode 100644 index e3a1c19ce..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ScenePlayerLocationNotifyOuterClass.java +++ /dev/null @@ -1,915 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ScenePlayerLocationNotify.proto - -package emu.grasscutter.net.proto; - -public final class ScenePlayerLocationNotifyOuterClass { - private ScenePlayerLocationNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ScenePlayerLocationNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:ScenePlayerLocationNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - int getSceneId(); - - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - java.util.List<emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo> - getPlayerLocListList(); - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo getPlayerLocList(int index); - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - int getPlayerLocListCount(); - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfoOrBuilder> - getPlayerLocListOrBuilderList(); - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfoOrBuilder getPlayerLocListOrBuilder( - int index); - } - /** - * Protobuf type {@code ScenePlayerLocationNotify} - */ - public static final class ScenePlayerLocationNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ScenePlayerLocationNotify) - ScenePlayerLocationNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use ScenePlayerLocationNotify.newBuilder() to construct. - private ScenePlayerLocationNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ScenePlayerLocationNotify() { - playerLocList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ScenePlayerLocationNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ScenePlayerLocationNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - sceneId_ = input.readUInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - playerLocList_ = new java.util.ArrayList<emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo>(); - mutable_bitField0_ |= 0x00000001; - } - playerLocList_.add( - input.readMessage(emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - playerLocList_ = java.util.Collections.unmodifiableList(playerLocList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.internal_static_ScenePlayerLocationNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.internal_static_ScenePlayerLocationNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify.class, emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify.Builder.class); - } - - public static final int SCENEID_FIELD_NUMBER = 1; - private int sceneId_; - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - - public static final int PLAYERLOCLIST_FIELD_NUMBER = 2; - private java.util.List<emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo> playerLocList_; - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo> getPlayerLocListList() { - return playerLocList_; - } - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfoOrBuilder> - getPlayerLocListOrBuilderList() { - return playerLocList_; - } - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - @java.lang.Override - public int getPlayerLocListCount() { - return playerLocList_.size(); - } - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo getPlayerLocList(int index) { - return playerLocList_.get(index); - } - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfoOrBuilder getPlayerLocListOrBuilder( - int index) { - return playerLocList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (sceneId_ != 0) { - output.writeUInt32(1, sceneId_); - } - for (int i = 0; i < playerLocList_.size(); i++) { - output.writeMessage(2, playerLocList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sceneId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, sceneId_); - } - for (int i = 0; i < playerLocList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, playerLocList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify other = (emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify) obj; - - if (getSceneId() - != other.getSceneId()) return false; - if (!getPlayerLocListList() - .equals(other.getPlayerLocListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SCENEID_FIELD_NUMBER; - hash = (53 * hash) + getSceneId(); - if (getPlayerLocListCount() > 0) { - hash = (37 * hash) + PLAYERLOCLIST_FIELD_NUMBER; - hash = (53 * hash) + getPlayerLocListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ScenePlayerLocationNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ScenePlayerLocationNotify) - emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.internal_static_ScenePlayerLocationNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.internal_static_ScenePlayerLocationNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify.class, emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPlayerLocListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sceneId_ = 0; - - if (playerLocListBuilder_ == null) { - playerLocList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - playerLocListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.internal_static_ScenePlayerLocationNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify build() { - emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify buildPartial() { - emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify result = new emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify(this); - int from_bitField0_ = bitField0_; - result.sceneId_ = sceneId_; - if (playerLocListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - playerLocList_ = java.util.Collections.unmodifiableList(playerLocList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.playerLocList_ = playerLocList_; - } else { - result.playerLocList_ = playerLocListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify) { - return mergeFrom((emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify other) { - if (other == emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify.getDefaultInstance()) return this; - if (other.getSceneId() != 0) { - setSceneId(other.getSceneId()); - } - if (playerLocListBuilder_ == null) { - if (!other.playerLocList_.isEmpty()) { - if (playerLocList_.isEmpty()) { - playerLocList_ = other.playerLocList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePlayerLocListIsMutable(); - playerLocList_.addAll(other.playerLocList_); - } - onChanged(); - } - } else { - if (!other.playerLocList_.isEmpty()) { - if (playerLocListBuilder_.isEmpty()) { - playerLocListBuilder_.dispose(); - playerLocListBuilder_ = null; - playerLocList_ = other.playerLocList_; - bitField0_ = (bitField0_ & ~0x00000001); - playerLocListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPlayerLocListFieldBuilder() : null; - } else { - playerLocListBuilder_.addAllMessages(other.playerLocList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int sceneId_ ; - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - /** - * <code>uint32 sceneId = 1;</code> - * @param value The sceneId to set. - * @return This builder for chaining. - */ - public Builder setSceneId(int value) { - - sceneId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 sceneId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearSceneId() { - - sceneId_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo> playerLocList_ = - java.util.Collections.emptyList(); - private void ensurePlayerLocListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - playerLocList_ = new java.util.ArrayList<emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo>(playerLocList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo, emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.Builder, emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfoOrBuilder> playerLocListBuilder_; - - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo> getPlayerLocListList() { - if (playerLocListBuilder_ == null) { - return java.util.Collections.unmodifiableList(playerLocList_); - } else { - return playerLocListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - public int getPlayerLocListCount() { - if (playerLocListBuilder_ == null) { - return playerLocList_.size(); - } else { - return playerLocListBuilder_.getCount(); - } - } - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo getPlayerLocList(int index) { - if (playerLocListBuilder_ == null) { - return playerLocList_.get(index); - } else { - return playerLocListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - public Builder setPlayerLocList( - int index, emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo value) { - if (playerLocListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePlayerLocListIsMutable(); - playerLocList_.set(index, value); - onChanged(); - } else { - playerLocListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - public Builder setPlayerLocList( - int index, emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.Builder builderForValue) { - if (playerLocListBuilder_ == null) { - ensurePlayerLocListIsMutable(); - playerLocList_.set(index, builderForValue.build()); - onChanged(); - } else { - playerLocListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - public Builder addPlayerLocList(emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo value) { - if (playerLocListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePlayerLocListIsMutable(); - playerLocList_.add(value); - onChanged(); - } else { - playerLocListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - public Builder addPlayerLocList( - int index, emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo value) { - if (playerLocListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePlayerLocListIsMutable(); - playerLocList_.add(index, value); - onChanged(); - } else { - playerLocListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - public Builder addPlayerLocList( - emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.Builder builderForValue) { - if (playerLocListBuilder_ == null) { - ensurePlayerLocListIsMutable(); - playerLocList_.add(builderForValue.build()); - onChanged(); - } else { - playerLocListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - public Builder addPlayerLocList( - int index, emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.Builder builderForValue) { - if (playerLocListBuilder_ == null) { - ensurePlayerLocListIsMutable(); - playerLocList_.add(index, builderForValue.build()); - onChanged(); - } else { - playerLocListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - public Builder addAllPlayerLocList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo> values) { - if (playerLocListBuilder_ == null) { - ensurePlayerLocListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, playerLocList_); - onChanged(); - } else { - playerLocListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - public Builder clearPlayerLocList() { - if (playerLocListBuilder_ == null) { - playerLocList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - playerLocListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - public Builder removePlayerLocList(int index) { - if (playerLocListBuilder_ == null) { - ensurePlayerLocListIsMutable(); - playerLocList_.remove(index); - onChanged(); - } else { - playerLocListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.Builder getPlayerLocListBuilder( - int index) { - return getPlayerLocListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfoOrBuilder getPlayerLocListOrBuilder( - int index) { - if (playerLocListBuilder_ == null) { - return playerLocList_.get(index); } else { - return playerLocListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfoOrBuilder> - getPlayerLocListOrBuilderList() { - if (playerLocListBuilder_ != null) { - return playerLocListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(playerLocList_); - } - } - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.Builder addPlayerLocListBuilder() { - return getPlayerLocListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.getDefaultInstance()); - } - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.Builder addPlayerLocListBuilder( - int index) { - return getPlayerLocListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.getDefaultInstance()); - } - /** - * <code>repeated .PlayerLocationInfo playerLocList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.Builder> - getPlayerLocListBuilderList() { - return getPlayerLocListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo, emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.Builder, emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfoOrBuilder> - getPlayerLocListFieldBuilder() { - if (playerLocListBuilder_ == null) { - playerLocListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo, emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.Builder, emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfoOrBuilder>( - playerLocList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - playerLocList_ = null; - } - return playerLocListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ScenePlayerLocationNotify) - } - - // @@protoc_insertion_point(class_scope:ScenePlayerLocationNotify) - private static final emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify(); - } - - public static emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ScenePlayerLocationNotify> - PARSER = new com.google.protobuf.AbstractParser<ScenePlayerLocationNotify>() { - @java.lang.Override - public ScenePlayerLocationNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScenePlayerLocationNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ScenePlayerLocationNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ScenePlayerLocationNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ScenePlayerLocationNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ScenePlayerLocationNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037ScenePlayerLocationNotify.proto\032\030Playe" + - "rLocationInfo.proto\"X\n\031ScenePlayerLocati" + - "onNotify\022\017\n\007sceneId\030\001 \001(\r\022*\n\rplayerLocLi" + - "st\030\002 \003(\0132\023.PlayerLocationInfoB\033\n\031emu.gra" + - "sscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.getDescriptor(), - }); - internal_static_ScenePlayerLocationNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ScenePlayerLocationNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ScenePlayerLocationNotify_descriptor, - new java.lang.String[] { "SceneId", "PlayerLocList", }); - emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SceneReliquaryInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SceneReliquaryInfoOuterClass.java deleted file mode 100644 index 3b310c439..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SceneReliquaryInfoOuterClass.java +++ /dev/null @@ -1,748 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SceneReliquaryInfo.proto - -package emu.grasscutter.net.proto; - -public final class SceneReliquaryInfoOuterClass { - private SceneReliquaryInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SceneReliquaryInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:SceneReliquaryInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 itemId = 1;</code> - * @return The itemId. - */ - int getItemId(); - - /** - * <code>uint64 guid = 2;</code> - * @return The guid. - */ - long getGuid(); - - /** - * <code>uint32 level = 3;</code> - * @return The level. - */ - int getLevel(); - - /** - * <code>uint32 promoteLevel = 4;</code> - * @return The promoteLevel. - */ - int getPromoteLevel(); - } - /** - * Protobuf type {@code SceneReliquaryInfo} - */ - public static final class SceneReliquaryInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SceneReliquaryInfo) - SceneReliquaryInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use SceneReliquaryInfo.newBuilder() to construct. - private SceneReliquaryInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SceneReliquaryInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SceneReliquaryInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SceneReliquaryInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - itemId_ = input.readUInt32(); - break; - } - case 16: { - - guid_ = input.readUInt64(); - break; - } - case 24: { - - level_ = input.readUInt32(); - break; - } - case 32: { - - promoteLevel_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.internal_static_SceneReliquaryInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.internal_static_SceneReliquaryInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.class, emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.Builder.class); - } - - public static final int ITEMID_FIELD_NUMBER = 1; - private int itemId_; - /** - * <code>uint32 itemId = 1;</code> - * @return The itemId. - */ - @java.lang.Override - public int getItemId() { - return itemId_; - } - - public static final int GUID_FIELD_NUMBER = 2; - private long guid_; - /** - * <code>uint64 guid = 2;</code> - * @return The guid. - */ - @java.lang.Override - public long getGuid() { - return guid_; - } - - public static final int LEVEL_FIELD_NUMBER = 3; - private int level_; - /** - * <code>uint32 level = 3;</code> - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - - public static final int PROMOTELEVEL_FIELD_NUMBER = 4; - private int promoteLevel_; - /** - * <code>uint32 promoteLevel = 4;</code> - * @return The promoteLevel. - */ - @java.lang.Override - public int getPromoteLevel() { - return promoteLevel_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (itemId_ != 0) { - output.writeUInt32(1, itemId_); - } - if (guid_ != 0L) { - output.writeUInt64(2, guid_); - } - if (level_ != 0) { - output.writeUInt32(3, level_); - } - if (promoteLevel_ != 0) { - output.writeUInt32(4, promoteLevel_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (itemId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, itemId_); - } - if (guid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, guid_); - } - if (level_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, level_); - } - if (promoteLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, promoteLevel_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo other = (emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo) obj; - - if (getItemId() - != other.getItemId()) return false; - if (getGuid() - != other.getGuid()) return false; - if (getLevel() - != other.getLevel()) return false; - if (getPromoteLevel() - != other.getPromoteLevel()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ITEMID_FIELD_NUMBER; - hash = (53 * hash) + getItemId(); - hash = (37 * hash) + GUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGuid()); - hash = (37 * hash) + LEVEL_FIELD_NUMBER; - hash = (53 * hash) + getLevel(); - hash = (37 * hash) + PROMOTELEVEL_FIELD_NUMBER; - hash = (53 * hash) + getPromoteLevel(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SceneReliquaryInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SceneReliquaryInfo) - emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.internal_static_SceneReliquaryInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.internal_static_SceneReliquaryInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.class, emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - itemId_ = 0; - - guid_ = 0L; - - level_ = 0; - - promoteLevel_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.internal_static_SceneReliquaryInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo build() { - emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo buildPartial() { - emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo result = new emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo(this); - result.itemId_ = itemId_; - result.guid_ = guid_; - result.level_ = level_; - result.promoteLevel_ = promoteLevel_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo) { - return mergeFrom((emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo other) { - if (other == emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.getDefaultInstance()) return this; - if (other.getItemId() != 0) { - setItemId(other.getItemId()); - } - if (other.getGuid() != 0L) { - setGuid(other.getGuid()); - } - if (other.getLevel() != 0) { - setLevel(other.getLevel()); - } - if (other.getPromoteLevel() != 0) { - setPromoteLevel(other.getPromoteLevel()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int itemId_ ; - /** - * <code>uint32 itemId = 1;</code> - * @return The itemId. - */ - @java.lang.Override - public int getItemId() { - return itemId_; - } - /** - * <code>uint32 itemId = 1;</code> - * @param value The itemId to set. - * @return This builder for chaining. - */ - public Builder setItemId(int value) { - - itemId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 itemId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearItemId() { - - itemId_ = 0; - onChanged(); - return this; - } - - private long guid_ ; - /** - * <code>uint64 guid = 2;</code> - * @return The guid. - */ - @java.lang.Override - public long getGuid() { - return guid_; - } - /** - * <code>uint64 guid = 2;</code> - * @param value The guid to set. - * @return This builder for chaining. - */ - public Builder setGuid(long value) { - - guid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 guid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearGuid() { - - guid_ = 0L; - onChanged(); - return this; - } - - private int level_ ; - /** - * <code>uint32 level = 3;</code> - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - /** - * <code>uint32 level = 3;</code> - * @param value The level to set. - * @return This builder for chaining. - */ - public Builder setLevel(int value) { - - level_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 level = 3;</code> - * @return This builder for chaining. - */ - public Builder clearLevel() { - - level_ = 0; - onChanged(); - return this; - } - - private int promoteLevel_ ; - /** - * <code>uint32 promoteLevel = 4;</code> - * @return The promoteLevel. - */ - @java.lang.Override - public int getPromoteLevel() { - return promoteLevel_; - } - /** - * <code>uint32 promoteLevel = 4;</code> - * @param value The promoteLevel to set. - * @return This builder for chaining. - */ - public Builder setPromoteLevel(int value) { - - promoteLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 promoteLevel = 4;</code> - * @return This builder for chaining. - */ - public Builder clearPromoteLevel() { - - promoteLevel_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SceneReliquaryInfo) - } - - // @@protoc_insertion_point(class_scope:SceneReliquaryInfo) - private static final emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo(); - } - - public static emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SceneReliquaryInfo> - PARSER = new com.google.protobuf.AbstractParser<SceneReliquaryInfo>() { - @java.lang.Override - public SceneReliquaryInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SceneReliquaryInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SceneReliquaryInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SceneReliquaryInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneReliquaryInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneReliquaryInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030SceneReliquaryInfo.proto\"W\n\022SceneReliq" + - "uaryInfo\022\016\n\006itemId\030\001 \001(\r\022\014\n\004guid\030\002 \001(\004\022\r" + - "\n\005level\030\003 \001(\r\022\024\n\014promoteLevel\030\004 \001(\rB\033\n\031e" + - "mu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SceneReliquaryInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SceneReliquaryInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneReliquaryInfo_descriptor, - new java.lang.String[] { "ItemId", "Guid", "Level", "PromoteLevel", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SceneTeamAvatarOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SceneTeamAvatarOuterClass.java deleted file mode 100644 index 3a0b09c04..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SceneTeamAvatarOuterClass.java +++ /dev/null @@ -1,2721 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SceneTeamAvatar.proto - -package emu.grasscutter.net.proto; - -public final class SceneTeamAvatarOuterClass { - private SceneTeamAvatarOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SceneTeamAvatarOrBuilder extends - // @@protoc_insertion_point(interface_extends:SceneTeamAvatar) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 playerId = 1;</code> - * @return The playerId. - */ - int getPlayerId(); - - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>uint32 sceneId = 3;</code> - * @return The sceneId. - */ - int getSceneId(); - - /** - * <code>uint32 entityId = 4;</code> - * @return The entityId. - */ - int getEntityId(); - - /** - * <code>.AvatarInfo avatarInfo = 5;</code> - * @return Whether the avatarInfo field is set. - */ - boolean hasAvatarInfo(); - /** - * <code>.AvatarInfo avatarInfo = 5;</code> - * @return The avatarInfo. - */ - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo getAvatarInfo(); - /** - * <code>.AvatarInfo avatarInfo = 5;</code> - */ - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder getAvatarInfoOrBuilder(); - - /** - * <code>.SceneAvatarInfo sceneAvatarInfo = 6;</code> - * @return Whether the sceneAvatarInfo field is set. - */ - boolean hasSceneAvatarInfo(); - /** - * <code>.SceneAvatarInfo sceneAvatarInfo = 6;</code> - * @return The sceneAvatarInfo. - */ - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo getSceneAvatarInfo(); - /** - * <code>.SceneAvatarInfo sceneAvatarInfo = 6;</code> - */ - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfoOrBuilder getSceneAvatarInfoOrBuilder(); - - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 7;</code> - * @return Whether the avatarAbilityInfo field is set. - */ - boolean hasAvatarAbilityInfo(); - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 7;</code> - * @return The avatarAbilityInfo. - */ - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getAvatarAbilityInfo(); - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 7;</code> - */ - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getAvatarAbilityInfoOrBuilder(); - - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - java.util.List<emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff> - getServerBuffListList(); - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff getServerBuffList(int index); - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - int getServerBuffListCount(); - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder> - getServerBuffListOrBuilderList(); - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder getServerBuffListOrBuilder( - int index); - - /** - * <code>.SceneEntityInfo sceneEntityInfo = 9;</code> - * @return Whether the sceneEntityInfo field is set. - */ - boolean hasSceneEntityInfo(); - /** - * <code>.SceneEntityInfo sceneEntityInfo = 9;</code> - * @return The sceneEntityInfo. - */ - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo getSceneEntityInfo(); - /** - * <code>.SceneEntityInfo sceneEntityInfo = 9;</code> - */ - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfoOrBuilder getSceneEntityInfoOrBuilder(); - - /** - * <code>uint64 weaponGuid = 10;</code> - * @return The weaponGuid. - */ - long getWeaponGuid(); - - /** - * <code>uint32 weaponEntityId = 11;</code> - * @return The weaponEntityId. - */ - int getWeaponEntityId(); - - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 12;</code> - * @return Whether the weaponAbilityInfo field is set. - */ - boolean hasWeaponAbilityInfo(); - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 12;</code> - * @return The weaponAbilityInfo. - */ - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getWeaponAbilityInfo(); - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 12;</code> - */ - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getWeaponAbilityInfoOrBuilder(); - - /** - * <code>.AbilityControlBlock abilityControlBlock = 13;</code> - * @return Whether the abilityControlBlock field is set. - */ - boolean hasAbilityControlBlock(); - /** - * <code>.AbilityControlBlock abilityControlBlock = 13;</code> - * @return The abilityControlBlock. - */ - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock getAbilityControlBlock(); - /** - * <code>.AbilityControlBlock abilityControlBlock = 13;</code> - */ - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlockOrBuilder getAbilityControlBlockOrBuilder(); - - /** - * <code>bool isReconnect = 14;</code> - * @return The isReconnect. - */ - boolean getIsReconnect(); - - /** - * <code>bool isPlayerCurAvatar = 15;</code> - * @return The isPlayerCurAvatar. - */ - boolean getIsPlayerCurAvatar(); - - /** - * <code>bool isOnScene = 16;</code> - * @return The isOnScene. - */ - boolean getIsOnScene(); - } - /** - * Protobuf type {@code SceneTeamAvatar} - */ - public static final class SceneTeamAvatar extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SceneTeamAvatar) - SceneTeamAvatarOrBuilder { - private static final long serialVersionUID = 0L; - // Use SceneTeamAvatar.newBuilder() to construct. - private SceneTeamAvatar(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SceneTeamAvatar() { - serverBuffList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SceneTeamAvatar(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SceneTeamAvatar( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - playerId_ = input.readUInt32(); - break; - } - case 16: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 24: { - - sceneId_ = input.readUInt32(); - break; - } - case 32: { - - entityId_ = input.readUInt32(); - break; - } - case 42: { - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder subBuilder = null; - if (avatarInfo_ != null) { - subBuilder = avatarInfo_.toBuilder(); - } - avatarInfo_ = input.readMessage(emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(avatarInfo_); - avatarInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.Builder subBuilder = null; - if (sceneAvatarInfo_ != null) { - subBuilder = sceneAvatarInfo_.toBuilder(); - } - sceneAvatarInfo_ = input.readMessage(emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sceneAvatarInfo_); - sceneAvatarInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder subBuilder = null; - if (avatarAbilityInfo_ != null) { - subBuilder = avatarAbilityInfo_.toBuilder(); - } - avatarAbilityInfo_ = input.readMessage(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(avatarAbilityInfo_); - avatarAbilityInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - serverBuffList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff>(); - mutable_bitField0_ |= 0x00000001; - } - serverBuffList_.add( - input.readMessage(emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.parser(), extensionRegistry)); - break; - } - case 74: { - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder subBuilder = null; - if (sceneEntityInfo_ != null) { - subBuilder = sceneEntityInfo_.toBuilder(); - } - sceneEntityInfo_ = input.readMessage(emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sceneEntityInfo_); - sceneEntityInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 80: { - - weaponGuid_ = input.readUInt64(); - break; - } - case 88: { - - weaponEntityId_ = input.readUInt32(); - break; - } - case 98: { - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder subBuilder = null; - if (weaponAbilityInfo_ != null) { - subBuilder = weaponAbilityInfo_.toBuilder(); - } - weaponAbilityInfo_ = input.readMessage(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(weaponAbilityInfo_); - weaponAbilityInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 106: { - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder subBuilder = null; - if (abilityControlBlock_ != null) { - subBuilder = abilityControlBlock_.toBuilder(); - } - abilityControlBlock_ = input.readMessage(emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abilityControlBlock_); - abilityControlBlock_ = subBuilder.buildPartial(); - } - - break; - } - case 112: { - - isReconnect_ = input.readBool(); - break; - } - case 120: { - - isPlayerCurAvatar_ = input.readBool(); - break; - } - case 128: { - - isOnScene_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - serverBuffList_ = java.util.Collections.unmodifiableList(serverBuffList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.internal_static_SceneTeamAvatar_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.internal_static_SceneTeamAvatar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar.class, emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar.Builder.class); - } - - public static final int PLAYERID_FIELD_NUMBER = 1; - private int playerId_; - /** - * <code>uint32 playerId = 1;</code> - * @return The playerId. - */ - @java.lang.Override - public int getPlayerId() { - return playerId_; - } - - public static final int AVATARGUID_FIELD_NUMBER = 2; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int SCENEID_FIELD_NUMBER = 3; - private int sceneId_; - /** - * <code>uint32 sceneId = 3;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - - public static final int ENTITYID_FIELD_NUMBER = 4; - private int entityId_; - /** - * <code>uint32 entityId = 4;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - - public static final int AVATARINFO_FIELD_NUMBER = 5; - private emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo avatarInfo_; - /** - * <code>.AvatarInfo avatarInfo = 5;</code> - * @return Whether the avatarInfo field is set. - */ - @java.lang.Override - public boolean hasAvatarInfo() { - return avatarInfo_ != null; - } - /** - * <code>.AvatarInfo avatarInfo = 5;</code> - * @return The avatarInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo getAvatarInfo() { - return avatarInfo_ == null ? emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.getDefaultInstance() : avatarInfo_; - } - /** - * <code>.AvatarInfo avatarInfo = 5;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder getAvatarInfoOrBuilder() { - return getAvatarInfo(); - } - - public static final int SCENEAVATARINFO_FIELD_NUMBER = 6; - private emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo sceneAvatarInfo_; - /** - * <code>.SceneAvatarInfo sceneAvatarInfo = 6;</code> - * @return Whether the sceneAvatarInfo field is set. - */ - @java.lang.Override - public boolean hasSceneAvatarInfo() { - return sceneAvatarInfo_ != null; - } - /** - * <code>.SceneAvatarInfo sceneAvatarInfo = 6;</code> - * @return The sceneAvatarInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo getSceneAvatarInfo() { - return sceneAvatarInfo_ == null ? emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.getDefaultInstance() : sceneAvatarInfo_; - } - /** - * <code>.SceneAvatarInfo sceneAvatarInfo = 6;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfoOrBuilder getSceneAvatarInfoOrBuilder() { - return getSceneAvatarInfo(); - } - - public static final int AVATARABILITYINFO_FIELD_NUMBER = 7; - private emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo avatarAbilityInfo_; - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 7;</code> - * @return Whether the avatarAbilityInfo field is set. - */ - @java.lang.Override - public boolean hasAvatarAbilityInfo() { - return avatarAbilityInfo_ != null; - } - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 7;</code> - * @return The avatarAbilityInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getAvatarAbilityInfo() { - return avatarAbilityInfo_ == null ? emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : avatarAbilityInfo_; - } - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 7;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getAvatarAbilityInfoOrBuilder() { - return getAvatarAbilityInfo(); - } - - public static final int SERVERBUFFLIST_FIELD_NUMBER = 8; - private java.util.List<emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff> serverBuffList_; - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff> getServerBuffListList() { - return serverBuffList_; - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder> - getServerBuffListOrBuilderList() { - return serverBuffList_; - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - @java.lang.Override - public int getServerBuffListCount() { - return serverBuffList_.size(); - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff getServerBuffList(int index) { - return serverBuffList_.get(index); - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder getServerBuffListOrBuilder( - int index) { - return serverBuffList_.get(index); - } - - public static final int SCENEENTITYINFO_FIELD_NUMBER = 9; - private emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo sceneEntityInfo_; - /** - * <code>.SceneEntityInfo sceneEntityInfo = 9;</code> - * @return Whether the sceneEntityInfo field is set. - */ - @java.lang.Override - public boolean hasSceneEntityInfo() { - return sceneEntityInfo_ != null; - } - /** - * <code>.SceneEntityInfo sceneEntityInfo = 9;</code> - * @return The sceneEntityInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo getSceneEntityInfo() { - return sceneEntityInfo_ == null ? emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.getDefaultInstance() : sceneEntityInfo_; - } - /** - * <code>.SceneEntityInfo sceneEntityInfo = 9;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfoOrBuilder getSceneEntityInfoOrBuilder() { - return getSceneEntityInfo(); - } - - public static final int WEAPONGUID_FIELD_NUMBER = 10; - private long weaponGuid_; - /** - * <code>uint64 weaponGuid = 10;</code> - * @return The weaponGuid. - */ - @java.lang.Override - public long getWeaponGuid() { - return weaponGuid_; - } - - public static final int WEAPONENTITYID_FIELD_NUMBER = 11; - private int weaponEntityId_; - /** - * <code>uint32 weaponEntityId = 11;</code> - * @return The weaponEntityId. - */ - @java.lang.Override - public int getWeaponEntityId() { - return weaponEntityId_; - } - - public static final int WEAPONABILITYINFO_FIELD_NUMBER = 12; - private emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo weaponAbilityInfo_; - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 12;</code> - * @return Whether the weaponAbilityInfo field is set. - */ - @java.lang.Override - public boolean hasWeaponAbilityInfo() { - return weaponAbilityInfo_ != null; - } - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 12;</code> - * @return The weaponAbilityInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getWeaponAbilityInfo() { - return weaponAbilityInfo_ == null ? emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : weaponAbilityInfo_; - } - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 12;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getWeaponAbilityInfoOrBuilder() { - return getWeaponAbilityInfo(); - } - - public static final int ABILITYCONTROLBLOCK_FIELD_NUMBER = 13; - private emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock abilityControlBlock_; - /** - * <code>.AbilityControlBlock abilityControlBlock = 13;</code> - * @return Whether the abilityControlBlock field is set. - */ - @java.lang.Override - public boolean hasAbilityControlBlock() { - return abilityControlBlock_ != null; - } - /** - * <code>.AbilityControlBlock abilityControlBlock = 13;</code> - * @return The abilityControlBlock. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock getAbilityControlBlock() { - return abilityControlBlock_ == null ? emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.getDefaultInstance() : abilityControlBlock_; - } - /** - * <code>.AbilityControlBlock abilityControlBlock = 13;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlockOrBuilder getAbilityControlBlockOrBuilder() { - return getAbilityControlBlock(); - } - - public static final int ISRECONNECT_FIELD_NUMBER = 14; - private boolean isReconnect_; - /** - * <code>bool isReconnect = 14;</code> - * @return The isReconnect. - */ - @java.lang.Override - public boolean getIsReconnect() { - return isReconnect_; - } - - public static final int ISPLAYERCURAVATAR_FIELD_NUMBER = 15; - private boolean isPlayerCurAvatar_; - /** - * <code>bool isPlayerCurAvatar = 15;</code> - * @return The isPlayerCurAvatar. - */ - @java.lang.Override - public boolean getIsPlayerCurAvatar() { - return isPlayerCurAvatar_; - } - - public static final int ISONSCENE_FIELD_NUMBER = 16; - private boolean isOnScene_; - /** - * <code>bool isOnScene = 16;</code> - * @return The isOnScene. - */ - @java.lang.Override - public boolean getIsOnScene() { - return isOnScene_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (playerId_ != 0) { - output.writeUInt32(1, playerId_); - } - if (avatarGuid_ != 0L) { - output.writeUInt64(2, avatarGuid_); - } - if (sceneId_ != 0) { - output.writeUInt32(3, sceneId_); - } - if (entityId_ != 0) { - output.writeUInt32(4, entityId_); - } - if (avatarInfo_ != null) { - output.writeMessage(5, getAvatarInfo()); - } - if (sceneAvatarInfo_ != null) { - output.writeMessage(6, getSceneAvatarInfo()); - } - if (avatarAbilityInfo_ != null) { - output.writeMessage(7, getAvatarAbilityInfo()); - } - for (int i = 0; i < serverBuffList_.size(); i++) { - output.writeMessage(8, serverBuffList_.get(i)); - } - if (sceneEntityInfo_ != null) { - output.writeMessage(9, getSceneEntityInfo()); - } - if (weaponGuid_ != 0L) { - output.writeUInt64(10, weaponGuid_); - } - if (weaponEntityId_ != 0) { - output.writeUInt32(11, weaponEntityId_); - } - if (weaponAbilityInfo_ != null) { - output.writeMessage(12, getWeaponAbilityInfo()); - } - if (abilityControlBlock_ != null) { - output.writeMessage(13, getAbilityControlBlock()); - } - if (isReconnect_ != false) { - output.writeBool(14, isReconnect_); - } - if (isPlayerCurAvatar_ != false) { - output.writeBool(15, isPlayerCurAvatar_); - } - if (isOnScene_ != false) { - output.writeBool(16, isOnScene_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (playerId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, playerId_); - } - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, avatarGuid_); - } - if (sceneId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, sceneId_); - } - if (entityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, entityId_); - } - if (avatarInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getAvatarInfo()); - } - if (sceneAvatarInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getSceneAvatarInfo()); - } - if (avatarAbilityInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getAvatarAbilityInfo()); - } - for (int i = 0; i < serverBuffList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, serverBuffList_.get(i)); - } - if (sceneEntityInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getSceneEntityInfo()); - } - if (weaponGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(10, weaponGuid_); - } - if (weaponEntityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(11, weaponEntityId_); - } - if (weaponAbilityInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getWeaponAbilityInfo()); - } - if (abilityControlBlock_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getAbilityControlBlock()); - } - if (isReconnect_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(14, isReconnect_); - } - if (isPlayerCurAvatar_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(15, isPlayerCurAvatar_); - } - if (isOnScene_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(16, isOnScene_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar other = (emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar) obj; - - if (getPlayerId() - != other.getPlayerId()) return false; - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (getSceneId() - != other.getSceneId()) return false; - if (getEntityId() - != other.getEntityId()) return false; - if (hasAvatarInfo() != other.hasAvatarInfo()) return false; - if (hasAvatarInfo()) { - if (!getAvatarInfo() - .equals(other.getAvatarInfo())) return false; - } - if (hasSceneAvatarInfo() != other.hasSceneAvatarInfo()) return false; - if (hasSceneAvatarInfo()) { - if (!getSceneAvatarInfo() - .equals(other.getSceneAvatarInfo())) return false; - } - if (hasAvatarAbilityInfo() != other.hasAvatarAbilityInfo()) return false; - if (hasAvatarAbilityInfo()) { - if (!getAvatarAbilityInfo() - .equals(other.getAvatarAbilityInfo())) return false; - } - if (!getServerBuffListList() - .equals(other.getServerBuffListList())) return false; - if (hasSceneEntityInfo() != other.hasSceneEntityInfo()) return false; - if (hasSceneEntityInfo()) { - if (!getSceneEntityInfo() - .equals(other.getSceneEntityInfo())) return false; - } - if (getWeaponGuid() - != other.getWeaponGuid()) return false; - if (getWeaponEntityId() - != other.getWeaponEntityId()) return false; - if (hasWeaponAbilityInfo() != other.hasWeaponAbilityInfo()) return false; - if (hasWeaponAbilityInfo()) { - if (!getWeaponAbilityInfo() - .equals(other.getWeaponAbilityInfo())) return false; - } - if (hasAbilityControlBlock() != other.hasAbilityControlBlock()) return false; - if (hasAbilityControlBlock()) { - if (!getAbilityControlBlock() - .equals(other.getAbilityControlBlock())) return false; - } - if (getIsReconnect() - != other.getIsReconnect()) return false; - if (getIsPlayerCurAvatar() - != other.getIsPlayerCurAvatar()) return false; - if (getIsOnScene() - != other.getIsOnScene()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PLAYERID_FIELD_NUMBER; - hash = (53 * hash) + getPlayerId(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - hash = (37 * hash) + SCENEID_FIELD_NUMBER; - hash = (53 * hash) + getSceneId(); - hash = (37 * hash) + ENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId(); - if (hasAvatarInfo()) { - hash = (37 * hash) + AVATARINFO_FIELD_NUMBER; - hash = (53 * hash) + getAvatarInfo().hashCode(); - } - if (hasSceneAvatarInfo()) { - hash = (37 * hash) + SCENEAVATARINFO_FIELD_NUMBER; - hash = (53 * hash) + getSceneAvatarInfo().hashCode(); - } - if (hasAvatarAbilityInfo()) { - hash = (37 * hash) + AVATARABILITYINFO_FIELD_NUMBER; - hash = (53 * hash) + getAvatarAbilityInfo().hashCode(); - } - if (getServerBuffListCount() > 0) { - hash = (37 * hash) + SERVERBUFFLIST_FIELD_NUMBER; - hash = (53 * hash) + getServerBuffListList().hashCode(); - } - if (hasSceneEntityInfo()) { - hash = (37 * hash) + SCENEENTITYINFO_FIELD_NUMBER; - hash = (53 * hash) + getSceneEntityInfo().hashCode(); - } - hash = (37 * hash) + WEAPONGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getWeaponGuid()); - hash = (37 * hash) + WEAPONENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getWeaponEntityId(); - if (hasWeaponAbilityInfo()) { - hash = (37 * hash) + WEAPONABILITYINFO_FIELD_NUMBER; - hash = (53 * hash) + getWeaponAbilityInfo().hashCode(); - } - if (hasAbilityControlBlock()) { - hash = (37 * hash) + ABILITYCONTROLBLOCK_FIELD_NUMBER; - hash = (53 * hash) + getAbilityControlBlock().hashCode(); - } - hash = (37 * hash) + ISRECONNECT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsReconnect()); - hash = (37 * hash) + ISPLAYERCURAVATAR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsPlayerCurAvatar()); - hash = (37 * hash) + ISONSCENE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsOnScene()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SceneTeamAvatar} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SceneTeamAvatar) - emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatarOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.internal_static_SceneTeamAvatar_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.internal_static_SceneTeamAvatar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar.class, emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getServerBuffListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - playerId_ = 0; - - avatarGuid_ = 0L; - - sceneId_ = 0; - - entityId_ = 0; - - if (avatarInfoBuilder_ == null) { - avatarInfo_ = null; - } else { - avatarInfo_ = null; - avatarInfoBuilder_ = null; - } - if (sceneAvatarInfoBuilder_ == null) { - sceneAvatarInfo_ = null; - } else { - sceneAvatarInfo_ = null; - sceneAvatarInfoBuilder_ = null; - } - if (avatarAbilityInfoBuilder_ == null) { - avatarAbilityInfo_ = null; - } else { - avatarAbilityInfo_ = null; - avatarAbilityInfoBuilder_ = null; - } - if (serverBuffListBuilder_ == null) { - serverBuffList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - serverBuffListBuilder_.clear(); - } - if (sceneEntityInfoBuilder_ == null) { - sceneEntityInfo_ = null; - } else { - sceneEntityInfo_ = null; - sceneEntityInfoBuilder_ = null; - } - weaponGuid_ = 0L; - - weaponEntityId_ = 0; - - if (weaponAbilityInfoBuilder_ == null) { - weaponAbilityInfo_ = null; - } else { - weaponAbilityInfo_ = null; - weaponAbilityInfoBuilder_ = null; - } - if (abilityControlBlockBuilder_ == null) { - abilityControlBlock_ = null; - } else { - abilityControlBlock_ = null; - abilityControlBlockBuilder_ = null; - } - isReconnect_ = false; - - isPlayerCurAvatar_ = false; - - isOnScene_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.internal_static_SceneTeamAvatar_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar build() { - emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar buildPartial() { - emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar result = new emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar(this); - int from_bitField0_ = bitField0_; - result.playerId_ = playerId_; - result.avatarGuid_ = avatarGuid_; - result.sceneId_ = sceneId_; - result.entityId_ = entityId_; - if (avatarInfoBuilder_ == null) { - result.avatarInfo_ = avatarInfo_; - } else { - result.avatarInfo_ = avatarInfoBuilder_.build(); - } - if (sceneAvatarInfoBuilder_ == null) { - result.sceneAvatarInfo_ = sceneAvatarInfo_; - } else { - result.sceneAvatarInfo_ = sceneAvatarInfoBuilder_.build(); - } - if (avatarAbilityInfoBuilder_ == null) { - result.avatarAbilityInfo_ = avatarAbilityInfo_; - } else { - result.avatarAbilityInfo_ = avatarAbilityInfoBuilder_.build(); - } - if (serverBuffListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - serverBuffList_ = java.util.Collections.unmodifiableList(serverBuffList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.serverBuffList_ = serverBuffList_; - } else { - result.serverBuffList_ = serverBuffListBuilder_.build(); - } - if (sceneEntityInfoBuilder_ == null) { - result.sceneEntityInfo_ = sceneEntityInfo_; - } else { - result.sceneEntityInfo_ = sceneEntityInfoBuilder_.build(); - } - result.weaponGuid_ = weaponGuid_; - result.weaponEntityId_ = weaponEntityId_; - if (weaponAbilityInfoBuilder_ == null) { - result.weaponAbilityInfo_ = weaponAbilityInfo_; - } else { - result.weaponAbilityInfo_ = weaponAbilityInfoBuilder_.build(); - } - if (abilityControlBlockBuilder_ == null) { - result.abilityControlBlock_ = abilityControlBlock_; - } else { - result.abilityControlBlock_ = abilityControlBlockBuilder_.build(); - } - result.isReconnect_ = isReconnect_; - result.isPlayerCurAvatar_ = isPlayerCurAvatar_; - result.isOnScene_ = isOnScene_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar) { - return mergeFrom((emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar other) { - if (other == emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar.getDefaultInstance()) return this; - if (other.getPlayerId() != 0) { - setPlayerId(other.getPlayerId()); - } - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - if (other.getSceneId() != 0) { - setSceneId(other.getSceneId()); - } - if (other.getEntityId() != 0) { - setEntityId(other.getEntityId()); - } - if (other.hasAvatarInfo()) { - mergeAvatarInfo(other.getAvatarInfo()); - } - if (other.hasSceneAvatarInfo()) { - mergeSceneAvatarInfo(other.getSceneAvatarInfo()); - } - if (other.hasAvatarAbilityInfo()) { - mergeAvatarAbilityInfo(other.getAvatarAbilityInfo()); - } - if (serverBuffListBuilder_ == null) { - if (!other.serverBuffList_.isEmpty()) { - if (serverBuffList_.isEmpty()) { - serverBuffList_ = other.serverBuffList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureServerBuffListIsMutable(); - serverBuffList_.addAll(other.serverBuffList_); - } - onChanged(); - } - } else { - if (!other.serverBuffList_.isEmpty()) { - if (serverBuffListBuilder_.isEmpty()) { - serverBuffListBuilder_.dispose(); - serverBuffListBuilder_ = null; - serverBuffList_ = other.serverBuffList_; - bitField0_ = (bitField0_ & ~0x00000001); - serverBuffListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getServerBuffListFieldBuilder() : null; - } else { - serverBuffListBuilder_.addAllMessages(other.serverBuffList_); - } - } - } - if (other.hasSceneEntityInfo()) { - mergeSceneEntityInfo(other.getSceneEntityInfo()); - } - if (other.getWeaponGuid() != 0L) { - setWeaponGuid(other.getWeaponGuid()); - } - if (other.getWeaponEntityId() != 0) { - setWeaponEntityId(other.getWeaponEntityId()); - } - if (other.hasWeaponAbilityInfo()) { - mergeWeaponAbilityInfo(other.getWeaponAbilityInfo()); - } - if (other.hasAbilityControlBlock()) { - mergeAbilityControlBlock(other.getAbilityControlBlock()); - } - if (other.getIsReconnect() != false) { - setIsReconnect(other.getIsReconnect()); - } - if (other.getIsPlayerCurAvatar() != false) { - setIsPlayerCurAvatar(other.getIsPlayerCurAvatar()); - } - if (other.getIsOnScene() != false) { - setIsOnScene(other.getIsOnScene()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int playerId_ ; - /** - * <code>uint32 playerId = 1;</code> - * @return The playerId. - */ - @java.lang.Override - public int getPlayerId() { - return playerId_; - } - /** - * <code>uint32 playerId = 1;</code> - * @param value The playerId to set. - * @return This builder for chaining. - */ - public Builder setPlayerId(int value) { - - playerId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 playerId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearPlayerId() { - - playerId_ = 0; - onChanged(); - return this; - } - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 2;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private int sceneId_ ; - /** - * <code>uint32 sceneId = 3;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - /** - * <code>uint32 sceneId = 3;</code> - * @param value The sceneId to set. - * @return This builder for chaining. - */ - public Builder setSceneId(int value) { - - sceneId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 sceneId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearSceneId() { - - sceneId_ = 0; - onChanged(); - return this; - } - - private int entityId_ ; - /** - * <code>uint32 entityId = 4;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - /** - * <code>uint32 entityId = 4;</code> - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId(int value) { - - entityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 entityId = 4;</code> - * @return This builder for chaining. - */ - public Builder clearEntityId() { - - entityId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo avatarInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder> avatarInfoBuilder_; - /** - * <code>.AvatarInfo avatarInfo = 5;</code> - * @return Whether the avatarInfo field is set. - */ - public boolean hasAvatarInfo() { - return avatarInfoBuilder_ != null || avatarInfo_ != null; - } - /** - * <code>.AvatarInfo avatarInfo = 5;</code> - * @return The avatarInfo. - */ - public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo getAvatarInfo() { - if (avatarInfoBuilder_ == null) { - return avatarInfo_ == null ? emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.getDefaultInstance() : avatarInfo_; - } else { - return avatarInfoBuilder_.getMessage(); - } - } - /** - * <code>.AvatarInfo avatarInfo = 5;</code> - */ - public Builder setAvatarInfo(emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo value) { - if (avatarInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - avatarInfo_ = value; - onChanged(); - } else { - avatarInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.AvatarInfo avatarInfo = 5;</code> - */ - public Builder setAvatarInfo( - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder builderForValue) { - if (avatarInfoBuilder_ == null) { - avatarInfo_ = builderForValue.build(); - onChanged(); - } else { - avatarInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.AvatarInfo avatarInfo = 5;</code> - */ - public Builder mergeAvatarInfo(emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo value) { - if (avatarInfoBuilder_ == null) { - if (avatarInfo_ != null) { - avatarInfo_ = - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.newBuilder(avatarInfo_).mergeFrom(value).buildPartial(); - } else { - avatarInfo_ = value; - } - onChanged(); - } else { - avatarInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.AvatarInfo avatarInfo = 5;</code> - */ - public Builder clearAvatarInfo() { - if (avatarInfoBuilder_ == null) { - avatarInfo_ = null; - onChanged(); - } else { - avatarInfo_ = null; - avatarInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.AvatarInfo avatarInfo = 5;</code> - */ - public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder getAvatarInfoBuilder() { - - onChanged(); - return getAvatarInfoFieldBuilder().getBuilder(); - } - /** - * <code>.AvatarInfo avatarInfo = 5;</code> - */ - public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder getAvatarInfoOrBuilder() { - if (avatarInfoBuilder_ != null) { - return avatarInfoBuilder_.getMessageOrBuilder(); - } else { - return avatarInfo_ == null ? - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.getDefaultInstance() : avatarInfo_; - } - } - /** - * <code>.AvatarInfo avatarInfo = 5;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder> - getAvatarInfoFieldBuilder() { - if (avatarInfoBuilder_ == null) { - avatarInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder>( - getAvatarInfo(), - getParentForChildren(), - isClean()); - avatarInfo_ = null; - } - return avatarInfoBuilder_; - } - - private emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo sceneAvatarInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo, emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.Builder, emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfoOrBuilder> sceneAvatarInfoBuilder_; - /** - * <code>.SceneAvatarInfo sceneAvatarInfo = 6;</code> - * @return Whether the sceneAvatarInfo field is set. - */ - public boolean hasSceneAvatarInfo() { - return sceneAvatarInfoBuilder_ != null || sceneAvatarInfo_ != null; - } - /** - * <code>.SceneAvatarInfo sceneAvatarInfo = 6;</code> - * @return The sceneAvatarInfo. - */ - public emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo getSceneAvatarInfo() { - if (sceneAvatarInfoBuilder_ == null) { - return sceneAvatarInfo_ == null ? emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.getDefaultInstance() : sceneAvatarInfo_; - } else { - return sceneAvatarInfoBuilder_.getMessage(); - } - } - /** - * <code>.SceneAvatarInfo sceneAvatarInfo = 6;</code> - */ - public Builder setSceneAvatarInfo(emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo value) { - if (sceneAvatarInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sceneAvatarInfo_ = value; - onChanged(); - } else { - sceneAvatarInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.SceneAvatarInfo sceneAvatarInfo = 6;</code> - */ - public Builder setSceneAvatarInfo( - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.Builder builderForValue) { - if (sceneAvatarInfoBuilder_ == null) { - sceneAvatarInfo_ = builderForValue.build(); - onChanged(); - } else { - sceneAvatarInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.SceneAvatarInfo sceneAvatarInfo = 6;</code> - */ - public Builder mergeSceneAvatarInfo(emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo value) { - if (sceneAvatarInfoBuilder_ == null) { - if (sceneAvatarInfo_ != null) { - sceneAvatarInfo_ = - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.newBuilder(sceneAvatarInfo_).mergeFrom(value).buildPartial(); - } else { - sceneAvatarInfo_ = value; - } - onChanged(); - } else { - sceneAvatarInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.SceneAvatarInfo sceneAvatarInfo = 6;</code> - */ - public Builder clearSceneAvatarInfo() { - if (sceneAvatarInfoBuilder_ == null) { - sceneAvatarInfo_ = null; - onChanged(); - } else { - sceneAvatarInfo_ = null; - sceneAvatarInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.SceneAvatarInfo sceneAvatarInfo = 6;</code> - */ - public emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.Builder getSceneAvatarInfoBuilder() { - - onChanged(); - return getSceneAvatarInfoFieldBuilder().getBuilder(); - } - /** - * <code>.SceneAvatarInfo sceneAvatarInfo = 6;</code> - */ - public emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfoOrBuilder getSceneAvatarInfoOrBuilder() { - if (sceneAvatarInfoBuilder_ != null) { - return sceneAvatarInfoBuilder_.getMessageOrBuilder(); - } else { - return sceneAvatarInfo_ == null ? - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.getDefaultInstance() : sceneAvatarInfo_; - } - } - /** - * <code>.SceneAvatarInfo sceneAvatarInfo = 6;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo, emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.Builder, emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfoOrBuilder> - getSceneAvatarInfoFieldBuilder() { - if (sceneAvatarInfoBuilder_ == null) { - sceneAvatarInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo, emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.Builder, emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfoOrBuilder>( - getSceneAvatarInfo(), - getParentForChildren(), - isClean()); - sceneAvatarInfo_ = null; - } - return sceneAvatarInfoBuilder_; - } - - private emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo avatarAbilityInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder> avatarAbilityInfoBuilder_; - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 7;</code> - * @return Whether the avatarAbilityInfo field is set. - */ - public boolean hasAvatarAbilityInfo() { - return avatarAbilityInfoBuilder_ != null || avatarAbilityInfo_ != null; - } - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 7;</code> - * @return The avatarAbilityInfo. - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getAvatarAbilityInfo() { - if (avatarAbilityInfoBuilder_ == null) { - return avatarAbilityInfo_ == null ? emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : avatarAbilityInfo_; - } else { - return avatarAbilityInfoBuilder_.getMessage(); - } - } - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 7;</code> - */ - public Builder setAvatarAbilityInfo(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo value) { - if (avatarAbilityInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - avatarAbilityInfo_ = value; - onChanged(); - } else { - avatarAbilityInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 7;</code> - */ - public Builder setAvatarAbilityInfo( - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder builderForValue) { - if (avatarAbilityInfoBuilder_ == null) { - avatarAbilityInfo_ = builderForValue.build(); - onChanged(); - } else { - avatarAbilityInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 7;</code> - */ - public Builder mergeAvatarAbilityInfo(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo value) { - if (avatarAbilityInfoBuilder_ == null) { - if (avatarAbilityInfo_ != null) { - avatarAbilityInfo_ = - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.newBuilder(avatarAbilityInfo_).mergeFrom(value).buildPartial(); - } else { - avatarAbilityInfo_ = value; - } - onChanged(); - } else { - avatarAbilityInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 7;</code> - */ - public Builder clearAvatarAbilityInfo() { - if (avatarAbilityInfoBuilder_ == null) { - avatarAbilityInfo_ = null; - onChanged(); - } else { - avatarAbilityInfo_ = null; - avatarAbilityInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 7;</code> - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder getAvatarAbilityInfoBuilder() { - - onChanged(); - return getAvatarAbilityInfoFieldBuilder().getBuilder(); - } - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 7;</code> - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getAvatarAbilityInfoOrBuilder() { - if (avatarAbilityInfoBuilder_ != null) { - return avatarAbilityInfoBuilder_.getMessageOrBuilder(); - } else { - return avatarAbilityInfo_ == null ? - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : avatarAbilityInfo_; - } - } - /** - * <code>.AbilitySyncStateInfo avatarAbilityInfo = 7;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder> - getAvatarAbilityInfoFieldBuilder() { - if (avatarAbilityInfoBuilder_ == null) { - avatarAbilityInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder>( - getAvatarAbilityInfo(), - getParentForChildren(), - isClean()); - avatarAbilityInfo_ = null; - } - return avatarAbilityInfoBuilder_; - } - - private java.util.List<emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff> serverBuffList_ = - java.util.Collections.emptyList(); - private void ensureServerBuffListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - serverBuffList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff>(serverBuffList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder> serverBuffListBuilder_; - - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff> getServerBuffListList() { - if (serverBuffListBuilder_ == null) { - return java.util.Collections.unmodifiableList(serverBuffList_); - } else { - return serverBuffListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public int getServerBuffListCount() { - if (serverBuffListBuilder_ == null) { - return serverBuffList_.size(); - } else { - return serverBuffListBuilder_.getCount(); - } - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff getServerBuffList(int index) { - if (serverBuffListBuilder_ == null) { - return serverBuffList_.get(index); - } else { - return serverBuffListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public Builder setServerBuffList( - int index, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff value) { - if (serverBuffListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureServerBuffListIsMutable(); - serverBuffList_.set(index, value); - onChanged(); - } else { - serverBuffListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public Builder setServerBuffList( - int index, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder builderForValue) { - if (serverBuffListBuilder_ == null) { - ensureServerBuffListIsMutable(); - serverBuffList_.set(index, builderForValue.build()); - onChanged(); - } else { - serverBuffListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public Builder addServerBuffList(emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff value) { - if (serverBuffListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureServerBuffListIsMutable(); - serverBuffList_.add(value); - onChanged(); - } else { - serverBuffListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public Builder addServerBuffList( - int index, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff value) { - if (serverBuffListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureServerBuffListIsMutable(); - serverBuffList_.add(index, value); - onChanged(); - } else { - serverBuffListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public Builder addServerBuffList( - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder builderForValue) { - if (serverBuffListBuilder_ == null) { - ensureServerBuffListIsMutable(); - serverBuffList_.add(builderForValue.build()); - onChanged(); - } else { - serverBuffListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public Builder addServerBuffList( - int index, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder builderForValue) { - if (serverBuffListBuilder_ == null) { - ensureServerBuffListIsMutable(); - serverBuffList_.add(index, builderForValue.build()); - onChanged(); - } else { - serverBuffListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public Builder addAllServerBuffList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff> values) { - if (serverBuffListBuilder_ == null) { - ensureServerBuffListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, serverBuffList_); - onChanged(); - } else { - serverBuffListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public Builder clearServerBuffList() { - if (serverBuffListBuilder_ == null) { - serverBuffList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - serverBuffListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public Builder removeServerBuffList(int index) { - if (serverBuffListBuilder_ == null) { - ensureServerBuffListIsMutable(); - serverBuffList_.remove(index); - onChanged(); - } else { - serverBuffListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder getServerBuffListBuilder( - int index) { - return getServerBuffListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder getServerBuffListOrBuilder( - int index) { - if (serverBuffListBuilder_ == null) { - return serverBuffList_.get(index); } else { - return serverBuffListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder> - getServerBuffListOrBuilderList() { - if (serverBuffListBuilder_ != null) { - return serverBuffListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(serverBuffList_); - } - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder addServerBuffListBuilder() { - return getServerBuffListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.getDefaultInstance()); - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder addServerBuffListBuilder( - int index) { - return getServerBuffListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.getDefaultInstance()); - } - /** - * <code>repeated .ServerBuff serverBuffList = 8;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder> - getServerBuffListBuilderList() { - return getServerBuffListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder> - getServerBuffListFieldBuilder() { - if (serverBuffListBuilder_ == null) { - serverBuffListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder>( - serverBuffList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - serverBuffList_ = null; - } - return serverBuffListBuilder_; - } - - private emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo sceneEntityInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo, emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder, emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfoOrBuilder> sceneEntityInfoBuilder_; - /** - * <code>.SceneEntityInfo sceneEntityInfo = 9;</code> - * @return Whether the sceneEntityInfo field is set. - */ - public boolean hasSceneEntityInfo() { - return sceneEntityInfoBuilder_ != null || sceneEntityInfo_ != null; - } - /** - * <code>.SceneEntityInfo sceneEntityInfo = 9;</code> - * @return The sceneEntityInfo. - */ - public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo getSceneEntityInfo() { - if (sceneEntityInfoBuilder_ == null) { - return sceneEntityInfo_ == null ? emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.getDefaultInstance() : sceneEntityInfo_; - } else { - return sceneEntityInfoBuilder_.getMessage(); - } - } - /** - * <code>.SceneEntityInfo sceneEntityInfo = 9;</code> - */ - public Builder setSceneEntityInfo(emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo value) { - if (sceneEntityInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sceneEntityInfo_ = value; - onChanged(); - } else { - sceneEntityInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.SceneEntityInfo sceneEntityInfo = 9;</code> - */ - public Builder setSceneEntityInfo( - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder builderForValue) { - if (sceneEntityInfoBuilder_ == null) { - sceneEntityInfo_ = builderForValue.build(); - onChanged(); - } else { - sceneEntityInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.SceneEntityInfo sceneEntityInfo = 9;</code> - */ - public Builder mergeSceneEntityInfo(emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo value) { - if (sceneEntityInfoBuilder_ == null) { - if (sceneEntityInfo_ != null) { - sceneEntityInfo_ = - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.newBuilder(sceneEntityInfo_).mergeFrom(value).buildPartial(); - } else { - sceneEntityInfo_ = value; - } - onChanged(); - } else { - sceneEntityInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.SceneEntityInfo sceneEntityInfo = 9;</code> - */ - public Builder clearSceneEntityInfo() { - if (sceneEntityInfoBuilder_ == null) { - sceneEntityInfo_ = null; - onChanged(); - } else { - sceneEntityInfo_ = null; - sceneEntityInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.SceneEntityInfo sceneEntityInfo = 9;</code> - */ - public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder getSceneEntityInfoBuilder() { - - onChanged(); - return getSceneEntityInfoFieldBuilder().getBuilder(); - } - /** - * <code>.SceneEntityInfo sceneEntityInfo = 9;</code> - */ - public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfoOrBuilder getSceneEntityInfoOrBuilder() { - if (sceneEntityInfoBuilder_ != null) { - return sceneEntityInfoBuilder_.getMessageOrBuilder(); - } else { - return sceneEntityInfo_ == null ? - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.getDefaultInstance() : sceneEntityInfo_; - } - } - /** - * <code>.SceneEntityInfo sceneEntityInfo = 9;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo, emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder, emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfoOrBuilder> - getSceneEntityInfoFieldBuilder() { - if (sceneEntityInfoBuilder_ == null) { - sceneEntityInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo, emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder, emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfoOrBuilder>( - getSceneEntityInfo(), - getParentForChildren(), - isClean()); - sceneEntityInfo_ = null; - } - return sceneEntityInfoBuilder_; - } - - private long weaponGuid_ ; - /** - * <code>uint64 weaponGuid = 10;</code> - * @return The weaponGuid. - */ - @java.lang.Override - public long getWeaponGuid() { - return weaponGuid_; - } - /** - * <code>uint64 weaponGuid = 10;</code> - * @param value The weaponGuid to set. - * @return This builder for chaining. - */ - public Builder setWeaponGuid(long value) { - - weaponGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 weaponGuid = 10;</code> - * @return This builder for chaining. - */ - public Builder clearWeaponGuid() { - - weaponGuid_ = 0L; - onChanged(); - return this; - } - - private int weaponEntityId_ ; - /** - * <code>uint32 weaponEntityId = 11;</code> - * @return The weaponEntityId. - */ - @java.lang.Override - public int getWeaponEntityId() { - return weaponEntityId_; - } - /** - * <code>uint32 weaponEntityId = 11;</code> - * @param value The weaponEntityId to set. - * @return This builder for chaining. - */ - public Builder setWeaponEntityId(int value) { - - weaponEntityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 weaponEntityId = 11;</code> - * @return This builder for chaining. - */ - public Builder clearWeaponEntityId() { - - weaponEntityId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo weaponAbilityInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder> weaponAbilityInfoBuilder_; - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 12;</code> - * @return Whether the weaponAbilityInfo field is set. - */ - public boolean hasWeaponAbilityInfo() { - return weaponAbilityInfoBuilder_ != null || weaponAbilityInfo_ != null; - } - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 12;</code> - * @return The weaponAbilityInfo. - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getWeaponAbilityInfo() { - if (weaponAbilityInfoBuilder_ == null) { - return weaponAbilityInfo_ == null ? emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : weaponAbilityInfo_; - } else { - return weaponAbilityInfoBuilder_.getMessage(); - } - } - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 12;</code> - */ - public Builder setWeaponAbilityInfo(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo value) { - if (weaponAbilityInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - weaponAbilityInfo_ = value; - onChanged(); - } else { - weaponAbilityInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 12;</code> - */ - public Builder setWeaponAbilityInfo( - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder builderForValue) { - if (weaponAbilityInfoBuilder_ == null) { - weaponAbilityInfo_ = builderForValue.build(); - onChanged(); - } else { - weaponAbilityInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 12;</code> - */ - public Builder mergeWeaponAbilityInfo(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo value) { - if (weaponAbilityInfoBuilder_ == null) { - if (weaponAbilityInfo_ != null) { - weaponAbilityInfo_ = - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.newBuilder(weaponAbilityInfo_).mergeFrom(value).buildPartial(); - } else { - weaponAbilityInfo_ = value; - } - onChanged(); - } else { - weaponAbilityInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 12;</code> - */ - public Builder clearWeaponAbilityInfo() { - if (weaponAbilityInfoBuilder_ == null) { - weaponAbilityInfo_ = null; - onChanged(); - } else { - weaponAbilityInfo_ = null; - weaponAbilityInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 12;</code> - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder getWeaponAbilityInfoBuilder() { - - onChanged(); - return getWeaponAbilityInfoFieldBuilder().getBuilder(); - } - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 12;</code> - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getWeaponAbilityInfoOrBuilder() { - if (weaponAbilityInfoBuilder_ != null) { - return weaponAbilityInfoBuilder_.getMessageOrBuilder(); - } else { - return weaponAbilityInfo_ == null ? - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : weaponAbilityInfo_; - } - } - /** - * <code>.AbilitySyncStateInfo weaponAbilityInfo = 12;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder> - getWeaponAbilityInfoFieldBuilder() { - if (weaponAbilityInfoBuilder_ == null) { - weaponAbilityInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder>( - getWeaponAbilityInfo(), - getParentForChildren(), - isClean()); - weaponAbilityInfo_ = null; - } - return weaponAbilityInfoBuilder_; - } - - private emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock abilityControlBlock_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock, emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder, emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlockOrBuilder> abilityControlBlockBuilder_; - /** - * <code>.AbilityControlBlock abilityControlBlock = 13;</code> - * @return Whether the abilityControlBlock field is set. - */ - public boolean hasAbilityControlBlock() { - return abilityControlBlockBuilder_ != null || abilityControlBlock_ != null; - } - /** - * <code>.AbilityControlBlock abilityControlBlock = 13;</code> - * @return The abilityControlBlock. - */ - public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock getAbilityControlBlock() { - if (abilityControlBlockBuilder_ == null) { - return abilityControlBlock_ == null ? emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.getDefaultInstance() : abilityControlBlock_; - } else { - return abilityControlBlockBuilder_.getMessage(); - } - } - /** - * <code>.AbilityControlBlock abilityControlBlock = 13;</code> - */ - public Builder setAbilityControlBlock(emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock value) { - if (abilityControlBlockBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - abilityControlBlock_ = value; - onChanged(); - } else { - abilityControlBlockBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.AbilityControlBlock abilityControlBlock = 13;</code> - */ - public Builder setAbilityControlBlock( - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder builderForValue) { - if (abilityControlBlockBuilder_ == null) { - abilityControlBlock_ = builderForValue.build(); - onChanged(); - } else { - abilityControlBlockBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.AbilityControlBlock abilityControlBlock = 13;</code> - */ - public Builder mergeAbilityControlBlock(emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock value) { - if (abilityControlBlockBuilder_ == null) { - if (abilityControlBlock_ != null) { - abilityControlBlock_ = - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.newBuilder(abilityControlBlock_).mergeFrom(value).buildPartial(); - } else { - abilityControlBlock_ = value; - } - onChanged(); - } else { - abilityControlBlockBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.AbilityControlBlock abilityControlBlock = 13;</code> - */ - public Builder clearAbilityControlBlock() { - if (abilityControlBlockBuilder_ == null) { - abilityControlBlock_ = null; - onChanged(); - } else { - abilityControlBlock_ = null; - abilityControlBlockBuilder_ = null; - } - - return this; - } - /** - * <code>.AbilityControlBlock abilityControlBlock = 13;</code> - */ - public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder getAbilityControlBlockBuilder() { - - onChanged(); - return getAbilityControlBlockFieldBuilder().getBuilder(); - } - /** - * <code>.AbilityControlBlock abilityControlBlock = 13;</code> - */ - public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlockOrBuilder getAbilityControlBlockOrBuilder() { - if (abilityControlBlockBuilder_ != null) { - return abilityControlBlockBuilder_.getMessageOrBuilder(); - } else { - return abilityControlBlock_ == null ? - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.getDefaultInstance() : abilityControlBlock_; - } - } - /** - * <code>.AbilityControlBlock abilityControlBlock = 13;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock, emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder, emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlockOrBuilder> - getAbilityControlBlockFieldBuilder() { - if (abilityControlBlockBuilder_ == null) { - abilityControlBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock, emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder, emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlockOrBuilder>( - getAbilityControlBlock(), - getParentForChildren(), - isClean()); - abilityControlBlock_ = null; - } - return abilityControlBlockBuilder_; - } - - private boolean isReconnect_ ; - /** - * <code>bool isReconnect = 14;</code> - * @return The isReconnect. - */ - @java.lang.Override - public boolean getIsReconnect() { - return isReconnect_; - } - /** - * <code>bool isReconnect = 14;</code> - * @param value The isReconnect to set. - * @return This builder for chaining. - */ - public Builder setIsReconnect(boolean value) { - - isReconnect_ = value; - onChanged(); - return this; - } - /** - * <code>bool isReconnect = 14;</code> - * @return This builder for chaining. - */ - public Builder clearIsReconnect() { - - isReconnect_ = false; - onChanged(); - return this; - } - - private boolean isPlayerCurAvatar_ ; - /** - * <code>bool isPlayerCurAvatar = 15;</code> - * @return The isPlayerCurAvatar. - */ - @java.lang.Override - public boolean getIsPlayerCurAvatar() { - return isPlayerCurAvatar_; - } - /** - * <code>bool isPlayerCurAvatar = 15;</code> - * @param value The isPlayerCurAvatar to set. - * @return This builder for chaining. - */ - public Builder setIsPlayerCurAvatar(boolean value) { - - isPlayerCurAvatar_ = value; - onChanged(); - return this; - } - /** - * <code>bool isPlayerCurAvatar = 15;</code> - * @return This builder for chaining. - */ - public Builder clearIsPlayerCurAvatar() { - - isPlayerCurAvatar_ = false; - onChanged(); - return this; - } - - private boolean isOnScene_ ; - /** - * <code>bool isOnScene = 16;</code> - * @return The isOnScene. - */ - @java.lang.Override - public boolean getIsOnScene() { - return isOnScene_; - } - /** - * <code>bool isOnScene = 16;</code> - * @param value The isOnScene to set. - * @return This builder for chaining. - */ - public Builder setIsOnScene(boolean value) { - - isOnScene_ = value; - onChanged(); - return this; - } - /** - * <code>bool isOnScene = 16;</code> - * @return This builder for chaining. - */ - public Builder clearIsOnScene() { - - isOnScene_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SceneTeamAvatar) - } - - // @@protoc_insertion_point(class_scope:SceneTeamAvatar) - private static final emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar(); - } - - public static emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SceneTeamAvatar> - PARSER = new com.google.protobuf.AbstractParser<SceneTeamAvatar>() { - @java.lang.Override - public SceneTeamAvatar parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SceneTeamAvatar(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SceneTeamAvatar> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SceneTeamAvatar> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneTeamAvatar_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneTeamAvatar_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025SceneTeamAvatar.proto\032\031AbilityControlB" + - "lock.proto\032\032AbilitySyncStateInfo.proto\032\020" + - "AvatarInfo.proto\032\025SceneAvatarInfo.proto\032" + - "\025SceneEntityInfo.proto\032\020ServerBuff.proto" + - "\"\374\003\n\017SceneTeamAvatar\022\020\n\010playerId\030\001 \001(\r\022\022" + - "\n\navatarGuid\030\002 \001(\004\022\017\n\007sceneId\030\003 \001(\r\022\020\n\010e" + - "ntityId\030\004 \001(\r\022\037\n\navatarInfo\030\005 \001(\0132\013.Avat" + - "arInfo\022)\n\017sceneAvatarInfo\030\006 \001(\0132\020.SceneA" + - "vatarInfo\0220\n\021avatarAbilityInfo\030\007 \001(\0132\025.A" + - "bilitySyncStateInfo\022#\n\016serverBuffList\030\010 " + - "\003(\0132\013.ServerBuff\022)\n\017sceneEntityInfo\030\t \001(" + - "\0132\020.SceneEntityInfo\022\022\n\nweaponGuid\030\n \001(\004\022" + - "\026\n\016weaponEntityId\030\013 \001(\r\0220\n\021weaponAbility" + - "Info\030\014 \001(\0132\025.AbilitySyncStateInfo\0221\n\023abi" + - "lityControlBlock\030\r \001(\0132\024.AbilityControlB" + - "lock\022\023\n\013isReconnect\030\016 \001(\010\022\031\n\021isPlayerCur" + - "Avatar\030\017 \001(\010\022\021\n\tisOnScene\030\020 \001(\010B\033\n\031emu.g" + - "rasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.getDescriptor(), - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.AvatarInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.getDescriptor(), - emu.grasscutter.net.proto.ServerBuffOuterClass.getDescriptor(), - }); - internal_static_SceneTeamAvatar_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SceneTeamAvatar_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneTeamAvatar_descriptor, - new java.lang.String[] { "PlayerId", "AvatarGuid", "SceneId", "EntityId", "AvatarInfo", "SceneAvatarInfo", "AvatarAbilityInfo", "ServerBuffList", "SceneEntityInfo", "WeaponGuid", "WeaponEntityId", "WeaponAbilityInfo", "AbilityControlBlock", "IsReconnect", "IsPlayerCurAvatar", "IsOnScene", }); - emu.grasscutter.net.proto.AbilityControlBlockOuterClass.getDescriptor(); - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.AvatarInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.SceneEntityInfoOuterClass.getDescriptor(); - emu.grasscutter.net.proto.ServerBuffOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SceneTeamUpdateNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SceneTeamUpdateNotifyOuterClass.java deleted file mode 100644 index 08800417a..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SceneTeamUpdateNotifyOuterClass.java +++ /dev/null @@ -1,916 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SceneTeamUpdateNotify.proto - -package emu.grasscutter.net.proto; - -public final class SceneTeamUpdateNotifyOuterClass { - private SceneTeamUpdateNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SceneTeamUpdateNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:SceneTeamUpdateNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - java.util.List<emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar> - getSceneTeamAvatarListList(); - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar getSceneTeamAvatarList(int index); - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - int getSceneTeamAvatarListCount(); - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatarOrBuilder> - getSceneTeamAvatarListOrBuilderList(); - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatarOrBuilder getSceneTeamAvatarListOrBuilder( - int index); - - /** - * <code>bool isInMp = 3;</code> - * @return The isInMp. - */ - boolean getIsInMp(); - } - /** - * Protobuf type {@code SceneTeamUpdateNotify} - */ - public static final class SceneTeamUpdateNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SceneTeamUpdateNotify) - SceneTeamUpdateNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use SceneTeamUpdateNotify.newBuilder() to construct. - private SceneTeamUpdateNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SceneTeamUpdateNotify() { - sceneTeamAvatarList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SceneTeamUpdateNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SceneTeamUpdateNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - sceneTeamAvatarList_ = new java.util.ArrayList<emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar>(); - mutable_bitField0_ |= 0x00000001; - } - sceneTeamAvatarList_.add( - input.readMessage(emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar.parser(), extensionRegistry)); - break; - } - case 24: { - - isInMp_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - sceneTeamAvatarList_ = java.util.Collections.unmodifiableList(sceneTeamAvatarList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.internal_static_SceneTeamUpdateNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.internal_static_SceneTeamUpdateNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify.class, emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify.Builder.class); - } - - public static final int SCENETEAMAVATARLIST_FIELD_NUMBER = 1; - private java.util.List<emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar> sceneTeamAvatarList_; - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar> getSceneTeamAvatarListList() { - return sceneTeamAvatarList_; - } - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatarOrBuilder> - getSceneTeamAvatarListOrBuilderList() { - return sceneTeamAvatarList_; - } - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - @java.lang.Override - public int getSceneTeamAvatarListCount() { - return sceneTeamAvatarList_.size(); - } - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar getSceneTeamAvatarList(int index) { - return sceneTeamAvatarList_.get(index); - } - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatarOrBuilder getSceneTeamAvatarListOrBuilder( - int index) { - return sceneTeamAvatarList_.get(index); - } - - public static final int ISINMP_FIELD_NUMBER = 3; - private boolean isInMp_; - /** - * <code>bool isInMp = 3;</code> - * @return The isInMp. - */ - @java.lang.Override - public boolean getIsInMp() { - return isInMp_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < sceneTeamAvatarList_.size(); i++) { - output.writeMessage(1, sceneTeamAvatarList_.get(i)); - } - if (isInMp_ != false) { - output.writeBool(3, isInMp_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < sceneTeamAvatarList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, sceneTeamAvatarList_.get(i)); - } - if (isInMp_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, isInMp_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify other = (emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify) obj; - - if (!getSceneTeamAvatarListList() - .equals(other.getSceneTeamAvatarListList())) return false; - if (getIsInMp() - != other.getIsInMp()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getSceneTeamAvatarListCount() > 0) { - hash = (37 * hash) + SCENETEAMAVATARLIST_FIELD_NUMBER; - hash = (53 * hash) + getSceneTeamAvatarListList().hashCode(); - } - hash = (37 * hash) + ISINMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsInMp()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SceneTeamUpdateNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SceneTeamUpdateNotify) - emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.internal_static_SceneTeamUpdateNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.internal_static_SceneTeamUpdateNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify.class, emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSceneTeamAvatarListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (sceneTeamAvatarListBuilder_ == null) { - sceneTeamAvatarList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - sceneTeamAvatarListBuilder_.clear(); - } - isInMp_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.internal_static_SceneTeamUpdateNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify build() { - emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify buildPartial() { - emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify result = new emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify(this); - int from_bitField0_ = bitField0_; - if (sceneTeamAvatarListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - sceneTeamAvatarList_ = java.util.Collections.unmodifiableList(sceneTeamAvatarList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.sceneTeamAvatarList_ = sceneTeamAvatarList_; - } else { - result.sceneTeamAvatarList_ = sceneTeamAvatarListBuilder_.build(); - } - result.isInMp_ = isInMp_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify) { - return mergeFrom((emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify other) { - if (other == emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify.getDefaultInstance()) return this; - if (sceneTeamAvatarListBuilder_ == null) { - if (!other.sceneTeamAvatarList_.isEmpty()) { - if (sceneTeamAvatarList_.isEmpty()) { - sceneTeamAvatarList_ = other.sceneTeamAvatarList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSceneTeamAvatarListIsMutable(); - sceneTeamAvatarList_.addAll(other.sceneTeamAvatarList_); - } - onChanged(); - } - } else { - if (!other.sceneTeamAvatarList_.isEmpty()) { - if (sceneTeamAvatarListBuilder_.isEmpty()) { - sceneTeamAvatarListBuilder_.dispose(); - sceneTeamAvatarListBuilder_ = null; - sceneTeamAvatarList_ = other.sceneTeamAvatarList_; - bitField0_ = (bitField0_ & ~0x00000001); - sceneTeamAvatarListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSceneTeamAvatarListFieldBuilder() : null; - } else { - sceneTeamAvatarListBuilder_.addAllMessages(other.sceneTeamAvatarList_); - } - } - } - if (other.getIsInMp() != false) { - setIsInMp(other.getIsInMp()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List<emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar> sceneTeamAvatarList_ = - java.util.Collections.emptyList(); - private void ensureSceneTeamAvatarListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - sceneTeamAvatarList_ = new java.util.ArrayList<emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar>(sceneTeamAvatarList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar, emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar.Builder, emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatarOrBuilder> sceneTeamAvatarListBuilder_; - - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar> getSceneTeamAvatarListList() { - if (sceneTeamAvatarListBuilder_ == null) { - return java.util.Collections.unmodifiableList(sceneTeamAvatarList_); - } else { - return sceneTeamAvatarListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - public int getSceneTeamAvatarListCount() { - if (sceneTeamAvatarListBuilder_ == null) { - return sceneTeamAvatarList_.size(); - } else { - return sceneTeamAvatarListBuilder_.getCount(); - } - } - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - public emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar getSceneTeamAvatarList(int index) { - if (sceneTeamAvatarListBuilder_ == null) { - return sceneTeamAvatarList_.get(index); - } else { - return sceneTeamAvatarListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - public Builder setSceneTeamAvatarList( - int index, emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar value) { - if (sceneTeamAvatarListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSceneTeamAvatarListIsMutable(); - sceneTeamAvatarList_.set(index, value); - onChanged(); - } else { - sceneTeamAvatarListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - public Builder setSceneTeamAvatarList( - int index, emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar.Builder builderForValue) { - if (sceneTeamAvatarListBuilder_ == null) { - ensureSceneTeamAvatarListIsMutable(); - sceneTeamAvatarList_.set(index, builderForValue.build()); - onChanged(); - } else { - sceneTeamAvatarListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - public Builder addSceneTeamAvatarList(emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar value) { - if (sceneTeamAvatarListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSceneTeamAvatarListIsMutable(); - sceneTeamAvatarList_.add(value); - onChanged(); - } else { - sceneTeamAvatarListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - public Builder addSceneTeamAvatarList( - int index, emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar value) { - if (sceneTeamAvatarListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSceneTeamAvatarListIsMutable(); - sceneTeamAvatarList_.add(index, value); - onChanged(); - } else { - sceneTeamAvatarListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - public Builder addSceneTeamAvatarList( - emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar.Builder builderForValue) { - if (sceneTeamAvatarListBuilder_ == null) { - ensureSceneTeamAvatarListIsMutable(); - sceneTeamAvatarList_.add(builderForValue.build()); - onChanged(); - } else { - sceneTeamAvatarListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - public Builder addSceneTeamAvatarList( - int index, emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar.Builder builderForValue) { - if (sceneTeamAvatarListBuilder_ == null) { - ensureSceneTeamAvatarListIsMutable(); - sceneTeamAvatarList_.add(index, builderForValue.build()); - onChanged(); - } else { - sceneTeamAvatarListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - public Builder addAllSceneTeamAvatarList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar> values) { - if (sceneTeamAvatarListBuilder_ == null) { - ensureSceneTeamAvatarListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, sceneTeamAvatarList_); - onChanged(); - } else { - sceneTeamAvatarListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - public Builder clearSceneTeamAvatarList() { - if (sceneTeamAvatarListBuilder_ == null) { - sceneTeamAvatarList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - sceneTeamAvatarListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - public Builder removeSceneTeamAvatarList(int index) { - if (sceneTeamAvatarListBuilder_ == null) { - ensureSceneTeamAvatarListIsMutable(); - sceneTeamAvatarList_.remove(index); - onChanged(); - } else { - sceneTeamAvatarListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - public emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar.Builder getSceneTeamAvatarListBuilder( - int index) { - return getSceneTeamAvatarListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - public emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatarOrBuilder getSceneTeamAvatarListOrBuilder( - int index) { - if (sceneTeamAvatarListBuilder_ == null) { - return sceneTeamAvatarList_.get(index); } else { - return sceneTeamAvatarListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatarOrBuilder> - getSceneTeamAvatarListOrBuilderList() { - if (sceneTeamAvatarListBuilder_ != null) { - return sceneTeamAvatarListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(sceneTeamAvatarList_); - } - } - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - public emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar.Builder addSceneTeamAvatarListBuilder() { - return getSceneTeamAvatarListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar.getDefaultInstance()); - } - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - public emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar.Builder addSceneTeamAvatarListBuilder( - int index) { - return getSceneTeamAvatarListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar.getDefaultInstance()); - } - /** - * <code>repeated .SceneTeamAvatar sceneTeamAvatarList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar.Builder> - getSceneTeamAvatarListBuilderList() { - return getSceneTeamAvatarListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar, emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar.Builder, emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatarOrBuilder> - getSceneTeamAvatarListFieldBuilder() { - if (sceneTeamAvatarListBuilder_ == null) { - sceneTeamAvatarListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar, emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar.Builder, emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatarOrBuilder>( - sceneTeamAvatarList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - sceneTeamAvatarList_ = null; - } - return sceneTeamAvatarListBuilder_; - } - - private boolean isInMp_ ; - /** - * <code>bool isInMp = 3;</code> - * @return The isInMp. - */ - @java.lang.Override - public boolean getIsInMp() { - return isInMp_; - } - /** - * <code>bool isInMp = 3;</code> - * @param value The isInMp to set. - * @return This builder for chaining. - */ - public Builder setIsInMp(boolean value) { - - isInMp_ = value; - onChanged(); - return this; - } - /** - * <code>bool isInMp = 3;</code> - * @return This builder for chaining. - */ - public Builder clearIsInMp() { - - isInMp_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SceneTeamUpdateNotify) - } - - // @@protoc_insertion_point(class_scope:SceneTeamUpdateNotify) - private static final emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify(); - } - - public static emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SceneTeamUpdateNotify> - PARSER = new com.google.protobuf.AbstractParser<SceneTeamUpdateNotify>() { - @java.lang.Override - public SceneTeamUpdateNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SceneTeamUpdateNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SceneTeamUpdateNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SceneTeamUpdateNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneTeamUpdateNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneTeamUpdateNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033SceneTeamUpdateNotify.proto\032\025SceneTeam" + - "Avatar.proto\"V\n\025SceneTeamUpdateNotify\022-\n" + - "\023sceneTeamAvatarList\030\001 \003(\0132\020.SceneTeamAv" + - "atar\022\016\n\006isInMp\030\003 \001(\010B\033\n\031emu.grasscutter." + - "net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.getDescriptor(), - }); - internal_static_SceneTeamUpdateNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SceneTeamUpdateNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneTeamUpdateNotify_descriptor, - new java.lang.String[] { "SceneTeamAvatarList", "IsInMp", }); - emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SceneTimeNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SceneTimeNotifyOuterClass.java deleted file mode 100644 index de5cd873e..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SceneTimeNotifyOuterClass.java +++ /dev/null @@ -1,679 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SceneTimeNotify.proto - -package emu.grasscutter.net.proto; - -public final class SceneTimeNotifyOuterClass { - private SceneTimeNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SceneTimeNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:SceneTimeNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - int getSceneId(); - - /** - * <code>bool isPaused = 2;</code> - * @return The isPaused. - */ - boolean getIsPaused(); - - /** - * <code>uint64 sceneTime = 3;</code> - * @return The sceneTime. - */ - long getSceneTime(); - } - /** - * Protobuf type {@code SceneTimeNotify} - */ - public static final class SceneTimeNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SceneTimeNotify) - SceneTimeNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use SceneTimeNotify.newBuilder() to construct. - private SceneTimeNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SceneTimeNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SceneTimeNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SceneTimeNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - sceneId_ = input.readUInt32(); - break; - } - case 16: { - - isPaused_ = input.readBool(); - break; - } - case 24: { - - sceneTime_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.internal_static_SceneTimeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.internal_static_SceneTimeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify.class, emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify.Builder.class); - } - - public static final int SCENEID_FIELD_NUMBER = 1; - private int sceneId_; - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - - public static final int ISPAUSED_FIELD_NUMBER = 2; - private boolean isPaused_; - /** - * <code>bool isPaused = 2;</code> - * @return The isPaused. - */ - @java.lang.Override - public boolean getIsPaused() { - return isPaused_; - } - - public static final int SCENETIME_FIELD_NUMBER = 3; - private long sceneTime_; - /** - * <code>uint64 sceneTime = 3;</code> - * @return The sceneTime. - */ - @java.lang.Override - public long getSceneTime() { - return sceneTime_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (sceneId_ != 0) { - output.writeUInt32(1, sceneId_); - } - if (isPaused_ != false) { - output.writeBool(2, isPaused_); - } - if (sceneTime_ != 0L) { - output.writeUInt64(3, sceneTime_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sceneId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, sceneId_); - } - if (isPaused_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isPaused_); - } - if (sceneTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, sceneTime_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify other = (emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify) obj; - - if (getSceneId() - != other.getSceneId()) return false; - if (getIsPaused() - != other.getIsPaused()) return false; - if (getSceneTime() - != other.getSceneTime()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SCENEID_FIELD_NUMBER; - hash = (53 * hash) + getSceneId(); - hash = (37 * hash) + ISPAUSED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsPaused()); - hash = (37 * hash) + SCENETIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSceneTime()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SceneTimeNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SceneTimeNotify) - emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.internal_static_SceneTimeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.internal_static_SceneTimeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify.class, emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sceneId_ = 0; - - isPaused_ = false; - - sceneTime_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.internal_static_SceneTimeNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify build() { - emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify buildPartial() { - emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify result = new emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify(this); - result.sceneId_ = sceneId_; - result.isPaused_ = isPaused_; - result.sceneTime_ = sceneTime_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify) { - return mergeFrom((emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify other) { - if (other == emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify.getDefaultInstance()) return this; - if (other.getSceneId() != 0) { - setSceneId(other.getSceneId()); - } - if (other.getIsPaused() != false) { - setIsPaused(other.getIsPaused()); - } - if (other.getSceneTime() != 0L) { - setSceneTime(other.getSceneTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int sceneId_ ; - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - /** - * <code>uint32 sceneId = 1;</code> - * @param value The sceneId to set. - * @return This builder for chaining. - */ - public Builder setSceneId(int value) { - - sceneId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 sceneId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearSceneId() { - - sceneId_ = 0; - onChanged(); - return this; - } - - private boolean isPaused_ ; - /** - * <code>bool isPaused = 2;</code> - * @return The isPaused. - */ - @java.lang.Override - public boolean getIsPaused() { - return isPaused_; - } - /** - * <code>bool isPaused = 2;</code> - * @param value The isPaused to set. - * @return This builder for chaining. - */ - public Builder setIsPaused(boolean value) { - - isPaused_ = value; - onChanged(); - return this; - } - /** - * <code>bool isPaused = 2;</code> - * @return This builder for chaining. - */ - public Builder clearIsPaused() { - - isPaused_ = false; - onChanged(); - return this; - } - - private long sceneTime_ ; - /** - * <code>uint64 sceneTime = 3;</code> - * @return The sceneTime. - */ - @java.lang.Override - public long getSceneTime() { - return sceneTime_; - } - /** - * <code>uint64 sceneTime = 3;</code> - * @param value The sceneTime to set. - * @return This builder for chaining. - */ - public Builder setSceneTime(long value) { - - sceneTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 sceneTime = 3;</code> - * @return This builder for chaining. - */ - public Builder clearSceneTime() { - - sceneTime_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SceneTimeNotify) - } - - // @@protoc_insertion_point(class_scope:SceneTimeNotify) - private static final emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify(); - } - - public static emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SceneTimeNotify> - PARSER = new com.google.protobuf.AbstractParser<SceneTimeNotify>() { - @java.lang.Override - public SceneTimeNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SceneTimeNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SceneTimeNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SceneTimeNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneTimeNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneTimeNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025SceneTimeNotify.proto\"G\n\017SceneTimeNoti" + - "fy\022\017\n\007sceneId\030\001 \001(\r\022\020\n\010isPaused\030\002 \001(\010\022\021\n" + - "\tsceneTime\030\003 \001(\004B\033\n\031emu.grasscutter.net." + - "protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SceneTimeNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SceneTimeNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneTimeNotify_descriptor, - new java.lang.String[] { "SceneId", "IsPaused", "SceneTime", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SceneTransToPointReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SceneTransToPointReqOuterClass.java deleted file mode 100644 index e807e3b55..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SceneTransToPointReqOuterClass.java +++ /dev/null @@ -1,750 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SceneTransToPointReq.proto - -package emu.grasscutter.net.proto; - -public final class SceneTransToPointReqOuterClass { - private SceneTransToPointReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SceneTransToPointReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:SceneTransToPointReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - int getSceneId(); - - /** - * <code>uint32 pointId = 2;</code> - * @return The pointId. - */ - int getPointId(); - } - /** - * Protobuf type {@code SceneTransToPointReq} - */ - public static final class SceneTransToPointReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SceneTransToPointReq) - SceneTransToPointReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use SceneTransToPointReq.newBuilder() to construct. - private SceneTransToPointReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SceneTransToPointReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SceneTransToPointReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SceneTransToPointReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - sceneId_ = input.readUInt32(); - break; - } - case 16: { - - pointId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.internal_static_SceneTransToPointReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.internal_static_SceneTransToPointReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq.class, emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq.Builder.class); - } - - /** - * Protobuf enum {@code SceneTransToPointReq.CmdId} - */ - public enum CmdId - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>NONE = 0;</code> - */ - NONE(0, 0), - /** - * <code>ENET_IS_RELIABLE = 1;</code> - */ - ENET_IS_RELIABLE(2, 1), - /** - * <code>CMD_ID = 219;</code> - */ - CMD_ID(4, 219), - UNRECOGNIZED(-1, -1), - ; - - /** - * <code>ENET_CHANNEL_ID = 0;</code> - */ - public static final CmdId ENET_CHANNEL_ID = NONE; - /** - * <code>IS_ALLOW_CLIENT = 1;</code> - */ - public static final CmdId IS_ALLOW_CLIENT = ENET_IS_RELIABLE; - /** - * <code>NONE = 0;</code> - */ - public static final int NONE_VALUE = 0; - /** - * <code>ENET_CHANNEL_ID = 0;</code> - */ - public static final int ENET_CHANNEL_ID_VALUE = 0; - /** - * <code>ENET_IS_RELIABLE = 1;</code> - */ - public static final int ENET_IS_RELIABLE_VALUE = 1; - /** - * <code>IS_ALLOW_CLIENT = 1;</code> - */ - public static final int IS_ALLOW_CLIENT_VALUE = 1; - /** - * <code>CMD_ID = 219;</code> - */ - public static final int CMD_ID_VALUE = 219; - - - public final int getNumber() { - if (index == -1) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static CmdId valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static CmdId forNumber(int value) { - switch (value) { - case 0: return NONE; - case 1: return ENET_IS_RELIABLE; - case 219: return CMD_ID; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<CmdId> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - CmdId> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<CmdId>() { - public CmdId findValueByNumber(int number) { - return CmdId.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (index == -1) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq.getDescriptor().getEnumTypes().get(0); - } - - private static final CmdId[] VALUES = getStaticValuesArray(); - private static CmdId[] getStaticValuesArray() { - return new CmdId[] { - NONE, ENET_CHANNEL_ID, ENET_IS_RELIABLE, IS_ALLOW_CLIENT, CMD_ID, - }; - } - public static CmdId valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private CmdId(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:SceneTransToPointReq.CmdId) - } - - public static final int SCENEID_FIELD_NUMBER = 1; - private int sceneId_; - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - - public static final int POINTID_FIELD_NUMBER = 2; - private int pointId_; - /** - * <code>uint32 pointId = 2;</code> - * @return The pointId. - */ - @java.lang.Override - public int getPointId() { - return pointId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (sceneId_ != 0) { - output.writeUInt32(1, sceneId_); - } - if (pointId_ != 0) { - output.writeUInt32(2, pointId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sceneId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, sceneId_); - } - if (pointId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, pointId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq other = (emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq) obj; - - if (getSceneId() - != other.getSceneId()) return false; - if (getPointId() - != other.getPointId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SCENEID_FIELD_NUMBER; - hash = (53 * hash) + getSceneId(); - hash = (37 * hash) + POINTID_FIELD_NUMBER; - hash = (53 * hash) + getPointId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SceneTransToPointReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SceneTransToPointReq) - emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.internal_static_SceneTransToPointReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.internal_static_SceneTransToPointReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq.class, emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sceneId_ = 0; - - pointId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.internal_static_SceneTransToPointReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq build() { - emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq buildPartial() { - emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq result = new emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq(this); - result.sceneId_ = sceneId_; - result.pointId_ = pointId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq) { - return mergeFrom((emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq other) { - if (other == emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq.getDefaultInstance()) return this; - if (other.getSceneId() != 0) { - setSceneId(other.getSceneId()); - } - if (other.getPointId() != 0) { - setPointId(other.getPointId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int sceneId_ ; - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - /** - * <code>uint32 sceneId = 1;</code> - * @param value The sceneId to set. - * @return This builder for chaining. - */ - public Builder setSceneId(int value) { - - sceneId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 sceneId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearSceneId() { - - sceneId_ = 0; - onChanged(); - return this; - } - - private int pointId_ ; - /** - * <code>uint32 pointId = 2;</code> - * @return The pointId. - */ - @java.lang.Override - public int getPointId() { - return pointId_; - } - /** - * <code>uint32 pointId = 2;</code> - * @param value The pointId to set. - * @return This builder for chaining. - */ - public Builder setPointId(int value) { - - pointId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 pointId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearPointId() { - - pointId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SceneTransToPointReq) - } - - // @@protoc_insertion_point(class_scope:SceneTransToPointReq) - private static final emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq(); - } - - public static emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SceneTransToPointReq> - PARSER = new com.google.protobuf.AbstractParser<SceneTransToPointReq>() { - @java.lang.Override - public SceneTransToPointReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SceneTransToPointReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SceneTransToPointReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SceneTransToPointReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneTransToPointReqOuterClass.SceneTransToPointReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneTransToPointReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneTransToPointReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032SceneTransToPointReq.proto\"\234\001\n\024SceneTr" + - "ansToPointReq\022\017\n\007sceneId\030\001 \001(\r\022\017\n\007pointI" + - "d\030\002 \001(\r\"b\n\005CmdId\022\010\n\004NONE\020\000\022\023\n\017ENET_CHANN" + - "EL_ID\020\000\022\024\n\020ENET_IS_RELIABLE\020\001\022\023\n\017IS_ALLO" + - "W_CLIENT\020\001\022\013\n\006CMD_ID\020\333\001\032\002\020\001B\033\n\031emu.grass" + - "cutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SceneTransToPointReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SceneTransToPointReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneTransToPointReq_descriptor, - new java.lang.String[] { "SceneId", "PointId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SceneTransToPointRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SceneTransToPointRspOuterClass.java deleted file mode 100644 index 353b88fe5..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SceneTransToPointRspOuterClass.java +++ /dev/null @@ -1,812 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SceneTransToPointRsp.proto - -package emu.grasscutter.net.proto; - -public final class SceneTransToPointRspOuterClass { - private SceneTransToPointRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SceneTransToPointRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:SceneTransToPointRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint32 sceneId = 2;</code> - * @return The sceneId. - */ - int getSceneId(); - - /** - * <code>uint32 pointId = 3;</code> - * @return The pointId. - */ - int getPointId(); - } - /** - * Protobuf type {@code SceneTransToPointRsp} - */ - public static final class SceneTransToPointRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SceneTransToPointRsp) - SceneTransToPointRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use SceneTransToPointRsp.newBuilder() to construct. - private SceneTransToPointRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SceneTransToPointRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SceneTransToPointRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SceneTransToPointRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - sceneId_ = input.readUInt32(); - break; - } - case 24: { - - pointId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.internal_static_SceneTransToPointRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.internal_static_SceneTransToPointRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp.class, emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp.Builder.class); - } - - /** - * Protobuf enum {@code SceneTransToPointRsp.CmdId} - */ - public enum CmdId - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>NONE = 0;</code> - */ - NONE(0, 0), - /** - * <code>ENET_IS_RELIABLE = 1;</code> - */ - ENET_IS_RELIABLE(2, 1), - /** - * <code>CMD_ID = 220;</code> - */ - CMD_ID(3, 220), - UNRECOGNIZED(-1, -1), - ; - - /** - * <code>ENET_CHANNEL_ID = 0;</code> - */ - public static final CmdId ENET_CHANNEL_ID = NONE; - /** - * <code>NONE = 0;</code> - */ - public static final int NONE_VALUE = 0; - /** - * <code>ENET_CHANNEL_ID = 0;</code> - */ - public static final int ENET_CHANNEL_ID_VALUE = 0; - /** - * <code>ENET_IS_RELIABLE = 1;</code> - */ - public static final int ENET_IS_RELIABLE_VALUE = 1; - /** - * <code>CMD_ID = 220;</code> - */ - public static final int CMD_ID_VALUE = 220; - - - public final int getNumber() { - if (index == -1) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static CmdId valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static CmdId forNumber(int value) { - switch (value) { - case 0: return NONE; - case 1: return ENET_IS_RELIABLE; - case 220: return CMD_ID; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<CmdId> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - CmdId> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<CmdId>() { - public CmdId findValueByNumber(int number) { - return CmdId.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (index == -1) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp.getDescriptor().getEnumTypes().get(0); - } - - private static final CmdId[] VALUES = getStaticValuesArray(); - private static CmdId[] getStaticValuesArray() { - return new CmdId[] { - NONE, ENET_CHANNEL_ID, ENET_IS_RELIABLE, CMD_ID, - }; - } - public static CmdId valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private CmdId(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:SceneTransToPointRsp.CmdId) - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int SCENEID_FIELD_NUMBER = 2; - private int sceneId_; - /** - * <code>uint32 sceneId = 2;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - - public static final int POINTID_FIELD_NUMBER = 3; - private int pointId_; - /** - * <code>uint32 pointId = 3;</code> - * @return The pointId. - */ - @java.lang.Override - public int getPointId() { - return pointId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (sceneId_ != 0) { - output.writeUInt32(2, sceneId_); - } - if (pointId_ != 0) { - output.writeUInt32(3, pointId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (sceneId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, sceneId_); - } - if (pointId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, pointId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp other = (emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getSceneId() - != other.getSceneId()) return false; - if (getPointId() - != other.getPointId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + SCENEID_FIELD_NUMBER; - hash = (53 * hash) + getSceneId(); - hash = (37 * hash) + POINTID_FIELD_NUMBER; - hash = (53 * hash) + getPointId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SceneTransToPointRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SceneTransToPointRsp) - emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.internal_static_SceneTransToPointRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.internal_static_SceneTransToPointRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp.class, emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - sceneId_ = 0; - - pointId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.internal_static_SceneTransToPointRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp build() { - emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp buildPartial() { - emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp result = new emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp(this); - result.retcode_ = retcode_; - result.sceneId_ = sceneId_; - result.pointId_ = pointId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp) { - return mergeFrom((emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp other) { - if (other == emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getSceneId() != 0) { - setSceneId(other.getSceneId()); - } - if (other.getPointId() != 0) { - setPointId(other.getPointId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int sceneId_ ; - /** - * <code>uint32 sceneId = 2;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - /** - * <code>uint32 sceneId = 2;</code> - * @param value The sceneId to set. - * @return This builder for chaining. - */ - public Builder setSceneId(int value) { - - sceneId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 sceneId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearSceneId() { - - sceneId_ = 0; - onChanged(); - return this; - } - - private int pointId_ ; - /** - * <code>uint32 pointId = 3;</code> - * @return The pointId. - */ - @java.lang.Override - public int getPointId() { - return pointId_; - } - /** - * <code>uint32 pointId = 3;</code> - * @param value The pointId to set. - * @return This builder for chaining. - */ - public Builder setPointId(int value) { - - pointId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 pointId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearPointId() { - - pointId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SceneTransToPointRsp) - } - - // @@protoc_insertion_point(class_scope:SceneTransToPointRsp) - private static final emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp(); - } - - public static emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SceneTransToPointRsp> - PARSER = new com.google.protobuf.AbstractParser<SceneTransToPointRsp>() { - @java.lang.Override - public SceneTransToPointRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SceneTransToPointRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SceneTransToPointRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SceneTransToPointRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneTransToPointRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneTransToPointRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032SceneTransToPointRsp.proto\"\230\001\n\024SceneTr" + - "ansToPointRsp\022\017\n\007retcode\030\001 \001(\005\022\017\n\007sceneI" + - "d\030\002 \001(\r\022\017\n\007pointId\030\003 \001(\r\"M\n\005CmdId\022\010\n\004NON" + - "E\020\000\022\023\n\017ENET_CHANNEL_ID\020\000\022\024\n\020ENET_IS_RELI" + - "ABLE\020\001\022\013\n\006CMD_ID\020\334\001\032\002\020\001B\033\n\031emu.grasscutt" + - "er.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SceneTransToPointRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SceneTransToPointRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneTransToPointRsp_descriptor, - new java.lang.String[] { "Retcode", "SceneId", "PointId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SceneUnlockInfoNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SceneUnlockInfoNotifyOuterClass.java deleted file mode 100644 index f1e27b991..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SceneUnlockInfoNotifyOuterClass.java +++ /dev/null @@ -1,844 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SceneUnlockInfoNotify.proto - -package emu.grasscutter.net.proto; - -public final class SceneUnlockInfoNotifyOuterClass { - private SceneUnlockInfoNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SceneUnlockInfoNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:SceneUnlockInfoNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - java.util.List<emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo> - getUnlockInfosList(); - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo getUnlockInfos(int index); - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - int getUnlockInfosCount(); - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfoOrBuilder> - getUnlockInfosOrBuilderList(); - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfoOrBuilder getUnlockInfosOrBuilder( - int index); - } - /** - * Protobuf type {@code SceneUnlockInfoNotify} - */ - public static final class SceneUnlockInfoNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SceneUnlockInfoNotify) - SceneUnlockInfoNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use SceneUnlockInfoNotify.newBuilder() to construct. - private SceneUnlockInfoNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SceneUnlockInfoNotify() { - unlockInfos_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SceneUnlockInfoNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SceneUnlockInfoNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - unlockInfos_ = new java.util.ArrayList<emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo>(); - mutable_bitField0_ |= 0x00000001; - } - unlockInfos_.add( - input.readMessage(emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - unlockInfos_ = java.util.Collections.unmodifiableList(unlockInfos_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.internal_static_SceneUnlockInfoNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.internal_static_SceneUnlockInfoNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify.class, emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify.Builder.class); - } - - public static final int UNLOCKINFOS_FIELD_NUMBER = 1; - private java.util.List<emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo> unlockInfos_; - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo> getUnlockInfosList() { - return unlockInfos_; - } - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfoOrBuilder> - getUnlockInfosOrBuilderList() { - return unlockInfos_; - } - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - @java.lang.Override - public int getUnlockInfosCount() { - return unlockInfos_.size(); - } - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo getUnlockInfos(int index) { - return unlockInfos_.get(index); - } - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfoOrBuilder getUnlockInfosOrBuilder( - int index) { - return unlockInfos_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < unlockInfos_.size(); i++) { - output.writeMessage(1, unlockInfos_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < unlockInfos_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, unlockInfos_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify other = (emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify) obj; - - if (!getUnlockInfosList() - .equals(other.getUnlockInfosList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getUnlockInfosCount() > 0) { - hash = (37 * hash) + UNLOCKINFOS_FIELD_NUMBER; - hash = (53 * hash) + getUnlockInfosList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SceneUnlockInfoNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SceneUnlockInfoNotify) - emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.internal_static_SceneUnlockInfoNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.internal_static_SceneUnlockInfoNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify.class, emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getUnlockInfosFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (unlockInfosBuilder_ == null) { - unlockInfos_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - unlockInfosBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.internal_static_SceneUnlockInfoNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify build() { - emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify buildPartial() { - emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify result = new emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify(this); - int from_bitField0_ = bitField0_; - if (unlockInfosBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - unlockInfos_ = java.util.Collections.unmodifiableList(unlockInfos_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.unlockInfos_ = unlockInfos_; - } else { - result.unlockInfos_ = unlockInfosBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify) { - return mergeFrom((emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify other) { - if (other == emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify.getDefaultInstance()) return this; - if (unlockInfosBuilder_ == null) { - if (!other.unlockInfos_.isEmpty()) { - if (unlockInfos_.isEmpty()) { - unlockInfos_ = other.unlockInfos_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureUnlockInfosIsMutable(); - unlockInfos_.addAll(other.unlockInfos_); - } - onChanged(); - } - } else { - if (!other.unlockInfos_.isEmpty()) { - if (unlockInfosBuilder_.isEmpty()) { - unlockInfosBuilder_.dispose(); - unlockInfosBuilder_ = null; - unlockInfos_ = other.unlockInfos_; - bitField0_ = (bitField0_ & ~0x00000001); - unlockInfosBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getUnlockInfosFieldBuilder() : null; - } else { - unlockInfosBuilder_.addAllMessages(other.unlockInfos_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List<emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo> unlockInfos_ = - java.util.Collections.emptyList(); - private void ensureUnlockInfosIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - unlockInfos_ = new java.util.ArrayList<emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo>(unlockInfos_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo, emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo.Builder, emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfoOrBuilder> unlockInfosBuilder_; - - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo> getUnlockInfosList() { - if (unlockInfosBuilder_ == null) { - return java.util.Collections.unmodifiableList(unlockInfos_); - } else { - return unlockInfosBuilder_.getMessageList(); - } - } - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - public int getUnlockInfosCount() { - if (unlockInfosBuilder_ == null) { - return unlockInfos_.size(); - } else { - return unlockInfosBuilder_.getCount(); - } - } - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - public emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo getUnlockInfos(int index) { - if (unlockInfosBuilder_ == null) { - return unlockInfos_.get(index); - } else { - return unlockInfosBuilder_.getMessage(index); - } - } - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - public Builder setUnlockInfos( - int index, emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo value) { - if (unlockInfosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnlockInfosIsMutable(); - unlockInfos_.set(index, value); - onChanged(); - } else { - unlockInfosBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - public Builder setUnlockInfos( - int index, emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo.Builder builderForValue) { - if (unlockInfosBuilder_ == null) { - ensureUnlockInfosIsMutable(); - unlockInfos_.set(index, builderForValue.build()); - onChanged(); - } else { - unlockInfosBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - public Builder addUnlockInfos(emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo value) { - if (unlockInfosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnlockInfosIsMutable(); - unlockInfos_.add(value); - onChanged(); - } else { - unlockInfosBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - public Builder addUnlockInfos( - int index, emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo value) { - if (unlockInfosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnlockInfosIsMutable(); - unlockInfos_.add(index, value); - onChanged(); - } else { - unlockInfosBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - public Builder addUnlockInfos( - emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo.Builder builderForValue) { - if (unlockInfosBuilder_ == null) { - ensureUnlockInfosIsMutable(); - unlockInfos_.add(builderForValue.build()); - onChanged(); - } else { - unlockInfosBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - public Builder addUnlockInfos( - int index, emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo.Builder builderForValue) { - if (unlockInfosBuilder_ == null) { - ensureUnlockInfosIsMutable(); - unlockInfos_.add(index, builderForValue.build()); - onChanged(); - } else { - unlockInfosBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - public Builder addAllUnlockInfos( - java.lang.Iterable<? extends emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo> values) { - if (unlockInfosBuilder_ == null) { - ensureUnlockInfosIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unlockInfos_); - onChanged(); - } else { - unlockInfosBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - public Builder clearUnlockInfos() { - if (unlockInfosBuilder_ == null) { - unlockInfos_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - unlockInfosBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - public Builder removeUnlockInfos(int index) { - if (unlockInfosBuilder_ == null) { - ensureUnlockInfosIsMutable(); - unlockInfos_.remove(index); - onChanged(); - } else { - unlockInfosBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - public emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo.Builder getUnlockInfosBuilder( - int index) { - return getUnlockInfosFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - public emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfoOrBuilder getUnlockInfosOrBuilder( - int index) { - if (unlockInfosBuilder_ == null) { - return unlockInfos_.get(index); } else { - return unlockInfosBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfoOrBuilder> - getUnlockInfosOrBuilderList() { - if (unlockInfosBuilder_ != null) { - return unlockInfosBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(unlockInfos_); - } - } - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - public emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo.Builder addUnlockInfosBuilder() { - return getUnlockInfosFieldBuilder().addBuilder( - emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo.getDefaultInstance()); - } - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - public emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo.Builder addUnlockInfosBuilder( - int index) { - return getUnlockInfosFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo.getDefaultInstance()); - } - /** - * <code>repeated .SceneUnlockInfo unlockInfos = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo.Builder> - getUnlockInfosBuilderList() { - return getUnlockInfosFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo, emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo.Builder, emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfoOrBuilder> - getUnlockInfosFieldBuilder() { - if (unlockInfosBuilder_ == null) { - unlockInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo, emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo.Builder, emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfoOrBuilder>( - unlockInfos_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - unlockInfos_ = null; - } - return unlockInfosBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SceneUnlockInfoNotify) - } - - // @@protoc_insertion_point(class_scope:SceneUnlockInfoNotify) - private static final emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify(); - } - - public static emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SceneUnlockInfoNotify> - PARSER = new com.google.protobuf.AbstractParser<SceneUnlockInfoNotify>() { - @java.lang.Override - public SceneUnlockInfoNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SceneUnlockInfoNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SceneUnlockInfoNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SceneUnlockInfoNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneUnlockInfoNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneUnlockInfoNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033SceneUnlockInfoNotify.proto\032\025SceneUnlo" + - "ckInfo.proto\">\n\025SceneUnlockInfoNotify\022%\n" + - "\013unlockInfos\030\001 \003(\0132\020.SceneUnlockInfoB\033\n\031" + - "emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.getDescriptor(), - }); - internal_static_SceneUnlockInfoNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SceneUnlockInfoNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneUnlockInfoNotify_descriptor, - new java.lang.String[] { "UnlockInfos", }); - emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SceneUnlockInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SceneUnlockInfoOuterClass.java deleted file mode 100644 index df4de3ee8..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SceneUnlockInfoOuterClass.java +++ /dev/null @@ -1,805 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SceneUnlockInfo.proto - -package emu.grasscutter.net.proto; - -public final class SceneUnlockInfoOuterClass { - private SceneUnlockInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SceneUnlockInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:SceneUnlockInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - int getSceneId(); - - /** - * <code>bool isLocked = 2;</code> - * @return The isLocked. - */ - boolean getIsLocked(); - - /** - * <code>repeated uint32 sceneTagIdList = 3;</code> - * @return A list containing the sceneTagIdList. - */ - java.util.List<java.lang.Integer> getSceneTagIdListList(); - /** - * <code>repeated uint32 sceneTagIdList = 3;</code> - * @return The count of sceneTagIdList. - */ - int getSceneTagIdListCount(); - /** - * <code>repeated uint32 sceneTagIdList = 3;</code> - * @param index The index of the element to return. - * @return The sceneTagIdList at the given index. - */ - int getSceneTagIdList(int index); - } - /** - * Protobuf type {@code SceneUnlockInfo} - */ - public static final class SceneUnlockInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SceneUnlockInfo) - SceneUnlockInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use SceneUnlockInfo.newBuilder() to construct. - private SceneUnlockInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SceneUnlockInfo() { - sceneTagIdList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SceneUnlockInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SceneUnlockInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - sceneId_ = input.readUInt32(); - break; - } - case 16: { - - isLocked_ = input.readBool(); - break; - } - case 24: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - sceneTagIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - sceneTagIdList_.addInt(input.readUInt32()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - sceneTagIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - sceneTagIdList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - sceneTagIdList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.internal_static_SceneUnlockInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.internal_static_SceneUnlockInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo.class, emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo.Builder.class); - } - - public static final int SCENEID_FIELD_NUMBER = 1; - private int sceneId_; - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - - public static final int ISLOCKED_FIELD_NUMBER = 2; - private boolean isLocked_; - /** - * <code>bool isLocked = 2;</code> - * @return The isLocked. - */ - @java.lang.Override - public boolean getIsLocked() { - return isLocked_; - } - - public static final int SCENETAGIDLIST_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.IntList sceneTagIdList_; - /** - * <code>repeated uint32 sceneTagIdList = 3;</code> - * @return A list containing the sceneTagIdList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getSceneTagIdListList() { - return sceneTagIdList_; - } - /** - * <code>repeated uint32 sceneTagIdList = 3;</code> - * @return The count of sceneTagIdList. - */ - public int getSceneTagIdListCount() { - return sceneTagIdList_.size(); - } - /** - * <code>repeated uint32 sceneTagIdList = 3;</code> - * @param index The index of the element to return. - * @return The sceneTagIdList at the given index. - */ - public int getSceneTagIdList(int index) { - return sceneTagIdList_.getInt(index); - } - private int sceneTagIdListMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (sceneId_ != 0) { - output.writeUInt32(1, sceneId_); - } - if (isLocked_ != false) { - output.writeBool(2, isLocked_); - } - if (getSceneTagIdListList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(sceneTagIdListMemoizedSerializedSize); - } - for (int i = 0; i < sceneTagIdList_.size(); i++) { - output.writeUInt32NoTag(sceneTagIdList_.getInt(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sceneId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, sceneId_); - } - if (isLocked_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isLocked_); - } - { - int dataSize = 0; - for (int i = 0; i < sceneTagIdList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(sceneTagIdList_.getInt(i)); - } - size += dataSize; - if (!getSceneTagIdListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - sceneTagIdListMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo other = (emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo) obj; - - if (getSceneId() - != other.getSceneId()) return false; - if (getIsLocked() - != other.getIsLocked()) return false; - if (!getSceneTagIdListList() - .equals(other.getSceneTagIdListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SCENEID_FIELD_NUMBER; - hash = (53 * hash) + getSceneId(); - hash = (37 * hash) + ISLOCKED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsLocked()); - if (getSceneTagIdListCount() > 0) { - hash = (37 * hash) + SCENETAGIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getSceneTagIdListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SceneUnlockInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SceneUnlockInfo) - emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.internal_static_SceneUnlockInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.internal_static_SceneUnlockInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo.class, emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sceneId_ = 0; - - isLocked_ = false; - - sceneTagIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.internal_static_SceneUnlockInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo build() { - emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo buildPartial() { - emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo result = new emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo(this); - int from_bitField0_ = bitField0_; - result.sceneId_ = sceneId_; - result.isLocked_ = isLocked_; - if (((bitField0_ & 0x00000001) != 0)) { - sceneTagIdList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.sceneTagIdList_ = sceneTagIdList_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo) { - return mergeFrom((emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo other) { - if (other == emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo.getDefaultInstance()) return this; - if (other.getSceneId() != 0) { - setSceneId(other.getSceneId()); - } - if (other.getIsLocked() != false) { - setIsLocked(other.getIsLocked()); - } - if (!other.sceneTagIdList_.isEmpty()) { - if (sceneTagIdList_.isEmpty()) { - sceneTagIdList_ = other.sceneTagIdList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSceneTagIdListIsMutable(); - sceneTagIdList_.addAll(other.sceneTagIdList_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int sceneId_ ; - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - /** - * <code>uint32 sceneId = 1;</code> - * @param value The sceneId to set. - * @return This builder for chaining. - */ - public Builder setSceneId(int value) { - - sceneId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 sceneId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearSceneId() { - - sceneId_ = 0; - onChanged(); - return this; - } - - private boolean isLocked_ ; - /** - * <code>bool isLocked = 2;</code> - * @return The isLocked. - */ - @java.lang.Override - public boolean getIsLocked() { - return isLocked_; - } - /** - * <code>bool isLocked = 2;</code> - * @param value The isLocked to set. - * @return This builder for chaining. - */ - public Builder setIsLocked(boolean value) { - - isLocked_ = value; - onChanged(); - return this; - } - /** - * <code>bool isLocked = 2;</code> - * @return This builder for chaining. - */ - public Builder clearIsLocked() { - - isLocked_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList sceneTagIdList_ = emptyIntList(); - private void ensureSceneTagIdListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - sceneTagIdList_ = mutableCopy(sceneTagIdList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 sceneTagIdList = 3;</code> - * @return A list containing the sceneTagIdList. - */ - public java.util.List<java.lang.Integer> - getSceneTagIdListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(sceneTagIdList_) : sceneTagIdList_; - } - /** - * <code>repeated uint32 sceneTagIdList = 3;</code> - * @return The count of sceneTagIdList. - */ - public int getSceneTagIdListCount() { - return sceneTagIdList_.size(); - } - /** - * <code>repeated uint32 sceneTagIdList = 3;</code> - * @param index The index of the element to return. - * @return The sceneTagIdList at the given index. - */ - public int getSceneTagIdList(int index) { - return sceneTagIdList_.getInt(index); - } - /** - * <code>repeated uint32 sceneTagIdList = 3;</code> - * @param index The index to set the value at. - * @param value The sceneTagIdList to set. - * @return This builder for chaining. - */ - public Builder setSceneTagIdList( - int index, int value) { - ensureSceneTagIdListIsMutable(); - sceneTagIdList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 sceneTagIdList = 3;</code> - * @param value The sceneTagIdList to add. - * @return This builder for chaining. - */ - public Builder addSceneTagIdList(int value) { - ensureSceneTagIdListIsMutable(); - sceneTagIdList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 sceneTagIdList = 3;</code> - * @param values The sceneTagIdList to add. - * @return This builder for chaining. - */ - public Builder addAllSceneTagIdList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureSceneTagIdListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, sceneTagIdList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 sceneTagIdList = 3;</code> - * @return This builder for chaining. - */ - public Builder clearSceneTagIdList() { - sceneTagIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SceneUnlockInfo) - } - - // @@protoc_insertion_point(class_scope:SceneUnlockInfo) - private static final emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo(); - } - - public static emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SceneUnlockInfo> - PARSER = new com.google.protobuf.AbstractParser<SceneUnlockInfo>() { - @java.lang.Override - public SceneUnlockInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SceneUnlockInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SceneUnlockInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SceneUnlockInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneUnlockInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneUnlockInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025SceneUnlockInfo.proto\"L\n\017SceneUnlockIn" + - "fo\022\017\n\007sceneId\030\001 \001(\r\022\020\n\010isLocked\030\002 \001(\010\022\026\n" + - "\016sceneTagIdList\030\003 \003(\rB\033\n\031emu.grasscutter" + - ".net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SceneUnlockInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SceneUnlockInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneUnlockInfo_descriptor, - new java.lang.String[] { "SceneId", "IsLocked", "SceneTagIdList", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SceneWeaponInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SceneWeaponInfoOuterClass.java deleted file mode 100644 index 81a55a132..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SceneWeaponInfoOuterClass.java +++ /dev/null @@ -1,1429 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SceneWeaponInfo.proto - -package emu.grasscutter.net.proto; - -public final class SceneWeaponInfoOuterClass { - private SceneWeaponInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SceneWeaponInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:SceneWeaponInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - int getEntityId(); - - /** - * <code>uint32 gadgetId = 2;</code> - * @return The gadgetId. - */ - int getGadgetId(); - - /** - * <code>uint32 itemId = 3;</code> - * @return The itemId. - */ - int getItemId(); - - /** - * <code>uint64 guid = 4;</code> - * @return The guid. - */ - long getGuid(); - - /** - * <code>uint32 level = 5;</code> - * @return The level. - */ - int getLevel(); - - /** - * <code>uint32 promoteLevel = 6;</code> - * @return The promoteLevel. - */ - int getPromoteLevel(); - - /** - * <code>.AbilitySyncStateInfo abilityInfo = 7;</code> - * @return Whether the abilityInfo field is set. - */ - boolean hasAbilityInfo(); - /** - * <code>.AbilitySyncStateInfo abilityInfo = 7;</code> - * @return The abilityInfo. - */ - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getAbilityInfo(); - /** - * <code>.AbilitySyncStateInfo abilityInfo = 7;</code> - */ - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getAbilityInfoOrBuilder(); - - /** - * <code>map<uint32, uint32> affixMap = 8;</code> - */ - int getAffixMapCount(); - /** - * <code>map<uint32, uint32> affixMap = 8;</code> - */ - boolean containsAffixMap( - int key); - /** - * Use {@link #getAffixMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Integer> - getAffixMap(); - /** - * <code>map<uint32, uint32> affixMap = 8;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Integer> - getAffixMapMap(); - /** - * <code>map<uint32, uint32> affixMap = 8;</code> - */ - - int getAffixMapOrDefault( - int key, - int defaultValue); - /** - * <code>map<uint32, uint32> affixMap = 8;</code> - */ - - int getAffixMapOrThrow( - int key); - } - /** - * Protobuf type {@code SceneWeaponInfo} - */ - public static final class SceneWeaponInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SceneWeaponInfo) - SceneWeaponInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use SceneWeaponInfo.newBuilder() to construct. - private SceneWeaponInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SceneWeaponInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SceneWeaponInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SceneWeaponInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - entityId_ = input.readUInt32(); - break; - } - case 16: { - - gadgetId_ = input.readUInt32(); - break; - } - case 24: { - - itemId_ = input.readUInt32(); - break; - } - case 32: { - - guid_ = input.readUInt64(); - break; - } - case 40: { - - level_ = input.readUInt32(); - break; - } - case 48: { - - promoteLevel_ = input.readUInt32(); - break; - } - case 58: { - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder subBuilder = null; - if (abilityInfo_ != null) { - subBuilder = abilityInfo_.toBuilder(); - } - abilityInfo_ = input.readMessage(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abilityInfo_); - abilityInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - affixMap_ = com.google.protobuf.MapField.newMapField( - AffixMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - affixMap__ = input.readMessage( - AffixMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - affixMap_.getMutableMap().put( - affixMap__.getKey(), affixMap__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.internal_static_SceneWeaponInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 8: - return internalGetAffixMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.internal_static_SceneWeaponInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.class, emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.Builder.class); - } - - public static final int ENTITYID_FIELD_NUMBER = 1; - private int entityId_; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - - public static final int GADGETID_FIELD_NUMBER = 2; - private int gadgetId_; - /** - * <code>uint32 gadgetId = 2;</code> - * @return The gadgetId. - */ - @java.lang.Override - public int getGadgetId() { - return gadgetId_; - } - - public static final int ITEMID_FIELD_NUMBER = 3; - private int itemId_; - /** - * <code>uint32 itemId = 3;</code> - * @return The itemId. - */ - @java.lang.Override - public int getItemId() { - return itemId_; - } - - public static final int GUID_FIELD_NUMBER = 4; - private long guid_; - /** - * <code>uint64 guid = 4;</code> - * @return The guid. - */ - @java.lang.Override - public long getGuid() { - return guid_; - } - - public static final int LEVEL_FIELD_NUMBER = 5; - private int level_; - /** - * <code>uint32 level = 5;</code> - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - - public static final int PROMOTELEVEL_FIELD_NUMBER = 6; - private int promoteLevel_; - /** - * <code>uint32 promoteLevel = 6;</code> - * @return The promoteLevel. - */ - @java.lang.Override - public int getPromoteLevel() { - return promoteLevel_; - } - - public static final int ABILITYINFO_FIELD_NUMBER = 7; - private emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo abilityInfo_; - /** - * <code>.AbilitySyncStateInfo abilityInfo = 7;</code> - * @return Whether the abilityInfo field is set. - */ - @java.lang.Override - public boolean hasAbilityInfo() { - return abilityInfo_ != null; - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 7;</code> - * @return The abilityInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getAbilityInfo() { - return abilityInfo_ == null ? emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : abilityInfo_; - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 7;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getAbilityInfoOrBuilder() { - return getAbilityInfo(); - } - - public static final int AFFIXMAP_FIELD_NUMBER = 8; - private static final class AffixMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Integer>newDefaultInstance( - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.internal_static_SceneWeaponInfo_AffixMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> affixMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetAffixMap() { - if (affixMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AffixMapDefaultEntryHolder.defaultEntry); - } - return affixMap_; - } - - public int getAffixMapCount() { - return internalGetAffixMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> affixMap = 8;</code> - */ - - @java.lang.Override - public boolean containsAffixMap( - int key) { - - return internalGetAffixMap().getMap().containsKey(key); - } - /** - * Use {@link #getAffixMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getAffixMap() { - return getAffixMapMap(); - } - /** - * <code>map<uint32, uint32> affixMap = 8;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getAffixMapMap() { - return internalGetAffixMap().getMap(); - } - /** - * <code>map<uint32, uint32> affixMap = 8;</code> - */ - @java.lang.Override - - public int getAffixMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetAffixMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> affixMap = 8;</code> - */ - @java.lang.Override - - public int getAffixMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetAffixMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (entityId_ != 0) { - output.writeUInt32(1, entityId_); - } - if (gadgetId_ != 0) { - output.writeUInt32(2, gadgetId_); - } - if (itemId_ != 0) { - output.writeUInt32(3, itemId_); - } - if (guid_ != 0L) { - output.writeUInt64(4, guid_); - } - if (level_ != 0) { - output.writeUInt32(5, level_); - } - if (promoteLevel_ != 0) { - output.writeUInt32(6, promoteLevel_); - } - if (abilityInfo_ != null) { - output.writeMessage(7, getAbilityInfo()); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetAffixMap(), - AffixMapDefaultEntryHolder.defaultEntry, - 8); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, entityId_); - } - if (gadgetId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, gadgetId_); - } - if (itemId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, itemId_); - } - if (guid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, guid_); - } - if (level_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, level_); - } - if (promoteLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, promoteLevel_); - } - if (abilityInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getAbilityInfo()); - } - for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry - : internalGetAffixMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - affixMap__ = AffixMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, affixMap__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo other = (emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo) obj; - - if (getEntityId() - != other.getEntityId()) return false; - if (getGadgetId() - != other.getGadgetId()) return false; - if (getItemId() - != other.getItemId()) return false; - if (getGuid() - != other.getGuid()) return false; - if (getLevel() - != other.getLevel()) return false; - if (getPromoteLevel() - != other.getPromoteLevel()) return false; - if (hasAbilityInfo() != other.hasAbilityInfo()) return false; - if (hasAbilityInfo()) { - if (!getAbilityInfo() - .equals(other.getAbilityInfo())) return false; - } - if (!internalGetAffixMap().equals( - other.internalGetAffixMap())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId(); - hash = (37 * hash) + GADGETID_FIELD_NUMBER; - hash = (53 * hash) + getGadgetId(); - hash = (37 * hash) + ITEMID_FIELD_NUMBER; - hash = (53 * hash) + getItemId(); - hash = (37 * hash) + GUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGuid()); - hash = (37 * hash) + LEVEL_FIELD_NUMBER; - hash = (53 * hash) + getLevel(); - hash = (37 * hash) + PROMOTELEVEL_FIELD_NUMBER; - hash = (53 * hash) + getPromoteLevel(); - if (hasAbilityInfo()) { - hash = (37 * hash) + ABILITYINFO_FIELD_NUMBER; - hash = (53 * hash) + getAbilityInfo().hashCode(); - } - if (!internalGetAffixMap().getMap().isEmpty()) { - hash = (37 * hash) + AFFIXMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetAffixMap().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SceneWeaponInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SceneWeaponInfo) - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.internal_static_SceneWeaponInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 8: - return internalGetAffixMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 8: - return internalGetMutableAffixMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.internal_static_SceneWeaponInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.class, emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - entityId_ = 0; - - gadgetId_ = 0; - - itemId_ = 0; - - guid_ = 0L; - - level_ = 0; - - promoteLevel_ = 0; - - if (abilityInfoBuilder_ == null) { - abilityInfo_ = null; - } else { - abilityInfo_ = null; - abilityInfoBuilder_ = null; - } - internalGetMutableAffixMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.internal_static_SceneWeaponInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo build() { - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo buildPartial() { - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo result = new emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo(this); - int from_bitField0_ = bitField0_; - result.entityId_ = entityId_; - result.gadgetId_ = gadgetId_; - result.itemId_ = itemId_; - result.guid_ = guid_; - result.level_ = level_; - result.promoteLevel_ = promoteLevel_; - if (abilityInfoBuilder_ == null) { - result.abilityInfo_ = abilityInfo_; - } else { - result.abilityInfo_ = abilityInfoBuilder_.build(); - } - result.affixMap_ = internalGetAffixMap(); - result.affixMap_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo) { - return mergeFrom((emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo other) { - if (other == emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.getDefaultInstance()) return this; - if (other.getEntityId() != 0) { - setEntityId(other.getEntityId()); - } - if (other.getGadgetId() != 0) { - setGadgetId(other.getGadgetId()); - } - if (other.getItemId() != 0) { - setItemId(other.getItemId()); - } - if (other.getGuid() != 0L) { - setGuid(other.getGuid()); - } - if (other.getLevel() != 0) { - setLevel(other.getLevel()); - } - if (other.getPromoteLevel() != 0) { - setPromoteLevel(other.getPromoteLevel()); - } - if (other.hasAbilityInfo()) { - mergeAbilityInfo(other.getAbilityInfo()); - } - internalGetMutableAffixMap().mergeFrom( - other.internalGetAffixMap()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int entityId_ ; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - /** - * <code>uint32 entityId = 1;</code> - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId(int value) { - - entityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 entityId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearEntityId() { - - entityId_ = 0; - onChanged(); - return this; - } - - private int gadgetId_ ; - /** - * <code>uint32 gadgetId = 2;</code> - * @return The gadgetId. - */ - @java.lang.Override - public int getGadgetId() { - return gadgetId_; - } - /** - * <code>uint32 gadgetId = 2;</code> - * @param value The gadgetId to set. - * @return This builder for chaining. - */ - public Builder setGadgetId(int value) { - - gadgetId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gadgetId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearGadgetId() { - - gadgetId_ = 0; - onChanged(); - return this; - } - - private int itemId_ ; - /** - * <code>uint32 itemId = 3;</code> - * @return The itemId. - */ - @java.lang.Override - public int getItemId() { - return itemId_; - } - /** - * <code>uint32 itemId = 3;</code> - * @param value The itemId to set. - * @return This builder for chaining. - */ - public Builder setItemId(int value) { - - itemId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 itemId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearItemId() { - - itemId_ = 0; - onChanged(); - return this; - } - - private long guid_ ; - /** - * <code>uint64 guid = 4;</code> - * @return The guid. - */ - @java.lang.Override - public long getGuid() { - return guid_; - } - /** - * <code>uint64 guid = 4;</code> - * @param value The guid to set. - * @return This builder for chaining. - */ - public Builder setGuid(long value) { - - guid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 guid = 4;</code> - * @return This builder for chaining. - */ - public Builder clearGuid() { - - guid_ = 0L; - onChanged(); - return this; - } - - private int level_ ; - /** - * <code>uint32 level = 5;</code> - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - /** - * <code>uint32 level = 5;</code> - * @param value The level to set. - * @return This builder for chaining. - */ - public Builder setLevel(int value) { - - level_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 level = 5;</code> - * @return This builder for chaining. - */ - public Builder clearLevel() { - - level_ = 0; - onChanged(); - return this; - } - - private int promoteLevel_ ; - /** - * <code>uint32 promoteLevel = 6;</code> - * @return The promoteLevel. - */ - @java.lang.Override - public int getPromoteLevel() { - return promoteLevel_; - } - /** - * <code>uint32 promoteLevel = 6;</code> - * @param value The promoteLevel to set. - * @return This builder for chaining. - */ - public Builder setPromoteLevel(int value) { - - promoteLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 promoteLevel = 6;</code> - * @return This builder for chaining. - */ - public Builder clearPromoteLevel() { - - promoteLevel_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo abilityInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder> abilityInfoBuilder_; - /** - * <code>.AbilitySyncStateInfo abilityInfo = 7;</code> - * @return Whether the abilityInfo field is set. - */ - public boolean hasAbilityInfo() { - return abilityInfoBuilder_ != null || abilityInfo_ != null; - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 7;</code> - * @return The abilityInfo. - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getAbilityInfo() { - if (abilityInfoBuilder_ == null) { - return abilityInfo_ == null ? emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : abilityInfo_; - } else { - return abilityInfoBuilder_.getMessage(); - } - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 7;</code> - */ - public Builder setAbilityInfo(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo value) { - if (abilityInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - abilityInfo_ = value; - onChanged(); - } else { - abilityInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 7;</code> - */ - public Builder setAbilityInfo( - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder builderForValue) { - if (abilityInfoBuilder_ == null) { - abilityInfo_ = builderForValue.build(); - onChanged(); - } else { - abilityInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 7;</code> - */ - public Builder mergeAbilityInfo(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo value) { - if (abilityInfoBuilder_ == null) { - if (abilityInfo_ != null) { - abilityInfo_ = - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.newBuilder(abilityInfo_).mergeFrom(value).buildPartial(); - } else { - abilityInfo_ = value; - } - onChanged(); - } else { - abilityInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 7;</code> - */ - public Builder clearAbilityInfo() { - if (abilityInfoBuilder_ == null) { - abilityInfo_ = null; - onChanged(); - } else { - abilityInfo_ = null; - abilityInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 7;</code> - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder getAbilityInfoBuilder() { - - onChanged(); - return getAbilityInfoFieldBuilder().getBuilder(); - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 7;</code> - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getAbilityInfoOrBuilder() { - if (abilityInfoBuilder_ != null) { - return abilityInfoBuilder_.getMessageOrBuilder(); - } else { - return abilityInfo_ == null ? - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : abilityInfo_; - } - } - /** - * <code>.AbilitySyncStateInfo abilityInfo = 7;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder> - getAbilityInfoFieldBuilder() { - if (abilityInfoBuilder_ == null) { - abilityInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder>( - getAbilityInfo(), - getParentForChildren(), - isClean()); - abilityInfo_ = null; - } - return abilityInfoBuilder_; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> affixMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetAffixMap() { - if (affixMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AffixMapDefaultEntryHolder.defaultEntry); - } - return affixMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetMutableAffixMap() { - onChanged();; - if (affixMap_ == null) { - affixMap_ = com.google.protobuf.MapField.newMapField( - AffixMapDefaultEntryHolder.defaultEntry); - } - if (!affixMap_.isMutable()) { - affixMap_ = affixMap_.copy(); - } - return affixMap_; - } - - public int getAffixMapCount() { - return internalGetAffixMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> affixMap = 8;</code> - */ - - @java.lang.Override - public boolean containsAffixMap( - int key) { - - return internalGetAffixMap().getMap().containsKey(key); - } - /** - * Use {@link #getAffixMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getAffixMap() { - return getAffixMapMap(); - } - /** - * <code>map<uint32, uint32> affixMap = 8;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getAffixMapMap() { - return internalGetAffixMap().getMap(); - } - /** - * <code>map<uint32, uint32> affixMap = 8;</code> - */ - @java.lang.Override - - public int getAffixMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetAffixMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> affixMap = 8;</code> - */ - @java.lang.Override - - public int getAffixMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetAffixMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearAffixMap() { - internalGetMutableAffixMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, uint32> affixMap = 8;</code> - */ - - public Builder removeAffixMap( - int key) { - - internalGetMutableAffixMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> - getMutableAffixMap() { - return internalGetMutableAffixMap().getMutableMap(); - } - /** - * <code>map<uint32, uint32> affixMap = 8;</code> - */ - public Builder putAffixMap( - int key, - int value) { - - - internalGetMutableAffixMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, uint32> affixMap = 8;</code> - */ - - public Builder putAllAffixMap( - java.util.Map<java.lang.Integer, java.lang.Integer> values) { - internalGetMutableAffixMap().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SceneWeaponInfo) - } - - // @@protoc_insertion_point(class_scope:SceneWeaponInfo) - private static final emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo(); - } - - public static emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SceneWeaponInfo> - PARSER = new com.google.protobuf.AbstractParser<SceneWeaponInfo>() { - @java.lang.Override - public SceneWeaponInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SceneWeaponInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SceneWeaponInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SceneWeaponInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneWeaponInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneWeaponInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SceneWeaponInfo_AffixMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SceneWeaponInfo_AffixMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025SceneWeaponInfo.proto\032\032AbilitySyncStat" + - "eInfo.proto\"\207\002\n\017SceneWeaponInfo\022\020\n\010entit" + - "yId\030\001 \001(\r\022\020\n\010gadgetId\030\002 \001(\r\022\016\n\006itemId\030\003 " + - "\001(\r\022\014\n\004guid\030\004 \001(\004\022\r\n\005level\030\005 \001(\r\022\024\n\014prom" + - "oteLevel\030\006 \001(\r\022*\n\013abilityInfo\030\007 \001(\0132\025.Ab" + - "ilitySyncStateInfo\0220\n\010affixMap\030\010 \003(\0132\036.S" + - "ceneWeaponInfo.AffixMapEntry\032/\n\rAffixMap" + - "Entry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\r:\0028\001B\033\n" + - "\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.getDescriptor(), - }); - internal_static_SceneWeaponInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SceneWeaponInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneWeaponInfo_descriptor, - new java.lang.String[] { "EntityId", "GadgetId", "ItemId", "Guid", "Level", "PromoteLevel", "AbilityInfo", "AffixMap", }); - internal_static_SceneWeaponInfo_AffixMapEntry_descriptor = - internal_static_SceneWeaponInfo_descriptor.getNestedTypes().get(0); - internal_static_SceneWeaponInfo_AffixMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SceneWeaponInfo_AffixMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ServantInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ServantInfoOuterClass.java deleted file mode 100644 index 81de2a2ed..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ServantInfoOuterClass.java +++ /dev/null @@ -1,606 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ServantInfo.proto - -package emu.grasscutter.net.proto; - -public final class ServantInfoOuterClass { - private ServantInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ServantInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:ServantInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 masterEntityId = 1;</code> - * @return The masterEntityId. - */ - int getMasterEntityId(); - - /** - * <code>uint32 bornSlotIndex = 2;</code> - * @return The bornSlotIndex. - */ - int getBornSlotIndex(); - } - /** - * Protobuf type {@code ServantInfo} - */ - public static final class ServantInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ServantInfo) - ServantInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use ServantInfo.newBuilder() to construct. - private ServantInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ServantInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ServantInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ServantInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - masterEntityId_ = input.readUInt32(); - break; - } - case 16: { - - bornSlotIndex_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ServantInfoOuterClass.internal_static_ServantInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ServantInfoOuterClass.internal_static_ServantInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo.class, emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo.Builder.class); - } - - public static final int MASTERENTITYID_FIELD_NUMBER = 1; - private int masterEntityId_; - /** - * <code>uint32 masterEntityId = 1;</code> - * @return The masterEntityId. - */ - @java.lang.Override - public int getMasterEntityId() { - return masterEntityId_; - } - - public static final int BORNSLOTINDEX_FIELD_NUMBER = 2; - private int bornSlotIndex_; - /** - * <code>uint32 bornSlotIndex = 2;</code> - * @return The bornSlotIndex. - */ - @java.lang.Override - public int getBornSlotIndex() { - return bornSlotIndex_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (masterEntityId_ != 0) { - output.writeUInt32(1, masterEntityId_); - } - if (bornSlotIndex_ != 0) { - output.writeUInt32(2, bornSlotIndex_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (masterEntityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, masterEntityId_); - } - if (bornSlotIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, bornSlotIndex_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo other = (emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo) obj; - - if (getMasterEntityId() - != other.getMasterEntityId()) return false; - if (getBornSlotIndex() - != other.getBornSlotIndex()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MASTERENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getMasterEntityId(); - hash = (37 * hash) + BORNSLOTINDEX_FIELD_NUMBER; - hash = (53 * hash) + getBornSlotIndex(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ServantInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ServantInfo) - emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ServantInfoOuterClass.internal_static_ServantInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ServantInfoOuterClass.internal_static_ServantInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo.class, emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - masterEntityId_ = 0; - - bornSlotIndex_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ServantInfoOuterClass.internal_static_ServantInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo build() { - emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo buildPartial() { - emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo result = new emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo(this); - result.masterEntityId_ = masterEntityId_; - result.bornSlotIndex_ = bornSlotIndex_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo) { - return mergeFrom((emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo other) { - if (other == emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo.getDefaultInstance()) return this; - if (other.getMasterEntityId() != 0) { - setMasterEntityId(other.getMasterEntityId()); - } - if (other.getBornSlotIndex() != 0) { - setBornSlotIndex(other.getBornSlotIndex()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int masterEntityId_ ; - /** - * <code>uint32 masterEntityId = 1;</code> - * @return The masterEntityId. - */ - @java.lang.Override - public int getMasterEntityId() { - return masterEntityId_; - } - /** - * <code>uint32 masterEntityId = 1;</code> - * @param value The masterEntityId to set. - * @return This builder for chaining. - */ - public Builder setMasterEntityId(int value) { - - masterEntityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 masterEntityId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearMasterEntityId() { - - masterEntityId_ = 0; - onChanged(); - return this; - } - - private int bornSlotIndex_ ; - /** - * <code>uint32 bornSlotIndex = 2;</code> - * @return The bornSlotIndex. - */ - @java.lang.Override - public int getBornSlotIndex() { - return bornSlotIndex_; - } - /** - * <code>uint32 bornSlotIndex = 2;</code> - * @param value The bornSlotIndex to set. - * @return This builder for chaining. - */ - public Builder setBornSlotIndex(int value) { - - bornSlotIndex_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 bornSlotIndex = 2;</code> - * @return This builder for chaining. - */ - public Builder clearBornSlotIndex() { - - bornSlotIndex_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ServantInfo) - } - - // @@protoc_insertion_point(class_scope:ServantInfo) - private static final emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo(); - } - - public static emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ServantInfo> - PARSER = new com.google.protobuf.AbstractParser<ServantInfo>() { - @java.lang.Override - public ServantInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ServantInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ServantInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ServantInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ServantInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ServantInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\021ServantInfo.proto\"<\n\013ServantInfo\022\026\n\016ma" + - "sterEntityId\030\001 \001(\r\022\025\n\rbornSlotIndex\030\002 \001(" + - "\rB\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ServantInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ServantInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ServantInfo_descriptor, - new java.lang.String[] { "MasterEntityId", "BornSlotIndex", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ServerBuffOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ServerBuffOuterClass.java deleted file mode 100644 index 18bcc22b4..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ServerBuffOuterClass.java +++ /dev/null @@ -1,1017 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ServerBuff.proto - -package emu.grasscutter.net.proto; - -public final class ServerBuffOuterClass { - private ServerBuffOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ServerBuffOrBuilder extends - // @@protoc_insertion_point(interface_extends:ServerBuff) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 serverBuffUid = 1;</code> - * @return The serverBuffUid. - */ - int getServerBuffUid(); - - /** - * <code>uint32 serverBuffId = 2;</code> - * @return The serverBuffId. - */ - int getServerBuffId(); - - /** - * <code>uint32 serverBuffType = 3;</code> - * @return The serverBuffType. - */ - int getServerBuffType(); - - /** - * <code>uint32 instancedModifierId = 4;</code> - * @return The instancedModifierId. - */ - int getInstancedModifierId(); - - /** - * <code>repeated uint32 doneOnaddedActionList = 5;</code> - * @return A list containing the doneOnaddedActionList. - */ - java.util.List<java.lang.Integer> getDoneOnaddedActionListList(); - /** - * <code>repeated uint32 doneOnaddedActionList = 5;</code> - * @return The count of doneOnaddedActionList. - */ - int getDoneOnaddedActionListCount(); - /** - * <code>repeated uint32 doneOnaddedActionList = 5;</code> - * @param index The index of the element to return. - * @return The doneOnaddedActionList at the given index. - */ - int getDoneOnaddedActionList(int index); - - /** - * <code>bool isOnaddedActionAllow = 6;</code> - * @return The isOnaddedActionAllow. - */ - boolean getIsOnaddedActionAllow(); - } - /** - * Protobuf type {@code ServerBuff} - */ - public static final class ServerBuff extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ServerBuff) - ServerBuffOrBuilder { - private static final long serialVersionUID = 0L; - // Use ServerBuff.newBuilder() to construct. - private ServerBuff(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ServerBuff() { - doneOnaddedActionList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ServerBuff(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ServerBuff( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - serverBuffUid_ = input.readUInt32(); - break; - } - case 16: { - - serverBuffId_ = input.readUInt32(); - break; - } - case 24: { - - serverBuffType_ = input.readUInt32(); - break; - } - case 32: { - - instancedModifierId_ = input.readUInt32(); - break; - } - case 40: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - doneOnaddedActionList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - doneOnaddedActionList_.addInt(input.readUInt32()); - break; - } - case 42: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - doneOnaddedActionList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - doneOnaddedActionList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 48: { - - isOnaddedActionAllow_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - doneOnaddedActionList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ServerBuffOuterClass.internal_static_ServerBuff_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ServerBuffOuterClass.internal_static_ServerBuff_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.class, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder.class); - } - - public static final int SERVERBUFFUID_FIELD_NUMBER = 1; - private int serverBuffUid_; - /** - * <code>uint32 serverBuffUid = 1;</code> - * @return The serverBuffUid. - */ - @java.lang.Override - public int getServerBuffUid() { - return serverBuffUid_; - } - - public static final int SERVERBUFFID_FIELD_NUMBER = 2; - private int serverBuffId_; - /** - * <code>uint32 serverBuffId = 2;</code> - * @return The serverBuffId. - */ - @java.lang.Override - public int getServerBuffId() { - return serverBuffId_; - } - - public static final int SERVERBUFFTYPE_FIELD_NUMBER = 3; - private int serverBuffType_; - /** - * <code>uint32 serverBuffType = 3;</code> - * @return The serverBuffType. - */ - @java.lang.Override - public int getServerBuffType() { - return serverBuffType_; - } - - public static final int INSTANCEDMODIFIERID_FIELD_NUMBER = 4; - private int instancedModifierId_; - /** - * <code>uint32 instancedModifierId = 4;</code> - * @return The instancedModifierId. - */ - @java.lang.Override - public int getInstancedModifierId() { - return instancedModifierId_; - } - - public static final int DONEONADDEDACTIONLIST_FIELD_NUMBER = 5; - private com.google.protobuf.Internal.IntList doneOnaddedActionList_; - /** - * <code>repeated uint32 doneOnaddedActionList = 5;</code> - * @return A list containing the doneOnaddedActionList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getDoneOnaddedActionListList() { - return doneOnaddedActionList_; - } - /** - * <code>repeated uint32 doneOnaddedActionList = 5;</code> - * @return The count of doneOnaddedActionList. - */ - public int getDoneOnaddedActionListCount() { - return doneOnaddedActionList_.size(); - } - /** - * <code>repeated uint32 doneOnaddedActionList = 5;</code> - * @param index The index of the element to return. - * @return The doneOnaddedActionList at the given index. - */ - public int getDoneOnaddedActionList(int index) { - return doneOnaddedActionList_.getInt(index); - } - private int doneOnaddedActionListMemoizedSerializedSize = -1; - - public static final int ISONADDEDACTIONALLOW_FIELD_NUMBER = 6; - private boolean isOnaddedActionAllow_; - /** - * <code>bool isOnaddedActionAllow = 6;</code> - * @return The isOnaddedActionAllow. - */ - @java.lang.Override - public boolean getIsOnaddedActionAllow() { - return isOnaddedActionAllow_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (serverBuffUid_ != 0) { - output.writeUInt32(1, serverBuffUid_); - } - if (serverBuffId_ != 0) { - output.writeUInt32(2, serverBuffId_); - } - if (serverBuffType_ != 0) { - output.writeUInt32(3, serverBuffType_); - } - if (instancedModifierId_ != 0) { - output.writeUInt32(4, instancedModifierId_); - } - if (getDoneOnaddedActionListList().size() > 0) { - output.writeUInt32NoTag(42); - output.writeUInt32NoTag(doneOnaddedActionListMemoizedSerializedSize); - } - for (int i = 0; i < doneOnaddedActionList_.size(); i++) { - output.writeUInt32NoTag(doneOnaddedActionList_.getInt(i)); - } - if (isOnaddedActionAllow_ != false) { - output.writeBool(6, isOnaddedActionAllow_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (serverBuffUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, serverBuffUid_); - } - if (serverBuffId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, serverBuffId_); - } - if (serverBuffType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, serverBuffType_); - } - if (instancedModifierId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, instancedModifierId_); - } - { - int dataSize = 0; - for (int i = 0; i < doneOnaddedActionList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(doneOnaddedActionList_.getInt(i)); - } - size += dataSize; - if (!getDoneOnaddedActionListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - doneOnaddedActionListMemoizedSerializedSize = dataSize; - } - if (isOnaddedActionAllow_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, isOnaddedActionAllow_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff other = (emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff) obj; - - if (getServerBuffUid() - != other.getServerBuffUid()) return false; - if (getServerBuffId() - != other.getServerBuffId()) return false; - if (getServerBuffType() - != other.getServerBuffType()) return false; - if (getInstancedModifierId() - != other.getInstancedModifierId()) return false; - if (!getDoneOnaddedActionListList() - .equals(other.getDoneOnaddedActionListList())) return false; - if (getIsOnaddedActionAllow() - != other.getIsOnaddedActionAllow()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SERVERBUFFUID_FIELD_NUMBER; - hash = (53 * hash) + getServerBuffUid(); - hash = (37 * hash) + SERVERBUFFID_FIELD_NUMBER; - hash = (53 * hash) + getServerBuffId(); - hash = (37 * hash) + SERVERBUFFTYPE_FIELD_NUMBER; - hash = (53 * hash) + getServerBuffType(); - hash = (37 * hash) + INSTANCEDMODIFIERID_FIELD_NUMBER; - hash = (53 * hash) + getInstancedModifierId(); - if (getDoneOnaddedActionListCount() > 0) { - hash = (37 * hash) + DONEONADDEDACTIONLIST_FIELD_NUMBER; - hash = (53 * hash) + getDoneOnaddedActionListList().hashCode(); - } - hash = (37 * hash) + ISONADDEDACTIONALLOW_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsOnaddedActionAllow()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ServerBuff} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ServerBuff) - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ServerBuffOuterClass.internal_static_ServerBuff_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ServerBuffOuterClass.internal_static_ServerBuff_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.class, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - serverBuffUid_ = 0; - - serverBuffId_ = 0; - - serverBuffType_ = 0; - - instancedModifierId_ = 0; - - doneOnaddedActionList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - isOnaddedActionAllow_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ServerBuffOuterClass.internal_static_ServerBuff_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff build() { - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff buildPartial() { - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff result = new emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff(this); - int from_bitField0_ = bitField0_; - result.serverBuffUid_ = serverBuffUid_; - result.serverBuffId_ = serverBuffId_; - result.serverBuffType_ = serverBuffType_; - result.instancedModifierId_ = instancedModifierId_; - if (((bitField0_ & 0x00000001) != 0)) { - doneOnaddedActionList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.doneOnaddedActionList_ = doneOnaddedActionList_; - result.isOnaddedActionAllow_ = isOnaddedActionAllow_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff) { - return mergeFrom((emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff other) { - if (other == emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.getDefaultInstance()) return this; - if (other.getServerBuffUid() != 0) { - setServerBuffUid(other.getServerBuffUid()); - } - if (other.getServerBuffId() != 0) { - setServerBuffId(other.getServerBuffId()); - } - if (other.getServerBuffType() != 0) { - setServerBuffType(other.getServerBuffType()); - } - if (other.getInstancedModifierId() != 0) { - setInstancedModifierId(other.getInstancedModifierId()); - } - if (!other.doneOnaddedActionList_.isEmpty()) { - if (doneOnaddedActionList_.isEmpty()) { - doneOnaddedActionList_ = other.doneOnaddedActionList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDoneOnaddedActionListIsMutable(); - doneOnaddedActionList_.addAll(other.doneOnaddedActionList_); - } - onChanged(); - } - if (other.getIsOnaddedActionAllow() != false) { - setIsOnaddedActionAllow(other.getIsOnaddedActionAllow()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int serverBuffUid_ ; - /** - * <code>uint32 serverBuffUid = 1;</code> - * @return The serverBuffUid. - */ - @java.lang.Override - public int getServerBuffUid() { - return serverBuffUid_; - } - /** - * <code>uint32 serverBuffUid = 1;</code> - * @param value The serverBuffUid to set. - * @return This builder for chaining. - */ - public Builder setServerBuffUid(int value) { - - serverBuffUid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 serverBuffUid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearServerBuffUid() { - - serverBuffUid_ = 0; - onChanged(); - return this; - } - - private int serverBuffId_ ; - /** - * <code>uint32 serverBuffId = 2;</code> - * @return The serverBuffId. - */ - @java.lang.Override - public int getServerBuffId() { - return serverBuffId_; - } - /** - * <code>uint32 serverBuffId = 2;</code> - * @param value The serverBuffId to set. - * @return This builder for chaining. - */ - public Builder setServerBuffId(int value) { - - serverBuffId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 serverBuffId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearServerBuffId() { - - serverBuffId_ = 0; - onChanged(); - return this; - } - - private int serverBuffType_ ; - /** - * <code>uint32 serverBuffType = 3;</code> - * @return The serverBuffType. - */ - @java.lang.Override - public int getServerBuffType() { - return serverBuffType_; - } - /** - * <code>uint32 serverBuffType = 3;</code> - * @param value The serverBuffType to set. - * @return This builder for chaining. - */ - public Builder setServerBuffType(int value) { - - serverBuffType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 serverBuffType = 3;</code> - * @return This builder for chaining. - */ - public Builder clearServerBuffType() { - - serverBuffType_ = 0; - onChanged(); - return this; - } - - private int instancedModifierId_ ; - /** - * <code>uint32 instancedModifierId = 4;</code> - * @return The instancedModifierId. - */ - @java.lang.Override - public int getInstancedModifierId() { - return instancedModifierId_; - } - /** - * <code>uint32 instancedModifierId = 4;</code> - * @param value The instancedModifierId to set. - * @return This builder for chaining. - */ - public Builder setInstancedModifierId(int value) { - - instancedModifierId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 instancedModifierId = 4;</code> - * @return This builder for chaining. - */ - public Builder clearInstancedModifierId() { - - instancedModifierId_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList doneOnaddedActionList_ = emptyIntList(); - private void ensureDoneOnaddedActionListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - doneOnaddedActionList_ = mutableCopy(doneOnaddedActionList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 doneOnaddedActionList = 5;</code> - * @return A list containing the doneOnaddedActionList. - */ - public java.util.List<java.lang.Integer> - getDoneOnaddedActionListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(doneOnaddedActionList_) : doneOnaddedActionList_; - } - /** - * <code>repeated uint32 doneOnaddedActionList = 5;</code> - * @return The count of doneOnaddedActionList. - */ - public int getDoneOnaddedActionListCount() { - return doneOnaddedActionList_.size(); - } - /** - * <code>repeated uint32 doneOnaddedActionList = 5;</code> - * @param index The index of the element to return. - * @return The doneOnaddedActionList at the given index. - */ - public int getDoneOnaddedActionList(int index) { - return doneOnaddedActionList_.getInt(index); - } - /** - * <code>repeated uint32 doneOnaddedActionList = 5;</code> - * @param index The index to set the value at. - * @param value The doneOnaddedActionList to set. - * @return This builder for chaining. - */ - public Builder setDoneOnaddedActionList( - int index, int value) { - ensureDoneOnaddedActionListIsMutable(); - doneOnaddedActionList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 doneOnaddedActionList = 5;</code> - * @param value The doneOnaddedActionList to add. - * @return This builder for chaining. - */ - public Builder addDoneOnaddedActionList(int value) { - ensureDoneOnaddedActionListIsMutable(); - doneOnaddedActionList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 doneOnaddedActionList = 5;</code> - * @param values The doneOnaddedActionList to add. - * @return This builder for chaining. - */ - public Builder addAllDoneOnaddedActionList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureDoneOnaddedActionListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, doneOnaddedActionList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 doneOnaddedActionList = 5;</code> - * @return This builder for chaining. - */ - public Builder clearDoneOnaddedActionList() { - doneOnaddedActionList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private boolean isOnaddedActionAllow_ ; - /** - * <code>bool isOnaddedActionAllow = 6;</code> - * @return The isOnaddedActionAllow. - */ - @java.lang.Override - public boolean getIsOnaddedActionAllow() { - return isOnaddedActionAllow_; - } - /** - * <code>bool isOnaddedActionAllow = 6;</code> - * @param value The isOnaddedActionAllow to set. - * @return This builder for chaining. - */ - public Builder setIsOnaddedActionAllow(boolean value) { - - isOnaddedActionAllow_ = value; - onChanged(); - return this; - } - /** - * <code>bool isOnaddedActionAllow = 6;</code> - * @return This builder for chaining. - */ - public Builder clearIsOnaddedActionAllow() { - - isOnaddedActionAllow_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ServerBuff) - } - - // @@protoc_insertion_point(class_scope:ServerBuff) - private static final emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff(); - } - - public static emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ServerBuff> - PARSER = new com.google.protobuf.AbstractParser<ServerBuff>() { - @java.lang.Override - public ServerBuff parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ServerBuff(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ServerBuff> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ServerBuff> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ServerBuff_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ServerBuff_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020ServerBuff.proto\"\253\001\n\nServerBuff\022\025\n\rser" + - "verBuffUid\030\001 \001(\r\022\024\n\014serverBuffId\030\002 \001(\r\022\026" + - "\n\016serverBuffType\030\003 \001(\r\022\033\n\023instancedModif" + - "ierId\030\004 \001(\r\022\035\n\025doneOnaddedActionList\030\005 \003" + - "(\r\022\034\n\024isOnaddedActionAllow\030\006 \001(\010B\033\n\031emu." + - "grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ServerBuff_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ServerBuff_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ServerBuff_descriptor, - new java.lang.String[] { "ServerBuffUid", "ServerBuffId", "ServerBuffType", "InstancedModifierId", "DoneOnaddedActionList", "IsOnaddedActionAllow", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ServerTimeNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ServerTimeNotifyOuterClass.java deleted file mode 100644 index 7aa6de8d0..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ServerTimeNotifyOuterClass.java +++ /dev/null @@ -1,537 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ServerTimeNotify.proto - -package emu.grasscutter.net.proto; - -public final class ServerTimeNotifyOuterClass { - private ServerTimeNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ServerTimeNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:ServerTimeNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 serverTime = 1;</code> - * @return The serverTime. - */ - long getServerTime(); - } - /** - * Protobuf type {@code ServerTimeNotify} - */ - public static final class ServerTimeNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ServerTimeNotify) - ServerTimeNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use ServerTimeNotify.newBuilder() to construct. - private ServerTimeNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ServerTimeNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ServerTimeNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ServerTimeNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - serverTime_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.internal_static_ServerTimeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.internal_static_ServerTimeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify.class, emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify.Builder.class); - } - - public static final int SERVERTIME_FIELD_NUMBER = 1; - private long serverTime_; - /** - * <code>uint64 serverTime = 1;</code> - * @return The serverTime. - */ - @java.lang.Override - public long getServerTime() { - return serverTime_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (serverTime_ != 0L) { - output.writeUInt64(1, serverTime_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (serverTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, serverTime_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify other = (emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify) obj; - - if (getServerTime() - != other.getServerTime()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SERVERTIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getServerTime()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ServerTimeNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ServerTimeNotify) - emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.internal_static_ServerTimeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.internal_static_ServerTimeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify.class, emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - serverTime_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.internal_static_ServerTimeNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify build() { - emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify buildPartial() { - emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify result = new emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify(this); - result.serverTime_ = serverTime_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify) { - return mergeFrom((emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify other) { - if (other == emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify.getDefaultInstance()) return this; - if (other.getServerTime() != 0L) { - setServerTime(other.getServerTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long serverTime_ ; - /** - * <code>uint64 serverTime = 1;</code> - * @return The serverTime. - */ - @java.lang.Override - public long getServerTime() { - return serverTime_; - } - /** - * <code>uint64 serverTime = 1;</code> - * @param value The serverTime to set. - * @return This builder for chaining. - */ - public Builder setServerTime(long value) { - - serverTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 serverTime = 1;</code> - * @return This builder for chaining. - */ - public Builder clearServerTime() { - - serverTime_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ServerTimeNotify) - } - - // @@protoc_insertion_point(class_scope:ServerTimeNotify) - private static final emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify(); - } - - public static emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ServerTimeNotify> - PARSER = new com.google.protobuf.AbstractParser<ServerTimeNotify>() { - @java.lang.Override - public ServerTimeNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ServerTimeNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ServerTimeNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ServerTimeNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ServerTimeNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ServerTimeNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026ServerTimeNotify.proto\"&\n\020ServerTimeNo" + - "tify\022\022\n\nserverTime\030\001 \001(\004B\033\n\031emu.grasscut" + - "ter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ServerTimeNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ServerTimeNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ServerTimeNotify_descriptor, - new java.lang.String[] { "ServerTime", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SetEntityClientDataNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SetEntityClientDataNotifyOuterClass.java deleted file mode 100644 index 5541ca15b..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SetEntityClientDataNotifyOuterClass.java +++ /dev/null @@ -1,743 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SetEntityClientDataNotify.proto - -package emu.grasscutter.net.proto; - -public final class SetEntityClientDataNotifyOuterClass { - private SetEntityClientDataNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SetEntityClientDataNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:SetEntityClientDataNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - int getEntityId(); - - /** - * <code>.EntityClientData entityClientData = 2;</code> - * @return Whether the entityClientData field is set. - */ - boolean hasEntityClientData(); - /** - * <code>.EntityClientData entityClientData = 2;</code> - * @return The entityClientData. - */ - emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData getEntityClientData(); - /** - * <code>.EntityClientData entityClientData = 2;</code> - */ - emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientDataOrBuilder getEntityClientDataOrBuilder(); - } - /** - * Protobuf type {@code SetEntityClientDataNotify} - */ - public static final class SetEntityClientDataNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SetEntityClientDataNotify) - SetEntityClientDataNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetEntityClientDataNotify.newBuilder() to construct. - private SetEntityClientDataNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SetEntityClientDataNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetEntityClientDataNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SetEntityClientDataNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - entityId_ = input.readUInt32(); - break; - } - case 18: { - emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.Builder subBuilder = null; - if (entityClientData_ != null) { - subBuilder = entityClientData_.toBuilder(); - } - entityClientData_ = input.readMessage(emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entityClientData_); - entityClientData_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.internal_static_SetEntityClientDataNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.internal_static_SetEntityClientDataNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify.class, emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify.Builder.class); - } - - public static final int ENTITYID_FIELD_NUMBER = 1; - private int entityId_; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - - public static final int ENTITYCLIENTDATA_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData entityClientData_; - /** - * <code>.EntityClientData entityClientData = 2;</code> - * @return Whether the entityClientData field is set. - */ - @java.lang.Override - public boolean hasEntityClientData() { - return entityClientData_ != null; - } - /** - * <code>.EntityClientData entityClientData = 2;</code> - * @return The entityClientData. - */ - @java.lang.Override - public emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData getEntityClientData() { - return entityClientData_ == null ? emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.getDefaultInstance() : entityClientData_; - } - /** - * <code>.EntityClientData entityClientData = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientDataOrBuilder getEntityClientDataOrBuilder() { - return getEntityClientData(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (entityId_ != 0) { - output.writeUInt32(1, entityId_); - } - if (entityClientData_ != null) { - output.writeMessage(2, getEntityClientData()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, entityId_); - } - if (entityClientData_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEntityClientData()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify other = (emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify) obj; - - if (getEntityId() - != other.getEntityId()) return false; - if (hasEntityClientData() != other.hasEntityClientData()) return false; - if (hasEntityClientData()) { - if (!getEntityClientData() - .equals(other.getEntityClientData())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId(); - if (hasEntityClientData()) { - hash = (37 * hash) + ENTITYCLIENTDATA_FIELD_NUMBER; - hash = (53 * hash) + getEntityClientData().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SetEntityClientDataNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SetEntityClientDataNotify) - emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.internal_static_SetEntityClientDataNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.internal_static_SetEntityClientDataNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify.class, emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - entityId_ = 0; - - if (entityClientDataBuilder_ == null) { - entityClientData_ = null; - } else { - entityClientData_ = null; - entityClientDataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.internal_static_SetEntityClientDataNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify build() { - emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify buildPartial() { - emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify result = new emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify(this); - result.entityId_ = entityId_; - if (entityClientDataBuilder_ == null) { - result.entityClientData_ = entityClientData_; - } else { - result.entityClientData_ = entityClientDataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify) { - return mergeFrom((emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify other) { - if (other == emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify.getDefaultInstance()) return this; - if (other.getEntityId() != 0) { - setEntityId(other.getEntityId()); - } - if (other.hasEntityClientData()) { - mergeEntityClientData(other.getEntityClientData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int entityId_ ; - /** - * <code>uint32 entityId = 1;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - /** - * <code>uint32 entityId = 1;</code> - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId(int value) { - - entityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 entityId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearEntityId() { - - entityId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData entityClientData_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData, emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.Builder, emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientDataOrBuilder> entityClientDataBuilder_; - /** - * <code>.EntityClientData entityClientData = 2;</code> - * @return Whether the entityClientData field is set. - */ - public boolean hasEntityClientData() { - return entityClientDataBuilder_ != null || entityClientData_ != null; - } - /** - * <code>.EntityClientData entityClientData = 2;</code> - * @return The entityClientData. - */ - public emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData getEntityClientData() { - if (entityClientDataBuilder_ == null) { - return entityClientData_ == null ? emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.getDefaultInstance() : entityClientData_; - } else { - return entityClientDataBuilder_.getMessage(); - } - } - /** - * <code>.EntityClientData entityClientData = 2;</code> - */ - public Builder setEntityClientData(emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData value) { - if (entityClientDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entityClientData_ = value; - onChanged(); - } else { - entityClientDataBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.EntityClientData entityClientData = 2;</code> - */ - public Builder setEntityClientData( - emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.Builder builderForValue) { - if (entityClientDataBuilder_ == null) { - entityClientData_ = builderForValue.build(); - onChanged(); - } else { - entityClientDataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.EntityClientData entityClientData = 2;</code> - */ - public Builder mergeEntityClientData(emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData value) { - if (entityClientDataBuilder_ == null) { - if (entityClientData_ != null) { - entityClientData_ = - emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.newBuilder(entityClientData_).mergeFrom(value).buildPartial(); - } else { - entityClientData_ = value; - } - onChanged(); - } else { - entityClientDataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.EntityClientData entityClientData = 2;</code> - */ - public Builder clearEntityClientData() { - if (entityClientDataBuilder_ == null) { - entityClientData_ = null; - onChanged(); - } else { - entityClientData_ = null; - entityClientDataBuilder_ = null; - } - - return this; - } - /** - * <code>.EntityClientData entityClientData = 2;</code> - */ - public emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.Builder getEntityClientDataBuilder() { - - onChanged(); - return getEntityClientDataFieldBuilder().getBuilder(); - } - /** - * <code>.EntityClientData entityClientData = 2;</code> - */ - public emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientDataOrBuilder getEntityClientDataOrBuilder() { - if (entityClientDataBuilder_ != null) { - return entityClientDataBuilder_.getMessageOrBuilder(); - } else { - return entityClientData_ == null ? - emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.getDefaultInstance() : entityClientData_; - } - } - /** - * <code>.EntityClientData entityClientData = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData, emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.Builder, emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientDataOrBuilder> - getEntityClientDataFieldBuilder() { - if (entityClientDataBuilder_ == null) { - entityClientDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData, emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.Builder, emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientDataOrBuilder>( - getEntityClientData(), - getParentForChildren(), - isClean()); - entityClientData_ = null; - } - return entityClientDataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SetEntityClientDataNotify) - } - - // @@protoc_insertion_point(class_scope:SetEntityClientDataNotify) - private static final emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify(); - } - - public static emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SetEntityClientDataNotify> - PARSER = new com.google.protobuf.AbstractParser<SetEntityClientDataNotify>() { - @java.lang.Override - public SetEntityClientDataNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetEntityClientDataNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SetEntityClientDataNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SetEntityClientDataNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SetEntityClientDataNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SetEntityClientDataNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037SetEntityClientDataNotify.proto\032\026Entit" + - "yClientData.proto\"Z\n\031SetEntityClientData" + - "Notify\022\020\n\010entityId\030\001 \001(\r\022+\n\020entityClient" + - "Data\030\002 \001(\0132\021.EntityClientDataB\033\n\031emu.gra" + - "sscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.EntityClientDataOuterClass.getDescriptor(), - }); - internal_static_SetEntityClientDataNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SetEntityClientDataNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SetEntityClientDataNotify_descriptor, - new java.lang.String[] { "EntityId", "EntityClientData", }); - emu.grasscutter.net.proto.EntityClientDataOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SetEquipLockStateReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SetEquipLockStateReqOuterClass.java deleted file mode 100644 index 5a1820116..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SetEquipLockStateReqOuterClass.java +++ /dev/null @@ -1,609 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SetEquipLockStateReq.proto - -package emu.grasscutter.net.proto; - -public final class SetEquipLockStateReqOuterClass { - private SetEquipLockStateReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SetEquipLockStateReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:SetEquipLockStateReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 targetEquipGuid = 1;</code> - * @return The targetEquipGuid. - */ - long getTargetEquipGuid(); - - /** - * <code>bool isLocked = 2;</code> - * @return The isLocked. - */ - boolean getIsLocked(); - } - /** - * Protobuf type {@code SetEquipLockStateReq} - */ - public static final class SetEquipLockStateReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SetEquipLockStateReq) - SetEquipLockStateReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetEquipLockStateReq.newBuilder() to construct. - private SetEquipLockStateReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SetEquipLockStateReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetEquipLockStateReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SetEquipLockStateReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - targetEquipGuid_ = input.readUInt64(); - break; - } - case 16: { - - isLocked_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.internal_static_SetEquipLockStateReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.internal_static_SetEquipLockStateReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq.class, emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq.Builder.class); - } - - public static final int TARGETEQUIPGUID_FIELD_NUMBER = 1; - private long targetEquipGuid_; - /** - * <code>uint64 targetEquipGuid = 1;</code> - * @return The targetEquipGuid. - */ - @java.lang.Override - public long getTargetEquipGuid() { - return targetEquipGuid_; - } - - public static final int ISLOCKED_FIELD_NUMBER = 2; - private boolean isLocked_; - /** - * <code>bool isLocked = 2;</code> - * @return The isLocked. - */ - @java.lang.Override - public boolean getIsLocked() { - return isLocked_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (targetEquipGuid_ != 0L) { - output.writeUInt64(1, targetEquipGuid_); - } - if (isLocked_ != false) { - output.writeBool(2, isLocked_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (targetEquipGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, targetEquipGuid_); - } - if (isLocked_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isLocked_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq other = (emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq) obj; - - if (getTargetEquipGuid() - != other.getTargetEquipGuid()) return false; - if (getIsLocked() - != other.getIsLocked()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TARGETEQUIPGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTargetEquipGuid()); - hash = (37 * hash) + ISLOCKED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsLocked()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SetEquipLockStateReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SetEquipLockStateReq) - emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.internal_static_SetEquipLockStateReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.internal_static_SetEquipLockStateReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq.class, emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - targetEquipGuid_ = 0L; - - isLocked_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.internal_static_SetEquipLockStateReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq build() { - emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq buildPartial() { - emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq result = new emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq(this); - result.targetEquipGuid_ = targetEquipGuid_; - result.isLocked_ = isLocked_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq) { - return mergeFrom((emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq other) { - if (other == emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq.getDefaultInstance()) return this; - if (other.getTargetEquipGuid() != 0L) { - setTargetEquipGuid(other.getTargetEquipGuid()); - } - if (other.getIsLocked() != false) { - setIsLocked(other.getIsLocked()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long targetEquipGuid_ ; - /** - * <code>uint64 targetEquipGuid = 1;</code> - * @return The targetEquipGuid. - */ - @java.lang.Override - public long getTargetEquipGuid() { - return targetEquipGuid_; - } - /** - * <code>uint64 targetEquipGuid = 1;</code> - * @param value The targetEquipGuid to set. - * @return This builder for chaining. - */ - public Builder setTargetEquipGuid(long value) { - - targetEquipGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 targetEquipGuid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTargetEquipGuid() { - - targetEquipGuid_ = 0L; - onChanged(); - return this; - } - - private boolean isLocked_ ; - /** - * <code>bool isLocked = 2;</code> - * @return The isLocked. - */ - @java.lang.Override - public boolean getIsLocked() { - return isLocked_; - } - /** - * <code>bool isLocked = 2;</code> - * @param value The isLocked to set. - * @return This builder for chaining. - */ - public Builder setIsLocked(boolean value) { - - isLocked_ = value; - onChanged(); - return this; - } - /** - * <code>bool isLocked = 2;</code> - * @return This builder for chaining. - */ - public Builder clearIsLocked() { - - isLocked_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SetEquipLockStateReq) - } - - // @@protoc_insertion_point(class_scope:SetEquipLockStateReq) - private static final emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq(); - } - - public static emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SetEquipLockStateReq> - PARSER = new com.google.protobuf.AbstractParser<SetEquipLockStateReq>() { - @java.lang.Override - public SetEquipLockStateReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetEquipLockStateReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SetEquipLockStateReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SetEquipLockStateReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SetEquipLockStateReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SetEquipLockStateReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032SetEquipLockStateReq.proto\"A\n\024SetEquip" + - "LockStateReq\022\027\n\017targetEquipGuid\030\001 \001(\004\022\020\n" + - "\010isLocked\030\002 \001(\010B\033\n\031emu.grasscutter.net.p" + - "rotob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SetEquipLockStateReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SetEquipLockStateReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SetEquipLockStateReq_descriptor, - new java.lang.String[] { "TargetEquipGuid", "IsLocked", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SetEquipLockStateRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SetEquipLockStateRspOuterClass.java deleted file mode 100644 index 00b3b0cde..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SetEquipLockStateRspOuterClass.java +++ /dev/null @@ -1,679 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SetEquipLockStateRsp.proto - -package emu.grasscutter.net.proto; - -public final class SetEquipLockStateRspOuterClass { - private SetEquipLockStateRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SetEquipLockStateRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:SetEquipLockStateRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint64 targetEquipGuid = 2;</code> - * @return The targetEquipGuid. - */ - long getTargetEquipGuid(); - - /** - * <code>bool isLocked = 3;</code> - * @return The isLocked. - */ - boolean getIsLocked(); - } - /** - * Protobuf type {@code SetEquipLockStateRsp} - */ - public static final class SetEquipLockStateRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SetEquipLockStateRsp) - SetEquipLockStateRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetEquipLockStateRsp.newBuilder() to construct. - private SetEquipLockStateRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SetEquipLockStateRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetEquipLockStateRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SetEquipLockStateRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - targetEquipGuid_ = input.readUInt64(); - break; - } - case 24: { - - isLocked_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.internal_static_SetEquipLockStateRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.internal_static_SetEquipLockStateRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp.class, emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int TARGETEQUIPGUID_FIELD_NUMBER = 2; - private long targetEquipGuid_; - /** - * <code>uint64 targetEquipGuid = 2;</code> - * @return The targetEquipGuid. - */ - @java.lang.Override - public long getTargetEquipGuid() { - return targetEquipGuid_; - } - - public static final int ISLOCKED_FIELD_NUMBER = 3; - private boolean isLocked_; - /** - * <code>bool isLocked = 3;</code> - * @return The isLocked. - */ - @java.lang.Override - public boolean getIsLocked() { - return isLocked_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (targetEquipGuid_ != 0L) { - output.writeUInt64(2, targetEquipGuid_); - } - if (isLocked_ != false) { - output.writeBool(3, isLocked_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (targetEquipGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, targetEquipGuid_); - } - if (isLocked_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, isLocked_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp other = (emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getTargetEquipGuid() - != other.getTargetEquipGuid()) return false; - if (getIsLocked() - != other.getIsLocked()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + TARGETEQUIPGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTargetEquipGuid()); - hash = (37 * hash) + ISLOCKED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsLocked()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SetEquipLockStateRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SetEquipLockStateRsp) - emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.internal_static_SetEquipLockStateRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.internal_static_SetEquipLockStateRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp.class, emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - targetEquipGuid_ = 0L; - - isLocked_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.internal_static_SetEquipLockStateRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp build() { - emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp buildPartial() { - emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp result = new emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp(this); - result.retcode_ = retcode_; - result.targetEquipGuid_ = targetEquipGuid_; - result.isLocked_ = isLocked_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp) { - return mergeFrom((emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp other) { - if (other == emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getTargetEquipGuid() != 0L) { - setTargetEquipGuid(other.getTargetEquipGuid()); - } - if (other.getIsLocked() != false) { - setIsLocked(other.getIsLocked()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private long targetEquipGuid_ ; - /** - * <code>uint64 targetEquipGuid = 2;</code> - * @return The targetEquipGuid. - */ - @java.lang.Override - public long getTargetEquipGuid() { - return targetEquipGuid_; - } - /** - * <code>uint64 targetEquipGuid = 2;</code> - * @param value The targetEquipGuid to set. - * @return This builder for chaining. - */ - public Builder setTargetEquipGuid(long value) { - - targetEquipGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 targetEquipGuid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearTargetEquipGuid() { - - targetEquipGuid_ = 0L; - onChanged(); - return this; - } - - private boolean isLocked_ ; - /** - * <code>bool isLocked = 3;</code> - * @return The isLocked. - */ - @java.lang.Override - public boolean getIsLocked() { - return isLocked_; - } - /** - * <code>bool isLocked = 3;</code> - * @param value The isLocked to set. - * @return This builder for chaining. - */ - public Builder setIsLocked(boolean value) { - - isLocked_ = value; - onChanged(); - return this; - } - /** - * <code>bool isLocked = 3;</code> - * @return This builder for chaining. - */ - public Builder clearIsLocked() { - - isLocked_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SetEquipLockStateRsp) - } - - // @@protoc_insertion_point(class_scope:SetEquipLockStateRsp) - private static final emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp(); - } - - public static emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SetEquipLockStateRsp> - PARSER = new com.google.protobuf.AbstractParser<SetEquipLockStateRsp>() { - @java.lang.Override - public SetEquipLockStateRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetEquipLockStateRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SetEquipLockStateRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SetEquipLockStateRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SetEquipLockStateRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SetEquipLockStateRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032SetEquipLockStateRsp.proto\"R\n\024SetEquip" + - "LockStateRsp\022\017\n\007retcode\030\001 \001(\005\022\027\n\017targetE" + - "quipGuid\030\002 \001(\004\022\020\n\010isLocked\030\003 \001(\010B\033\n\031emu." + - "grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SetEquipLockStateRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SetEquipLockStateRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SetEquipLockStateRsp_descriptor, - new java.lang.String[] { "Retcode", "TargetEquipGuid", "IsLocked", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SetNameCardReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SetNameCardReqOuterClass.java deleted file mode 100644 index 0054e31df..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SetNameCardReqOuterClass.java +++ /dev/null @@ -1,536 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SetNameCardReq.proto - -package emu.grasscutter.net.proto; - -public final class SetNameCardReqOuterClass { - private SetNameCardReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SetNameCardReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:SetNameCardReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 nameCardId = 1;</code> - * @return The nameCardId. - */ - int getNameCardId(); - } - /** - * Protobuf type {@code SetNameCardReq} - */ - public static final class SetNameCardReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SetNameCardReq) - SetNameCardReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetNameCardReq.newBuilder() to construct. - private SetNameCardReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SetNameCardReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetNameCardReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SetNameCardReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - nameCardId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetNameCardReqOuterClass.internal_static_SetNameCardReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetNameCardReqOuterClass.internal_static_SetNameCardReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq.class, emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq.Builder.class); - } - - public static final int NAMECARDID_FIELD_NUMBER = 1; - private int nameCardId_; - /** - * <code>uint32 nameCardId = 1;</code> - * @return The nameCardId. - */ - @java.lang.Override - public int getNameCardId() { - return nameCardId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (nameCardId_ != 0) { - output.writeUInt32(1, nameCardId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nameCardId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, nameCardId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq other = (emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq) obj; - - if (getNameCardId() - != other.getNameCardId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAMECARDID_FIELD_NUMBER; - hash = (53 * hash) + getNameCardId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SetNameCardReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SetNameCardReq) - emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetNameCardReqOuterClass.internal_static_SetNameCardReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetNameCardReqOuterClass.internal_static_SetNameCardReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq.class, emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - nameCardId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SetNameCardReqOuterClass.internal_static_SetNameCardReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq build() { - emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq buildPartial() { - emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq result = new emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq(this); - result.nameCardId_ = nameCardId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq) { - return mergeFrom((emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq other) { - if (other == emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq.getDefaultInstance()) return this; - if (other.getNameCardId() != 0) { - setNameCardId(other.getNameCardId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int nameCardId_ ; - /** - * <code>uint32 nameCardId = 1;</code> - * @return The nameCardId. - */ - @java.lang.Override - public int getNameCardId() { - return nameCardId_; - } - /** - * <code>uint32 nameCardId = 1;</code> - * @param value The nameCardId to set. - * @return This builder for chaining. - */ - public Builder setNameCardId(int value) { - - nameCardId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 nameCardId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearNameCardId() { - - nameCardId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SetNameCardReq) - } - - // @@protoc_insertion_point(class_scope:SetNameCardReq) - private static final emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq(); - } - - public static emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SetNameCardReq> - PARSER = new com.google.protobuf.AbstractParser<SetNameCardReq>() { - @java.lang.Override - public SetNameCardReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetNameCardReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SetNameCardReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SetNameCardReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SetNameCardReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SetNameCardReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024SetNameCardReq.proto\"$\n\016SetNameCardReq" + - "\022\022\n\nnameCardId\030\001 \001(\rB\033\n\031emu.grasscutter." + - "net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SetNameCardReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SetNameCardReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SetNameCardReq_descriptor, - new java.lang.String[] { "NameCardId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SetNameCardRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SetNameCardRspOuterClass.java deleted file mode 100644 index 91530c300..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SetNameCardRspOuterClass.java +++ /dev/null @@ -1,606 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SetNameCardRsp.proto - -package emu.grasscutter.net.proto; - -public final class SetNameCardRspOuterClass { - private SetNameCardRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SetNameCardRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:SetNameCardRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint32 nameCardId = 2;</code> - * @return The nameCardId. - */ - int getNameCardId(); - } - /** - * Protobuf type {@code SetNameCardRsp} - */ - public static final class SetNameCardRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SetNameCardRsp) - SetNameCardRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetNameCardRsp.newBuilder() to construct. - private SetNameCardRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SetNameCardRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetNameCardRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SetNameCardRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - nameCardId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetNameCardRspOuterClass.internal_static_SetNameCardRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetNameCardRspOuterClass.internal_static_SetNameCardRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp.class, emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int NAMECARDID_FIELD_NUMBER = 2; - private int nameCardId_; - /** - * <code>uint32 nameCardId = 2;</code> - * @return The nameCardId. - */ - @java.lang.Override - public int getNameCardId() { - return nameCardId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (nameCardId_ != 0) { - output.writeUInt32(2, nameCardId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (nameCardId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, nameCardId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp other = (emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getNameCardId() - != other.getNameCardId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + NAMECARDID_FIELD_NUMBER; - hash = (53 * hash) + getNameCardId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SetNameCardRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SetNameCardRsp) - emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetNameCardRspOuterClass.internal_static_SetNameCardRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetNameCardRspOuterClass.internal_static_SetNameCardRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp.class, emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - nameCardId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SetNameCardRspOuterClass.internal_static_SetNameCardRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp build() { - emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp buildPartial() { - emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp result = new emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp(this); - result.retcode_ = retcode_; - result.nameCardId_ = nameCardId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp) { - return mergeFrom((emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp other) { - if (other == emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getNameCardId() != 0) { - setNameCardId(other.getNameCardId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int nameCardId_ ; - /** - * <code>uint32 nameCardId = 2;</code> - * @return The nameCardId. - */ - @java.lang.Override - public int getNameCardId() { - return nameCardId_; - } - /** - * <code>uint32 nameCardId = 2;</code> - * @param value The nameCardId to set. - * @return This builder for chaining. - */ - public Builder setNameCardId(int value) { - - nameCardId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 nameCardId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearNameCardId() { - - nameCardId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SetNameCardRsp) - } - - // @@protoc_insertion_point(class_scope:SetNameCardRsp) - private static final emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp(); - } - - public static emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SetNameCardRsp> - PARSER = new com.google.protobuf.AbstractParser<SetNameCardRsp>() { - @java.lang.Override - public SetNameCardRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetNameCardRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SetNameCardRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SetNameCardRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SetNameCardRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SetNameCardRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024SetNameCardRsp.proto\"5\n\016SetNameCardRsp" + - "\022\017\n\007retcode\030\001 \001(\005\022\022\n\nnameCardId\030\002 \001(\rB\033\n" + - "\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SetNameCardRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SetNameCardRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SetNameCardRsp_descriptor, - new java.lang.String[] { "Retcode", "NameCardId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SetPlayerBirthdayReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SetPlayerBirthdayReqOuterClass.java deleted file mode 100644 index 7f174dd45..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SetPlayerBirthdayReqOuterClass.java +++ /dev/null @@ -1,674 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SetPlayerBirthdayReq.proto - -package emu.grasscutter.net.proto; - -public final class SetPlayerBirthdayReqOuterClass { - private SetPlayerBirthdayReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SetPlayerBirthdayReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:SetPlayerBirthdayReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.Birthday birthday = 1;</code> - * @return Whether the birthday field is set. - */ - boolean hasBirthday(); - /** - * <code>.Birthday birthday = 1;</code> - * @return The birthday. - */ - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday getBirthday(); - /** - * <code>.Birthday birthday = 1;</code> - */ - emu.grasscutter.net.proto.BirthdayOuterClass.BirthdayOrBuilder getBirthdayOrBuilder(); - } - /** - * Protobuf type {@code SetPlayerBirthdayReq} - */ - public static final class SetPlayerBirthdayReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SetPlayerBirthdayReq) - SetPlayerBirthdayReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetPlayerBirthdayReq.newBuilder() to construct. - private SetPlayerBirthdayReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SetPlayerBirthdayReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetPlayerBirthdayReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SetPlayerBirthdayReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.Builder subBuilder = null; - if (birthday_ != null) { - subBuilder = birthday_.toBuilder(); - } - birthday_ = input.readMessage(emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(birthday_); - birthday_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.internal_static_SetPlayerBirthdayReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.internal_static_SetPlayerBirthdayReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq.class, emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq.Builder.class); - } - - public static final int BIRTHDAY_FIELD_NUMBER = 1; - private emu.grasscutter.net.proto.BirthdayOuterClass.Birthday birthday_; - /** - * <code>.Birthday birthday = 1;</code> - * @return Whether the birthday field is set. - */ - @java.lang.Override - public boolean hasBirthday() { - return birthday_ != null; - } - /** - * <code>.Birthday birthday = 1;</code> - * @return The birthday. - */ - @java.lang.Override - public emu.grasscutter.net.proto.BirthdayOuterClass.Birthday getBirthday() { - return birthday_ == null ? emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.getDefaultInstance() : birthday_; - } - /** - * <code>.Birthday birthday = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.BirthdayOuterClass.BirthdayOrBuilder getBirthdayOrBuilder() { - return getBirthday(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (birthday_ != null) { - output.writeMessage(1, getBirthday()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (birthday_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBirthday()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq other = (emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq) obj; - - if (hasBirthday() != other.hasBirthday()) return false; - if (hasBirthday()) { - if (!getBirthday() - .equals(other.getBirthday())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasBirthday()) { - hash = (37 * hash) + BIRTHDAY_FIELD_NUMBER; - hash = (53 * hash) + getBirthday().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SetPlayerBirthdayReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SetPlayerBirthdayReq) - emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.internal_static_SetPlayerBirthdayReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.internal_static_SetPlayerBirthdayReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq.class, emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (birthdayBuilder_ == null) { - birthday_ = null; - } else { - birthday_ = null; - birthdayBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.internal_static_SetPlayerBirthdayReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq build() { - emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq buildPartial() { - emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq result = new emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq(this); - if (birthdayBuilder_ == null) { - result.birthday_ = birthday_; - } else { - result.birthday_ = birthdayBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq) { - return mergeFrom((emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq other) { - if (other == emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq.getDefaultInstance()) return this; - if (other.hasBirthday()) { - mergeBirthday(other.getBirthday()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private emu.grasscutter.net.proto.BirthdayOuterClass.Birthday birthday_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday, emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.Builder, emu.grasscutter.net.proto.BirthdayOuterClass.BirthdayOrBuilder> birthdayBuilder_; - /** - * <code>.Birthday birthday = 1;</code> - * @return Whether the birthday field is set. - */ - public boolean hasBirthday() { - return birthdayBuilder_ != null || birthday_ != null; - } - /** - * <code>.Birthday birthday = 1;</code> - * @return The birthday. - */ - public emu.grasscutter.net.proto.BirthdayOuterClass.Birthday getBirthday() { - if (birthdayBuilder_ == null) { - return birthday_ == null ? emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.getDefaultInstance() : birthday_; - } else { - return birthdayBuilder_.getMessage(); - } - } - /** - * <code>.Birthday birthday = 1;</code> - */ - public Builder setBirthday(emu.grasscutter.net.proto.BirthdayOuterClass.Birthday value) { - if (birthdayBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - birthday_ = value; - onChanged(); - } else { - birthdayBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Birthday birthday = 1;</code> - */ - public Builder setBirthday( - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.Builder builderForValue) { - if (birthdayBuilder_ == null) { - birthday_ = builderForValue.build(); - onChanged(); - } else { - birthdayBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Birthday birthday = 1;</code> - */ - public Builder mergeBirthday(emu.grasscutter.net.proto.BirthdayOuterClass.Birthday value) { - if (birthdayBuilder_ == null) { - if (birthday_ != null) { - birthday_ = - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.newBuilder(birthday_).mergeFrom(value).buildPartial(); - } else { - birthday_ = value; - } - onChanged(); - } else { - birthdayBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Birthday birthday = 1;</code> - */ - public Builder clearBirthday() { - if (birthdayBuilder_ == null) { - birthday_ = null; - onChanged(); - } else { - birthday_ = null; - birthdayBuilder_ = null; - } - - return this; - } - /** - * <code>.Birthday birthday = 1;</code> - */ - public emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.Builder getBirthdayBuilder() { - - onChanged(); - return getBirthdayFieldBuilder().getBuilder(); - } - /** - * <code>.Birthday birthday = 1;</code> - */ - public emu.grasscutter.net.proto.BirthdayOuterClass.BirthdayOrBuilder getBirthdayOrBuilder() { - if (birthdayBuilder_ != null) { - return birthdayBuilder_.getMessageOrBuilder(); - } else { - return birthday_ == null ? - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.getDefaultInstance() : birthday_; - } - } - /** - * <code>.Birthday birthday = 1;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday, emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.Builder, emu.grasscutter.net.proto.BirthdayOuterClass.BirthdayOrBuilder> - getBirthdayFieldBuilder() { - if (birthdayBuilder_ == null) { - birthdayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday, emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.Builder, emu.grasscutter.net.proto.BirthdayOuterClass.BirthdayOrBuilder>( - getBirthday(), - getParentForChildren(), - isClean()); - birthday_ = null; - } - return birthdayBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SetPlayerBirthdayReq) - } - - // @@protoc_insertion_point(class_scope:SetPlayerBirthdayReq) - private static final emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq(); - } - - public static emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SetPlayerBirthdayReq> - PARSER = new com.google.protobuf.AbstractParser<SetPlayerBirthdayReq>() { - @java.lang.Override - public SetPlayerBirthdayReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetPlayerBirthdayReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SetPlayerBirthdayReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SetPlayerBirthdayReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerBirthdayReqOuterClass.SetPlayerBirthdayReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SetPlayerBirthdayReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SetPlayerBirthdayReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032SetPlayerBirthdayReq.proto\032\016Birthday.p" + - "roto\"3\n\024SetPlayerBirthdayReq\022\033\n\010birthday" + - "\030\001 \001(\0132\t.BirthdayB\033\n\031emu.grasscutter.net" + - ".protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.BirthdayOuterClass.getDescriptor(), - }); - internal_static_SetPlayerBirthdayReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SetPlayerBirthdayReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SetPlayerBirthdayReq_descriptor, - new java.lang.String[] { "Birthday", }); - emu.grasscutter.net.proto.BirthdayOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SetPlayerBirthdayRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SetPlayerBirthdayRspOuterClass.java deleted file mode 100644 index e77af9ae9..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SetPlayerBirthdayRspOuterClass.java +++ /dev/null @@ -1,744 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SetPlayerBirthdayRsp.proto - -package emu.grasscutter.net.proto; - -public final class SetPlayerBirthdayRspOuterClass { - private SetPlayerBirthdayRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SetPlayerBirthdayRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:SetPlayerBirthdayRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>.Birthday birthday = 2;</code> - * @return Whether the birthday field is set. - */ - boolean hasBirthday(); - /** - * <code>.Birthday birthday = 2;</code> - * @return The birthday. - */ - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday getBirthday(); - /** - * <code>.Birthday birthday = 2;</code> - */ - emu.grasscutter.net.proto.BirthdayOuterClass.BirthdayOrBuilder getBirthdayOrBuilder(); - } - /** - * Protobuf type {@code SetPlayerBirthdayRsp} - */ - public static final class SetPlayerBirthdayRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SetPlayerBirthdayRsp) - SetPlayerBirthdayRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetPlayerBirthdayRsp.newBuilder() to construct. - private SetPlayerBirthdayRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SetPlayerBirthdayRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetPlayerBirthdayRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SetPlayerBirthdayRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 18: { - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.Builder subBuilder = null; - if (birthday_ != null) { - subBuilder = birthday_.toBuilder(); - } - birthday_ = input.readMessage(emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(birthday_); - birthday_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.internal_static_SetPlayerBirthdayRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.internal_static_SetPlayerBirthdayRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp.class, emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int BIRTHDAY_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.BirthdayOuterClass.Birthday birthday_; - /** - * <code>.Birthday birthday = 2;</code> - * @return Whether the birthday field is set. - */ - @java.lang.Override - public boolean hasBirthday() { - return birthday_ != null; - } - /** - * <code>.Birthday birthday = 2;</code> - * @return The birthday. - */ - @java.lang.Override - public emu.grasscutter.net.proto.BirthdayOuterClass.Birthday getBirthday() { - return birthday_ == null ? emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.getDefaultInstance() : birthday_; - } - /** - * <code>.Birthday birthday = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.BirthdayOuterClass.BirthdayOrBuilder getBirthdayOrBuilder() { - return getBirthday(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (birthday_ != null) { - output.writeMessage(2, getBirthday()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (birthday_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBirthday()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp other = (emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (hasBirthday() != other.hasBirthday()) return false; - if (hasBirthday()) { - if (!getBirthday() - .equals(other.getBirthday())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - if (hasBirthday()) { - hash = (37 * hash) + BIRTHDAY_FIELD_NUMBER; - hash = (53 * hash) + getBirthday().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SetPlayerBirthdayRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SetPlayerBirthdayRsp) - emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.internal_static_SetPlayerBirthdayRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.internal_static_SetPlayerBirthdayRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp.class, emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - if (birthdayBuilder_ == null) { - birthday_ = null; - } else { - birthday_ = null; - birthdayBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.internal_static_SetPlayerBirthdayRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp build() { - emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp buildPartial() { - emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp result = new emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp(this); - result.retcode_ = retcode_; - if (birthdayBuilder_ == null) { - result.birthday_ = birthday_; - } else { - result.birthday_ = birthdayBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp) { - return mergeFrom((emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp other) { - if (other == emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.hasBirthday()) { - mergeBirthday(other.getBirthday()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.BirthdayOuterClass.Birthday birthday_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday, emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.Builder, emu.grasscutter.net.proto.BirthdayOuterClass.BirthdayOrBuilder> birthdayBuilder_; - /** - * <code>.Birthday birthday = 2;</code> - * @return Whether the birthday field is set. - */ - public boolean hasBirthday() { - return birthdayBuilder_ != null || birthday_ != null; - } - /** - * <code>.Birthday birthday = 2;</code> - * @return The birthday. - */ - public emu.grasscutter.net.proto.BirthdayOuterClass.Birthday getBirthday() { - if (birthdayBuilder_ == null) { - return birthday_ == null ? emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.getDefaultInstance() : birthday_; - } else { - return birthdayBuilder_.getMessage(); - } - } - /** - * <code>.Birthday birthday = 2;</code> - */ - public Builder setBirthday(emu.grasscutter.net.proto.BirthdayOuterClass.Birthday value) { - if (birthdayBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - birthday_ = value; - onChanged(); - } else { - birthdayBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Birthday birthday = 2;</code> - */ - public Builder setBirthday( - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.Builder builderForValue) { - if (birthdayBuilder_ == null) { - birthday_ = builderForValue.build(); - onChanged(); - } else { - birthdayBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Birthday birthday = 2;</code> - */ - public Builder mergeBirthday(emu.grasscutter.net.proto.BirthdayOuterClass.Birthday value) { - if (birthdayBuilder_ == null) { - if (birthday_ != null) { - birthday_ = - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.newBuilder(birthday_).mergeFrom(value).buildPartial(); - } else { - birthday_ = value; - } - onChanged(); - } else { - birthdayBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Birthday birthday = 2;</code> - */ - public Builder clearBirthday() { - if (birthdayBuilder_ == null) { - birthday_ = null; - onChanged(); - } else { - birthday_ = null; - birthdayBuilder_ = null; - } - - return this; - } - /** - * <code>.Birthday birthday = 2;</code> - */ - public emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.Builder getBirthdayBuilder() { - - onChanged(); - return getBirthdayFieldBuilder().getBuilder(); - } - /** - * <code>.Birthday birthday = 2;</code> - */ - public emu.grasscutter.net.proto.BirthdayOuterClass.BirthdayOrBuilder getBirthdayOrBuilder() { - if (birthdayBuilder_ != null) { - return birthdayBuilder_.getMessageOrBuilder(); - } else { - return birthday_ == null ? - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.getDefaultInstance() : birthday_; - } - } - /** - * <code>.Birthday birthday = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday, emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.Builder, emu.grasscutter.net.proto.BirthdayOuterClass.BirthdayOrBuilder> - getBirthdayFieldBuilder() { - if (birthdayBuilder_ == null) { - birthdayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday, emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.Builder, emu.grasscutter.net.proto.BirthdayOuterClass.BirthdayOrBuilder>( - getBirthday(), - getParentForChildren(), - isClean()); - birthday_ = null; - } - return birthdayBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SetPlayerBirthdayRsp) - } - - // @@protoc_insertion_point(class_scope:SetPlayerBirthdayRsp) - private static final emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp(); - } - - public static emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SetPlayerBirthdayRsp> - PARSER = new com.google.protobuf.AbstractParser<SetPlayerBirthdayRsp>() { - @java.lang.Override - public SetPlayerBirthdayRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetPlayerBirthdayRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SetPlayerBirthdayRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SetPlayerBirthdayRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SetPlayerBirthdayRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SetPlayerBirthdayRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032SetPlayerBirthdayRsp.proto\032\016Birthday.p" + - "roto\"D\n\024SetPlayerBirthdayRsp\022\017\n\007retcode\030" + - "\001 \001(\005\022\033\n\010birthday\030\002 \001(\0132\t.BirthdayB\033\n\031em" + - "u.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.BirthdayOuterClass.getDescriptor(), - }); - internal_static_SetPlayerBirthdayRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SetPlayerBirthdayRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SetPlayerBirthdayRsp_descriptor, - new java.lang.String[] { "Retcode", "Birthday", }); - emu.grasscutter.net.proto.BirthdayOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SetPlayerBornDataReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SetPlayerBornDataReqOuterClass.java deleted file mode 100644 index 5b7594c2c..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SetPlayerBornDataReqOuterClass.java +++ /dev/null @@ -1,687 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SetPlayerBornDataReq.proto - -package emu.grasscutter.net.proto; - -public final class SetPlayerBornDataReqOuterClass { - private SetPlayerBornDataReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SetPlayerBornDataReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:SetPlayerBornDataReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 avatarId = 1;</code> - * @return The avatarId. - */ - int getAvatarId(); - - /** - * <code>string nickName = 2;</code> - * @return The nickName. - */ - java.lang.String getNickName(); - /** - * <code>string nickName = 2;</code> - * @return The bytes for nickName. - */ - com.google.protobuf.ByteString - getNickNameBytes(); - } - /** - * Protobuf type {@code SetPlayerBornDataReq} - */ - public static final class SetPlayerBornDataReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SetPlayerBornDataReq) - SetPlayerBornDataReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetPlayerBornDataReq.newBuilder() to construct. - private SetPlayerBornDataReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SetPlayerBornDataReq() { - nickName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetPlayerBornDataReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SetPlayerBornDataReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - avatarId_ = input.readUInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - nickName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.internal_static_SetPlayerBornDataReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.internal_static_SetPlayerBornDataReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq.class, emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq.Builder.class); - } - - public static final int AVATARID_FIELD_NUMBER = 1; - private int avatarId_; - /** - * <code>uint32 avatarId = 1;</code> - * @return The avatarId. - */ - @java.lang.Override - public int getAvatarId() { - return avatarId_; - } - - public static final int NICKNAME_FIELD_NUMBER = 2; - private volatile java.lang.Object nickName_; - /** - * <code>string nickName = 2;</code> - * @return The nickName. - */ - @java.lang.Override - public java.lang.String getNickName() { - java.lang.Object ref = nickName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nickName_ = s; - return s; - } - } - /** - * <code>string nickName = 2;</code> - * @return The bytes for nickName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNickNameBytes() { - java.lang.Object ref = nickName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nickName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (avatarId_ != 0) { - output.writeUInt32(1, avatarId_); - } - if (!getNickNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nickName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (avatarId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, avatarId_); - } - if (!getNickNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nickName_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq other = (emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq) obj; - - if (getAvatarId() - != other.getAvatarId()) return false; - if (!getNickName() - .equals(other.getNickName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AVATARID_FIELD_NUMBER; - hash = (53 * hash) + getAvatarId(); - hash = (37 * hash) + NICKNAME_FIELD_NUMBER; - hash = (53 * hash) + getNickName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SetPlayerBornDataReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SetPlayerBornDataReq) - emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.internal_static_SetPlayerBornDataReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.internal_static_SetPlayerBornDataReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq.class, emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - avatarId_ = 0; - - nickName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.internal_static_SetPlayerBornDataReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq build() { - emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq buildPartial() { - emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq result = new emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq(this); - result.avatarId_ = avatarId_; - result.nickName_ = nickName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq) { - return mergeFrom((emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq other) { - if (other == emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq.getDefaultInstance()) return this; - if (other.getAvatarId() != 0) { - setAvatarId(other.getAvatarId()); - } - if (!other.getNickName().isEmpty()) { - nickName_ = other.nickName_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int avatarId_ ; - /** - * <code>uint32 avatarId = 1;</code> - * @return The avatarId. - */ - @java.lang.Override - public int getAvatarId() { - return avatarId_; - } - /** - * <code>uint32 avatarId = 1;</code> - * @param value The avatarId to set. - * @return This builder for chaining. - */ - public Builder setAvatarId(int value) { - - avatarId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 avatarId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarId() { - - avatarId_ = 0; - onChanged(); - return this; - } - - private java.lang.Object nickName_ = ""; - /** - * <code>string nickName = 2;</code> - * @return The nickName. - */ - public java.lang.String getNickName() { - java.lang.Object ref = nickName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nickName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string nickName = 2;</code> - * @return The bytes for nickName. - */ - public com.google.protobuf.ByteString - getNickNameBytes() { - java.lang.Object ref = nickName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nickName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string nickName = 2;</code> - * @param value The nickName to set. - * @return This builder for chaining. - */ - public Builder setNickName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nickName_ = value; - onChanged(); - return this; - } - /** - * <code>string nickName = 2;</code> - * @return This builder for chaining. - */ - public Builder clearNickName() { - - nickName_ = getDefaultInstance().getNickName(); - onChanged(); - return this; - } - /** - * <code>string nickName = 2;</code> - * @param value The bytes for nickName to set. - * @return This builder for chaining. - */ - public Builder setNickNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nickName_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SetPlayerBornDataReq) - } - - // @@protoc_insertion_point(class_scope:SetPlayerBornDataReq) - private static final emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq(); - } - - public static emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SetPlayerBornDataReq> - PARSER = new com.google.protobuf.AbstractParser<SetPlayerBornDataReq>() { - @java.lang.Override - public SetPlayerBornDataReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetPlayerBornDataReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SetPlayerBornDataReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SetPlayerBornDataReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SetPlayerBornDataReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SetPlayerBornDataReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032SetPlayerBornDataReq.proto\":\n\024SetPlaye" + - "rBornDataReq\022\020\n\010avatarId\030\001 \001(\r\022\020\n\010nickNa" + - "me\030\002 \001(\tB\033\n\031emu.grasscutter.net.protob\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SetPlayerBornDataReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SetPlayerBornDataReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SetPlayerBornDataReq_descriptor, - new java.lang.String[] { "AvatarId", "NickName", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SetPlayerHeadImageReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SetPlayerHeadImageReqOuterClass.java deleted file mode 100644 index 453efb1d4..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SetPlayerHeadImageReqOuterClass.java +++ /dev/null @@ -1,536 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SetPlayerHeadImageReq.proto - -package emu.grasscutter.net.proto; - -public final class SetPlayerHeadImageReqOuterClass { - private SetPlayerHeadImageReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SetPlayerHeadImageReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:SetPlayerHeadImageReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 avatarId = 1;</code> - * @return The avatarId. - */ - int getAvatarId(); - } - /** - * Protobuf type {@code SetPlayerHeadImageReq} - */ - public static final class SetPlayerHeadImageReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SetPlayerHeadImageReq) - SetPlayerHeadImageReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetPlayerHeadImageReq.newBuilder() to construct. - private SetPlayerHeadImageReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SetPlayerHeadImageReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetPlayerHeadImageReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SetPlayerHeadImageReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - avatarId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.internal_static_SetPlayerHeadImageReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.internal_static_SetPlayerHeadImageReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq.class, emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq.Builder.class); - } - - public static final int AVATARID_FIELD_NUMBER = 1; - private int avatarId_; - /** - * <code>uint32 avatarId = 1;</code> - * @return The avatarId. - */ - @java.lang.Override - public int getAvatarId() { - return avatarId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (avatarId_ != 0) { - output.writeUInt32(1, avatarId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (avatarId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, avatarId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq other = (emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq) obj; - - if (getAvatarId() - != other.getAvatarId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AVATARID_FIELD_NUMBER; - hash = (53 * hash) + getAvatarId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SetPlayerHeadImageReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SetPlayerHeadImageReq) - emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.internal_static_SetPlayerHeadImageReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.internal_static_SetPlayerHeadImageReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq.class, emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - avatarId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.internal_static_SetPlayerHeadImageReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq build() { - emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq buildPartial() { - emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq result = new emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq(this); - result.avatarId_ = avatarId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq) { - return mergeFrom((emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq other) { - if (other == emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq.getDefaultInstance()) return this; - if (other.getAvatarId() != 0) { - setAvatarId(other.getAvatarId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int avatarId_ ; - /** - * <code>uint32 avatarId = 1;</code> - * @return The avatarId. - */ - @java.lang.Override - public int getAvatarId() { - return avatarId_; - } - /** - * <code>uint32 avatarId = 1;</code> - * @param value The avatarId to set. - * @return This builder for chaining. - */ - public Builder setAvatarId(int value) { - - avatarId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 avatarId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarId() { - - avatarId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SetPlayerHeadImageReq) - } - - // @@protoc_insertion_point(class_scope:SetPlayerHeadImageReq) - private static final emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq(); - } - - public static emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SetPlayerHeadImageReq> - PARSER = new com.google.protobuf.AbstractParser<SetPlayerHeadImageReq>() { - @java.lang.Override - public SetPlayerHeadImageReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetPlayerHeadImageReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SetPlayerHeadImageReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SetPlayerHeadImageReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SetPlayerHeadImageReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SetPlayerHeadImageReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033SetPlayerHeadImageReq.proto\")\n\025SetPlay" + - "erHeadImageReq\022\020\n\010avatarId\030\001 \001(\rB\033\n\031emu." + - "grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SetPlayerHeadImageReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SetPlayerHeadImageReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SetPlayerHeadImageReq_descriptor, - new java.lang.String[] { "AvatarId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SetPlayerHeadImageRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SetPlayerHeadImageRspOuterClass.java deleted file mode 100644 index fdc4f4e06..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SetPlayerHeadImageRspOuterClass.java +++ /dev/null @@ -1,742 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SetPlayerHeadImageRsp.proto - -package emu.grasscutter.net.proto; - -public final class SetPlayerHeadImageRspOuterClass { - private SetPlayerHeadImageRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SetPlayerHeadImageRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:SetPlayerHeadImageRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>.HeadImage avatar = 3;</code> - * @return Whether the avatar field is set. - */ - boolean hasAvatar(); - /** - * <code>.HeadImage avatar = 3;</code> - * @return The avatar. - */ - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage getAvatar(); - /** - * <code>.HeadImage avatar = 3;</code> - */ - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder getAvatarOrBuilder(); - } - /** - * Protobuf type {@code SetPlayerHeadImageRsp} - */ - public static final class SetPlayerHeadImageRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SetPlayerHeadImageRsp) - SetPlayerHeadImageRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetPlayerHeadImageRsp.newBuilder() to construct. - private SetPlayerHeadImageRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SetPlayerHeadImageRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetPlayerHeadImageRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SetPlayerHeadImageRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 26: { - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder subBuilder = null; - if (avatar_ != null) { - subBuilder = avatar_.toBuilder(); - } - avatar_ = input.readMessage(emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(avatar_); - avatar_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.internal_static_SetPlayerHeadImageRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.internal_static_SetPlayerHeadImageRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp.class, emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int AVATAR_FIELD_NUMBER = 3; - private emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage avatar_; - /** - * <code>.HeadImage avatar = 3;</code> - * @return Whether the avatar field is set. - */ - @java.lang.Override - public boolean hasAvatar() { - return avatar_ != null; - } - /** - * <code>.HeadImage avatar = 3;</code> - * @return The avatar. - */ - @java.lang.Override - public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage getAvatar() { - return avatar_ == null ? emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.getDefaultInstance() : avatar_; - } - /** - * <code>.HeadImage avatar = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder getAvatarOrBuilder() { - return getAvatar(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (avatar_ != null) { - output.writeMessage(3, getAvatar()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (avatar_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getAvatar()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp other = (emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (hasAvatar() != other.hasAvatar()) return false; - if (hasAvatar()) { - if (!getAvatar() - .equals(other.getAvatar())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - if (hasAvatar()) { - hash = (37 * hash) + AVATAR_FIELD_NUMBER; - hash = (53 * hash) + getAvatar().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SetPlayerHeadImageRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SetPlayerHeadImageRsp) - emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.internal_static_SetPlayerHeadImageRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.internal_static_SetPlayerHeadImageRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp.class, emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - if (avatarBuilder_ == null) { - avatar_ = null; - } else { - avatar_ = null; - avatarBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.internal_static_SetPlayerHeadImageRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp build() { - emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp buildPartial() { - emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp result = new emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp(this); - result.retcode_ = retcode_; - if (avatarBuilder_ == null) { - result.avatar_ = avatar_; - } else { - result.avatar_ = avatarBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp) { - return mergeFrom((emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp other) { - if (other == emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.hasAvatar()) { - mergeAvatar(other.getAvatar()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage avatar_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder> avatarBuilder_; - /** - * <code>.HeadImage avatar = 3;</code> - * @return Whether the avatar field is set. - */ - public boolean hasAvatar() { - return avatarBuilder_ != null || avatar_ != null; - } - /** - * <code>.HeadImage avatar = 3;</code> - * @return The avatar. - */ - public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage getAvatar() { - if (avatarBuilder_ == null) { - return avatar_ == null ? emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.getDefaultInstance() : avatar_; - } else { - return avatarBuilder_.getMessage(); - } - } - /** - * <code>.HeadImage avatar = 3;</code> - */ - public Builder setAvatar(emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage value) { - if (avatarBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - avatar_ = value; - onChanged(); - } else { - avatarBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.HeadImage avatar = 3;</code> - */ - public Builder setAvatar( - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder builderForValue) { - if (avatarBuilder_ == null) { - avatar_ = builderForValue.build(); - onChanged(); - } else { - avatarBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.HeadImage avatar = 3;</code> - */ - public Builder mergeAvatar(emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage value) { - if (avatarBuilder_ == null) { - if (avatar_ != null) { - avatar_ = - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.newBuilder(avatar_).mergeFrom(value).buildPartial(); - } else { - avatar_ = value; - } - onChanged(); - } else { - avatarBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.HeadImage avatar = 3;</code> - */ - public Builder clearAvatar() { - if (avatarBuilder_ == null) { - avatar_ = null; - onChanged(); - } else { - avatar_ = null; - avatarBuilder_ = null; - } - - return this; - } - /** - * <code>.HeadImage avatar = 3;</code> - */ - public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder getAvatarBuilder() { - - onChanged(); - return getAvatarFieldBuilder().getBuilder(); - } - /** - * <code>.HeadImage avatar = 3;</code> - */ - public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder getAvatarOrBuilder() { - if (avatarBuilder_ != null) { - return avatarBuilder_.getMessageOrBuilder(); - } else { - return avatar_ == null ? - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.getDefaultInstance() : avatar_; - } - } - /** - * <code>.HeadImage avatar = 3;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder> - getAvatarFieldBuilder() { - if (avatarBuilder_ == null) { - avatarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder>( - getAvatar(), - getParentForChildren(), - isClean()); - avatar_ = null; - } - return avatarBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SetPlayerHeadImageRsp) - } - - // @@protoc_insertion_point(class_scope:SetPlayerHeadImageRsp) - private static final emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp(); - } - - public static emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SetPlayerHeadImageRsp> - PARSER = new com.google.protobuf.AbstractParser<SetPlayerHeadImageRsp>() { - @java.lang.Override - public SetPlayerHeadImageRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetPlayerHeadImageRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SetPlayerHeadImageRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SetPlayerHeadImageRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SetPlayerHeadImageRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SetPlayerHeadImageRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033SetPlayerHeadImageRsp.proto\032\017HeadImage" + - ".proto\"D\n\025SetPlayerHeadImageRsp\022\017\n\007retco" + - "de\030\001 \001(\005\022\032\n\006avatar\030\003 \001(\0132\n.HeadImageB\033\n\031" + - "emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.HeadImageOuterClass.getDescriptor(), - }); - internal_static_SetPlayerHeadImageRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SetPlayerHeadImageRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SetPlayerHeadImageRsp_descriptor, - new java.lang.String[] { "Retcode", "Avatar", }); - emu.grasscutter.net.proto.HeadImageOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SetPlayerNameReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SetPlayerNameReqOuterClass.java deleted file mode 100644 index e46f400fc..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SetPlayerNameReqOuterClass.java +++ /dev/null @@ -1,616 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SetPlayerNameReq.proto - -package emu.grasscutter.net.proto; - -public final class SetPlayerNameReqOuterClass { - private SetPlayerNameReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SetPlayerNameReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:SetPlayerNameReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>string nickName = 1;</code> - * @return The nickName. - */ - java.lang.String getNickName(); - /** - * <code>string nickName = 1;</code> - * @return The bytes for nickName. - */ - com.google.protobuf.ByteString - getNickNameBytes(); - } - /** - * Protobuf type {@code SetPlayerNameReq} - */ - public static final class SetPlayerNameReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SetPlayerNameReq) - SetPlayerNameReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetPlayerNameReq.newBuilder() to construct. - private SetPlayerNameReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SetPlayerNameReq() { - nickName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetPlayerNameReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SetPlayerNameReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - nickName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.internal_static_SetPlayerNameReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.internal_static_SetPlayerNameReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq.class, emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq.Builder.class); - } - - public static final int NICKNAME_FIELD_NUMBER = 1; - private volatile java.lang.Object nickName_; - /** - * <code>string nickName = 1;</code> - * @return The nickName. - */ - @java.lang.Override - public java.lang.String getNickName() { - java.lang.Object ref = nickName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nickName_ = s; - return s; - } - } - /** - * <code>string nickName = 1;</code> - * @return The bytes for nickName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNickNameBytes() { - java.lang.Object ref = nickName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nickName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getNickNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nickName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNickNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nickName_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq other = (emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq) obj; - - if (!getNickName() - .equals(other.getNickName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NICKNAME_FIELD_NUMBER; - hash = (53 * hash) + getNickName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SetPlayerNameReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SetPlayerNameReq) - emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.internal_static_SetPlayerNameReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.internal_static_SetPlayerNameReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq.class, emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - nickName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.internal_static_SetPlayerNameReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq build() { - emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq buildPartial() { - emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq result = new emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq(this); - result.nickName_ = nickName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq) { - return mergeFrom((emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq other) { - if (other == emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq.getDefaultInstance()) return this; - if (!other.getNickName().isEmpty()) { - nickName_ = other.nickName_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object nickName_ = ""; - /** - * <code>string nickName = 1;</code> - * @return The nickName. - */ - public java.lang.String getNickName() { - java.lang.Object ref = nickName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nickName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string nickName = 1;</code> - * @return The bytes for nickName. - */ - public com.google.protobuf.ByteString - getNickNameBytes() { - java.lang.Object ref = nickName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nickName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string nickName = 1;</code> - * @param value The nickName to set. - * @return This builder for chaining. - */ - public Builder setNickName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nickName_ = value; - onChanged(); - return this; - } - /** - * <code>string nickName = 1;</code> - * @return This builder for chaining. - */ - public Builder clearNickName() { - - nickName_ = getDefaultInstance().getNickName(); - onChanged(); - return this; - } - /** - * <code>string nickName = 1;</code> - * @param value The bytes for nickName to set. - * @return This builder for chaining. - */ - public Builder setNickNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nickName_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SetPlayerNameReq) - } - - // @@protoc_insertion_point(class_scope:SetPlayerNameReq) - private static final emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq(); - } - - public static emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SetPlayerNameReq> - PARSER = new com.google.protobuf.AbstractParser<SetPlayerNameReq>() { - @java.lang.Override - public SetPlayerNameReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetPlayerNameReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SetPlayerNameReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SetPlayerNameReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SetPlayerNameReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SetPlayerNameReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026SetPlayerNameReq.proto\"$\n\020SetPlayerNam" + - "eReq\022\020\n\010nickName\030\001 \001(\tB\033\n\031emu.grasscutte" + - "r.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SetPlayerNameReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SetPlayerNameReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SetPlayerNameReq_descriptor, - new java.lang.String[] { "NickName", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SetPlayerNameRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SetPlayerNameRspOuterClass.java deleted file mode 100644 index 74cc62fa5..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SetPlayerNameRspOuterClass.java +++ /dev/null @@ -1,686 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SetPlayerNameRsp.proto - -package emu.grasscutter.net.proto; - -public final class SetPlayerNameRspOuterClass { - private SetPlayerNameRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SetPlayerNameRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:SetPlayerNameRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>string nickName = 2;</code> - * @return The nickName. - */ - java.lang.String getNickName(); - /** - * <code>string nickName = 2;</code> - * @return The bytes for nickName. - */ - com.google.protobuf.ByteString - getNickNameBytes(); - } - /** - * Protobuf type {@code SetPlayerNameRsp} - */ - public static final class SetPlayerNameRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SetPlayerNameRsp) - SetPlayerNameRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetPlayerNameRsp.newBuilder() to construct. - private SetPlayerNameRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SetPlayerNameRsp() { - nickName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetPlayerNameRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SetPlayerNameRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - nickName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.internal_static_SetPlayerNameRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.internal_static_SetPlayerNameRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp.class, emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int NICKNAME_FIELD_NUMBER = 2; - private volatile java.lang.Object nickName_; - /** - * <code>string nickName = 2;</code> - * @return The nickName. - */ - @java.lang.Override - public java.lang.String getNickName() { - java.lang.Object ref = nickName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nickName_ = s; - return s; - } - } - /** - * <code>string nickName = 2;</code> - * @return The bytes for nickName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNickNameBytes() { - java.lang.Object ref = nickName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nickName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (!getNickNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nickName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (!getNickNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nickName_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp other = (emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (!getNickName() - .equals(other.getNickName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + NICKNAME_FIELD_NUMBER; - hash = (53 * hash) + getNickName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SetPlayerNameRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SetPlayerNameRsp) - emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.internal_static_SetPlayerNameRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.internal_static_SetPlayerNameRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp.class, emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - nickName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.internal_static_SetPlayerNameRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp build() { - emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp buildPartial() { - emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp result = new emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp(this); - result.retcode_ = retcode_; - result.nickName_ = nickName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp) { - return mergeFrom((emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp other) { - if (other == emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (!other.getNickName().isEmpty()) { - nickName_ = other.nickName_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private java.lang.Object nickName_ = ""; - /** - * <code>string nickName = 2;</code> - * @return The nickName. - */ - public java.lang.String getNickName() { - java.lang.Object ref = nickName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nickName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string nickName = 2;</code> - * @return The bytes for nickName. - */ - public com.google.protobuf.ByteString - getNickNameBytes() { - java.lang.Object ref = nickName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nickName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string nickName = 2;</code> - * @param value The nickName to set. - * @return This builder for chaining. - */ - public Builder setNickName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nickName_ = value; - onChanged(); - return this; - } - /** - * <code>string nickName = 2;</code> - * @return This builder for chaining. - */ - public Builder clearNickName() { - - nickName_ = getDefaultInstance().getNickName(); - onChanged(); - return this; - } - /** - * <code>string nickName = 2;</code> - * @param value The bytes for nickName to set. - * @return This builder for chaining. - */ - public Builder setNickNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nickName_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SetPlayerNameRsp) - } - - // @@protoc_insertion_point(class_scope:SetPlayerNameRsp) - private static final emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp(); - } - - public static emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SetPlayerNameRsp> - PARSER = new com.google.protobuf.AbstractParser<SetPlayerNameRsp>() { - @java.lang.Override - public SetPlayerNameRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetPlayerNameRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SetPlayerNameRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SetPlayerNameRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SetPlayerNameRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SetPlayerNameRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026SetPlayerNameRsp.proto\"5\n\020SetPlayerNam" + - "eRsp\022\017\n\007retcode\030\001 \001(\005\022\020\n\010nickName\030\002 \001(\tB" + - "\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SetPlayerNameRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SetPlayerNameRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SetPlayerNameRsp_descriptor, - new java.lang.String[] { "Retcode", "NickName", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SetPlayerPropReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SetPlayerPropReqOuterClass.java deleted file mode 100644 index b5e0b943b..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SetPlayerPropReqOuterClass.java +++ /dev/null @@ -1,844 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SetPlayerPropReq.proto - -package emu.grasscutter.net.proto; - -public final class SetPlayerPropReqOuterClass { - private SetPlayerPropReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SetPlayerPropReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:SetPlayerPropReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated .PropValue propList = 1;</code> - */ - java.util.List<emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - getPropListList(); - /** - * <code>repeated .PropValue propList = 1;</code> - */ - emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropList(int index); - /** - * <code>repeated .PropValue propList = 1;</code> - */ - int getPropListCount(); - /** - * <code>repeated .PropValue propList = 1;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.PropValueOuterClass.PropValueOrBuilder> - getPropListOrBuilderList(); - /** - * <code>repeated .PropValue propList = 1;</code> - */ - emu.grasscutter.net.proto.PropValueOuterClass.PropValueOrBuilder getPropListOrBuilder( - int index); - } - /** - * Protobuf type {@code SetPlayerPropReq} - */ - public static final class SetPlayerPropReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SetPlayerPropReq) - SetPlayerPropReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetPlayerPropReq.newBuilder() to construct. - private SetPlayerPropReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SetPlayerPropReq() { - propList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetPlayerPropReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SetPlayerPropReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - propList_ = new java.util.ArrayList<emu.grasscutter.net.proto.PropValueOuterClass.PropValue>(); - mutable_bitField0_ |= 0x00000001; - } - propList_.add( - input.readMessage(emu.grasscutter.net.proto.PropValueOuterClass.PropValue.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - propList_ = java.util.Collections.unmodifiableList(propList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.internal_static_SetPlayerPropReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.internal_static_SetPlayerPropReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq.class, emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq.Builder.class); - } - - public static final int PROPLIST_FIELD_NUMBER = 1; - private java.util.List<emu.grasscutter.net.proto.PropValueOuterClass.PropValue> propList_; - /** - * <code>repeated .PropValue propList = 1;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.PropValueOuterClass.PropValue> getPropListList() { - return propList_; - } - /** - * <code>repeated .PropValue propList = 1;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.PropValueOuterClass.PropValueOrBuilder> - getPropListOrBuilderList() { - return propList_; - } - /** - * <code>repeated .PropValue propList = 1;</code> - */ - @java.lang.Override - public int getPropListCount() { - return propList_.size(); - } - /** - * <code>repeated .PropValue propList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropList(int index) { - return propList_.get(index); - } - /** - * <code>repeated .PropValue propList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.PropValueOuterClass.PropValueOrBuilder getPropListOrBuilder( - int index) { - return propList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < propList_.size(); i++) { - output.writeMessage(1, propList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < propList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, propList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq other = (emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq) obj; - - if (!getPropListList() - .equals(other.getPropListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPropListCount() > 0) { - hash = (37 * hash) + PROPLIST_FIELD_NUMBER; - hash = (53 * hash) + getPropListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SetPlayerPropReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SetPlayerPropReq) - emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.internal_static_SetPlayerPropReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.internal_static_SetPlayerPropReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq.class, emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPropListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (propListBuilder_ == null) { - propList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - propListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.internal_static_SetPlayerPropReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq build() { - emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq buildPartial() { - emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq result = new emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq(this); - int from_bitField0_ = bitField0_; - if (propListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - propList_ = java.util.Collections.unmodifiableList(propList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.propList_ = propList_; - } else { - result.propList_ = propListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq) { - return mergeFrom((emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq other) { - if (other == emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq.getDefaultInstance()) return this; - if (propListBuilder_ == null) { - if (!other.propList_.isEmpty()) { - if (propList_.isEmpty()) { - propList_ = other.propList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePropListIsMutable(); - propList_.addAll(other.propList_); - } - onChanged(); - } - } else { - if (!other.propList_.isEmpty()) { - if (propListBuilder_.isEmpty()) { - propListBuilder_.dispose(); - propListBuilder_ = null; - propList_ = other.propList_; - bitField0_ = (bitField0_ & ~0x00000001); - propListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPropListFieldBuilder() : null; - } else { - propListBuilder_.addAllMessages(other.propList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List<emu.grasscutter.net.proto.PropValueOuterClass.PropValue> propList_ = - java.util.Collections.emptyList(); - private void ensurePropListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - propList_ = new java.util.ArrayList<emu.grasscutter.net.proto.PropValueOuterClass.PropValue>(propList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.PropValueOuterClass.PropValue, emu.grasscutter.net.proto.PropValueOuterClass.PropValue.Builder, emu.grasscutter.net.proto.PropValueOuterClass.PropValueOrBuilder> propListBuilder_; - - /** - * <code>repeated .PropValue propList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.PropValueOuterClass.PropValue> getPropListList() { - if (propListBuilder_ == null) { - return java.util.Collections.unmodifiableList(propList_); - } else { - return propListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .PropValue propList = 1;</code> - */ - public int getPropListCount() { - if (propListBuilder_ == null) { - return propList_.size(); - } else { - return propListBuilder_.getCount(); - } - } - /** - * <code>repeated .PropValue propList = 1;</code> - */ - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropList(int index) { - if (propListBuilder_ == null) { - return propList_.get(index); - } else { - return propListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .PropValue propList = 1;</code> - */ - public Builder setPropList( - int index, emu.grasscutter.net.proto.PropValueOuterClass.PropValue value) { - if (propListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropListIsMutable(); - propList_.set(index, value); - onChanged(); - } else { - propListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .PropValue propList = 1;</code> - */ - public Builder setPropList( - int index, emu.grasscutter.net.proto.PropValueOuterClass.PropValue.Builder builderForValue) { - if (propListBuilder_ == null) { - ensurePropListIsMutable(); - propList_.set(index, builderForValue.build()); - onChanged(); - } else { - propListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .PropValue propList = 1;</code> - */ - public Builder addPropList(emu.grasscutter.net.proto.PropValueOuterClass.PropValue value) { - if (propListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropListIsMutable(); - propList_.add(value); - onChanged(); - } else { - propListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .PropValue propList = 1;</code> - */ - public Builder addPropList( - int index, emu.grasscutter.net.proto.PropValueOuterClass.PropValue value) { - if (propListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropListIsMutable(); - propList_.add(index, value); - onChanged(); - } else { - propListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .PropValue propList = 1;</code> - */ - public Builder addPropList( - emu.grasscutter.net.proto.PropValueOuterClass.PropValue.Builder builderForValue) { - if (propListBuilder_ == null) { - ensurePropListIsMutable(); - propList_.add(builderForValue.build()); - onChanged(); - } else { - propListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .PropValue propList = 1;</code> - */ - public Builder addPropList( - int index, emu.grasscutter.net.proto.PropValueOuterClass.PropValue.Builder builderForValue) { - if (propListBuilder_ == null) { - ensurePropListIsMutable(); - propList_.add(index, builderForValue.build()); - onChanged(); - } else { - propListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .PropValue propList = 1;</code> - */ - public Builder addAllPropList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.PropValueOuterClass.PropValue> values) { - if (propListBuilder_ == null) { - ensurePropListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, propList_); - onChanged(); - } else { - propListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .PropValue propList = 1;</code> - */ - public Builder clearPropList() { - if (propListBuilder_ == null) { - propList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - propListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .PropValue propList = 1;</code> - */ - public Builder removePropList(int index) { - if (propListBuilder_ == null) { - ensurePropListIsMutable(); - propList_.remove(index); - onChanged(); - } else { - propListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .PropValue propList = 1;</code> - */ - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue.Builder getPropListBuilder( - int index) { - return getPropListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .PropValue propList = 1;</code> - */ - public emu.grasscutter.net.proto.PropValueOuterClass.PropValueOrBuilder getPropListOrBuilder( - int index) { - if (propListBuilder_ == null) { - return propList_.get(index); } else { - return propListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .PropValue propList = 1;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.PropValueOuterClass.PropValueOrBuilder> - getPropListOrBuilderList() { - if (propListBuilder_ != null) { - return propListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(propList_); - } - } - /** - * <code>repeated .PropValue propList = 1;</code> - */ - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue.Builder addPropListBuilder() { - return getPropListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.PropValueOuterClass.PropValue.getDefaultInstance()); - } - /** - * <code>repeated .PropValue propList = 1;</code> - */ - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue.Builder addPropListBuilder( - int index) { - return getPropListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.PropValueOuterClass.PropValue.getDefaultInstance()); - } - /** - * <code>repeated .PropValue propList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.PropValueOuterClass.PropValue.Builder> - getPropListBuilderList() { - return getPropListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.PropValueOuterClass.PropValue, emu.grasscutter.net.proto.PropValueOuterClass.PropValue.Builder, emu.grasscutter.net.proto.PropValueOuterClass.PropValueOrBuilder> - getPropListFieldBuilder() { - if (propListBuilder_ == null) { - propListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.PropValueOuterClass.PropValue, emu.grasscutter.net.proto.PropValueOuterClass.PropValue.Builder, emu.grasscutter.net.proto.PropValueOuterClass.PropValueOrBuilder>( - propList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - propList_ = null; - } - return propListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SetPlayerPropReq) - } - - // @@protoc_insertion_point(class_scope:SetPlayerPropReq) - private static final emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq(); - } - - public static emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SetPlayerPropReq> - PARSER = new com.google.protobuf.AbstractParser<SetPlayerPropReq>() { - @java.lang.Override - public SetPlayerPropReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetPlayerPropReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SetPlayerPropReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SetPlayerPropReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerPropReqOuterClass.SetPlayerPropReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SetPlayerPropReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SetPlayerPropReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026SetPlayerPropReq.proto\032\017PropValue.prot" + - "o\"0\n\020SetPlayerPropReq\022\034\n\010propList\030\001 \003(\0132" + - "\n.PropValueB\033\n\031emu.grasscutter.net.proto" + - "b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.PropValueOuterClass.getDescriptor(), - }); - internal_static_SetPlayerPropReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SetPlayerPropReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SetPlayerPropReq_descriptor, - new java.lang.String[] { "PropList", }); - emu.grasscutter.net.proto.PropValueOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SetPlayerPropRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SetPlayerPropRspOuterClass.java deleted file mode 100644 index b80ab574f..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SetPlayerPropRspOuterClass.java +++ /dev/null @@ -1,536 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SetPlayerPropRsp.proto - -package emu.grasscutter.net.proto; - -public final class SetPlayerPropRspOuterClass { - private SetPlayerPropRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SetPlayerPropRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:SetPlayerPropRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - } - /** - * Protobuf type {@code SetPlayerPropRsp} - */ - public static final class SetPlayerPropRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SetPlayerPropRsp) - SetPlayerPropRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetPlayerPropRsp.newBuilder() to construct. - private SetPlayerPropRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SetPlayerPropRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetPlayerPropRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SetPlayerPropRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.internal_static_SetPlayerPropRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.internal_static_SetPlayerPropRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp.class, emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp other = (emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SetPlayerPropRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SetPlayerPropRsp) - emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.internal_static_SetPlayerPropRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.internal_static_SetPlayerPropRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp.class, emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.internal_static_SetPlayerPropRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp build() { - emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp buildPartial() { - emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp result = new emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp(this); - result.retcode_ = retcode_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp) { - return mergeFrom((emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp other) { - if (other == emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SetPlayerPropRsp) - } - - // @@protoc_insertion_point(class_scope:SetPlayerPropRsp) - private static final emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp(); - } - - public static emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SetPlayerPropRsp> - PARSER = new com.google.protobuf.AbstractParser<SetPlayerPropRsp>() { - @java.lang.Override - public SetPlayerPropRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetPlayerPropRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SetPlayerPropRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SetPlayerPropRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerPropRspOuterClass.SetPlayerPropRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SetPlayerPropRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SetPlayerPropRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026SetPlayerPropRsp.proto\"#\n\020SetPlayerPro" + - "pRsp\022\017\n\007retcode\030\001 \001(\005B\033\n\031emu.grasscutter" + - ".net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SetPlayerPropRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SetPlayerPropRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SetPlayerPropRsp_descriptor, - new java.lang.String[] { "Retcode", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SetPlayerSignatureReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SetPlayerSignatureReqOuterClass.java deleted file mode 100644 index 75dd9ccc4..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SetPlayerSignatureReqOuterClass.java +++ /dev/null @@ -1,616 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SetPlayerSignatureReq.proto - -package emu.grasscutter.net.proto; - -public final class SetPlayerSignatureReqOuterClass { - private SetPlayerSignatureReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SetPlayerSignatureReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:SetPlayerSignatureReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>string signature = 1;</code> - * @return The signature. - */ - java.lang.String getSignature(); - /** - * <code>string signature = 1;</code> - * @return The bytes for signature. - */ - com.google.protobuf.ByteString - getSignatureBytes(); - } - /** - * Protobuf type {@code SetPlayerSignatureReq} - */ - public static final class SetPlayerSignatureReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SetPlayerSignatureReq) - SetPlayerSignatureReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetPlayerSignatureReq.newBuilder() to construct. - private SetPlayerSignatureReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SetPlayerSignatureReq() { - signature_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetPlayerSignatureReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SetPlayerSignatureReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - signature_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.internal_static_SetPlayerSignatureReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.internal_static_SetPlayerSignatureReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq.class, emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq.Builder.class); - } - - public static final int SIGNATURE_FIELD_NUMBER = 1; - private volatile java.lang.Object signature_; - /** - * <code>string signature = 1;</code> - * @return The signature. - */ - @java.lang.Override - public java.lang.String getSignature() { - java.lang.Object ref = signature_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signature_ = s; - return s; - } - } - /** - * <code>string signature = 1;</code> - * @return The bytes for signature. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSignatureBytes() { - java.lang.Object ref = signature_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signature_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSignatureBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, signature_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSignatureBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, signature_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq other = (emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq) obj; - - if (!getSignature() - .equals(other.getSignature())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getSignature().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SetPlayerSignatureReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SetPlayerSignatureReq) - emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.internal_static_SetPlayerSignatureReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.internal_static_SetPlayerSignatureReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq.class, emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - signature_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.internal_static_SetPlayerSignatureReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq build() { - emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq buildPartial() { - emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq result = new emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq(this); - result.signature_ = signature_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq) { - return mergeFrom((emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq other) { - if (other == emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq.getDefaultInstance()) return this; - if (!other.getSignature().isEmpty()) { - signature_ = other.signature_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object signature_ = ""; - /** - * <code>string signature = 1;</code> - * @return The signature. - */ - public java.lang.String getSignature() { - java.lang.Object ref = signature_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signature_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string signature = 1;</code> - * @return The bytes for signature. - */ - public com.google.protobuf.ByteString - getSignatureBytes() { - java.lang.Object ref = signature_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signature_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string signature = 1;</code> - * @param value The signature to set. - * @return This builder for chaining. - */ - public Builder setSignature( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signature_ = value; - onChanged(); - return this; - } - /** - * <code>string signature = 1;</code> - * @return This builder for chaining. - */ - public Builder clearSignature() { - - signature_ = getDefaultInstance().getSignature(); - onChanged(); - return this; - } - /** - * <code>string signature = 1;</code> - * @param value The bytes for signature to set. - * @return This builder for chaining. - */ - public Builder setSignatureBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signature_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SetPlayerSignatureReq) - } - - // @@protoc_insertion_point(class_scope:SetPlayerSignatureReq) - private static final emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq(); - } - - public static emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SetPlayerSignatureReq> - PARSER = new com.google.protobuf.AbstractParser<SetPlayerSignatureReq>() { - @java.lang.Override - public SetPlayerSignatureReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetPlayerSignatureReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SetPlayerSignatureReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SetPlayerSignatureReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SetPlayerSignatureReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SetPlayerSignatureReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033SetPlayerSignatureReq.proto\"*\n\025SetPlay" + - "erSignatureReq\022\021\n\tsignature\030\001 \001(\tB\033\n\031emu" + - ".grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SetPlayerSignatureReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SetPlayerSignatureReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SetPlayerSignatureReq_descriptor, - new java.lang.String[] { "Signature", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SetPlayerSignatureRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SetPlayerSignatureRspOuterClass.java deleted file mode 100644 index b944898cd..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SetPlayerSignatureRspOuterClass.java +++ /dev/null @@ -1,687 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SetPlayerSignatureRsp.proto - -package emu.grasscutter.net.proto; - -public final class SetPlayerSignatureRspOuterClass { - private SetPlayerSignatureRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SetPlayerSignatureRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:SetPlayerSignatureRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>string signature = 2;</code> - * @return The signature. - */ - java.lang.String getSignature(); - /** - * <code>string signature = 2;</code> - * @return The bytes for signature. - */ - com.google.protobuf.ByteString - getSignatureBytes(); - } - /** - * Protobuf type {@code SetPlayerSignatureRsp} - */ - public static final class SetPlayerSignatureRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SetPlayerSignatureRsp) - SetPlayerSignatureRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetPlayerSignatureRsp.newBuilder() to construct. - private SetPlayerSignatureRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SetPlayerSignatureRsp() { - signature_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetPlayerSignatureRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SetPlayerSignatureRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - signature_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.internal_static_SetPlayerSignatureRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.internal_static_SetPlayerSignatureRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp.class, emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int SIGNATURE_FIELD_NUMBER = 2; - private volatile java.lang.Object signature_; - /** - * <code>string signature = 2;</code> - * @return The signature. - */ - @java.lang.Override - public java.lang.String getSignature() { - java.lang.Object ref = signature_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signature_ = s; - return s; - } - } - /** - * <code>string signature = 2;</code> - * @return The bytes for signature. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSignatureBytes() { - java.lang.Object ref = signature_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signature_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (!getSignatureBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, signature_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (!getSignatureBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, signature_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp other = (emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (!getSignature() - .equals(other.getSignature())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getSignature().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SetPlayerSignatureRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SetPlayerSignatureRsp) - emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.internal_static_SetPlayerSignatureRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.internal_static_SetPlayerSignatureRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp.class, emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - signature_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.internal_static_SetPlayerSignatureRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp build() { - emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp buildPartial() { - emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp result = new emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp(this); - result.retcode_ = retcode_; - result.signature_ = signature_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp) { - return mergeFrom((emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp other) { - if (other == emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (!other.getSignature().isEmpty()) { - signature_ = other.signature_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private java.lang.Object signature_ = ""; - /** - * <code>string signature = 2;</code> - * @return The signature. - */ - public java.lang.String getSignature() { - java.lang.Object ref = signature_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signature_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string signature = 2;</code> - * @return The bytes for signature. - */ - public com.google.protobuf.ByteString - getSignatureBytes() { - java.lang.Object ref = signature_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signature_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string signature = 2;</code> - * @param value The signature to set. - * @return This builder for chaining. - */ - public Builder setSignature( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signature_ = value; - onChanged(); - return this; - } - /** - * <code>string signature = 2;</code> - * @return This builder for chaining. - */ - public Builder clearSignature() { - - signature_ = getDefaultInstance().getSignature(); - onChanged(); - return this; - } - /** - * <code>string signature = 2;</code> - * @param value The bytes for signature to set. - * @return This builder for chaining. - */ - public Builder setSignatureBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signature_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SetPlayerSignatureRsp) - } - - // @@protoc_insertion_point(class_scope:SetPlayerSignatureRsp) - private static final emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp(); - } - - public static emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SetPlayerSignatureRsp> - PARSER = new com.google.protobuf.AbstractParser<SetPlayerSignatureRsp>() { - @java.lang.Override - public SetPlayerSignatureRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetPlayerSignatureRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SetPlayerSignatureRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SetPlayerSignatureRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SetPlayerSignatureRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SetPlayerSignatureRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033SetPlayerSignatureRsp.proto\";\n\025SetPlay" + - "erSignatureRsp\022\017\n\007retcode\030\001 \001(\005\022\021\n\tsigna" + - "ture\030\002 \001(\tB\033\n\031emu.grasscutter.net.protob" + - "\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SetPlayerSignatureRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SetPlayerSignatureRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SetPlayerSignatureRsp_descriptor, - new java.lang.String[] { "Retcode", "Signature", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SetUpAvatarTeamReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SetUpAvatarTeamReqOuterClass.java deleted file mode 100644 index 481886a91..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SetUpAvatarTeamReqOuterClass.java +++ /dev/null @@ -1,805 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SetUpAvatarTeamReq.proto - -package emu.grasscutter.net.proto; - -public final class SetUpAvatarTeamReqOuterClass { - private SetUpAvatarTeamReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SetUpAvatarTeamReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:SetUpAvatarTeamReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 teamId = 1;</code> - * @return The teamId. - */ - int getTeamId(); - - /** - * <code>repeated uint64 avatarTeamGuidList = 2;</code> - * @return A list containing the avatarTeamGuidList. - */ - java.util.List<java.lang.Long> getAvatarTeamGuidListList(); - /** - * <code>repeated uint64 avatarTeamGuidList = 2;</code> - * @return The count of avatarTeamGuidList. - */ - int getAvatarTeamGuidListCount(); - /** - * <code>repeated uint64 avatarTeamGuidList = 2;</code> - * @param index The index of the element to return. - * @return The avatarTeamGuidList at the given index. - */ - long getAvatarTeamGuidList(int index); - - /** - * <code>uint64 curAvatarGuid = 3;</code> - * @return The curAvatarGuid. - */ - long getCurAvatarGuid(); - } - /** - * Protobuf type {@code SetUpAvatarTeamReq} - */ - public static final class SetUpAvatarTeamReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SetUpAvatarTeamReq) - SetUpAvatarTeamReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetUpAvatarTeamReq.newBuilder() to construct. - private SetUpAvatarTeamReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SetUpAvatarTeamReq() { - avatarTeamGuidList_ = emptyLongList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetUpAvatarTeamReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SetUpAvatarTeamReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - teamId_ = input.readUInt32(); - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - avatarTeamGuidList_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - avatarTeamGuidList_.addLong(input.readUInt64()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - avatarTeamGuidList_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - avatarTeamGuidList_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - case 24: { - - curAvatarGuid_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - avatarTeamGuidList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.internal_static_SetUpAvatarTeamReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.internal_static_SetUpAvatarTeamReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq.class, emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq.Builder.class); - } - - public static final int TEAMID_FIELD_NUMBER = 1; - private int teamId_; - /** - * <code>uint32 teamId = 1;</code> - * @return The teamId. - */ - @java.lang.Override - public int getTeamId() { - return teamId_; - } - - public static final int AVATARTEAMGUIDLIST_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.LongList avatarTeamGuidList_; - /** - * <code>repeated uint64 avatarTeamGuidList = 2;</code> - * @return A list containing the avatarTeamGuidList. - */ - @java.lang.Override - public java.util.List<java.lang.Long> - getAvatarTeamGuidListList() { - return avatarTeamGuidList_; - } - /** - * <code>repeated uint64 avatarTeamGuidList = 2;</code> - * @return The count of avatarTeamGuidList. - */ - public int getAvatarTeamGuidListCount() { - return avatarTeamGuidList_.size(); - } - /** - * <code>repeated uint64 avatarTeamGuidList = 2;</code> - * @param index The index of the element to return. - * @return The avatarTeamGuidList at the given index. - */ - public long getAvatarTeamGuidList(int index) { - return avatarTeamGuidList_.getLong(index); - } - private int avatarTeamGuidListMemoizedSerializedSize = -1; - - public static final int CURAVATARGUID_FIELD_NUMBER = 3; - private long curAvatarGuid_; - /** - * <code>uint64 curAvatarGuid = 3;</code> - * @return The curAvatarGuid. - */ - @java.lang.Override - public long getCurAvatarGuid() { - return curAvatarGuid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (teamId_ != 0) { - output.writeUInt32(1, teamId_); - } - if (getAvatarTeamGuidListList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(avatarTeamGuidListMemoizedSerializedSize); - } - for (int i = 0; i < avatarTeamGuidList_.size(); i++) { - output.writeUInt64NoTag(avatarTeamGuidList_.getLong(i)); - } - if (curAvatarGuid_ != 0L) { - output.writeUInt64(3, curAvatarGuid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (teamId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, teamId_); - } - { - int dataSize = 0; - for (int i = 0; i < avatarTeamGuidList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(avatarTeamGuidList_.getLong(i)); - } - size += dataSize; - if (!getAvatarTeamGuidListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - avatarTeamGuidListMemoizedSerializedSize = dataSize; - } - if (curAvatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, curAvatarGuid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq other = (emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq) obj; - - if (getTeamId() - != other.getTeamId()) return false; - if (!getAvatarTeamGuidListList() - .equals(other.getAvatarTeamGuidListList())) return false; - if (getCurAvatarGuid() - != other.getCurAvatarGuid()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TEAMID_FIELD_NUMBER; - hash = (53 * hash) + getTeamId(); - if (getAvatarTeamGuidListCount() > 0) { - hash = (37 * hash) + AVATARTEAMGUIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getAvatarTeamGuidListList().hashCode(); - } - hash = (37 * hash) + CURAVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCurAvatarGuid()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SetUpAvatarTeamReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SetUpAvatarTeamReq) - emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.internal_static_SetUpAvatarTeamReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.internal_static_SetUpAvatarTeamReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq.class, emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - teamId_ = 0; - - avatarTeamGuidList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - curAvatarGuid_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.internal_static_SetUpAvatarTeamReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq build() { - emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq buildPartial() { - emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq result = new emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq(this); - int from_bitField0_ = bitField0_; - result.teamId_ = teamId_; - if (((bitField0_ & 0x00000001) != 0)) { - avatarTeamGuidList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.avatarTeamGuidList_ = avatarTeamGuidList_; - result.curAvatarGuid_ = curAvatarGuid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq) { - return mergeFrom((emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq other) { - if (other == emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq.getDefaultInstance()) return this; - if (other.getTeamId() != 0) { - setTeamId(other.getTeamId()); - } - if (!other.avatarTeamGuidList_.isEmpty()) { - if (avatarTeamGuidList_.isEmpty()) { - avatarTeamGuidList_ = other.avatarTeamGuidList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAvatarTeamGuidListIsMutable(); - avatarTeamGuidList_.addAll(other.avatarTeamGuidList_); - } - onChanged(); - } - if (other.getCurAvatarGuid() != 0L) { - setCurAvatarGuid(other.getCurAvatarGuid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int teamId_ ; - /** - * <code>uint32 teamId = 1;</code> - * @return The teamId. - */ - @java.lang.Override - public int getTeamId() { - return teamId_; - } - /** - * <code>uint32 teamId = 1;</code> - * @param value The teamId to set. - * @return This builder for chaining. - */ - public Builder setTeamId(int value) { - - teamId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 teamId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTeamId() { - - teamId_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList avatarTeamGuidList_ = emptyLongList(); - private void ensureAvatarTeamGuidListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - avatarTeamGuidList_ = mutableCopy(avatarTeamGuidList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint64 avatarTeamGuidList = 2;</code> - * @return A list containing the avatarTeamGuidList. - */ - public java.util.List<java.lang.Long> - getAvatarTeamGuidListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(avatarTeamGuidList_) : avatarTeamGuidList_; - } - /** - * <code>repeated uint64 avatarTeamGuidList = 2;</code> - * @return The count of avatarTeamGuidList. - */ - public int getAvatarTeamGuidListCount() { - return avatarTeamGuidList_.size(); - } - /** - * <code>repeated uint64 avatarTeamGuidList = 2;</code> - * @param index The index of the element to return. - * @return The avatarTeamGuidList at the given index. - */ - public long getAvatarTeamGuidList(int index) { - return avatarTeamGuidList_.getLong(index); - } - /** - * <code>repeated uint64 avatarTeamGuidList = 2;</code> - * @param index The index to set the value at. - * @param value The avatarTeamGuidList to set. - * @return This builder for chaining. - */ - public Builder setAvatarTeamGuidList( - int index, long value) { - ensureAvatarTeamGuidListIsMutable(); - avatarTeamGuidList_.setLong(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint64 avatarTeamGuidList = 2;</code> - * @param value The avatarTeamGuidList to add. - * @return This builder for chaining. - */ - public Builder addAvatarTeamGuidList(long value) { - ensureAvatarTeamGuidListIsMutable(); - avatarTeamGuidList_.addLong(value); - onChanged(); - return this; - } - /** - * <code>repeated uint64 avatarTeamGuidList = 2;</code> - * @param values The avatarTeamGuidList to add. - * @return This builder for chaining. - */ - public Builder addAllAvatarTeamGuidList( - java.lang.Iterable<? extends java.lang.Long> values) { - ensureAvatarTeamGuidListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, avatarTeamGuidList_); - onChanged(); - return this; - } - /** - * <code>repeated uint64 avatarTeamGuidList = 2;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarTeamGuidList() { - avatarTeamGuidList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private long curAvatarGuid_ ; - /** - * <code>uint64 curAvatarGuid = 3;</code> - * @return The curAvatarGuid. - */ - @java.lang.Override - public long getCurAvatarGuid() { - return curAvatarGuid_; - } - /** - * <code>uint64 curAvatarGuid = 3;</code> - * @param value The curAvatarGuid to set. - * @return This builder for chaining. - */ - public Builder setCurAvatarGuid(long value) { - - curAvatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 curAvatarGuid = 3;</code> - * @return This builder for chaining. - */ - public Builder clearCurAvatarGuid() { - - curAvatarGuid_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SetUpAvatarTeamReq) - } - - // @@protoc_insertion_point(class_scope:SetUpAvatarTeamReq) - private static final emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq(); - } - - public static emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SetUpAvatarTeamReq> - PARSER = new com.google.protobuf.AbstractParser<SetUpAvatarTeamReq>() { - @java.lang.Override - public SetUpAvatarTeamReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetUpAvatarTeamReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SetUpAvatarTeamReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SetUpAvatarTeamReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SetUpAvatarTeamReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SetUpAvatarTeamReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030SetUpAvatarTeamReq.proto\"W\n\022SetUpAvata" + - "rTeamReq\022\016\n\006teamId\030\001 \001(\r\022\032\n\022avatarTeamGu" + - "idList\030\002 \003(\004\022\025\n\rcurAvatarGuid\030\003 \001(\004B\033\n\031e" + - "mu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SetUpAvatarTeamReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SetUpAvatarTeamReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SetUpAvatarTeamReq_descriptor, - new java.lang.String[] { "TeamId", "AvatarTeamGuidList", "CurAvatarGuid", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SetUpAvatarTeamRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SetUpAvatarTeamRspOuterClass.java deleted file mode 100644 index f1eda2402..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SetUpAvatarTeamRspOuterClass.java +++ /dev/null @@ -1,876 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SetUpAvatarTeamRsp.proto - -package emu.grasscutter.net.proto; - -public final class SetUpAvatarTeamRspOuterClass { - private SetUpAvatarTeamRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SetUpAvatarTeamRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:SetUpAvatarTeamRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint32 teamId = 2;</code> - * @return The teamId. - */ - int getTeamId(); - - /** - * <code>repeated uint64 avatarTeamGuidList = 3;</code> - * @return A list containing the avatarTeamGuidList. - */ - java.util.List<java.lang.Long> getAvatarTeamGuidListList(); - /** - * <code>repeated uint64 avatarTeamGuidList = 3;</code> - * @return The count of avatarTeamGuidList. - */ - int getAvatarTeamGuidListCount(); - /** - * <code>repeated uint64 avatarTeamGuidList = 3;</code> - * @param index The index of the element to return. - * @return The avatarTeamGuidList at the given index. - */ - long getAvatarTeamGuidList(int index); - - /** - * <code>uint64 curAvatarGuid = 4;</code> - * @return The curAvatarGuid. - */ - long getCurAvatarGuid(); - } - /** - * Protobuf type {@code SetUpAvatarTeamRsp} - */ - public static final class SetUpAvatarTeamRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SetUpAvatarTeamRsp) - SetUpAvatarTeamRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetUpAvatarTeamRsp.newBuilder() to construct. - private SetUpAvatarTeamRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SetUpAvatarTeamRsp() { - avatarTeamGuidList_ = emptyLongList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetUpAvatarTeamRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SetUpAvatarTeamRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - teamId_ = input.readUInt32(); - break; - } - case 24: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - avatarTeamGuidList_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - avatarTeamGuidList_.addLong(input.readUInt64()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - avatarTeamGuidList_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - avatarTeamGuidList_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - case 32: { - - curAvatarGuid_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - avatarTeamGuidList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.internal_static_SetUpAvatarTeamRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.internal_static_SetUpAvatarTeamRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp.class, emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int TEAMID_FIELD_NUMBER = 2; - private int teamId_; - /** - * <code>uint32 teamId = 2;</code> - * @return The teamId. - */ - @java.lang.Override - public int getTeamId() { - return teamId_; - } - - public static final int AVATARTEAMGUIDLIST_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.LongList avatarTeamGuidList_; - /** - * <code>repeated uint64 avatarTeamGuidList = 3;</code> - * @return A list containing the avatarTeamGuidList. - */ - @java.lang.Override - public java.util.List<java.lang.Long> - getAvatarTeamGuidListList() { - return avatarTeamGuidList_; - } - /** - * <code>repeated uint64 avatarTeamGuidList = 3;</code> - * @return The count of avatarTeamGuidList. - */ - public int getAvatarTeamGuidListCount() { - return avatarTeamGuidList_.size(); - } - /** - * <code>repeated uint64 avatarTeamGuidList = 3;</code> - * @param index The index of the element to return. - * @return The avatarTeamGuidList at the given index. - */ - public long getAvatarTeamGuidList(int index) { - return avatarTeamGuidList_.getLong(index); - } - private int avatarTeamGuidListMemoizedSerializedSize = -1; - - public static final int CURAVATARGUID_FIELD_NUMBER = 4; - private long curAvatarGuid_; - /** - * <code>uint64 curAvatarGuid = 4;</code> - * @return The curAvatarGuid. - */ - @java.lang.Override - public long getCurAvatarGuid() { - return curAvatarGuid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (teamId_ != 0) { - output.writeUInt32(2, teamId_); - } - if (getAvatarTeamGuidListList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(avatarTeamGuidListMemoizedSerializedSize); - } - for (int i = 0; i < avatarTeamGuidList_.size(); i++) { - output.writeUInt64NoTag(avatarTeamGuidList_.getLong(i)); - } - if (curAvatarGuid_ != 0L) { - output.writeUInt64(4, curAvatarGuid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (teamId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, teamId_); - } - { - int dataSize = 0; - for (int i = 0; i < avatarTeamGuidList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(avatarTeamGuidList_.getLong(i)); - } - size += dataSize; - if (!getAvatarTeamGuidListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - avatarTeamGuidListMemoizedSerializedSize = dataSize; - } - if (curAvatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, curAvatarGuid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp other = (emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getTeamId() - != other.getTeamId()) return false; - if (!getAvatarTeamGuidListList() - .equals(other.getAvatarTeamGuidListList())) return false; - if (getCurAvatarGuid() - != other.getCurAvatarGuid()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + TEAMID_FIELD_NUMBER; - hash = (53 * hash) + getTeamId(); - if (getAvatarTeamGuidListCount() > 0) { - hash = (37 * hash) + AVATARTEAMGUIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getAvatarTeamGuidListList().hashCode(); - } - hash = (37 * hash) + CURAVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCurAvatarGuid()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SetUpAvatarTeamRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SetUpAvatarTeamRsp) - emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.internal_static_SetUpAvatarTeamRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.internal_static_SetUpAvatarTeamRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp.class, emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - teamId_ = 0; - - avatarTeamGuidList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - curAvatarGuid_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.internal_static_SetUpAvatarTeamRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp build() { - emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp buildPartial() { - emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp result = new emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp(this); - int from_bitField0_ = bitField0_; - result.retcode_ = retcode_; - result.teamId_ = teamId_; - if (((bitField0_ & 0x00000001) != 0)) { - avatarTeamGuidList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.avatarTeamGuidList_ = avatarTeamGuidList_; - result.curAvatarGuid_ = curAvatarGuid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp) { - return mergeFrom((emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp other) { - if (other == emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getTeamId() != 0) { - setTeamId(other.getTeamId()); - } - if (!other.avatarTeamGuidList_.isEmpty()) { - if (avatarTeamGuidList_.isEmpty()) { - avatarTeamGuidList_ = other.avatarTeamGuidList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAvatarTeamGuidListIsMutable(); - avatarTeamGuidList_.addAll(other.avatarTeamGuidList_); - } - onChanged(); - } - if (other.getCurAvatarGuid() != 0L) { - setCurAvatarGuid(other.getCurAvatarGuid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int teamId_ ; - /** - * <code>uint32 teamId = 2;</code> - * @return The teamId. - */ - @java.lang.Override - public int getTeamId() { - return teamId_; - } - /** - * <code>uint32 teamId = 2;</code> - * @param value The teamId to set. - * @return This builder for chaining. - */ - public Builder setTeamId(int value) { - - teamId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 teamId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearTeamId() { - - teamId_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList avatarTeamGuidList_ = emptyLongList(); - private void ensureAvatarTeamGuidListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - avatarTeamGuidList_ = mutableCopy(avatarTeamGuidList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint64 avatarTeamGuidList = 3;</code> - * @return A list containing the avatarTeamGuidList. - */ - public java.util.List<java.lang.Long> - getAvatarTeamGuidListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(avatarTeamGuidList_) : avatarTeamGuidList_; - } - /** - * <code>repeated uint64 avatarTeamGuidList = 3;</code> - * @return The count of avatarTeamGuidList. - */ - public int getAvatarTeamGuidListCount() { - return avatarTeamGuidList_.size(); - } - /** - * <code>repeated uint64 avatarTeamGuidList = 3;</code> - * @param index The index of the element to return. - * @return The avatarTeamGuidList at the given index. - */ - public long getAvatarTeamGuidList(int index) { - return avatarTeamGuidList_.getLong(index); - } - /** - * <code>repeated uint64 avatarTeamGuidList = 3;</code> - * @param index The index to set the value at. - * @param value The avatarTeamGuidList to set. - * @return This builder for chaining. - */ - public Builder setAvatarTeamGuidList( - int index, long value) { - ensureAvatarTeamGuidListIsMutable(); - avatarTeamGuidList_.setLong(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint64 avatarTeamGuidList = 3;</code> - * @param value The avatarTeamGuidList to add. - * @return This builder for chaining. - */ - public Builder addAvatarTeamGuidList(long value) { - ensureAvatarTeamGuidListIsMutable(); - avatarTeamGuidList_.addLong(value); - onChanged(); - return this; - } - /** - * <code>repeated uint64 avatarTeamGuidList = 3;</code> - * @param values The avatarTeamGuidList to add. - * @return This builder for chaining. - */ - public Builder addAllAvatarTeamGuidList( - java.lang.Iterable<? extends java.lang.Long> values) { - ensureAvatarTeamGuidListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, avatarTeamGuidList_); - onChanged(); - return this; - } - /** - * <code>repeated uint64 avatarTeamGuidList = 3;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarTeamGuidList() { - avatarTeamGuidList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private long curAvatarGuid_ ; - /** - * <code>uint64 curAvatarGuid = 4;</code> - * @return The curAvatarGuid. - */ - @java.lang.Override - public long getCurAvatarGuid() { - return curAvatarGuid_; - } - /** - * <code>uint64 curAvatarGuid = 4;</code> - * @param value The curAvatarGuid to set. - * @return This builder for chaining. - */ - public Builder setCurAvatarGuid(long value) { - - curAvatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 curAvatarGuid = 4;</code> - * @return This builder for chaining. - */ - public Builder clearCurAvatarGuid() { - - curAvatarGuid_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SetUpAvatarTeamRsp) - } - - // @@protoc_insertion_point(class_scope:SetUpAvatarTeamRsp) - private static final emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp(); - } - - public static emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SetUpAvatarTeamRsp> - PARSER = new com.google.protobuf.AbstractParser<SetUpAvatarTeamRsp>() { - @java.lang.Override - public SetUpAvatarTeamRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetUpAvatarTeamRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SetUpAvatarTeamRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SetUpAvatarTeamRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SetUpAvatarTeamRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SetUpAvatarTeamRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030SetUpAvatarTeamRsp.proto\"h\n\022SetUpAvata" + - "rTeamRsp\022\017\n\007retcode\030\001 \001(\005\022\016\n\006teamId\030\002 \001(" + - "\r\022\032\n\022avatarTeamGuidList\030\003 \003(\004\022\025\n\rcurAvat" + - "arGuid\030\004 \001(\004B\033\n\031emu.grasscutter.net.prot" + - "ob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SetUpAvatarTeamRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SetUpAvatarTeamRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SetUpAvatarTeamRsp_descriptor, - new java.lang.String[] { "Retcode", "TeamId", "AvatarTeamGuidList", "CurAvatarGuid", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ShopCardProductOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ShopCardProductOuterClass.java deleted file mode 100644 index 1a0de82c2..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ShopCardProductOuterClass.java +++ /dev/null @@ -1,1423 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ShopCardProduct.proto - -package emu.grasscutter.net.proto; - -public final class ShopCardProductOuterClass { - private ShopCardProductOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ShopCardProductOrBuilder extends - // @@protoc_insertion_point(interface_extends:ShopCardProduct) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>string productId = 1;</code> - * @return The productId. - */ - java.lang.String getProductId(); - /** - * <code>string productId = 1;</code> - * @return The bytes for productId. - */ - com.google.protobuf.ByteString - getProductIdBytes(); - - /** - * <code>string priceTier = 2;</code> - * @return The priceTier. - */ - java.lang.String getPriceTier(); - /** - * <code>string priceTier = 2;</code> - * @return The bytes for priceTier. - */ - com.google.protobuf.ByteString - getPriceTierBytes(); - - /** - * <code>uint32 mcoinBase = 3;</code> - * @return The mcoinBase. - */ - int getMcoinBase(); - - /** - * <code>uint32 hcoinPerDay = 4;</code> - * @return The hcoinPerDay. - */ - int getHcoinPerDay(); - - /** - * <code>uint32 days = 5;</code> - * @return The days. - */ - int getDays(); - - /** - * <code>uint32 remainRewardDays = 6;</code> - * @return The remainRewardDays. - */ - int getRemainRewardDays(); - - /** - * <code>uint32 cardProductType = 7;</code> - * @return The cardProductType. - */ - int getCardProductType(); - - /** - * <code>.ResinCard resinCard = 101;</code> - * @return Whether the resinCard field is set. - */ - boolean hasResinCard(); - /** - * <code>.ResinCard resinCard = 101;</code> - * @return The resinCard. - */ - emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard getResinCard(); - /** - * <code>.ResinCard resinCard = 101;</code> - */ - emu.grasscutter.net.proto.ResinCardOuterClass.ResinCardOrBuilder getResinCardOrBuilder(); - - public emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct.ExtraCardDataCase getExtraCardDataCase(); - } - /** - * Protobuf type {@code ShopCardProduct} - */ - public static final class ShopCardProduct extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ShopCardProduct) - ShopCardProductOrBuilder { - private static final long serialVersionUID = 0L; - // Use ShopCardProduct.newBuilder() to construct. - private ShopCardProduct(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ShopCardProduct() { - productId_ = ""; - priceTier_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ShopCardProduct(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ShopCardProduct( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - productId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - priceTier_ = s; - break; - } - case 24: { - - mcoinBase_ = input.readUInt32(); - break; - } - case 32: { - - hcoinPerDay_ = input.readUInt32(); - break; - } - case 40: { - - days_ = input.readUInt32(); - break; - } - case 48: { - - remainRewardDays_ = input.readUInt32(); - break; - } - case 56: { - - cardProductType_ = input.readUInt32(); - break; - } - case 810: { - emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard.Builder subBuilder = null; - if (extraCardDataCase_ == 101) { - subBuilder = ((emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard) extraCardData_).toBuilder(); - } - extraCardData_ = - input.readMessage(emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard) extraCardData_); - extraCardData_ = subBuilder.buildPartial(); - } - extraCardDataCase_ = 101; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ShopCardProductOuterClass.internal_static_ShopCardProduct_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ShopCardProductOuterClass.internal_static_ShopCardProduct_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct.class, emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct.Builder.class); - } - - private int extraCardDataCase_ = 0; - private java.lang.Object extraCardData_; - public enum ExtraCardDataCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - RESINCARD(101), - EXTRACARDDATA_NOT_SET(0); - private final int value; - private ExtraCardDataCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ExtraCardDataCase valueOf(int value) { - return forNumber(value); - } - - public static ExtraCardDataCase forNumber(int value) { - switch (value) { - case 101: return RESINCARD; - case 0: return EXTRACARDDATA_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ExtraCardDataCase - getExtraCardDataCase() { - return ExtraCardDataCase.forNumber( - extraCardDataCase_); - } - - public static final int PRODUCTID_FIELD_NUMBER = 1; - private volatile java.lang.Object productId_; - /** - * <code>string productId = 1;</code> - * @return The productId. - */ - @java.lang.Override - public java.lang.String getProductId() { - java.lang.Object ref = productId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - productId_ = s; - return s; - } - } - /** - * <code>string productId = 1;</code> - * @return The bytes for productId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getProductIdBytes() { - java.lang.Object ref = productId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - productId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PRICETIER_FIELD_NUMBER = 2; - private volatile java.lang.Object priceTier_; - /** - * <code>string priceTier = 2;</code> - * @return The priceTier. - */ - @java.lang.Override - public java.lang.String getPriceTier() { - java.lang.Object ref = priceTier_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - priceTier_ = s; - return s; - } - } - /** - * <code>string priceTier = 2;</code> - * @return The bytes for priceTier. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPriceTierBytes() { - java.lang.Object ref = priceTier_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - priceTier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MCOINBASE_FIELD_NUMBER = 3; - private int mcoinBase_; - /** - * <code>uint32 mcoinBase = 3;</code> - * @return The mcoinBase. - */ - @java.lang.Override - public int getMcoinBase() { - return mcoinBase_; - } - - public static final int HCOINPERDAY_FIELD_NUMBER = 4; - private int hcoinPerDay_; - /** - * <code>uint32 hcoinPerDay = 4;</code> - * @return The hcoinPerDay. - */ - @java.lang.Override - public int getHcoinPerDay() { - return hcoinPerDay_; - } - - public static final int DAYS_FIELD_NUMBER = 5; - private int days_; - /** - * <code>uint32 days = 5;</code> - * @return The days. - */ - @java.lang.Override - public int getDays() { - return days_; - } - - public static final int REMAINREWARDDAYS_FIELD_NUMBER = 6; - private int remainRewardDays_; - /** - * <code>uint32 remainRewardDays = 6;</code> - * @return The remainRewardDays. - */ - @java.lang.Override - public int getRemainRewardDays() { - return remainRewardDays_; - } - - public static final int CARDPRODUCTTYPE_FIELD_NUMBER = 7; - private int cardProductType_; - /** - * <code>uint32 cardProductType = 7;</code> - * @return The cardProductType. - */ - @java.lang.Override - public int getCardProductType() { - return cardProductType_; - } - - public static final int RESINCARD_FIELD_NUMBER = 101; - /** - * <code>.ResinCard resinCard = 101;</code> - * @return Whether the resinCard field is set. - */ - @java.lang.Override - public boolean hasResinCard() { - return extraCardDataCase_ == 101; - } - /** - * <code>.ResinCard resinCard = 101;</code> - * @return The resinCard. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard getResinCard() { - if (extraCardDataCase_ == 101) { - return (emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard) extraCardData_; - } - return emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard.getDefaultInstance(); - } - /** - * <code>.ResinCard resinCard = 101;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ResinCardOuterClass.ResinCardOrBuilder getResinCardOrBuilder() { - if (extraCardDataCase_ == 101) { - return (emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard) extraCardData_; - } - return emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getProductIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, productId_); - } - if (!getPriceTierBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, priceTier_); - } - if (mcoinBase_ != 0) { - output.writeUInt32(3, mcoinBase_); - } - if (hcoinPerDay_ != 0) { - output.writeUInt32(4, hcoinPerDay_); - } - if (days_ != 0) { - output.writeUInt32(5, days_); - } - if (remainRewardDays_ != 0) { - output.writeUInt32(6, remainRewardDays_); - } - if (cardProductType_ != 0) { - output.writeUInt32(7, cardProductType_); - } - if (extraCardDataCase_ == 101) { - output.writeMessage(101, (emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard) extraCardData_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProductIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, productId_); - } - if (!getPriceTierBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, priceTier_); - } - if (mcoinBase_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, mcoinBase_); - } - if (hcoinPerDay_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, hcoinPerDay_); - } - if (days_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, days_); - } - if (remainRewardDays_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, remainRewardDays_); - } - if (cardProductType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(7, cardProductType_); - } - if (extraCardDataCase_ == 101) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(101, (emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard) extraCardData_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct other = (emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct) obj; - - if (!getProductId() - .equals(other.getProductId())) return false; - if (!getPriceTier() - .equals(other.getPriceTier())) return false; - if (getMcoinBase() - != other.getMcoinBase()) return false; - if (getHcoinPerDay() - != other.getHcoinPerDay()) return false; - if (getDays() - != other.getDays()) return false; - if (getRemainRewardDays() - != other.getRemainRewardDays()) return false; - if (getCardProductType() - != other.getCardProductType()) return false; - if (!getExtraCardDataCase().equals(other.getExtraCardDataCase())) return false; - switch (extraCardDataCase_) { - case 101: - if (!getResinCard() - .equals(other.getResinCard())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PRODUCTID_FIELD_NUMBER; - hash = (53 * hash) + getProductId().hashCode(); - hash = (37 * hash) + PRICETIER_FIELD_NUMBER; - hash = (53 * hash) + getPriceTier().hashCode(); - hash = (37 * hash) + MCOINBASE_FIELD_NUMBER; - hash = (53 * hash) + getMcoinBase(); - hash = (37 * hash) + HCOINPERDAY_FIELD_NUMBER; - hash = (53 * hash) + getHcoinPerDay(); - hash = (37 * hash) + DAYS_FIELD_NUMBER; - hash = (53 * hash) + getDays(); - hash = (37 * hash) + REMAINREWARDDAYS_FIELD_NUMBER; - hash = (53 * hash) + getRemainRewardDays(); - hash = (37 * hash) + CARDPRODUCTTYPE_FIELD_NUMBER; - hash = (53 * hash) + getCardProductType(); - switch (extraCardDataCase_) { - case 101: - hash = (37 * hash) + RESINCARD_FIELD_NUMBER; - hash = (53 * hash) + getResinCard().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ShopCardProduct} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ShopCardProduct) - emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProductOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ShopCardProductOuterClass.internal_static_ShopCardProduct_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ShopCardProductOuterClass.internal_static_ShopCardProduct_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct.class, emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - productId_ = ""; - - priceTier_ = ""; - - mcoinBase_ = 0; - - hcoinPerDay_ = 0; - - days_ = 0; - - remainRewardDays_ = 0; - - cardProductType_ = 0; - - extraCardDataCase_ = 0; - extraCardData_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ShopCardProductOuterClass.internal_static_ShopCardProduct_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct build() { - emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct buildPartial() { - emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct result = new emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct(this); - result.productId_ = productId_; - result.priceTier_ = priceTier_; - result.mcoinBase_ = mcoinBase_; - result.hcoinPerDay_ = hcoinPerDay_; - result.days_ = days_; - result.remainRewardDays_ = remainRewardDays_; - result.cardProductType_ = cardProductType_; - if (extraCardDataCase_ == 101) { - if (resinCardBuilder_ == null) { - result.extraCardData_ = extraCardData_; - } else { - result.extraCardData_ = resinCardBuilder_.build(); - } - } - result.extraCardDataCase_ = extraCardDataCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct) { - return mergeFrom((emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct other) { - if (other == emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct.getDefaultInstance()) return this; - if (!other.getProductId().isEmpty()) { - productId_ = other.productId_; - onChanged(); - } - if (!other.getPriceTier().isEmpty()) { - priceTier_ = other.priceTier_; - onChanged(); - } - if (other.getMcoinBase() != 0) { - setMcoinBase(other.getMcoinBase()); - } - if (other.getHcoinPerDay() != 0) { - setHcoinPerDay(other.getHcoinPerDay()); - } - if (other.getDays() != 0) { - setDays(other.getDays()); - } - if (other.getRemainRewardDays() != 0) { - setRemainRewardDays(other.getRemainRewardDays()); - } - if (other.getCardProductType() != 0) { - setCardProductType(other.getCardProductType()); - } - switch (other.getExtraCardDataCase()) { - case RESINCARD: { - mergeResinCard(other.getResinCard()); - break; - } - case EXTRACARDDATA_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int extraCardDataCase_ = 0; - private java.lang.Object extraCardData_; - public ExtraCardDataCase - getExtraCardDataCase() { - return ExtraCardDataCase.forNumber( - extraCardDataCase_); - } - - public Builder clearExtraCardData() { - extraCardDataCase_ = 0; - extraCardData_ = null; - onChanged(); - return this; - } - - - private java.lang.Object productId_ = ""; - /** - * <code>string productId = 1;</code> - * @return The productId. - */ - public java.lang.String getProductId() { - java.lang.Object ref = productId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - productId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string productId = 1;</code> - * @return The bytes for productId. - */ - public com.google.protobuf.ByteString - getProductIdBytes() { - java.lang.Object ref = productId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - productId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string productId = 1;</code> - * @param value The productId to set. - * @return This builder for chaining. - */ - public Builder setProductId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - productId_ = value; - onChanged(); - return this; - } - /** - * <code>string productId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearProductId() { - - productId_ = getDefaultInstance().getProductId(); - onChanged(); - return this; - } - /** - * <code>string productId = 1;</code> - * @param value The bytes for productId to set. - * @return This builder for chaining. - */ - public Builder setProductIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - productId_ = value; - onChanged(); - return this; - } - - private java.lang.Object priceTier_ = ""; - /** - * <code>string priceTier = 2;</code> - * @return The priceTier. - */ - public java.lang.String getPriceTier() { - java.lang.Object ref = priceTier_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - priceTier_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string priceTier = 2;</code> - * @return The bytes for priceTier. - */ - public com.google.protobuf.ByteString - getPriceTierBytes() { - java.lang.Object ref = priceTier_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - priceTier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string priceTier = 2;</code> - * @param value The priceTier to set. - * @return This builder for chaining. - */ - public Builder setPriceTier( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - priceTier_ = value; - onChanged(); - return this; - } - /** - * <code>string priceTier = 2;</code> - * @return This builder for chaining. - */ - public Builder clearPriceTier() { - - priceTier_ = getDefaultInstance().getPriceTier(); - onChanged(); - return this; - } - /** - * <code>string priceTier = 2;</code> - * @param value The bytes for priceTier to set. - * @return This builder for chaining. - */ - public Builder setPriceTierBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - priceTier_ = value; - onChanged(); - return this; - } - - private int mcoinBase_ ; - /** - * <code>uint32 mcoinBase = 3;</code> - * @return The mcoinBase. - */ - @java.lang.Override - public int getMcoinBase() { - return mcoinBase_; - } - /** - * <code>uint32 mcoinBase = 3;</code> - * @param value The mcoinBase to set. - * @return This builder for chaining. - */ - public Builder setMcoinBase(int value) { - - mcoinBase_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 mcoinBase = 3;</code> - * @return This builder for chaining. - */ - public Builder clearMcoinBase() { - - mcoinBase_ = 0; - onChanged(); - return this; - } - - private int hcoinPerDay_ ; - /** - * <code>uint32 hcoinPerDay = 4;</code> - * @return The hcoinPerDay. - */ - @java.lang.Override - public int getHcoinPerDay() { - return hcoinPerDay_; - } - /** - * <code>uint32 hcoinPerDay = 4;</code> - * @param value The hcoinPerDay to set. - * @return This builder for chaining. - */ - public Builder setHcoinPerDay(int value) { - - hcoinPerDay_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 hcoinPerDay = 4;</code> - * @return This builder for chaining. - */ - public Builder clearHcoinPerDay() { - - hcoinPerDay_ = 0; - onChanged(); - return this; - } - - private int days_ ; - /** - * <code>uint32 days = 5;</code> - * @return The days. - */ - @java.lang.Override - public int getDays() { - return days_; - } - /** - * <code>uint32 days = 5;</code> - * @param value The days to set. - * @return This builder for chaining. - */ - public Builder setDays(int value) { - - days_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 days = 5;</code> - * @return This builder for chaining. - */ - public Builder clearDays() { - - days_ = 0; - onChanged(); - return this; - } - - private int remainRewardDays_ ; - /** - * <code>uint32 remainRewardDays = 6;</code> - * @return The remainRewardDays. - */ - @java.lang.Override - public int getRemainRewardDays() { - return remainRewardDays_; - } - /** - * <code>uint32 remainRewardDays = 6;</code> - * @param value The remainRewardDays to set. - * @return This builder for chaining. - */ - public Builder setRemainRewardDays(int value) { - - remainRewardDays_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 remainRewardDays = 6;</code> - * @return This builder for chaining. - */ - public Builder clearRemainRewardDays() { - - remainRewardDays_ = 0; - onChanged(); - return this; - } - - private int cardProductType_ ; - /** - * <code>uint32 cardProductType = 7;</code> - * @return The cardProductType. - */ - @java.lang.Override - public int getCardProductType() { - return cardProductType_; - } - /** - * <code>uint32 cardProductType = 7;</code> - * @param value The cardProductType to set. - * @return This builder for chaining. - */ - public Builder setCardProductType(int value) { - - cardProductType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 cardProductType = 7;</code> - * @return This builder for chaining. - */ - public Builder clearCardProductType() { - - cardProductType_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard, emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard.Builder, emu.grasscutter.net.proto.ResinCardOuterClass.ResinCardOrBuilder> resinCardBuilder_; - /** - * <code>.ResinCard resinCard = 101;</code> - * @return Whether the resinCard field is set. - */ - @java.lang.Override - public boolean hasResinCard() { - return extraCardDataCase_ == 101; - } - /** - * <code>.ResinCard resinCard = 101;</code> - * @return The resinCard. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard getResinCard() { - if (resinCardBuilder_ == null) { - if (extraCardDataCase_ == 101) { - return (emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard) extraCardData_; - } - return emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard.getDefaultInstance(); - } else { - if (extraCardDataCase_ == 101) { - return resinCardBuilder_.getMessage(); - } - return emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard.getDefaultInstance(); - } - } - /** - * <code>.ResinCard resinCard = 101;</code> - */ - public Builder setResinCard(emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard value) { - if (resinCardBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - extraCardData_ = value; - onChanged(); - } else { - resinCardBuilder_.setMessage(value); - } - extraCardDataCase_ = 101; - return this; - } - /** - * <code>.ResinCard resinCard = 101;</code> - */ - public Builder setResinCard( - emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard.Builder builderForValue) { - if (resinCardBuilder_ == null) { - extraCardData_ = builderForValue.build(); - onChanged(); - } else { - resinCardBuilder_.setMessage(builderForValue.build()); - } - extraCardDataCase_ = 101; - return this; - } - /** - * <code>.ResinCard resinCard = 101;</code> - */ - public Builder mergeResinCard(emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard value) { - if (resinCardBuilder_ == null) { - if (extraCardDataCase_ == 101 && - extraCardData_ != emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard.getDefaultInstance()) { - extraCardData_ = emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard.newBuilder((emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard) extraCardData_) - .mergeFrom(value).buildPartial(); - } else { - extraCardData_ = value; - } - onChanged(); - } else { - if (extraCardDataCase_ == 101) { - resinCardBuilder_.mergeFrom(value); - } - resinCardBuilder_.setMessage(value); - } - extraCardDataCase_ = 101; - return this; - } - /** - * <code>.ResinCard resinCard = 101;</code> - */ - public Builder clearResinCard() { - if (resinCardBuilder_ == null) { - if (extraCardDataCase_ == 101) { - extraCardDataCase_ = 0; - extraCardData_ = null; - onChanged(); - } - } else { - if (extraCardDataCase_ == 101) { - extraCardDataCase_ = 0; - extraCardData_ = null; - } - resinCardBuilder_.clear(); - } - return this; - } - /** - * <code>.ResinCard resinCard = 101;</code> - */ - public emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard.Builder getResinCardBuilder() { - return getResinCardFieldBuilder().getBuilder(); - } - /** - * <code>.ResinCard resinCard = 101;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ResinCardOuterClass.ResinCardOrBuilder getResinCardOrBuilder() { - if ((extraCardDataCase_ == 101) && (resinCardBuilder_ != null)) { - return resinCardBuilder_.getMessageOrBuilder(); - } else { - if (extraCardDataCase_ == 101) { - return (emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard) extraCardData_; - } - return emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard.getDefaultInstance(); - } - } - /** - * <code>.ResinCard resinCard = 101;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard, emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard.Builder, emu.grasscutter.net.proto.ResinCardOuterClass.ResinCardOrBuilder> - getResinCardFieldBuilder() { - if (resinCardBuilder_ == null) { - if (!(extraCardDataCase_ == 101)) { - extraCardData_ = emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard.getDefaultInstance(); - } - resinCardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard, emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard.Builder, emu.grasscutter.net.proto.ResinCardOuterClass.ResinCardOrBuilder>( - (emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard) extraCardData_, - getParentForChildren(), - isClean()); - extraCardData_ = null; - } - extraCardDataCase_ = 101; - onChanged();; - return resinCardBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ShopCardProduct) - } - - // @@protoc_insertion_point(class_scope:ShopCardProduct) - private static final emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct(); - } - - public static emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ShopCardProduct> - PARSER = new com.google.protobuf.AbstractParser<ShopCardProduct>() { - @java.lang.Override - public ShopCardProduct parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ShopCardProduct(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ShopCardProduct> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ShopCardProduct> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ShopCardProduct_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ShopCardProduct_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025ShopCardProduct.proto\032\017ResinCard.proto" + - "\"\322\001\n\017ShopCardProduct\022\021\n\tproductId\030\001 \001(\t\022" + - "\021\n\tpriceTier\030\002 \001(\t\022\021\n\tmcoinBase\030\003 \001(\r\022\023\n" + - "\013hcoinPerDay\030\004 \001(\r\022\014\n\004days\030\005 \001(\r\022\030\n\020rema" + - "inRewardDays\030\006 \001(\r\022\027\n\017cardProductType\030\007 " + - "\001(\r\022\037\n\tresinCard\030e \001(\0132\n.ResinCardH\000B\017\n\r" + - "extraCardDataB\033\n\031emu.grasscutter.net.pro" + - "tob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ResinCardOuterClass.getDescriptor(), - }); - internal_static_ShopCardProduct_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ShopCardProduct_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ShopCardProduct_descriptor, - new java.lang.String[] { "ProductId", "PriceTier", "McoinBase", "HcoinPerDay", "Days", "RemainRewardDays", "CardProductType", "ResinCard", "ExtraCardData", }); - emu.grasscutter.net.proto.ResinCardOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ShopGoodsDisableTypeOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ShopGoodsDisableTypeOuterClass.java deleted file mode 100644 index b7cde8ed4..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ShopGoodsDisableTypeOuterClass.java +++ /dev/null @@ -1,156 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ShopGoodsDisableType.proto - -package emu.grasscutter.net.proto; - -public final class ShopGoodsDisableTypeOuterClass { - private ShopGoodsDisableTypeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code ShopGoodsDisableType} - */ - public enum ShopGoodsDisableType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>ShopGoodsDisableNone = 0;</code> - */ - ShopGoodsDisableNone(0), - /** - * <code>ShopGoodsDisableTalentFull = 1;</code> - */ - ShopGoodsDisableTalentFull(1), - /** - * <code>ShopGoodsDisableFurnitureFormulaUnlocked = 2;</code> - */ - ShopGoodsDisableFurnitureFormulaUnlocked(2), - UNRECOGNIZED(-1), - ; - - /** - * <code>ShopGoodsDisableNone = 0;</code> - */ - public static final int ShopGoodsDisableNone_VALUE = 0; - /** - * <code>ShopGoodsDisableTalentFull = 1;</code> - */ - public static final int ShopGoodsDisableTalentFull_VALUE = 1; - /** - * <code>ShopGoodsDisableFurnitureFormulaUnlocked = 2;</code> - */ - public static final int ShopGoodsDisableFurnitureFormulaUnlocked_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ShopGoodsDisableType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static ShopGoodsDisableType forNumber(int value) { - switch (value) { - case 0: return ShopGoodsDisableNone; - case 1: return ShopGoodsDisableTalentFull; - case 2: return ShopGoodsDisableFurnitureFormulaUnlocked; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<ShopGoodsDisableType> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ShopGoodsDisableType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<ShopGoodsDisableType>() { - public ShopGoodsDisableType findValueByNumber(int number) { - return ShopGoodsDisableType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.ShopGoodsDisableTypeOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final ShopGoodsDisableType[] VALUES = values(); - - public static ShopGoodsDisableType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ShopGoodsDisableType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:ShopGoodsDisableType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032ShopGoodsDisableType.proto*~\n\024ShopGood" + - "sDisableType\022\030\n\024ShopGoodsDisableNone\020\000\022\036" + - "\n\032ShopGoodsDisableTalentFull\020\001\022,\n(ShopGo" + - "odsDisableFurnitureFormulaUnlocked\020\002B\033\n\031" + - "emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ShopGoodsOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ShopGoodsOuterClass.java deleted file mode 100644 index e75546b93..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ShopGoodsOuterClass.java +++ /dev/null @@ -1,2158 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ShopGoods.proto - -package emu.grasscutter.net.proto; - -public final class ShopGoodsOuterClass { - private ShopGoodsOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ShopGoodsOrBuilder extends - // @@protoc_insertion_point(interface_extends:ShopGoods) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 goodsId = 1;</code> - * @return The goodsId. - */ - int getGoodsId(); - - /** - * <code>.ItemParam goodsItem = 2;</code> - * @return Whether the goodsItem field is set. - */ - boolean hasGoodsItem(); - /** - * <code>.ItemParam goodsItem = 2;</code> - * @return The goodsItem. - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getGoodsItem(); - /** - * <code>.ItemParam goodsItem = 2;</code> - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getGoodsItemOrBuilder(); - - /** - * <code>uint32 scoin = 3;</code> - * @return The scoin. - */ - int getScoin(); - - /** - * <code>uint32 hcoin = 4;</code> - * @return The hcoin. - */ - int getHcoin(); - - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> - getCostItemListList(); - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getCostItemList(int index); - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - int getCostItemListCount(); - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getCostItemListOrBuilderList(); - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getCostItemListOrBuilder( - int index); - - /** - * <code>uint32 boughtNum = 6;</code> - * @return The boughtNum. - */ - int getBoughtNum(); - - /** - * <code>uint32 buyLimit = 7;</code> - * @return The buyLimit. - */ - int getBuyLimit(); - - /** - * <code>uint32 beginTime = 8;</code> - * @return The beginTime. - */ - int getBeginTime(); - - /** - * <code>uint32 endTime = 9;</code> - * @return The endTime. - */ - int getEndTime(); - - /** - * <code>uint32 nextRefreshTime = 10;</code> - * @return The nextRefreshTime. - */ - int getNextRefreshTime(); - - /** - * <code>uint32 minLevel = 11;</code> - * @return The minLevel. - */ - int getMinLevel(); - - /** - * <code>uint32 maxLevel = 12;</code> - * @return The maxLevel. - */ - int getMaxLevel(); - - /** - * <code>repeated uint32 preGoodsIdList = 13;</code> - * @return A list containing the preGoodsIdList. - */ - java.util.List<java.lang.Integer> getPreGoodsIdListList(); - /** - * <code>repeated uint32 preGoodsIdList = 13;</code> - * @return The count of preGoodsIdList. - */ - int getPreGoodsIdListCount(); - /** - * <code>repeated uint32 preGoodsIdList = 13;</code> - * @param index The index of the element to return. - * @return The preGoodsIdList at the given index. - */ - int getPreGoodsIdList(int index); - - /** - * <code>uint32 mcoin = 14;</code> - * @return The mcoin. - */ - int getMcoin(); - - /** - * <code>uint32 disableType = 15;</code> - * @return The disableType. - */ - int getDisableType(); - - /** - * <code>uint32 secondarySheetId = 16;</code> - * @return The secondarySheetId. - */ - int getSecondarySheetId(); - } - /** - * Protobuf type {@code ShopGoods} - */ - public static final class ShopGoods extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ShopGoods) - ShopGoodsOrBuilder { - private static final long serialVersionUID = 0L; - // Use ShopGoods.newBuilder() to construct. - private ShopGoods(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ShopGoods() { - costItemList_ = java.util.Collections.emptyList(); - preGoodsIdList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ShopGoods(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ShopGoods( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - goodsId_ = input.readUInt32(); - break; - } - case 18: { - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder subBuilder = null; - if (goodsItem_ != null) { - subBuilder = goodsItem_.toBuilder(); - } - goodsItem_ = input.readMessage(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(goodsItem_); - goodsItem_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - scoin_ = input.readUInt32(); - break; - } - case 32: { - - hcoin_ = input.readUInt32(); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - costItemList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>(); - mutable_bitField0_ |= 0x00000001; - } - costItemList_.add( - input.readMessage(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.parser(), extensionRegistry)); - break; - } - case 48: { - - boughtNum_ = input.readUInt32(); - break; - } - case 56: { - - buyLimit_ = input.readUInt32(); - break; - } - case 64: { - - beginTime_ = input.readUInt32(); - break; - } - case 72: { - - endTime_ = input.readUInt32(); - break; - } - case 80: { - - nextRefreshTime_ = input.readUInt32(); - break; - } - case 88: { - - minLevel_ = input.readUInt32(); - break; - } - case 96: { - - maxLevel_ = input.readUInt32(); - break; - } - case 104: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - preGoodsIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - preGoodsIdList_.addInt(input.readUInt32()); - break; - } - case 106: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - preGoodsIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - preGoodsIdList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 112: { - - mcoin_ = input.readUInt32(); - break; - } - case 120: { - - disableType_ = input.readUInt32(); - break; - } - case 128: { - - secondarySheetId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - costItemList_ = java.util.Collections.unmodifiableList(costItemList_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - preGoodsIdList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ShopGoodsOuterClass.internal_static_ShopGoods_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ShopGoodsOuterClass.internal_static_ShopGoods_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.class, emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.Builder.class); - } - - public static final int GOODSID_FIELD_NUMBER = 1; - private int goodsId_; - /** - * <code>uint32 goodsId = 1;</code> - * @return The goodsId. - */ - @java.lang.Override - public int getGoodsId() { - return goodsId_; - } - - public static final int GOODSITEM_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam goodsItem_; - /** - * <code>.ItemParam goodsItem = 2;</code> - * @return Whether the goodsItem field is set. - */ - @java.lang.Override - public boolean hasGoodsItem() { - return goodsItem_ != null; - } - /** - * <code>.ItemParam goodsItem = 2;</code> - * @return The goodsItem. - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getGoodsItem() { - return goodsItem_ == null ? emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance() : goodsItem_; - } - /** - * <code>.ItemParam goodsItem = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getGoodsItemOrBuilder() { - return getGoodsItem(); - } - - public static final int SCOIN_FIELD_NUMBER = 3; - private int scoin_; - /** - * <code>uint32 scoin = 3;</code> - * @return The scoin. - */ - @java.lang.Override - public int getScoin() { - return scoin_; - } - - public static final int HCOIN_FIELD_NUMBER = 4; - private int hcoin_; - /** - * <code>uint32 hcoin = 4;</code> - * @return The hcoin. - */ - @java.lang.Override - public int getHcoin() { - return hcoin_; - } - - public static final int COSTITEMLIST_FIELD_NUMBER = 5; - private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> costItemList_; - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getCostItemListList() { - return costItemList_; - } - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getCostItemListOrBuilderList() { - return costItemList_; - } - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - @java.lang.Override - public int getCostItemListCount() { - return costItemList_.size(); - } - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getCostItemList(int index) { - return costItemList_.get(index); - } - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getCostItemListOrBuilder( - int index) { - return costItemList_.get(index); - } - - public static final int BOUGHTNUM_FIELD_NUMBER = 6; - private int boughtNum_; - /** - * <code>uint32 boughtNum = 6;</code> - * @return The boughtNum. - */ - @java.lang.Override - public int getBoughtNum() { - return boughtNum_; - } - - public static final int BUYLIMIT_FIELD_NUMBER = 7; - private int buyLimit_; - /** - * <code>uint32 buyLimit = 7;</code> - * @return The buyLimit. - */ - @java.lang.Override - public int getBuyLimit() { - return buyLimit_; - } - - public static final int BEGINTIME_FIELD_NUMBER = 8; - private int beginTime_; - /** - * <code>uint32 beginTime = 8;</code> - * @return The beginTime. - */ - @java.lang.Override - public int getBeginTime() { - return beginTime_; - } - - public static final int ENDTIME_FIELD_NUMBER = 9; - private int endTime_; - /** - * <code>uint32 endTime = 9;</code> - * @return The endTime. - */ - @java.lang.Override - public int getEndTime() { - return endTime_; - } - - public static final int NEXTREFRESHTIME_FIELD_NUMBER = 10; - private int nextRefreshTime_; - /** - * <code>uint32 nextRefreshTime = 10;</code> - * @return The nextRefreshTime. - */ - @java.lang.Override - public int getNextRefreshTime() { - return nextRefreshTime_; - } - - public static final int MINLEVEL_FIELD_NUMBER = 11; - private int minLevel_; - /** - * <code>uint32 minLevel = 11;</code> - * @return The minLevel. - */ - @java.lang.Override - public int getMinLevel() { - return minLevel_; - } - - public static final int MAXLEVEL_FIELD_NUMBER = 12; - private int maxLevel_; - /** - * <code>uint32 maxLevel = 12;</code> - * @return The maxLevel. - */ - @java.lang.Override - public int getMaxLevel() { - return maxLevel_; - } - - public static final int PREGOODSIDLIST_FIELD_NUMBER = 13; - private com.google.protobuf.Internal.IntList preGoodsIdList_; - /** - * <code>repeated uint32 preGoodsIdList = 13;</code> - * @return A list containing the preGoodsIdList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getPreGoodsIdListList() { - return preGoodsIdList_; - } - /** - * <code>repeated uint32 preGoodsIdList = 13;</code> - * @return The count of preGoodsIdList. - */ - public int getPreGoodsIdListCount() { - return preGoodsIdList_.size(); - } - /** - * <code>repeated uint32 preGoodsIdList = 13;</code> - * @param index The index of the element to return. - * @return The preGoodsIdList at the given index. - */ - public int getPreGoodsIdList(int index) { - return preGoodsIdList_.getInt(index); - } - private int preGoodsIdListMemoizedSerializedSize = -1; - - public static final int MCOIN_FIELD_NUMBER = 14; - private int mcoin_; - /** - * <code>uint32 mcoin = 14;</code> - * @return The mcoin. - */ - @java.lang.Override - public int getMcoin() { - return mcoin_; - } - - public static final int DISABLETYPE_FIELD_NUMBER = 15; - private int disableType_; - /** - * <code>uint32 disableType = 15;</code> - * @return The disableType. - */ - @java.lang.Override - public int getDisableType() { - return disableType_; - } - - public static final int SECONDARYSHEETID_FIELD_NUMBER = 16; - private int secondarySheetId_; - /** - * <code>uint32 secondarySheetId = 16;</code> - * @return The secondarySheetId. - */ - @java.lang.Override - public int getSecondarySheetId() { - return secondarySheetId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (goodsId_ != 0) { - output.writeUInt32(1, goodsId_); - } - if (goodsItem_ != null) { - output.writeMessage(2, getGoodsItem()); - } - if (scoin_ != 0) { - output.writeUInt32(3, scoin_); - } - if (hcoin_ != 0) { - output.writeUInt32(4, hcoin_); - } - for (int i = 0; i < costItemList_.size(); i++) { - output.writeMessage(5, costItemList_.get(i)); - } - if (boughtNum_ != 0) { - output.writeUInt32(6, boughtNum_); - } - if (buyLimit_ != 0) { - output.writeUInt32(7, buyLimit_); - } - if (beginTime_ != 0) { - output.writeUInt32(8, beginTime_); - } - if (endTime_ != 0) { - output.writeUInt32(9, endTime_); - } - if (nextRefreshTime_ != 0) { - output.writeUInt32(10, nextRefreshTime_); - } - if (minLevel_ != 0) { - output.writeUInt32(11, minLevel_); - } - if (maxLevel_ != 0) { - output.writeUInt32(12, maxLevel_); - } - if (getPreGoodsIdListList().size() > 0) { - output.writeUInt32NoTag(106); - output.writeUInt32NoTag(preGoodsIdListMemoizedSerializedSize); - } - for (int i = 0; i < preGoodsIdList_.size(); i++) { - output.writeUInt32NoTag(preGoodsIdList_.getInt(i)); - } - if (mcoin_ != 0) { - output.writeUInt32(14, mcoin_); - } - if (disableType_ != 0) { - output.writeUInt32(15, disableType_); - } - if (secondarySheetId_ != 0) { - output.writeUInt32(16, secondarySheetId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (goodsId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, goodsId_); - } - if (goodsItem_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getGoodsItem()); - } - if (scoin_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, scoin_); - } - if (hcoin_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, hcoin_); - } - for (int i = 0; i < costItemList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, costItemList_.get(i)); - } - if (boughtNum_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, boughtNum_); - } - if (buyLimit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(7, buyLimit_); - } - if (beginTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(8, beginTime_); - } - if (endTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(9, endTime_); - } - if (nextRefreshTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(10, nextRefreshTime_); - } - if (minLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(11, minLevel_); - } - if (maxLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(12, maxLevel_); - } - { - int dataSize = 0; - for (int i = 0; i < preGoodsIdList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(preGoodsIdList_.getInt(i)); - } - size += dataSize; - if (!getPreGoodsIdListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - preGoodsIdListMemoizedSerializedSize = dataSize; - } - if (mcoin_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(14, mcoin_); - } - if (disableType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(15, disableType_); - } - if (secondarySheetId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(16, secondarySheetId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods other = (emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods) obj; - - if (getGoodsId() - != other.getGoodsId()) return false; - if (hasGoodsItem() != other.hasGoodsItem()) return false; - if (hasGoodsItem()) { - if (!getGoodsItem() - .equals(other.getGoodsItem())) return false; - } - if (getScoin() - != other.getScoin()) return false; - if (getHcoin() - != other.getHcoin()) return false; - if (!getCostItemListList() - .equals(other.getCostItemListList())) return false; - if (getBoughtNum() - != other.getBoughtNum()) return false; - if (getBuyLimit() - != other.getBuyLimit()) return false; - if (getBeginTime() - != other.getBeginTime()) return false; - if (getEndTime() - != other.getEndTime()) return false; - if (getNextRefreshTime() - != other.getNextRefreshTime()) return false; - if (getMinLevel() - != other.getMinLevel()) return false; - if (getMaxLevel() - != other.getMaxLevel()) return false; - if (!getPreGoodsIdListList() - .equals(other.getPreGoodsIdListList())) return false; - if (getMcoin() - != other.getMcoin()) return false; - if (getDisableType() - != other.getDisableType()) return false; - if (getSecondarySheetId() - != other.getSecondarySheetId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GOODSID_FIELD_NUMBER; - hash = (53 * hash) + getGoodsId(); - if (hasGoodsItem()) { - hash = (37 * hash) + GOODSITEM_FIELD_NUMBER; - hash = (53 * hash) + getGoodsItem().hashCode(); - } - hash = (37 * hash) + SCOIN_FIELD_NUMBER; - hash = (53 * hash) + getScoin(); - hash = (37 * hash) + HCOIN_FIELD_NUMBER; - hash = (53 * hash) + getHcoin(); - if (getCostItemListCount() > 0) { - hash = (37 * hash) + COSTITEMLIST_FIELD_NUMBER; - hash = (53 * hash) + getCostItemListList().hashCode(); - } - hash = (37 * hash) + BOUGHTNUM_FIELD_NUMBER; - hash = (53 * hash) + getBoughtNum(); - hash = (37 * hash) + BUYLIMIT_FIELD_NUMBER; - hash = (53 * hash) + getBuyLimit(); - hash = (37 * hash) + BEGINTIME_FIELD_NUMBER; - hash = (53 * hash) + getBeginTime(); - hash = (37 * hash) + ENDTIME_FIELD_NUMBER; - hash = (53 * hash) + getEndTime(); - hash = (37 * hash) + NEXTREFRESHTIME_FIELD_NUMBER; - hash = (53 * hash) + getNextRefreshTime(); - hash = (37 * hash) + MINLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getMinLevel(); - hash = (37 * hash) + MAXLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getMaxLevel(); - if (getPreGoodsIdListCount() > 0) { - hash = (37 * hash) + PREGOODSIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getPreGoodsIdListList().hashCode(); - } - hash = (37 * hash) + MCOIN_FIELD_NUMBER; - hash = (53 * hash) + getMcoin(); - hash = (37 * hash) + DISABLETYPE_FIELD_NUMBER; - hash = (53 * hash) + getDisableType(); - hash = (37 * hash) + SECONDARYSHEETID_FIELD_NUMBER; - hash = (53 * hash) + getSecondarySheetId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ShopGoods} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ShopGoods) - emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoodsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ShopGoodsOuterClass.internal_static_ShopGoods_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ShopGoodsOuterClass.internal_static_ShopGoods_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.class, emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getCostItemListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - goodsId_ = 0; - - if (goodsItemBuilder_ == null) { - goodsItem_ = null; - } else { - goodsItem_ = null; - goodsItemBuilder_ = null; - } - scoin_ = 0; - - hcoin_ = 0; - - if (costItemListBuilder_ == null) { - costItemList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - costItemListBuilder_.clear(); - } - boughtNum_ = 0; - - buyLimit_ = 0; - - beginTime_ = 0; - - endTime_ = 0; - - nextRefreshTime_ = 0; - - minLevel_ = 0; - - maxLevel_ = 0; - - preGoodsIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - mcoin_ = 0; - - disableType_ = 0; - - secondarySheetId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ShopGoodsOuterClass.internal_static_ShopGoods_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods build() { - emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods buildPartial() { - emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods result = new emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods(this); - int from_bitField0_ = bitField0_; - result.goodsId_ = goodsId_; - if (goodsItemBuilder_ == null) { - result.goodsItem_ = goodsItem_; - } else { - result.goodsItem_ = goodsItemBuilder_.build(); - } - result.scoin_ = scoin_; - result.hcoin_ = hcoin_; - if (costItemListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - costItemList_ = java.util.Collections.unmodifiableList(costItemList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.costItemList_ = costItemList_; - } else { - result.costItemList_ = costItemListBuilder_.build(); - } - result.boughtNum_ = boughtNum_; - result.buyLimit_ = buyLimit_; - result.beginTime_ = beginTime_; - result.endTime_ = endTime_; - result.nextRefreshTime_ = nextRefreshTime_; - result.minLevel_ = minLevel_; - result.maxLevel_ = maxLevel_; - if (((bitField0_ & 0x00000002) != 0)) { - preGoodsIdList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.preGoodsIdList_ = preGoodsIdList_; - result.mcoin_ = mcoin_; - result.disableType_ = disableType_; - result.secondarySheetId_ = secondarySheetId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods) { - return mergeFrom((emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods other) { - if (other == emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.getDefaultInstance()) return this; - if (other.getGoodsId() != 0) { - setGoodsId(other.getGoodsId()); - } - if (other.hasGoodsItem()) { - mergeGoodsItem(other.getGoodsItem()); - } - if (other.getScoin() != 0) { - setScoin(other.getScoin()); - } - if (other.getHcoin() != 0) { - setHcoin(other.getHcoin()); - } - if (costItemListBuilder_ == null) { - if (!other.costItemList_.isEmpty()) { - if (costItemList_.isEmpty()) { - costItemList_ = other.costItemList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCostItemListIsMutable(); - costItemList_.addAll(other.costItemList_); - } - onChanged(); - } - } else { - if (!other.costItemList_.isEmpty()) { - if (costItemListBuilder_.isEmpty()) { - costItemListBuilder_.dispose(); - costItemListBuilder_ = null; - costItemList_ = other.costItemList_; - bitField0_ = (bitField0_ & ~0x00000001); - costItemListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCostItemListFieldBuilder() : null; - } else { - costItemListBuilder_.addAllMessages(other.costItemList_); - } - } - } - if (other.getBoughtNum() != 0) { - setBoughtNum(other.getBoughtNum()); - } - if (other.getBuyLimit() != 0) { - setBuyLimit(other.getBuyLimit()); - } - if (other.getBeginTime() != 0) { - setBeginTime(other.getBeginTime()); - } - if (other.getEndTime() != 0) { - setEndTime(other.getEndTime()); - } - if (other.getNextRefreshTime() != 0) { - setNextRefreshTime(other.getNextRefreshTime()); - } - if (other.getMinLevel() != 0) { - setMinLevel(other.getMinLevel()); - } - if (other.getMaxLevel() != 0) { - setMaxLevel(other.getMaxLevel()); - } - if (!other.preGoodsIdList_.isEmpty()) { - if (preGoodsIdList_.isEmpty()) { - preGoodsIdList_ = other.preGoodsIdList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensurePreGoodsIdListIsMutable(); - preGoodsIdList_.addAll(other.preGoodsIdList_); - } - onChanged(); - } - if (other.getMcoin() != 0) { - setMcoin(other.getMcoin()); - } - if (other.getDisableType() != 0) { - setDisableType(other.getDisableType()); - } - if (other.getSecondarySheetId() != 0) { - setSecondarySheetId(other.getSecondarySheetId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int goodsId_ ; - /** - * <code>uint32 goodsId = 1;</code> - * @return The goodsId. - */ - @java.lang.Override - public int getGoodsId() { - return goodsId_; - } - /** - * <code>uint32 goodsId = 1;</code> - * @param value The goodsId to set. - * @return This builder for chaining. - */ - public Builder setGoodsId(int value) { - - goodsId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 goodsId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearGoodsId() { - - goodsId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam goodsItem_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> goodsItemBuilder_; - /** - * <code>.ItemParam goodsItem = 2;</code> - * @return Whether the goodsItem field is set. - */ - public boolean hasGoodsItem() { - return goodsItemBuilder_ != null || goodsItem_ != null; - } - /** - * <code>.ItemParam goodsItem = 2;</code> - * @return The goodsItem. - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getGoodsItem() { - if (goodsItemBuilder_ == null) { - return goodsItem_ == null ? emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance() : goodsItem_; - } else { - return goodsItemBuilder_.getMessage(); - } - } - /** - * <code>.ItemParam goodsItem = 2;</code> - */ - public Builder setGoodsItem(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (goodsItemBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - goodsItem_ = value; - onChanged(); - } else { - goodsItemBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.ItemParam goodsItem = 2;</code> - */ - public Builder setGoodsItem( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (goodsItemBuilder_ == null) { - goodsItem_ = builderForValue.build(); - onChanged(); - } else { - goodsItemBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.ItemParam goodsItem = 2;</code> - */ - public Builder mergeGoodsItem(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (goodsItemBuilder_ == null) { - if (goodsItem_ != null) { - goodsItem_ = - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.newBuilder(goodsItem_).mergeFrom(value).buildPartial(); - } else { - goodsItem_ = value; - } - onChanged(); - } else { - goodsItemBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.ItemParam goodsItem = 2;</code> - */ - public Builder clearGoodsItem() { - if (goodsItemBuilder_ == null) { - goodsItem_ = null; - onChanged(); - } else { - goodsItem_ = null; - goodsItemBuilder_ = null; - } - - return this; - } - /** - * <code>.ItemParam goodsItem = 2;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getGoodsItemBuilder() { - - onChanged(); - return getGoodsItemFieldBuilder().getBuilder(); - } - /** - * <code>.ItemParam goodsItem = 2;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getGoodsItemOrBuilder() { - if (goodsItemBuilder_ != null) { - return goodsItemBuilder_.getMessageOrBuilder(); - } else { - return goodsItem_ == null ? - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance() : goodsItem_; - } - } - /** - * <code>.ItemParam goodsItem = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getGoodsItemFieldBuilder() { - if (goodsItemBuilder_ == null) { - goodsItemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>( - getGoodsItem(), - getParentForChildren(), - isClean()); - goodsItem_ = null; - } - return goodsItemBuilder_; - } - - private int scoin_ ; - /** - * <code>uint32 scoin = 3;</code> - * @return The scoin. - */ - @java.lang.Override - public int getScoin() { - return scoin_; - } - /** - * <code>uint32 scoin = 3;</code> - * @param value The scoin to set. - * @return This builder for chaining. - */ - public Builder setScoin(int value) { - - scoin_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 scoin = 3;</code> - * @return This builder for chaining. - */ - public Builder clearScoin() { - - scoin_ = 0; - onChanged(); - return this; - } - - private int hcoin_ ; - /** - * <code>uint32 hcoin = 4;</code> - * @return The hcoin. - */ - @java.lang.Override - public int getHcoin() { - return hcoin_; - } - /** - * <code>uint32 hcoin = 4;</code> - * @param value The hcoin to set. - * @return This builder for chaining. - */ - public Builder setHcoin(int value) { - - hcoin_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 hcoin = 4;</code> - * @return This builder for chaining. - */ - public Builder clearHcoin() { - - hcoin_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> costItemList_ = - java.util.Collections.emptyList(); - private void ensureCostItemListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - costItemList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>(costItemList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> costItemListBuilder_; - - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getCostItemListList() { - if (costItemListBuilder_ == null) { - return java.util.Collections.unmodifiableList(costItemList_); - } else { - return costItemListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - public int getCostItemListCount() { - if (costItemListBuilder_ == null) { - return costItemList_.size(); - } else { - return costItemListBuilder_.getCount(); - } - } - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getCostItemList(int index) { - if (costItemListBuilder_ == null) { - return costItemList_.get(index); - } else { - return costItemListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - public Builder setCostItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (costItemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCostItemListIsMutable(); - costItemList_.set(index, value); - onChanged(); - } else { - costItemListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - public Builder setCostItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (costItemListBuilder_ == null) { - ensureCostItemListIsMutable(); - costItemList_.set(index, builderForValue.build()); - onChanged(); - } else { - costItemListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - public Builder addCostItemList(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (costItemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCostItemListIsMutable(); - costItemList_.add(value); - onChanged(); - } else { - costItemListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - public Builder addCostItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (costItemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCostItemListIsMutable(); - costItemList_.add(index, value); - onChanged(); - } else { - costItemListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - public Builder addCostItemList( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (costItemListBuilder_ == null) { - ensureCostItemListIsMutable(); - costItemList_.add(builderForValue.build()); - onChanged(); - } else { - costItemListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - public Builder addCostItemList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (costItemListBuilder_ == null) { - ensureCostItemListIsMutable(); - costItemList_.add(index, builderForValue.build()); - onChanged(); - } else { - costItemListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - public Builder addAllCostItemList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> values) { - if (costItemListBuilder_ == null) { - ensureCostItemListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, costItemList_); - onChanged(); - } else { - costItemListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - public Builder clearCostItemList() { - if (costItemListBuilder_ == null) { - costItemList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - costItemListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - public Builder removeCostItemList(int index) { - if (costItemListBuilder_ == null) { - ensureCostItemListIsMutable(); - costItemList_.remove(index); - onChanged(); - } else { - costItemListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getCostItemListBuilder( - int index) { - return getCostItemListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getCostItemListOrBuilder( - int index) { - if (costItemListBuilder_ == null) { - return costItemList_.get(index); } else { - return costItemListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getCostItemListOrBuilderList() { - if (costItemListBuilder_ != null) { - return costItemListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(costItemList_); - } - } - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addCostItemListBuilder() { - return getCostItemListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); - } - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addCostItemListBuilder( - int index) { - return getCostItemListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); - } - /** - * <code>repeated .ItemParam costItemList = 5;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder> - getCostItemListBuilderList() { - return getCostItemListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getCostItemListFieldBuilder() { - if (costItemListBuilder_ == null) { - costItemListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>( - costItemList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - costItemList_ = null; - } - return costItemListBuilder_; - } - - private int boughtNum_ ; - /** - * <code>uint32 boughtNum = 6;</code> - * @return The boughtNum. - */ - @java.lang.Override - public int getBoughtNum() { - return boughtNum_; - } - /** - * <code>uint32 boughtNum = 6;</code> - * @param value The boughtNum to set. - * @return This builder for chaining. - */ - public Builder setBoughtNum(int value) { - - boughtNum_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 boughtNum = 6;</code> - * @return This builder for chaining. - */ - public Builder clearBoughtNum() { - - boughtNum_ = 0; - onChanged(); - return this; - } - - private int buyLimit_ ; - /** - * <code>uint32 buyLimit = 7;</code> - * @return The buyLimit. - */ - @java.lang.Override - public int getBuyLimit() { - return buyLimit_; - } - /** - * <code>uint32 buyLimit = 7;</code> - * @param value The buyLimit to set. - * @return This builder for chaining. - */ - public Builder setBuyLimit(int value) { - - buyLimit_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 buyLimit = 7;</code> - * @return This builder for chaining. - */ - public Builder clearBuyLimit() { - - buyLimit_ = 0; - onChanged(); - return this; - } - - private int beginTime_ ; - /** - * <code>uint32 beginTime = 8;</code> - * @return The beginTime. - */ - @java.lang.Override - public int getBeginTime() { - return beginTime_; - } - /** - * <code>uint32 beginTime = 8;</code> - * @param value The beginTime to set. - * @return This builder for chaining. - */ - public Builder setBeginTime(int value) { - - beginTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 beginTime = 8;</code> - * @return This builder for chaining. - */ - public Builder clearBeginTime() { - - beginTime_ = 0; - onChanged(); - return this; - } - - private int endTime_ ; - /** - * <code>uint32 endTime = 9;</code> - * @return The endTime. - */ - @java.lang.Override - public int getEndTime() { - return endTime_; - } - /** - * <code>uint32 endTime = 9;</code> - * @param value The endTime to set. - * @return This builder for chaining. - */ - public Builder setEndTime(int value) { - - endTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 endTime = 9;</code> - * @return This builder for chaining. - */ - public Builder clearEndTime() { - - endTime_ = 0; - onChanged(); - return this; - } - - private int nextRefreshTime_ ; - /** - * <code>uint32 nextRefreshTime = 10;</code> - * @return The nextRefreshTime. - */ - @java.lang.Override - public int getNextRefreshTime() { - return nextRefreshTime_; - } - /** - * <code>uint32 nextRefreshTime = 10;</code> - * @param value The nextRefreshTime to set. - * @return This builder for chaining. - */ - public Builder setNextRefreshTime(int value) { - - nextRefreshTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 nextRefreshTime = 10;</code> - * @return This builder for chaining. - */ - public Builder clearNextRefreshTime() { - - nextRefreshTime_ = 0; - onChanged(); - return this; - } - - private int minLevel_ ; - /** - * <code>uint32 minLevel = 11;</code> - * @return The minLevel. - */ - @java.lang.Override - public int getMinLevel() { - return minLevel_; - } - /** - * <code>uint32 minLevel = 11;</code> - * @param value The minLevel to set. - * @return This builder for chaining. - */ - public Builder setMinLevel(int value) { - - minLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 minLevel = 11;</code> - * @return This builder for chaining. - */ - public Builder clearMinLevel() { - - minLevel_ = 0; - onChanged(); - return this; - } - - private int maxLevel_ ; - /** - * <code>uint32 maxLevel = 12;</code> - * @return The maxLevel. - */ - @java.lang.Override - public int getMaxLevel() { - return maxLevel_; - } - /** - * <code>uint32 maxLevel = 12;</code> - * @param value The maxLevel to set. - * @return This builder for chaining. - */ - public Builder setMaxLevel(int value) { - - maxLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 maxLevel = 12;</code> - * @return This builder for chaining. - */ - public Builder clearMaxLevel() { - - maxLevel_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList preGoodsIdList_ = emptyIntList(); - private void ensurePreGoodsIdListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - preGoodsIdList_ = mutableCopy(preGoodsIdList_); - bitField0_ |= 0x00000002; - } - } - /** - * <code>repeated uint32 preGoodsIdList = 13;</code> - * @return A list containing the preGoodsIdList. - */ - public java.util.List<java.lang.Integer> - getPreGoodsIdListList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(preGoodsIdList_) : preGoodsIdList_; - } - /** - * <code>repeated uint32 preGoodsIdList = 13;</code> - * @return The count of preGoodsIdList. - */ - public int getPreGoodsIdListCount() { - return preGoodsIdList_.size(); - } - /** - * <code>repeated uint32 preGoodsIdList = 13;</code> - * @param index The index of the element to return. - * @return The preGoodsIdList at the given index. - */ - public int getPreGoodsIdList(int index) { - return preGoodsIdList_.getInt(index); - } - /** - * <code>repeated uint32 preGoodsIdList = 13;</code> - * @param index The index to set the value at. - * @param value The preGoodsIdList to set. - * @return This builder for chaining. - */ - public Builder setPreGoodsIdList( - int index, int value) { - ensurePreGoodsIdListIsMutable(); - preGoodsIdList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 preGoodsIdList = 13;</code> - * @param value The preGoodsIdList to add. - * @return This builder for chaining. - */ - public Builder addPreGoodsIdList(int value) { - ensurePreGoodsIdListIsMutable(); - preGoodsIdList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 preGoodsIdList = 13;</code> - * @param values The preGoodsIdList to add. - * @return This builder for chaining. - */ - public Builder addAllPreGoodsIdList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensurePreGoodsIdListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, preGoodsIdList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 preGoodsIdList = 13;</code> - * @return This builder for chaining. - */ - public Builder clearPreGoodsIdList() { - preGoodsIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - private int mcoin_ ; - /** - * <code>uint32 mcoin = 14;</code> - * @return The mcoin. - */ - @java.lang.Override - public int getMcoin() { - return mcoin_; - } - /** - * <code>uint32 mcoin = 14;</code> - * @param value The mcoin to set. - * @return This builder for chaining. - */ - public Builder setMcoin(int value) { - - mcoin_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 mcoin = 14;</code> - * @return This builder for chaining. - */ - public Builder clearMcoin() { - - mcoin_ = 0; - onChanged(); - return this; - } - - private int disableType_ ; - /** - * <code>uint32 disableType = 15;</code> - * @return The disableType. - */ - @java.lang.Override - public int getDisableType() { - return disableType_; - } - /** - * <code>uint32 disableType = 15;</code> - * @param value The disableType to set. - * @return This builder for chaining. - */ - public Builder setDisableType(int value) { - - disableType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 disableType = 15;</code> - * @return This builder for chaining. - */ - public Builder clearDisableType() { - - disableType_ = 0; - onChanged(); - return this; - } - - private int secondarySheetId_ ; - /** - * <code>uint32 secondarySheetId = 16;</code> - * @return The secondarySheetId. - */ - @java.lang.Override - public int getSecondarySheetId() { - return secondarySheetId_; - } - /** - * <code>uint32 secondarySheetId = 16;</code> - * @param value The secondarySheetId to set. - * @return This builder for chaining. - */ - public Builder setSecondarySheetId(int value) { - - secondarySheetId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 secondarySheetId = 16;</code> - * @return This builder for chaining. - */ - public Builder clearSecondarySheetId() { - - secondarySheetId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ShopGoods) - } - - // @@protoc_insertion_point(class_scope:ShopGoods) - private static final emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods(); - } - - public static emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ShopGoods> - PARSER = new com.google.protobuf.AbstractParser<ShopGoods>() { - @java.lang.Override - public ShopGoods parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ShopGoods(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ShopGoods> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ShopGoods> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ShopGoods_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ShopGoods_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\017ShopGoods.proto\032\017ItemParam.proto\"\327\002\n\tS" + - "hopGoods\022\017\n\007goodsId\030\001 \001(\r\022\035\n\tgoodsItem\030\002" + - " \001(\0132\n.ItemParam\022\r\n\005scoin\030\003 \001(\r\022\r\n\005hcoin" + - "\030\004 \001(\r\022 \n\014costItemList\030\005 \003(\0132\n.ItemParam" + - "\022\021\n\tboughtNum\030\006 \001(\r\022\020\n\010buyLimit\030\007 \001(\r\022\021\n" + - "\tbeginTime\030\010 \001(\r\022\017\n\007endTime\030\t \001(\r\022\027\n\017nex" + - "tRefreshTime\030\n \001(\r\022\020\n\010minLevel\030\013 \001(\r\022\020\n\010" + - "maxLevel\030\014 \001(\r\022\026\n\016preGoodsIdList\030\r \003(\r\022\r" + - "\n\005mcoin\030\016 \001(\r\022\023\n\013disableType\030\017 \001(\r\022\030\n\020se" + - "condarySheetId\030\020 \001(\rB\033\n\031emu.grasscutter." + - "net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(), - }); - internal_static_ShopGoods_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ShopGoods_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ShopGoods_descriptor, - new java.lang.String[] { "GoodsId", "GoodsItem", "Scoin", "Hcoin", "CostItemList", "BoughtNum", "BuyLimit", "BeginTime", "EndTime", "NextRefreshTime", "MinLevel", "MaxLevel", "PreGoodsIdList", "Mcoin", "DisableType", "SecondarySheetId", }); - emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ShopMcoinProductOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ShopMcoinProductOuterClass.java deleted file mode 100644 index 5c412bfff..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ShopMcoinProductOuterClass.java +++ /dev/null @@ -1,1120 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ShopMcoinProduct.proto - -package emu.grasscutter.net.proto; - -public final class ShopMcoinProductOuterClass { - private ShopMcoinProductOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ShopMcoinProductOrBuilder extends - // @@protoc_insertion_point(interface_extends:ShopMcoinProduct) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>string productId = 1;</code> - * @return The productId. - */ - java.lang.String getProductId(); - /** - * <code>string productId = 1;</code> - * @return The bytes for productId. - */ - com.google.protobuf.ByteString - getProductIdBytes(); - - /** - * <code>string priceTier = 2;</code> - * @return The priceTier. - */ - java.lang.String getPriceTier(); - /** - * <code>string priceTier = 2;</code> - * @return The bytes for priceTier. - */ - com.google.protobuf.ByteString - getPriceTierBytes(); - - /** - * <code>uint32 mcoinBase = 3;</code> - * @return The mcoinBase. - */ - int getMcoinBase(); - - /** - * <code>uint32 mcoinNonFirst = 4;</code> - * @return The mcoinNonFirst. - */ - int getMcoinNonFirst(); - - /** - * <code>uint32 mcoinFirst = 5;</code> - * @return The mcoinFirst. - */ - int getMcoinFirst(); - - /** - * <code>uint32 boughtNum = 6;</code> - * @return The boughtNum. - */ - int getBoughtNum(); - - /** - * <code>bool isAudit = 7;</code> - * @return The isAudit. - */ - boolean getIsAudit(); - } - /** - * Protobuf type {@code ShopMcoinProduct} - */ - public static final class ShopMcoinProduct extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ShopMcoinProduct) - ShopMcoinProductOrBuilder { - private static final long serialVersionUID = 0L; - // Use ShopMcoinProduct.newBuilder() to construct. - private ShopMcoinProduct(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ShopMcoinProduct() { - productId_ = ""; - priceTier_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ShopMcoinProduct(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ShopMcoinProduct( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - productId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - priceTier_ = s; - break; - } - case 24: { - - mcoinBase_ = input.readUInt32(); - break; - } - case 32: { - - mcoinNonFirst_ = input.readUInt32(); - break; - } - case 40: { - - mcoinFirst_ = input.readUInt32(); - break; - } - case 48: { - - boughtNum_ = input.readUInt32(); - break; - } - case 56: { - - isAudit_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ShopMcoinProductOuterClass.internal_static_ShopMcoinProduct_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ShopMcoinProductOuterClass.internal_static_ShopMcoinProduct_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct.class, emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct.Builder.class); - } - - public static final int PRODUCTID_FIELD_NUMBER = 1; - private volatile java.lang.Object productId_; - /** - * <code>string productId = 1;</code> - * @return The productId. - */ - @java.lang.Override - public java.lang.String getProductId() { - java.lang.Object ref = productId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - productId_ = s; - return s; - } - } - /** - * <code>string productId = 1;</code> - * @return The bytes for productId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getProductIdBytes() { - java.lang.Object ref = productId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - productId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PRICETIER_FIELD_NUMBER = 2; - private volatile java.lang.Object priceTier_; - /** - * <code>string priceTier = 2;</code> - * @return The priceTier. - */ - @java.lang.Override - public java.lang.String getPriceTier() { - java.lang.Object ref = priceTier_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - priceTier_ = s; - return s; - } - } - /** - * <code>string priceTier = 2;</code> - * @return The bytes for priceTier. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPriceTierBytes() { - java.lang.Object ref = priceTier_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - priceTier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MCOINBASE_FIELD_NUMBER = 3; - private int mcoinBase_; - /** - * <code>uint32 mcoinBase = 3;</code> - * @return The mcoinBase. - */ - @java.lang.Override - public int getMcoinBase() { - return mcoinBase_; - } - - public static final int MCOINNONFIRST_FIELD_NUMBER = 4; - private int mcoinNonFirst_; - /** - * <code>uint32 mcoinNonFirst = 4;</code> - * @return The mcoinNonFirst. - */ - @java.lang.Override - public int getMcoinNonFirst() { - return mcoinNonFirst_; - } - - public static final int MCOINFIRST_FIELD_NUMBER = 5; - private int mcoinFirst_; - /** - * <code>uint32 mcoinFirst = 5;</code> - * @return The mcoinFirst. - */ - @java.lang.Override - public int getMcoinFirst() { - return mcoinFirst_; - } - - public static final int BOUGHTNUM_FIELD_NUMBER = 6; - private int boughtNum_; - /** - * <code>uint32 boughtNum = 6;</code> - * @return The boughtNum. - */ - @java.lang.Override - public int getBoughtNum() { - return boughtNum_; - } - - public static final int ISAUDIT_FIELD_NUMBER = 7; - private boolean isAudit_; - /** - * <code>bool isAudit = 7;</code> - * @return The isAudit. - */ - @java.lang.Override - public boolean getIsAudit() { - return isAudit_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getProductIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, productId_); - } - if (!getPriceTierBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, priceTier_); - } - if (mcoinBase_ != 0) { - output.writeUInt32(3, mcoinBase_); - } - if (mcoinNonFirst_ != 0) { - output.writeUInt32(4, mcoinNonFirst_); - } - if (mcoinFirst_ != 0) { - output.writeUInt32(5, mcoinFirst_); - } - if (boughtNum_ != 0) { - output.writeUInt32(6, boughtNum_); - } - if (isAudit_ != false) { - output.writeBool(7, isAudit_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProductIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, productId_); - } - if (!getPriceTierBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, priceTier_); - } - if (mcoinBase_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, mcoinBase_); - } - if (mcoinNonFirst_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, mcoinNonFirst_); - } - if (mcoinFirst_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, mcoinFirst_); - } - if (boughtNum_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, boughtNum_); - } - if (isAudit_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, isAudit_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct other = (emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct) obj; - - if (!getProductId() - .equals(other.getProductId())) return false; - if (!getPriceTier() - .equals(other.getPriceTier())) return false; - if (getMcoinBase() - != other.getMcoinBase()) return false; - if (getMcoinNonFirst() - != other.getMcoinNonFirst()) return false; - if (getMcoinFirst() - != other.getMcoinFirst()) return false; - if (getBoughtNum() - != other.getBoughtNum()) return false; - if (getIsAudit() - != other.getIsAudit()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PRODUCTID_FIELD_NUMBER; - hash = (53 * hash) + getProductId().hashCode(); - hash = (37 * hash) + PRICETIER_FIELD_NUMBER; - hash = (53 * hash) + getPriceTier().hashCode(); - hash = (37 * hash) + MCOINBASE_FIELD_NUMBER; - hash = (53 * hash) + getMcoinBase(); - hash = (37 * hash) + MCOINNONFIRST_FIELD_NUMBER; - hash = (53 * hash) + getMcoinNonFirst(); - hash = (37 * hash) + MCOINFIRST_FIELD_NUMBER; - hash = (53 * hash) + getMcoinFirst(); - hash = (37 * hash) + BOUGHTNUM_FIELD_NUMBER; - hash = (53 * hash) + getBoughtNum(); - hash = (37 * hash) + ISAUDIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsAudit()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ShopMcoinProduct} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ShopMcoinProduct) - emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProductOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ShopMcoinProductOuterClass.internal_static_ShopMcoinProduct_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ShopMcoinProductOuterClass.internal_static_ShopMcoinProduct_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct.class, emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - productId_ = ""; - - priceTier_ = ""; - - mcoinBase_ = 0; - - mcoinNonFirst_ = 0; - - mcoinFirst_ = 0; - - boughtNum_ = 0; - - isAudit_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ShopMcoinProductOuterClass.internal_static_ShopMcoinProduct_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct build() { - emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct buildPartial() { - emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct result = new emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct(this); - result.productId_ = productId_; - result.priceTier_ = priceTier_; - result.mcoinBase_ = mcoinBase_; - result.mcoinNonFirst_ = mcoinNonFirst_; - result.mcoinFirst_ = mcoinFirst_; - result.boughtNum_ = boughtNum_; - result.isAudit_ = isAudit_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct) { - return mergeFrom((emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct other) { - if (other == emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct.getDefaultInstance()) return this; - if (!other.getProductId().isEmpty()) { - productId_ = other.productId_; - onChanged(); - } - if (!other.getPriceTier().isEmpty()) { - priceTier_ = other.priceTier_; - onChanged(); - } - if (other.getMcoinBase() != 0) { - setMcoinBase(other.getMcoinBase()); - } - if (other.getMcoinNonFirst() != 0) { - setMcoinNonFirst(other.getMcoinNonFirst()); - } - if (other.getMcoinFirst() != 0) { - setMcoinFirst(other.getMcoinFirst()); - } - if (other.getBoughtNum() != 0) { - setBoughtNum(other.getBoughtNum()); - } - if (other.getIsAudit() != false) { - setIsAudit(other.getIsAudit()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object productId_ = ""; - /** - * <code>string productId = 1;</code> - * @return The productId. - */ - public java.lang.String getProductId() { - java.lang.Object ref = productId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - productId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string productId = 1;</code> - * @return The bytes for productId. - */ - public com.google.protobuf.ByteString - getProductIdBytes() { - java.lang.Object ref = productId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - productId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string productId = 1;</code> - * @param value The productId to set. - * @return This builder for chaining. - */ - public Builder setProductId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - productId_ = value; - onChanged(); - return this; - } - /** - * <code>string productId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearProductId() { - - productId_ = getDefaultInstance().getProductId(); - onChanged(); - return this; - } - /** - * <code>string productId = 1;</code> - * @param value The bytes for productId to set. - * @return This builder for chaining. - */ - public Builder setProductIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - productId_ = value; - onChanged(); - return this; - } - - private java.lang.Object priceTier_ = ""; - /** - * <code>string priceTier = 2;</code> - * @return The priceTier. - */ - public java.lang.String getPriceTier() { - java.lang.Object ref = priceTier_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - priceTier_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string priceTier = 2;</code> - * @return The bytes for priceTier. - */ - public com.google.protobuf.ByteString - getPriceTierBytes() { - java.lang.Object ref = priceTier_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - priceTier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string priceTier = 2;</code> - * @param value The priceTier to set. - * @return This builder for chaining. - */ - public Builder setPriceTier( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - priceTier_ = value; - onChanged(); - return this; - } - /** - * <code>string priceTier = 2;</code> - * @return This builder for chaining. - */ - public Builder clearPriceTier() { - - priceTier_ = getDefaultInstance().getPriceTier(); - onChanged(); - return this; - } - /** - * <code>string priceTier = 2;</code> - * @param value The bytes for priceTier to set. - * @return This builder for chaining. - */ - public Builder setPriceTierBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - priceTier_ = value; - onChanged(); - return this; - } - - private int mcoinBase_ ; - /** - * <code>uint32 mcoinBase = 3;</code> - * @return The mcoinBase. - */ - @java.lang.Override - public int getMcoinBase() { - return mcoinBase_; - } - /** - * <code>uint32 mcoinBase = 3;</code> - * @param value The mcoinBase to set. - * @return This builder for chaining. - */ - public Builder setMcoinBase(int value) { - - mcoinBase_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 mcoinBase = 3;</code> - * @return This builder for chaining. - */ - public Builder clearMcoinBase() { - - mcoinBase_ = 0; - onChanged(); - return this; - } - - private int mcoinNonFirst_ ; - /** - * <code>uint32 mcoinNonFirst = 4;</code> - * @return The mcoinNonFirst. - */ - @java.lang.Override - public int getMcoinNonFirst() { - return mcoinNonFirst_; - } - /** - * <code>uint32 mcoinNonFirst = 4;</code> - * @param value The mcoinNonFirst to set. - * @return This builder for chaining. - */ - public Builder setMcoinNonFirst(int value) { - - mcoinNonFirst_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 mcoinNonFirst = 4;</code> - * @return This builder for chaining. - */ - public Builder clearMcoinNonFirst() { - - mcoinNonFirst_ = 0; - onChanged(); - return this; - } - - private int mcoinFirst_ ; - /** - * <code>uint32 mcoinFirst = 5;</code> - * @return The mcoinFirst. - */ - @java.lang.Override - public int getMcoinFirst() { - return mcoinFirst_; - } - /** - * <code>uint32 mcoinFirst = 5;</code> - * @param value The mcoinFirst to set. - * @return This builder for chaining. - */ - public Builder setMcoinFirst(int value) { - - mcoinFirst_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 mcoinFirst = 5;</code> - * @return This builder for chaining. - */ - public Builder clearMcoinFirst() { - - mcoinFirst_ = 0; - onChanged(); - return this; - } - - private int boughtNum_ ; - /** - * <code>uint32 boughtNum = 6;</code> - * @return The boughtNum. - */ - @java.lang.Override - public int getBoughtNum() { - return boughtNum_; - } - /** - * <code>uint32 boughtNum = 6;</code> - * @param value The boughtNum to set. - * @return This builder for chaining. - */ - public Builder setBoughtNum(int value) { - - boughtNum_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 boughtNum = 6;</code> - * @return This builder for chaining. - */ - public Builder clearBoughtNum() { - - boughtNum_ = 0; - onChanged(); - return this; - } - - private boolean isAudit_ ; - /** - * <code>bool isAudit = 7;</code> - * @return The isAudit. - */ - @java.lang.Override - public boolean getIsAudit() { - return isAudit_; - } - /** - * <code>bool isAudit = 7;</code> - * @param value The isAudit to set. - * @return This builder for chaining. - */ - public Builder setIsAudit(boolean value) { - - isAudit_ = value; - onChanged(); - return this; - } - /** - * <code>bool isAudit = 7;</code> - * @return This builder for chaining. - */ - public Builder clearIsAudit() { - - isAudit_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ShopMcoinProduct) - } - - // @@protoc_insertion_point(class_scope:ShopMcoinProduct) - private static final emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct(); - } - - public static emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ShopMcoinProduct> - PARSER = new com.google.protobuf.AbstractParser<ShopMcoinProduct>() { - @java.lang.Override - public ShopMcoinProduct parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ShopMcoinProduct(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ShopMcoinProduct> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ShopMcoinProduct> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ShopMcoinProduct_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ShopMcoinProduct_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026ShopMcoinProduct.proto\"\232\001\n\020ShopMcoinPr" + - "oduct\022\021\n\tproductId\030\001 \001(\t\022\021\n\tpriceTier\030\002 " + - "\001(\t\022\021\n\tmcoinBase\030\003 \001(\r\022\025\n\rmcoinNonFirst\030" + - "\004 \001(\r\022\022\n\nmcoinFirst\030\005 \001(\r\022\021\n\tboughtNum\030\006" + - " \001(\r\022\017\n\007isAudit\030\007 \001(\010B\033\n\031emu.grasscutter" + - ".net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ShopMcoinProduct_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ShopMcoinProduct_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ShopMcoinProduct_descriptor, - new java.lang.String[] { "ProductId", "PriceTier", "McoinBase", "McoinNonFirst", "McoinFirst", "BoughtNum", "IsAudit", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ShopOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ShopOuterClass.java deleted file mode 100644 index 117cfde7c..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ShopOuterClass.java +++ /dev/null @@ -1,1877 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Shop.proto - -package emu.grasscutter.net.proto; - -public final class ShopOuterClass { - private ShopOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ShopOrBuilder extends - // @@protoc_insertion_point(interface_extends:Shop) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 shopType = 1;</code> - * @return The shopType. - */ - int getShopType(); - - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - java.util.List<emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods> - getGoodsListList(); - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods getGoodsList(int index); - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - int getGoodsListCount(); - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoodsOrBuilder> - getGoodsListOrBuilderList(); - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoodsOrBuilder getGoodsListOrBuilder( - int index); - - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - java.util.List<emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct> - getMcoinProductListList(); - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct getMcoinProductList(int index); - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - int getMcoinProductListCount(); - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProductOrBuilder> - getMcoinProductListOrBuilderList(); - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProductOrBuilder getMcoinProductListOrBuilder( - int index); - - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - java.util.List<emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct> - getCardProductListList(); - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct getCardProductList(int index); - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - int getCardProductListCount(); - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProductOrBuilder> - getCardProductListOrBuilderList(); - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProductOrBuilder getCardProductListOrBuilder( - int index); - - /** - * <code>uint32 nextRefreshTime = 6;</code> - * @return The nextRefreshTime. - */ - int getNextRefreshTime(); - - /** - * <code>uint32 cityId = 7;</code> - * @return The cityId. - */ - int getCityId(); - - /** - * <code>uint32 cityReputationLevel = 8;</code> - * @return The cityReputationLevel. - */ - int getCityReputationLevel(); - } - /** - * Protobuf type {@code Shop} - */ - public static final class Shop extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Shop) - ShopOrBuilder { - private static final long serialVersionUID = 0L; - // Use Shop.newBuilder() to construct. - private Shop(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Shop() { - goodsList_ = java.util.Collections.emptyList(); - mcoinProductList_ = java.util.Collections.emptyList(); - cardProductList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Shop(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Shop( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - shopType_ = input.readUInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - goodsList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods>(); - mutable_bitField0_ |= 0x00000001; - } - goodsList_.add( - input.readMessage(emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - mcoinProductList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct>(); - mutable_bitField0_ |= 0x00000002; - } - mcoinProductList_.add( - input.readMessage(emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct.parser(), extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - cardProductList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct>(); - mutable_bitField0_ |= 0x00000004; - } - cardProductList_.add( - input.readMessage(emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct.parser(), extensionRegistry)); - break; - } - case 48: { - - nextRefreshTime_ = input.readUInt32(); - break; - } - case 56: { - - cityId_ = input.readUInt32(); - break; - } - case 64: { - - cityReputationLevel_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - goodsList_ = java.util.Collections.unmodifiableList(goodsList_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - mcoinProductList_ = java.util.Collections.unmodifiableList(mcoinProductList_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - cardProductList_ = java.util.Collections.unmodifiableList(cardProductList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ShopOuterClass.internal_static_Shop_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ShopOuterClass.internal_static_Shop_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ShopOuterClass.Shop.class, emu.grasscutter.net.proto.ShopOuterClass.Shop.Builder.class); - } - - public static final int SHOPTYPE_FIELD_NUMBER = 1; - private int shopType_; - /** - * <code>uint32 shopType = 1;</code> - * @return The shopType. - */ - @java.lang.Override - public int getShopType() { - return shopType_; - } - - public static final int GOODSLIST_FIELD_NUMBER = 2; - private java.util.List<emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods> goodsList_; - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods> getGoodsListList() { - return goodsList_; - } - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoodsOrBuilder> - getGoodsListOrBuilderList() { - return goodsList_; - } - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - @java.lang.Override - public int getGoodsListCount() { - return goodsList_.size(); - } - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods getGoodsList(int index) { - return goodsList_.get(index); - } - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoodsOrBuilder getGoodsListOrBuilder( - int index) { - return goodsList_.get(index); - } - - public static final int MCOINPRODUCTLIST_FIELD_NUMBER = 3; - private java.util.List<emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct> mcoinProductList_; - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct> getMcoinProductListList() { - return mcoinProductList_; - } - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProductOrBuilder> - getMcoinProductListOrBuilderList() { - return mcoinProductList_; - } - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - @java.lang.Override - public int getMcoinProductListCount() { - return mcoinProductList_.size(); - } - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct getMcoinProductList(int index) { - return mcoinProductList_.get(index); - } - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProductOrBuilder getMcoinProductListOrBuilder( - int index) { - return mcoinProductList_.get(index); - } - - public static final int CARDPRODUCTLIST_FIELD_NUMBER = 4; - private java.util.List<emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct> cardProductList_; - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct> getCardProductListList() { - return cardProductList_; - } - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProductOrBuilder> - getCardProductListOrBuilderList() { - return cardProductList_; - } - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - @java.lang.Override - public int getCardProductListCount() { - return cardProductList_.size(); - } - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct getCardProductList(int index) { - return cardProductList_.get(index); - } - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProductOrBuilder getCardProductListOrBuilder( - int index) { - return cardProductList_.get(index); - } - - public static final int NEXTREFRESHTIME_FIELD_NUMBER = 6; - private int nextRefreshTime_; - /** - * <code>uint32 nextRefreshTime = 6;</code> - * @return The nextRefreshTime. - */ - @java.lang.Override - public int getNextRefreshTime() { - return nextRefreshTime_; - } - - public static final int CITYID_FIELD_NUMBER = 7; - private int cityId_; - /** - * <code>uint32 cityId = 7;</code> - * @return The cityId. - */ - @java.lang.Override - public int getCityId() { - return cityId_; - } - - public static final int CITYREPUTATIONLEVEL_FIELD_NUMBER = 8; - private int cityReputationLevel_; - /** - * <code>uint32 cityReputationLevel = 8;</code> - * @return The cityReputationLevel. - */ - @java.lang.Override - public int getCityReputationLevel() { - return cityReputationLevel_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (shopType_ != 0) { - output.writeUInt32(1, shopType_); - } - for (int i = 0; i < goodsList_.size(); i++) { - output.writeMessage(2, goodsList_.get(i)); - } - for (int i = 0; i < mcoinProductList_.size(); i++) { - output.writeMessage(3, mcoinProductList_.get(i)); - } - for (int i = 0; i < cardProductList_.size(); i++) { - output.writeMessage(4, cardProductList_.get(i)); - } - if (nextRefreshTime_ != 0) { - output.writeUInt32(6, nextRefreshTime_); - } - if (cityId_ != 0) { - output.writeUInt32(7, cityId_); - } - if (cityReputationLevel_ != 0) { - output.writeUInt32(8, cityReputationLevel_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (shopType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, shopType_); - } - for (int i = 0; i < goodsList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, goodsList_.get(i)); - } - for (int i = 0; i < mcoinProductList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, mcoinProductList_.get(i)); - } - for (int i = 0; i < cardProductList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, cardProductList_.get(i)); - } - if (nextRefreshTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, nextRefreshTime_); - } - if (cityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(7, cityId_); - } - if (cityReputationLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(8, cityReputationLevel_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ShopOuterClass.Shop)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ShopOuterClass.Shop other = (emu.grasscutter.net.proto.ShopOuterClass.Shop) obj; - - if (getShopType() - != other.getShopType()) return false; - if (!getGoodsListList() - .equals(other.getGoodsListList())) return false; - if (!getMcoinProductListList() - .equals(other.getMcoinProductListList())) return false; - if (!getCardProductListList() - .equals(other.getCardProductListList())) return false; - if (getNextRefreshTime() - != other.getNextRefreshTime()) return false; - if (getCityId() - != other.getCityId()) return false; - if (getCityReputationLevel() - != other.getCityReputationLevel()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SHOPTYPE_FIELD_NUMBER; - hash = (53 * hash) + getShopType(); - if (getGoodsListCount() > 0) { - hash = (37 * hash) + GOODSLIST_FIELD_NUMBER; - hash = (53 * hash) + getGoodsListList().hashCode(); - } - if (getMcoinProductListCount() > 0) { - hash = (37 * hash) + MCOINPRODUCTLIST_FIELD_NUMBER; - hash = (53 * hash) + getMcoinProductListList().hashCode(); - } - if (getCardProductListCount() > 0) { - hash = (37 * hash) + CARDPRODUCTLIST_FIELD_NUMBER; - hash = (53 * hash) + getCardProductListList().hashCode(); - } - hash = (37 * hash) + NEXTREFRESHTIME_FIELD_NUMBER; - hash = (53 * hash) + getNextRefreshTime(); - hash = (37 * hash) + CITYID_FIELD_NUMBER; - hash = (53 * hash) + getCityId(); - hash = (37 * hash) + CITYREPUTATIONLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getCityReputationLevel(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ShopOuterClass.Shop parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ShopOuterClass.Shop parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ShopOuterClass.Shop parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ShopOuterClass.Shop parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ShopOuterClass.Shop parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ShopOuterClass.Shop parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ShopOuterClass.Shop parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ShopOuterClass.Shop parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ShopOuterClass.Shop parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ShopOuterClass.Shop parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ShopOuterClass.Shop parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ShopOuterClass.Shop parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ShopOuterClass.Shop prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Shop} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:Shop) - emu.grasscutter.net.proto.ShopOuterClass.ShopOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ShopOuterClass.internal_static_Shop_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ShopOuterClass.internal_static_Shop_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ShopOuterClass.Shop.class, emu.grasscutter.net.proto.ShopOuterClass.Shop.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ShopOuterClass.Shop.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getGoodsListFieldBuilder(); - getMcoinProductListFieldBuilder(); - getCardProductListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - shopType_ = 0; - - if (goodsListBuilder_ == null) { - goodsList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - goodsListBuilder_.clear(); - } - if (mcoinProductListBuilder_ == null) { - mcoinProductList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - mcoinProductListBuilder_.clear(); - } - if (cardProductListBuilder_ == null) { - cardProductList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - cardProductListBuilder_.clear(); - } - nextRefreshTime_ = 0; - - cityId_ = 0; - - cityReputationLevel_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ShopOuterClass.internal_static_Shop_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ShopOuterClass.Shop getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ShopOuterClass.Shop.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ShopOuterClass.Shop build() { - emu.grasscutter.net.proto.ShopOuterClass.Shop result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ShopOuterClass.Shop buildPartial() { - emu.grasscutter.net.proto.ShopOuterClass.Shop result = new emu.grasscutter.net.proto.ShopOuterClass.Shop(this); - int from_bitField0_ = bitField0_; - result.shopType_ = shopType_; - if (goodsListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - goodsList_ = java.util.Collections.unmodifiableList(goodsList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.goodsList_ = goodsList_; - } else { - result.goodsList_ = goodsListBuilder_.build(); - } - if (mcoinProductListBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - mcoinProductList_ = java.util.Collections.unmodifiableList(mcoinProductList_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.mcoinProductList_ = mcoinProductList_; - } else { - result.mcoinProductList_ = mcoinProductListBuilder_.build(); - } - if (cardProductListBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - cardProductList_ = java.util.Collections.unmodifiableList(cardProductList_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.cardProductList_ = cardProductList_; - } else { - result.cardProductList_ = cardProductListBuilder_.build(); - } - result.nextRefreshTime_ = nextRefreshTime_; - result.cityId_ = cityId_; - result.cityReputationLevel_ = cityReputationLevel_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ShopOuterClass.Shop) { - return mergeFrom((emu.grasscutter.net.proto.ShopOuterClass.Shop)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ShopOuterClass.Shop other) { - if (other == emu.grasscutter.net.proto.ShopOuterClass.Shop.getDefaultInstance()) return this; - if (other.getShopType() != 0) { - setShopType(other.getShopType()); - } - if (goodsListBuilder_ == null) { - if (!other.goodsList_.isEmpty()) { - if (goodsList_.isEmpty()) { - goodsList_ = other.goodsList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureGoodsListIsMutable(); - goodsList_.addAll(other.goodsList_); - } - onChanged(); - } - } else { - if (!other.goodsList_.isEmpty()) { - if (goodsListBuilder_.isEmpty()) { - goodsListBuilder_.dispose(); - goodsListBuilder_ = null; - goodsList_ = other.goodsList_; - bitField0_ = (bitField0_ & ~0x00000001); - goodsListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGoodsListFieldBuilder() : null; - } else { - goodsListBuilder_.addAllMessages(other.goodsList_); - } - } - } - if (mcoinProductListBuilder_ == null) { - if (!other.mcoinProductList_.isEmpty()) { - if (mcoinProductList_.isEmpty()) { - mcoinProductList_ = other.mcoinProductList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMcoinProductListIsMutable(); - mcoinProductList_.addAll(other.mcoinProductList_); - } - onChanged(); - } - } else { - if (!other.mcoinProductList_.isEmpty()) { - if (mcoinProductListBuilder_.isEmpty()) { - mcoinProductListBuilder_.dispose(); - mcoinProductListBuilder_ = null; - mcoinProductList_ = other.mcoinProductList_; - bitField0_ = (bitField0_ & ~0x00000002); - mcoinProductListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMcoinProductListFieldBuilder() : null; - } else { - mcoinProductListBuilder_.addAllMessages(other.mcoinProductList_); - } - } - } - if (cardProductListBuilder_ == null) { - if (!other.cardProductList_.isEmpty()) { - if (cardProductList_.isEmpty()) { - cardProductList_ = other.cardProductList_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureCardProductListIsMutable(); - cardProductList_.addAll(other.cardProductList_); - } - onChanged(); - } - } else { - if (!other.cardProductList_.isEmpty()) { - if (cardProductListBuilder_.isEmpty()) { - cardProductListBuilder_.dispose(); - cardProductListBuilder_ = null; - cardProductList_ = other.cardProductList_; - bitField0_ = (bitField0_ & ~0x00000004); - cardProductListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCardProductListFieldBuilder() : null; - } else { - cardProductListBuilder_.addAllMessages(other.cardProductList_); - } - } - } - if (other.getNextRefreshTime() != 0) { - setNextRefreshTime(other.getNextRefreshTime()); - } - if (other.getCityId() != 0) { - setCityId(other.getCityId()); - } - if (other.getCityReputationLevel() != 0) { - setCityReputationLevel(other.getCityReputationLevel()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ShopOuterClass.Shop parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ShopOuterClass.Shop) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int shopType_ ; - /** - * <code>uint32 shopType = 1;</code> - * @return The shopType. - */ - @java.lang.Override - public int getShopType() { - return shopType_; - } - /** - * <code>uint32 shopType = 1;</code> - * @param value The shopType to set. - * @return This builder for chaining. - */ - public Builder setShopType(int value) { - - shopType_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 shopType = 1;</code> - * @return This builder for chaining. - */ - public Builder clearShopType() { - - shopType_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods> goodsList_ = - java.util.Collections.emptyList(); - private void ensureGoodsListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - goodsList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods>(goodsList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods, emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.Builder, emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoodsOrBuilder> goodsListBuilder_; - - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods> getGoodsListList() { - if (goodsListBuilder_ == null) { - return java.util.Collections.unmodifiableList(goodsList_); - } else { - return goodsListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - public int getGoodsListCount() { - if (goodsListBuilder_ == null) { - return goodsList_.size(); - } else { - return goodsListBuilder_.getCount(); - } - } - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - public emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods getGoodsList(int index) { - if (goodsListBuilder_ == null) { - return goodsList_.get(index); - } else { - return goodsListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - public Builder setGoodsList( - int index, emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods value) { - if (goodsListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGoodsListIsMutable(); - goodsList_.set(index, value); - onChanged(); - } else { - goodsListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - public Builder setGoodsList( - int index, emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.Builder builderForValue) { - if (goodsListBuilder_ == null) { - ensureGoodsListIsMutable(); - goodsList_.set(index, builderForValue.build()); - onChanged(); - } else { - goodsListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - public Builder addGoodsList(emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods value) { - if (goodsListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGoodsListIsMutable(); - goodsList_.add(value); - onChanged(); - } else { - goodsListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - public Builder addGoodsList( - int index, emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods value) { - if (goodsListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGoodsListIsMutable(); - goodsList_.add(index, value); - onChanged(); - } else { - goodsListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - public Builder addGoodsList( - emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.Builder builderForValue) { - if (goodsListBuilder_ == null) { - ensureGoodsListIsMutable(); - goodsList_.add(builderForValue.build()); - onChanged(); - } else { - goodsListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - public Builder addGoodsList( - int index, emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.Builder builderForValue) { - if (goodsListBuilder_ == null) { - ensureGoodsListIsMutable(); - goodsList_.add(index, builderForValue.build()); - onChanged(); - } else { - goodsListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - public Builder addAllGoodsList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods> values) { - if (goodsListBuilder_ == null) { - ensureGoodsListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, goodsList_); - onChanged(); - } else { - goodsListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - public Builder clearGoodsList() { - if (goodsListBuilder_ == null) { - goodsList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - goodsListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - public Builder removeGoodsList(int index) { - if (goodsListBuilder_ == null) { - ensureGoodsListIsMutable(); - goodsList_.remove(index); - onChanged(); - } else { - goodsListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - public emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.Builder getGoodsListBuilder( - int index) { - return getGoodsListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - public emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoodsOrBuilder getGoodsListOrBuilder( - int index) { - if (goodsListBuilder_ == null) { - return goodsList_.get(index); } else { - return goodsListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoodsOrBuilder> - getGoodsListOrBuilderList() { - if (goodsListBuilder_ != null) { - return goodsListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(goodsList_); - } - } - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - public emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.Builder addGoodsListBuilder() { - return getGoodsListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.getDefaultInstance()); - } - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - public emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.Builder addGoodsListBuilder( - int index) { - return getGoodsListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.getDefaultInstance()); - } - /** - * <code>repeated .ShopGoods goodsList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.Builder> - getGoodsListBuilderList() { - return getGoodsListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods, emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.Builder, emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoodsOrBuilder> - getGoodsListFieldBuilder() { - if (goodsListBuilder_ == null) { - goodsListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods, emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.Builder, emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoodsOrBuilder>( - goodsList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - goodsList_ = null; - } - return goodsListBuilder_; - } - - private java.util.List<emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct> mcoinProductList_ = - java.util.Collections.emptyList(); - private void ensureMcoinProductListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - mcoinProductList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct>(mcoinProductList_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct, emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct.Builder, emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProductOrBuilder> mcoinProductListBuilder_; - - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct> getMcoinProductListList() { - if (mcoinProductListBuilder_ == null) { - return java.util.Collections.unmodifiableList(mcoinProductList_); - } else { - return mcoinProductListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - public int getMcoinProductListCount() { - if (mcoinProductListBuilder_ == null) { - return mcoinProductList_.size(); - } else { - return mcoinProductListBuilder_.getCount(); - } - } - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - public emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct getMcoinProductList(int index) { - if (mcoinProductListBuilder_ == null) { - return mcoinProductList_.get(index); - } else { - return mcoinProductListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - public Builder setMcoinProductList( - int index, emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct value) { - if (mcoinProductListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMcoinProductListIsMutable(); - mcoinProductList_.set(index, value); - onChanged(); - } else { - mcoinProductListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - public Builder setMcoinProductList( - int index, emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct.Builder builderForValue) { - if (mcoinProductListBuilder_ == null) { - ensureMcoinProductListIsMutable(); - mcoinProductList_.set(index, builderForValue.build()); - onChanged(); - } else { - mcoinProductListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - public Builder addMcoinProductList(emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct value) { - if (mcoinProductListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMcoinProductListIsMutable(); - mcoinProductList_.add(value); - onChanged(); - } else { - mcoinProductListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - public Builder addMcoinProductList( - int index, emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct value) { - if (mcoinProductListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMcoinProductListIsMutable(); - mcoinProductList_.add(index, value); - onChanged(); - } else { - mcoinProductListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - public Builder addMcoinProductList( - emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct.Builder builderForValue) { - if (mcoinProductListBuilder_ == null) { - ensureMcoinProductListIsMutable(); - mcoinProductList_.add(builderForValue.build()); - onChanged(); - } else { - mcoinProductListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - public Builder addMcoinProductList( - int index, emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct.Builder builderForValue) { - if (mcoinProductListBuilder_ == null) { - ensureMcoinProductListIsMutable(); - mcoinProductList_.add(index, builderForValue.build()); - onChanged(); - } else { - mcoinProductListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - public Builder addAllMcoinProductList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct> values) { - if (mcoinProductListBuilder_ == null) { - ensureMcoinProductListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, mcoinProductList_); - onChanged(); - } else { - mcoinProductListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - public Builder clearMcoinProductList() { - if (mcoinProductListBuilder_ == null) { - mcoinProductList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - mcoinProductListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - public Builder removeMcoinProductList(int index) { - if (mcoinProductListBuilder_ == null) { - ensureMcoinProductListIsMutable(); - mcoinProductList_.remove(index); - onChanged(); - } else { - mcoinProductListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - public emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct.Builder getMcoinProductListBuilder( - int index) { - return getMcoinProductListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - public emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProductOrBuilder getMcoinProductListOrBuilder( - int index) { - if (mcoinProductListBuilder_ == null) { - return mcoinProductList_.get(index); } else { - return mcoinProductListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProductOrBuilder> - getMcoinProductListOrBuilderList() { - if (mcoinProductListBuilder_ != null) { - return mcoinProductListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(mcoinProductList_); - } - } - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - public emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct.Builder addMcoinProductListBuilder() { - return getMcoinProductListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct.getDefaultInstance()); - } - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - public emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct.Builder addMcoinProductListBuilder( - int index) { - return getMcoinProductListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct.getDefaultInstance()); - } - /** - * <code>repeated .ShopMcoinProduct mcoinProductList = 3;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct.Builder> - getMcoinProductListBuilderList() { - return getMcoinProductListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct, emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct.Builder, emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProductOrBuilder> - getMcoinProductListFieldBuilder() { - if (mcoinProductListBuilder_ == null) { - mcoinProductListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct, emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct.Builder, emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProductOrBuilder>( - mcoinProductList_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - mcoinProductList_ = null; - } - return mcoinProductListBuilder_; - } - - private java.util.List<emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct> cardProductList_ = - java.util.Collections.emptyList(); - private void ensureCardProductListIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - cardProductList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct>(cardProductList_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct, emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct.Builder, emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProductOrBuilder> cardProductListBuilder_; - - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct> getCardProductListList() { - if (cardProductListBuilder_ == null) { - return java.util.Collections.unmodifiableList(cardProductList_); - } else { - return cardProductListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - public int getCardProductListCount() { - if (cardProductListBuilder_ == null) { - return cardProductList_.size(); - } else { - return cardProductListBuilder_.getCount(); - } - } - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - public emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct getCardProductList(int index) { - if (cardProductListBuilder_ == null) { - return cardProductList_.get(index); - } else { - return cardProductListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - public Builder setCardProductList( - int index, emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct value) { - if (cardProductListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCardProductListIsMutable(); - cardProductList_.set(index, value); - onChanged(); - } else { - cardProductListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - public Builder setCardProductList( - int index, emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct.Builder builderForValue) { - if (cardProductListBuilder_ == null) { - ensureCardProductListIsMutable(); - cardProductList_.set(index, builderForValue.build()); - onChanged(); - } else { - cardProductListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - public Builder addCardProductList(emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct value) { - if (cardProductListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCardProductListIsMutable(); - cardProductList_.add(value); - onChanged(); - } else { - cardProductListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - public Builder addCardProductList( - int index, emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct value) { - if (cardProductListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCardProductListIsMutable(); - cardProductList_.add(index, value); - onChanged(); - } else { - cardProductListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - public Builder addCardProductList( - emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct.Builder builderForValue) { - if (cardProductListBuilder_ == null) { - ensureCardProductListIsMutable(); - cardProductList_.add(builderForValue.build()); - onChanged(); - } else { - cardProductListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - public Builder addCardProductList( - int index, emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct.Builder builderForValue) { - if (cardProductListBuilder_ == null) { - ensureCardProductListIsMutable(); - cardProductList_.add(index, builderForValue.build()); - onChanged(); - } else { - cardProductListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - public Builder addAllCardProductList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct> values) { - if (cardProductListBuilder_ == null) { - ensureCardProductListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, cardProductList_); - onChanged(); - } else { - cardProductListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - public Builder clearCardProductList() { - if (cardProductListBuilder_ == null) { - cardProductList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - cardProductListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - public Builder removeCardProductList(int index) { - if (cardProductListBuilder_ == null) { - ensureCardProductListIsMutable(); - cardProductList_.remove(index); - onChanged(); - } else { - cardProductListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - public emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct.Builder getCardProductListBuilder( - int index) { - return getCardProductListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - public emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProductOrBuilder getCardProductListOrBuilder( - int index) { - if (cardProductListBuilder_ == null) { - return cardProductList_.get(index); } else { - return cardProductListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProductOrBuilder> - getCardProductListOrBuilderList() { - if (cardProductListBuilder_ != null) { - return cardProductListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(cardProductList_); - } - } - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - public emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct.Builder addCardProductListBuilder() { - return getCardProductListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct.getDefaultInstance()); - } - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - public emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct.Builder addCardProductListBuilder( - int index) { - return getCardProductListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct.getDefaultInstance()); - } - /** - * <code>repeated .ShopCardProduct cardProductList = 4;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct.Builder> - getCardProductListBuilderList() { - return getCardProductListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct, emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct.Builder, emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProductOrBuilder> - getCardProductListFieldBuilder() { - if (cardProductListBuilder_ == null) { - cardProductListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct, emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct.Builder, emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProductOrBuilder>( - cardProductList_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - cardProductList_ = null; - } - return cardProductListBuilder_; - } - - private int nextRefreshTime_ ; - /** - * <code>uint32 nextRefreshTime = 6;</code> - * @return The nextRefreshTime. - */ - @java.lang.Override - public int getNextRefreshTime() { - return nextRefreshTime_; - } - /** - * <code>uint32 nextRefreshTime = 6;</code> - * @param value The nextRefreshTime to set. - * @return This builder for chaining. - */ - public Builder setNextRefreshTime(int value) { - - nextRefreshTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 nextRefreshTime = 6;</code> - * @return This builder for chaining. - */ - public Builder clearNextRefreshTime() { - - nextRefreshTime_ = 0; - onChanged(); - return this; - } - - private int cityId_ ; - /** - * <code>uint32 cityId = 7;</code> - * @return The cityId. - */ - @java.lang.Override - public int getCityId() { - return cityId_; - } - /** - * <code>uint32 cityId = 7;</code> - * @param value The cityId to set. - * @return This builder for chaining. - */ - public Builder setCityId(int value) { - - cityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 cityId = 7;</code> - * @return This builder for chaining. - */ - public Builder clearCityId() { - - cityId_ = 0; - onChanged(); - return this; - } - - private int cityReputationLevel_ ; - /** - * <code>uint32 cityReputationLevel = 8;</code> - * @return The cityReputationLevel. - */ - @java.lang.Override - public int getCityReputationLevel() { - return cityReputationLevel_; - } - /** - * <code>uint32 cityReputationLevel = 8;</code> - * @param value The cityReputationLevel to set. - * @return This builder for chaining. - */ - public Builder setCityReputationLevel(int value) { - - cityReputationLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 cityReputationLevel = 8;</code> - * @return This builder for chaining. - */ - public Builder clearCityReputationLevel() { - - cityReputationLevel_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Shop) - } - - // @@protoc_insertion_point(class_scope:Shop) - private static final emu.grasscutter.net.proto.ShopOuterClass.Shop DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ShopOuterClass.Shop(); - } - - public static emu.grasscutter.net.proto.ShopOuterClass.Shop getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<Shop> - PARSER = new com.google.protobuf.AbstractParser<Shop>() { - @java.lang.Override - public Shop parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Shop(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<Shop> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Shop> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ShopOuterClass.Shop getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Shop_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Shop_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\nShop.proto\032\025ShopCardProduct.proto\032\017Sho" + - "pGoods.proto\032\026ShopMcoinProduct.proto\"\325\001\n" + - "\004Shop\022\020\n\010shopType\030\001 \001(\r\022\035\n\tgoodsList\030\002 \003" + - "(\0132\n.ShopGoods\022+\n\020mcoinProductList\030\003 \003(\013" + - "2\021.ShopMcoinProduct\022)\n\017cardProductList\030\004" + - " \003(\0132\020.ShopCardProduct\022\027\n\017nextRefreshTim" + - "e\030\006 \001(\r\022\016\n\006cityId\030\007 \001(\r\022\033\n\023cityReputatio" + - "nLevel\030\010 \001(\rB\033\n\031emu.grasscutter.net.prot" + - "ob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ShopCardProductOuterClass.getDescriptor(), - emu.grasscutter.net.proto.ShopGoodsOuterClass.getDescriptor(), - emu.grasscutter.net.proto.ShopMcoinProductOuterClass.getDescriptor(), - }); - internal_static_Shop_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_Shop_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Shop_descriptor, - new java.lang.String[] { "ShopType", "GoodsList", "McoinProductList", "CardProductList", "NextRefreshTime", "CityId", "CityReputationLevel", }); - emu.grasscutter.net.proto.ShopCardProductOuterClass.getDescriptor(); - emu.grasscutter.net.proto.ShopGoodsOuterClass.getDescriptor(); - emu.grasscutter.net.proto.ShopMcoinProductOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/ShortAbilityHashPairOuterClass.java b/src/main/java/emu/grasscutter/net/proto/ShortAbilityHashPairOuterClass.java deleted file mode 100644 index 4545819b5..000000000 --- a/src/main/java/emu/grasscutter/net/proto/ShortAbilityHashPairOuterClass.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ShortAbilityHashPair.proto - -package emu.grasscutter.net.proto; - -public final class ShortAbilityHashPairOuterClass { - private ShortAbilityHashPairOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ShortAbilityHashPairOrBuilder extends - // @@protoc_insertion_point(interface_extends:ShortAbilityHashPair) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 abilityNameHash = 1;</code> - * @return The abilityNameHash. - */ - int getAbilityNameHash(); - - /** - * <code>int32 abilityConfigHash = 2;</code> - * @return The abilityConfigHash. - */ - int getAbilityConfigHash(); - } - /** - * Protobuf type {@code ShortAbilityHashPair} - */ - public static final class ShortAbilityHashPair extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ShortAbilityHashPair) - ShortAbilityHashPairOrBuilder { - private static final long serialVersionUID = 0L; - // Use ShortAbilityHashPair.newBuilder() to construct. - private ShortAbilityHashPair(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ShortAbilityHashPair() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ShortAbilityHashPair(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ShortAbilityHashPair( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - abilityNameHash_ = input.readInt32(); - break; - } - case 16: { - - abilityConfigHash_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.internal_static_ShortAbilityHashPair_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.internal_static_ShortAbilityHashPair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair.class, emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair.Builder.class); - } - - public static final int ABILITYNAMEHASH_FIELD_NUMBER = 1; - private int abilityNameHash_; - /** - * <code>int32 abilityNameHash = 1;</code> - * @return The abilityNameHash. - */ - @java.lang.Override - public int getAbilityNameHash() { - return abilityNameHash_; - } - - public static final int ABILITYCONFIGHASH_FIELD_NUMBER = 2; - private int abilityConfigHash_; - /** - * <code>int32 abilityConfigHash = 2;</code> - * @return The abilityConfigHash. - */ - @java.lang.Override - public int getAbilityConfigHash() { - return abilityConfigHash_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (abilityNameHash_ != 0) { - output.writeInt32(1, abilityNameHash_); - } - if (abilityConfigHash_ != 0) { - output.writeInt32(2, abilityConfigHash_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (abilityNameHash_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, abilityNameHash_); - } - if (abilityConfigHash_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, abilityConfigHash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair other = (emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair) obj; - - if (getAbilityNameHash() - != other.getAbilityNameHash()) return false; - if (getAbilityConfigHash() - != other.getAbilityConfigHash()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ABILITYNAMEHASH_FIELD_NUMBER; - hash = (53 * hash) + getAbilityNameHash(); - hash = (37 * hash) + ABILITYCONFIGHASH_FIELD_NUMBER; - hash = (53 * hash) + getAbilityConfigHash(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ShortAbilityHashPair} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:ShortAbilityHashPair) - emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPairOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.internal_static_ShortAbilityHashPair_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.internal_static_ShortAbilityHashPair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair.class, emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - abilityNameHash_ = 0; - - abilityConfigHash_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.internal_static_ShortAbilityHashPair_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair getDefaultInstanceForType() { - return emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair build() { - emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair buildPartial() { - emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair result = new emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair(this); - result.abilityNameHash_ = abilityNameHash_; - result.abilityConfigHash_ = abilityConfigHash_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair) { - return mergeFrom((emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair other) { - if (other == emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair.getDefaultInstance()) return this; - if (other.getAbilityNameHash() != 0) { - setAbilityNameHash(other.getAbilityNameHash()); - } - if (other.getAbilityConfigHash() != 0) { - setAbilityConfigHash(other.getAbilityConfigHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int abilityNameHash_ ; - /** - * <code>int32 abilityNameHash = 1;</code> - * @return The abilityNameHash. - */ - @java.lang.Override - public int getAbilityNameHash() { - return abilityNameHash_; - } - /** - * <code>int32 abilityNameHash = 1;</code> - * @param value The abilityNameHash to set. - * @return This builder for chaining. - */ - public Builder setAbilityNameHash(int value) { - - abilityNameHash_ = value; - onChanged(); - return this; - } - /** - * <code>int32 abilityNameHash = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAbilityNameHash() { - - abilityNameHash_ = 0; - onChanged(); - return this; - } - - private int abilityConfigHash_ ; - /** - * <code>int32 abilityConfigHash = 2;</code> - * @return The abilityConfigHash. - */ - @java.lang.Override - public int getAbilityConfigHash() { - return abilityConfigHash_; - } - /** - * <code>int32 abilityConfigHash = 2;</code> - * @param value The abilityConfigHash to set. - * @return This builder for chaining. - */ - public Builder setAbilityConfigHash(int value) { - - abilityConfigHash_ = value; - onChanged(); - return this; - } - /** - * <code>int32 abilityConfigHash = 2;</code> - * @return This builder for chaining. - */ - public Builder clearAbilityConfigHash() { - - abilityConfigHash_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ShortAbilityHashPair) - } - - // @@protoc_insertion_point(class_scope:ShortAbilityHashPair) - private static final emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair(); - } - - public static emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ShortAbilityHashPair> - PARSER = new com.google.protobuf.AbstractParser<ShortAbilityHashPair>() { - @java.lang.Override - public ShortAbilityHashPair parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ShortAbilityHashPair(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ShortAbilityHashPair> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ShortAbilityHashPair> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ShortAbilityHashPair_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ShortAbilityHashPair_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032ShortAbilityHashPair.proto\"J\n\024ShortAbi" + - "lityHashPair\022\027\n\017abilityNameHash\030\001 \001(\005\022\031\n" + - "\021abilityConfigHash\030\002 \001(\005B\033\n\031emu.grasscut" + - "ter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_ShortAbilityHashPair_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ShortAbilityHashPair_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ShortAbilityHashPair_descriptor, - new java.lang.String[] { "AbilityNameHash", "AbilityConfigHash", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SitReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SitReqOuterClass.java deleted file mode 100644 index bf6d6f0d1..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SitReqOuterClass.java +++ /dev/null @@ -1,744 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SitReq.proto - -package emu.grasscutter.net.proto; - -public final class SitReqOuterClass { - private SitReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SitReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:SitReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 chair_id = 1;</code> - * @return The chairId. - */ - long getChairId(); - - /** - * <code>.Vector position = 2;</code> - * @return Whether the position field is set. - */ - boolean hasPosition(); - /** - * <code>.Vector position = 2;</code> - * @return The position. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getPosition(); - /** - * <code>.Vector position = 2;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPositionOrBuilder(); - } - /** - * Protobuf type {@code SitReq} - */ - public static final class SitReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SitReq) - SitReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use SitReq.newBuilder() to construct. - private SitReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SitReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SitReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SitReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - chairId_ = input.readUInt64(); - break; - } - case 18: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (position_ != null) { - subBuilder = position_.toBuilder(); - } - position_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(position_); - position_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SitReqOuterClass.internal_static_SitReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SitReqOuterClass.internal_static_SitReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SitReqOuterClass.SitReq.class, emu.grasscutter.net.proto.SitReqOuterClass.SitReq.Builder.class); - } - - public static final int CHAIR_ID_FIELD_NUMBER = 1; - private long chairId_; - /** - * <code>uint64 chair_id = 1;</code> - * @return The chairId. - */ - @java.lang.Override - public long getChairId() { - return chairId_; - } - - public static final int POSITION_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.VectorOuterClass.Vector position_; - /** - * <code>.Vector position = 2;</code> - * @return Whether the position field is set. - */ - @java.lang.Override - public boolean hasPosition() { - return position_ != null; - } - /** - * <code>.Vector position = 2;</code> - * @return The position. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getPosition() { - return position_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : position_; - } - /** - * <code>.Vector position = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPositionOrBuilder() { - return getPosition(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (chairId_ != 0L) { - output.writeUInt64(1, chairId_); - } - if (position_ != null) { - output.writeMessage(2, getPosition()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (chairId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, chairId_); - } - if (position_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPosition()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SitReqOuterClass.SitReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SitReqOuterClass.SitReq other = (emu.grasscutter.net.proto.SitReqOuterClass.SitReq) obj; - - if (getChairId() - != other.getChairId()) return false; - if (hasPosition() != other.hasPosition()) return false; - if (hasPosition()) { - if (!getPosition() - .equals(other.getPosition())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CHAIR_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getChairId()); - if (hasPosition()) { - hash = (37 * hash) + POSITION_FIELD_NUMBER; - hash = (53 * hash) + getPosition().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SitReqOuterClass.SitReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SitReqOuterClass.SitReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SitReqOuterClass.SitReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SitReqOuterClass.SitReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SitReqOuterClass.SitReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SitReqOuterClass.SitReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SitReqOuterClass.SitReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SitReqOuterClass.SitReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SitReqOuterClass.SitReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SitReqOuterClass.SitReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SitReqOuterClass.SitReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SitReqOuterClass.SitReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SitReqOuterClass.SitReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SitReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SitReq) - emu.grasscutter.net.proto.SitReqOuterClass.SitReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SitReqOuterClass.internal_static_SitReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SitReqOuterClass.internal_static_SitReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SitReqOuterClass.SitReq.class, emu.grasscutter.net.proto.SitReqOuterClass.SitReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SitReqOuterClass.SitReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - chairId_ = 0L; - - if (positionBuilder_ == null) { - position_ = null; - } else { - position_ = null; - positionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SitReqOuterClass.internal_static_SitReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SitReqOuterClass.SitReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SitReqOuterClass.SitReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SitReqOuterClass.SitReq build() { - emu.grasscutter.net.proto.SitReqOuterClass.SitReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SitReqOuterClass.SitReq buildPartial() { - emu.grasscutter.net.proto.SitReqOuterClass.SitReq result = new emu.grasscutter.net.proto.SitReqOuterClass.SitReq(this); - result.chairId_ = chairId_; - if (positionBuilder_ == null) { - result.position_ = position_; - } else { - result.position_ = positionBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SitReqOuterClass.SitReq) { - return mergeFrom((emu.grasscutter.net.proto.SitReqOuterClass.SitReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SitReqOuterClass.SitReq other) { - if (other == emu.grasscutter.net.proto.SitReqOuterClass.SitReq.getDefaultInstance()) return this; - if (other.getChairId() != 0L) { - setChairId(other.getChairId()); - } - if (other.hasPosition()) { - mergePosition(other.getPosition()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SitReqOuterClass.SitReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SitReqOuterClass.SitReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long chairId_ ; - /** - * <code>uint64 chair_id = 1;</code> - * @return The chairId. - */ - @java.lang.Override - public long getChairId() { - return chairId_; - } - /** - * <code>uint64 chair_id = 1;</code> - * @param value The chairId to set. - * @return This builder for chaining. - */ - public Builder setChairId(long value) { - - chairId_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 chair_id = 1;</code> - * @return This builder for chaining. - */ - public Builder clearChairId() { - - chairId_ = 0L; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.VectorOuterClass.Vector position_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> positionBuilder_; - /** - * <code>.Vector position = 2;</code> - * @return Whether the position field is set. - */ - public boolean hasPosition() { - return positionBuilder_ != null || position_ != null; - } - /** - * <code>.Vector position = 2;</code> - * @return The position. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getPosition() { - if (positionBuilder_ == null) { - return position_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : position_; - } else { - return positionBuilder_.getMessage(); - } - } - /** - * <code>.Vector position = 2;</code> - */ - public Builder setPosition(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (positionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - position_ = value; - onChanged(); - } else { - positionBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Vector position = 2;</code> - */ - public Builder setPosition( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (positionBuilder_ == null) { - position_ = builderForValue.build(); - onChanged(); - } else { - positionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Vector position = 2;</code> - */ - public Builder mergePosition(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (positionBuilder_ == null) { - if (position_ != null) { - position_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(position_).mergeFrom(value).buildPartial(); - } else { - position_ = value; - } - onChanged(); - } else { - positionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Vector position = 2;</code> - */ - public Builder clearPosition() { - if (positionBuilder_ == null) { - position_ = null; - onChanged(); - } else { - position_ = null; - positionBuilder_ = null; - } - - return this; - } - /** - * <code>.Vector position = 2;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getPositionBuilder() { - - onChanged(); - return getPositionFieldBuilder().getBuilder(); - } - /** - * <code>.Vector position = 2;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPositionOrBuilder() { - if (positionBuilder_ != null) { - return positionBuilder_.getMessageOrBuilder(); - } else { - return position_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : position_; - } - } - /** - * <code>.Vector position = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getPositionFieldBuilder() { - if (positionBuilder_ == null) { - positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getPosition(), - getParentForChildren(), - isClean()); - position_ = null; - } - return positionBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SitReq) - } - - // @@protoc_insertion_point(class_scope:SitReq) - private static final emu.grasscutter.net.proto.SitReqOuterClass.SitReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SitReqOuterClass.SitReq(); - } - - public static emu.grasscutter.net.proto.SitReqOuterClass.SitReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SitReq> - PARSER = new com.google.protobuf.AbstractParser<SitReq>() { - @java.lang.Override - public SitReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SitReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SitReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SitReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SitReqOuterClass.SitReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SitReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SitReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\014SitReq.proto\032\014Vector.proto\"5\n\006SitReq\022\020" + - "\n\010chair_id\030\001 \001(\004\022\031\n\010position\030\002 \001(\0132\007.Vec" + - "torB\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(), - }); - internal_static_SitReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SitReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SitReq_descriptor, - new java.lang.String[] { "ChairId", "Position", }); - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SitRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SitRspOuterClass.java deleted file mode 100644 index eeed03216..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SitRspOuterClass.java +++ /dev/null @@ -1,815 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SitRsp.proto - -package emu.grasscutter.net.proto; - -public final class SitRspOuterClass { - private SitRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SitRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:SitRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 entity_id = 2;</code> - * @return The entityId. - */ - int getEntityId(); - - /** - * <code>.Vector position = 3;</code> - * @return Whether the position field is set. - */ - boolean hasPosition(); - /** - * <code>.Vector position = 3;</code> - * @return The position. - */ - emu.grasscutter.net.proto.VectorOuterClass.Vector getPosition(); - /** - * <code>.Vector position = 3;</code> - */ - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPositionOrBuilder(); - - /** - * <code>uint64 chair_id = 4;</code> - * @return The chairId. - */ - long getChairId(); - } - /** - * Protobuf type {@code SitRsp} - */ - public static final class SitRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SitRsp) - SitRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use SitRsp.newBuilder() to construct. - private SitRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SitRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SitRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SitRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 16: { - - entityId_ = input.readUInt32(); - break; - } - case 26: { - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; - if (position_ != null) { - subBuilder = position_.toBuilder(); - } - position_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(position_); - position_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - - chairId_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SitRspOuterClass.internal_static_SitRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SitRspOuterClass.internal_static_SitRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SitRspOuterClass.SitRsp.class, emu.grasscutter.net.proto.SitRspOuterClass.SitRsp.Builder.class); - } - - public static final int ENTITY_ID_FIELD_NUMBER = 2; - private int entityId_; - /** - * <code>uint32 entity_id = 2;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - - public static final int POSITION_FIELD_NUMBER = 3; - private emu.grasscutter.net.proto.VectorOuterClass.Vector position_; - /** - * <code>.Vector position = 3;</code> - * @return Whether the position field is set. - */ - @java.lang.Override - public boolean hasPosition() { - return position_ != null; - } - /** - * <code>.Vector position = 3;</code> - * @return The position. - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getPosition() { - return position_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : position_; - } - /** - * <code>.Vector position = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPositionOrBuilder() { - return getPosition(); - } - - public static final int CHAIR_ID_FIELD_NUMBER = 4; - private long chairId_; - /** - * <code>uint64 chair_id = 4;</code> - * @return The chairId. - */ - @java.lang.Override - public long getChairId() { - return chairId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (entityId_ != 0) { - output.writeUInt32(2, entityId_); - } - if (position_ != null) { - output.writeMessage(3, getPosition()); - } - if (chairId_ != 0L) { - output.writeUInt64(4, chairId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, entityId_); - } - if (position_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPosition()); - } - if (chairId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, chairId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SitRspOuterClass.SitRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SitRspOuterClass.SitRsp other = (emu.grasscutter.net.proto.SitRspOuterClass.SitRsp) obj; - - if (getEntityId() - != other.getEntityId()) return false; - if (hasPosition() != other.hasPosition()) return false; - if (hasPosition()) { - if (!getPosition() - .equals(other.getPosition())) return false; - } - if (getChairId() - != other.getChairId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId(); - if (hasPosition()) { - hash = (37 * hash) + POSITION_FIELD_NUMBER; - hash = (53 * hash) + getPosition().hashCode(); - } - hash = (37 * hash) + CHAIR_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getChairId()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SitRspOuterClass.SitRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SitRspOuterClass.SitRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SitRspOuterClass.SitRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SitRspOuterClass.SitRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SitRspOuterClass.SitRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SitRspOuterClass.SitRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SitRspOuterClass.SitRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SitRspOuterClass.SitRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SitRspOuterClass.SitRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SitRspOuterClass.SitRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SitRspOuterClass.SitRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SitRspOuterClass.SitRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SitRspOuterClass.SitRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SitRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SitRsp) - emu.grasscutter.net.proto.SitRspOuterClass.SitRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SitRspOuterClass.internal_static_SitRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SitRspOuterClass.internal_static_SitRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SitRspOuterClass.SitRsp.class, emu.grasscutter.net.proto.SitRspOuterClass.SitRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SitRspOuterClass.SitRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - entityId_ = 0; - - if (positionBuilder_ == null) { - position_ = null; - } else { - position_ = null; - positionBuilder_ = null; - } - chairId_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SitRspOuterClass.internal_static_SitRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SitRspOuterClass.SitRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SitRspOuterClass.SitRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SitRspOuterClass.SitRsp build() { - emu.grasscutter.net.proto.SitRspOuterClass.SitRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SitRspOuterClass.SitRsp buildPartial() { - emu.grasscutter.net.proto.SitRspOuterClass.SitRsp result = new emu.grasscutter.net.proto.SitRspOuterClass.SitRsp(this); - result.entityId_ = entityId_; - if (positionBuilder_ == null) { - result.position_ = position_; - } else { - result.position_ = positionBuilder_.build(); - } - result.chairId_ = chairId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SitRspOuterClass.SitRsp) { - return mergeFrom((emu.grasscutter.net.proto.SitRspOuterClass.SitRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SitRspOuterClass.SitRsp other) { - if (other == emu.grasscutter.net.proto.SitRspOuterClass.SitRsp.getDefaultInstance()) return this; - if (other.getEntityId() != 0) { - setEntityId(other.getEntityId()); - } - if (other.hasPosition()) { - mergePosition(other.getPosition()); - } - if (other.getChairId() != 0L) { - setChairId(other.getChairId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SitRspOuterClass.SitRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SitRspOuterClass.SitRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int entityId_ ; - /** - * <code>uint32 entity_id = 2;</code> - * @return The entityId. - */ - @java.lang.Override - public int getEntityId() { - return entityId_; - } - /** - * <code>uint32 entity_id = 2;</code> - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId(int value) { - - entityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 entity_id = 2;</code> - * @return This builder for chaining. - */ - public Builder clearEntityId() { - - entityId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.VectorOuterClass.Vector position_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> positionBuilder_; - /** - * <code>.Vector position = 3;</code> - * @return Whether the position field is set. - */ - public boolean hasPosition() { - return positionBuilder_ != null || position_ != null; - } - /** - * <code>.Vector position = 3;</code> - * @return The position. - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector getPosition() { - if (positionBuilder_ == null) { - return position_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : position_; - } else { - return positionBuilder_.getMessage(); - } - } - /** - * <code>.Vector position = 3;</code> - */ - public Builder setPosition(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (positionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - position_ = value; - onChanged(); - } else { - positionBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Vector position = 3;</code> - */ - public Builder setPosition( - emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { - if (positionBuilder_ == null) { - position_ = builderForValue.build(); - onChanged(); - } else { - positionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Vector position = 3;</code> - */ - public Builder mergePosition(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { - if (positionBuilder_ == null) { - if (position_ != null) { - position_ = - emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(position_).mergeFrom(value).buildPartial(); - } else { - position_ = value; - } - onChanged(); - } else { - positionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Vector position = 3;</code> - */ - public Builder clearPosition() { - if (positionBuilder_ == null) { - position_ = null; - onChanged(); - } else { - position_ = null; - positionBuilder_ = null; - } - - return this; - } - /** - * <code>.Vector position = 3;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getPositionBuilder() { - - onChanged(); - return getPositionFieldBuilder().getBuilder(); - } - /** - * <code>.Vector position = 3;</code> - */ - public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPositionOrBuilder() { - if (positionBuilder_ != null) { - return positionBuilder_.getMessageOrBuilder(); - } else { - return position_ == null ? - emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : position_; - } - } - /** - * <code>.Vector position = 3;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> - getPositionFieldBuilder() { - if (positionBuilder_ == null) { - positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( - getPosition(), - getParentForChildren(), - isClean()); - position_ = null; - } - return positionBuilder_; - } - - private long chairId_ ; - /** - * <code>uint64 chair_id = 4;</code> - * @return The chairId. - */ - @java.lang.Override - public long getChairId() { - return chairId_; - } - /** - * <code>uint64 chair_id = 4;</code> - * @param value The chairId to set. - * @return This builder for chaining. - */ - public Builder setChairId(long value) { - - chairId_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 chair_id = 4;</code> - * @return This builder for chaining. - */ - public Builder clearChairId() { - - chairId_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SitRsp) - } - - // @@protoc_insertion_point(class_scope:SitRsp) - private static final emu.grasscutter.net.proto.SitRspOuterClass.SitRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SitRspOuterClass.SitRsp(); - } - - public static emu.grasscutter.net.proto.SitRspOuterClass.SitRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SitRsp> - PARSER = new com.google.protobuf.AbstractParser<SitRsp>() { - @java.lang.Override - public SitRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SitRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SitRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SitRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SitRspOuterClass.SitRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SitRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SitRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\014SitRsp.proto\032\014Vector.proto\"H\n\006SitRsp\022\021" + - "\n\tentity_id\030\002 \001(\r\022\031\n\010position\030\003 \001(\0132\007.Ve" + - "ctor\022\020\n\010chair_id\030\004 \001(\004B\033\n\031emu.grasscutte" + - "r.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(), - }); - internal_static_SitRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SitRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SitRsp_descriptor, - new java.lang.String[] { "EntityId", "Position", "ChairId", }); - emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SocialDetailOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SocialDetailOuterClass.java deleted file mode 100644 index 1ebf96d00..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SocialDetailOuterClass.java +++ /dev/null @@ -1,2835 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SocialDetail.proto - -package emu.grasscutter.net.proto; - -public final class SocialDetailOuterClass { - private SocialDetailOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SocialDetailOrBuilder extends - // @@protoc_insertion_point(interface_extends:SocialDetail) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 uid = 1;</code> - * @return The uid. - */ - int getUid(); - - /** - * <code>string nickname = 2;</code> - * @return The nickname. - */ - java.lang.String getNickname(); - /** - * <code>string nickname = 2;</code> - * @return The bytes for nickname. - */ - com.google.protobuf.ByteString - getNicknameBytes(); - - /** - * <code>uint32 level = 3;</code> - * @return The level. - */ - int getLevel(); - - /** - * <code>string signature = 5;</code> - * @return The signature. - */ - java.lang.String getSignature(); - /** - * <code>string signature = 5;</code> - * @return The bytes for signature. - */ - com.google.protobuf.ByteString - getSignatureBytes(); - - /** - * <code>.Birthday birthday = 6;</code> - * @return Whether the birthday field is set. - */ - boolean hasBirthday(); - /** - * <code>.Birthday birthday = 6;</code> - * @return The birthday. - */ - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday getBirthday(); - /** - * <code>.Birthday birthday = 6;</code> - */ - emu.grasscutter.net.proto.BirthdayOuterClass.BirthdayOrBuilder getBirthdayOrBuilder(); - - /** - * <code>uint32 worldLevel = 7;</code> - * @return The worldLevel. - */ - int getWorldLevel(); - - /** - * <code>uint32 unk1 = 9;</code> - * @return The unk1. - */ - int getUnk1(); - - /** - * <pre> - *FriendOnlineState onlineState = 10; - *bool isMpModeAvailable = 10; - * </pre> - * - * <code>bool isFriend = 11;</code> - * @return The isFriend. - */ - boolean getIsFriend(); - - /** - * <code>uint32 unk3 = 12;</code> - * @return The unk3. - */ - int getUnk3(); - - /** - * <code>uint32 lastActiveTime = 13;</code> - * @return The lastActiveTime. - */ - int getLastActiveTime(); - - /** - * <code>uint32 nameCardId = 14;</code> - * @return The nameCardId. - */ - int getNameCardId(); - - /** - * <code>bool isInBlacklist = 15;</code> - * @return The isInBlacklist. - */ - boolean getIsInBlacklist(); - - /** - * <code>bool isChatNoDisturb = 16;</code> - * @return The isChatNoDisturb. - */ - boolean getIsChatNoDisturb(); - - /** - * <code>string remarkName = 17;</code> - * @return The remarkName. - */ - java.lang.String getRemarkName(); - /** - * <code>string remarkName = 17;</code> - * @return The bytes for remarkName. - */ - com.google.protobuf.ByteString - getRemarkNameBytes(); - - /** - * <code>uint32 finishAchievementNum = 18;</code> - * @return The finishAchievementNum. - */ - int getFinishAchievementNum(); - - /** - * <code>uint32 towerFloorIndex = 19;</code> - * @return The towerFloorIndex. - */ - int getTowerFloorIndex(); - - /** - * <code>uint32 towerLevelIndex = 20;</code> - * @return The towerLevelIndex. - */ - int getTowerLevelIndex(); - - /** - * <code>bool isShowAvatar = 21;</code> - * @return The isShowAvatar. - */ - boolean getIsShowAvatar(); - - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - java.util.List<emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo> - getShowAvatarInfoListList(); - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo getShowAvatarInfoList(int index); - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - int getShowAvatarInfoListCount(); - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder> - getShowAvatarInfoListOrBuilderList(); - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder getShowAvatarInfoListOrBuilder( - int index); - - /** - * <code>.FriendEnterHomeOption friendEnterHomeOption = 23;</code> - * @return The enum numeric value on the wire for friendEnterHomeOption. - */ - int getFriendEnterHomeOptionValue(); - /** - * <code>.FriendEnterHomeOption friendEnterHomeOption = 23;</code> - * @return The friendEnterHomeOption. - */ - emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption getFriendEnterHomeOption(); - - /** - * <code>.HeadImage avatar = 25;</code> - * @return Whether the avatar field is set. - */ - boolean hasAvatar(); - /** - * <code>.HeadImage avatar = 25;</code> - * @return The avatar. - */ - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage getAvatar(); - /** - * <code>.HeadImage avatar = 25;</code> - */ - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder getAvatarOrBuilder(); - } - /** - * Protobuf type {@code SocialDetail} - */ - public static final class SocialDetail extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SocialDetail) - SocialDetailOrBuilder { - private static final long serialVersionUID = 0L; - // Use SocialDetail.newBuilder() to construct. - private SocialDetail(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SocialDetail() { - nickname_ = ""; - signature_ = ""; - remarkName_ = ""; - showAvatarInfoList_ = java.util.Collections.emptyList(); - friendEnterHomeOption_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SocialDetail(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SocialDetail( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - uid_ = input.readUInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - nickname_ = s; - break; - } - case 24: { - - level_ = input.readUInt32(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - signature_ = s; - break; - } - case 50: { - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.Builder subBuilder = null; - if (birthday_ != null) { - subBuilder = birthday_.toBuilder(); - } - birthday_ = input.readMessage(emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(birthday_); - birthday_ = subBuilder.buildPartial(); - } - - break; - } - case 56: { - - worldLevel_ = input.readUInt32(); - break; - } - case 72: { - - unk1_ = input.readUInt32(); - break; - } - case 88: { - - isFriend_ = input.readBool(); - break; - } - case 96: { - - unk3_ = input.readUInt32(); - break; - } - case 104: { - - lastActiveTime_ = input.readUInt32(); - break; - } - case 112: { - - nameCardId_ = input.readUInt32(); - break; - } - case 120: { - - isInBlacklist_ = input.readBool(); - break; - } - case 128: { - - isChatNoDisturb_ = input.readBool(); - break; - } - case 138: { - java.lang.String s = input.readStringRequireUtf8(); - - remarkName_ = s; - break; - } - case 144: { - - finishAchievementNum_ = input.readUInt32(); - break; - } - case 152: { - - towerFloorIndex_ = input.readUInt32(); - break; - } - case 160: { - - towerLevelIndex_ = input.readUInt32(); - break; - } - case 168: { - - isShowAvatar_ = input.readBool(); - break; - } - case 178: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - showAvatarInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo>(); - mutable_bitField0_ |= 0x00000001; - } - showAvatarInfoList_.add( - input.readMessage(emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.parser(), extensionRegistry)); - break; - } - case 184: { - int rawValue = input.readEnum(); - - friendEnterHomeOption_ = rawValue; - break; - } - case 202: { - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder subBuilder = null; - if (avatar_ != null) { - subBuilder = avatar_.toBuilder(); - } - avatar_ = input.readMessage(emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(avatar_); - avatar_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - showAvatarInfoList_ = java.util.Collections.unmodifiableList(showAvatarInfoList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SocialDetailOuterClass.internal_static_SocialDetail_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SocialDetailOuterClass.internal_static_SocialDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail.class, emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail.Builder.class); - } - - public static final int UID_FIELD_NUMBER = 1; - private int uid_; - /** - * <code>uint32 uid = 1;</code> - * @return The uid. - */ - @java.lang.Override - public int getUid() { - return uid_; - } - - public static final int NICKNAME_FIELD_NUMBER = 2; - private volatile java.lang.Object nickname_; - /** - * <code>string nickname = 2;</code> - * @return The nickname. - */ - @java.lang.Override - public java.lang.String getNickname() { - java.lang.Object ref = nickname_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nickname_ = s; - return s; - } - } - /** - * <code>string nickname = 2;</code> - * @return The bytes for nickname. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNicknameBytes() { - java.lang.Object ref = nickname_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nickname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LEVEL_FIELD_NUMBER = 3; - private int level_; - /** - * <code>uint32 level = 3;</code> - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - - public static final int SIGNATURE_FIELD_NUMBER = 5; - private volatile java.lang.Object signature_; - /** - * <code>string signature = 5;</code> - * @return The signature. - */ - @java.lang.Override - public java.lang.String getSignature() { - java.lang.Object ref = signature_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signature_ = s; - return s; - } - } - /** - * <code>string signature = 5;</code> - * @return The bytes for signature. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSignatureBytes() { - java.lang.Object ref = signature_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signature_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BIRTHDAY_FIELD_NUMBER = 6; - private emu.grasscutter.net.proto.BirthdayOuterClass.Birthday birthday_; - /** - * <code>.Birthday birthday = 6;</code> - * @return Whether the birthday field is set. - */ - @java.lang.Override - public boolean hasBirthday() { - return birthday_ != null; - } - /** - * <code>.Birthday birthday = 6;</code> - * @return The birthday. - */ - @java.lang.Override - public emu.grasscutter.net.proto.BirthdayOuterClass.Birthday getBirthday() { - return birthday_ == null ? emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.getDefaultInstance() : birthday_; - } - /** - * <code>.Birthday birthday = 6;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.BirthdayOuterClass.BirthdayOrBuilder getBirthdayOrBuilder() { - return getBirthday(); - } - - public static final int WORLDLEVEL_FIELD_NUMBER = 7; - private int worldLevel_; - /** - * <code>uint32 worldLevel = 7;</code> - * @return The worldLevel. - */ - @java.lang.Override - public int getWorldLevel() { - return worldLevel_; - } - - public static final int UNK1_FIELD_NUMBER = 9; - private int unk1_; - /** - * <code>uint32 unk1 = 9;</code> - * @return The unk1. - */ - @java.lang.Override - public int getUnk1() { - return unk1_; - } - - public static final int ISFRIEND_FIELD_NUMBER = 11; - private boolean isFriend_; - /** - * <pre> - *FriendOnlineState onlineState = 10; - *bool isMpModeAvailable = 10; - * </pre> - * - * <code>bool isFriend = 11;</code> - * @return The isFriend. - */ - @java.lang.Override - public boolean getIsFriend() { - return isFriend_; - } - - public static final int UNK3_FIELD_NUMBER = 12; - private int unk3_; - /** - * <code>uint32 unk3 = 12;</code> - * @return The unk3. - */ - @java.lang.Override - public int getUnk3() { - return unk3_; - } - - public static final int LASTACTIVETIME_FIELD_NUMBER = 13; - private int lastActiveTime_; - /** - * <code>uint32 lastActiveTime = 13;</code> - * @return The lastActiveTime. - */ - @java.lang.Override - public int getLastActiveTime() { - return lastActiveTime_; - } - - public static final int NAMECARDID_FIELD_NUMBER = 14; - private int nameCardId_; - /** - * <code>uint32 nameCardId = 14;</code> - * @return The nameCardId. - */ - @java.lang.Override - public int getNameCardId() { - return nameCardId_; - } - - public static final int ISINBLACKLIST_FIELD_NUMBER = 15; - private boolean isInBlacklist_; - /** - * <code>bool isInBlacklist = 15;</code> - * @return The isInBlacklist. - */ - @java.lang.Override - public boolean getIsInBlacklist() { - return isInBlacklist_; - } - - public static final int ISCHATNODISTURB_FIELD_NUMBER = 16; - private boolean isChatNoDisturb_; - /** - * <code>bool isChatNoDisturb = 16;</code> - * @return The isChatNoDisturb. - */ - @java.lang.Override - public boolean getIsChatNoDisturb() { - return isChatNoDisturb_; - } - - public static final int REMARKNAME_FIELD_NUMBER = 17; - private volatile java.lang.Object remarkName_; - /** - * <code>string remarkName = 17;</code> - * @return The remarkName. - */ - @java.lang.Override - public java.lang.String getRemarkName() { - java.lang.Object ref = remarkName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - remarkName_ = s; - return s; - } - } - /** - * <code>string remarkName = 17;</code> - * @return The bytes for remarkName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRemarkNameBytes() { - java.lang.Object ref = remarkName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - remarkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FINISHACHIEVEMENTNUM_FIELD_NUMBER = 18; - private int finishAchievementNum_; - /** - * <code>uint32 finishAchievementNum = 18;</code> - * @return The finishAchievementNum. - */ - @java.lang.Override - public int getFinishAchievementNum() { - return finishAchievementNum_; - } - - public static final int TOWERFLOORINDEX_FIELD_NUMBER = 19; - private int towerFloorIndex_; - /** - * <code>uint32 towerFloorIndex = 19;</code> - * @return The towerFloorIndex. - */ - @java.lang.Override - public int getTowerFloorIndex() { - return towerFloorIndex_; - } - - public static final int TOWERLEVELINDEX_FIELD_NUMBER = 20; - private int towerLevelIndex_; - /** - * <code>uint32 towerLevelIndex = 20;</code> - * @return The towerLevelIndex. - */ - @java.lang.Override - public int getTowerLevelIndex() { - return towerLevelIndex_; - } - - public static final int ISSHOWAVATAR_FIELD_NUMBER = 21; - private boolean isShowAvatar_; - /** - * <code>bool isShowAvatar = 21;</code> - * @return The isShowAvatar. - */ - @java.lang.Override - public boolean getIsShowAvatar() { - return isShowAvatar_; - } - - public static final int SHOWAVATARINFOLIST_FIELD_NUMBER = 22; - private java.util.List<emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo> showAvatarInfoList_; - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo> getShowAvatarInfoListList() { - return showAvatarInfoList_; - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder> - getShowAvatarInfoListOrBuilderList() { - return showAvatarInfoList_; - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - @java.lang.Override - public int getShowAvatarInfoListCount() { - return showAvatarInfoList_.size(); - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo getShowAvatarInfoList(int index) { - return showAvatarInfoList_.get(index); - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder getShowAvatarInfoListOrBuilder( - int index) { - return showAvatarInfoList_.get(index); - } - - public static final int FRIENDENTERHOMEOPTION_FIELD_NUMBER = 23; - private int friendEnterHomeOption_; - /** - * <code>.FriendEnterHomeOption friendEnterHomeOption = 23;</code> - * @return The enum numeric value on the wire for friendEnterHomeOption. - */ - @java.lang.Override public int getFriendEnterHomeOptionValue() { - return friendEnterHomeOption_; - } - /** - * <code>.FriendEnterHomeOption friendEnterHomeOption = 23;</code> - * @return The friendEnterHomeOption. - */ - @java.lang.Override public emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption getFriendEnterHomeOption() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption result = emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption.valueOf(friendEnterHomeOption_); - return result == null ? emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption.UNRECOGNIZED : result; - } - - public static final int AVATAR_FIELD_NUMBER = 25; - private emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage avatar_; - /** - * <code>.HeadImage avatar = 25;</code> - * @return Whether the avatar field is set. - */ - @java.lang.Override - public boolean hasAvatar() { - return avatar_ != null; - } - /** - * <code>.HeadImage avatar = 25;</code> - * @return The avatar. - */ - @java.lang.Override - public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage getAvatar() { - return avatar_ == null ? emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.getDefaultInstance() : avatar_; - } - /** - * <code>.HeadImage avatar = 25;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder getAvatarOrBuilder() { - return getAvatar(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (uid_ != 0) { - output.writeUInt32(1, uid_); - } - if (!getNicknameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nickname_); - } - if (level_ != 0) { - output.writeUInt32(3, level_); - } - if (!getSignatureBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, signature_); - } - if (birthday_ != null) { - output.writeMessage(6, getBirthday()); - } - if (worldLevel_ != 0) { - output.writeUInt32(7, worldLevel_); - } - if (unk1_ != 0) { - output.writeUInt32(9, unk1_); - } - if (isFriend_ != false) { - output.writeBool(11, isFriend_); - } - if (unk3_ != 0) { - output.writeUInt32(12, unk3_); - } - if (lastActiveTime_ != 0) { - output.writeUInt32(13, lastActiveTime_); - } - if (nameCardId_ != 0) { - output.writeUInt32(14, nameCardId_); - } - if (isInBlacklist_ != false) { - output.writeBool(15, isInBlacklist_); - } - if (isChatNoDisturb_ != false) { - output.writeBool(16, isChatNoDisturb_); - } - if (!getRemarkNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 17, remarkName_); - } - if (finishAchievementNum_ != 0) { - output.writeUInt32(18, finishAchievementNum_); - } - if (towerFloorIndex_ != 0) { - output.writeUInt32(19, towerFloorIndex_); - } - if (towerLevelIndex_ != 0) { - output.writeUInt32(20, towerLevelIndex_); - } - if (isShowAvatar_ != false) { - output.writeBool(21, isShowAvatar_); - } - for (int i = 0; i < showAvatarInfoList_.size(); i++) { - output.writeMessage(22, showAvatarInfoList_.get(i)); - } - if (friendEnterHomeOption_ != emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption.NeedConfirm.getNumber()) { - output.writeEnum(23, friendEnterHomeOption_); - } - if (avatar_ != null) { - output.writeMessage(25, getAvatar()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (uid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, uid_); - } - if (!getNicknameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nickname_); - } - if (level_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, level_); - } - if (!getSignatureBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, signature_); - } - if (birthday_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getBirthday()); - } - if (worldLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(7, worldLevel_); - } - if (unk1_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(9, unk1_); - } - if (isFriend_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(11, isFriend_); - } - if (unk3_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(12, unk3_); - } - if (lastActiveTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(13, lastActiveTime_); - } - if (nameCardId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(14, nameCardId_); - } - if (isInBlacklist_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(15, isInBlacklist_); - } - if (isChatNoDisturb_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(16, isChatNoDisturb_); - } - if (!getRemarkNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, remarkName_); - } - if (finishAchievementNum_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(18, finishAchievementNum_); - } - if (towerFloorIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(19, towerFloorIndex_); - } - if (towerLevelIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(20, towerLevelIndex_); - } - if (isShowAvatar_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(21, isShowAvatar_); - } - for (int i = 0; i < showAvatarInfoList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, showAvatarInfoList_.get(i)); - } - if (friendEnterHomeOption_ != emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption.NeedConfirm.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(23, friendEnterHomeOption_); - } - if (avatar_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(25, getAvatar()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail other = (emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail) obj; - - if (getUid() - != other.getUid()) return false; - if (!getNickname() - .equals(other.getNickname())) return false; - if (getLevel() - != other.getLevel()) return false; - if (!getSignature() - .equals(other.getSignature())) return false; - if (hasBirthday() != other.hasBirthday()) return false; - if (hasBirthday()) { - if (!getBirthday() - .equals(other.getBirthday())) return false; - } - if (getWorldLevel() - != other.getWorldLevel()) return false; - if (getUnk1() - != other.getUnk1()) return false; - if (getIsFriend() - != other.getIsFriend()) return false; - if (getUnk3() - != other.getUnk3()) return false; - if (getLastActiveTime() - != other.getLastActiveTime()) return false; - if (getNameCardId() - != other.getNameCardId()) return false; - if (getIsInBlacklist() - != other.getIsInBlacklist()) return false; - if (getIsChatNoDisturb() - != other.getIsChatNoDisturb()) return false; - if (!getRemarkName() - .equals(other.getRemarkName())) return false; - if (getFinishAchievementNum() - != other.getFinishAchievementNum()) return false; - if (getTowerFloorIndex() - != other.getTowerFloorIndex()) return false; - if (getTowerLevelIndex() - != other.getTowerLevelIndex()) return false; - if (getIsShowAvatar() - != other.getIsShowAvatar()) return false; - if (!getShowAvatarInfoListList() - .equals(other.getShowAvatarInfoListList())) return false; - if (friendEnterHomeOption_ != other.friendEnterHomeOption_) return false; - if (hasAvatar() != other.hasAvatar()) return false; - if (hasAvatar()) { - if (!getAvatar() - .equals(other.getAvatar())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + UID_FIELD_NUMBER; - hash = (53 * hash) + getUid(); - hash = (37 * hash) + NICKNAME_FIELD_NUMBER; - hash = (53 * hash) + getNickname().hashCode(); - hash = (37 * hash) + LEVEL_FIELD_NUMBER; - hash = (53 * hash) + getLevel(); - hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getSignature().hashCode(); - if (hasBirthday()) { - hash = (37 * hash) + BIRTHDAY_FIELD_NUMBER; - hash = (53 * hash) + getBirthday().hashCode(); - } - hash = (37 * hash) + WORLDLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getWorldLevel(); - hash = (37 * hash) + UNK1_FIELD_NUMBER; - hash = (53 * hash) + getUnk1(); - hash = (37 * hash) + ISFRIEND_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsFriend()); - hash = (37 * hash) + UNK3_FIELD_NUMBER; - hash = (53 * hash) + getUnk3(); - hash = (37 * hash) + LASTACTIVETIME_FIELD_NUMBER; - hash = (53 * hash) + getLastActiveTime(); - hash = (37 * hash) + NAMECARDID_FIELD_NUMBER; - hash = (53 * hash) + getNameCardId(); - hash = (37 * hash) + ISINBLACKLIST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsInBlacklist()); - hash = (37 * hash) + ISCHATNODISTURB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsChatNoDisturb()); - hash = (37 * hash) + REMARKNAME_FIELD_NUMBER; - hash = (53 * hash) + getRemarkName().hashCode(); - hash = (37 * hash) + FINISHACHIEVEMENTNUM_FIELD_NUMBER; - hash = (53 * hash) + getFinishAchievementNum(); - hash = (37 * hash) + TOWERFLOORINDEX_FIELD_NUMBER; - hash = (53 * hash) + getTowerFloorIndex(); - hash = (37 * hash) + TOWERLEVELINDEX_FIELD_NUMBER; - hash = (53 * hash) + getTowerLevelIndex(); - hash = (37 * hash) + ISSHOWAVATAR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsShowAvatar()); - if (getShowAvatarInfoListCount() > 0) { - hash = (37 * hash) + SHOWAVATARINFOLIST_FIELD_NUMBER; - hash = (53 * hash) + getShowAvatarInfoListList().hashCode(); - } - hash = (37 * hash) + FRIENDENTERHOMEOPTION_FIELD_NUMBER; - hash = (53 * hash) + friendEnterHomeOption_; - if (hasAvatar()) { - hash = (37 * hash) + AVATAR_FIELD_NUMBER; - hash = (53 * hash) + getAvatar().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SocialDetail} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SocialDetail) - emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SocialDetailOuterClass.internal_static_SocialDetail_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SocialDetailOuterClass.internal_static_SocialDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail.class, emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getShowAvatarInfoListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - uid_ = 0; - - nickname_ = ""; - - level_ = 0; - - signature_ = ""; - - if (birthdayBuilder_ == null) { - birthday_ = null; - } else { - birthday_ = null; - birthdayBuilder_ = null; - } - worldLevel_ = 0; - - unk1_ = 0; - - isFriend_ = false; - - unk3_ = 0; - - lastActiveTime_ = 0; - - nameCardId_ = 0; - - isInBlacklist_ = false; - - isChatNoDisturb_ = false; - - remarkName_ = ""; - - finishAchievementNum_ = 0; - - towerFloorIndex_ = 0; - - towerLevelIndex_ = 0; - - isShowAvatar_ = false; - - if (showAvatarInfoListBuilder_ == null) { - showAvatarInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - showAvatarInfoListBuilder_.clear(); - } - friendEnterHomeOption_ = 0; - - if (avatarBuilder_ == null) { - avatar_ = null; - } else { - avatar_ = null; - avatarBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SocialDetailOuterClass.internal_static_SocialDetail_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail build() { - emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail buildPartial() { - emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail result = new emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail(this); - int from_bitField0_ = bitField0_; - result.uid_ = uid_; - result.nickname_ = nickname_; - result.level_ = level_; - result.signature_ = signature_; - if (birthdayBuilder_ == null) { - result.birthday_ = birthday_; - } else { - result.birthday_ = birthdayBuilder_.build(); - } - result.worldLevel_ = worldLevel_; - result.unk1_ = unk1_; - result.isFriend_ = isFriend_; - result.unk3_ = unk3_; - result.lastActiveTime_ = lastActiveTime_; - result.nameCardId_ = nameCardId_; - result.isInBlacklist_ = isInBlacklist_; - result.isChatNoDisturb_ = isChatNoDisturb_; - result.remarkName_ = remarkName_; - result.finishAchievementNum_ = finishAchievementNum_; - result.towerFloorIndex_ = towerFloorIndex_; - result.towerLevelIndex_ = towerLevelIndex_; - result.isShowAvatar_ = isShowAvatar_; - if (showAvatarInfoListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - showAvatarInfoList_ = java.util.Collections.unmodifiableList(showAvatarInfoList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.showAvatarInfoList_ = showAvatarInfoList_; - } else { - result.showAvatarInfoList_ = showAvatarInfoListBuilder_.build(); - } - result.friendEnterHomeOption_ = friendEnterHomeOption_; - if (avatarBuilder_ == null) { - result.avatar_ = avatar_; - } else { - result.avatar_ = avatarBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail) { - return mergeFrom((emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail other) { - if (other == emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail.getDefaultInstance()) return this; - if (other.getUid() != 0) { - setUid(other.getUid()); - } - if (!other.getNickname().isEmpty()) { - nickname_ = other.nickname_; - onChanged(); - } - if (other.getLevel() != 0) { - setLevel(other.getLevel()); - } - if (!other.getSignature().isEmpty()) { - signature_ = other.signature_; - onChanged(); - } - if (other.hasBirthday()) { - mergeBirthday(other.getBirthday()); - } - if (other.getWorldLevel() != 0) { - setWorldLevel(other.getWorldLevel()); - } - if (other.getUnk1() != 0) { - setUnk1(other.getUnk1()); - } - if (other.getIsFriend() != false) { - setIsFriend(other.getIsFriend()); - } - if (other.getUnk3() != 0) { - setUnk3(other.getUnk3()); - } - if (other.getLastActiveTime() != 0) { - setLastActiveTime(other.getLastActiveTime()); - } - if (other.getNameCardId() != 0) { - setNameCardId(other.getNameCardId()); - } - if (other.getIsInBlacklist() != false) { - setIsInBlacklist(other.getIsInBlacklist()); - } - if (other.getIsChatNoDisturb() != false) { - setIsChatNoDisturb(other.getIsChatNoDisturb()); - } - if (!other.getRemarkName().isEmpty()) { - remarkName_ = other.remarkName_; - onChanged(); - } - if (other.getFinishAchievementNum() != 0) { - setFinishAchievementNum(other.getFinishAchievementNum()); - } - if (other.getTowerFloorIndex() != 0) { - setTowerFloorIndex(other.getTowerFloorIndex()); - } - if (other.getTowerLevelIndex() != 0) { - setTowerLevelIndex(other.getTowerLevelIndex()); - } - if (other.getIsShowAvatar() != false) { - setIsShowAvatar(other.getIsShowAvatar()); - } - if (showAvatarInfoListBuilder_ == null) { - if (!other.showAvatarInfoList_.isEmpty()) { - if (showAvatarInfoList_.isEmpty()) { - showAvatarInfoList_ = other.showAvatarInfoList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureShowAvatarInfoListIsMutable(); - showAvatarInfoList_.addAll(other.showAvatarInfoList_); - } - onChanged(); - } - } else { - if (!other.showAvatarInfoList_.isEmpty()) { - if (showAvatarInfoListBuilder_.isEmpty()) { - showAvatarInfoListBuilder_.dispose(); - showAvatarInfoListBuilder_ = null; - showAvatarInfoList_ = other.showAvatarInfoList_; - bitField0_ = (bitField0_ & ~0x00000001); - showAvatarInfoListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getShowAvatarInfoListFieldBuilder() : null; - } else { - showAvatarInfoListBuilder_.addAllMessages(other.showAvatarInfoList_); - } - } - } - if (other.friendEnterHomeOption_ != 0) { - setFriendEnterHomeOptionValue(other.getFriendEnterHomeOptionValue()); - } - if (other.hasAvatar()) { - mergeAvatar(other.getAvatar()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int uid_ ; - /** - * <code>uint32 uid = 1;</code> - * @return The uid. - */ - @java.lang.Override - public int getUid() { - return uid_; - } - /** - * <code>uint32 uid = 1;</code> - * @param value The uid to set. - * @return This builder for chaining. - */ - public Builder setUid(int value) { - - uid_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 uid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearUid() { - - uid_ = 0; - onChanged(); - return this; - } - - private java.lang.Object nickname_ = ""; - /** - * <code>string nickname = 2;</code> - * @return The nickname. - */ - public java.lang.String getNickname() { - java.lang.Object ref = nickname_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nickname_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string nickname = 2;</code> - * @return The bytes for nickname. - */ - public com.google.protobuf.ByteString - getNicknameBytes() { - java.lang.Object ref = nickname_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nickname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string nickname = 2;</code> - * @param value The nickname to set. - * @return This builder for chaining. - */ - public Builder setNickname( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nickname_ = value; - onChanged(); - return this; - } - /** - * <code>string nickname = 2;</code> - * @return This builder for chaining. - */ - public Builder clearNickname() { - - nickname_ = getDefaultInstance().getNickname(); - onChanged(); - return this; - } - /** - * <code>string nickname = 2;</code> - * @param value The bytes for nickname to set. - * @return This builder for chaining. - */ - public Builder setNicknameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nickname_ = value; - onChanged(); - return this; - } - - private int level_ ; - /** - * <code>uint32 level = 3;</code> - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - /** - * <code>uint32 level = 3;</code> - * @param value The level to set. - * @return This builder for chaining. - */ - public Builder setLevel(int value) { - - level_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 level = 3;</code> - * @return This builder for chaining. - */ - public Builder clearLevel() { - - level_ = 0; - onChanged(); - return this; - } - - private java.lang.Object signature_ = ""; - /** - * <code>string signature = 5;</code> - * @return The signature. - */ - public java.lang.String getSignature() { - java.lang.Object ref = signature_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signature_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string signature = 5;</code> - * @return The bytes for signature. - */ - public com.google.protobuf.ByteString - getSignatureBytes() { - java.lang.Object ref = signature_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signature_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string signature = 5;</code> - * @param value The signature to set. - * @return This builder for chaining. - */ - public Builder setSignature( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signature_ = value; - onChanged(); - return this; - } - /** - * <code>string signature = 5;</code> - * @return This builder for chaining. - */ - public Builder clearSignature() { - - signature_ = getDefaultInstance().getSignature(); - onChanged(); - return this; - } - /** - * <code>string signature = 5;</code> - * @param value The bytes for signature to set. - * @return This builder for chaining. - */ - public Builder setSignatureBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signature_ = value; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.BirthdayOuterClass.Birthday birthday_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday, emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.Builder, emu.grasscutter.net.proto.BirthdayOuterClass.BirthdayOrBuilder> birthdayBuilder_; - /** - * <code>.Birthday birthday = 6;</code> - * @return Whether the birthday field is set. - */ - public boolean hasBirthday() { - return birthdayBuilder_ != null || birthday_ != null; - } - /** - * <code>.Birthday birthday = 6;</code> - * @return The birthday. - */ - public emu.grasscutter.net.proto.BirthdayOuterClass.Birthday getBirthday() { - if (birthdayBuilder_ == null) { - return birthday_ == null ? emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.getDefaultInstance() : birthday_; - } else { - return birthdayBuilder_.getMessage(); - } - } - /** - * <code>.Birthday birthday = 6;</code> - */ - public Builder setBirthday(emu.grasscutter.net.proto.BirthdayOuterClass.Birthday value) { - if (birthdayBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - birthday_ = value; - onChanged(); - } else { - birthdayBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.Birthday birthday = 6;</code> - */ - public Builder setBirthday( - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.Builder builderForValue) { - if (birthdayBuilder_ == null) { - birthday_ = builderForValue.build(); - onChanged(); - } else { - birthdayBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.Birthday birthday = 6;</code> - */ - public Builder mergeBirthday(emu.grasscutter.net.proto.BirthdayOuterClass.Birthday value) { - if (birthdayBuilder_ == null) { - if (birthday_ != null) { - birthday_ = - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.newBuilder(birthday_).mergeFrom(value).buildPartial(); - } else { - birthday_ = value; - } - onChanged(); - } else { - birthdayBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.Birthday birthday = 6;</code> - */ - public Builder clearBirthday() { - if (birthdayBuilder_ == null) { - birthday_ = null; - onChanged(); - } else { - birthday_ = null; - birthdayBuilder_ = null; - } - - return this; - } - /** - * <code>.Birthday birthday = 6;</code> - */ - public emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.Builder getBirthdayBuilder() { - - onChanged(); - return getBirthdayFieldBuilder().getBuilder(); - } - /** - * <code>.Birthday birthday = 6;</code> - */ - public emu.grasscutter.net.proto.BirthdayOuterClass.BirthdayOrBuilder getBirthdayOrBuilder() { - if (birthdayBuilder_ != null) { - return birthdayBuilder_.getMessageOrBuilder(); - } else { - return birthday_ == null ? - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.getDefaultInstance() : birthday_; - } - } - /** - * <code>.Birthday birthday = 6;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday, emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.Builder, emu.grasscutter.net.proto.BirthdayOuterClass.BirthdayOrBuilder> - getBirthdayFieldBuilder() { - if (birthdayBuilder_ == null) { - birthdayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.BirthdayOuterClass.Birthday, emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.Builder, emu.grasscutter.net.proto.BirthdayOuterClass.BirthdayOrBuilder>( - getBirthday(), - getParentForChildren(), - isClean()); - birthday_ = null; - } - return birthdayBuilder_; - } - - private int worldLevel_ ; - /** - * <code>uint32 worldLevel = 7;</code> - * @return The worldLevel. - */ - @java.lang.Override - public int getWorldLevel() { - return worldLevel_; - } - /** - * <code>uint32 worldLevel = 7;</code> - * @param value The worldLevel to set. - * @return This builder for chaining. - */ - public Builder setWorldLevel(int value) { - - worldLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 worldLevel = 7;</code> - * @return This builder for chaining. - */ - public Builder clearWorldLevel() { - - worldLevel_ = 0; - onChanged(); - return this; - } - - private int unk1_ ; - /** - * <code>uint32 unk1 = 9;</code> - * @return The unk1. - */ - @java.lang.Override - public int getUnk1() { - return unk1_; - } - /** - * <code>uint32 unk1 = 9;</code> - * @param value The unk1 to set. - * @return This builder for chaining. - */ - public Builder setUnk1(int value) { - - unk1_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 unk1 = 9;</code> - * @return This builder for chaining. - */ - public Builder clearUnk1() { - - unk1_ = 0; - onChanged(); - return this; - } - - private boolean isFriend_ ; - /** - * <pre> - *FriendOnlineState onlineState = 10; - *bool isMpModeAvailable = 10; - * </pre> - * - * <code>bool isFriend = 11;</code> - * @return The isFriend. - */ - @java.lang.Override - public boolean getIsFriend() { - return isFriend_; - } - /** - * <pre> - *FriendOnlineState onlineState = 10; - *bool isMpModeAvailable = 10; - * </pre> - * - * <code>bool isFriend = 11;</code> - * @param value The isFriend to set. - * @return This builder for chaining. - */ - public Builder setIsFriend(boolean value) { - - isFriend_ = value; - onChanged(); - return this; - } - /** - * <pre> - *FriendOnlineState onlineState = 10; - *bool isMpModeAvailable = 10; - * </pre> - * - * <code>bool isFriend = 11;</code> - * @return This builder for chaining. - */ - public Builder clearIsFriend() { - - isFriend_ = false; - onChanged(); - return this; - } - - private int unk3_ ; - /** - * <code>uint32 unk3 = 12;</code> - * @return The unk3. - */ - @java.lang.Override - public int getUnk3() { - return unk3_; - } - /** - * <code>uint32 unk3 = 12;</code> - * @param value The unk3 to set. - * @return This builder for chaining. - */ - public Builder setUnk3(int value) { - - unk3_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 unk3 = 12;</code> - * @return This builder for chaining. - */ - public Builder clearUnk3() { - - unk3_ = 0; - onChanged(); - return this; - } - - private int lastActiveTime_ ; - /** - * <code>uint32 lastActiveTime = 13;</code> - * @return The lastActiveTime. - */ - @java.lang.Override - public int getLastActiveTime() { - return lastActiveTime_; - } - /** - * <code>uint32 lastActiveTime = 13;</code> - * @param value The lastActiveTime to set. - * @return This builder for chaining. - */ - public Builder setLastActiveTime(int value) { - - lastActiveTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 lastActiveTime = 13;</code> - * @return This builder for chaining. - */ - public Builder clearLastActiveTime() { - - lastActiveTime_ = 0; - onChanged(); - return this; - } - - private int nameCardId_ ; - /** - * <code>uint32 nameCardId = 14;</code> - * @return The nameCardId. - */ - @java.lang.Override - public int getNameCardId() { - return nameCardId_; - } - /** - * <code>uint32 nameCardId = 14;</code> - * @param value The nameCardId to set. - * @return This builder for chaining. - */ - public Builder setNameCardId(int value) { - - nameCardId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 nameCardId = 14;</code> - * @return This builder for chaining. - */ - public Builder clearNameCardId() { - - nameCardId_ = 0; - onChanged(); - return this; - } - - private boolean isInBlacklist_ ; - /** - * <code>bool isInBlacklist = 15;</code> - * @return The isInBlacklist. - */ - @java.lang.Override - public boolean getIsInBlacklist() { - return isInBlacklist_; - } - /** - * <code>bool isInBlacklist = 15;</code> - * @param value The isInBlacklist to set. - * @return This builder for chaining. - */ - public Builder setIsInBlacklist(boolean value) { - - isInBlacklist_ = value; - onChanged(); - return this; - } - /** - * <code>bool isInBlacklist = 15;</code> - * @return This builder for chaining. - */ - public Builder clearIsInBlacklist() { - - isInBlacklist_ = false; - onChanged(); - return this; - } - - private boolean isChatNoDisturb_ ; - /** - * <code>bool isChatNoDisturb = 16;</code> - * @return The isChatNoDisturb. - */ - @java.lang.Override - public boolean getIsChatNoDisturb() { - return isChatNoDisturb_; - } - /** - * <code>bool isChatNoDisturb = 16;</code> - * @param value The isChatNoDisturb to set. - * @return This builder for chaining. - */ - public Builder setIsChatNoDisturb(boolean value) { - - isChatNoDisturb_ = value; - onChanged(); - return this; - } - /** - * <code>bool isChatNoDisturb = 16;</code> - * @return This builder for chaining. - */ - public Builder clearIsChatNoDisturb() { - - isChatNoDisturb_ = false; - onChanged(); - return this; - } - - private java.lang.Object remarkName_ = ""; - /** - * <code>string remarkName = 17;</code> - * @return The remarkName. - */ - public java.lang.String getRemarkName() { - java.lang.Object ref = remarkName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - remarkName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string remarkName = 17;</code> - * @return The bytes for remarkName. - */ - public com.google.protobuf.ByteString - getRemarkNameBytes() { - java.lang.Object ref = remarkName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - remarkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string remarkName = 17;</code> - * @param value The remarkName to set. - * @return This builder for chaining. - */ - public Builder setRemarkName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - remarkName_ = value; - onChanged(); - return this; - } - /** - * <code>string remarkName = 17;</code> - * @return This builder for chaining. - */ - public Builder clearRemarkName() { - - remarkName_ = getDefaultInstance().getRemarkName(); - onChanged(); - return this; - } - /** - * <code>string remarkName = 17;</code> - * @param value The bytes for remarkName to set. - * @return This builder for chaining. - */ - public Builder setRemarkNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - remarkName_ = value; - onChanged(); - return this; - } - - private int finishAchievementNum_ ; - /** - * <code>uint32 finishAchievementNum = 18;</code> - * @return The finishAchievementNum. - */ - @java.lang.Override - public int getFinishAchievementNum() { - return finishAchievementNum_; - } - /** - * <code>uint32 finishAchievementNum = 18;</code> - * @param value The finishAchievementNum to set. - * @return This builder for chaining. - */ - public Builder setFinishAchievementNum(int value) { - - finishAchievementNum_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 finishAchievementNum = 18;</code> - * @return This builder for chaining. - */ - public Builder clearFinishAchievementNum() { - - finishAchievementNum_ = 0; - onChanged(); - return this; - } - - private int towerFloorIndex_ ; - /** - * <code>uint32 towerFloorIndex = 19;</code> - * @return The towerFloorIndex. - */ - @java.lang.Override - public int getTowerFloorIndex() { - return towerFloorIndex_; - } - /** - * <code>uint32 towerFloorIndex = 19;</code> - * @param value The towerFloorIndex to set. - * @return This builder for chaining. - */ - public Builder setTowerFloorIndex(int value) { - - towerFloorIndex_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 towerFloorIndex = 19;</code> - * @return This builder for chaining. - */ - public Builder clearTowerFloorIndex() { - - towerFloorIndex_ = 0; - onChanged(); - return this; - } - - private int towerLevelIndex_ ; - /** - * <code>uint32 towerLevelIndex = 20;</code> - * @return The towerLevelIndex. - */ - @java.lang.Override - public int getTowerLevelIndex() { - return towerLevelIndex_; - } - /** - * <code>uint32 towerLevelIndex = 20;</code> - * @param value The towerLevelIndex to set. - * @return This builder for chaining. - */ - public Builder setTowerLevelIndex(int value) { - - towerLevelIndex_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 towerLevelIndex = 20;</code> - * @return This builder for chaining. - */ - public Builder clearTowerLevelIndex() { - - towerLevelIndex_ = 0; - onChanged(); - return this; - } - - private boolean isShowAvatar_ ; - /** - * <code>bool isShowAvatar = 21;</code> - * @return The isShowAvatar. - */ - @java.lang.Override - public boolean getIsShowAvatar() { - return isShowAvatar_; - } - /** - * <code>bool isShowAvatar = 21;</code> - * @param value The isShowAvatar to set. - * @return This builder for chaining. - */ - public Builder setIsShowAvatar(boolean value) { - - isShowAvatar_ = value; - onChanged(); - return this; - } - /** - * <code>bool isShowAvatar = 21;</code> - * @return This builder for chaining. - */ - public Builder clearIsShowAvatar() { - - isShowAvatar_ = false; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo> showAvatarInfoList_ = - java.util.Collections.emptyList(); - private void ensureShowAvatarInfoListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - showAvatarInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo>(showAvatarInfoList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder> showAvatarInfoListBuilder_; - - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public java.util.List<emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo> getShowAvatarInfoListList() { - if (showAvatarInfoListBuilder_ == null) { - return java.util.Collections.unmodifiableList(showAvatarInfoList_); - } else { - return showAvatarInfoListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public int getShowAvatarInfoListCount() { - if (showAvatarInfoListBuilder_ == null) { - return showAvatarInfoList_.size(); - } else { - return showAvatarInfoListBuilder_.getCount(); - } - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo getShowAvatarInfoList(int index) { - if (showAvatarInfoListBuilder_ == null) { - return showAvatarInfoList_.get(index); - } else { - return showAvatarInfoListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public Builder setShowAvatarInfoList( - int index, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo value) { - if (showAvatarInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureShowAvatarInfoListIsMutable(); - showAvatarInfoList_.set(index, value); - onChanged(); - } else { - showAvatarInfoListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public Builder setShowAvatarInfoList( - int index, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder builderForValue) { - if (showAvatarInfoListBuilder_ == null) { - ensureShowAvatarInfoListIsMutable(); - showAvatarInfoList_.set(index, builderForValue.build()); - onChanged(); - } else { - showAvatarInfoListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public Builder addShowAvatarInfoList(emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo value) { - if (showAvatarInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureShowAvatarInfoListIsMutable(); - showAvatarInfoList_.add(value); - onChanged(); - } else { - showAvatarInfoListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public Builder addShowAvatarInfoList( - int index, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo value) { - if (showAvatarInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureShowAvatarInfoListIsMutable(); - showAvatarInfoList_.add(index, value); - onChanged(); - } else { - showAvatarInfoListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public Builder addShowAvatarInfoList( - emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder builderForValue) { - if (showAvatarInfoListBuilder_ == null) { - ensureShowAvatarInfoListIsMutable(); - showAvatarInfoList_.add(builderForValue.build()); - onChanged(); - } else { - showAvatarInfoListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public Builder addShowAvatarInfoList( - int index, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder builderForValue) { - if (showAvatarInfoListBuilder_ == null) { - ensureShowAvatarInfoListIsMutable(); - showAvatarInfoList_.add(index, builderForValue.build()); - onChanged(); - } else { - showAvatarInfoListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public Builder addAllShowAvatarInfoList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo> values) { - if (showAvatarInfoListBuilder_ == null) { - ensureShowAvatarInfoListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, showAvatarInfoList_); - onChanged(); - } else { - showAvatarInfoListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public Builder clearShowAvatarInfoList() { - if (showAvatarInfoListBuilder_ == null) { - showAvatarInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - showAvatarInfoListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public Builder removeShowAvatarInfoList(int index) { - if (showAvatarInfoListBuilder_ == null) { - ensureShowAvatarInfoListIsMutable(); - showAvatarInfoList_.remove(index); - onChanged(); - } else { - showAvatarInfoListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder getShowAvatarInfoListBuilder( - int index) { - return getShowAvatarInfoListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder getShowAvatarInfoListOrBuilder( - int index) { - if (showAvatarInfoListBuilder_ == null) { - return showAvatarInfoList_.get(index); } else { - return showAvatarInfoListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder> - getShowAvatarInfoListOrBuilderList() { - if (showAvatarInfoListBuilder_ != null) { - return showAvatarInfoListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(showAvatarInfoList_); - } - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder addShowAvatarInfoListBuilder() { - return getShowAvatarInfoListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.getDefaultInstance()); - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder addShowAvatarInfoListBuilder( - int index) { - return getShowAvatarInfoListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.getDefaultInstance()); - } - /** - * <code>repeated .SocialShowAvatarInfo showAvatarInfoList = 22;</code> - */ - public java.util.List<emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder> - getShowAvatarInfoListBuilderList() { - return getShowAvatarInfoListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder> - getShowAvatarInfoListFieldBuilder() { - if (showAvatarInfoListBuilder_ == null) { - showAvatarInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder>( - showAvatarInfoList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - showAvatarInfoList_ = null; - } - return showAvatarInfoListBuilder_; - } - - private int friendEnterHomeOption_ = 0; - /** - * <code>.FriendEnterHomeOption friendEnterHomeOption = 23;</code> - * @return The enum numeric value on the wire for friendEnterHomeOption. - */ - @java.lang.Override public int getFriendEnterHomeOptionValue() { - return friendEnterHomeOption_; - } - /** - * <code>.FriendEnterHomeOption friendEnterHomeOption = 23;</code> - * @param value The enum numeric value on the wire for friendEnterHomeOption to set. - * @return This builder for chaining. - */ - public Builder setFriendEnterHomeOptionValue(int value) { - - friendEnterHomeOption_ = value; - onChanged(); - return this; - } - /** - * <code>.FriendEnterHomeOption friendEnterHomeOption = 23;</code> - * @return The friendEnterHomeOption. - */ - @java.lang.Override - public emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption getFriendEnterHomeOption() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption result = emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption.valueOf(friendEnterHomeOption_); - return result == null ? emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption.UNRECOGNIZED : result; - } - /** - * <code>.FriendEnterHomeOption friendEnterHomeOption = 23;</code> - * @param value The friendEnterHomeOption to set. - * @return This builder for chaining. - */ - public Builder setFriendEnterHomeOption(emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption value) { - if (value == null) { - throw new NullPointerException(); - } - - friendEnterHomeOption_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.FriendEnterHomeOption friendEnterHomeOption = 23;</code> - * @return This builder for chaining. - */ - public Builder clearFriendEnterHomeOption() { - - friendEnterHomeOption_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage avatar_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder> avatarBuilder_; - /** - * <code>.HeadImage avatar = 25;</code> - * @return Whether the avatar field is set. - */ - public boolean hasAvatar() { - return avatarBuilder_ != null || avatar_ != null; - } - /** - * <code>.HeadImage avatar = 25;</code> - * @return The avatar. - */ - public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage getAvatar() { - if (avatarBuilder_ == null) { - return avatar_ == null ? emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.getDefaultInstance() : avatar_; - } else { - return avatarBuilder_.getMessage(); - } - } - /** - * <code>.HeadImage avatar = 25;</code> - */ - public Builder setAvatar(emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage value) { - if (avatarBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - avatar_ = value; - onChanged(); - } else { - avatarBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.HeadImage avatar = 25;</code> - */ - public Builder setAvatar( - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder builderForValue) { - if (avatarBuilder_ == null) { - avatar_ = builderForValue.build(); - onChanged(); - } else { - avatarBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.HeadImage avatar = 25;</code> - */ - public Builder mergeAvatar(emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage value) { - if (avatarBuilder_ == null) { - if (avatar_ != null) { - avatar_ = - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.newBuilder(avatar_).mergeFrom(value).buildPartial(); - } else { - avatar_ = value; - } - onChanged(); - } else { - avatarBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.HeadImage avatar = 25;</code> - */ - public Builder clearAvatar() { - if (avatarBuilder_ == null) { - avatar_ = null; - onChanged(); - } else { - avatar_ = null; - avatarBuilder_ = null; - } - - return this; - } - /** - * <code>.HeadImage avatar = 25;</code> - */ - public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder getAvatarBuilder() { - - onChanged(); - return getAvatarFieldBuilder().getBuilder(); - } - /** - * <code>.HeadImage avatar = 25;</code> - */ - public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder getAvatarOrBuilder() { - if (avatarBuilder_ != null) { - return avatarBuilder_.getMessageOrBuilder(); - } else { - return avatar_ == null ? - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.getDefaultInstance() : avatar_; - } - } - /** - * <code>.HeadImage avatar = 25;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder> - getAvatarFieldBuilder() { - if (avatarBuilder_ == null) { - avatarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder, emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder>( - getAvatar(), - getParentForChildren(), - isClean()); - avatar_ = null; - } - return avatarBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SocialDetail) - } - - // @@protoc_insertion_point(class_scope:SocialDetail) - private static final emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail(); - } - - public static emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SocialDetail> - PARSER = new com.google.protobuf.AbstractParser<SocialDetail>() { - @java.lang.Override - public SocialDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SocialDetail(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SocialDetail> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SocialDetail> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SocialDetail_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SocialDetail_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\022SocialDetail.proto\032\016Birthday.proto\032\033Fr" + - "iendEnterHomeOption.proto\032\017HeadImage.pro" + - "to\032\032SocialShowAvatarInfo.proto\"\212\004\n\014Socia" + - "lDetail\022\013\n\003uid\030\001 \001(\r\022\020\n\010nickname\030\002 \001(\t\022\r" + - "\n\005level\030\003 \001(\r\022\021\n\tsignature\030\005 \001(\t\022\033\n\010birt" + - "hday\030\006 \001(\0132\t.Birthday\022\022\n\nworldLevel\030\007 \001(" + - "\r\022\014\n\004unk1\030\t \001(\r\022\020\n\010isFriend\030\013 \001(\010\022\014\n\004unk" + - "3\030\014 \001(\r\022\026\n\016lastActiveTime\030\r \001(\r\022\022\n\nnameC" + - "ardId\030\016 \001(\r\022\025\n\risInBlacklist\030\017 \001(\010\022\027\n\017is" + - "ChatNoDisturb\030\020 \001(\010\022\022\n\nremarkName\030\021 \001(\t\022" + - "\034\n\024finishAchievementNum\030\022 \001(\r\022\027\n\017towerFl" + - "oorIndex\030\023 \001(\r\022\027\n\017towerLevelIndex\030\024 \001(\r\022" + - "\024\n\014isShowAvatar\030\025 \001(\010\0221\n\022showAvatarInfoL" + - "ist\030\026 \003(\0132\025.SocialShowAvatarInfo\0225\n\025frie" + - "ndEnterHomeOption\030\027 \001(\0162\026.FriendEnterHom" + - "eOption\022\032\n\006avatar\030\031 \001(\0132\n.HeadImageB\033\n\031e" + - "mu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.BirthdayOuterClass.getDescriptor(), - emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.getDescriptor(), - emu.grasscutter.net.proto.HeadImageOuterClass.getDescriptor(), - emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.getDescriptor(), - }); - internal_static_SocialDetail_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SocialDetail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SocialDetail_descriptor, - new java.lang.String[] { "Uid", "Nickname", "Level", "Signature", "Birthday", "WorldLevel", "Unk1", "IsFriend", "Unk3", "LastActiveTime", "NameCardId", "IsInBlacklist", "IsChatNoDisturb", "RemarkName", "FinishAchievementNum", "TowerFloorIndex", "TowerLevelIndex", "IsShowAvatar", "ShowAvatarInfoList", "FriendEnterHomeOption", "Avatar", }); - emu.grasscutter.net.proto.BirthdayOuterClass.getDescriptor(); - emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.getDescriptor(); - emu.grasscutter.net.proto.HeadImageOuterClass.getDescriptor(); - emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SocialShowAvatarInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SocialShowAvatarInfoOuterClass.java deleted file mode 100644 index cc76864fb..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SocialShowAvatarInfoOuterClass.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SocialShowAvatarInfo.proto - -package emu.grasscutter.net.proto; - -public final class SocialShowAvatarInfoOuterClass { - private SocialShowAvatarInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SocialShowAvatarInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:SocialShowAvatarInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 avatarId = 1;</code> - * @return The avatarId. - */ - int getAvatarId(); - - /** - * <code>uint32 level = 2;</code> - * @return The level. - */ - int getLevel(); - } - /** - * Protobuf type {@code SocialShowAvatarInfo} - */ - public static final class SocialShowAvatarInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SocialShowAvatarInfo) - SocialShowAvatarInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use SocialShowAvatarInfo.newBuilder() to construct. - private SocialShowAvatarInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SocialShowAvatarInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SocialShowAvatarInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SocialShowAvatarInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - avatarId_ = input.readUInt32(); - break; - } - case 16: { - - level_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.internal_static_SocialShowAvatarInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.internal_static_SocialShowAvatarInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.class, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder.class); - } - - public static final int AVATARID_FIELD_NUMBER = 1; - private int avatarId_; - /** - * <code>uint32 avatarId = 1;</code> - * @return The avatarId. - */ - @java.lang.Override - public int getAvatarId() { - return avatarId_; - } - - public static final int LEVEL_FIELD_NUMBER = 2; - private int level_; - /** - * <code>uint32 level = 2;</code> - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (avatarId_ != 0) { - output.writeUInt32(1, avatarId_); - } - if (level_ != 0) { - output.writeUInt32(2, level_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (avatarId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, avatarId_); - } - if (level_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, level_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo other = (emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo) obj; - - if (getAvatarId() - != other.getAvatarId()) return false; - if (getLevel() - != other.getLevel()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AVATARID_FIELD_NUMBER; - hash = (53 * hash) + getAvatarId(); - hash = (37 * hash) + LEVEL_FIELD_NUMBER; - hash = (53 * hash) + getLevel(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SocialShowAvatarInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SocialShowAvatarInfo) - emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.internal_static_SocialShowAvatarInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.internal_static_SocialShowAvatarInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.class, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - avatarId_ = 0; - - level_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.internal_static_SocialShowAvatarInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo build() { - emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo buildPartial() { - emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo result = new emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo(this); - result.avatarId_ = avatarId_; - result.level_ = level_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo) { - return mergeFrom((emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo other) { - if (other == emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.getDefaultInstance()) return this; - if (other.getAvatarId() != 0) { - setAvatarId(other.getAvatarId()); - } - if (other.getLevel() != 0) { - setLevel(other.getLevel()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int avatarId_ ; - /** - * <code>uint32 avatarId = 1;</code> - * @return The avatarId. - */ - @java.lang.Override - public int getAvatarId() { - return avatarId_; - } - /** - * <code>uint32 avatarId = 1;</code> - * @param value The avatarId to set. - * @return This builder for chaining. - */ - public Builder setAvatarId(int value) { - - avatarId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 avatarId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarId() { - - avatarId_ = 0; - onChanged(); - return this; - } - - private int level_ ; - /** - * <code>uint32 level = 2;</code> - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - /** - * <code>uint32 level = 2;</code> - * @param value The level to set. - * @return This builder for chaining. - */ - public Builder setLevel(int value) { - - level_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 level = 2;</code> - * @return This builder for chaining. - */ - public Builder clearLevel() { - - level_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SocialShowAvatarInfo) - } - - // @@protoc_insertion_point(class_scope:SocialShowAvatarInfo) - private static final emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo(); - } - - public static emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SocialShowAvatarInfo> - PARSER = new com.google.protobuf.AbstractParser<SocialShowAvatarInfo>() { - @java.lang.Override - public SocialShowAvatarInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SocialShowAvatarInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SocialShowAvatarInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SocialShowAvatarInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SocialShowAvatarInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SocialShowAvatarInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032SocialShowAvatarInfo.proto\"7\n\024SocialSh" + - "owAvatarInfo\022\020\n\010avatarId\030\001 \001(\r\022\r\n\005level\030" + - "\002 \001(\rB\033\n\031emu.grasscutter.net.protob\006prot" + - "o3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SocialShowAvatarInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SocialShowAvatarInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SocialShowAvatarInfo_descriptor, - new java.lang.String[] { "AvatarId", "Level", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/StoreItemChangeNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/StoreItemChangeNotifyOuterClass.java deleted file mode 100644 index 7f3a99992..000000000 --- a/src/main/java/emu/grasscutter/net/proto/StoreItemChangeNotifyOuterClass.java +++ /dev/null @@ -1,954 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: StoreItemChangeNotify.proto - -package emu.grasscutter.net.proto; - -public final class StoreItemChangeNotifyOuterClass { - private StoreItemChangeNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface StoreItemChangeNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:StoreItemChangeNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.StoreType storeType = 1;</code> - * @return The enum numeric value on the wire for storeType. - */ - int getStoreTypeValue(); - /** - * <code>.StoreType storeType = 1;</code> - * @return The storeType. - */ - emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType getStoreType(); - - /** - * <code>repeated .Item itemList = 2;</code> - */ - java.util.List<emu.grasscutter.net.proto.ItemOuterClass.Item> - getItemListList(); - /** - * <code>repeated .Item itemList = 2;</code> - */ - emu.grasscutter.net.proto.ItemOuterClass.Item getItemList(int index); - /** - * <code>repeated .Item itemList = 2;</code> - */ - int getItemListCount(); - /** - * <code>repeated .Item itemList = 2;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder> - getItemListOrBuilderList(); - /** - * <code>repeated .Item itemList = 2;</code> - */ - emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder getItemListOrBuilder( - int index); - } - /** - * Protobuf type {@code StoreItemChangeNotify} - */ - public static final class StoreItemChangeNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:StoreItemChangeNotify) - StoreItemChangeNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use StoreItemChangeNotify.newBuilder() to construct. - private StoreItemChangeNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private StoreItemChangeNotify() { - storeType_ = 0; - itemList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StoreItemChangeNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StoreItemChangeNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - storeType_ = rawValue; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - itemList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemOuterClass.Item>(); - mutable_bitField0_ |= 0x00000001; - } - itemList_.add( - input.readMessage(emu.grasscutter.net.proto.ItemOuterClass.Item.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - itemList_ = java.util.Collections.unmodifiableList(itemList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.internal_static_StoreItemChangeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.internal_static_StoreItemChangeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify.class, emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify.Builder.class); - } - - public static final int STORETYPE_FIELD_NUMBER = 1; - private int storeType_; - /** - * <code>.StoreType storeType = 1;</code> - * @return The enum numeric value on the wire for storeType. - */ - @java.lang.Override public int getStoreTypeValue() { - return storeType_; - } - /** - * <code>.StoreType storeType = 1;</code> - * @return The storeType. - */ - @java.lang.Override public emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType getStoreType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType result = emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType.valueOf(storeType_); - return result == null ? emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType.UNRECOGNIZED : result; - } - - public static final int ITEMLIST_FIELD_NUMBER = 2; - private java.util.List<emu.grasscutter.net.proto.ItemOuterClass.Item> itemList_; - /** - * <code>repeated .Item itemList = 2;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.ItemOuterClass.Item> getItemListList() { - return itemList_; - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder> - getItemListOrBuilderList() { - return itemList_; - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - @java.lang.Override - public int getItemListCount() { - return itemList_.size(); - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemOuterClass.Item getItemList(int index) { - return itemList_.get(index); - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder getItemListOrBuilder( - int index) { - return itemList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (storeType_ != emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType.StoreNone.getNumber()) { - output.writeEnum(1, storeType_); - } - for (int i = 0; i < itemList_.size(); i++) { - output.writeMessage(2, itemList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (storeType_ != emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType.StoreNone.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, storeType_); - } - for (int i = 0; i < itemList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, itemList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify other = (emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify) obj; - - if (storeType_ != other.storeType_) return false; - if (!getItemListList() - .equals(other.getItemListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STORETYPE_FIELD_NUMBER; - hash = (53 * hash) + storeType_; - if (getItemListCount() > 0) { - hash = (37 * hash) + ITEMLIST_FIELD_NUMBER; - hash = (53 * hash) + getItemListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code StoreItemChangeNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:StoreItemChangeNotify) - emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.internal_static_StoreItemChangeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.internal_static_StoreItemChangeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify.class, emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getItemListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - storeType_ = 0; - - if (itemListBuilder_ == null) { - itemList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - itemListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.internal_static_StoreItemChangeNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify build() { - emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify buildPartial() { - emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify result = new emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify(this); - int from_bitField0_ = bitField0_; - result.storeType_ = storeType_; - if (itemListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - itemList_ = java.util.Collections.unmodifiableList(itemList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.itemList_ = itemList_; - } else { - result.itemList_ = itemListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify) { - return mergeFrom((emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify other) { - if (other == emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify.getDefaultInstance()) return this; - if (other.storeType_ != 0) { - setStoreTypeValue(other.getStoreTypeValue()); - } - if (itemListBuilder_ == null) { - if (!other.itemList_.isEmpty()) { - if (itemList_.isEmpty()) { - itemList_ = other.itemList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureItemListIsMutable(); - itemList_.addAll(other.itemList_); - } - onChanged(); - } - } else { - if (!other.itemList_.isEmpty()) { - if (itemListBuilder_.isEmpty()) { - itemListBuilder_.dispose(); - itemListBuilder_ = null; - itemList_ = other.itemList_; - bitField0_ = (bitField0_ & ~0x00000001); - itemListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getItemListFieldBuilder() : null; - } else { - itemListBuilder_.addAllMessages(other.itemList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int storeType_ = 0; - /** - * <code>.StoreType storeType = 1;</code> - * @return The enum numeric value on the wire for storeType. - */ - @java.lang.Override public int getStoreTypeValue() { - return storeType_; - } - /** - * <code>.StoreType storeType = 1;</code> - * @param value The enum numeric value on the wire for storeType to set. - * @return This builder for chaining. - */ - public Builder setStoreTypeValue(int value) { - - storeType_ = value; - onChanged(); - return this; - } - /** - * <code>.StoreType storeType = 1;</code> - * @return The storeType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType getStoreType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType result = emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType.valueOf(storeType_); - return result == null ? emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType.UNRECOGNIZED : result; - } - /** - * <code>.StoreType storeType = 1;</code> - * @param value The storeType to set. - * @return This builder for chaining. - */ - public Builder setStoreType(emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType value) { - if (value == null) { - throw new NullPointerException(); - } - - storeType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.StoreType storeType = 1;</code> - * @return This builder for chaining. - */ - public Builder clearStoreType() { - - storeType_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.ItemOuterClass.Item> itemList_ = - java.util.Collections.emptyList(); - private void ensureItemListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - itemList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemOuterClass.Item>(itemList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemOuterClass.Item, emu.grasscutter.net.proto.ItemOuterClass.Item.Builder, emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder> itemListBuilder_; - - /** - * <code>repeated .Item itemList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemOuterClass.Item> getItemListList() { - if (itemListBuilder_ == null) { - return java.util.Collections.unmodifiableList(itemList_); - } else { - return itemListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public int getItemListCount() { - if (itemListBuilder_ == null) { - return itemList_.size(); - } else { - return itemListBuilder_.getCount(); - } - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public emu.grasscutter.net.proto.ItemOuterClass.Item getItemList(int index) { - if (itemListBuilder_ == null) { - return itemList_.get(index); - } else { - return itemListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public Builder setItemList( - int index, emu.grasscutter.net.proto.ItemOuterClass.Item value) { - if (itemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemListIsMutable(); - itemList_.set(index, value); - onChanged(); - } else { - itemListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public Builder setItemList( - int index, emu.grasscutter.net.proto.ItemOuterClass.Item.Builder builderForValue) { - if (itemListBuilder_ == null) { - ensureItemListIsMutable(); - itemList_.set(index, builderForValue.build()); - onChanged(); - } else { - itemListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public Builder addItemList(emu.grasscutter.net.proto.ItemOuterClass.Item value) { - if (itemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemListIsMutable(); - itemList_.add(value); - onChanged(); - } else { - itemListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public Builder addItemList( - int index, emu.grasscutter.net.proto.ItemOuterClass.Item value) { - if (itemListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemListIsMutable(); - itemList_.add(index, value); - onChanged(); - } else { - itemListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public Builder addItemList( - emu.grasscutter.net.proto.ItemOuterClass.Item.Builder builderForValue) { - if (itemListBuilder_ == null) { - ensureItemListIsMutable(); - itemList_.add(builderForValue.build()); - onChanged(); - } else { - itemListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public Builder addItemList( - int index, emu.grasscutter.net.proto.ItemOuterClass.Item.Builder builderForValue) { - if (itemListBuilder_ == null) { - ensureItemListIsMutable(); - itemList_.add(index, builderForValue.build()); - onChanged(); - } else { - itemListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public Builder addAllItemList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.ItemOuterClass.Item> values) { - if (itemListBuilder_ == null) { - ensureItemListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, itemList_); - onChanged(); - } else { - itemListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public Builder clearItemList() { - if (itemListBuilder_ == null) { - itemList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - itemListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public Builder removeItemList(int index) { - if (itemListBuilder_ == null) { - ensureItemListIsMutable(); - itemList_.remove(index); - onChanged(); - } else { - itemListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public emu.grasscutter.net.proto.ItemOuterClass.Item.Builder getItemListBuilder( - int index) { - return getItemListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder getItemListOrBuilder( - int index) { - if (itemListBuilder_ == null) { - return itemList_.get(index); } else { - return itemListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder> - getItemListOrBuilderList() { - if (itemListBuilder_ != null) { - return itemListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(itemList_); - } - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public emu.grasscutter.net.proto.ItemOuterClass.Item.Builder addItemListBuilder() { - return getItemListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ItemOuterClass.Item.getDefaultInstance()); - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public emu.grasscutter.net.proto.ItemOuterClass.Item.Builder addItemListBuilder( - int index) { - return getItemListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ItemOuterClass.Item.getDefaultInstance()); - } - /** - * <code>repeated .Item itemList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemOuterClass.Item.Builder> - getItemListBuilderList() { - return getItemListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemOuterClass.Item, emu.grasscutter.net.proto.ItemOuterClass.Item.Builder, emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder> - getItemListFieldBuilder() { - if (itemListBuilder_ == null) { - itemListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemOuterClass.Item, emu.grasscutter.net.proto.ItemOuterClass.Item.Builder, emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder>( - itemList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - itemList_ = null; - } - return itemListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:StoreItemChangeNotify) - } - - // @@protoc_insertion_point(class_scope:StoreItemChangeNotify) - private static final emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify(); - } - - public static emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<StoreItemChangeNotify> - PARSER = new com.google.protobuf.AbstractParser<StoreItemChangeNotify>() { - @java.lang.Override - public StoreItemChangeNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StoreItemChangeNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<StoreItemChangeNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<StoreItemChangeNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_StoreItemChangeNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_StoreItemChangeNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033StoreItemChangeNotify.proto\032\nItem.prot" + - "o\032\017StoreType.proto\"O\n\025StoreItemChangeNot" + - "ify\022\035\n\tstoreType\030\001 \001(\0162\n.StoreType\022\027\n\010it" + - "emList\030\002 \003(\0132\005.ItemB\033\n\031emu.grasscutter.n" + - "et.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ItemOuterClass.getDescriptor(), - emu.grasscutter.net.proto.StoreTypeOuterClass.getDescriptor(), - }); - internal_static_StoreItemChangeNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_StoreItemChangeNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_StoreItemChangeNotify_descriptor, - new java.lang.String[] { "StoreType", "ItemList", }); - emu.grasscutter.net.proto.ItemOuterClass.getDescriptor(); - emu.grasscutter.net.proto.StoreTypeOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/StoreItemDelNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/StoreItemDelNotifyOuterClass.java deleted file mode 100644 index 1e3364885..000000000 --- a/src/main/java/emu/grasscutter/net/proto/StoreItemDelNotifyOuterClass.java +++ /dev/null @@ -1,773 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: StoreItemDelNotify.proto - -package emu.grasscutter.net.proto; - -public final class StoreItemDelNotifyOuterClass { - private StoreItemDelNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface StoreItemDelNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:StoreItemDelNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.StoreType storeType = 1;</code> - * @return The enum numeric value on the wire for storeType. - */ - int getStoreTypeValue(); - /** - * <code>.StoreType storeType = 1;</code> - * @return The storeType. - */ - emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType getStoreType(); - - /** - * <code>repeated uint64 guidList = 2;</code> - * @return A list containing the guidList. - */ - java.util.List<java.lang.Long> getGuidListList(); - /** - * <code>repeated uint64 guidList = 2;</code> - * @return The count of guidList. - */ - int getGuidListCount(); - /** - * <code>repeated uint64 guidList = 2;</code> - * @param index The index of the element to return. - * @return The guidList at the given index. - */ - long getGuidList(int index); - } - /** - * Protobuf type {@code StoreItemDelNotify} - */ - public static final class StoreItemDelNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:StoreItemDelNotify) - StoreItemDelNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use StoreItemDelNotify.newBuilder() to construct. - private StoreItemDelNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private StoreItemDelNotify() { - storeType_ = 0; - guidList_ = emptyLongList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StoreItemDelNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StoreItemDelNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - storeType_ = rawValue; - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - guidList_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - guidList_.addLong(input.readUInt64()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - guidList_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - guidList_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - guidList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.internal_static_StoreItemDelNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.internal_static_StoreItemDelNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify.class, emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify.Builder.class); - } - - public static final int STORETYPE_FIELD_NUMBER = 1; - private int storeType_; - /** - * <code>.StoreType storeType = 1;</code> - * @return The enum numeric value on the wire for storeType. - */ - @java.lang.Override public int getStoreTypeValue() { - return storeType_; - } - /** - * <code>.StoreType storeType = 1;</code> - * @return The storeType. - */ - @java.lang.Override public emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType getStoreType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType result = emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType.valueOf(storeType_); - return result == null ? emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType.UNRECOGNIZED : result; - } - - public static final int GUIDLIST_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.LongList guidList_; - /** - * <code>repeated uint64 guidList = 2;</code> - * @return A list containing the guidList. - */ - @java.lang.Override - public java.util.List<java.lang.Long> - getGuidListList() { - return guidList_; - } - /** - * <code>repeated uint64 guidList = 2;</code> - * @return The count of guidList. - */ - public int getGuidListCount() { - return guidList_.size(); - } - /** - * <code>repeated uint64 guidList = 2;</code> - * @param index The index of the element to return. - * @return The guidList at the given index. - */ - public long getGuidList(int index) { - return guidList_.getLong(index); - } - private int guidListMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (storeType_ != emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType.StoreNone.getNumber()) { - output.writeEnum(1, storeType_); - } - if (getGuidListList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(guidListMemoizedSerializedSize); - } - for (int i = 0; i < guidList_.size(); i++) { - output.writeUInt64NoTag(guidList_.getLong(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (storeType_ != emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType.StoreNone.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, storeType_); - } - { - int dataSize = 0; - for (int i = 0; i < guidList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(guidList_.getLong(i)); - } - size += dataSize; - if (!getGuidListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - guidListMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify other = (emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify) obj; - - if (storeType_ != other.storeType_) return false; - if (!getGuidListList() - .equals(other.getGuidListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STORETYPE_FIELD_NUMBER; - hash = (53 * hash) + storeType_; - if (getGuidListCount() > 0) { - hash = (37 * hash) + GUIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getGuidListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code StoreItemDelNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:StoreItemDelNotify) - emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.internal_static_StoreItemDelNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.internal_static_StoreItemDelNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify.class, emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - storeType_ = 0; - - guidList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.internal_static_StoreItemDelNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify build() { - emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify buildPartial() { - emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify result = new emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify(this); - int from_bitField0_ = bitField0_; - result.storeType_ = storeType_; - if (((bitField0_ & 0x00000001) != 0)) { - guidList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.guidList_ = guidList_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify) { - return mergeFrom((emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify other) { - if (other == emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify.getDefaultInstance()) return this; - if (other.storeType_ != 0) { - setStoreTypeValue(other.getStoreTypeValue()); - } - if (!other.guidList_.isEmpty()) { - if (guidList_.isEmpty()) { - guidList_ = other.guidList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureGuidListIsMutable(); - guidList_.addAll(other.guidList_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int storeType_ = 0; - /** - * <code>.StoreType storeType = 1;</code> - * @return The enum numeric value on the wire for storeType. - */ - @java.lang.Override public int getStoreTypeValue() { - return storeType_; - } - /** - * <code>.StoreType storeType = 1;</code> - * @param value The enum numeric value on the wire for storeType to set. - * @return This builder for chaining. - */ - public Builder setStoreTypeValue(int value) { - - storeType_ = value; - onChanged(); - return this; - } - /** - * <code>.StoreType storeType = 1;</code> - * @return The storeType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType getStoreType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType result = emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType.valueOf(storeType_); - return result == null ? emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType.UNRECOGNIZED : result; - } - /** - * <code>.StoreType storeType = 1;</code> - * @param value The storeType to set. - * @return This builder for chaining. - */ - public Builder setStoreType(emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType value) { - if (value == null) { - throw new NullPointerException(); - } - - storeType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.StoreType storeType = 1;</code> - * @return This builder for chaining. - */ - public Builder clearStoreType() { - - storeType_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList guidList_ = emptyLongList(); - private void ensureGuidListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - guidList_ = mutableCopy(guidList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint64 guidList = 2;</code> - * @return A list containing the guidList. - */ - public java.util.List<java.lang.Long> - getGuidListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(guidList_) : guidList_; - } - /** - * <code>repeated uint64 guidList = 2;</code> - * @return The count of guidList. - */ - public int getGuidListCount() { - return guidList_.size(); - } - /** - * <code>repeated uint64 guidList = 2;</code> - * @param index The index of the element to return. - * @return The guidList at the given index. - */ - public long getGuidList(int index) { - return guidList_.getLong(index); - } - /** - * <code>repeated uint64 guidList = 2;</code> - * @param index The index to set the value at. - * @param value The guidList to set. - * @return This builder for chaining. - */ - public Builder setGuidList( - int index, long value) { - ensureGuidListIsMutable(); - guidList_.setLong(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint64 guidList = 2;</code> - * @param value The guidList to add. - * @return This builder for chaining. - */ - public Builder addGuidList(long value) { - ensureGuidListIsMutable(); - guidList_.addLong(value); - onChanged(); - return this; - } - /** - * <code>repeated uint64 guidList = 2;</code> - * @param values The guidList to add. - * @return This builder for chaining. - */ - public Builder addAllGuidList( - java.lang.Iterable<? extends java.lang.Long> values) { - ensureGuidListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, guidList_); - onChanged(); - return this; - } - /** - * <code>repeated uint64 guidList = 2;</code> - * @return This builder for chaining. - */ - public Builder clearGuidList() { - guidList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:StoreItemDelNotify) - } - - // @@protoc_insertion_point(class_scope:StoreItemDelNotify) - private static final emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify(); - } - - public static emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<StoreItemDelNotify> - PARSER = new com.google.protobuf.AbstractParser<StoreItemDelNotify>() { - @java.lang.Override - public StoreItemDelNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StoreItemDelNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<StoreItemDelNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<StoreItemDelNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_StoreItemDelNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_StoreItemDelNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030StoreItemDelNotify.proto\032\017StoreType.pr" + - "oto\"E\n\022StoreItemDelNotify\022\035\n\tstoreType\030\001" + - " \001(\0162\n.StoreType\022\020\n\010guidList\030\002 \003(\004B\033\n\031em" + - "u.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.StoreTypeOuterClass.getDescriptor(), - }); - internal_static_StoreItemDelNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_StoreItemDelNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_StoreItemDelNotify_descriptor, - new java.lang.String[] { "StoreType", "GuidList", }); - emu.grasscutter.net.proto.StoreTypeOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/StoreTypeOuterClass.java b/src/main/java/emu/grasscutter/net/proto/StoreTypeOuterClass.java deleted file mode 100644 index 520660283..000000000 --- a/src/main/java/emu/grasscutter/net/proto/StoreTypeOuterClass.java +++ /dev/null @@ -1,154 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: StoreType.proto - -package emu.grasscutter.net.proto; - -public final class StoreTypeOuterClass { - private StoreTypeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code StoreType} - */ - public enum StoreType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>StoreNone = 0;</code> - */ - StoreNone(0), - /** - * <code>StorePack = 1;</code> - */ - StorePack(1), - /** - * <code>StoreDepot = 2;</code> - */ - StoreDepot(2), - UNRECOGNIZED(-1), - ; - - /** - * <code>StoreNone = 0;</code> - */ - public static final int StoreNone_VALUE = 0; - /** - * <code>StorePack = 1;</code> - */ - public static final int StorePack_VALUE = 1; - /** - * <code>StoreDepot = 2;</code> - */ - public static final int StoreDepot_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static StoreType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static StoreType forNumber(int value) { - switch (value) { - case 0: return StoreNone; - case 1: return StorePack; - case 2: return StoreDepot; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<StoreType> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - StoreType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<StoreType>() { - public StoreType findValueByNumber(int number) { - return StoreType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.StoreTypeOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final StoreType[] VALUES = values(); - - public static StoreType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private StoreType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:StoreType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\017StoreType.proto*9\n\tStoreType\022\r\n\tStoreN" + - "one\020\000\022\r\n\tStorePack\020\001\022\016\n\nStoreDepot\020\002B\033\n\031" + - "emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/StoreWeightLimitNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/StoreWeightLimitNotifyOuterClass.java deleted file mode 100644 index 85d89fd36..000000000 --- a/src/main/java/emu/grasscutter/net/proto/StoreWeightLimitNotifyOuterClass.java +++ /dev/null @@ -1,929 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: StoreWeightLimitNotify.proto - -package emu.grasscutter.net.proto; - -public final class StoreWeightLimitNotifyOuterClass { - private StoreWeightLimitNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface StoreWeightLimitNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:StoreWeightLimitNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.StoreType storeType = 1;</code> - * @return The enum numeric value on the wire for storeType. - */ - int getStoreTypeValue(); - /** - * <code>.StoreType storeType = 1;</code> - * @return The storeType. - */ - emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType getStoreType(); - - /** - * <code>uint32 weightLimit = 3;</code> - * @return The weightLimit. - */ - int getWeightLimit(); - - /** - * <code>uint32 materialCountLimit = 4;</code> - * @return The materialCountLimit. - */ - int getMaterialCountLimit(); - - /** - * <code>uint32 weaponCountLimit = 5;</code> - * @return The weaponCountLimit. - */ - int getWeaponCountLimit(); - - /** - * <code>uint32 reliquaryCountLimit = 6;</code> - * @return The reliquaryCountLimit. - */ - int getReliquaryCountLimit(); - - /** - * <code>uint32 furnitureCountLimit = 7;</code> - * @return The furnitureCountLimit. - */ - int getFurnitureCountLimit(); - } - /** - * Protobuf type {@code StoreWeightLimitNotify} - */ - public static final class StoreWeightLimitNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:StoreWeightLimitNotify) - StoreWeightLimitNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use StoreWeightLimitNotify.newBuilder() to construct. - private StoreWeightLimitNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private StoreWeightLimitNotify() { - storeType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StoreWeightLimitNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StoreWeightLimitNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - storeType_ = rawValue; - break; - } - case 24: { - - weightLimit_ = input.readUInt32(); - break; - } - case 32: { - - materialCountLimit_ = input.readUInt32(); - break; - } - case 40: { - - weaponCountLimit_ = input.readUInt32(); - break; - } - case 48: { - - reliquaryCountLimit_ = input.readUInt32(); - break; - } - case 56: { - - furnitureCountLimit_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.internal_static_StoreWeightLimitNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.internal_static_StoreWeightLimitNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify.class, emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify.Builder.class); - } - - public static final int STORETYPE_FIELD_NUMBER = 1; - private int storeType_; - /** - * <code>.StoreType storeType = 1;</code> - * @return The enum numeric value on the wire for storeType. - */ - @java.lang.Override public int getStoreTypeValue() { - return storeType_; - } - /** - * <code>.StoreType storeType = 1;</code> - * @return The storeType. - */ - @java.lang.Override public emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType getStoreType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType result = emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType.valueOf(storeType_); - return result == null ? emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType.UNRECOGNIZED : result; - } - - public static final int WEIGHTLIMIT_FIELD_NUMBER = 3; - private int weightLimit_; - /** - * <code>uint32 weightLimit = 3;</code> - * @return The weightLimit. - */ - @java.lang.Override - public int getWeightLimit() { - return weightLimit_; - } - - public static final int MATERIALCOUNTLIMIT_FIELD_NUMBER = 4; - private int materialCountLimit_; - /** - * <code>uint32 materialCountLimit = 4;</code> - * @return The materialCountLimit. - */ - @java.lang.Override - public int getMaterialCountLimit() { - return materialCountLimit_; - } - - public static final int WEAPONCOUNTLIMIT_FIELD_NUMBER = 5; - private int weaponCountLimit_; - /** - * <code>uint32 weaponCountLimit = 5;</code> - * @return The weaponCountLimit. - */ - @java.lang.Override - public int getWeaponCountLimit() { - return weaponCountLimit_; - } - - public static final int RELIQUARYCOUNTLIMIT_FIELD_NUMBER = 6; - private int reliquaryCountLimit_; - /** - * <code>uint32 reliquaryCountLimit = 6;</code> - * @return The reliquaryCountLimit. - */ - @java.lang.Override - public int getReliquaryCountLimit() { - return reliquaryCountLimit_; - } - - public static final int FURNITURECOUNTLIMIT_FIELD_NUMBER = 7; - private int furnitureCountLimit_; - /** - * <code>uint32 furnitureCountLimit = 7;</code> - * @return The furnitureCountLimit. - */ - @java.lang.Override - public int getFurnitureCountLimit() { - return furnitureCountLimit_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (storeType_ != emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType.StoreNone.getNumber()) { - output.writeEnum(1, storeType_); - } - if (weightLimit_ != 0) { - output.writeUInt32(3, weightLimit_); - } - if (materialCountLimit_ != 0) { - output.writeUInt32(4, materialCountLimit_); - } - if (weaponCountLimit_ != 0) { - output.writeUInt32(5, weaponCountLimit_); - } - if (reliquaryCountLimit_ != 0) { - output.writeUInt32(6, reliquaryCountLimit_); - } - if (furnitureCountLimit_ != 0) { - output.writeUInt32(7, furnitureCountLimit_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (storeType_ != emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType.StoreNone.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, storeType_); - } - if (weightLimit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, weightLimit_); - } - if (materialCountLimit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, materialCountLimit_); - } - if (weaponCountLimit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, weaponCountLimit_); - } - if (reliquaryCountLimit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, reliquaryCountLimit_); - } - if (furnitureCountLimit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(7, furnitureCountLimit_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify other = (emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify) obj; - - if (storeType_ != other.storeType_) return false; - if (getWeightLimit() - != other.getWeightLimit()) return false; - if (getMaterialCountLimit() - != other.getMaterialCountLimit()) return false; - if (getWeaponCountLimit() - != other.getWeaponCountLimit()) return false; - if (getReliquaryCountLimit() - != other.getReliquaryCountLimit()) return false; - if (getFurnitureCountLimit() - != other.getFurnitureCountLimit()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STORETYPE_FIELD_NUMBER; - hash = (53 * hash) + storeType_; - hash = (37 * hash) + WEIGHTLIMIT_FIELD_NUMBER; - hash = (53 * hash) + getWeightLimit(); - hash = (37 * hash) + MATERIALCOUNTLIMIT_FIELD_NUMBER; - hash = (53 * hash) + getMaterialCountLimit(); - hash = (37 * hash) + WEAPONCOUNTLIMIT_FIELD_NUMBER; - hash = (53 * hash) + getWeaponCountLimit(); - hash = (37 * hash) + RELIQUARYCOUNTLIMIT_FIELD_NUMBER; - hash = (53 * hash) + getReliquaryCountLimit(); - hash = (37 * hash) + FURNITURECOUNTLIMIT_FIELD_NUMBER; - hash = (53 * hash) + getFurnitureCountLimit(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code StoreWeightLimitNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:StoreWeightLimitNotify) - emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.internal_static_StoreWeightLimitNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.internal_static_StoreWeightLimitNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify.class, emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - storeType_ = 0; - - weightLimit_ = 0; - - materialCountLimit_ = 0; - - weaponCountLimit_ = 0; - - reliquaryCountLimit_ = 0; - - furnitureCountLimit_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.internal_static_StoreWeightLimitNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify build() { - emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify buildPartial() { - emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify result = new emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify(this); - result.storeType_ = storeType_; - result.weightLimit_ = weightLimit_; - result.materialCountLimit_ = materialCountLimit_; - result.weaponCountLimit_ = weaponCountLimit_; - result.reliquaryCountLimit_ = reliquaryCountLimit_; - result.furnitureCountLimit_ = furnitureCountLimit_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify) { - return mergeFrom((emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify other) { - if (other == emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify.getDefaultInstance()) return this; - if (other.storeType_ != 0) { - setStoreTypeValue(other.getStoreTypeValue()); - } - if (other.getWeightLimit() != 0) { - setWeightLimit(other.getWeightLimit()); - } - if (other.getMaterialCountLimit() != 0) { - setMaterialCountLimit(other.getMaterialCountLimit()); - } - if (other.getWeaponCountLimit() != 0) { - setWeaponCountLimit(other.getWeaponCountLimit()); - } - if (other.getReliquaryCountLimit() != 0) { - setReliquaryCountLimit(other.getReliquaryCountLimit()); - } - if (other.getFurnitureCountLimit() != 0) { - setFurnitureCountLimit(other.getFurnitureCountLimit()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int storeType_ = 0; - /** - * <code>.StoreType storeType = 1;</code> - * @return The enum numeric value on the wire for storeType. - */ - @java.lang.Override public int getStoreTypeValue() { - return storeType_; - } - /** - * <code>.StoreType storeType = 1;</code> - * @param value The enum numeric value on the wire for storeType to set. - * @return This builder for chaining. - */ - public Builder setStoreTypeValue(int value) { - - storeType_ = value; - onChanged(); - return this; - } - /** - * <code>.StoreType storeType = 1;</code> - * @return The storeType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType getStoreType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType result = emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType.valueOf(storeType_); - return result == null ? emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType.UNRECOGNIZED : result; - } - /** - * <code>.StoreType storeType = 1;</code> - * @param value The storeType to set. - * @return This builder for chaining. - */ - public Builder setStoreType(emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType value) { - if (value == null) { - throw new NullPointerException(); - } - - storeType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.StoreType storeType = 1;</code> - * @return This builder for chaining. - */ - public Builder clearStoreType() { - - storeType_ = 0; - onChanged(); - return this; - } - - private int weightLimit_ ; - /** - * <code>uint32 weightLimit = 3;</code> - * @return The weightLimit. - */ - @java.lang.Override - public int getWeightLimit() { - return weightLimit_; - } - /** - * <code>uint32 weightLimit = 3;</code> - * @param value The weightLimit to set. - * @return This builder for chaining. - */ - public Builder setWeightLimit(int value) { - - weightLimit_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 weightLimit = 3;</code> - * @return This builder for chaining. - */ - public Builder clearWeightLimit() { - - weightLimit_ = 0; - onChanged(); - return this; - } - - private int materialCountLimit_ ; - /** - * <code>uint32 materialCountLimit = 4;</code> - * @return The materialCountLimit. - */ - @java.lang.Override - public int getMaterialCountLimit() { - return materialCountLimit_; - } - /** - * <code>uint32 materialCountLimit = 4;</code> - * @param value The materialCountLimit to set. - * @return This builder for chaining. - */ - public Builder setMaterialCountLimit(int value) { - - materialCountLimit_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 materialCountLimit = 4;</code> - * @return This builder for chaining. - */ - public Builder clearMaterialCountLimit() { - - materialCountLimit_ = 0; - onChanged(); - return this; - } - - private int weaponCountLimit_ ; - /** - * <code>uint32 weaponCountLimit = 5;</code> - * @return The weaponCountLimit. - */ - @java.lang.Override - public int getWeaponCountLimit() { - return weaponCountLimit_; - } - /** - * <code>uint32 weaponCountLimit = 5;</code> - * @param value The weaponCountLimit to set. - * @return This builder for chaining. - */ - public Builder setWeaponCountLimit(int value) { - - weaponCountLimit_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 weaponCountLimit = 5;</code> - * @return This builder for chaining. - */ - public Builder clearWeaponCountLimit() { - - weaponCountLimit_ = 0; - onChanged(); - return this; - } - - private int reliquaryCountLimit_ ; - /** - * <code>uint32 reliquaryCountLimit = 6;</code> - * @return The reliquaryCountLimit. - */ - @java.lang.Override - public int getReliquaryCountLimit() { - return reliquaryCountLimit_; - } - /** - * <code>uint32 reliquaryCountLimit = 6;</code> - * @param value The reliquaryCountLimit to set. - * @return This builder for chaining. - */ - public Builder setReliquaryCountLimit(int value) { - - reliquaryCountLimit_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 reliquaryCountLimit = 6;</code> - * @return This builder for chaining. - */ - public Builder clearReliquaryCountLimit() { - - reliquaryCountLimit_ = 0; - onChanged(); - return this; - } - - private int furnitureCountLimit_ ; - /** - * <code>uint32 furnitureCountLimit = 7;</code> - * @return The furnitureCountLimit. - */ - @java.lang.Override - public int getFurnitureCountLimit() { - return furnitureCountLimit_; - } - /** - * <code>uint32 furnitureCountLimit = 7;</code> - * @param value The furnitureCountLimit to set. - * @return This builder for chaining. - */ - public Builder setFurnitureCountLimit(int value) { - - furnitureCountLimit_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 furnitureCountLimit = 7;</code> - * @return This builder for chaining. - */ - public Builder clearFurnitureCountLimit() { - - furnitureCountLimit_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:StoreWeightLimitNotify) - } - - // @@protoc_insertion_point(class_scope:StoreWeightLimitNotify) - private static final emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify(); - } - - public static emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<StoreWeightLimitNotify> - PARSER = new com.google.protobuf.AbstractParser<StoreWeightLimitNotify>() { - @java.lang.Override - public StoreWeightLimitNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StoreWeightLimitNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<StoreWeightLimitNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<StoreWeightLimitNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_StoreWeightLimitNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_StoreWeightLimitNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034StoreWeightLimitNotify.proto\032\017StoreTyp" + - "e.proto\"\274\001\n\026StoreWeightLimitNotify\022\035\n\tst" + - "oreType\030\001 \001(\0162\n.StoreType\022\023\n\013weightLimit" + - "\030\003 \001(\r\022\032\n\022materialCountLimit\030\004 \001(\r\022\030\n\020we" + - "aponCountLimit\030\005 \001(\r\022\033\n\023reliquaryCountLi" + - "mit\030\006 \001(\r\022\033\n\023furnitureCountLimit\030\007 \001(\rB\033" + - "\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.StoreTypeOuterClass.getDescriptor(), - }); - internal_static_StoreWeightLimitNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_StoreWeightLimitNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_StoreWeightLimitNotify_descriptor, - new java.lang.String[] { "StoreType", "WeightLimit", "MaterialCountLimit", "WeaponCountLimit", "ReliquaryCountLimit", "FurnitureCountLimit", }); - emu.grasscutter.net.proto.StoreTypeOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SyncScenePlayTeamEntityNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SyncScenePlayTeamEntityNotifyOuterClass.java deleted file mode 100644 index a9d358642..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SyncScenePlayTeamEntityNotifyOuterClass.java +++ /dev/null @@ -1,557 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SyncScenePlayTeamEntityNotify.proto - -package emu.grasscutter.net.proto; - -public final class SyncScenePlayTeamEntityNotifyOuterClass { - private SyncScenePlayTeamEntityNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SyncScenePlayTeamEntityNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:SyncScenePlayTeamEntityNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - *repeated PlayTeamEntityInfo entityInfoList = 2; - * </pre> - * - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - int getSceneId(); - } - /** - * Protobuf type {@code SyncScenePlayTeamEntityNotify} - */ - public static final class SyncScenePlayTeamEntityNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SyncScenePlayTeamEntityNotify) - SyncScenePlayTeamEntityNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use SyncScenePlayTeamEntityNotify.newBuilder() to construct. - private SyncScenePlayTeamEntityNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SyncScenePlayTeamEntityNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SyncScenePlayTeamEntityNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SyncScenePlayTeamEntityNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - sceneId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.internal_static_SyncScenePlayTeamEntityNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.internal_static_SyncScenePlayTeamEntityNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify.class, emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify.Builder.class); - } - - public static final int SCENEID_FIELD_NUMBER = 1; - private int sceneId_; - /** - * <pre> - *repeated PlayTeamEntityInfo entityInfoList = 2; - * </pre> - * - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (sceneId_ != 0) { - output.writeUInt32(1, sceneId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sceneId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, sceneId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify other = (emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify) obj; - - if (getSceneId() - != other.getSceneId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SCENEID_FIELD_NUMBER; - hash = (53 * hash) + getSceneId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SyncScenePlayTeamEntityNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SyncScenePlayTeamEntityNotify) - emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.internal_static_SyncScenePlayTeamEntityNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.internal_static_SyncScenePlayTeamEntityNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify.class, emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sceneId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.internal_static_SyncScenePlayTeamEntityNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify build() { - emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify buildPartial() { - emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify result = new emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify(this); - result.sceneId_ = sceneId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify) { - return mergeFrom((emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify other) { - if (other == emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify.getDefaultInstance()) return this; - if (other.getSceneId() != 0) { - setSceneId(other.getSceneId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int sceneId_ ; - /** - * <pre> - *repeated PlayTeamEntityInfo entityInfoList = 2; - * </pre> - * - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - /** - * <pre> - *repeated PlayTeamEntityInfo entityInfoList = 2; - * </pre> - * - * <code>uint32 sceneId = 1;</code> - * @param value The sceneId to set. - * @return This builder for chaining. - */ - public Builder setSceneId(int value) { - - sceneId_ = value; - onChanged(); - return this; - } - /** - * <pre> - *repeated PlayTeamEntityInfo entityInfoList = 2; - * </pre> - * - * <code>uint32 sceneId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearSceneId() { - - sceneId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SyncScenePlayTeamEntityNotify) - } - - // @@protoc_insertion_point(class_scope:SyncScenePlayTeamEntityNotify) - private static final emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify(); - } - - public static emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SyncScenePlayTeamEntityNotify> - PARSER = new com.google.protobuf.AbstractParser<SyncScenePlayTeamEntityNotify>() { - @java.lang.Override - public SyncScenePlayTeamEntityNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SyncScenePlayTeamEntityNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SyncScenePlayTeamEntityNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SyncScenePlayTeamEntityNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SyncScenePlayTeamEntityNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SyncScenePlayTeamEntityNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n#SyncScenePlayTeamEntityNotify.proto\"0\n" + - "\035SyncScenePlayTeamEntityNotify\022\017\n\007sceneI" + - "d\030\001 \001(\rB\033\n\031emu.grasscutter.net.protob\006pr" + - "oto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SyncScenePlayTeamEntityNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SyncScenePlayTeamEntityNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SyncScenePlayTeamEntityNotify_descriptor, - new java.lang.String[] { "SceneId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SyncTeamEntityNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SyncTeamEntityNotifyOuterClass.java deleted file mode 100644 index 56a88bd5c..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SyncTeamEntityNotifyOuterClass.java +++ /dev/null @@ -1,915 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SyncTeamEntityNotify.proto - -package emu.grasscutter.net.proto; - -public final class SyncTeamEntityNotifyOuterClass { - private SyncTeamEntityNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SyncTeamEntityNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:SyncTeamEntityNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - int getSceneId(); - - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - java.util.List<emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo> - getTeamEntityInfoListList(); - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo getTeamEntityInfoList(int index); - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - int getTeamEntityInfoListCount(); - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfoOrBuilder> - getTeamEntityInfoListOrBuilderList(); - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfoOrBuilder getTeamEntityInfoListOrBuilder( - int index); - } - /** - * Protobuf type {@code SyncTeamEntityNotify} - */ - public static final class SyncTeamEntityNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SyncTeamEntityNotify) - SyncTeamEntityNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use SyncTeamEntityNotify.newBuilder() to construct. - private SyncTeamEntityNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SyncTeamEntityNotify() { - teamEntityInfoList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SyncTeamEntityNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SyncTeamEntityNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - sceneId_ = input.readUInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - teamEntityInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo>(); - mutable_bitField0_ |= 0x00000001; - } - teamEntityInfoList_.add( - input.readMessage(emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - teamEntityInfoList_ = java.util.Collections.unmodifiableList(teamEntityInfoList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.internal_static_SyncTeamEntityNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.internal_static_SyncTeamEntityNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify.class, emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify.Builder.class); - } - - public static final int SCENEID_FIELD_NUMBER = 1; - private int sceneId_; - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - - public static final int TEAMENTITYINFOLIST_FIELD_NUMBER = 2; - private java.util.List<emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo> teamEntityInfoList_; - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo> getTeamEntityInfoListList() { - return teamEntityInfoList_; - } - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfoOrBuilder> - getTeamEntityInfoListOrBuilderList() { - return teamEntityInfoList_; - } - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - @java.lang.Override - public int getTeamEntityInfoListCount() { - return teamEntityInfoList_.size(); - } - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo getTeamEntityInfoList(int index) { - return teamEntityInfoList_.get(index); - } - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfoOrBuilder getTeamEntityInfoListOrBuilder( - int index) { - return teamEntityInfoList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (sceneId_ != 0) { - output.writeUInt32(1, sceneId_); - } - for (int i = 0; i < teamEntityInfoList_.size(); i++) { - output.writeMessage(2, teamEntityInfoList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sceneId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, sceneId_); - } - for (int i = 0; i < teamEntityInfoList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, teamEntityInfoList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify other = (emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify) obj; - - if (getSceneId() - != other.getSceneId()) return false; - if (!getTeamEntityInfoListList() - .equals(other.getTeamEntityInfoListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SCENEID_FIELD_NUMBER; - hash = (53 * hash) + getSceneId(); - if (getTeamEntityInfoListCount() > 0) { - hash = (37 * hash) + TEAMENTITYINFOLIST_FIELD_NUMBER; - hash = (53 * hash) + getTeamEntityInfoListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SyncTeamEntityNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SyncTeamEntityNotify) - emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.internal_static_SyncTeamEntityNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.internal_static_SyncTeamEntityNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify.class, emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTeamEntityInfoListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sceneId_ = 0; - - if (teamEntityInfoListBuilder_ == null) { - teamEntityInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - teamEntityInfoListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.internal_static_SyncTeamEntityNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify build() { - emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify buildPartial() { - emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify result = new emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify(this); - int from_bitField0_ = bitField0_; - result.sceneId_ = sceneId_; - if (teamEntityInfoListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - teamEntityInfoList_ = java.util.Collections.unmodifiableList(teamEntityInfoList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.teamEntityInfoList_ = teamEntityInfoList_; - } else { - result.teamEntityInfoList_ = teamEntityInfoListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify) { - return mergeFrom((emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify other) { - if (other == emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify.getDefaultInstance()) return this; - if (other.getSceneId() != 0) { - setSceneId(other.getSceneId()); - } - if (teamEntityInfoListBuilder_ == null) { - if (!other.teamEntityInfoList_.isEmpty()) { - if (teamEntityInfoList_.isEmpty()) { - teamEntityInfoList_ = other.teamEntityInfoList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTeamEntityInfoListIsMutable(); - teamEntityInfoList_.addAll(other.teamEntityInfoList_); - } - onChanged(); - } - } else { - if (!other.teamEntityInfoList_.isEmpty()) { - if (teamEntityInfoListBuilder_.isEmpty()) { - teamEntityInfoListBuilder_.dispose(); - teamEntityInfoListBuilder_ = null; - teamEntityInfoList_ = other.teamEntityInfoList_; - bitField0_ = (bitField0_ & ~0x00000001); - teamEntityInfoListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTeamEntityInfoListFieldBuilder() : null; - } else { - teamEntityInfoListBuilder_.addAllMessages(other.teamEntityInfoList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int sceneId_ ; - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - /** - * <code>uint32 sceneId = 1;</code> - * @param value The sceneId to set. - * @return This builder for chaining. - */ - public Builder setSceneId(int value) { - - sceneId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 sceneId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearSceneId() { - - sceneId_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo> teamEntityInfoList_ = - java.util.Collections.emptyList(); - private void ensureTeamEntityInfoListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - teamEntityInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo>(teamEntityInfoList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo, emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo.Builder, emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfoOrBuilder> teamEntityInfoListBuilder_; - - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo> getTeamEntityInfoListList() { - if (teamEntityInfoListBuilder_ == null) { - return java.util.Collections.unmodifiableList(teamEntityInfoList_); - } else { - return teamEntityInfoListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - public int getTeamEntityInfoListCount() { - if (teamEntityInfoListBuilder_ == null) { - return teamEntityInfoList_.size(); - } else { - return teamEntityInfoListBuilder_.getCount(); - } - } - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - public emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo getTeamEntityInfoList(int index) { - if (teamEntityInfoListBuilder_ == null) { - return teamEntityInfoList_.get(index); - } else { - return teamEntityInfoListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - public Builder setTeamEntityInfoList( - int index, emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo value) { - if (teamEntityInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTeamEntityInfoListIsMutable(); - teamEntityInfoList_.set(index, value); - onChanged(); - } else { - teamEntityInfoListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - public Builder setTeamEntityInfoList( - int index, emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo.Builder builderForValue) { - if (teamEntityInfoListBuilder_ == null) { - ensureTeamEntityInfoListIsMutable(); - teamEntityInfoList_.set(index, builderForValue.build()); - onChanged(); - } else { - teamEntityInfoListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - public Builder addTeamEntityInfoList(emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo value) { - if (teamEntityInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTeamEntityInfoListIsMutable(); - teamEntityInfoList_.add(value); - onChanged(); - } else { - teamEntityInfoListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - public Builder addTeamEntityInfoList( - int index, emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo value) { - if (teamEntityInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTeamEntityInfoListIsMutable(); - teamEntityInfoList_.add(index, value); - onChanged(); - } else { - teamEntityInfoListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - public Builder addTeamEntityInfoList( - emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo.Builder builderForValue) { - if (teamEntityInfoListBuilder_ == null) { - ensureTeamEntityInfoListIsMutable(); - teamEntityInfoList_.add(builderForValue.build()); - onChanged(); - } else { - teamEntityInfoListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - public Builder addTeamEntityInfoList( - int index, emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo.Builder builderForValue) { - if (teamEntityInfoListBuilder_ == null) { - ensureTeamEntityInfoListIsMutable(); - teamEntityInfoList_.add(index, builderForValue.build()); - onChanged(); - } else { - teamEntityInfoListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - public Builder addAllTeamEntityInfoList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo> values) { - if (teamEntityInfoListBuilder_ == null) { - ensureTeamEntityInfoListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, teamEntityInfoList_); - onChanged(); - } else { - teamEntityInfoListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - public Builder clearTeamEntityInfoList() { - if (teamEntityInfoListBuilder_ == null) { - teamEntityInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - teamEntityInfoListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - public Builder removeTeamEntityInfoList(int index) { - if (teamEntityInfoListBuilder_ == null) { - ensureTeamEntityInfoListIsMutable(); - teamEntityInfoList_.remove(index); - onChanged(); - } else { - teamEntityInfoListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - public emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo.Builder getTeamEntityInfoListBuilder( - int index) { - return getTeamEntityInfoListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - public emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfoOrBuilder getTeamEntityInfoListOrBuilder( - int index) { - if (teamEntityInfoListBuilder_ == null) { - return teamEntityInfoList_.get(index); } else { - return teamEntityInfoListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfoOrBuilder> - getTeamEntityInfoListOrBuilderList() { - if (teamEntityInfoListBuilder_ != null) { - return teamEntityInfoListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(teamEntityInfoList_); - } - } - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - public emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo.Builder addTeamEntityInfoListBuilder() { - return getTeamEntityInfoListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo.getDefaultInstance()); - } - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - public emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo.Builder addTeamEntityInfoListBuilder( - int index) { - return getTeamEntityInfoListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo.getDefaultInstance()); - } - /** - * <code>repeated .TeamEntityInfo teamEntityInfoList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo.Builder> - getTeamEntityInfoListBuilderList() { - return getTeamEntityInfoListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo, emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo.Builder, emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfoOrBuilder> - getTeamEntityInfoListFieldBuilder() { - if (teamEntityInfoListBuilder_ == null) { - teamEntityInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo, emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo.Builder, emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfoOrBuilder>( - teamEntityInfoList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - teamEntityInfoList_ = null; - } - return teamEntityInfoListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SyncTeamEntityNotify) - } - - // @@protoc_insertion_point(class_scope:SyncTeamEntityNotify) - private static final emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify(); - } - - public static emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SyncTeamEntityNotify> - PARSER = new com.google.protobuf.AbstractParser<SyncTeamEntityNotify>() { - @java.lang.Override - public SyncTeamEntityNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SyncTeamEntityNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SyncTeamEntityNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SyncTeamEntityNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SyncTeamEntityNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SyncTeamEntityNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032SyncTeamEntityNotify.proto\032\024TeamEntity" + - "Info.proto\"T\n\024SyncTeamEntityNotify\022\017\n\007sc" + - "eneId\030\001 \001(\r\022+\n\022teamEntityInfoList\030\002 \003(\0132" + - "\017.TeamEntityInfoB\033\n\031emu.grasscutter.net." + - "protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.TeamEntityInfoOuterClass.getDescriptor(), - }); - internal_static_SyncTeamEntityNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SyncTeamEntityNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SyncTeamEntityNotify_descriptor, - new java.lang.String[] { "SceneId", "TeamEntityInfoList", }); - emu.grasscutter.net.proto.TeamEntityInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/SystemHintOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SystemHintOuterClass.java deleted file mode 100644 index d8f8e16a4..000000000 --- a/src/main/java/emu/grasscutter/net/proto/SystemHintOuterClass.java +++ /dev/null @@ -1,536 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SystemHint.proto - -package emu.grasscutter.net.proto; - -public final class SystemHintOuterClass { - private SystemHintOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SystemHintOrBuilder extends - // @@protoc_insertion_point(interface_extends:SystemHint) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 type = 1;</code> - * @return The type. - */ - int getType(); - } - /** - * Protobuf type {@code SystemHint} - */ - public static final class SystemHint extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SystemHint) - SystemHintOrBuilder { - private static final long serialVersionUID = 0L; - // Use SystemHint.newBuilder() to construct. - private SystemHint(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SystemHint() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SystemHint(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SystemHint( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - type_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SystemHintOuterClass.internal_static_SystemHint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SystemHintOuterClass.internal_static_SystemHint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint.class, emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint.Builder.class); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private int type_; - /** - * <code>uint32 type = 1;</code> - * @return The type. - */ - @java.lang.Override - public int getType() { - return type_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != 0) { - output.writeUInt32(1, type_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, type_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint other = (emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint) obj; - - if (getType() - != other.getType()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SystemHint} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SystemHint) - emu.grasscutter.net.proto.SystemHintOuterClass.SystemHintOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.SystemHintOuterClass.internal_static_SystemHint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.SystemHintOuterClass.internal_static_SystemHint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint.class, emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - type_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.SystemHintOuterClass.internal_static_SystemHint_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint getDefaultInstanceForType() { - return emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint build() { - emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint buildPartial() { - emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint result = new emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint(this); - result.type_ = type_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint) { - return mergeFrom((emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint other) { - if (other == emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint.getDefaultInstance()) return this; - if (other.getType() != 0) { - setType(other.getType()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int type_ ; - /** - * <code>uint32 type = 1;</code> - * @return The type. - */ - @java.lang.Override - public int getType() { - return type_; - } - /** - * <code>uint32 type = 1;</code> - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 type = 1;</code> - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SystemHint) - } - - // @@protoc_insertion_point(class_scope:SystemHint) - private static final emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint(); - } - - public static emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SystemHint> - PARSER = new com.google.protobuf.AbstractParser<SystemHint>() { - @java.lang.Override - public SystemHint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SystemHint(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SystemHint> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SystemHint> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SystemHint_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SystemHint_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020SystemHint.proto\"\032\n\nSystemHint\022\014\n\004type" + - "\030\001 \001(\rB\033\n\031emu.grasscutter.net.protob\006pro" + - "to3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SystemHint_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SystemHint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SystemHint_descriptor, - new java.lang.String[] { "Type", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/TakePlayerLevelRewardReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/TakePlayerLevelRewardReqOuterClass.java deleted file mode 100644 index ceae2bae5..000000000 --- a/src/main/java/emu/grasscutter/net/proto/TakePlayerLevelRewardReqOuterClass.java +++ /dev/null @@ -1,538 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TakePlayerLevelRewardReq.proto - -package emu.grasscutter.net.proto; - -public final class TakePlayerLevelRewardReqOuterClass { - private TakePlayerLevelRewardReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TakePlayerLevelRewardReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:TakePlayerLevelRewardReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 level = 1;</code> - * @return The level. - */ - int getLevel(); - } - /** - * Protobuf type {@code TakePlayerLevelRewardReq} - */ - public static final class TakePlayerLevelRewardReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TakePlayerLevelRewardReq) - TakePlayerLevelRewardReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use TakePlayerLevelRewardReq.newBuilder() to construct. - private TakePlayerLevelRewardReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private TakePlayerLevelRewardReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TakePlayerLevelRewardReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TakePlayerLevelRewardReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - level_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.internal_static_TakePlayerLevelRewardReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.internal_static_TakePlayerLevelRewardReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq.class, emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq.Builder.class); - } - - public static final int LEVEL_FIELD_NUMBER = 1; - private int level_; - /** - * <code>uint32 level = 1;</code> - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (level_ != 0) { - output.writeUInt32(1, level_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (level_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, level_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq other = (emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq) obj; - - if (getLevel() - != other.getLevel()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LEVEL_FIELD_NUMBER; - hash = (53 * hash) + getLevel(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TakePlayerLevelRewardReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:TakePlayerLevelRewardReq) - emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.internal_static_TakePlayerLevelRewardReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.internal_static_TakePlayerLevelRewardReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq.class, emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - level_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.internal_static_TakePlayerLevelRewardReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq build() { - emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq buildPartial() { - emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq result = new emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq(this); - result.level_ = level_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq) { - return mergeFrom((emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq other) { - if (other == emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq.getDefaultInstance()) return this; - if (other.getLevel() != 0) { - setLevel(other.getLevel()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int level_ ; - /** - * <code>uint32 level = 1;</code> - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - /** - * <code>uint32 level = 1;</code> - * @param value The level to set. - * @return This builder for chaining. - */ - public Builder setLevel(int value) { - - level_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 level = 1;</code> - * @return This builder for chaining. - */ - public Builder clearLevel() { - - level_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TakePlayerLevelRewardReq) - } - - // @@protoc_insertion_point(class_scope:TakePlayerLevelRewardReq) - private static final emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq(); - } - - public static emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<TakePlayerLevelRewardReq> - PARSER = new com.google.protobuf.AbstractParser<TakePlayerLevelRewardReq>() { - @java.lang.Override - public TakePlayerLevelRewardReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TakePlayerLevelRewardReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<TakePlayerLevelRewardReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<TakePlayerLevelRewardReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TakePlayerLevelRewardReqOuterClass.TakePlayerLevelRewardReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TakePlayerLevelRewardReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TakePlayerLevelRewardReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\036TakePlayerLevelRewardReq.proto\")\n\030Take" + - "PlayerLevelRewardReq\022\r\n\005level\030\001 \001(\rB\033\n\031e" + - "mu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_TakePlayerLevelRewardReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TakePlayerLevelRewardReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TakePlayerLevelRewardReq_descriptor, - new java.lang.String[] { "Level", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/TakePlayerLevelRewardRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/TakePlayerLevelRewardRspOuterClass.java deleted file mode 100644 index bd18103b9..000000000 --- a/src/main/java/emu/grasscutter/net/proto/TakePlayerLevelRewardRspOuterClass.java +++ /dev/null @@ -1,679 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TakePlayerLevelRewardRsp.proto - -package emu.grasscutter.net.proto; - -public final class TakePlayerLevelRewardRspOuterClass { - private TakePlayerLevelRewardRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TakePlayerLevelRewardRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:TakePlayerLevelRewardRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint32 level = 2;</code> - * @return The level. - */ - int getLevel(); - - /** - * <code>uint32 rewardId = 3;</code> - * @return The rewardId. - */ - int getRewardId(); - } - /** - * Protobuf type {@code TakePlayerLevelRewardRsp} - */ - public static final class TakePlayerLevelRewardRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TakePlayerLevelRewardRsp) - TakePlayerLevelRewardRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use TakePlayerLevelRewardRsp.newBuilder() to construct. - private TakePlayerLevelRewardRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private TakePlayerLevelRewardRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TakePlayerLevelRewardRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TakePlayerLevelRewardRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - level_ = input.readUInt32(); - break; - } - case 24: { - - rewardId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.internal_static_TakePlayerLevelRewardRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.internal_static_TakePlayerLevelRewardRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp.class, emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int LEVEL_FIELD_NUMBER = 2; - private int level_; - /** - * <code>uint32 level = 2;</code> - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - - public static final int REWARDID_FIELD_NUMBER = 3; - private int rewardId_; - /** - * <code>uint32 rewardId = 3;</code> - * @return The rewardId. - */ - @java.lang.Override - public int getRewardId() { - return rewardId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (level_ != 0) { - output.writeUInt32(2, level_); - } - if (rewardId_ != 0) { - output.writeUInt32(3, rewardId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (level_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, level_); - } - if (rewardId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, rewardId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp other = (emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getLevel() - != other.getLevel()) return false; - if (getRewardId() - != other.getRewardId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + LEVEL_FIELD_NUMBER; - hash = (53 * hash) + getLevel(); - hash = (37 * hash) + REWARDID_FIELD_NUMBER; - hash = (53 * hash) + getRewardId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TakePlayerLevelRewardRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:TakePlayerLevelRewardRsp) - emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.internal_static_TakePlayerLevelRewardRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.internal_static_TakePlayerLevelRewardRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp.class, emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - level_ = 0; - - rewardId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.internal_static_TakePlayerLevelRewardRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp build() { - emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp buildPartial() { - emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp result = new emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp(this); - result.retcode_ = retcode_; - result.level_ = level_; - result.rewardId_ = rewardId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp) { - return mergeFrom((emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp other) { - if (other == emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getLevel() != 0) { - setLevel(other.getLevel()); - } - if (other.getRewardId() != 0) { - setRewardId(other.getRewardId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private int level_ ; - /** - * <code>uint32 level = 2;</code> - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - /** - * <code>uint32 level = 2;</code> - * @param value The level to set. - * @return This builder for chaining. - */ - public Builder setLevel(int value) { - - level_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 level = 2;</code> - * @return This builder for chaining. - */ - public Builder clearLevel() { - - level_ = 0; - onChanged(); - return this; - } - - private int rewardId_ ; - /** - * <code>uint32 rewardId = 3;</code> - * @return The rewardId. - */ - @java.lang.Override - public int getRewardId() { - return rewardId_; - } - /** - * <code>uint32 rewardId = 3;</code> - * @param value The rewardId to set. - * @return This builder for chaining. - */ - public Builder setRewardId(int value) { - - rewardId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 rewardId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearRewardId() { - - rewardId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TakePlayerLevelRewardRsp) - } - - // @@protoc_insertion_point(class_scope:TakePlayerLevelRewardRsp) - private static final emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp(); - } - - public static emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<TakePlayerLevelRewardRsp> - PARSER = new com.google.protobuf.AbstractParser<TakePlayerLevelRewardRsp>() { - @java.lang.Override - public TakePlayerLevelRewardRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TakePlayerLevelRewardRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<TakePlayerLevelRewardRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<TakePlayerLevelRewardRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TakePlayerLevelRewardRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TakePlayerLevelRewardRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\036TakePlayerLevelRewardRsp.proto\"L\n\030Take" + - "PlayerLevelRewardRsp\022\017\n\007retcode\030\001 \001(\005\022\r\n" + - "\005level\030\002 \001(\r\022\020\n\010rewardId\030\003 \001(\rB\033\n\031emu.gr" + - "asscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_TakePlayerLevelRewardRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TakePlayerLevelRewardRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TakePlayerLevelRewardRsp_descriptor, - new java.lang.String[] { "Retcode", "Level", "RewardId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/TakeoffEquipReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/TakeoffEquipReqOuterClass.java deleted file mode 100644 index b4e439d22..000000000 --- a/src/main/java/emu/grasscutter/net/proto/TakeoffEquipReqOuterClass.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TakeoffEquipReq.proto - -package emu.grasscutter.net.proto; - -public final class TakeoffEquipReqOuterClass { - private TakeoffEquipReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TakeoffEquipReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:TakeoffEquipReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>uint32 slot = 2;</code> - * @return The slot. - */ - int getSlot(); - } - /** - * Protobuf type {@code TakeoffEquipReq} - */ - public static final class TakeoffEquipReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TakeoffEquipReq) - TakeoffEquipReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use TakeoffEquipReq.newBuilder() to construct. - private TakeoffEquipReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private TakeoffEquipReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TakeoffEquipReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TakeoffEquipReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 16: { - - slot_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.internal_static_TakeoffEquipReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.internal_static_TakeoffEquipReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq.class, emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq.Builder.class); - } - - public static final int AVATARGUID_FIELD_NUMBER = 1; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int SLOT_FIELD_NUMBER = 2; - private int slot_; - /** - * <code>uint32 slot = 2;</code> - * @return The slot. - */ - @java.lang.Override - public int getSlot() { - return slot_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (avatarGuid_ != 0L) { - output.writeUInt64(1, avatarGuid_); - } - if (slot_ != 0) { - output.writeUInt32(2, slot_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, avatarGuid_); - } - if (slot_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, slot_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq other = (emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq) obj; - - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (getSlot() - != other.getSlot()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - hash = (37 * hash) + SLOT_FIELD_NUMBER; - hash = (53 * hash) + getSlot(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TakeoffEquipReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:TakeoffEquipReq) - emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.internal_static_TakeoffEquipReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.internal_static_TakeoffEquipReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq.class, emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - avatarGuid_ = 0L; - - slot_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.internal_static_TakeoffEquipReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq build() { - emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq buildPartial() { - emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq result = new emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq(this); - result.avatarGuid_ = avatarGuid_; - result.slot_ = slot_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq) { - return mergeFrom((emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq other) { - if (other == emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq.getDefaultInstance()) return this; - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - if (other.getSlot() != 0) { - setSlot(other.getSlot()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private int slot_ ; - /** - * <code>uint32 slot = 2;</code> - * @return The slot. - */ - @java.lang.Override - public int getSlot() { - return slot_; - } - /** - * <code>uint32 slot = 2;</code> - * @param value The slot to set. - * @return This builder for chaining. - */ - public Builder setSlot(int value) { - - slot_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 slot = 2;</code> - * @return This builder for chaining. - */ - public Builder clearSlot() { - - slot_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TakeoffEquipReq) - } - - // @@protoc_insertion_point(class_scope:TakeoffEquipReq) - private static final emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq(); - } - - public static emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<TakeoffEquipReq> - PARSER = new com.google.protobuf.AbstractParser<TakeoffEquipReq>() { - @java.lang.Override - public TakeoffEquipReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TakeoffEquipReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<TakeoffEquipReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<TakeoffEquipReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TakeoffEquipReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TakeoffEquipReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025TakeoffEquipReq.proto\"3\n\017TakeoffEquipR" + - "eq\022\022\n\navatarGuid\030\001 \001(\004\022\014\n\004slot\030\002 \001(\rB\033\n\031" + - "emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_TakeoffEquipReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TakeoffEquipReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TakeoffEquipReq_descriptor, - new java.lang.String[] { "AvatarGuid", "Slot", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/TakeoffEquipRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/TakeoffEquipRspOuterClass.java deleted file mode 100644 index 3f0c403c2..000000000 --- a/src/main/java/emu/grasscutter/net/proto/TakeoffEquipRspOuterClass.java +++ /dev/null @@ -1,678 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TakeoffEquipRsp.proto - -package emu.grasscutter.net.proto; - -public final class TakeoffEquipRspOuterClass { - private TakeoffEquipRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TakeoffEquipRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:TakeoffEquipRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>uint32 slot = 3;</code> - * @return The slot. - */ - int getSlot(); - } - /** - * Protobuf type {@code TakeoffEquipRsp} - */ - public static final class TakeoffEquipRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TakeoffEquipRsp) - TakeoffEquipRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use TakeoffEquipRsp.newBuilder() to construct. - private TakeoffEquipRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private TakeoffEquipRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TakeoffEquipRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TakeoffEquipRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 24: { - - slot_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.internal_static_TakeoffEquipRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.internal_static_TakeoffEquipRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp.class, emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int AVATARGUID_FIELD_NUMBER = 2; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int SLOT_FIELD_NUMBER = 3; - private int slot_; - /** - * <code>uint32 slot = 3;</code> - * @return The slot. - */ - @java.lang.Override - public int getSlot() { - return slot_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (avatarGuid_ != 0L) { - output.writeUInt64(2, avatarGuid_); - } - if (slot_ != 0) { - output.writeUInt32(3, slot_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, avatarGuid_); - } - if (slot_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, slot_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp other = (emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (getSlot() - != other.getSlot()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - hash = (37 * hash) + SLOT_FIELD_NUMBER; - hash = (53 * hash) + getSlot(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TakeoffEquipRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:TakeoffEquipRsp) - emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.internal_static_TakeoffEquipRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.internal_static_TakeoffEquipRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp.class, emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - avatarGuid_ = 0L; - - slot_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.internal_static_TakeoffEquipRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp build() { - emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp buildPartial() { - emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp result = new emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp(this); - result.retcode_ = retcode_; - result.avatarGuid_ = avatarGuid_; - result.slot_ = slot_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp) { - return mergeFrom((emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp other) { - if (other == emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - if (other.getSlot() != 0) { - setSlot(other.getSlot()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 2;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private int slot_ ; - /** - * <code>uint32 slot = 3;</code> - * @return The slot. - */ - @java.lang.Override - public int getSlot() { - return slot_; - } - /** - * <code>uint32 slot = 3;</code> - * @param value The slot to set. - * @return This builder for chaining. - */ - public Builder setSlot(int value) { - - slot_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 slot = 3;</code> - * @return This builder for chaining. - */ - public Builder clearSlot() { - - slot_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TakeoffEquipRsp) - } - - // @@protoc_insertion_point(class_scope:TakeoffEquipRsp) - private static final emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp(); - } - - public static emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<TakeoffEquipRsp> - PARSER = new com.google.protobuf.AbstractParser<TakeoffEquipRsp>() { - @java.lang.Override - public TakeoffEquipRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TakeoffEquipRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<TakeoffEquipRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<TakeoffEquipRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TakeoffEquipRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TakeoffEquipRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025TakeoffEquipRsp.proto\"D\n\017TakeoffEquipR" + - "sp\022\017\n\007retcode\030\001 \001(\005\022\022\n\navatarGuid\030\002 \001(\004\022" + - "\014\n\004slot\030\003 \001(\rB\033\n\031emu.grasscutter.net.pro" + - "tob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_TakeoffEquipRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TakeoffEquipRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TakeoffEquipRsp_descriptor, - new java.lang.String[] { "Retcode", "AvatarGuid", "Slot", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/TeamEnterSceneInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/TeamEnterSceneInfoOuterClass.java deleted file mode 100644 index ff95e4b04..000000000 --- a/src/main/java/emu/grasscutter/net/proto/TeamEnterSceneInfoOuterClass.java +++ /dev/null @@ -1,947 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TeamEnterSceneInfo.proto - -package emu.grasscutter.net.proto; - -public final class TeamEnterSceneInfoOuterClass { - private TeamEnterSceneInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TeamEnterSceneInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:TeamEnterSceneInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 teamEntityId = 1;</code> - * @return The teamEntityId. - */ - int getTeamEntityId(); - - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 2;</code> - * @return Whether the teamAbilityInfo field is set. - */ - boolean hasTeamAbilityInfo(); - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 2;</code> - * @return The teamAbilityInfo. - */ - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getTeamAbilityInfo(); - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 2;</code> - */ - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getTeamAbilityInfoOrBuilder(); - - /** - * <code>.AbilitySyncStateInfo unk = 3;</code> - * @return Whether the unk field is set. - */ - boolean hasUnk(); - /** - * <code>.AbilitySyncStateInfo unk = 3;</code> - * @return The unk. - */ - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getUnk(); - /** - * <code>.AbilitySyncStateInfo unk = 3;</code> - */ - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getUnkOrBuilder(); - } - /** - * Protobuf type {@code TeamEnterSceneInfo} - */ - public static final class TeamEnterSceneInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TeamEnterSceneInfo) - TeamEnterSceneInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use TeamEnterSceneInfo.newBuilder() to construct. - private TeamEnterSceneInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private TeamEnterSceneInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TeamEnterSceneInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TeamEnterSceneInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - teamEntityId_ = input.readUInt32(); - break; - } - case 18: { - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder subBuilder = null; - if (teamAbilityInfo_ != null) { - subBuilder = teamAbilityInfo_.toBuilder(); - } - teamAbilityInfo_ = input.readMessage(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(teamAbilityInfo_); - teamAbilityInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder subBuilder = null; - if (unk_ != null) { - subBuilder = unk_.toBuilder(); - } - unk_ = input.readMessage(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(unk_); - unk_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.internal_static_TeamEnterSceneInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.internal_static_TeamEnterSceneInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo.class, emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo.Builder.class); - } - - public static final int TEAMENTITYID_FIELD_NUMBER = 1; - private int teamEntityId_; - /** - * <code>uint32 teamEntityId = 1;</code> - * @return The teamEntityId. - */ - @java.lang.Override - public int getTeamEntityId() { - return teamEntityId_; - } - - public static final int TEAMABILITYINFO_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo teamAbilityInfo_; - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 2;</code> - * @return Whether the teamAbilityInfo field is set. - */ - @java.lang.Override - public boolean hasTeamAbilityInfo() { - return teamAbilityInfo_ != null; - } - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 2;</code> - * @return The teamAbilityInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getTeamAbilityInfo() { - return teamAbilityInfo_ == null ? emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : teamAbilityInfo_; - } - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getTeamAbilityInfoOrBuilder() { - return getTeamAbilityInfo(); - } - - public static final int UNK_FIELD_NUMBER = 3; - private emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo unk_; - /** - * <code>.AbilitySyncStateInfo unk = 3;</code> - * @return Whether the unk field is set. - */ - @java.lang.Override - public boolean hasUnk() { - return unk_ != null; - } - /** - * <code>.AbilitySyncStateInfo unk = 3;</code> - * @return The unk. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getUnk() { - return unk_ == null ? emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : unk_; - } - /** - * <code>.AbilitySyncStateInfo unk = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getUnkOrBuilder() { - return getUnk(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (teamEntityId_ != 0) { - output.writeUInt32(1, teamEntityId_); - } - if (teamAbilityInfo_ != null) { - output.writeMessage(2, getTeamAbilityInfo()); - } - if (unk_ != null) { - output.writeMessage(3, getUnk()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (teamEntityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, teamEntityId_); - } - if (teamAbilityInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTeamAbilityInfo()); - } - if (unk_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUnk()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo other = (emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo) obj; - - if (getTeamEntityId() - != other.getTeamEntityId()) return false; - if (hasTeamAbilityInfo() != other.hasTeamAbilityInfo()) return false; - if (hasTeamAbilityInfo()) { - if (!getTeamAbilityInfo() - .equals(other.getTeamAbilityInfo())) return false; - } - if (hasUnk() != other.hasUnk()) return false; - if (hasUnk()) { - if (!getUnk() - .equals(other.getUnk())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TEAMENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getTeamEntityId(); - if (hasTeamAbilityInfo()) { - hash = (37 * hash) + TEAMABILITYINFO_FIELD_NUMBER; - hash = (53 * hash) + getTeamAbilityInfo().hashCode(); - } - if (hasUnk()) { - hash = (37 * hash) + UNK_FIELD_NUMBER; - hash = (53 * hash) + getUnk().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TeamEnterSceneInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:TeamEnterSceneInfo) - emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.internal_static_TeamEnterSceneInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.internal_static_TeamEnterSceneInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo.class, emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - teamEntityId_ = 0; - - if (teamAbilityInfoBuilder_ == null) { - teamAbilityInfo_ = null; - } else { - teamAbilityInfo_ = null; - teamAbilityInfoBuilder_ = null; - } - if (unkBuilder_ == null) { - unk_ = null; - } else { - unk_ = null; - unkBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.internal_static_TeamEnterSceneInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo build() { - emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo buildPartial() { - emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo result = new emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo(this); - result.teamEntityId_ = teamEntityId_; - if (teamAbilityInfoBuilder_ == null) { - result.teamAbilityInfo_ = teamAbilityInfo_; - } else { - result.teamAbilityInfo_ = teamAbilityInfoBuilder_.build(); - } - if (unkBuilder_ == null) { - result.unk_ = unk_; - } else { - result.unk_ = unkBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo) { - return mergeFrom((emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo other) { - if (other == emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo.getDefaultInstance()) return this; - if (other.getTeamEntityId() != 0) { - setTeamEntityId(other.getTeamEntityId()); - } - if (other.hasTeamAbilityInfo()) { - mergeTeamAbilityInfo(other.getTeamAbilityInfo()); - } - if (other.hasUnk()) { - mergeUnk(other.getUnk()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int teamEntityId_ ; - /** - * <code>uint32 teamEntityId = 1;</code> - * @return The teamEntityId. - */ - @java.lang.Override - public int getTeamEntityId() { - return teamEntityId_; - } - /** - * <code>uint32 teamEntityId = 1;</code> - * @param value The teamEntityId to set. - * @return This builder for chaining. - */ - public Builder setTeamEntityId(int value) { - - teamEntityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 teamEntityId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTeamEntityId() { - - teamEntityId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo teamAbilityInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder> teamAbilityInfoBuilder_; - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 2;</code> - * @return Whether the teamAbilityInfo field is set. - */ - public boolean hasTeamAbilityInfo() { - return teamAbilityInfoBuilder_ != null || teamAbilityInfo_ != null; - } - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 2;</code> - * @return The teamAbilityInfo. - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getTeamAbilityInfo() { - if (teamAbilityInfoBuilder_ == null) { - return teamAbilityInfo_ == null ? emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : teamAbilityInfo_; - } else { - return teamAbilityInfoBuilder_.getMessage(); - } - } - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 2;</code> - */ - public Builder setTeamAbilityInfo(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo value) { - if (teamAbilityInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - teamAbilityInfo_ = value; - onChanged(); - } else { - teamAbilityInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 2;</code> - */ - public Builder setTeamAbilityInfo( - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder builderForValue) { - if (teamAbilityInfoBuilder_ == null) { - teamAbilityInfo_ = builderForValue.build(); - onChanged(); - } else { - teamAbilityInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 2;</code> - */ - public Builder mergeTeamAbilityInfo(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo value) { - if (teamAbilityInfoBuilder_ == null) { - if (teamAbilityInfo_ != null) { - teamAbilityInfo_ = - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.newBuilder(teamAbilityInfo_).mergeFrom(value).buildPartial(); - } else { - teamAbilityInfo_ = value; - } - onChanged(); - } else { - teamAbilityInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 2;</code> - */ - public Builder clearTeamAbilityInfo() { - if (teamAbilityInfoBuilder_ == null) { - teamAbilityInfo_ = null; - onChanged(); - } else { - teamAbilityInfo_ = null; - teamAbilityInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 2;</code> - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder getTeamAbilityInfoBuilder() { - - onChanged(); - return getTeamAbilityInfoFieldBuilder().getBuilder(); - } - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 2;</code> - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getTeamAbilityInfoOrBuilder() { - if (teamAbilityInfoBuilder_ != null) { - return teamAbilityInfoBuilder_.getMessageOrBuilder(); - } else { - return teamAbilityInfo_ == null ? - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : teamAbilityInfo_; - } - } - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder> - getTeamAbilityInfoFieldBuilder() { - if (teamAbilityInfoBuilder_ == null) { - teamAbilityInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder>( - getTeamAbilityInfo(), - getParentForChildren(), - isClean()); - teamAbilityInfo_ = null; - } - return teamAbilityInfoBuilder_; - } - - private emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo unk_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder> unkBuilder_; - /** - * <code>.AbilitySyncStateInfo unk = 3;</code> - * @return Whether the unk field is set. - */ - public boolean hasUnk() { - return unkBuilder_ != null || unk_ != null; - } - /** - * <code>.AbilitySyncStateInfo unk = 3;</code> - * @return The unk. - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getUnk() { - if (unkBuilder_ == null) { - return unk_ == null ? emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : unk_; - } else { - return unkBuilder_.getMessage(); - } - } - /** - * <code>.AbilitySyncStateInfo unk = 3;</code> - */ - public Builder setUnk(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo value) { - if (unkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - unk_ = value; - onChanged(); - } else { - unkBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo unk = 3;</code> - */ - public Builder setUnk( - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder builderForValue) { - if (unkBuilder_ == null) { - unk_ = builderForValue.build(); - onChanged(); - } else { - unkBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo unk = 3;</code> - */ - public Builder mergeUnk(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo value) { - if (unkBuilder_ == null) { - if (unk_ != null) { - unk_ = - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.newBuilder(unk_).mergeFrom(value).buildPartial(); - } else { - unk_ = value; - } - onChanged(); - } else { - unkBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo unk = 3;</code> - */ - public Builder clearUnk() { - if (unkBuilder_ == null) { - unk_ = null; - onChanged(); - } else { - unk_ = null; - unkBuilder_ = null; - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo unk = 3;</code> - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder getUnkBuilder() { - - onChanged(); - return getUnkFieldBuilder().getBuilder(); - } - /** - * <code>.AbilitySyncStateInfo unk = 3;</code> - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getUnkOrBuilder() { - if (unkBuilder_ != null) { - return unkBuilder_.getMessageOrBuilder(); - } else { - return unk_ == null ? - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : unk_; - } - } - /** - * <code>.AbilitySyncStateInfo unk = 3;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder> - getUnkFieldBuilder() { - if (unkBuilder_ == null) { - unkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder>( - getUnk(), - getParentForChildren(), - isClean()); - unk_ = null; - } - return unkBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TeamEnterSceneInfo) - } - - // @@protoc_insertion_point(class_scope:TeamEnterSceneInfo) - private static final emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo(); - } - - public static emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<TeamEnterSceneInfo> - PARSER = new com.google.protobuf.AbstractParser<TeamEnterSceneInfo>() { - @java.lang.Override - public TeamEnterSceneInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TeamEnterSceneInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<TeamEnterSceneInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<TeamEnterSceneInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TeamEnterSceneInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TeamEnterSceneInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030TeamEnterSceneInfo.proto\032\032AbilitySyncS" + - "tateInfo.proto\"~\n\022TeamEnterSceneInfo\022\024\n\014" + - "teamEntityId\030\001 \001(\r\022.\n\017teamAbilityInfo\030\002 " + - "\001(\0132\025.AbilitySyncStateInfo\022\"\n\003unk\030\003 \001(\0132" + - "\025.AbilitySyncStateInfoB\033\n\031emu.grasscutte" + - "r.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.getDescriptor(), - }); - internal_static_TeamEnterSceneInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TeamEnterSceneInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TeamEnterSceneInfo_descriptor, - new java.lang.String[] { "TeamEntityId", "TeamAbilityInfo", "Unk", }); - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/TeamEntityInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/TeamEntityInfoOuterClass.java deleted file mode 100644 index 1da526390..000000000 --- a/src/main/java/emu/grasscutter/net/proto/TeamEntityInfoOuterClass.java +++ /dev/null @@ -1,813 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TeamEntityInfo.proto - -package emu.grasscutter.net.proto; - -public final class TeamEntityInfoOuterClass { - private TeamEntityInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TeamEntityInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:TeamEntityInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 teamEntityId = 1;</code> - * @return The teamEntityId. - */ - int getTeamEntityId(); - - /** - * <code>uint32 authorityPeerId = 2;</code> - * @return The authorityPeerId. - */ - int getAuthorityPeerId(); - - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 3;</code> - * @return Whether the teamAbilityInfo field is set. - */ - boolean hasTeamAbilityInfo(); - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 3;</code> - * @return The teamAbilityInfo. - */ - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getTeamAbilityInfo(); - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 3;</code> - */ - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getTeamAbilityInfoOrBuilder(); - } - /** - * Protobuf type {@code TeamEntityInfo} - */ - public static final class TeamEntityInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TeamEntityInfo) - TeamEntityInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use TeamEntityInfo.newBuilder() to construct. - private TeamEntityInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private TeamEntityInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TeamEntityInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TeamEntityInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - teamEntityId_ = input.readUInt32(); - break; - } - case 16: { - - authorityPeerId_ = input.readUInt32(); - break; - } - case 26: { - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder subBuilder = null; - if (teamAbilityInfo_ != null) { - subBuilder = teamAbilityInfo_.toBuilder(); - } - teamAbilityInfo_ = input.readMessage(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(teamAbilityInfo_); - teamAbilityInfo_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TeamEntityInfoOuterClass.internal_static_TeamEntityInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TeamEntityInfoOuterClass.internal_static_TeamEntityInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo.class, emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo.Builder.class); - } - - public static final int TEAMENTITYID_FIELD_NUMBER = 1; - private int teamEntityId_; - /** - * <code>uint32 teamEntityId = 1;</code> - * @return The teamEntityId. - */ - @java.lang.Override - public int getTeamEntityId() { - return teamEntityId_; - } - - public static final int AUTHORITYPEERID_FIELD_NUMBER = 2; - private int authorityPeerId_; - /** - * <code>uint32 authorityPeerId = 2;</code> - * @return The authorityPeerId. - */ - @java.lang.Override - public int getAuthorityPeerId() { - return authorityPeerId_; - } - - public static final int TEAMABILITYINFO_FIELD_NUMBER = 3; - private emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo teamAbilityInfo_; - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 3;</code> - * @return Whether the teamAbilityInfo field is set. - */ - @java.lang.Override - public boolean hasTeamAbilityInfo() { - return teamAbilityInfo_ != null; - } - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 3;</code> - * @return The teamAbilityInfo. - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getTeamAbilityInfo() { - return teamAbilityInfo_ == null ? emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : teamAbilityInfo_; - } - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getTeamAbilityInfoOrBuilder() { - return getTeamAbilityInfo(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (teamEntityId_ != 0) { - output.writeUInt32(1, teamEntityId_); - } - if (authorityPeerId_ != 0) { - output.writeUInt32(2, authorityPeerId_); - } - if (teamAbilityInfo_ != null) { - output.writeMessage(3, getTeamAbilityInfo()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (teamEntityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, teamEntityId_); - } - if (authorityPeerId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, authorityPeerId_); - } - if (teamAbilityInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTeamAbilityInfo()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo other = (emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo) obj; - - if (getTeamEntityId() - != other.getTeamEntityId()) return false; - if (getAuthorityPeerId() - != other.getAuthorityPeerId()) return false; - if (hasTeamAbilityInfo() != other.hasTeamAbilityInfo()) return false; - if (hasTeamAbilityInfo()) { - if (!getTeamAbilityInfo() - .equals(other.getTeamAbilityInfo())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TEAMENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getTeamEntityId(); - hash = (37 * hash) + AUTHORITYPEERID_FIELD_NUMBER; - hash = (53 * hash) + getAuthorityPeerId(); - if (hasTeamAbilityInfo()) { - hash = (37 * hash) + TEAMABILITYINFO_FIELD_NUMBER; - hash = (53 * hash) + getTeamAbilityInfo().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TeamEntityInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:TeamEntityInfo) - emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TeamEntityInfoOuterClass.internal_static_TeamEntityInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TeamEntityInfoOuterClass.internal_static_TeamEntityInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo.class, emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - teamEntityId_ = 0; - - authorityPeerId_ = 0; - - if (teamAbilityInfoBuilder_ == null) { - teamAbilityInfo_ = null; - } else { - teamAbilityInfo_ = null; - teamAbilityInfoBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.TeamEntityInfoOuterClass.internal_static_TeamEntityInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo build() { - emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo buildPartial() { - emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo result = new emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo(this); - result.teamEntityId_ = teamEntityId_; - result.authorityPeerId_ = authorityPeerId_; - if (teamAbilityInfoBuilder_ == null) { - result.teamAbilityInfo_ = teamAbilityInfo_; - } else { - result.teamAbilityInfo_ = teamAbilityInfoBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo) { - return mergeFrom((emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo other) { - if (other == emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo.getDefaultInstance()) return this; - if (other.getTeamEntityId() != 0) { - setTeamEntityId(other.getTeamEntityId()); - } - if (other.getAuthorityPeerId() != 0) { - setAuthorityPeerId(other.getAuthorityPeerId()); - } - if (other.hasTeamAbilityInfo()) { - mergeTeamAbilityInfo(other.getTeamAbilityInfo()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int teamEntityId_ ; - /** - * <code>uint32 teamEntityId = 1;</code> - * @return The teamEntityId. - */ - @java.lang.Override - public int getTeamEntityId() { - return teamEntityId_; - } - /** - * <code>uint32 teamEntityId = 1;</code> - * @param value The teamEntityId to set. - * @return This builder for chaining. - */ - public Builder setTeamEntityId(int value) { - - teamEntityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 teamEntityId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTeamEntityId() { - - teamEntityId_ = 0; - onChanged(); - return this; - } - - private int authorityPeerId_ ; - /** - * <code>uint32 authorityPeerId = 2;</code> - * @return The authorityPeerId. - */ - @java.lang.Override - public int getAuthorityPeerId() { - return authorityPeerId_; - } - /** - * <code>uint32 authorityPeerId = 2;</code> - * @param value The authorityPeerId to set. - * @return This builder for chaining. - */ - public Builder setAuthorityPeerId(int value) { - - authorityPeerId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 authorityPeerId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearAuthorityPeerId() { - - authorityPeerId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo teamAbilityInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder> teamAbilityInfoBuilder_; - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 3;</code> - * @return Whether the teamAbilityInfo field is set. - */ - public boolean hasTeamAbilityInfo() { - return teamAbilityInfoBuilder_ != null || teamAbilityInfo_ != null; - } - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 3;</code> - * @return The teamAbilityInfo. - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getTeamAbilityInfo() { - if (teamAbilityInfoBuilder_ == null) { - return teamAbilityInfo_ == null ? emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : teamAbilityInfo_; - } else { - return teamAbilityInfoBuilder_.getMessage(); - } - } - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 3;</code> - */ - public Builder setTeamAbilityInfo(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo value) { - if (teamAbilityInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - teamAbilityInfo_ = value; - onChanged(); - } else { - teamAbilityInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 3;</code> - */ - public Builder setTeamAbilityInfo( - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder builderForValue) { - if (teamAbilityInfoBuilder_ == null) { - teamAbilityInfo_ = builderForValue.build(); - onChanged(); - } else { - teamAbilityInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 3;</code> - */ - public Builder mergeTeamAbilityInfo(emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo value) { - if (teamAbilityInfoBuilder_ == null) { - if (teamAbilityInfo_ != null) { - teamAbilityInfo_ = - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.newBuilder(teamAbilityInfo_).mergeFrom(value).buildPartial(); - } else { - teamAbilityInfo_ = value; - } - onChanged(); - } else { - teamAbilityInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 3;</code> - */ - public Builder clearTeamAbilityInfo() { - if (teamAbilityInfoBuilder_ == null) { - teamAbilityInfo_ = null; - onChanged(); - } else { - teamAbilityInfo_ = null; - teamAbilityInfoBuilder_ = null; - } - - return this; - } - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 3;</code> - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder getTeamAbilityInfoBuilder() { - - onChanged(); - return getTeamAbilityInfoFieldBuilder().getBuilder(); - } - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 3;</code> - */ - public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getTeamAbilityInfoOrBuilder() { - if (teamAbilityInfoBuilder_ != null) { - return teamAbilityInfoBuilder_.getMessageOrBuilder(); - } else { - return teamAbilityInfo_ == null ? - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.getDefaultInstance() : teamAbilityInfo_; - } - } - /** - * <code>.AbilitySyncStateInfo teamAbilityInfo = 3;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder> - getTeamAbilityInfoFieldBuilder() { - if (teamAbilityInfoBuilder_ == null) { - teamAbilityInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder, emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder>( - getTeamAbilityInfo(), - getParentForChildren(), - isClean()); - teamAbilityInfo_ = null; - } - return teamAbilityInfoBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TeamEntityInfo) - } - - // @@protoc_insertion_point(class_scope:TeamEntityInfo) - private static final emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo(); - } - - public static emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<TeamEntityInfo> - PARSER = new com.google.protobuf.AbstractParser<TeamEntityInfo>() { - @java.lang.Override - public TeamEntityInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TeamEntityInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<TeamEntityInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<TeamEntityInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TeamEntityInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TeamEntityInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024TeamEntityInfo.proto\032\032AbilitySyncState" + - "Info.proto\"o\n\016TeamEntityInfo\022\024\n\014teamEnti" + - "tyId\030\001 \001(\r\022\027\n\017authorityPeerId\030\002 \001(\r\022.\n\017t" + - "eamAbilityInfo\030\003 \001(\0132\025.AbilitySyncStateI" + - "nfoB\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.getDescriptor(), - }); - internal_static_TeamEntityInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TeamEntityInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TeamEntityInfo_descriptor, - new java.lang.String[] { "TeamEntityId", "AuthorityPeerId", "TeamAbilityInfo", }); - emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/TeamResonanceChangeNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/TeamResonanceChangeNotifyOuterClass.java deleted file mode 100644 index 12cfc0307..000000000 --- a/src/main/java/emu/grasscutter/net/proto/TeamResonanceChangeNotifyOuterClass.java +++ /dev/null @@ -1,845 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TeamResonanceChangeNotify.proto - -package emu.grasscutter.net.proto; - -public final class TeamResonanceChangeNotifyOuterClass { - private TeamResonanceChangeNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TeamResonanceChangeNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:TeamResonanceChangeNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - java.util.List<emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo> - getInfoListList(); - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo getInfoList(int index); - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - int getInfoListCount(); - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfoOrBuilder> - getInfoListOrBuilderList(); - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfoOrBuilder getInfoListOrBuilder( - int index); - } - /** - * Protobuf type {@code TeamResonanceChangeNotify} - */ - public static final class TeamResonanceChangeNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TeamResonanceChangeNotify) - TeamResonanceChangeNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use TeamResonanceChangeNotify.newBuilder() to construct. - private TeamResonanceChangeNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private TeamResonanceChangeNotify() { - infoList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TeamResonanceChangeNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TeamResonanceChangeNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - infoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo>(); - mutable_bitField0_ |= 0x00000001; - } - infoList_.add( - input.readMessage(emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - infoList_ = java.util.Collections.unmodifiableList(infoList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.internal_static_TeamResonanceChangeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.internal_static_TeamResonanceChangeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify.class, emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify.Builder.class); - } - - public static final int INFOLIST_FIELD_NUMBER = 1; - private java.util.List<emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo> infoList_; - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo> getInfoListList() { - return infoList_; - } - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfoOrBuilder> - getInfoListOrBuilderList() { - return infoList_; - } - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - @java.lang.Override - public int getInfoListCount() { - return infoList_.size(); - } - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo getInfoList(int index) { - return infoList_.get(index); - } - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfoOrBuilder getInfoListOrBuilder( - int index) { - return infoList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < infoList_.size(); i++) { - output.writeMessage(1, infoList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < infoList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, infoList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify other = (emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify) obj; - - if (!getInfoListList() - .equals(other.getInfoListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getInfoListCount() > 0) { - hash = (37 * hash) + INFOLIST_FIELD_NUMBER; - hash = (53 * hash) + getInfoListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TeamResonanceChangeNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:TeamResonanceChangeNotify) - emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.internal_static_TeamResonanceChangeNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.internal_static_TeamResonanceChangeNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify.class, emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getInfoListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (infoListBuilder_ == null) { - infoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - infoListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.internal_static_TeamResonanceChangeNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify build() { - emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify buildPartial() { - emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify result = new emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify(this); - int from_bitField0_ = bitField0_; - if (infoListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - infoList_ = java.util.Collections.unmodifiableList(infoList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.infoList_ = infoList_; - } else { - result.infoList_ = infoListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify) { - return mergeFrom((emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify other) { - if (other == emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify.getDefaultInstance()) return this; - if (infoListBuilder_ == null) { - if (!other.infoList_.isEmpty()) { - if (infoList_.isEmpty()) { - infoList_ = other.infoList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureInfoListIsMutable(); - infoList_.addAll(other.infoList_); - } - onChanged(); - } - } else { - if (!other.infoList_.isEmpty()) { - if (infoListBuilder_.isEmpty()) { - infoListBuilder_.dispose(); - infoListBuilder_ = null; - infoList_ = other.infoList_; - bitField0_ = (bitField0_ & ~0x00000001); - infoListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInfoListFieldBuilder() : null; - } else { - infoListBuilder_.addAllMessages(other.infoList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List<emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo> infoList_ = - java.util.Collections.emptyList(); - private void ensureInfoListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - infoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo>(infoList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo, emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo.Builder, emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfoOrBuilder> infoListBuilder_; - - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo> getInfoListList() { - if (infoListBuilder_ == null) { - return java.util.Collections.unmodifiableList(infoList_); - } else { - return infoListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - public int getInfoListCount() { - if (infoListBuilder_ == null) { - return infoList_.size(); - } else { - return infoListBuilder_.getCount(); - } - } - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - public emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo getInfoList(int index) { - if (infoListBuilder_ == null) { - return infoList_.get(index); - } else { - return infoListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - public Builder setInfoList( - int index, emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo value) { - if (infoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInfoListIsMutable(); - infoList_.set(index, value); - onChanged(); - } else { - infoListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - public Builder setInfoList( - int index, emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo.Builder builderForValue) { - if (infoListBuilder_ == null) { - ensureInfoListIsMutable(); - infoList_.set(index, builderForValue.build()); - onChanged(); - } else { - infoListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - public Builder addInfoList(emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo value) { - if (infoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInfoListIsMutable(); - infoList_.add(value); - onChanged(); - } else { - infoListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - public Builder addInfoList( - int index, emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo value) { - if (infoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInfoListIsMutable(); - infoList_.add(index, value); - onChanged(); - } else { - infoListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - public Builder addInfoList( - emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo.Builder builderForValue) { - if (infoListBuilder_ == null) { - ensureInfoListIsMutable(); - infoList_.add(builderForValue.build()); - onChanged(); - } else { - infoListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - public Builder addInfoList( - int index, emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo.Builder builderForValue) { - if (infoListBuilder_ == null) { - ensureInfoListIsMutable(); - infoList_.add(index, builderForValue.build()); - onChanged(); - } else { - infoListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - public Builder addAllInfoList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo> values) { - if (infoListBuilder_ == null) { - ensureInfoListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, infoList_); - onChanged(); - } else { - infoListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - public Builder clearInfoList() { - if (infoListBuilder_ == null) { - infoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - infoListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - public Builder removeInfoList(int index) { - if (infoListBuilder_ == null) { - ensureInfoListIsMutable(); - infoList_.remove(index); - onChanged(); - } else { - infoListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - public emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo.Builder getInfoListBuilder( - int index) { - return getInfoListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - public emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfoOrBuilder getInfoListOrBuilder( - int index) { - if (infoListBuilder_ == null) { - return infoList_.get(index); } else { - return infoListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfoOrBuilder> - getInfoListOrBuilderList() { - if (infoListBuilder_ != null) { - return infoListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(infoList_); - } - } - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - public emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo.Builder addInfoListBuilder() { - return getInfoListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo.getDefaultInstance()); - } - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - public emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo.Builder addInfoListBuilder( - int index) { - return getInfoListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo.getDefaultInstance()); - } - /** - * <code>repeated .AvatarTeamResonanceInfo infoList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo.Builder> - getInfoListBuilderList() { - return getInfoListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo, emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo.Builder, emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfoOrBuilder> - getInfoListFieldBuilder() { - if (infoListBuilder_ == null) { - infoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo, emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo.Builder, emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfoOrBuilder>( - infoList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - infoList_ = null; - } - return infoListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TeamResonanceChangeNotify) - } - - // @@protoc_insertion_point(class_scope:TeamResonanceChangeNotify) - private static final emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify(); - } - - public static emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<TeamResonanceChangeNotify> - PARSER = new com.google.protobuf.AbstractParser<TeamResonanceChangeNotify>() { - @java.lang.Override - public TeamResonanceChangeNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TeamResonanceChangeNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<TeamResonanceChangeNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<TeamResonanceChangeNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TeamResonanceChangeNotifyOuterClass.TeamResonanceChangeNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TeamResonanceChangeNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TeamResonanceChangeNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037TeamResonanceChangeNotify.proto\032\035Avata" + - "rTeamResonanceInfo.proto\"G\n\031TeamResonanc" + - "eChangeNotify\022*\n\010infoList\030\001 \003(\0132\030.Avatar" + - "TeamResonanceInfoB\033\n\031emu.grasscutter.net" + - ".protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.getDescriptor(), - }); - internal_static_TeamResonanceChangeNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TeamResonanceChangeNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TeamResonanceChangeNotify_descriptor, - new java.lang.String[] { "InfoList", }); - emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/TowerAllDataRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/TowerAllDataRspOuterClass.java deleted file mode 100644 index 70c1a38d6..000000000 --- a/src/main/java/emu/grasscutter/net/proto/TowerAllDataRspOuterClass.java +++ /dev/null @@ -1,2877 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TowerAllDataRsp.proto - -package emu.grasscutter.net.proto; - -public final class TowerAllDataRspOuterClass { - private TowerAllDataRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TowerAllDataRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:TowerAllDataRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 towerScheduleId = 1;</code> - * @return The towerScheduleId. - */ - int getTowerScheduleId(); - - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - java.util.List<emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord> - getTowerFloorRecordListList(); - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord getTowerFloorRecordList(int index); - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - int getTowerFloorRecordListCount(); - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecordOrBuilder> - getTowerFloorRecordListOrBuilderList(); - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecordOrBuilder getTowerFloorRecordListOrBuilder( - int index); - - /** - * <code>uint32 dailyFloorId = 3;</code> - * @return The dailyFloorId. - */ - int getDailyFloorId(); - - /** - * <code>uint32 dailyLevelIndex = 4;</code> - * @return The dailyLevelIndex. - */ - int getDailyLevelIndex(); - - /** - * <code>.TowerCurLevelRecord curLevelRecord = 5;</code> - * @return Whether the curLevelRecord field is set. - */ - boolean hasCurLevelRecord(); - /** - * <code>.TowerCurLevelRecord curLevelRecord = 5;</code> - * @return The curLevelRecord. - */ - emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord getCurLevelRecord(); - /** - * <code>.TowerCurLevelRecord curLevelRecord = 5;</code> - */ - emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecordOrBuilder getCurLevelRecordOrBuilder(); - - /** - * <code>uint32 nextScheduleChangeTime = 6;</code> - * @return The nextScheduleChangeTime. - */ - int getNextScheduleChangeTime(); - - /** - * <code>map<uint32, uint32> floorOpenTimeMap = 7;</code> - */ - int getFloorOpenTimeMapCount(); - /** - * <code>map<uint32, uint32> floorOpenTimeMap = 7;</code> - */ - boolean containsFloorOpenTimeMap( - int key); - /** - * Use {@link #getFloorOpenTimeMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Integer> - getFloorOpenTimeMap(); - /** - * <code>map<uint32, uint32> floorOpenTimeMap = 7;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Integer> - getFloorOpenTimeMapMap(); - /** - * <code>map<uint32, uint32> floorOpenTimeMap = 7;</code> - */ - - int getFloorOpenTimeMapOrDefault( - int key, - int defaultValue); - /** - * <code>map<uint32, uint32> floorOpenTimeMap = 7;</code> - */ - - int getFloorOpenTimeMapOrThrow( - int key); - - /** - * <code>bool isFirstInteract = 8;</code> - * @return The isFirstInteract. - */ - boolean getIsFirstInteract(); - - /** - * <code>.TowerMonthlyBrief monthlyBrief = 9;</code> - * @return Whether the monthlyBrief field is set. - */ - boolean hasMonthlyBrief(); - /** - * <code>.TowerMonthlyBrief monthlyBrief = 9;</code> - * @return The monthlyBrief. - */ - emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief getMonthlyBrief(); - /** - * <code>.TowerMonthlyBrief monthlyBrief = 9;</code> - */ - emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBriefOrBuilder getMonthlyBriefOrBuilder(); - - /** - * <code>uint32 skipToFloorIndex = 10;</code> - * @return The skipToFloorIndex. - */ - int getSkipToFloorIndex(); - - /** - * <code>uint32 commemorativeRewardId = 11;</code> - * @return The commemorativeRewardId. - */ - int getCommemorativeRewardId(); - - /** - * <code>map<uint32, uint32> skipFloorGrantedRewardItemMap = 12;</code> - */ - int getSkipFloorGrantedRewardItemMapCount(); - /** - * <code>map<uint32, uint32> skipFloorGrantedRewardItemMap = 12;</code> - */ - boolean containsSkipFloorGrantedRewardItemMap( - int key); - /** - * Use {@link #getSkipFloorGrantedRewardItemMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Integer> - getSkipFloorGrantedRewardItemMap(); - /** - * <code>map<uint32, uint32> skipFloorGrantedRewardItemMap = 12;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Integer> - getSkipFloorGrantedRewardItemMapMap(); - /** - * <code>map<uint32, uint32> skipFloorGrantedRewardItemMap = 12;</code> - */ - - int getSkipFloorGrantedRewardItemMapOrDefault( - int key, - int defaultValue); - /** - * <code>map<uint32, uint32> skipFloorGrantedRewardItemMap = 12;</code> - */ - - int getSkipFloorGrantedRewardItemMapOrThrow( - int key); - - /** - * <code>uint32 validTowerRecordNum = 13;</code> - * @return The validTowerRecordNum. - */ - int getValidTowerRecordNum(); - - /** - * <code>int32 retcode = 14;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>bool isFinishedEntranceFloor = 15;</code> - * @return The isFinishedEntranceFloor. - */ - boolean getIsFinishedEntranceFloor(); - - /** - * <code>uint32 scheduleStartTime = 16;</code> - * @return The scheduleStartTime. - */ - int getScheduleStartTime(); - - /** - * <code>.TowerMonthlyBrief lastScheduleMonthlyBrief = 17;</code> - * @return Whether the lastScheduleMonthlyBrief field is set. - */ - boolean hasLastScheduleMonthlyBrief(); - /** - * <code>.TowerMonthlyBrief lastScheduleMonthlyBrief = 17;</code> - * @return The lastScheduleMonthlyBrief. - */ - emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief getLastScheduleMonthlyBrief(); - /** - * <code>.TowerMonthlyBrief lastScheduleMonthlyBrief = 17;</code> - */ - emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBriefOrBuilder getLastScheduleMonthlyBriefOrBuilder(); - } - /** - * Protobuf type {@code TowerAllDataRsp} - */ - public static final class TowerAllDataRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TowerAllDataRsp) - TowerAllDataRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use TowerAllDataRsp.newBuilder() to construct. - private TowerAllDataRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private TowerAllDataRsp() { - towerFloorRecordList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TowerAllDataRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TowerAllDataRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - towerScheduleId_ = input.readUInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - towerFloorRecordList_ = new java.util.ArrayList<emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord>(); - mutable_bitField0_ |= 0x00000001; - } - towerFloorRecordList_.add( - input.readMessage(emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord.parser(), extensionRegistry)); - break; - } - case 24: { - - dailyFloorId_ = input.readUInt32(); - break; - } - case 32: { - - dailyLevelIndex_ = input.readUInt32(); - break; - } - case 42: { - emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord.Builder subBuilder = null; - if (curLevelRecord_ != null) { - subBuilder = curLevelRecord_.toBuilder(); - } - curLevelRecord_ = input.readMessage(emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(curLevelRecord_); - curLevelRecord_ = subBuilder.buildPartial(); - } - - break; - } - case 48: { - - nextScheduleChangeTime_ = input.readUInt32(); - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - floorOpenTimeMap_ = com.google.protobuf.MapField.newMapField( - FloorOpenTimeMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - floorOpenTimeMap__ = input.readMessage( - FloorOpenTimeMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - floorOpenTimeMap_.getMutableMap().put( - floorOpenTimeMap__.getKey(), floorOpenTimeMap__.getValue()); - break; - } - case 64: { - - isFirstInteract_ = input.readBool(); - break; - } - case 74: { - emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.Builder subBuilder = null; - if (monthlyBrief_ != null) { - subBuilder = monthlyBrief_.toBuilder(); - } - monthlyBrief_ = input.readMessage(emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(monthlyBrief_); - monthlyBrief_ = subBuilder.buildPartial(); - } - - break; - } - case 80: { - - skipToFloorIndex_ = input.readUInt32(); - break; - } - case 88: { - - commemorativeRewardId_ = input.readUInt32(); - break; - } - case 98: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - skipFloorGrantedRewardItemMap_ = com.google.protobuf.MapField.newMapField( - SkipFloorGrantedRewardItemMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - skipFloorGrantedRewardItemMap__ = input.readMessage( - SkipFloorGrantedRewardItemMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - skipFloorGrantedRewardItemMap_.getMutableMap().put( - skipFloorGrantedRewardItemMap__.getKey(), skipFloorGrantedRewardItemMap__.getValue()); - break; - } - case 104: { - - validTowerRecordNum_ = input.readUInt32(); - break; - } - case 112: { - - retcode_ = input.readInt32(); - break; - } - case 120: { - - isFinishedEntranceFloor_ = input.readBool(); - break; - } - case 128: { - - scheduleStartTime_ = input.readUInt32(); - break; - } - case 138: { - emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.Builder subBuilder = null; - if (lastScheduleMonthlyBrief_ != null) { - subBuilder = lastScheduleMonthlyBrief_.toBuilder(); - } - lastScheduleMonthlyBrief_ = input.readMessage(emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastScheduleMonthlyBrief_); - lastScheduleMonthlyBrief_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - towerFloorRecordList_ = java.util.Collections.unmodifiableList(towerFloorRecordList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TowerAllDataRspOuterClass.internal_static_TowerAllDataRsp_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 7: - return internalGetFloorOpenTimeMap(); - case 12: - return internalGetSkipFloorGrantedRewardItemMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TowerAllDataRspOuterClass.internal_static_TowerAllDataRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp.class, emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp.Builder.class); - } - - public static final int TOWERSCHEDULEID_FIELD_NUMBER = 1; - private int towerScheduleId_; - /** - * <code>uint32 towerScheduleId = 1;</code> - * @return The towerScheduleId. - */ - @java.lang.Override - public int getTowerScheduleId() { - return towerScheduleId_; - } - - public static final int TOWERFLOORRECORDLIST_FIELD_NUMBER = 2; - private java.util.List<emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord> towerFloorRecordList_; - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord> getTowerFloorRecordListList() { - return towerFloorRecordList_; - } - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecordOrBuilder> - getTowerFloorRecordListOrBuilderList() { - return towerFloorRecordList_; - } - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - @java.lang.Override - public int getTowerFloorRecordListCount() { - return towerFloorRecordList_.size(); - } - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord getTowerFloorRecordList(int index) { - return towerFloorRecordList_.get(index); - } - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecordOrBuilder getTowerFloorRecordListOrBuilder( - int index) { - return towerFloorRecordList_.get(index); - } - - public static final int DAILYFLOORID_FIELD_NUMBER = 3; - private int dailyFloorId_; - /** - * <code>uint32 dailyFloorId = 3;</code> - * @return The dailyFloorId. - */ - @java.lang.Override - public int getDailyFloorId() { - return dailyFloorId_; - } - - public static final int DAILYLEVELINDEX_FIELD_NUMBER = 4; - private int dailyLevelIndex_; - /** - * <code>uint32 dailyLevelIndex = 4;</code> - * @return The dailyLevelIndex. - */ - @java.lang.Override - public int getDailyLevelIndex() { - return dailyLevelIndex_; - } - - public static final int CURLEVELRECORD_FIELD_NUMBER = 5; - private emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord curLevelRecord_; - /** - * <code>.TowerCurLevelRecord curLevelRecord = 5;</code> - * @return Whether the curLevelRecord field is set. - */ - @java.lang.Override - public boolean hasCurLevelRecord() { - return curLevelRecord_ != null; - } - /** - * <code>.TowerCurLevelRecord curLevelRecord = 5;</code> - * @return The curLevelRecord. - */ - @java.lang.Override - public emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord getCurLevelRecord() { - return curLevelRecord_ == null ? emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord.getDefaultInstance() : curLevelRecord_; - } - /** - * <code>.TowerCurLevelRecord curLevelRecord = 5;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecordOrBuilder getCurLevelRecordOrBuilder() { - return getCurLevelRecord(); - } - - public static final int NEXTSCHEDULECHANGETIME_FIELD_NUMBER = 6; - private int nextScheduleChangeTime_; - /** - * <code>uint32 nextScheduleChangeTime = 6;</code> - * @return The nextScheduleChangeTime. - */ - @java.lang.Override - public int getNextScheduleChangeTime() { - return nextScheduleChangeTime_; - } - - public static final int FLOOROPENTIMEMAP_FIELD_NUMBER = 7; - private static final class FloorOpenTimeMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Integer>newDefaultInstance( - emu.grasscutter.net.proto.TowerAllDataRspOuterClass.internal_static_TowerAllDataRsp_FloorOpenTimeMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> floorOpenTimeMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetFloorOpenTimeMap() { - if (floorOpenTimeMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FloorOpenTimeMapDefaultEntryHolder.defaultEntry); - } - return floorOpenTimeMap_; - } - - public int getFloorOpenTimeMapCount() { - return internalGetFloorOpenTimeMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> floorOpenTimeMap = 7;</code> - */ - - @java.lang.Override - public boolean containsFloorOpenTimeMap( - int key) { - - return internalGetFloorOpenTimeMap().getMap().containsKey(key); - } - /** - * Use {@link #getFloorOpenTimeMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getFloorOpenTimeMap() { - return getFloorOpenTimeMapMap(); - } - /** - * <code>map<uint32, uint32> floorOpenTimeMap = 7;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getFloorOpenTimeMapMap() { - return internalGetFloorOpenTimeMap().getMap(); - } - /** - * <code>map<uint32, uint32> floorOpenTimeMap = 7;</code> - */ - @java.lang.Override - - public int getFloorOpenTimeMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetFloorOpenTimeMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> floorOpenTimeMap = 7;</code> - */ - @java.lang.Override - - public int getFloorOpenTimeMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetFloorOpenTimeMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int ISFIRSTINTERACT_FIELD_NUMBER = 8; - private boolean isFirstInteract_; - /** - * <code>bool isFirstInteract = 8;</code> - * @return The isFirstInteract. - */ - @java.lang.Override - public boolean getIsFirstInteract() { - return isFirstInteract_; - } - - public static final int MONTHLYBRIEF_FIELD_NUMBER = 9; - private emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief monthlyBrief_; - /** - * <code>.TowerMonthlyBrief monthlyBrief = 9;</code> - * @return Whether the monthlyBrief field is set. - */ - @java.lang.Override - public boolean hasMonthlyBrief() { - return monthlyBrief_ != null; - } - /** - * <code>.TowerMonthlyBrief monthlyBrief = 9;</code> - * @return The monthlyBrief. - */ - @java.lang.Override - public emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief getMonthlyBrief() { - return monthlyBrief_ == null ? emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.getDefaultInstance() : monthlyBrief_; - } - /** - * <code>.TowerMonthlyBrief monthlyBrief = 9;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBriefOrBuilder getMonthlyBriefOrBuilder() { - return getMonthlyBrief(); - } - - public static final int SKIPTOFLOORINDEX_FIELD_NUMBER = 10; - private int skipToFloorIndex_; - /** - * <code>uint32 skipToFloorIndex = 10;</code> - * @return The skipToFloorIndex. - */ - @java.lang.Override - public int getSkipToFloorIndex() { - return skipToFloorIndex_; - } - - public static final int COMMEMORATIVEREWARDID_FIELD_NUMBER = 11; - private int commemorativeRewardId_; - /** - * <code>uint32 commemorativeRewardId = 11;</code> - * @return The commemorativeRewardId. - */ - @java.lang.Override - public int getCommemorativeRewardId() { - return commemorativeRewardId_; - } - - public static final int SKIPFLOORGRANTEDREWARDITEMMAP_FIELD_NUMBER = 12; - private static final class SkipFloorGrantedRewardItemMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Integer>newDefaultInstance( - emu.grasscutter.net.proto.TowerAllDataRspOuterClass.internal_static_TowerAllDataRsp_SkipFloorGrantedRewardItemMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> skipFloorGrantedRewardItemMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetSkipFloorGrantedRewardItemMap() { - if (skipFloorGrantedRewardItemMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SkipFloorGrantedRewardItemMapDefaultEntryHolder.defaultEntry); - } - return skipFloorGrantedRewardItemMap_; - } - - public int getSkipFloorGrantedRewardItemMapCount() { - return internalGetSkipFloorGrantedRewardItemMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> skipFloorGrantedRewardItemMap = 12;</code> - */ - - @java.lang.Override - public boolean containsSkipFloorGrantedRewardItemMap( - int key) { - - return internalGetSkipFloorGrantedRewardItemMap().getMap().containsKey(key); - } - /** - * Use {@link #getSkipFloorGrantedRewardItemMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkipFloorGrantedRewardItemMap() { - return getSkipFloorGrantedRewardItemMapMap(); - } - /** - * <code>map<uint32, uint32> skipFloorGrantedRewardItemMap = 12;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkipFloorGrantedRewardItemMapMap() { - return internalGetSkipFloorGrantedRewardItemMap().getMap(); - } - /** - * <code>map<uint32, uint32> skipFloorGrantedRewardItemMap = 12;</code> - */ - @java.lang.Override - - public int getSkipFloorGrantedRewardItemMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkipFloorGrantedRewardItemMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> skipFloorGrantedRewardItemMap = 12;</code> - */ - @java.lang.Override - - public int getSkipFloorGrantedRewardItemMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkipFloorGrantedRewardItemMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int VALIDTOWERRECORDNUM_FIELD_NUMBER = 13; - private int validTowerRecordNum_; - /** - * <code>uint32 validTowerRecordNum = 13;</code> - * @return The validTowerRecordNum. - */ - @java.lang.Override - public int getValidTowerRecordNum() { - return validTowerRecordNum_; - } - - public static final int RETCODE_FIELD_NUMBER = 14; - private int retcode_; - /** - * <code>int32 retcode = 14;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int ISFINISHEDENTRANCEFLOOR_FIELD_NUMBER = 15; - private boolean isFinishedEntranceFloor_; - /** - * <code>bool isFinishedEntranceFloor = 15;</code> - * @return The isFinishedEntranceFloor. - */ - @java.lang.Override - public boolean getIsFinishedEntranceFloor() { - return isFinishedEntranceFloor_; - } - - public static final int SCHEDULESTARTTIME_FIELD_NUMBER = 16; - private int scheduleStartTime_; - /** - * <code>uint32 scheduleStartTime = 16;</code> - * @return The scheduleStartTime. - */ - @java.lang.Override - public int getScheduleStartTime() { - return scheduleStartTime_; - } - - public static final int LASTSCHEDULEMONTHLYBRIEF_FIELD_NUMBER = 17; - private emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief lastScheduleMonthlyBrief_; - /** - * <code>.TowerMonthlyBrief lastScheduleMonthlyBrief = 17;</code> - * @return Whether the lastScheduleMonthlyBrief field is set. - */ - @java.lang.Override - public boolean hasLastScheduleMonthlyBrief() { - return lastScheduleMonthlyBrief_ != null; - } - /** - * <code>.TowerMonthlyBrief lastScheduleMonthlyBrief = 17;</code> - * @return The lastScheduleMonthlyBrief. - */ - @java.lang.Override - public emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief getLastScheduleMonthlyBrief() { - return lastScheduleMonthlyBrief_ == null ? emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.getDefaultInstance() : lastScheduleMonthlyBrief_; - } - /** - * <code>.TowerMonthlyBrief lastScheduleMonthlyBrief = 17;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBriefOrBuilder getLastScheduleMonthlyBriefOrBuilder() { - return getLastScheduleMonthlyBrief(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (towerScheduleId_ != 0) { - output.writeUInt32(1, towerScheduleId_); - } - for (int i = 0; i < towerFloorRecordList_.size(); i++) { - output.writeMessage(2, towerFloorRecordList_.get(i)); - } - if (dailyFloorId_ != 0) { - output.writeUInt32(3, dailyFloorId_); - } - if (dailyLevelIndex_ != 0) { - output.writeUInt32(4, dailyLevelIndex_); - } - if (curLevelRecord_ != null) { - output.writeMessage(5, getCurLevelRecord()); - } - if (nextScheduleChangeTime_ != 0) { - output.writeUInt32(6, nextScheduleChangeTime_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetFloorOpenTimeMap(), - FloorOpenTimeMapDefaultEntryHolder.defaultEntry, - 7); - if (isFirstInteract_ != false) { - output.writeBool(8, isFirstInteract_); - } - if (monthlyBrief_ != null) { - output.writeMessage(9, getMonthlyBrief()); - } - if (skipToFloorIndex_ != 0) { - output.writeUInt32(10, skipToFloorIndex_); - } - if (commemorativeRewardId_ != 0) { - output.writeUInt32(11, commemorativeRewardId_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetSkipFloorGrantedRewardItemMap(), - SkipFloorGrantedRewardItemMapDefaultEntryHolder.defaultEntry, - 12); - if (validTowerRecordNum_ != 0) { - output.writeUInt32(13, validTowerRecordNum_); - } - if (retcode_ != 0) { - output.writeInt32(14, retcode_); - } - if (isFinishedEntranceFloor_ != false) { - output.writeBool(15, isFinishedEntranceFloor_); - } - if (scheduleStartTime_ != 0) { - output.writeUInt32(16, scheduleStartTime_); - } - if (lastScheduleMonthlyBrief_ != null) { - output.writeMessage(17, getLastScheduleMonthlyBrief()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (towerScheduleId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, towerScheduleId_); - } - for (int i = 0; i < towerFloorRecordList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, towerFloorRecordList_.get(i)); - } - if (dailyFloorId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, dailyFloorId_); - } - if (dailyLevelIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, dailyLevelIndex_); - } - if (curLevelRecord_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCurLevelRecord()); - } - if (nextScheduleChangeTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, nextScheduleChangeTime_); - } - for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry - : internalGetFloorOpenTimeMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - floorOpenTimeMap__ = FloorOpenTimeMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, floorOpenTimeMap__); - } - if (isFirstInteract_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, isFirstInteract_); - } - if (monthlyBrief_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getMonthlyBrief()); - } - if (skipToFloorIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(10, skipToFloorIndex_); - } - if (commemorativeRewardId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(11, commemorativeRewardId_); - } - for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry - : internalGetSkipFloorGrantedRewardItemMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - skipFloorGrantedRewardItemMap__ = SkipFloorGrantedRewardItemMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, skipFloorGrantedRewardItemMap__); - } - if (validTowerRecordNum_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(13, validTowerRecordNum_); - } - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(14, retcode_); - } - if (isFinishedEntranceFloor_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(15, isFinishedEntranceFloor_); - } - if (scheduleStartTime_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(16, scheduleStartTime_); - } - if (lastScheduleMonthlyBrief_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getLastScheduleMonthlyBrief()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp other = (emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp) obj; - - if (getTowerScheduleId() - != other.getTowerScheduleId()) return false; - if (!getTowerFloorRecordListList() - .equals(other.getTowerFloorRecordListList())) return false; - if (getDailyFloorId() - != other.getDailyFloorId()) return false; - if (getDailyLevelIndex() - != other.getDailyLevelIndex()) return false; - if (hasCurLevelRecord() != other.hasCurLevelRecord()) return false; - if (hasCurLevelRecord()) { - if (!getCurLevelRecord() - .equals(other.getCurLevelRecord())) return false; - } - if (getNextScheduleChangeTime() - != other.getNextScheduleChangeTime()) return false; - if (!internalGetFloorOpenTimeMap().equals( - other.internalGetFloorOpenTimeMap())) return false; - if (getIsFirstInteract() - != other.getIsFirstInteract()) return false; - if (hasMonthlyBrief() != other.hasMonthlyBrief()) return false; - if (hasMonthlyBrief()) { - if (!getMonthlyBrief() - .equals(other.getMonthlyBrief())) return false; - } - if (getSkipToFloorIndex() - != other.getSkipToFloorIndex()) return false; - if (getCommemorativeRewardId() - != other.getCommemorativeRewardId()) return false; - if (!internalGetSkipFloorGrantedRewardItemMap().equals( - other.internalGetSkipFloorGrantedRewardItemMap())) return false; - if (getValidTowerRecordNum() - != other.getValidTowerRecordNum()) return false; - if (getRetcode() - != other.getRetcode()) return false; - if (getIsFinishedEntranceFloor() - != other.getIsFinishedEntranceFloor()) return false; - if (getScheduleStartTime() - != other.getScheduleStartTime()) return false; - if (hasLastScheduleMonthlyBrief() != other.hasLastScheduleMonthlyBrief()) return false; - if (hasLastScheduleMonthlyBrief()) { - if (!getLastScheduleMonthlyBrief() - .equals(other.getLastScheduleMonthlyBrief())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TOWERSCHEDULEID_FIELD_NUMBER; - hash = (53 * hash) + getTowerScheduleId(); - if (getTowerFloorRecordListCount() > 0) { - hash = (37 * hash) + TOWERFLOORRECORDLIST_FIELD_NUMBER; - hash = (53 * hash) + getTowerFloorRecordListList().hashCode(); - } - hash = (37 * hash) + DAILYFLOORID_FIELD_NUMBER; - hash = (53 * hash) + getDailyFloorId(); - hash = (37 * hash) + DAILYLEVELINDEX_FIELD_NUMBER; - hash = (53 * hash) + getDailyLevelIndex(); - if (hasCurLevelRecord()) { - hash = (37 * hash) + CURLEVELRECORD_FIELD_NUMBER; - hash = (53 * hash) + getCurLevelRecord().hashCode(); - } - hash = (37 * hash) + NEXTSCHEDULECHANGETIME_FIELD_NUMBER; - hash = (53 * hash) + getNextScheduleChangeTime(); - if (!internalGetFloorOpenTimeMap().getMap().isEmpty()) { - hash = (37 * hash) + FLOOROPENTIMEMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetFloorOpenTimeMap().hashCode(); - } - hash = (37 * hash) + ISFIRSTINTERACT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsFirstInteract()); - if (hasMonthlyBrief()) { - hash = (37 * hash) + MONTHLYBRIEF_FIELD_NUMBER; - hash = (53 * hash) + getMonthlyBrief().hashCode(); - } - hash = (37 * hash) + SKIPTOFLOORINDEX_FIELD_NUMBER; - hash = (53 * hash) + getSkipToFloorIndex(); - hash = (37 * hash) + COMMEMORATIVEREWARDID_FIELD_NUMBER; - hash = (53 * hash) + getCommemorativeRewardId(); - if (!internalGetSkipFloorGrantedRewardItemMap().getMap().isEmpty()) { - hash = (37 * hash) + SKIPFLOORGRANTEDREWARDITEMMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetSkipFloorGrantedRewardItemMap().hashCode(); - } - hash = (37 * hash) + VALIDTOWERRECORDNUM_FIELD_NUMBER; - hash = (53 * hash) + getValidTowerRecordNum(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + ISFINISHEDENTRANCEFLOOR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsFinishedEntranceFloor()); - hash = (37 * hash) + SCHEDULESTARTTIME_FIELD_NUMBER; - hash = (53 * hash) + getScheduleStartTime(); - if (hasLastScheduleMonthlyBrief()) { - hash = (37 * hash) + LASTSCHEDULEMONTHLYBRIEF_FIELD_NUMBER; - hash = (53 * hash) + getLastScheduleMonthlyBrief().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TowerAllDataRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:TowerAllDataRsp) - emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TowerAllDataRspOuterClass.internal_static_TowerAllDataRsp_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 7: - return internalGetFloorOpenTimeMap(); - case 12: - return internalGetSkipFloorGrantedRewardItemMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 7: - return internalGetMutableFloorOpenTimeMap(); - case 12: - return internalGetMutableSkipFloorGrantedRewardItemMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TowerAllDataRspOuterClass.internal_static_TowerAllDataRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp.class, emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTowerFloorRecordListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - towerScheduleId_ = 0; - - if (towerFloorRecordListBuilder_ == null) { - towerFloorRecordList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - towerFloorRecordListBuilder_.clear(); - } - dailyFloorId_ = 0; - - dailyLevelIndex_ = 0; - - if (curLevelRecordBuilder_ == null) { - curLevelRecord_ = null; - } else { - curLevelRecord_ = null; - curLevelRecordBuilder_ = null; - } - nextScheduleChangeTime_ = 0; - - internalGetMutableFloorOpenTimeMap().clear(); - isFirstInteract_ = false; - - if (monthlyBriefBuilder_ == null) { - monthlyBrief_ = null; - } else { - monthlyBrief_ = null; - monthlyBriefBuilder_ = null; - } - skipToFloorIndex_ = 0; - - commemorativeRewardId_ = 0; - - internalGetMutableSkipFloorGrantedRewardItemMap().clear(); - validTowerRecordNum_ = 0; - - retcode_ = 0; - - isFinishedEntranceFloor_ = false; - - scheduleStartTime_ = 0; - - if (lastScheduleMonthlyBriefBuilder_ == null) { - lastScheduleMonthlyBrief_ = null; - } else { - lastScheduleMonthlyBrief_ = null; - lastScheduleMonthlyBriefBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.TowerAllDataRspOuterClass.internal_static_TowerAllDataRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp build() { - emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp buildPartial() { - emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp result = new emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp(this); - int from_bitField0_ = bitField0_; - result.towerScheduleId_ = towerScheduleId_; - if (towerFloorRecordListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - towerFloorRecordList_ = java.util.Collections.unmodifiableList(towerFloorRecordList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.towerFloorRecordList_ = towerFloorRecordList_; - } else { - result.towerFloorRecordList_ = towerFloorRecordListBuilder_.build(); - } - result.dailyFloorId_ = dailyFloorId_; - result.dailyLevelIndex_ = dailyLevelIndex_; - if (curLevelRecordBuilder_ == null) { - result.curLevelRecord_ = curLevelRecord_; - } else { - result.curLevelRecord_ = curLevelRecordBuilder_.build(); - } - result.nextScheduleChangeTime_ = nextScheduleChangeTime_; - result.floorOpenTimeMap_ = internalGetFloorOpenTimeMap(); - result.floorOpenTimeMap_.makeImmutable(); - result.isFirstInteract_ = isFirstInteract_; - if (monthlyBriefBuilder_ == null) { - result.monthlyBrief_ = monthlyBrief_; - } else { - result.monthlyBrief_ = monthlyBriefBuilder_.build(); - } - result.skipToFloorIndex_ = skipToFloorIndex_; - result.commemorativeRewardId_ = commemorativeRewardId_; - result.skipFloorGrantedRewardItemMap_ = internalGetSkipFloorGrantedRewardItemMap(); - result.skipFloorGrantedRewardItemMap_.makeImmutable(); - result.validTowerRecordNum_ = validTowerRecordNum_; - result.retcode_ = retcode_; - result.isFinishedEntranceFloor_ = isFinishedEntranceFloor_; - result.scheduleStartTime_ = scheduleStartTime_; - if (lastScheduleMonthlyBriefBuilder_ == null) { - result.lastScheduleMonthlyBrief_ = lastScheduleMonthlyBrief_; - } else { - result.lastScheduleMonthlyBrief_ = lastScheduleMonthlyBriefBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp) { - return mergeFrom((emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp other) { - if (other == emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp.getDefaultInstance()) return this; - if (other.getTowerScheduleId() != 0) { - setTowerScheduleId(other.getTowerScheduleId()); - } - if (towerFloorRecordListBuilder_ == null) { - if (!other.towerFloorRecordList_.isEmpty()) { - if (towerFloorRecordList_.isEmpty()) { - towerFloorRecordList_ = other.towerFloorRecordList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTowerFloorRecordListIsMutable(); - towerFloorRecordList_.addAll(other.towerFloorRecordList_); - } - onChanged(); - } - } else { - if (!other.towerFloorRecordList_.isEmpty()) { - if (towerFloorRecordListBuilder_.isEmpty()) { - towerFloorRecordListBuilder_.dispose(); - towerFloorRecordListBuilder_ = null; - towerFloorRecordList_ = other.towerFloorRecordList_; - bitField0_ = (bitField0_ & ~0x00000001); - towerFloorRecordListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTowerFloorRecordListFieldBuilder() : null; - } else { - towerFloorRecordListBuilder_.addAllMessages(other.towerFloorRecordList_); - } - } - } - if (other.getDailyFloorId() != 0) { - setDailyFloorId(other.getDailyFloorId()); - } - if (other.getDailyLevelIndex() != 0) { - setDailyLevelIndex(other.getDailyLevelIndex()); - } - if (other.hasCurLevelRecord()) { - mergeCurLevelRecord(other.getCurLevelRecord()); - } - if (other.getNextScheduleChangeTime() != 0) { - setNextScheduleChangeTime(other.getNextScheduleChangeTime()); - } - internalGetMutableFloorOpenTimeMap().mergeFrom( - other.internalGetFloorOpenTimeMap()); - if (other.getIsFirstInteract() != false) { - setIsFirstInteract(other.getIsFirstInteract()); - } - if (other.hasMonthlyBrief()) { - mergeMonthlyBrief(other.getMonthlyBrief()); - } - if (other.getSkipToFloorIndex() != 0) { - setSkipToFloorIndex(other.getSkipToFloorIndex()); - } - if (other.getCommemorativeRewardId() != 0) { - setCommemorativeRewardId(other.getCommemorativeRewardId()); - } - internalGetMutableSkipFloorGrantedRewardItemMap().mergeFrom( - other.internalGetSkipFloorGrantedRewardItemMap()); - if (other.getValidTowerRecordNum() != 0) { - setValidTowerRecordNum(other.getValidTowerRecordNum()); - } - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getIsFinishedEntranceFloor() != false) { - setIsFinishedEntranceFloor(other.getIsFinishedEntranceFloor()); - } - if (other.getScheduleStartTime() != 0) { - setScheduleStartTime(other.getScheduleStartTime()); - } - if (other.hasLastScheduleMonthlyBrief()) { - mergeLastScheduleMonthlyBrief(other.getLastScheduleMonthlyBrief()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int towerScheduleId_ ; - /** - * <code>uint32 towerScheduleId = 1;</code> - * @return The towerScheduleId. - */ - @java.lang.Override - public int getTowerScheduleId() { - return towerScheduleId_; - } - /** - * <code>uint32 towerScheduleId = 1;</code> - * @param value The towerScheduleId to set. - * @return This builder for chaining. - */ - public Builder setTowerScheduleId(int value) { - - towerScheduleId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 towerScheduleId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTowerScheduleId() { - - towerScheduleId_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord> towerFloorRecordList_ = - java.util.Collections.emptyList(); - private void ensureTowerFloorRecordListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - towerFloorRecordList_ = new java.util.ArrayList<emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord>(towerFloorRecordList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord, emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord.Builder, emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecordOrBuilder> towerFloorRecordListBuilder_; - - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord> getTowerFloorRecordListList() { - if (towerFloorRecordListBuilder_ == null) { - return java.util.Collections.unmodifiableList(towerFloorRecordList_); - } else { - return towerFloorRecordListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - public int getTowerFloorRecordListCount() { - if (towerFloorRecordListBuilder_ == null) { - return towerFloorRecordList_.size(); - } else { - return towerFloorRecordListBuilder_.getCount(); - } - } - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - public emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord getTowerFloorRecordList(int index) { - if (towerFloorRecordListBuilder_ == null) { - return towerFloorRecordList_.get(index); - } else { - return towerFloorRecordListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - public Builder setTowerFloorRecordList( - int index, emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord value) { - if (towerFloorRecordListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTowerFloorRecordListIsMutable(); - towerFloorRecordList_.set(index, value); - onChanged(); - } else { - towerFloorRecordListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - public Builder setTowerFloorRecordList( - int index, emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord.Builder builderForValue) { - if (towerFloorRecordListBuilder_ == null) { - ensureTowerFloorRecordListIsMutable(); - towerFloorRecordList_.set(index, builderForValue.build()); - onChanged(); - } else { - towerFloorRecordListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - public Builder addTowerFloorRecordList(emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord value) { - if (towerFloorRecordListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTowerFloorRecordListIsMutable(); - towerFloorRecordList_.add(value); - onChanged(); - } else { - towerFloorRecordListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - public Builder addTowerFloorRecordList( - int index, emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord value) { - if (towerFloorRecordListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTowerFloorRecordListIsMutable(); - towerFloorRecordList_.add(index, value); - onChanged(); - } else { - towerFloorRecordListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - public Builder addTowerFloorRecordList( - emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord.Builder builderForValue) { - if (towerFloorRecordListBuilder_ == null) { - ensureTowerFloorRecordListIsMutable(); - towerFloorRecordList_.add(builderForValue.build()); - onChanged(); - } else { - towerFloorRecordListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - public Builder addTowerFloorRecordList( - int index, emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord.Builder builderForValue) { - if (towerFloorRecordListBuilder_ == null) { - ensureTowerFloorRecordListIsMutable(); - towerFloorRecordList_.add(index, builderForValue.build()); - onChanged(); - } else { - towerFloorRecordListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - public Builder addAllTowerFloorRecordList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord> values) { - if (towerFloorRecordListBuilder_ == null) { - ensureTowerFloorRecordListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, towerFloorRecordList_); - onChanged(); - } else { - towerFloorRecordListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - public Builder clearTowerFloorRecordList() { - if (towerFloorRecordListBuilder_ == null) { - towerFloorRecordList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - towerFloorRecordListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - public Builder removeTowerFloorRecordList(int index) { - if (towerFloorRecordListBuilder_ == null) { - ensureTowerFloorRecordListIsMutable(); - towerFloorRecordList_.remove(index); - onChanged(); - } else { - towerFloorRecordListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - public emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord.Builder getTowerFloorRecordListBuilder( - int index) { - return getTowerFloorRecordListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - public emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecordOrBuilder getTowerFloorRecordListOrBuilder( - int index) { - if (towerFloorRecordListBuilder_ == null) { - return towerFloorRecordList_.get(index); } else { - return towerFloorRecordListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecordOrBuilder> - getTowerFloorRecordListOrBuilderList() { - if (towerFloorRecordListBuilder_ != null) { - return towerFloorRecordListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(towerFloorRecordList_); - } - } - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - public emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord.Builder addTowerFloorRecordListBuilder() { - return getTowerFloorRecordListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord.getDefaultInstance()); - } - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - public emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord.Builder addTowerFloorRecordListBuilder( - int index) { - return getTowerFloorRecordListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord.getDefaultInstance()); - } - /** - * <code>repeated .TowerFloorRecord towerFloorRecordList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord.Builder> - getTowerFloorRecordListBuilderList() { - return getTowerFloorRecordListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord, emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord.Builder, emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecordOrBuilder> - getTowerFloorRecordListFieldBuilder() { - if (towerFloorRecordListBuilder_ == null) { - towerFloorRecordListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord, emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord.Builder, emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecordOrBuilder>( - towerFloorRecordList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - towerFloorRecordList_ = null; - } - return towerFloorRecordListBuilder_; - } - - private int dailyFloorId_ ; - /** - * <code>uint32 dailyFloorId = 3;</code> - * @return The dailyFloorId. - */ - @java.lang.Override - public int getDailyFloorId() { - return dailyFloorId_; - } - /** - * <code>uint32 dailyFloorId = 3;</code> - * @param value The dailyFloorId to set. - * @return This builder for chaining. - */ - public Builder setDailyFloorId(int value) { - - dailyFloorId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 dailyFloorId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearDailyFloorId() { - - dailyFloorId_ = 0; - onChanged(); - return this; - } - - private int dailyLevelIndex_ ; - /** - * <code>uint32 dailyLevelIndex = 4;</code> - * @return The dailyLevelIndex. - */ - @java.lang.Override - public int getDailyLevelIndex() { - return dailyLevelIndex_; - } - /** - * <code>uint32 dailyLevelIndex = 4;</code> - * @param value The dailyLevelIndex to set. - * @return This builder for chaining. - */ - public Builder setDailyLevelIndex(int value) { - - dailyLevelIndex_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 dailyLevelIndex = 4;</code> - * @return This builder for chaining. - */ - public Builder clearDailyLevelIndex() { - - dailyLevelIndex_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord curLevelRecord_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord, emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord.Builder, emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecordOrBuilder> curLevelRecordBuilder_; - /** - * <code>.TowerCurLevelRecord curLevelRecord = 5;</code> - * @return Whether the curLevelRecord field is set. - */ - public boolean hasCurLevelRecord() { - return curLevelRecordBuilder_ != null || curLevelRecord_ != null; - } - /** - * <code>.TowerCurLevelRecord curLevelRecord = 5;</code> - * @return The curLevelRecord. - */ - public emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord getCurLevelRecord() { - if (curLevelRecordBuilder_ == null) { - return curLevelRecord_ == null ? emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord.getDefaultInstance() : curLevelRecord_; - } else { - return curLevelRecordBuilder_.getMessage(); - } - } - /** - * <code>.TowerCurLevelRecord curLevelRecord = 5;</code> - */ - public Builder setCurLevelRecord(emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord value) { - if (curLevelRecordBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - curLevelRecord_ = value; - onChanged(); - } else { - curLevelRecordBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.TowerCurLevelRecord curLevelRecord = 5;</code> - */ - public Builder setCurLevelRecord( - emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord.Builder builderForValue) { - if (curLevelRecordBuilder_ == null) { - curLevelRecord_ = builderForValue.build(); - onChanged(); - } else { - curLevelRecordBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.TowerCurLevelRecord curLevelRecord = 5;</code> - */ - public Builder mergeCurLevelRecord(emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord value) { - if (curLevelRecordBuilder_ == null) { - if (curLevelRecord_ != null) { - curLevelRecord_ = - emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord.newBuilder(curLevelRecord_).mergeFrom(value).buildPartial(); - } else { - curLevelRecord_ = value; - } - onChanged(); - } else { - curLevelRecordBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.TowerCurLevelRecord curLevelRecord = 5;</code> - */ - public Builder clearCurLevelRecord() { - if (curLevelRecordBuilder_ == null) { - curLevelRecord_ = null; - onChanged(); - } else { - curLevelRecord_ = null; - curLevelRecordBuilder_ = null; - } - - return this; - } - /** - * <code>.TowerCurLevelRecord curLevelRecord = 5;</code> - */ - public emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord.Builder getCurLevelRecordBuilder() { - - onChanged(); - return getCurLevelRecordFieldBuilder().getBuilder(); - } - /** - * <code>.TowerCurLevelRecord curLevelRecord = 5;</code> - */ - public emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecordOrBuilder getCurLevelRecordOrBuilder() { - if (curLevelRecordBuilder_ != null) { - return curLevelRecordBuilder_.getMessageOrBuilder(); - } else { - return curLevelRecord_ == null ? - emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord.getDefaultInstance() : curLevelRecord_; - } - } - /** - * <code>.TowerCurLevelRecord curLevelRecord = 5;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord, emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord.Builder, emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecordOrBuilder> - getCurLevelRecordFieldBuilder() { - if (curLevelRecordBuilder_ == null) { - curLevelRecordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord, emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord.Builder, emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecordOrBuilder>( - getCurLevelRecord(), - getParentForChildren(), - isClean()); - curLevelRecord_ = null; - } - return curLevelRecordBuilder_; - } - - private int nextScheduleChangeTime_ ; - /** - * <code>uint32 nextScheduleChangeTime = 6;</code> - * @return The nextScheduleChangeTime. - */ - @java.lang.Override - public int getNextScheduleChangeTime() { - return nextScheduleChangeTime_; - } - /** - * <code>uint32 nextScheduleChangeTime = 6;</code> - * @param value The nextScheduleChangeTime to set. - * @return This builder for chaining. - */ - public Builder setNextScheduleChangeTime(int value) { - - nextScheduleChangeTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 nextScheduleChangeTime = 6;</code> - * @return This builder for chaining. - */ - public Builder clearNextScheduleChangeTime() { - - nextScheduleChangeTime_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> floorOpenTimeMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetFloorOpenTimeMap() { - if (floorOpenTimeMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FloorOpenTimeMapDefaultEntryHolder.defaultEntry); - } - return floorOpenTimeMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetMutableFloorOpenTimeMap() { - onChanged();; - if (floorOpenTimeMap_ == null) { - floorOpenTimeMap_ = com.google.protobuf.MapField.newMapField( - FloorOpenTimeMapDefaultEntryHolder.defaultEntry); - } - if (!floorOpenTimeMap_.isMutable()) { - floorOpenTimeMap_ = floorOpenTimeMap_.copy(); - } - return floorOpenTimeMap_; - } - - public int getFloorOpenTimeMapCount() { - return internalGetFloorOpenTimeMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> floorOpenTimeMap = 7;</code> - */ - - @java.lang.Override - public boolean containsFloorOpenTimeMap( - int key) { - - return internalGetFloorOpenTimeMap().getMap().containsKey(key); - } - /** - * Use {@link #getFloorOpenTimeMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getFloorOpenTimeMap() { - return getFloorOpenTimeMapMap(); - } - /** - * <code>map<uint32, uint32> floorOpenTimeMap = 7;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getFloorOpenTimeMapMap() { - return internalGetFloorOpenTimeMap().getMap(); - } - /** - * <code>map<uint32, uint32> floorOpenTimeMap = 7;</code> - */ - @java.lang.Override - - public int getFloorOpenTimeMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetFloorOpenTimeMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> floorOpenTimeMap = 7;</code> - */ - @java.lang.Override - - public int getFloorOpenTimeMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetFloorOpenTimeMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearFloorOpenTimeMap() { - internalGetMutableFloorOpenTimeMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, uint32> floorOpenTimeMap = 7;</code> - */ - - public Builder removeFloorOpenTimeMap( - int key) { - - internalGetMutableFloorOpenTimeMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> - getMutableFloorOpenTimeMap() { - return internalGetMutableFloorOpenTimeMap().getMutableMap(); - } - /** - * <code>map<uint32, uint32> floorOpenTimeMap = 7;</code> - */ - public Builder putFloorOpenTimeMap( - int key, - int value) { - - - internalGetMutableFloorOpenTimeMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, uint32> floorOpenTimeMap = 7;</code> - */ - - public Builder putAllFloorOpenTimeMap( - java.util.Map<java.lang.Integer, java.lang.Integer> values) { - internalGetMutableFloorOpenTimeMap().getMutableMap() - .putAll(values); - return this; - } - - private boolean isFirstInteract_ ; - /** - * <code>bool isFirstInteract = 8;</code> - * @return The isFirstInteract. - */ - @java.lang.Override - public boolean getIsFirstInteract() { - return isFirstInteract_; - } - /** - * <code>bool isFirstInteract = 8;</code> - * @param value The isFirstInteract to set. - * @return This builder for chaining. - */ - public Builder setIsFirstInteract(boolean value) { - - isFirstInteract_ = value; - onChanged(); - return this; - } - /** - * <code>bool isFirstInteract = 8;</code> - * @return This builder for chaining. - */ - public Builder clearIsFirstInteract() { - - isFirstInteract_ = false; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief monthlyBrief_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief, emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.Builder, emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBriefOrBuilder> monthlyBriefBuilder_; - /** - * <code>.TowerMonthlyBrief monthlyBrief = 9;</code> - * @return Whether the monthlyBrief field is set. - */ - public boolean hasMonthlyBrief() { - return monthlyBriefBuilder_ != null || monthlyBrief_ != null; - } - /** - * <code>.TowerMonthlyBrief monthlyBrief = 9;</code> - * @return The monthlyBrief. - */ - public emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief getMonthlyBrief() { - if (monthlyBriefBuilder_ == null) { - return monthlyBrief_ == null ? emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.getDefaultInstance() : monthlyBrief_; - } else { - return monthlyBriefBuilder_.getMessage(); - } - } - /** - * <code>.TowerMonthlyBrief monthlyBrief = 9;</code> - */ - public Builder setMonthlyBrief(emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief value) { - if (monthlyBriefBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - monthlyBrief_ = value; - onChanged(); - } else { - monthlyBriefBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.TowerMonthlyBrief monthlyBrief = 9;</code> - */ - public Builder setMonthlyBrief( - emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.Builder builderForValue) { - if (monthlyBriefBuilder_ == null) { - monthlyBrief_ = builderForValue.build(); - onChanged(); - } else { - monthlyBriefBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.TowerMonthlyBrief monthlyBrief = 9;</code> - */ - public Builder mergeMonthlyBrief(emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief value) { - if (monthlyBriefBuilder_ == null) { - if (monthlyBrief_ != null) { - monthlyBrief_ = - emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.newBuilder(monthlyBrief_).mergeFrom(value).buildPartial(); - } else { - monthlyBrief_ = value; - } - onChanged(); - } else { - monthlyBriefBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.TowerMonthlyBrief monthlyBrief = 9;</code> - */ - public Builder clearMonthlyBrief() { - if (monthlyBriefBuilder_ == null) { - monthlyBrief_ = null; - onChanged(); - } else { - monthlyBrief_ = null; - monthlyBriefBuilder_ = null; - } - - return this; - } - /** - * <code>.TowerMonthlyBrief monthlyBrief = 9;</code> - */ - public emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.Builder getMonthlyBriefBuilder() { - - onChanged(); - return getMonthlyBriefFieldBuilder().getBuilder(); - } - /** - * <code>.TowerMonthlyBrief monthlyBrief = 9;</code> - */ - public emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBriefOrBuilder getMonthlyBriefOrBuilder() { - if (monthlyBriefBuilder_ != null) { - return monthlyBriefBuilder_.getMessageOrBuilder(); - } else { - return monthlyBrief_ == null ? - emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.getDefaultInstance() : monthlyBrief_; - } - } - /** - * <code>.TowerMonthlyBrief monthlyBrief = 9;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief, emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.Builder, emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBriefOrBuilder> - getMonthlyBriefFieldBuilder() { - if (monthlyBriefBuilder_ == null) { - monthlyBriefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief, emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.Builder, emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBriefOrBuilder>( - getMonthlyBrief(), - getParentForChildren(), - isClean()); - monthlyBrief_ = null; - } - return monthlyBriefBuilder_; - } - - private int skipToFloorIndex_ ; - /** - * <code>uint32 skipToFloorIndex = 10;</code> - * @return The skipToFloorIndex. - */ - @java.lang.Override - public int getSkipToFloorIndex() { - return skipToFloorIndex_; - } - /** - * <code>uint32 skipToFloorIndex = 10;</code> - * @param value The skipToFloorIndex to set. - * @return This builder for chaining. - */ - public Builder setSkipToFloorIndex(int value) { - - skipToFloorIndex_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 skipToFloorIndex = 10;</code> - * @return This builder for chaining. - */ - public Builder clearSkipToFloorIndex() { - - skipToFloorIndex_ = 0; - onChanged(); - return this; - } - - private int commemorativeRewardId_ ; - /** - * <code>uint32 commemorativeRewardId = 11;</code> - * @return The commemorativeRewardId. - */ - @java.lang.Override - public int getCommemorativeRewardId() { - return commemorativeRewardId_; - } - /** - * <code>uint32 commemorativeRewardId = 11;</code> - * @param value The commemorativeRewardId to set. - * @return This builder for chaining. - */ - public Builder setCommemorativeRewardId(int value) { - - commemorativeRewardId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 commemorativeRewardId = 11;</code> - * @return This builder for chaining. - */ - public Builder clearCommemorativeRewardId() { - - commemorativeRewardId_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> skipFloorGrantedRewardItemMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetSkipFloorGrantedRewardItemMap() { - if (skipFloorGrantedRewardItemMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SkipFloorGrantedRewardItemMapDefaultEntryHolder.defaultEntry); - } - return skipFloorGrantedRewardItemMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetMutableSkipFloorGrantedRewardItemMap() { - onChanged();; - if (skipFloorGrantedRewardItemMap_ == null) { - skipFloorGrantedRewardItemMap_ = com.google.protobuf.MapField.newMapField( - SkipFloorGrantedRewardItemMapDefaultEntryHolder.defaultEntry); - } - if (!skipFloorGrantedRewardItemMap_.isMutable()) { - skipFloorGrantedRewardItemMap_ = skipFloorGrantedRewardItemMap_.copy(); - } - return skipFloorGrantedRewardItemMap_; - } - - public int getSkipFloorGrantedRewardItemMapCount() { - return internalGetSkipFloorGrantedRewardItemMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> skipFloorGrantedRewardItemMap = 12;</code> - */ - - @java.lang.Override - public boolean containsSkipFloorGrantedRewardItemMap( - int key) { - - return internalGetSkipFloorGrantedRewardItemMap().getMap().containsKey(key); - } - /** - * Use {@link #getSkipFloorGrantedRewardItemMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkipFloorGrantedRewardItemMap() { - return getSkipFloorGrantedRewardItemMapMap(); - } - /** - * <code>map<uint32, uint32> skipFloorGrantedRewardItemMap = 12;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getSkipFloorGrantedRewardItemMapMap() { - return internalGetSkipFloorGrantedRewardItemMap().getMap(); - } - /** - * <code>map<uint32, uint32> skipFloorGrantedRewardItemMap = 12;</code> - */ - @java.lang.Override - - public int getSkipFloorGrantedRewardItemMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkipFloorGrantedRewardItemMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> skipFloorGrantedRewardItemMap = 12;</code> - */ - @java.lang.Override - - public int getSkipFloorGrantedRewardItemMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetSkipFloorGrantedRewardItemMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearSkipFloorGrantedRewardItemMap() { - internalGetMutableSkipFloorGrantedRewardItemMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, uint32> skipFloorGrantedRewardItemMap = 12;</code> - */ - - public Builder removeSkipFloorGrantedRewardItemMap( - int key) { - - internalGetMutableSkipFloorGrantedRewardItemMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> - getMutableSkipFloorGrantedRewardItemMap() { - return internalGetMutableSkipFloorGrantedRewardItemMap().getMutableMap(); - } - /** - * <code>map<uint32, uint32> skipFloorGrantedRewardItemMap = 12;</code> - */ - public Builder putSkipFloorGrantedRewardItemMap( - int key, - int value) { - - - internalGetMutableSkipFloorGrantedRewardItemMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, uint32> skipFloorGrantedRewardItemMap = 12;</code> - */ - - public Builder putAllSkipFloorGrantedRewardItemMap( - java.util.Map<java.lang.Integer, java.lang.Integer> values) { - internalGetMutableSkipFloorGrantedRewardItemMap().getMutableMap() - .putAll(values); - return this; - } - - private int validTowerRecordNum_ ; - /** - * <code>uint32 validTowerRecordNum = 13;</code> - * @return The validTowerRecordNum. - */ - @java.lang.Override - public int getValidTowerRecordNum() { - return validTowerRecordNum_; - } - /** - * <code>uint32 validTowerRecordNum = 13;</code> - * @param value The validTowerRecordNum to set. - * @return This builder for chaining. - */ - public Builder setValidTowerRecordNum(int value) { - - validTowerRecordNum_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 validTowerRecordNum = 13;</code> - * @return This builder for chaining. - */ - public Builder clearValidTowerRecordNum() { - - validTowerRecordNum_ = 0; - onChanged(); - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 14;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 14;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 14;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private boolean isFinishedEntranceFloor_ ; - /** - * <code>bool isFinishedEntranceFloor = 15;</code> - * @return The isFinishedEntranceFloor. - */ - @java.lang.Override - public boolean getIsFinishedEntranceFloor() { - return isFinishedEntranceFloor_; - } - /** - * <code>bool isFinishedEntranceFloor = 15;</code> - * @param value The isFinishedEntranceFloor to set. - * @return This builder for chaining. - */ - public Builder setIsFinishedEntranceFloor(boolean value) { - - isFinishedEntranceFloor_ = value; - onChanged(); - return this; - } - /** - * <code>bool isFinishedEntranceFloor = 15;</code> - * @return This builder for chaining. - */ - public Builder clearIsFinishedEntranceFloor() { - - isFinishedEntranceFloor_ = false; - onChanged(); - return this; - } - - private int scheduleStartTime_ ; - /** - * <code>uint32 scheduleStartTime = 16;</code> - * @return The scheduleStartTime. - */ - @java.lang.Override - public int getScheduleStartTime() { - return scheduleStartTime_; - } - /** - * <code>uint32 scheduleStartTime = 16;</code> - * @param value The scheduleStartTime to set. - * @return This builder for chaining. - */ - public Builder setScheduleStartTime(int value) { - - scheduleStartTime_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 scheduleStartTime = 16;</code> - * @return This builder for chaining. - */ - public Builder clearScheduleStartTime() { - - scheduleStartTime_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief lastScheduleMonthlyBrief_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief, emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.Builder, emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBriefOrBuilder> lastScheduleMonthlyBriefBuilder_; - /** - * <code>.TowerMonthlyBrief lastScheduleMonthlyBrief = 17;</code> - * @return Whether the lastScheduleMonthlyBrief field is set. - */ - public boolean hasLastScheduleMonthlyBrief() { - return lastScheduleMonthlyBriefBuilder_ != null || lastScheduleMonthlyBrief_ != null; - } - /** - * <code>.TowerMonthlyBrief lastScheduleMonthlyBrief = 17;</code> - * @return The lastScheduleMonthlyBrief. - */ - public emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief getLastScheduleMonthlyBrief() { - if (lastScheduleMonthlyBriefBuilder_ == null) { - return lastScheduleMonthlyBrief_ == null ? emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.getDefaultInstance() : lastScheduleMonthlyBrief_; - } else { - return lastScheduleMonthlyBriefBuilder_.getMessage(); - } - } - /** - * <code>.TowerMonthlyBrief lastScheduleMonthlyBrief = 17;</code> - */ - public Builder setLastScheduleMonthlyBrief(emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief value) { - if (lastScheduleMonthlyBriefBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - lastScheduleMonthlyBrief_ = value; - onChanged(); - } else { - lastScheduleMonthlyBriefBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.TowerMonthlyBrief lastScheduleMonthlyBrief = 17;</code> - */ - public Builder setLastScheduleMonthlyBrief( - emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.Builder builderForValue) { - if (lastScheduleMonthlyBriefBuilder_ == null) { - lastScheduleMonthlyBrief_ = builderForValue.build(); - onChanged(); - } else { - lastScheduleMonthlyBriefBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.TowerMonthlyBrief lastScheduleMonthlyBrief = 17;</code> - */ - public Builder mergeLastScheduleMonthlyBrief(emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief value) { - if (lastScheduleMonthlyBriefBuilder_ == null) { - if (lastScheduleMonthlyBrief_ != null) { - lastScheduleMonthlyBrief_ = - emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.newBuilder(lastScheduleMonthlyBrief_).mergeFrom(value).buildPartial(); - } else { - lastScheduleMonthlyBrief_ = value; - } - onChanged(); - } else { - lastScheduleMonthlyBriefBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.TowerMonthlyBrief lastScheduleMonthlyBrief = 17;</code> - */ - public Builder clearLastScheduleMonthlyBrief() { - if (lastScheduleMonthlyBriefBuilder_ == null) { - lastScheduleMonthlyBrief_ = null; - onChanged(); - } else { - lastScheduleMonthlyBrief_ = null; - lastScheduleMonthlyBriefBuilder_ = null; - } - - return this; - } - /** - * <code>.TowerMonthlyBrief lastScheduleMonthlyBrief = 17;</code> - */ - public emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.Builder getLastScheduleMonthlyBriefBuilder() { - - onChanged(); - return getLastScheduleMonthlyBriefFieldBuilder().getBuilder(); - } - /** - * <code>.TowerMonthlyBrief lastScheduleMonthlyBrief = 17;</code> - */ - public emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBriefOrBuilder getLastScheduleMonthlyBriefOrBuilder() { - if (lastScheduleMonthlyBriefBuilder_ != null) { - return lastScheduleMonthlyBriefBuilder_.getMessageOrBuilder(); - } else { - return lastScheduleMonthlyBrief_ == null ? - emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.getDefaultInstance() : lastScheduleMonthlyBrief_; - } - } - /** - * <code>.TowerMonthlyBrief lastScheduleMonthlyBrief = 17;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief, emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.Builder, emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBriefOrBuilder> - getLastScheduleMonthlyBriefFieldBuilder() { - if (lastScheduleMonthlyBriefBuilder_ == null) { - lastScheduleMonthlyBriefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief, emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.Builder, emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBriefOrBuilder>( - getLastScheduleMonthlyBrief(), - getParentForChildren(), - isClean()); - lastScheduleMonthlyBrief_ = null; - } - return lastScheduleMonthlyBriefBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TowerAllDataRsp) - } - - // @@protoc_insertion_point(class_scope:TowerAllDataRsp) - private static final emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp(); - } - - public static emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<TowerAllDataRsp> - PARSER = new com.google.protobuf.AbstractParser<TowerAllDataRsp>() { - @java.lang.Override - public TowerAllDataRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TowerAllDataRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<TowerAllDataRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<TowerAllDataRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TowerAllDataRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TowerAllDataRsp_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TowerAllDataRsp_FloorOpenTimeMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TowerAllDataRsp_FloorOpenTimeMapEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TowerAllDataRsp_SkipFloorGrantedRewardItemMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TowerAllDataRsp_SkipFloorGrantedRewardItemMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025TowerAllDataRsp.proto\032\031TowerCurLevelRe" + - "cord.proto\032\026TowerFloorRecord.proto\032\027Towe" + - "rMonthlyBrief.proto\"\221\006\n\017TowerAllDataRsp\022" + - "\027\n\017towerScheduleId\030\001 \001(\r\022/\n\024towerFloorRe" + - "cordList\030\002 \003(\0132\021.TowerFloorRecord\022\024\n\014dai" + - "lyFloorId\030\003 \001(\r\022\027\n\017dailyLevelIndex\030\004 \001(\r" + - "\022,\n\016curLevelRecord\030\005 \001(\0132\024.TowerCurLevel" + - "Record\022\036\n\026nextScheduleChangeTime\030\006 \001(\r\022@" + - "\n\020floorOpenTimeMap\030\007 \003(\0132&.TowerAllDataR" + - "sp.FloorOpenTimeMapEntry\022\027\n\017isFirstInter" + - "act\030\010 \001(\010\022(\n\014monthlyBrief\030\t \001(\0132\022.TowerM" + - "onthlyBrief\022\030\n\020skipToFloorIndex\030\n \001(\r\022\035\n" + - "\025commemorativeRewardId\030\013 \001(\r\022Z\n\035skipFloo" + - "rGrantedRewardItemMap\030\014 \003(\01323.TowerAllDa" + - "taRsp.SkipFloorGrantedRewardItemMapEntry" + - "\022\033\n\023validTowerRecordNum\030\r \001(\r\022\017\n\007retcode" + - "\030\016 \001(\005\022\037\n\027isFinishedEntranceFloor\030\017 \001(\010\022" + - "\031\n\021scheduleStartTime\030\020 \001(\r\0224\n\030lastSchedu" + - "leMonthlyBrief\030\021 \001(\0132\022.TowerMonthlyBrief" + - "\0327\n\025FloorOpenTimeMapEntry\022\013\n\003key\030\001 \001(\r\022\r" + - "\n\005value\030\002 \001(\r:\0028\001\032D\n\"SkipFloorGrantedRew" + - "ardItemMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 " + - "\001(\r:\0028\001B\033\n\031emu.grasscutter.net.protob\006pr" + - "oto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.getDescriptor(), - emu.grasscutter.net.proto.TowerFloorRecordOuterClass.getDescriptor(), - emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.getDescriptor(), - }); - internal_static_TowerAllDataRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TowerAllDataRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TowerAllDataRsp_descriptor, - new java.lang.String[] { "TowerScheduleId", "TowerFloorRecordList", "DailyFloorId", "DailyLevelIndex", "CurLevelRecord", "NextScheduleChangeTime", "FloorOpenTimeMap", "IsFirstInteract", "MonthlyBrief", "SkipToFloorIndex", "CommemorativeRewardId", "SkipFloorGrantedRewardItemMap", "ValidTowerRecordNum", "Retcode", "IsFinishedEntranceFloor", "ScheduleStartTime", "LastScheduleMonthlyBrief", }); - internal_static_TowerAllDataRsp_FloorOpenTimeMapEntry_descriptor = - internal_static_TowerAllDataRsp_descriptor.getNestedTypes().get(0); - internal_static_TowerAllDataRsp_FloorOpenTimeMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TowerAllDataRsp_FloorOpenTimeMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_TowerAllDataRsp_SkipFloorGrantedRewardItemMapEntry_descriptor = - internal_static_TowerAllDataRsp_descriptor.getNestedTypes().get(1); - internal_static_TowerAllDataRsp_SkipFloorGrantedRewardItemMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TowerAllDataRsp_SkipFloorGrantedRewardItemMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.getDescriptor(); - emu.grasscutter.net.proto.TowerFloorRecordOuterClass.getDescriptor(); - emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/TowerCurLevelRecordOuterClass.java b/src/main/java/emu/grasscutter/net/proto/TowerCurLevelRecordOuterClass.java deleted file mode 100644 index 971546492..000000000 --- a/src/main/java/emu/grasscutter/net/proto/TowerCurLevelRecordOuterClass.java +++ /dev/null @@ -1,1251 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TowerCurLevelRecord.proto - -package emu.grasscutter.net.proto; - -public final class TowerCurLevelRecordOuterClass { - private TowerCurLevelRecordOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TowerCurLevelRecordOrBuilder extends - // @@protoc_insertion_point(interface_extends:TowerCurLevelRecord) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 curFloorId = 1;</code> - * @return The curFloorId. - */ - int getCurFloorId(); - - /** - * <code>uint32 curLevelIndex = 2;</code> - * @return The curLevelIndex. - */ - int getCurLevelIndex(); - - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - java.util.List<emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam> - getTowerTeamListList(); - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam getTowerTeamList(int index); - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - int getTowerTeamListCount(); - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeamOrBuilder> - getTowerTeamListOrBuilderList(); - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeamOrBuilder getTowerTeamListOrBuilder( - int index); - - /** - * <code>repeated uint32 buffIdList = 4;</code> - * @return A list containing the buffIdList. - */ - java.util.List<java.lang.Integer> getBuffIdListList(); - /** - * <code>repeated uint32 buffIdList = 4;</code> - * @return The count of buffIdList. - */ - int getBuffIdListCount(); - /** - * <code>repeated uint32 buffIdList = 4;</code> - * @param index The index of the element to return. - * @return The buffIdList at the given index. - */ - int getBuffIdList(int index); - - /** - * <code>bool isEmpty = 5;</code> - * @return The isEmpty. - */ - boolean getIsEmpty(); - } - /** - * Protobuf type {@code TowerCurLevelRecord} - */ - public static final class TowerCurLevelRecord extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TowerCurLevelRecord) - TowerCurLevelRecordOrBuilder { - private static final long serialVersionUID = 0L; - // Use TowerCurLevelRecord.newBuilder() to construct. - private TowerCurLevelRecord(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private TowerCurLevelRecord() { - towerTeamList_ = java.util.Collections.emptyList(); - buffIdList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TowerCurLevelRecord(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TowerCurLevelRecord( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - curFloorId_ = input.readUInt32(); - break; - } - case 16: { - - curLevelIndex_ = input.readUInt32(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - towerTeamList_ = new java.util.ArrayList<emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam>(); - mutable_bitField0_ |= 0x00000001; - } - towerTeamList_.add( - input.readMessage(emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.parser(), extensionRegistry)); - break; - } - case 32: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - buffIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - buffIdList_.addInt(input.readUInt32()); - break; - } - case 34: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - buffIdList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - buffIdList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 40: { - - isEmpty_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - towerTeamList_ = java.util.Collections.unmodifiableList(towerTeamList_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - buffIdList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.internal_static_TowerCurLevelRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.internal_static_TowerCurLevelRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord.class, emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord.Builder.class); - } - - public static final int CURFLOORID_FIELD_NUMBER = 1; - private int curFloorId_; - /** - * <code>uint32 curFloorId = 1;</code> - * @return The curFloorId. - */ - @java.lang.Override - public int getCurFloorId() { - return curFloorId_; - } - - public static final int CURLEVELINDEX_FIELD_NUMBER = 2; - private int curLevelIndex_; - /** - * <code>uint32 curLevelIndex = 2;</code> - * @return The curLevelIndex. - */ - @java.lang.Override - public int getCurLevelIndex() { - return curLevelIndex_; - } - - public static final int TOWERTEAMLIST_FIELD_NUMBER = 3; - private java.util.List<emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam> towerTeamList_; - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam> getTowerTeamListList() { - return towerTeamList_; - } - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeamOrBuilder> - getTowerTeamListOrBuilderList() { - return towerTeamList_; - } - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - @java.lang.Override - public int getTowerTeamListCount() { - return towerTeamList_.size(); - } - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam getTowerTeamList(int index) { - return towerTeamList_.get(index); - } - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeamOrBuilder getTowerTeamListOrBuilder( - int index) { - return towerTeamList_.get(index); - } - - public static final int BUFFIDLIST_FIELD_NUMBER = 4; - private com.google.protobuf.Internal.IntList buffIdList_; - /** - * <code>repeated uint32 buffIdList = 4;</code> - * @return A list containing the buffIdList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getBuffIdListList() { - return buffIdList_; - } - /** - * <code>repeated uint32 buffIdList = 4;</code> - * @return The count of buffIdList. - */ - public int getBuffIdListCount() { - return buffIdList_.size(); - } - /** - * <code>repeated uint32 buffIdList = 4;</code> - * @param index The index of the element to return. - * @return The buffIdList at the given index. - */ - public int getBuffIdList(int index) { - return buffIdList_.getInt(index); - } - private int buffIdListMemoizedSerializedSize = -1; - - public static final int ISEMPTY_FIELD_NUMBER = 5; - private boolean isEmpty_; - /** - * <code>bool isEmpty = 5;</code> - * @return The isEmpty. - */ - @java.lang.Override - public boolean getIsEmpty() { - return isEmpty_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (curFloorId_ != 0) { - output.writeUInt32(1, curFloorId_); - } - if (curLevelIndex_ != 0) { - output.writeUInt32(2, curLevelIndex_); - } - for (int i = 0; i < towerTeamList_.size(); i++) { - output.writeMessage(3, towerTeamList_.get(i)); - } - if (getBuffIdListList().size() > 0) { - output.writeUInt32NoTag(34); - output.writeUInt32NoTag(buffIdListMemoizedSerializedSize); - } - for (int i = 0; i < buffIdList_.size(); i++) { - output.writeUInt32NoTag(buffIdList_.getInt(i)); - } - if (isEmpty_ != false) { - output.writeBool(5, isEmpty_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (curFloorId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, curFloorId_); - } - if (curLevelIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, curLevelIndex_); - } - for (int i = 0; i < towerTeamList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, towerTeamList_.get(i)); - } - { - int dataSize = 0; - for (int i = 0; i < buffIdList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(buffIdList_.getInt(i)); - } - size += dataSize; - if (!getBuffIdListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - buffIdListMemoizedSerializedSize = dataSize; - } - if (isEmpty_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, isEmpty_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord other = (emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord) obj; - - if (getCurFloorId() - != other.getCurFloorId()) return false; - if (getCurLevelIndex() - != other.getCurLevelIndex()) return false; - if (!getTowerTeamListList() - .equals(other.getTowerTeamListList())) return false; - if (!getBuffIdListList() - .equals(other.getBuffIdListList())) return false; - if (getIsEmpty() - != other.getIsEmpty()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CURFLOORID_FIELD_NUMBER; - hash = (53 * hash) + getCurFloorId(); - hash = (37 * hash) + CURLEVELINDEX_FIELD_NUMBER; - hash = (53 * hash) + getCurLevelIndex(); - if (getTowerTeamListCount() > 0) { - hash = (37 * hash) + TOWERTEAMLIST_FIELD_NUMBER; - hash = (53 * hash) + getTowerTeamListList().hashCode(); - } - if (getBuffIdListCount() > 0) { - hash = (37 * hash) + BUFFIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getBuffIdListList().hashCode(); - } - hash = (37 * hash) + ISEMPTY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsEmpty()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TowerCurLevelRecord} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:TowerCurLevelRecord) - emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.internal_static_TowerCurLevelRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.internal_static_TowerCurLevelRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord.class, emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTowerTeamListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - curFloorId_ = 0; - - curLevelIndex_ = 0; - - if (towerTeamListBuilder_ == null) { - towerTeamList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - towerTeamListBuilder_.clear(); - } - buffIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - isEmpty_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.internal_static_TowerCurLevelRecord_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord getDefaultInstanceForType() { - return emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord build() { - emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord buildPartial() { - emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord result = new emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord(this); - int from_bitField0_ = bitField0_; - result.curFloorId_ = curFloorId_; - result.curLevelIndex_ = curLevelIndex_; - if (towerTeamListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - towerTeamList_ = java.util.Collections.unmodifiableList(towerTeamList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.towerTeamList_ = towerTeamList_; - } else { - result.towerTeamList_ = towerTeamListBuilder_.build(); - } - if (((bitField0_ & 0x00000002) != 0)) { - buffIdList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.buffIdList_ = buffIdList_; - result.isEmpty_ = isEmpty_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord) { - return mergeFrom((emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord other) { - if (other == emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord.getDefaultInstance()) return this; - if (other.getCurFloorId() != 0) { - setCurFloorId(other.getCurFloorId()); - } - if (other.getCurLevelIndex() != 0) { - setCurLevelIndex(other.getCurLevelIndex()); - } - if (towerTeamListBuilder_ == null) { - if (!other.towerTeamList_.isEmpty()) { - if (towerTeamList_.isEmpty()) { - towerTeamList_ = other.towerTeamList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTowerTeamListIsMutable(); - towerTeamList_.addAll(other.towerTeamList_); - } - onChanged(); - } - } else { - if (!other.towerTeamList_.isEmpty()) { - if (towerTeamListBuilder_.isEmpty()) { - towerTeamListBuilder_.dispose(); - towerTeamListBuilder_ = null; - towerTeamList_ = other.towerTeamList_; - bitField0_ = (bitField0_ & ~0x00000001); - towerTeamListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTowerTeamListFieldBuilder() : null; - } else { - towerTeamListBuilder_.addAllMessages(other.towerTeamList_); - } - } - } - if (!other.buffIdList_.isEmpty()) { - if (buffIdList_.isEmpty()) { - buffIdList_ = other.buffIdList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureBuffIdListIsMutable(); - buffIdList_.addAll(other.buffIdList_); - } - onChanged(); - } - if (other.getIsEmpty() != false) { - setIsEmpty(other.getIsEmpty()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int curFloorId_ ; - /** - * <code>uint32 curFloorId = 1;</code> - * @return The curFloorId. - */ - @java.lang.Override - public int getCurFloorId() { - return curFloorId_; - } - /** - * <code>uint32 curFloorId = 1;</code> - * @param value The curFloorId to set. - * @return This builder for chaining. - */ - public Builder setCurFloorId(int value) { - - curFloorId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 curFloorId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearCurFloorId() { - - curFloorId_ = 0; - onChanged(); - return this; - } - - private int curLevelIndex_ ; - /** - * <code>uint32 curLevelIndex = 2;</code> - * @return The curLevelIndex. - */ - @java.lang.Override - public int getCurLevelIndex() { - return curLevelIndex_; - } - /** - * <code>uint32 curLevelIndex = 2;</code> - * @param value The curLevelIndex to set. - * @return This builder for chaining. - */ - public Builder setCurLevelIndex(int value) { - - curLevelIndex_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 curLevelIndex = 2;</code> - * @return This builder for chaining. - */ - public Builder clearCurLevelIndex() { - - curLevelIndex_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam> towerTeamList_ = - java.util.Collections.emptyList(); - private void ensureTowerTeamListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - towerTeamList_ = new java.util.ArrayList<emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam>(towerTeamList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam, emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.Builder, emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeamOrBuilder> towerTeamListBuilder_; - - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - public java.util.List<emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam> getTowerTeamListList() { - if (towerTeamListBuilder_ == null) { - return java.util.Collections.unmodifiableList(towerTeamList_); - } else { - return towerTeamListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - public int getTowerTeamListCount() { - if (towerTeamListBuilder_ == null) { - return towerTeamList_.size(); - } else { - return towerTeamListBuilder_.getCount(); - } - } - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - public emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam getTowerTeamList(int index) { - if (towerTeamListBuilder_ == null) { - return towerTeamList_.get(index); - } else { - return towerTeamListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - public Builder setTowerTeamList( - int index, emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam value) { - if (towerTeamListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTowerTeamListIsMutable(); - towerTeamList_.set(index, value); - onChanged(); - } else { - towerTeamListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - public Builder setTowerTeamList( - int index, emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.Builder builderForValue) { - if (towerTeamListBuilder_ == null) { - ensureTowerTeamListIsMutable(); - towerTeamList_.set(index, builderForValue.build()); - onChanged(); - } else { - towerTeamListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - public Builder addTowerTeamList(emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam value) { - if (towerTeamListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTowerTeamListIsMutable(); - towerTeamList_.add(value); - onChanged(); - } else { - towerTeamListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - public Builder addTowerTeamList( - int index, emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam value) { - if (towerTeamListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTowerTeamListIsMutable(); - towerTeamList_.add(index, value); - onChanged(); - } else { - towerTeamListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - public Builder addTowerTeamList( - emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.Builder builderForValue) { - if (towerTeamListBuilder_ == null) { - ensureTowerTeamListIsMutable(); - towerTeamList_.add(builderForValue.build()); - onChanged(); - } else { - towerTeamListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - public Builder addTowerTeamList( - int index, emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.Builder builderForValue) { - if (towerTeamListBuilder_ == null) { - ensureTowerTeamListIsMutable(); - towerTeamList_.add(index, builderForValue.build()); - onChanged(); - } else { - towerTeamListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - public Builder addAllTowerTeamList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam> values) { - if (towerTeamListBuilder_ == null) { - ensureTowerTeamListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, towerTeamList_); - onChanged(); - } else { - towerTeamListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - public Builder clearTowerTeamList() { - if (towerTeamListBuilder_ == null) { - towerTeamList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - towerTeamListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - public Builder removeTowerTeamList(int index) { - if (towerTeamListBuilder_ == null) { - ensureTowerTeamListIsMutable(); - towerTeamList_.remove(index); - onChanged(); - } else { - towerTeamListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - public emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.Builder getTowerTeamListBuilder( - int index) { - return getTowerTeamListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - public emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeamOrBuilder getTowerTeamListOrBuilder( - int index) { - if (towerTeamListBuilder_ == null) { - return towerTeamList_.get(index); } else { - return towerTeamListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeamOrBuilder> - getTowerTeamListOrBuilderList() { - if (towerTeamListBuilder_ != null) { - return towerTeamListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(towerTeamList_); - } - } - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - public emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.Builder addTowerTeamListBuilder() { - return getTowerTeamListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.getDefaultInstance()); - } - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - public emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.Builder addTowerTeamListBuilder( - int index) { - return getTowerTeamListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.getDefaultInstance()); - } - /** - * <code>repeated .TowerTeam towerTeamList = 3;</code> - */ - public java.util.List<emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.Builder> - getTowerTeamListBuilderList() { - return getTowerTeamListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam, emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.Builder, emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeamOrBuilder> - getTowerTeamListFieldBuilder() { - if (towerTeamListBuilder_ == null) { - towerTeamListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam, emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.Builder, emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeamOrBuilder>( - towerTeamList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - towerTeamList_ = null; - } - return towerTeamListBuilder_; - } - - private com.google.protobuf.Internal.IntList buffIdList_ = emptyIntList(); - private void ensureBuffIdListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - buffIdList_ = mutableCopy(buffIdList_); - bitField0_ |= 0x00000002; - } - } - /** - * <code>repeated uint32 buffIdList = 4;</code> - * @return A list containing the buffIdList. - */ - public java.util.List<java.lang.Integer> - getBuffIdListList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(buffIdList_) : buffIdList_; - } - /** - * <code>repeated uint32 buffIdList = 4;</code> - * @return The count of buffIdList. - */ - public int getBuffIdListCount() { - return buffIdList_.size(); - } - /** - * <code>repeated uint32 buffIdList = 4;</code> - * @param index The index of the element to return. - * @return The buffIdList at the given index. - */ - public int getBuffIdList(int index) { - return buffIdList_.getInt(index); - } - /** - * <code>repeated uint32 buffIdList = 4;</code> - * @param index The index to set the value at. - * @param value The buffIdList to set. - * @return This builder for chaining. - */ - public Builder setBuffIdList( - int index, int value) { - ensureBuffIdListIsMutable(); - buffIdList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 buffIdList = 4;</code> - * @param value The buffIdList to add. - * @return This builder for chaining. - */ - public Builder addBuffIdList(int value) { - ensureBuffIdListIsMutable(); - buffIdList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 buffIdList = 4;</code> - * @param values The buffIdList to add. - * @return This builder for chaining. - */ - public Builder addAllBuffIdList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureBuffIdListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, buffIdList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 buffIdList = 4;</code> - * @return This builder for chaining. - */ - public Builder clearBuffIdList() { - buffIdList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - private boolean isEmpty_ ; - /** - * <code>bool isEmpty = 5;</code> - * @return The isEmpty. - */ - @java.lang.Override - public boolean getIsEmpty() { - return isEmpty_; - } - /** - * <code>bool isEmpty = 5;</code> - * @param value The isEmpty to set. - * @return This builder for chaining. - */ - public Builder setIsEmpty(boolean value) { - - isEmpty_ = value; - onChanged(); - return this; - } - /** - * <code>bool isEmpty = 5;</code> - * @return This builder for chaining. - */ - public Builder clearIsEmpty() { - - isEmpty_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TowerCurLevelRecord) - } - - // @@protoc_insertion_point(class_scope:TowerCurLevelRecord) - private static final emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord(); - } - - public static emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<TowerCurLevelRecord> - PARSER = new com.google.protobuf.AbstractParser<TowerCurLevelRecord>() { - @java.lang.Override - public TowerCurLevelRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TowerCurLevelRecord(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<TowerCurLevelRecord> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<TowerCurLevelRecord> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TowerCurLevelRecord_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TowerCurLevelRecord_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031TowerCurLevelRecord.proto\032\017TowerTeam.p" + - "roto\"\210\001\n\023TowerCurLevelRecord\022\022\n\ncurFloor" + - "Id\030\001 \001(\r\022\025\n\rcurLevelIndex\030\002 \001(\r\022!\n\rtower" + - "TeamList\030\003 \003(\0132\n.TowerTeam\022\022\n\nbuffIdList" + - "\030\004 \003(\r\022\017\n\007isEmpty\030\005 \001(\010B\033\n\031emu.grasscutt" + - "er.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.TowerTeamOuterClass.getDescriptor(), - }); - internal_static_TowerCurLevelRecord_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TowerCurLevelRecord_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TowerCurLevelRecord_descriptor, - new java.lang.String[] { "CurFloorId", "CurLevelIndex", "TowerTeamList", "BuffIdList", "IsEmpty", }); - emu.grasscutter.net.proto.TowerTeamOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/TowerFloorRecordOuterClass.java b/src/main/java/emu/grasscutter/net/proto/TowerFloorRecordOuterClass.java deleted file mode 100644 index 76f888c77..000000000 --- a/src/main/java/emu/grasscutter/net/proto/TowerFloorRecordOuterClass.java +++ /dev/null @@ -1,1317 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TowerFloorRecord.proto - -package emu.grasscutter.net.proto; - -public final class TowerFloorRecordOuterClass { - private TowerFloorRecordOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TowerFloorRecordOrBuilder extends - // @@protoc_insertion_point(interface_extends:TowerFloorRecord) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 floorId = 1;</code> - * @return The floorId. - */ - int getFloorId(); - - /** - * <code>map<uint32, uint32> passedLevelMap = 2;</code> - */ - int getPassedLevelMapCount(); - /** - * <code>map<uint32, uint32> passedLevelMap = 2;</code> - */ - boolean containsPassedLevelMap( - int key); - /** - * Use {@link #getPassedLevelMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Integer> - getPassedLevelMap(); - /** - * <code>map<uint32, uint32> passedLevelMap = 2;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Integer> - getPassedLevelMapMap(); - /** - * <code>map<uint32, uint32> passedLevelMap = 2;</code> - */ - - int getPassedLevelMapOrDefault( - int key, - int defaultValue); - /** - * <code>map<uint32, uint32> passedLevelMap = 2;</code> - */ - - int getPassedLevelMapOrThrow( - int key); - - /** - * <code>uint32 floorStarRewardProgress = 3;</code> - * @return The floorStarRewardProgress. - */ - int getFloorStarRewardProgress(); - - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - java.util.List<emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord> - getPassedLevelRecordListList(); - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord getPassedLevelRecordList(int index); - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - int getPassedLevelRecordListCount(); - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecordOrBuilder> - getPassedLevelRecordListOrBuilderList(); - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecordOrBuilder getPassedLevelRecordListOrBuilder( - int index); - } - /** - * Protobuf type {@code TowerFloorRecord} - */ - public static final class TowerFloorRecord extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TowerFloorRecord) - TowerFloorRecordOrBuilder { - private static final long serialVersionUID = 0L; - // Use TowerFloorRecord.newBuilder() to construct. - private TowerFloorRecord(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private TowerFloorRecord() { - passedLevelRecordList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TowerFloorRecord(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TowerFloorRecord( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - floorId_ = input.readUInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - passedLevelMap_ = com.google.protobuf.MapField.newMapField( - PassedLevelMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - passedLevelMap__ = input.readMessage( - PassedLevelMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - passedLevelMap_.getMutableMap().put( - passedLevelMap__.getKey(), passedLevelMap__.getValue()); - break; - } - case 24: { - - floorStarRewardProgress_ = input.readUInt32(); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - passedLevelRecordList_ = new java.util.ArrayList<emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord>(); - mutable_bitField0_ |= 0x00000002; - } - passedLevelRecordList_.add( - input.readMessage(emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - passedLevelRecordList_ = java.util.Collections.unmodifiableList(passedLevelRecordList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TowerFloorRecordOuterClass.internal_static_TowerFloorRecord_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetPassedLevelMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TowerFloorRecordOuterClass.internal_static_TowerFloorRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord.class, emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord.Builder.class); - } - - public static final int FLOORID_FIELD_NUMBER = 1; - private int floorId_; - /** - * <code>uint32 floorId = 1;</code> - * @return The floorId. - */ - @java.lang.Override - public int getFloorId() { - return floorId_; - } - - public static final int PASSEDLEVELMAP_FIELD_NUMBER = 2; - private static final class PassedLevelMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Integer>newDefaultInstance( - emu.grasscutter.net.proto.TowerFloorRecordOuterClass.internal_static_TowerFloorRecord_PassedLevelMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> passedLevelMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetPassedLevelMap() { - if (passedLevelMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PassedLevelMapDefaultEntryHolder.defaultEntry); - } - return passedLevelMap_; - } - - public int getPassedLevelMapCount() { - return internalGetPassedLevelMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> passedLevelMap = 2;</code> - */ - - @java.lang.Override - public boolean containsPassedLevelMap( - int key) { - - return internalGetPassedLevelMap().getMap().containsKey(key); - } - /** - * Use {@link #getPassedLevelMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getPassedLevelMap() { - return getPassedLevelMapMap(); - } - /** - * <code>map<uint32, uint32> passedLevelMap = 2;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getPassedLevelMapMap() { - return internalGetPassedLevelMap().getMap(); - } - /** - * <code>map<uint32, uint32> passedLevelMap = 2;</code> - */ - @java.lang.Override - - public int getPassedLevelMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetPassedLevelMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> passedLevelMap = 2;</code> - */ - @java.lang.Override - - public int getPassedLevelMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetPassedLevelMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int FLOORSTARREWARDPROGRESS_FIELD_NUMBER = 3; - private int floorStarRewardProgress_; - /** - * <code>uint32 floorStarRewardProgress = 3;</code> - * @return The floorStarRewardProgress. - */ - @java.lang.Override - public int getFloorStarRewardProgress() { - return floorStarRewardProgress_; - } - - public static final int PASSEDLEVELRECORDLIST_FIELD_NUMBER = 4; - private java.util.List<emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord> passedLevelRecordList_; - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord> getPassedLevelRecordListList() { - return passedLevelRecordList_; - } - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecordOrBuilder> - getPassedLevelRecordListOrBuilderList() { - return passedLevelRecordList_; - } - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - @java.lang.Override - public int getPassedLevelRecordListCount() { - return passedLevelRecordList_.size(); - } - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord getPassedLevelRecordList(int index) { - return passedLevelRecordList_.get(index); - } - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecordOrBuilder getPassedLevelRecordListOrBuilder( - int index) { - return passedLevelRecordList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (floorId_ != 0) { - output.writeUInt32(1, floorId_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetPassedLevelMap(), - PassedLevelMapDefaultEntryHolder.defaultEntry, - 2); - if (floorStarRewardProgress_ != 0) { - output.writeUInt32(3, floorStarRewardProgress_); - } - for (int i = 0; i < passedLevelRecordList_.size(); i++) { - output.writeMessage(4, passedLevelRecordList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (floorId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, floorId_); - } - for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry - : internalGetPassedLevelMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - passedLevelMap__ = PassedLevelMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, passedLevelMap__); - } - if (floorStarRewardProgress_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, floorStarRewardProgress_); - } - for (int i = 0; i < passedLevelRecordList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, passedLevelRecordList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord other = (emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord) obj; - - if (getFloorId() - != other.getFloorId()) return false; - if (!internalGetPassedLevelMap().equals( - other.internalGetPassedLevelMap())) return false; - if (getFloorStarRewardProgress() - != other.getFloorStarRewardProgress()) return false; - if (!getPassedLevelRecordListList() - .equals(other.getPassedLevelRecordListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FLOORID_FIELD_NUMBER; - hash = (53 * hash) + getFloorId(); - if (!internalGetPassedLevelMap().getMap().isEmpty()) { - hash = (37 * hash) + PASSEDLEVELMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetPassedLevelMap().hashCode(); - } - hash = (37 * hash) + FLOORSTARREWARDPROGRESS_FIELD_NUMBER; - hash = (53 * hash) + getFloorStarRewardProgress(); - if (getPassedLevelRecordListCount() > 0) { - hash = (37 * hash) + PASSEDLEVELRECORDLIST_FIELD_NUMBER; - hash = (53 * hash) + getPassedLevelRecordListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TowerFloorRecord} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:TowerFloorRecord) - emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TowerFloorRecordOuterClass.internal_static_TowerFloorRecord_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetPassedLevelMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutablePassedLevelMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TowerFloorRecordOuterClass.internal_static_TowerFloorRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord.class, emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPassedLevelRecordListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - floorId_ = 0; - - internalGetMutablePassedLevelMap().clear(); - floorStarRewardProgress_ = 0; - - if (passedLevelRecordListBuilder_ == null) { - passedLevelRecordList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - passedLevelRecordListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.TowerFloorRecordOuterClass.internal_static_TowerFloorRecord_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord getDefaultInstanceForType() { - return emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord build() { - emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord buildPartial() { - emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord result = new emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord(this); - int from_bitField0_ = bitField0_; - result.floorId_ = floorId_; - result.passedLevelMap_ = internalGetPassedLevelMap(); - result.passedLevelMap_.makeImmutable(); - result.floorStarRewardProgress_ = floorStarRewardProgress_; - if (passedLevelRecordListBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - passedLevelRecordList_ = java.util.Collections.unmodifiableList(passedLevelRecordList_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.passedLevelRecordList_ = passedLevelRecordList_; - } else { - result.passedLevelRecordList_ = passedLevelRecordListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord) { - return mergeFrom((emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord other) { - if (other == emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord.getDefaultInstance()) return this; - if (other.getFloorId() != 0) { - setFloorId(other.getFloorId()); - } - internalGetMutablePassedLevelMap().mergeFrom( - other.internalGetPassedLevelMap()); - if (other.getFloorStarRewardProgress() != 0) { - setFloorStarRewardProgress(other.getFloorStarRewardProgress()); - } - if (passedLevelRecordListBuilder_ == null) { - if (!other.passedLevelRecordList_.isEmpty()) { - if (passedLevelRecordList_.isEmpty()) { - passedLevelRecordList_ = other.passedLevelRecordList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensurePassedLevelRecordListIsMutable(); - passedLevelRecordList_.addAll(other.passedLevelRecordList_); - } - onChanged(); - } - } else { - if (!other.passedLevelRecordList_.isEmpty()) { - if (passedLevelRecordListBuilder_.isEmpty()) { - passedLevelRecordListBuilder_.dispose(); - passedLevelRecordListBuilder_ = null; - passedLevelRecordList_ = other.passedLevelRecordList_; - bitField0_ = (bitField0_ & ~0x00000002); - passedLevelRecordListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPassedLevelRecordListFieldBuilder() : null; - } else { - passedLevelRecordListBuilder_.addAllMessages(other.passedLevelRecordList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int floorId_ ; - /** - * <code>uint32 floorId = 1;</code> - * @return The floorId. - */ - @java.lang.Override - public int getFloorId() { - return floorId_; - } - /** - * <code>uint32 floorId = 1;</code> - * @param value The floorId to set. - * @return This builder for chaining. - */ - public Builder setFloorId(int value) { - - floorId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 floorId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearFloorId() { - - floorId_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> passedLevelMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetPassedLevelMap() { - if (passedLevelMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PassedLevelMapDefaultEntryHolder.defaultEntry); - } - return passedLevelMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetMutablePassedLevelMap() { - onChanged();; - if (passedLevelMap_ == null) { - passedLevelMap_ = com.google.protobuf.MapField.newMapField( - PassedLevelMapDefaultEntryHolder.defaultEntry); - } - if (!passedLevelMap_.isMutable()) { - passedLevelMap_ = passedLevelMap_.copy(); - } - return passedLevelMap_; - } - - public int getPassedLevelMapCount() { - return internalGetPassedLevelMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> passedLevelMap = 2;</code> - */ - - @java.lang.Override - public boolean containsPassedLevelMap( - int key) { - - return internalGetPassedLevelMap().getMap().containsKey(key); - } - /** - * Use {@link #getPassedLevelMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getPassedLevelMap() { - return getPassedLevelMapMap(); - } - /** - * <code>map<uint32, uint32> passedLevelMap = 2;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getPassedLevelMapMap() { - return internalGetPassedLevelMap().getMap(); - } - /** - * <code>map<uint32, uint32> passedLevelMap = 2;</code> - */ - @java.lang.Override - - public int getPassedLevelMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetPassedLevelMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> passedLevelMap = 2;</code> - */ - @java.lang.Override - - public int getPassedLevelMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetPassedLevelMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearPassedLevelMap() { - internalGetMutablePassedLevelMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, uint32> passedLevelMap = 2;</code> - */ - - public Builder removePassedLevelMap( - int key) { - - internalGetMutablePassedLevelMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> - getMutablePassedLevelMap() { - return internalGetMutablePassedLevelMap().getMutableMap(); - } - /** - * <code>map<uint32, uint32> passedLevelMap = 2;</code> - */ - public Builder putPassedLevelMap( - int key, - int value) { - - - internalGetMutablePassedLevelMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, uint32> passedLevelMap = 2;</code> - */ - - public Builder putAllPassedLevelMap( - java.util.Map<java.lang.Integer, java.lang.Integer> values) { - internalGetMutablePassedLevelMap().getMutableMap() - .putAll(values); - return this; - } - - private int floorStarRewardProgress_ ; - /** - * <code>uint32 floorStarRewardProgress = 3;</code> - * @return The floorStarRewardProgress. - */ - @java.lang.Override - public int getFloorStarRewardProgress() { - return floorStarRewardProgress_; - } - /** - * <code>uint32 floorStarRewardProgress = 3;</code> - * @param value The floorStarRewardProgress to set. - * @return This builder for chaining. - */ - public Builder setFloorStarRewardProgress(int value) { - - floorStarRewardProgress_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 floorStarRewardProgress = 3;</code> - * @return This builder for chaining. - */ - public Builder clearFloorStarRewardProgress() { - - floorStarRewardProgress_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord> passedLevelRecordList_ = - java.util.Collections.emptyList(); - private void ensurePassedLevelRecordListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - passedLevelRecordList_ = new java.util.ArrayList<emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord>(passedLevelRecordList_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord, emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord.Builder, emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecordOrBuilder> passedLevelRecordListBuilder_; - - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - public java.util.List<emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord> getPassedLevelRecordListList() { - if (passedLevelRecordListBuilder_ == null) { - return java.util.Collections.unmodifiableList(passedLevelRecordList_); - } else { - return passedLevelRecordListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - public int getPassedLevelRecordListCount() { - if (passedLevelRecordListBuilder_ == null) { - return passedLevelRecordList_.size(); - } else { - return passedLevelRecordListBuilder_.getCount(); - } - } - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - public emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord getPassedLevelRecordList(int index) { - if (passedLevelRecordListBuilder_ == null) { - return passedLevelRecordList_.get(index); - } else { - return passedLevelRecordListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - public Builder setPassedLevelRecordList( - int index, emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord value) { - if (passedLevelRecordListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePassedLevelRecordListIsMutable(); - passedLevelRecordList_.set(index, value); - onChanged(); - } else { - passedLevelRecordListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - public Builder setPassedLevelRecordList( - int index, emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord.Builder builderForValue) { - if (passedLevelRecordListBuilder_ == null) { - ensurePassedLevelRecordListIsMutable(); - passedLevelRecordList_.set(index, builderForValue.build()); - onChanged(); - } else { - passedLevelRecordListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - public Builder addPassedLevelRecordList(emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord value) { - if (passedLevelRecordListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePassedLevelRecordListIsMutable(); - passedLevelRecordList_.add(value); - onChanged(); - } else { - passedLevelRecordListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - public Builder addPassedLevelRecordList( - int index, emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord value) { - if (passedLevelRecordListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePassedLevelRecordListIsMutable(); - passedLevelRecordList_.add(index, value); - onChanged(); - } else { - passedLevelRecordListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - public Builder addPassedLevelRecordList( - emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord.Builder builderForValue) { - if (passedLevelRecordListBuilder_ == null) { - ensurePassedLevelRecordListIsMutable(); - passedLevelRecordList_.add(builderForValue.build()); - onChanged(); - } else { - passedLevelRecordListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - public Builder addPassedLevelRecordList( - int index, emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord.Builder builderForValue) { - if (passedLevelRecordListBuilder_ == null) { - ensurePassedLevelRecordListIsMutable(); - passedLevelRecordList_.add(index, builderForValue.build()); - onChanged(); - } else { - passedLevelRecordListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - public Builder addAllPassedLevelRecordList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord> values) { - if (passedLevelRecordListBuilder_ == null) { - ensurePassedLevelRecordListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, passedLevelRecordList_); - onChanged(); - } else { - passedLevelRecordListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - public Builder clearPassedLevelRecordList() { - if (passedLevelRecordListBuilder_ == null) { - passedLevelRecordList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - passedLevelRecordListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - public Builder removePassedLevelRecordList(int index) { - if (passedLevelRecordListBuilder_ == null) { - ensurePassedLevelRecordListIsMutable(); - passedLevelRecordList_.remove(index); - onChanged(); - } else { - passedLevelRecordListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - public emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord.Builder getPassedLevelRecordListBuilder( - int index) { - return getPassedLevelRecordListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - public emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecordOrBuilder getPassedLevelRecordListOrBuilder( - int index) { - if (passedLevelRecordListBuilder_ == null) { - return passedLevelRecordList_.get(index); } else { - return passedLevelRecordListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecordOrBuilder> - getPassedLevelRecordListOrBuilderList() { - if (passedLevelRecordListBuilder_ != null) { - return passedLevelRecordListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(passedLevelRecordList_); - } - } - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - public emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord.Builder addPassedLevelRecordListBuilder() { - return getPassedLevelRecordListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord.getDefaultInstance()); - } - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - public emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord.Builder addPassedLevelRecordListBuilder( - int index) { - return getPassedLevelRecordListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord.getDefaultInstance()); - } - /** - * <code>repeated .TowerLevelRecord passedLevelRecordList = 4;</code> - */ - public java.util.List<emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord.Builder> - getPassedLevelRecordListBuilderList() { - return getPassedLevelRecordListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord, emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord.Builder, emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecordOrBuilder> - getPassedLevelRecordListFieldBuilder() { - if (passedLevelRecordListBuilder_ == null) { - passedLevelRecordListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord, emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord.Builder, emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecordOrBuilder>( - passedLevelRecordList_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - passedLevelRecordList_ = null; - } - return passedLevelRecordListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TowerFloorRecord) - } - - // @@protoc_insertion_point(class_scope:TowerFloorRecord) - private static final emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord(); - } - - public static emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<TowerFloorRecord> - PARSER = new com.google.protobuf.AbstractParser<TowerFloorRecord>() { - @java.lang.Override - public TowerFloorRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TowerFloorRecord(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<TowerFloorRecord> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<TowerFloorRecord> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TowerFloorRecord_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TowerFloorRecord_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TowerFloorRecord_PassedLevelMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TowerFloorRecord_PassedLevelMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026TowerFloorRecord.proto\032\026TowerLevelReco" + - "rd.proto\"\354\001\n\020TowerFloorRecord\022\017\n\007floorId" + - "\030\001 \001(\r\022=\n\016passedLevelMap\030\002 \003(\0132%.TowerFl" + - "oorRecord.PassedLevelMapEntry\022\037\n\027floorSt" + - "arRewardProgress\030\003 \001(\r\0220\n\025passedLevelRec" + - "ordList\030\004 \003(\0132\021.TowerLevelRecord\0325\n\023Pass" + - "edLevelMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 " + - "\001(\r:\0028\001B\033\n\031emu.grasscutter.net.protob\006pr" + - "oto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.TowerLevelRecordOuterClass.getDescriptor(), - }); - internal_static_TowerFloorRecord_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TowerFloorRecord_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TowerFloorRecord_descriptor, - new java.lang.String[] { "FloorId", "PassedLevelMap", "FloorStarRewardProgress", "PassedLevelRecordList", }); - internal_static_TowerFloorRecord_PassedLevelMapEntry_descriptor = - internal_static_TowerFloorRecord_descriptor.getNestedTypes().get(0); - internal_static_TowerFloorRecord_PassedLevelMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TowerFloorRecord_PassedLevelMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - emu.grasscutter.net.proto.TowerLevelRecordOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/TowerLevelRecordOuterClass.java b/src/main/java/emu/grasscutter/net/proto/TowerLevelRecordOuterClass.java deleted file mode 100644 index e1c885711..000000000 --- a/src/main/java/emu/grasscutter/net/proto/TowerLevelRecordOuterClass.java +++ /dev/null @@ -1,734 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TowerLevelRecord.proto - -package emu.grasscutter.net.proto; - -public final class TowerLevelRecordOuterClass { - private TowerLevelRecordOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TowerLevelRecordOrBuilder extends - // @@protoc_insertion_point(interface_extends:TowerLevelRecord) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 levelId = 1;</code> - * @return The levelId. - */ - int getLevelId(); - - /** - * <code>repeated uint32 satisfiedCondList = 2;</code> - * @return A list containing the satisfiedCondList. - */ - java.util.List<java.lang.Integer> getSatisfiedCondListList(); - /** - * <code>repeated uint32 satisfiedCondList = 2;</code> - * @return The count of satisfiedCondList. - */ - int getSatisfiedCondListCount(); - /** - * <code>repeated uint32 satisfiedCondList = 2;</code> - * @param index The index of the element to return. - * @return The satisfiedCondList at the given index. - */ - int getSatisfiedCondList(int index); - } - /** - * Protobuf type {@code TowerLevelRecord} - */ - public static final class TowerLevelRecord extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TowerLevelRecord) - TowerLevelRecordOrBuilder { - private static final long serialVersionUID = 0L; - // Use TowerLevelRecord.newBuilder() to construct. - private TowerLevelRecord(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private TowerLevelRecord() { - satisfiedCondList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TowerLevelRecord(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TowerLevelRecord( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - levelId_ = input.readUInt32(); - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - satisfiedCondList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - satisfiedCondList_.addInt(input.readUInt32()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - satisfiedCondList_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - satisfiedCondList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - satisfiedCondList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TowerLevelRecordOuterClass.internal_static_TowerLevelRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TowerLevelRecordOuterClass.internal_static_TowerLevelRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord.class, emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord.Builder.class); - } - - public static final int LEVELID_FIELD_NUMBER = 1; - private int levelId_; - /** - * <code>uint32 levelId = 1;</code> - * @return The levelId. - */ - @java.lang.Override - public int getLevelId() { - return levelId_; - } - - public static final int SATISFIEDCONDLIST_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.IntList satisfiedCondList_; - /** - * <code>repeated uint32 satisfiedCondList = 2;</code> - * @return A list containing the satisfiedCondList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getSatisfiedCondListList() { - return satisfiedCondList_; - } - /** - * <code>repeated uint32 satisfiedCondList = 2;</code> - * @return The count of satisfiedCondList. - */ - public int getSatisfiedCondListCount() { - return satisfiedCondList_.size(); - } - /** - * <code>repeated uint32 satisfiedCondList = 2;</code> - * @param index The index of the element to return. - * @return The satisfiedCondList at the given index. - */ - public int getSatisfiedCondList(int index) { - return satisfiedCondList_.getInt(index); - } - private int satisfiedCondListMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (levelId_ != 0) { - output.writeUInt32(1, levelId_); - } - if (getSatisfiedCondListList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(satisfiedCondListMemoizedSerializedSize); - } - for (int i = 0; i < satisfiedCondList_.size(); i++) { - output.writeUInt32NoTag(satisfiedCondList_.getInt(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (levelId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, levelId_); - } - { - int dataSize = 0; - for (int i = 0; i < satisfiedCondList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(satisfiedCondList_.getInt(i)); - } - size += dataSize; - if (!getSatisfiedCondListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - satisfiedCondListMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord other = (emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord) obj; - - if (getLevelId() - != other.getLevelId()) return false; - if (!getSatisfiedCondListList() - .equals(other.getSatisfiedCondListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LEVELID_FIELD_NUMBER; - hash = (53 * hash) + getLevelId(); - if (getSatisfiedCondListCount() > 0) { - hash = (37 * hash) + SATISFIEDCONDLIST_FIELD_NUMBER; - hash = (53 * hash) + getSatisfiedCondListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TowerLevelRecord} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:TowerLevelRecord) - emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TowerLevelRecordOuterClass.internal_static_TowerLevelRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TowerLevelRecordOuterClass.internal_static_TowerLevelRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord.class, emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - levelId_ = 0; - - satisfiedCondList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.TowerLevelRecordOuterClass.internal_static_TowerLevelRecord_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord getDefaultInstanceForType() { - return emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord build() { - emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord buildPartial() { - emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord result = new emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord(this); - int from_bitField0_ = bitField0_; - result.levelId_ = levelId_; - if (((bitField0_ & 0x00000001) != 0)) { - satisfiedCondList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.satisfiedCondList_ = satisfiedCondList_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord) { - return mergeFrom((emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord other) { - if (other == emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord.getDefaultInstance()) return this; - if (other.getLevelId() != 0) { - setLevelId(other.getLevelId()); - } - if (!other.satisfiedCondList_.isEmpty()) { - if (satisfiedCondList_.isEmpty()) { - satisfiedCondList_ = other.satisfiedCondList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSatisfiedCondListIsMutable(); - satisfiedCondList_.addAll(other.satisfiedCondList_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int levelId_ ; - /** - * <code>uint32 levelId = 1;</code> - * @return The levelId. - */ - @java.lang.Override - public int getLevelId() { - return levelId_; - } - /** - * <code>uint32 levelId = 1;</code> - * @param value The levelId to set. - * @return This builder for chaining. - */ - public Builder setLevelId(int value) { - - levelId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 levelId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearLevelId() { - - levelId_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList satisfiedCondList_ = emptyIntList(); - private void ensureSatisfiedCondListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - satisfiedCondList_ = mutableCopy(satisfiedCondList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 satisfiedCondList = 2;</code> - * @return A list containing the satisfiedCondList. - */ - public java.util.List<java.lang.Integer> - getSatisfiedCondListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(satisfiedCondList_) : satisfiedCondList_; - } - /** - * <code>repeated uint32 satisfiedCondList = 2;</code> - * @return The count of satisfiedCondList. - */ - public int getSatisfiedCondListCount() { - return satisfiedCondList_.size(); - } - /** - * <code>repeated uint32 satisfiedCondList = 2;</code> - * @param index The index of the element to return. - * @return The satisfiedCondList at the given index. - */ - public int getSatisfiedCondList(int index) { - return satisfiedCondList_.getInt(index); - } - /** - * <code>repeated uint32 satisfiedCondList = 2;</code> - * @param index The index to set the value at. - * @param value The satisfiedCondList to set. - * @return This builder for chaining. - */ - public Builder setSatisfiedCondList( - int index, int value) { - ensureSatisfiedCondListIsMutable(); - satisfiedCondList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 satisfiedCondList = 2;</code> - * @param value The satisfiedCondList to add. - * @return This builder for chaining. - */ - public Builder addSatisfiedCondList(int value) { - ensureSatisfiedCondListIsMutable(); - satisfiedCondList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 satisfiedCondList = 2;</code> - * @param values The satisfiedCondList to add. - * @return This builder for chaining. - */ - public Builder addAllSatisfiedCondList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureSatisfiedCondListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, satisfiedCondList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 satisfiedCondList = 2;</code> - * @return This builder for chaining. - */ - public Builder clearSatisfiedCondList() { - satisfiedCondList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TowerLevelRecord) - } - - // @@protoc_insertion_point(class_scope:TowerLevelRecord) - private static final emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord(); - } - - public static emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<TowerLevelRecord> - PARSER = new com.google.protobuf.AbstractParser<TowerLevelRecord>() { - @java.lang.Override - public TowerLevelRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TowerLevelRecord(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<TowerLevelRecord> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<TowerLevelRecord> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TowerLevelRecord_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TowerLevelRecord_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026TowerLevelRecord.proto\">\n\020TowerLevelRe" + - "cord\022\017\n\007levelId\030\001 \001(\r\022\031\n\021satisfiedCondLi" + - "st\030\002 \003(\rB\033\n\031emu.grasscutter.net.protob\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_TowerLevelRecord_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TowerLevelRecord_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TowerLevelRecord_descriptor, - new java.lang.String[] { "LevelId", "SatisfiedCondList", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/TowerMonthlyBriefOuterClass.java b/src/main/java/emu/grasscutter/net/proto/TowerMonthlyBriefOuterClass.java deleted file mode 100644 index 2afd981f3..000000000 --- a/src/main/java/emu/grasscutter/net/proto/TowerMonthlyBriefOuterClass.java +++ /dev/null @@ -1,748 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TowerMonthlyBrief.proto - -package emu.grasscutter.net.proto; - -public final class TowerMonthlyBriefOuterClass { - private TowerMonthlyBriefOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TowerMonthlyBriefOrBuilder extends - // @@protoc_insertion_point(interface_extends:TowerMonthlyBrief) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 towerScheduleId = 1;</code> - * @return The towerScheduleId. - */ - int getTowerScheduleId(); - - /** - * <code>uint32 bestFloorIndex = 2;</code> - * @return The bestFloorIndex. - */ - int getBestFloorIndex(); - - /** - * <code>uint32 bestLevelIndex = 3;</code> - * @return The bestLevelIndex. - */ - int getBestLevelIndex(); - - /** - * <code>uint32 totalStarCount = 4;</code> - * @return The totalStarCount. - */ - int getTotalStarCount(); - } - /** - * Protobuf type {@code TowerMonthlyBrief} - */ - public static final class TowerMonthlyBrief extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TowerMonthlyBrief) - TowerMonthlyBriefOrBuilder { - private static final long serialVersionUID = 0L; - // Use TowerMonthlyBrief.newBuilder() to construct. - private TowerMonthlyBrief(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private TowerMonthlyBrief() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TowerMonthlyBrief(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TowerMonthlyBrief( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - towerScheduleId_ = input.readUInt32(); - break; - } - case 16: { - - bestFloorIndex_ = input.readUInt32(); - break; - } - case 24: { - - bestLevelIndex_ = input.readUInt32(); - break; - } - case 32: { - - totalStarCount_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.internal_static_TowerMonthlyBrief_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.internal_static_TowerMonthlyBrief_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.class, emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.Builder.class); - } - - public static final int TOWERSCHEDULEID_FIELD_NUMBER = 1; - private int towerScheduleId_; - /** - * <code>uint32 towerScheduleId = 1;</code> - * @return The towerScheduleId. - */ - @java.lang.Override - public int getTowerScheduleId() { - return towerScheduleId_; - } - - public static final int BESTFLOORINDEX_FIELD_NUMBER = 2; - private int bestFloorIndex_; - /** - * <code>uint32 bestFloorIndex = 2;</code> - * @return The bestFloorIndex. - */ - @java.lang.Override - public int getBestFloorIndex() { - return bestFloorIndex_; - } - - public static final int BESTLEVELINDEX_FIELD_NUMBER = 3; - private int bestLevelIndex_; - /** - * <code>uint32 bestLevelIndex = 3;</code> - * @return The bestLevelIndex. - */ - @java.lang.Override - public int getBestLevelIndex() { - return bestLevelIndex_; - } - - public static final int TOTALSTARCOUNT_FIELD_NUMBER = 4; - private int totalStarCount_; - /** - * <code>uint32 totalStarCount = 4;</code> - * @return The totalStarCount. - */ - @java.lang.Override - public int getTotalStarCount() { - return totalStarCount_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (towerScheduleId_ != 0) { - output.writeUInt32(1, towerScheduleId_); - } - if (bestFloorIndex_ != 0) { - output.writeUInt32(2, bestFloorIndex_); - } - if (bestLevelIndex_ != 0) { - output.writeUInt32(3, bestLevelIndex_); - } - if (totalStarCount_ != 0) { - output.writeUInt32(4, totalStarCount_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (towerScheduleId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, towerScheduleId_); - } - if (bestFloorIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, bestFloorIndex_); - } - if (bestLevelIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, bestLevelIndex_); - } - if (totalStarCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, totalStarCount_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief other = (emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief) obj; - - if (getTowerScheduleId() - != other.getTowerScheduleId()) return false; - if (getBestFloorIndex() - != other.getBestFloorIndex()) return false; - if (getBestLevelIndex() - != other.getBestLevelIndex()) return false; - if (getTotalStarCount() - != other.getTotalStarCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TOWERSCHEDULEID_FIELD_NUMBER; - hash = (53 * hash) + getTowerScheduleId(); - hash = (37 * hash) + BESTFLOORINDEX_FIELD_NUMBER; - hash = (53 * hash) + getBestFloorIndex(); - hash = (37 * hash) + BESTLEVELINDEX_FIELD_NUMBER; - hash = (53 * hash) + getBestLevelIndex(); - hash = (37 * hash) + TOTALSTARCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getTotalStarCount(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TowerMonthlyBrief} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:TowerMonthlyBrief) - emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBriefOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.internal_static_TowerMonthlyBrief_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.internal_static_TowerMonthlyBrief_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.class, emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - towerScheduleId_ = 0; - - bestFloorIndex_ = 0; - - bestLevelIndex_ = 0; - - totalStarCount_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.internal_static_TowerMonthlyBrief_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief getDefaultInstanceForType() { - return emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief build() { - emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief buildPartial() { - emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief result = new emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief(this); - result.towerScheduleId_ = towerScheduleId_; - result.bestFloorIndex_ = bestFloorIndex_; - result.bestLevelIndex_ = bestLevelIndex_; - result.totalStarCount_ = totalStarCount_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief) { - return mergeFrom((emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief other) { - if (other == emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.getDefaultInstance()) return this; - if (other.getTowerScheduleId() != 0) { - setTowerScheduleId(other.getTowerScheduleId()); - } - if (other.getBestFloorIndex() != 0) { - setBestFloorIndex(other.getBestFloorIndex()); - } - if (other.getBestLevelIndex() != 0) { - setBestLevelIndex(other.getBestLevelIndex()); - } - if (other.getTotalStarCount() != 0) { - setTotalStarCount(other.getTotalStarCount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int towerScheduleId_ ; - /** - * <code>uint32 towerScheduleId = 1;</code> - * @return The towerScheduleId. - */ - @java.lang.Override - public int getTowerScheduleId() { - return towerScheduleId_; - } - /** - * <code>uint32 towerScheduleId = 1;</code> - * @param value The towerScheduleId to set. - * @return This builder for chaining. - */ - public Builder setTowerScheduleId(int value) { - - towerScheduleId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 towerScheduleId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTowerScheduleId() { - - towerScheduleId_ = 0; - onChanged(); - return this; - } - - private int bestFloorIndex_ ; - /** - * <code>uint32 bestFloorIndex = 2;</code> - * @return The bestFloorIndex. - */ - @java.lang.Override - public int getBestFloorIndex() { - return bestFloorIndex_; - } - /** - * <code>uint32 bestFloorIndex = 2;</code> - * @param value The bestFloorIndex to set. - * @return This builder for chaining. - */ - public Builder setBestFloorIndex(int value) { - - bestFloorIndex_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 bestFloorIndex = 2;</code> - * @return This builder for chaining. - */ - public Builder clearBestFloorIndex() { - - bestFloorIndex_ = 0; - onChanged(); - return this; - } - - private int bestLevelIndex_ ; - /** - * <code>uint32 bestLevelIndex = 3;</code> - * @return The bestLevelIndex. - */ - @java.lang.Override - public int getBestLevelIndex() { - return bestLevelIndex_; - } - /** - * <code>uint32 bestLevelIndex = 3;</code> - * @param value The bestLevelIndex to set. - * @return This builder for chaining. - */ - public Builder setBestLevelIndex(int value) { - - bestLevelIndex_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 bestLevelIndex = 3;</code> - * @return This builder for chaining. - */ - public Builder clearBestLevelIndex() { - - bestLevelIndex_ = 0; - onChanged(); - return this; - } - - private int totalStarCount_ ; - /** - * <code>uint32 totalStarCount = 4;</code> - * @return The totalStarCount. - */ - @java.lang.Override - public int getTotalStarCount() { - return totalStarCount_; - } - /** - * <code>uint32 totalStarCount = 4;</code> - * @param value The totalStarCount to set. - * @return This builder for chaining. - */ - public Builder setTotalStarCount(int value) { - - totalStarCount_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 totalStarCount = 4;</code> - * @return This builder for chaining. - */ - public Builder clearTotalStarCount() { - - totalStarCount_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TowerMonthlyBrief) - } - - // @@protoc_insertion_point(class_scope:TowerMonthlyBrief) - private static final emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief(); - } - - public static emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<TowerMonthlyBrief> - PARSER = new com.google.protobuf.AbstractParser<TowerMonthlyBrief>() { - @java.lang.Override - public TowerMonthlyBrief parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TowerMonthlyBrief(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<TowerMonthlyBrief> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<TowerMonthlyBrief> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TowerMonthlyBrief_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TowerMonthlyBrief_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027TowerMonthlyBrief.proto\"t\n\021TowerMonthl" + - "yBrief\022\027\n\017towerScheduleId\030\001 \001(\r\022\026\n\016bestF" + - "loorIndex\030\002 \001(\r\022\026\n\016bestLevelIndex\030\003 \001(\r\022" + - "\026\n\016totalStarCount\030\004 \001(\rB\033\n\031emu.grasscutt" + - "er.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_TowerMonthlyBrief_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TowerMonthlyBrief_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TowerMonthlyBrief_descriptor, - new java.lang.String[] { "TowerScheduleId", "BestFloorIndex", "BestLevelIndex", "TotalStarCount", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/TowerTeamOuterClass.java b/src/main/java/emu/grasscutter/net/proto/TowerTeamOuterClass.java deleted file mode 100644 index bd6d4f900..000000000 --- a/src/main/java/emu/grasscutter/net/proto/TowerTeamOuterClass.java +++ /dev/null @@ -1,733 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TowerTeam.proto - -package emu.grasscutter.net.proto; - -public final class TowerTeamOuterClass { - private TowerTeamOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TowerTeamOrBuilder extends - // @@protoc_insertion_point(interface_extends:TowerTeam) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 towerTeamId = 1;</code> - * @return The towerTeamId. - */ - int getTowerTeamId(); - - /** - * <code>repeated uint64 avatarGuidList = 2;</code> - * @return A list containing the avatarGuidList. - */ - java.util.List<java.lang.Long> getAvatarGuidListList(); - /** - * <code>repeated uint64 avatarGuidList = 2;</code> - * @return The count of avatarGuidList. - */ - int getAvatarGuidListCount(); - /** - * <code>repeated uint64 avatarGuidList = 2;</code> - * @param index The index of the element to return. - * @return The avatarGuidList at the given index. - */ - long getAvatarGuidList(int index); - } - /** - * Protobuf type {@code TowerTeam} - */ - public static final class TowerTeam extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TowerTeam) - TowerTeamOrBuilder { - private static final long serialVersionUID = 0L; - // Use TowerTeam.newBuilder() to construct. - private TowerTeam(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private TowerTeam() { - avatarGuidList_ = emptyLongList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TowerTeam(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TowerTeam( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - towerTeamId_ = input.readUInt32(); - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - avatarGuidList_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - avatarGuidList_.addLong(input.readUInt64()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - avatarGuidList_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - avatarGuidList_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - avatarGuidList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TowerTeamOuterClass.internal_static_TowerTeam_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TowerTeamOuterClass.internal_static_TowerTeam_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.class, emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.Builder.class); - } - - public static final int TOWERTEAMID_FIELD_NUMBER = 1; - private int towerTeamId_; - /** - * <code>uint32 towerTeamId = 1;</code> - * @return The towerTeamId. - */ - @java.lang.Override - public int getTowerTeamId() { - return towerTeamId_; - } - - public static final int AVATARGUIDLIST_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.LongList avatarGuidList_; - /** - * <code>repeated uint64 avatarGuidList = 2;</code> - * @return A list containing the avatarGuidList. - */ - @java.lang.Override - public java.util.List<java.lang.Long> - getAvatarGuidListList() { - return avatarGuidList_; - } - /** - * <code>repeated uint64 avatarGuidList = 2;</code> - * @return The count of avatarGuidList. - */ - public int getAvatarGuidListCount() { - return avatarGuidList_.size(); - } - /** - * <code>repeated uint64 avatarGuidList = 2;</code> - * @param index The index of the element to return. - * @return The avatarGuidList at the given index. - */ - public long getAvatarGuidList(int index) { - return avatarGuidList_.getLong(index); - } - private int avatarGuidListMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (towerTeamId_ != 0) { - output.writeUInt32(1, towerTeamId_); - } - if (getAvatarGuidListList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(avatarGuidListMemoizedSerializedSize); - } - for (int i = 0; i < avatarGuidList_.size(); i++) { - output.writeUInt64NoTag(avatarGuidList_.getLong(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (towerTeamId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, towerTeamId_); - } - { - int dataSize = 0; - for (int i = 0; i < avatarGuidList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(avatarGuidList_.getLong(i)); - } - size += dataSize; - if (!getAvatarGuidListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - avatarGuidListMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam other = (emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam) obj; - - if (getTowerTeamId() - != other.getTowerTeamId()) return false; - if (!getAvatarGuidListList() - .equals(other.getAvatarGuidListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TOWERTEAMID_FIELD_NUMBER; - hash = (53 * hash) + getTowerTeamId(); - if (getAvatarGuidListCount() > 0) { - hash = (37 * hash) + AVATARGUIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getAvatarGuidListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TowerTeam} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:TowerTeam) - emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeamOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TowerTeamOuterClass.internal_static_TowerTeam_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TowerTeamOuterClass.internal_static_TowerTeam_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.class, emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - towerTeamId_ = 0; - - avatarGuidList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.TowerTeamOuterClass.internal_static_TowerTeam_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam getDefaultInstanceForType() { - return emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam build() { - emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam buildPartial() { - emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam result = new emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam(this); - int from_bitField0_ = bitField0_; - result.towerTeamId_ = towerTeamId_; - if (((bitField0_ & 0x00000001) != 0)) { - avatarGuidList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.avatarGuidList_ = avatarGuidList_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam) { - return mergeFrom((emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam other) { - if (other == emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.getDefaultInstance()) return this; - if (other.getTowerTeamId() != 0) { - setTowerTeamId(other.getTowerTeamId()); - } - if (!other.avatarGuidList_.isEmpty()) { - if (avatarGuidList_.isEmpty()) { - avatarGuidList_ = other.avatarGuidList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAvatarGuidListIsMutable(); - avatarGuidList_.addAll(other.avatarGuidList_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int towerTeamId_ ; - /** - * <code>uint32 towerTeamId = 1;</code> - * @return The towerTeamId. - */ - @java.lang.Override - public int getTowerTeamId() { - return towerTeamId_; - } - /** - * <code>uint32 towerTeamId = 1;</code> - * @param value The towerTeamId to set. - * @return This builder for chaining. - */ - public Builder setTowerTeamId(int value) { - - towerTeamId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 towerTeamId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTowerTeamId() { - - towerTeamId_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList avatarGuidList_ = emptyLongList(); - private void ensureAvatarGuidListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - avatarGuidList_ = mutableCopy(avatarGuidList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint64 avatarGuidList = 2;</code> - * @return A list containing the avatarGuidList. - */ - public java.util.List<java.lang.Long> - getAvatarGuidListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(avatarGuidList_) : avatarGuidList_; - } - /** - * <code>repeated uint64 avatarGuidList = 2;</code> - * @return The count of avatarGuidList. - */ - public int getAvatarGuidListCount() { - return avatarGuidList_.size(); - } - /** - * <code>repeated uint64 avatarGuidList = 2;</code> - * @param index The index of the element to return. - * @return The avatarGuidList at the given index. - */ - public long getAvatarGuidList(int index) { - return avatarGuidList_.getLong(index); - } - /** - * <code>repeated uint64 avatarGuidList = 2;</code> - * @param index The index to set the value at. - * @param value The avatarGuidList to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuidList( - int index, long value) { - ensureAvatarGuidListIsMutable(); - avatarGuidList_.setLong(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint64 avatarGuidList = 2;</code> - * @param value The avatarGuidList to add. - * @return This builder for chaining. - */ - public Builder addAvatarGuidList(long value) { - ensureAvatarGuidListIsMutable(); - avatarGuidList_.addLong(value); - onChanged(); - return this; - } - /** - * <code>repeated uint64 avatarGuidList = 2;</code> - * @param values The avatarGuidList to add. - * @return This builder for chaining. - */ - public Builder addAllAvatarGuidList( - java.lang.Iterable<? extends java.lang.Long> values) { - ensureAvatarGuidListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, avatarGuidList_); - onChanged(); - return this; - } - /** - * <code>repeated uint64 avatarGuidList = 2;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuidList() { - avatarGuidList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TowerTeam) - } - - // @@protoc_insertion_point(class_scope:TowerTeam) - private static final emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam(); - } - - public static emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<TowerTeam> - PARSER = new com.google.protobuf.AbstractParser<TowerTeam>() { - @java.lang.Override - public TowerTeam parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TowerTeam(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<TowerTeam> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<TowerTeam> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TowerTeam_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TowerTeam_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\017TowerTeam.proto\"8\n\tTowerTeam\022\023\n\013towerT" + - "eamId\030\001 \001(\r\022\026\n\016avatarGuidList\030\002 \003(\004B\033\n\031e" + - "mu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_TowerTeam_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TowerTeam_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TowerTeam_descriptor, - new java.lang.String[] { "TowerTeamId", "AvatarGuidList", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/TrackingIOInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/TrackingIOInfoOuterClass.java deleted file mode 100644 index 2d37ae7f0..000000000 --- a/src/main/java/emu/grasscutter/net/proto/TrackingIOInfoOuterClass.java +++ /dev/null @@ -1,1519 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TrackingIOInfo.proto - -package emu.grasscutter.net.proto; - -public final class TrackingIOInfoOuterClass { - private TrackingIOInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TrackingIOInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:TrackingIOInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>string appid = 1;</code> - * @return The appid. - */ - java.lang.String getAppid(); - /** - * <code>string appid = 1;</code> - * @return The bytes for appid. - */ - com.google.protobuf.ByteString - getAppidBytes(); - - /** - * <code>string deviceid = 2;</code> - * @return The deviceid. - */ - java.lang.String getDeviceid(); - /** - * <code>string deviceid = 2;</code> - * @return The bytes for deviceid. - */ - com.google.protobuf.ByteString - getDeviceidBytes(); - - /** - * <code>string mac = 3;</code> - * @return The mac. - */ - java.lang.String getMac(); - /** - * <code>string mac = 3;</code> - * @return The bytes for mac. - */ - com.google.protobuf.ByteString - getMacBytes(); - - /** - * <code>string rydevicetype = 4;</code> - * @return The rydevicetype. - */ - java.lang.String getRydevicetype(); - /** - * <code>string rydevicetype = 4;</code> - * @return The bytes for rydevicetype. - */ - com.google.protobuf.ByteString - getRydevicetypeBytes(); - - /** - * <code>string clientTz = 5;</code> - * @return The clientTz. - */ - java.lang.String getClientTz(); - /** - * <code>string clientTz = 5;</code> - * @return The bytes for clientTz. - */ - com.google.protobuf.ByteString - getClientTzBytes(); - - /** - * <code>string currentCaid = 6;</code> - * @return The currentCaid. - */ - java.lang.String getCurrentCaid(); - /** - * <code>string currentCaid = 6;</code> - * @return The bytes for currentCaid. - */ - com.google.protobuf.ByteString - getCurrentCaidBytes(); - - /** - * <code>string cachedCaid = 7;</code> - * @return The cachedCaid. - */ - java.lang.String getCachedCaid(); - /** - * <code>string cachedCaid = 7;</code> - * @return The bytes for cachedCaid. - */ - com.google.protobuf.ByteString - getCachedCaidBytes(); - } - /** - * Protobuf type {@code TrackingIOInfo} - */ - public static final class TrackingIOInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TrackingIOInfo) - TrackingIOInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use TrackingIOInfo.newBuilder() to construct. - private TrackingIOInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private TrackingIOInfo() { - appid_ = ""; - deviceid_ = ""; - mac_ = ""; - rydevicetype_ = ""; - clientTz_ = ""; - currentCaid_ = ""; - cachedCaid_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TrackingIOInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TrackingIOInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - appid_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - deviceid_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - mac_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - rydevicetype_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - clientTz_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - currentCaid_ = s; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - cachedCaid_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TrackingIOInfoOuterClass.internal_static_TrackingIOInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TrackingIOInfoOuterClass.internal_static_TrackingIOInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo.class, emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo.Builder.class); - } - - public static final int APPID_FIELD_NUMBER = 1; - private volatile java.lang.Object appid_; - /** - * <code>string appid = 1;</code> - * @return The appid. - */ - @java.lang.Override - public java.lang.String getAppid() { - java.lang.Object ref = appid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - appid_ = s; - return s; - } - } - /** - * <code>string appid = 1;</code> - * @return The bytes for appid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAppidBytes() { - java.lang.Object ref = appid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - appid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEVICEID_FIELD_NUMBER = 2; - private volatile java.lang.Object deviceid_; - /** - * <code>string deviceid = 2;</code> - * @return The deviceid. - */ - @java.lang.Override - public java.lang.String getDeviceid() { - java.lang.Object ref = deviceid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deviceid_ = s; - return s; - } - } - /** - * <code>string deviceid = 2;</code> - * @return The bytes for deviceid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDeviceidBytes() { - java.lang.Object ref = deviceid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deviceid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MAC_FIELD_NUMBER = 3; - private volatile java.lang.Object mac_; - /** - * <code>string mac = 3;</code> - * @return The mac. - */ - @java.lang.Override - public java.lang.String getMac() { - java.lang.Object ref = mac_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mac_ = s; - return s; - } - } - /** - * <code>string mac = 3;</code> - * @return The bytes for mac. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMacBytes() { - java.lang.Object ref = mac_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - mac_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RYDEVICETYPE_FIELD_NUMBER = 4; - private volatile java.lang.Object rydevicetype_; - /** - * <code>string rydevicetype = 4;</code> - * @return The rydevicetype. - */ - @java.lang.Override - public java.lang.String getRydevicetype() { - java.lang.Object ref = rydevicetype_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rydevicetype_ = s; - return s; - } - } - /** - * <code>string rydevicetype = 4;</code> - * @return The bytes for rydevicetype. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRydevicetypeBytes() { - java.lang.Object ref = rydevicetype_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rydevicetype_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENTTZ_FIELD_NUMBER = 5; - private volatile java.lang.Object clientTz_; - /** - * <code>string clientTz = 5;</code> - * @return The clientTz. - */ - @java.lang.Override - public java.lang.String getClientTz() { - java.lang.Object ref = clientTz_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientTz_ = s; - return s; - } - } - /** - * <code>string clientTz = 5;</code> - * @return The bytes for clientTz. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClientTzBytes() { - java.lang.Object ref = clientTz_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientTz_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CURRENTCAID_FIELD_NUMBER = 6; - private volatile java.lang.Object currentCaid_; - /** - * <code>string currentCaid = 6;</code> - * @return The currentCaid. - */ - @java.lang.Override - public java.lang.String getCurrentCaid() { - java.lang.Object ref = currentCaid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentCaid_ = s; - return s; - } - } - /** - * <code>string currentCaid = 6;</code> - * @return The bytes for currentCaid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCurrentCaidBytes() { - java.lang.Object ref = currentCaid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - currentCaid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CACHEDCAID_FIELD_NUMBER = 7; - private volatile java.lang.Object cachedCaid_; - /** - * <code>string cachedCaid = 7;</code> - * @return The cachedCaid. - */ - @java.lang.Override - public java.lang.String getCachedCaid() { - java.lang.Object ref = cachedCaid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cachedCaid_ = s; - return s; - } - } - /** - * <code>string cachedCaid = 7;</code> - * @return The bytes for cachedCaid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCachedCaidBytes() { - java.lang.Object ref = cachedCaid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cachedCaid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getAppidBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, appid_); - } - if (!getDeviceidBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deviceid_); - } - if (!getMacBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mac_); - } - if (!getRydevicetypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, rydevicetype_); - } - if (!getClientTzBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, clientTz_); - } - if (!getCurrentCaidBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, currentCaid_); - } - if (!getCachedCaidBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, cachedCaid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAppidBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, appid_); - } - if (!getDeviceidBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deviceid_); - } - if (!getMacBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mac_); - } - if (!getRydevicetypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, rydevicetype_); - } - if (!getClientTzBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, clientTz_); - } - if (!getCurrentCaidBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, currentCaid_); - } - if (!getCachedCaidBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, cachedCaid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo other = (emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo) obj; - - if (!getAppid() - .equals(other.getAppid())) return false; - if (!getDeviceid() - .equals(other.getDeviceid())) return false; - if (!getMac() - .equals(other.getMac())) return false; - if (!getRydevicetype() - .equals(other.getRydevicetype())) return false; - if (!getClientTz() - .equals(other.getClientTz())) return false; - if (!getCurrentCaid() - .equals(other.getCurrentCaid())) return false; - if (!getCachedCaid() - .equals(other.getCachedCaid())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + APPID_FIELD_NUMBER; - hash = (53 * hash) + getAppid().hashCode(); - hash = (37 * hash) + DEVICEID_FIELD_NUMBER; - hash = (53 * hash) + getDeviceid().hashCode(); - hash = (37 * hash) + MAC_FIELD_NUMBER; - hash = (53 * hash) + getMac().hashCode(); - hash = (37 * hash) + RYDEVICETYPE_FIELD_NUMBER; - hash = (53 * hash) + getRydevicetype().hashCode(); - hash = (37 * hash) + CLIENTTZ_FIELD_NUMBER; - hash = (53 * hash) + getClientTz().hashCode(); - hash = (37 * hash) + CURRENTCAID_FIELD_NUMBER; - hash = (53 * hash) + getCurrentCaid().hashCode(); - hash = (37 * hash) + CACHEDCAID_FIELD_NUMBER; - hash = (53 * hash) + getCachedCaid().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TrackingIOInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:TrackingIOInfo) - emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TrackingIOInfoOuterClass.internal_static_TrackingIOInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TrackingIOInfoOuterClass.internal_static_TrackingIOInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo.class, emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - appid_ = ""; - - deviceid_ = ""; - - mac_ = ""; - - rydevicetype_ = ""; - - clientTz_ = ""; - - currentCaid_ = ""; - - cachedCaid_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.TrackingIOInfoOuterClass.internal_static_TrackingIOInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo build() { - emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo buildPartial() { - emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo result = new emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo(this); - result.appid_ = appid_; - result.deviceid_ = deviceid_; - result.mac_ = mac_; - result.rydevicetype_ = rydevicetype_; - result.clientTz_ = clientTz_; - result.currentCaid_ = currentCaid_; - result.cachedCaid_ = cachedCaid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo) { - return mergeFrom((emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo other) { - if (other == emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo.getDefaultInstance()) return this; - if (!other.getAppid().isEmpty()) { - appid_ = other.appid_; - onChanged(); - } - if (!other.getDeviceid().isEmpty()) { - deviceid_ = other.deviceid_; - onChanged(); - } - if (!other.getMac().isEmpty()) { - mac_ = other.mac_; - onChanged(); - } - if (!other.getRydevicetype().isEmpty()) { - rydevicetype_ = other.rydevicetype_; - onChanged(); - } - if (!other.getClientTz().isEmpty()) { - clientTz_ = other.clientTz_; - onChanged(); - } - if (!other.getCurrentCaid().isEmpty()) { - currentCaid_ = other.currentCaid_; - onChanged(); - } - if (!other.getCachedCaid().isEmpty()) { - cachedCaid_ = other.cachedCaid_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object appid_ = ""; - /** - * <code>string appid = 1;</code> - * @return The appid. - */ - public java.lang.String getAppid() { - java.lang.Object ref = appid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - appid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string appid = 1;</code> - * @return The bytes for appid. - */ - public com.google.protobuf.ByteString - getAppidBytes() { - java.lang.Object ref = appid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - appid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string appid = 1;</code> - * @param value The appid to set. - * @return This builder for chaining. - */ - public Builder setAppid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - appid_ = value; - onChanged(); - return this; - } - /** - * <code>string appid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAppid() { - - appid_ = getDefaultInstance().getAppid(); - onChanged(); - return this; - } - /** - * <code>string appid = 1;</code> - * @param value The bytes for appid to set. - * @return This builder for chaining. - */ - public Builder setAppidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - appid_ = value; - onChanged(); - return this; - } - - private java.lang.Object deviceid_ = ""; - /** - * <code>string deviceid = 2;</code> - * @return The deviceid. - */ - public java.lang.String getDeviceid() { - java.lang.Object ref = deviceid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deviceid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string deviceid = 2;</code> - * @return The bytes for deviceid. - */ - public com.google.protobuf.ByteString - getDeviceidBytes() { - java.lang.Object ref = deviceid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deviceid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string deviceid = 2;</code> - * @param value The deviceid to set. - * @return This builder for chaining. - */ - public Builder setDeviceid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - deviceid_ = value; - onChanged(); - return this; - } - /** - * <code>string deviceid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearDeviceid() { - - deviceid_ = getDefaultInstance().getDeviceid(); - onChanged(); - return this; - } - /** - * <code>string deviceid = 2;</code> - * @param value The bytes for deviceid to set. - * @return This builder for chaining. - */ - public Builder setDeviceidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - deviceid_ = value; - onChanged(); - return this; - } - - private java.lang.Object mac_ = ""; - /** - * <code>string mac = 3;</code> - * @return The mac. - */ - public java.lang.String getMac() { - java.lang.Object ref = mac_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mac_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string mac = 3;</code> - * @return The bytes for mac. - */ - public com.google.protobuf.ByteString - getMacBytes() { - java.lang.Object ref = mac_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - mac_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string mac = 3;</code> - * @param value The mac to set. - * @return This builder for chaining. - */ - public Builder setMac( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - mac_ = value; - onChanged(); - return this; - } - /** - * <code>string mac = 3;</code> - * @return This builder for chaining. - */ - public Builder clearMac() { - - mac_ = getDefaultInstance().getMac(); - onChanged(); - return this; - } - /** - * <code>string mac = 3;</code> - * @param value The bytes for mac to set. - * @return This builder for chaining. - */ - public Builder setMacBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - mac_ = value; - onChanged(); - return this; - } - - private java.lang.Object rydevicetype_ = ""; - /** - * <code>string rydevicetype = 4;</code> - * @return The rydevicetype. - */ - public java.lang.String getRydevicetype() { - java.lang.Object ref = rydevicetype_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rydevicetype_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string rydevicetype = 4;</code> - * @return The bytes for rydevicetype. - */ - public com.google.protobuf.ByteString - getRydevicetypeBytes() { - java.lang.Object ref = rydevicetype_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rydevicetype_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string rydevicetype = 4;</code> - * @param value The rydevicetype to set. - * @return This builder for chaining. - */ - public Builder setRydevicetype( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - rydevicetype_ = value; - onChanged(); - return this; - } - /** - * <code>string rydevicetype = 4;</code> - * @return This builder for chaining. - */ - public Builder clearRydevicetype() { - - rydevicetype_ = getDefaultInstance().getRydevicetype(); - onChanged(); - return this; - } - /** - * <code>string rydevicetype = 4;</code> - * @param value The bytes for rydevicetype to set. - * @return This builder for chaining. - */ - public Builder setRydevicetypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - rydevicetype_ = value; - onChanged(); - return this; - } - - private java.lang.Object clientTz_ = ""; - /** - * <code>string clientTz = 5;</code> - * @return The clientTz. - */ - public java.lang.String getClientTz() { - java.lang.Object ref = clientTz_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientTz_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string clientTz = 5;</code> - * @return The bytes for clientTz. - */ - public com.google.protobuf.ByteString - getClientTzBytes() { - java.lang.Object ref = clientTz_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientTz_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string clientTz = 5;</code> - * @param value The clientTz to set. - * @return This builder for chaining. - */ - public Builder setClientTz( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientTz_ = value; - onChanged(); - return this; - } - /** - * <code>string clientTz = 5;</code> - * @return This builder for chaining. - */ - public Builder clearClientTz() { - - clientTz_ = getDefaultInstance().getClientTz(); - onChanged(); - return this; - } - /** - * <code>string clientTz = 5;</code> - * @param value The bytes for clientTz to set. - * @return This builder for chaining. - */ - public Builder setClientTzBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientTz_ = value; - onChanged(); - return this; - } - - private java.lang.Object currentCaid_ = ""; - /** - * <code>string currentCaid = 6;</code> - * @return The currentCaid. - */ - public java.lang.String getCurrentCaid() { - java.lang.Object ref = currentCaid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentCaid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string currentCaid = 6;</code> - * @return The bytes for currentCaid. - */ - public com.google.protobuf.ByteString - getCurrentCaidBytes() { - java.lang.Object ref = currentCaid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - currentCaid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string currentCaid = 6;</code> - * @param value The currentCaid to set. - * @return This builder for chaining. - */ - public Builder setCurrentCaid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - currentCaid_ = value; - onChanged(); - return this; - } - /** - * <code>string currentCaid = 6;</code> - * @return This builder for chaining. - */ - public Builder clearCurrentCaid() { - - currentCaid_ = getDefaultInstance().getCurrentCaid(); - onChanged(); - return this; - } - /** - * <code>string currentCaid = 6;</code> - * @param value The bytes for currentCaid to set. - * @return This builder for chaining. - */ - public Builder setCurrentCaidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - currentCaid_ = value; - onChanged(); - return this; - } - - private java.lang.Object cachedCaid_ = ""; - /** - * <code>string cachedCaid = 7;</code> - * @return The cachedCaid. - */ - public java.lang.String getCachedCaid() { - java.lang.Object ref = cachedCaid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cachedCaid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string cachedCaid = 7;</code> - * @return The bytes for cachedCaid. - */ - public com.google.protobuf.ByteString - getCachedCaidBytes() { - java.lang.Object ref = cachedCaid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cachedCaid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string cachedCaid = 7;</code> - * @param value The cachedCaid to set. - * @return This builder for chaining. - */ - public Builder setCachedCaid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cachedCaid_ = value; - onChanged(); - return this; - } - /** - * <code>string cachedCaid = 7;</code> - * @return This builder for chaining. - */ - public Builder clearCachedCaid() { - - cachedCaid_ = getDefaultInstance().getCachedCaid(); - onChanged(); - return this; - } - /** - * <code>string cachedCaid = 7;</code> - * @param value The bytes for cachedCaid to set. - * @return This builder for chaining. - */ - public Builder setCachedCaidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cachedCaid_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TrackingIOInfo) - } - - // @@protoc_insertion_point(class_scope:TrackingIOInfo) - private static final emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo(); - } - - public static emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<TrackingIOInfo> - PARSER = new com.google.protobuf.AbstractParser<TrackingIOInfo>() { - @java.lang.Override - public TrackingIOInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TrackingIOInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<TrackingIOInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<TrackingIOInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TrackingIOInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TrackingIOInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024TrackingIOInfo.proto\"\217\001\n\016TrackingIOInf" + - "o\022\r\n\005appid\030\001 \001(\t\022\020\n\010deviceid\030\002 \001(\t\022\013\n\003ma" + - "c\030\003 \001(\t\022\024\n\014rydevicetype\030\004 \001(\t\022\020\n\010clientT" + - "z\030\005 \001(\t\022\023\n\013currentCaid\030\006 \001(\t\022\022\n\ncachedCa" + - "id\030\007 \001(\tB\033\n\031emu.grasscutter.net.protob\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_TrackingIOInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TrackingIOInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TrackingIOInfo_descriptor, - new java.lang.String[] { "Appid", "Deviceid", "Mac", "Rydevicetype", "ClientTz", "CurrentCaid", "CachedCaid", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/TrialAvatarGrantRecordOuterClass.java b/src/main/java/emu/grasscutter/net/proto/TrialAvatarGrantRecordOuterClass.java deleted file mode 100644 index 550db6ac2..000000000 --- a/src/main/java/emu/grasscutter/net/proto/TrialAvatarGrantRecordOuterClass.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TrialAvatarGrantRecord.proto - -package emu.grasscutter.net.proto; - -public final class TrialAvatarGrantRecordOuterClass { - private TrialAvatarGrantRecordOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TrialAvatarGrantRecordOrBuilder extends - // @@protoc_insertion_point(interface_extends:TrialAvatarGrantRecord) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 grantReason = 1;</code> - * @return The grantReason. - */ - int getGrantReason(); - - /** - * <code>uint32 fromParentQuestId = 2;</code> - * @return The fromParentQuestId. - */ - int getFromParentQuestId(); - } - /** - * Protobuf type {@code TrialAvatarGrantRecord} - */ - public static final class TrialAvatarGrantRecord extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TrialAvatarGrantRecord) - TrialAvatarGrantRecordOrBuilder { - private static final long serialVersionUID = 0L; - // Use TrialAvatarGrantRecord.newBuilder() to construct. - private TrialAvatarGrantRecord(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private TrialAvatarGrantRecord() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TrialAvatarGrantRecord(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TrialAvatarGrantRecord( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - grantReason_ = input.readUInt32(); - break; - } - case 16: { - - fromParentQuestId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.internal_static_TrialAvatarGrantRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.internal_static_TrialAvatarGrantRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.class, emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.Builder.class); - } - - public static final int GRANTREASON_FIELD_NUMBER = 1; - private int grantReason_; - /** - * <code>uint32 grantReason = 1;</code> - * @return The grantReason. - */ - @java.lang.Override - public int getGrantReason() { - return grantReason_; - } - - public static final int FROMPARENTQUESTID_FIELD_NUMBER = 2; - private int fromParentQuestId_; - /** - * <code>uint32 fromParentQuestId = 2;</code> - * @return The fromParentQuestId. - */ - @java.lang.Override - public int getFromParentQuestId() { - return fromParentQuestId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (grantReason_ != 0) { - output.writeUInt32(1, grantReason_); - } - if (fromParentQuestId_ != 0) { - output.writeUInt32(2, fromParentQuestId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (grantReason_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, grantReason_); - } - if (fromParentQuestId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, fromParentQuestId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord other = (emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord) obj; - - if (getGrantReason() - != other.getGrantReason()) return false; - if (getFromParentQuestId() - != other.getFromParentQuestId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GRANTREASON_FIELD_NUMBER; - hash = (53 * hash) + getGrantReason(); - hash = (37 * hash) + FROMPARENTQUESTID_FIELD_NUMBER; - hash = (53 * hash) + getFromParentQuestId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TrialAvatarGrantRecord} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:TrialAvatarGrantRecord) - emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.internal_static_TrialAvatarGrantRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.internal_static_TrialAvatarGrantRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.class, emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - grantReason_ = 0; - - fromParentQuestId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.internal_static_TrialAvatarGrantRecord_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord getDefaultInstanceForType() { - return emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord build() { - emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord buildPartial() { - emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord result = new emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord(this); - result.grantReason_ = grantReason_; - result.fromParentQuestId_ = fromParentQuestId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord) { - return mergeFrom((emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord other) { - if (other == emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.getDefaultInstance()) return this; - if (other.getGrantReason() != 0) { - setGrantReason(other.getGrantReason()); - } - if (other.getFromParentQuestId() != 0) { - setFromParentQuestId(other.getFromParentQuestId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int grantReason_ ; - /** - * <code>uint32 grantReason = 1;</code> - * @return The grantReason. - */ - @java.lang.Override - public int getGrantReason() { - return grantReason_; - } - /** - * <code>uint32 grantReason = 1;</code> - * @param value The grantReason to set. - * @return This builder for chaining. - */ - public Builder setGrantReason(int value) { - - grantReason_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 grantReason = 1;</code> - * @return This builder for chaining. - */ - public Builder clearGrantReason() { - - grantReason_ = 0; - onChanged(); - return this; - } - - private int fromParentQuestId_ ; - /** - * <code>uint32 fromParentQuestId = 2;</code> - * @return The fromParentQuestId. - */ - @java.lang.Override - public int getFromParentQuestId() { - return fromParentQuestId_; - } - /** - * <code>uint32 fromParentQuestId = 2;</code> - * @param value The fromParentQuestId to set. - * @return This builder for chaining. - */ - public Builder setFromParentQuestId(int value) { - - fromParentQuestId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 fromParentQuestId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearFromParentQuestId() { - - fromParentQuestId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TrialAvatarGrantRecord) - } - - // @@protoc_insertion_point(class_scope:TrialAvatarGrantRecord) - private static final emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord(); - } - - public static emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<TrialAvatarGrantRecord> - PARSER = new com.google.protobuf.AbstractParser<TrialAvatarGrantRecord>() { - @java.lang.Override - public TrialAvatarGrantRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TrialAvatarGrantRecord(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<TrialAvatarGrantRecord> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<TrialAvatarGrantRecord> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TrialAvatarGrantRecord_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TrialAvatarGrantRecord_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034TrialAvatarGrantRecord.proto\"H\n\026TrialA" + - "vatarGrantRecord\022\023\n\013grantReason\030\001 \001(\r\022\031\n" + - "\021fromParentQuestId\030\002 \001(\rB\033\n\031emu.grasscut" + - "ter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_TrialAvatarGrantRecord_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TrialAvatarGrantRecord_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TrialAvatarGrantRecord_descriptor, - new java.lang.String[] { "GrantReason", "FromParentQuestId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/TrialAvatarInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/TrialAvatarInfoOuterClass.java deleted file mode 100644 index bec68ca06..000000000 --- a/src/main/java/emu/grasscutter/net/proto/TrialAvatarInfoOuterClass.java +++ /dev/null @@ -1,1121 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TrialAvatarInfo.proto - -package emu.grasscutter.net.proto; - -public final class TrialAvatarInfoOuterClass { - private TrialAvatarInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TrialAvatarInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:TrialAvatarInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 trialAvatarId = 1;</code> - * @return The trialAvatarId. - */ - int getTrialAvatarId(); - - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - java.util.List<emu.grasscutter.net.proto.ItemOuterClass.Item> - getTrialEquipListList(); - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - emu.grasscutter.net.proto.ItemOuterClass.Item getTrialEquipList(int index); - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - int getTrialEquipListCount(); - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder> - getTrialEquipListOrBuilderList(); - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder getTrialEquipListOrBuilder( - int index); - - /** - * <code>.TrialAvatarGrantRecord grantRecord = 3;</code> - * @return Whether the grantRecord field is set. - */ - boolean hasGrantRecord(); - /** - * <code>.TrialAvatarGrantRecord grantRecord = 3;</code> - * @return The grantRecord. - */ - emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord getGrantRecord(); - /** - * <code>.TrialAvatarGrantRecord grantRecord = 3;</code> - */ - emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecordOrBuilder getGrantRecordOrBuilder(); - } - /** - * Protobuf type {@code TrialAvatarInfo} - */ - public static final class TrialAvatarInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TrialAvatarInfo) - TrialAvatarInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use TrialAvatarInfo.newBuilder() to construct. - private TrialAvatarInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private TrialAvatarInfo() { - trialEquipList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TrialAvatarInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TrialAvatarInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - trialAvatarId_ = input.readUInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - trialEquipList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemOuterClass.Item>(); - mutable_bitField0_ |= 0x00000001; - } - trialEquipList_.add( - input.readMessage(emu.grasscutter.net.proto.ItemOuterClass.Item.parser(), extensionRegistry)); - break; - } - case 26: { - emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.Builder subBuilder = null; - if (grantRecord_ != null) { - subBuilder = grantRecord_.toBuilder(); - } - grantRecord_ = input.readMessage(emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(grantRecord_); - grantRecord_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - trialEquipList_ = java.util.Collections.unmodifiableList(trialEquipList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.internal_static_TrialAvatarInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.internal_static_TrialAvatarInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo.class, emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo.Builder.class); - } - - public static final int TRIALAVATARID_FIELD_NUMBER = 1; - private int trialAvatarId_; - /** - * <code>uint32 trialAvatarId = 1;</code> - * @return The trialAvatarId. - */ - @java.lang.Override - public int getTrialAvatarId() { - return trialAvatarId_; - } - - public static final int TRIALEQUIPLIST_FIELD_NUMBER = 2; - private java.util.List<emu.grasscutter.net.proto.ItemOuterClass.Item> trialEquipList_; - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.ItemOuterClass.Item> getTrialEquipListList() { - return trialEquipList_; - } - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder> - getTrialEquipListOrBuilderList() { - return trialEquipList_; - } - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - @java.lang.Override - public int getTrialEquipListCount() { - return trialEquipList_.size(); - } - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemOuterClass.Item getTrialEquipList(int index) { - return trialEquipList_.get(index); - } - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder getTrialEquipListOrBuilder( - int index) { - return trialEquipList_.get(index); - } - - public static final int GRANTRECORD_FIELD_NUMBER = 3; - private emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord grantRecord_; - /** - * <code>.TrialAvatarGrantRecord grantRecord = 3;</code> - * @return Whether the grantRecord field is set. - */ - @java.lang.Override - public boolean hasGrantRecord() { - return grantRecord_ != null; - } - /** - * <code>.TrialAvatarGrantRecord grantRecord = 3;</code> - * @return The grantRecord. - */ - @java.lang.Override - public emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord getGrantRecord() { - return grantRecord_ == null ? emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.getDefaultInstance() : grantRecord_; - } - /** - * <code>.TrialAvatarGrantRecord grantRecord = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecordOrBuilder getGrantRecordOrBuilder() { - return getGrantRecord(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (trialAvatarId_ != 0) { - output.writeUInt32(1, trialAvatarId_); - } - for (int i = 0; i < trialEquipList_.size(); i++) { - output.writeMessage(2, trialEquipList_.get(i)); - } - if (grantRecord_ != null) { - output.writeMessage(3, getGrantRecord()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (trialAvatarId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, trialAvatarId_); - } - for (int i = 0; i < trialEquipList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, trialEquipList_.get(i)); - } - if (grantRecord_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getGrantRecord()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo other = (emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo) obj; - - if (getTrialAvatarId() - != other.getTrialAvatarId()) return false; - if (!getTrialEquipListList() - .equals(other.getTrialEquipListList())) return false; - if (hasGrantRecord() != other.hasGrantRecord()) return false; - if (hasGrantRecord()) { - if (!getGrantRecord() - .equals(other.getGrantRecord())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TRIALAVATARID_FIELD_NUMBER; - hash = (53 * hash) + getTrialAvatarId(); - if (getTrialEquipListCount() > 0) { - hash = (37 * hash) + TRIALEQUIPLIST_FIELD_NUMBER; - hash = (53 * hash) + getTrialEquipListList().hashCode(); - } - if (hasGrantRecord()) { - hash = (37 * hash) + GRANTRECORD_FIELD_NUMBER; - hash = (53 * hash) + getGrantRecord().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TrialAvatarInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:TrialAvatarInfo) - emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.internal_static_TrialAvatarInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.internal_static_TrialAvatarInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo.class, emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTrialEquipListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - trialAvatarId_ = 0; - - if (trialEquipListBuilder_ == null) { - trialEquipList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - trialEquipListBuilder_.clear(); - } - if (grantRecordBuilder_ == null) { - grantRecord_ = null; - } else { - grantRecord_ = null; - grantRecordBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.internal_static_TrialAvatarInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo build() { - emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo buildPartial() { - emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo result = new emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo(this); - int from_bitField0_ = bitField0_; - result.trialAvatarId_ = trialAvatarId_; - if (trialEquipListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - trialEquipList_ = java.util.Collections.unmodifiableList(trialEquipList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.trialEquipList_ = trialEquipList_; - } else { - result.trialEquipList_ = trialEquipListBuilder_.build(); - } - if (grantRecordBuilder_ == null) { - result.grantRecord_ = grantRecord_; - } else { - result.grantRecord_ = grantRecordBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo) { - return mergeFrom((emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo other) { - if (other == emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo.getDefaultInstance()) return this; - if (other.getTrialAvatarId() != 0) { - setTrialAvatarId(other.getTrialAvatarId()); - } - if (trialEquipListBuilder_ == null) { - if (!other.trialEquipList_.isEmpty()) { - if (trialEquipList_.isEmpty()) { - trialEquipList_ = other.trialEquipList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTrialEquipListIsMutable(); - trialEquipList_.addAll(other.trialEquipList_); - } - onChanged(); - } - } else { - if (!other.trialEquipList_.isEmpty()) { - if (trialEquipListBuilder_.isEmpty()) { - trialEquipListBuilder_.dispose(); - trialEquipListBuilder_ = null; - trialEquipList_ = other.trialEquipList_; - bitField0_ = (bitField0_ & ~0x00000001); - trialEquipListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTrialEquipListFieldBuilder() : null; - } else { - trialEquipListBuilder_.addAllMessages(other.trialEquipList_); - } - } - } - if (other.hasGrantRecord()) { - mergeGrantRecord(other.getGrantRecord()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int trialAvatarId_ ; - /** - * <code>uint32 trialAvatarId = 1;</code> - * @return The trialAvatarId. - */ - @java.lang.Override - public int getTrialAvatarId() { - return trialAvatarId_; - } - /** - * <code>uint32 trialAvatarId = 1;</code> - * @param value The trialAvatarId to set. - * @return This builder for chaining. - */ - public Builder setTrialAvatarId(int value) { - - trialAvatarId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 trialAvatarId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTrialAvatarId() { - - trialAvatarId_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.ItemOuterClass.Item> trialEquipList_ = - java.util.Collections.emptyList(); - private void ensureTrialEquipListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - trialEquipList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemOuterClass.Item>(trialEquipList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemOuterClass.Item, emu.grasscutter.net.proto.ItemOuterClass.Item.Builder, emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder> trialEquipListBuilder_; - - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemOuterClass.Item> getTrialEquipListList() { - if (trialEquipListBuilder_ == null) { - return java.util.Collections.unmodifiableList(trialEquipList_); - } else { - return trialEquipListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - public int getTrialEquipListCount() { - if (trialEquipListBuilder_ == null) { - return trialEquipList_.size(); - } else { - return trialEquipListBuilder_.getCount(); - } - } - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - public emu.grasscutter.net.proto.ItemOuterClass.Item getTrialEquipList(int index) { - if (trialEquipListBuilder_ == null) { - return trialEquipList_.get(index); - } else { - return trialEquipListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - public Builder setTrialEquipList( - int index, emu.grasscutter.net.proto.ItemOuterClass.Item value) { - if (trialEquipListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTrialEquipListIsMutable(); - trialEquipList_.set(index, value); - onChanged(); - } else { - trialEquipListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - public Builder setTrialEquipList( - int index, emu.grasscutter.net.proto.ItemOuterClass.Item.Builder builderForValue) { - if (trialEquipListBuilder_ == null) { - ensureTrialEquipListIsMutable(); - trialEquipList_.set(index, builderForValue.build()); - onChanged(); - } else { - trialEquipListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - public Builder addTrialEquipList(emu.grasscutter.net.proto.ItemOuterClass.Item value) { - if (trialEquipListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTrialEquipListIsMutable(); - trialEquipList_.add(value); - onChanged(); - } else { - trialEquipListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - public Builder addTrialEquipList( - int index, emu.grasscutter.net.proto.ItemOuterClass.Item value) { - if (trialEquipListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTrialEquipListIsMutable(); - trialEquipList_.add(index, value); - onChanged(); - } else { - trialEquipListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - public Builder addTrialEquipList( - emu.grasscutter.net.proto.ItemOuterClass.Item.Builder builderForValue) { - if (trialEquipListBuilder_ == null) { - ensureTrialEquipListIsMutable(); - trialEquipList_.add(builderForValue.build()); - onChanged(); - } else { - trialEquipListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - public Builder addTrialEquipList( - int index, emu.grasscutter.net.proto.ItemOuterClass.Item.Builder builderForValue) { - if (trialEquipListBuilder_ == null) { - ensureTrialEquipListIsMutable(); - trialEquipList_.add(index, builderForValue.build()); - onChanged(); - } else { - trialEquipListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - public Builder addAllTrialEquipList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.ItemOuterClass.Item> values) { - if (trialEquipListBuilder_ == null) { - ensureTrialEquipListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, trialEquipList_); - onChanged(); - } else { - trialEquipListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - public Builder clearTrialEquipList() { - if (trialEquipListBuilder_ == null) { - trialEquipList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - trialEquipListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - public Builder removeTrialEquipList(int index) { - if (trialEquipListBuilder_ == null) { - ensureTrialEquipListIsMutable(); - trialEquipList_.remove(index); - onChanged(); - } else { - trialEquipListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - public emu.grasscutter.net.proto.ItemOuterClass.Item.Builder getTrialEquipListBuilder( - int index) { - return getTrialEquipListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - public emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder getTrialEquipListOrBuilder( - int index) { - if (trialEquipListBuilder_ == null) { - return trialEquipList_.get(index); } else { - return trialEquipListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder> - getTrialEquipListOrBuilderList() { - if (trialEquipListBuilder_ != null) { - return trialEquipListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(trialEquipList_); - } - } - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - public emu.grasscutter.net.proto.ItemOuterClass.Item.Builder addTrialEquipListBuilder() { - return getTrialEquipListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ItemOuterClass.Item.getDefaultInstance()); - } - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - public emu.grasscutter.net.proto.ItemOuterClass.Item.Builder addTrialEquipListBuilder( - int index) { - return getTrialEquipListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ItemOuterClass.Item.getDefaultInstance()); - } - /** - * <code>repeated .Item trialEquipList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemOuterClass.Item.Builder> - getTrialEquipListBuilderList() { - return getTrialEquipListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemOuterClass.Item, emu.grasscutter.net.proto.ItemOuterClass.Item.Builder, emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder> - getTrialEquipListFieldBuilder() { - if (trialEquipListBuilder_ == null) { - trialEquipListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemOuterClass.Item, emu.grasscutter.net.proto.ItemOuterClass.Item.Builder, emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder>( - trialEquipList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - trialEquipList_ = null; - } - return trialEquipListBuilder_; - } - - private emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord grantRecord_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord, emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.Builder, emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecordOrBuilder> grantRecordBuilder_; - /** - * <code>.TrialAvatarGrantRecord grantRecord = 3;</code> - * @return Whether the grantRecord field is set. - */ - public boolean hasGrantRecord() { - return grantRecordBuilder_ != null || grantRecord_ != null; - } - /** - * <code>.TrialAvatarGrantRecord grantRecord = 3;</code> - * @return The grantRecord. - */ - public emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord getGrantRecord() { - if (grantRecordBuilder_ == null) { - return grantRecord_ == null ? emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.getDefaultInstance() : grantRecord_; - } else { - return grantRecordBuilder_.getMessage(); - } - } - /** - * <code>.TrialAvatarGrantRecord grantRecord = 3;</code> - */ - public Builder setGrantRecord(emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord value) { - if (grantRecordBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - grantRecord_ = value; - onChanged(); - } else { - grantRecordBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.TrialAvatarGrantRecord grantRecord = 3;</code> - */ - public Builder setGrantRecord( - emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.Builder builderForValue) { - if (grantRecordBuilder_ == null) { - grantRecord_ = builderForValue.build(); - onChanged(); - } else { - grantRecordBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.TrialAvatarGrantRecord grantRecord = 3;</code> - */ - public Builder mergeGrantRecord(emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord value) { - if (grantRecordBuilder_ == null) { - if (grantRecord_ != null) { - grantRecord_ = - emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.newBuilder(grantRecord_).mergeFrom(value).buildPartial(); - } else { - grantRecord_ = value; - } - onChanged(); - } else { - grantRecordBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.TrialAvatarGrantRecord grantRecord = 3;</code> - */ - public Builder clearGrantRecord() { - if (grantRecordBuilder_ == null) { - grantRecord_ = null; - onChanged(); - } else { - grantRecord_ = null; - grantRecordBuilder_ = null; - } - - return this; - } - /** - * <code>.TrialAvatarGrantRecord grantRecord = 3;</code> - */ - public emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.Builder getGrantRecordBuilder() { - - onChanged(); - return getGrantRecordFieldBuilder().getBuilder(); - } - /** - * <code>.TrialAvatarGrantRecord grantRecord = 3;</code> - */ - public emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecordOrBuilder getGrantRecordOrBuilder() { - if (grantRecordBuilder_ != null) { - return grantRecordBuilder_.getMessageOrBuilder(); - } else { - return grantRecord_ == null ? - emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.getDefaultInstance() : grantRecord_; - } - } - /** - * <code>.TrialAvatarGrantRecord grantRecord = 3;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord, emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.Builder, emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecordOrBuilder> - getGrantRecordFieldBuilder() { - if (grantRecordBuilder_ == null) { - grantRecordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord, emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.Builder, emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecordOrBuilder>( - getGrantRecord(), - getParentForChildren(), - isClean()); - grantRecord_ = null; - } - return grantRecordBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TrialAvatarInfo) - } - - // @@protoc_insertion_point(class_scope:TrialAvatarInfo) - private static final emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo(); - } - - public static emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<TrialAvatarInfo> - PARSER = new com.google.protobuf.AbstractParser<TrialAvatarInfo>() { - @java.lang.Override - public TrialAvatarInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TrialAvatarInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<TrialAvatarInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<TrialAvatarInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TrialAvatarInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TrialAvatarInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025TrialAvatarInfo.proto\032\nItem.proto\032\034Tri" + - "alAvatarGrantRecord.proto\"u\n\017TrialAvatar" + - "Info\022\025\n\rtrialAvatarId\030\001 \001(\r\022\035\n\016trialEqui" + - "pList\030\002 \003(\0132\005.Item\022,\n\013grantRecord\030\003 \001(\0132" + - "\027.TrialAvatarGrantRecordB\033\n\031emu.grasscut" + - "ter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ItemOuterClass.getDescriptor(), - emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.getDescriptor(), - }); - internal_static_TrialAvatarInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TrialAvatarInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TrialAvatarInfo_descriptor, - new java.lang.String[] { "TrialAvatarId", "TrialEquipList", "GrantRecord", }); - emu.grasscutter.net.proto.ItemOuterClass.getDescriptor(); - emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/UnionCmdNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/UnionCmdNotifyOuterClass.java deleted file mode 100644 index 1c105ea3b..000000000 --- a/src/main/java/emu/grasscutter/net/proto/UnionCmdNotifyOuterClass.java +++ /dev/null @@ -1,844 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: UnionCmdNotify.proto - -package emu.grasscutter.net.proto; - -public final class UnionCmdNotifyOuterClass { - private UnionCmdNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface UnionCmdNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:UnionCmdNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - java.util.List<emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd> - getCmdListList(); - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd getCmdList(int index); - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - int getCmdListCount(); - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmdOrBuilder> - getCmdListOrBuilderList(); - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmdOrBuilder getCmdListOrBuilder( - int index); - } - /** - * Protobuf type {@code UnionCmdNotify} - */ - public static final class UnionCmdNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:UnionCmdNotify) - UnionCmdNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use UnionCmdNotify.newBuilder() to construct. - private UnionCmdNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private UnionCmdNotify() { - cmdList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UnionCmdNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UnionCmdNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - cmdList_ = new java.util.ArrayList<emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd>(); - mutable_bitField0_ |= 0x00000001; - } - cmdList_.add( - input.readMessage(emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - cmdList_ = java.util.Collections.unmodifiableList(cmdList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.internal_static_UnionCmdNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.internal_static_UnionCmdNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify.class, emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify.Builder.class); - } - - public static final int CMDLIST_FIELD_NUMBER = 1; - private java.util.List<emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd> cmdList_; - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd> getCmdListList() { - return cmdList_; - } - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmdOrBuilder> - getCmdListOrBuilderList() { - return cmdList_; - } - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - @java.lang.Override - public int getCmdListCount() { - return cmdList_.size(); - } - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd getCmdList(int index) { - return cmdList_.get(index); - } - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmdOrBuilder getCmdListOrBuilder( - int index) { - return cmdList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < cmdList_.size(); i++) { - output.writeMessage(1, cmdList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < cmdList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, cmdList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify other = (emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify) obj; - - if (!getCmdListList() - .equals(other.getCmdListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getCmdListCount() > 0) { - hash = (37 * hash) + CMDLIST_FIELD_NUMBER; - hash = (53 * hash) + getCmdListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code UnionCmdNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:UnionCmdNotify) - emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.internal_static_UnionCmdNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.internal_static_UnionCmdNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify.class, emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getCmdListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (cmdListBuilder_ == null) { - cmdList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - cmdListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.internal_static_UnionCmdNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify build() { - emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify buildPartial() { - emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify result = new emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify(this); - int from_bitField0_ = bitField0_; - if (cmdListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - cmdList_ = java.util.Collections.unmodifiableList(cmdList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.cmdList_ = cmdList_; - } else { - result.cmdList_ = cmdListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify) { - return mergeFrom((emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify other) { - if (other == emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify.getDefaultInstance()) return this; - if (cmdListBuilder_ == null) { - if (!other.cmdList_.isEmpty()) { - if (cmdList_.isEmpty()) { - cmdList_ = other.cmdList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCmdListIsMutable(); - cmdList_.addAll(other.cmdList_); - } - onChanged(); - } - } else { - if (!other.cmdList_.isEmpty()) { - if (cmdListBuilder_.isEmpty()) { - cmdListBuilder_.dispose(); - cmdListBuilder_ = null; - cmdList_ = other.cmdList_; - bitField0_ = (bitField0_ & ~0x00000001); - cmdListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCmdListFieldBuilder() : null; - } else { - cmdListBuilder_.addAllMessages(other.cmdList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List<emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd> cmdList_ = - java.util.Collections.emptyList(); - private void ensureCmdListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - cmdList_ = new java.util.ArrayList<emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd>(cmdList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd, emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd.Builder, emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmdOrBuilder> cmdListBuilder_; - - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd> getCmdListList() { - if (cmdListBuilder_ == null) { - return java.util.Collections.unmodifiableList(cmdList_); - } else { - return cmdListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - public int getCmdListCount() { - if (cmdListBuilder_ == null) { - return cmdList_.size(); - } else { - return cmdListBuilder_.getCount(); - } - } - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - public emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd getCmdList(int index) { - if (cmdListBuilder_ == null) { - return cmdList_.get(index); - } else { - return cmdListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - public Builder setCmdList( - int index, emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd value) { - if (cmdListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCmdListIsMutable(); - cmdList_.set(index, value); - onChanged(); - } else { - cmdListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - public Builder setCmdList( - int index, emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd.Builder builderForValue) { - if (cmdListBuilder_ == null) { - ensureCmdListIsMutable(); - cmdList_.set(index, builderForValue.build()); - onChanged(); - } else { - cmdListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - public Builder addCmdList(emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd value) { - if (cmdListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCmdListIsMutable(); - cmdList_.add(value); - onChanged(); - } else { - cmdListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - public Builder addCmdList( - int index, emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd value) { - if (cmdListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCmdListIsMutable(); - cmdList_.add(index, value); - onChanged(); - } else { - cmdListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - public Builder addCmdList( - emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd.Builder builderForValue) { - if (cmdListBuilder_ == null) { - ensureCmdListIsMutable(); - cmdList_.add(builderForValue.build()); - onChanged(); - } else { - cmdListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - public Builder addCmdList( - int index, emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd.Builder builderForValue) { - if (cmdListBuilder_ == null) { - ensureCmdListIsMutable(); - cmdList_.add(index, builderForValue.build()); - onChanged(); - } else { - cmdListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - public Builder addAllCmdList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd> values) { - if (cmdListBuilder_ == null) { - ensureCmdListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, cmdList_); - onChanged(); - } else { - cmdListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - public Builder clearCmdList() { - if (cmdListBuilder_ == null) { - cmdList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - cmdListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - public Builder removeCmdList(int index) { - if (cmdListBuilder_ == null) { - ensureCmdListIsMutable(); - cmdList_.remove(index); - onChanged(); - } else { - cmdListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - public emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd.Builder getCmdListBuilder( - int index) { - return getCmdListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - public emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmdOrBuilder getCmdListOrBuilder( - int index) { - if (cmdListBuilder_ == null) { - return cmdList_.get(index); } else { - return cmdListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmdOrBuilder> - getCmdListOrBuilderList() { - if (cmdListBuilder_ != null) { - return cmdListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(cmdList_); - } - } - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - public emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd.Builder addCmdListBuilder() { - return getCmdListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd.getDefaultInstance()); - } - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - public emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd.Builder addCmdListBuilder( - int index) { - return getCmdListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd.getDefaultInstance()); - } - /** - * <code>repeated .UnionCmd cmdList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd.Builder> - getCmdListBuilderList() { - return getCmdListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd, emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd.Builder, emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmdOrBuilder> - getCmdListFieldBuilder() { - if (cmdListBuilder_ == null) { - cmdListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd, emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd.Builder, emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmdOrBuilder>( - cmdList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - cmdList_ = null; - } - return cmdListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:UnionCmdNotify) - } - - // @@protoc_insertion_point(class_scope:UnionCmdNotify) - private static final emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify(); - } - - public static emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<UnionCmdNotify> - PARSER = new com.google.protobuf.AbstractParser<UnionCmdNotify>() { - @java.lang.Override - public UnionCmdNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UnionCmdNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<UnionCmdNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<UnionCmdNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_UnionCmdNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_UnionCmdNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024UnionCmdNotify.proto\032\016UnionCmd.proto\"," + - "\n\016UnionCmdNotify\022\032\n\007cmdList\030\001 \003(\0132\t.Unio" + - "nCmdB\033\n\031emu.grasscutter.net.protob\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.UnionCmdOuterClass.getDescriptor(), - }); - internal_static_UnionCmdNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_UnionCmdNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_UnionCmdNotify_descriptor, - new java.lang.String[] { "CmdList", }); - emu.grasscutter.net.proto.UnionCmdOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/UnionCmdOuterClass.java b/src/main/java/emu/grasscutter/net/proto/UnionCmdOuterClass.java deleted file mode 100644 index a5604aae4..000000000 --- a/src/main/java/emu/grasscutter/net/proto/UnionCmdOuterClass.java +++ /dev/null @@ -1,610 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: UnionCmd.proto - -package emu.grasscutter.net.proto; - -public final class UnionCmdOuterClass { - private UnionCmdOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface UnionCmdOrBuilder extends - // @@protoc_insertion_point(interface_extends:UnionCmd) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 messageId = 1;</code> - * @return The messageId. - */ - int getMessageId(); - - /** - * <code>bytes body = 2;</code> - * @return The body. - */ - com.google.protobuf.ByteString getBody(); - } - /** - * Protobuf type {@code UnionCmd} - */ - public static final class UnionCmd extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:UnionCmd) - UnionCmdOrBuilder { - private static final long serialVersionUID = 0L; - // Use UnionCmd.newBuilder() to construct. - private UnionCmd(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private UnionCmd() { - body_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UnionCmd(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UnionCmd( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - messageId_ = input.readUInt32(); - break; - } - case 18: { - - body_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.UnionCmdOuterClass.internal_static_UnionCmd_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.UnionCmdOuterClass.internal_static_UnionCmd_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd.class, emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd.Builder.class); - } - - public static final int MESSAGEID_FIELD_NUMBER = 1; - private int messageId_; - /** - * <code>uint32 messageId = 1;</code> - * @return The messageId. - */ - @java.lang.Override - public int getMessageId() { - return messageId_; - } - - public static final int BODY_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString body_; - /** - * <code>bytes body = 2;</code> - * @return The body. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBody() { - return body_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (messageId_ != 0) { - output.writeUInt32(1, messageId_); - } - if (!body_.isEmpty()) { - output.writeBytes(2, body_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (messageId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, messageId_); - } - if (!body_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, body_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd other = (emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd) obj; - - if (getMessageId() - != other.getMessageId()) return false; - if (!getBody() - .equals(other.getBody())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MESSAGEID_FIELD_NUMBER; - hash = (53 * hash) + getMessageId(); - hash = (37 * hash) + BODY_FIELD_NUMBER; - hash = (53 * hash) + getBody().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code UnionCmd} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:UnionCmd) - emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmdOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.UnionCmdOuterClass.internal_static_UnionCmd_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.UnionCmdOuterClass.internal_static_UnionCmd_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd.class, emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - messageId_ = 0; - - body_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.UnionCmdOuterClass.internal_static_UnionCmd_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd getDefaultInstanceForType() { - return emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd build() { - emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd buildPartial() { - emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd result = new emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd(this); - result.messageId_ = messageId_; - result.body_ = body_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd) { - return mergeFrom((emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd other) { - if (other == emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd.getDefaultInstance()) return this; - if (other.getMessageId() != 0) { - setMessageId(other.getMessageId()); - } - if (other.getBody() != com.google.protobuf.ByteString.EMPTY) { - setBody(other.getBody()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int messageId_ ; - /** - * <code>uint32 messageId = 1;</code> - * @return The messageId. - */ - @java.lang.Override - public int getMessageId() { - return messageId_; - } - /** - * <code>uint32 messageId = 1;</code> - * @param value The messageId to set. - * @return This builder for chaining. - */ - public Builder setMessageId(int value) { - - messageId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 messageId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearMessageId() { - - messageId_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>bytes body = 2;</code> - * @return The body. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBody() { - return body_; - } - /** - * <code>bytes body = 2;</code> - * @param value The body to set. - * @return This builder for chaining. - */ - public Builder setBody(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - body_ = value; - onChanged(); - return this; - } - /** - * <code>bytes body = 2;</code> - * @return This builder for chaining. - */ - public Builder clearBody() { - - body_ = getDefaultInstance().getBody(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:UnionCmd) - } - - // @@protoc_insertion_point(class_scope:UnionCmd) - private static final emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd(); - } - - public static emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<UnionCmd> - PARSER = new com.google.protobuf.AbstractParser<UnionCmd>() { - @java.lang.Override - public UnionCmd parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UnionCmd(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<UnionCmd> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<UnionCmd> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_UnionCmd_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_UnionCmd_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\016UnionCmd.proto\"+\n\010UnionCmd\022\021\n\tmessageI" + - "d\030\001 \001(\r\022\014\n\004body\030\002 \001(\014B\033\n\031emu.grasscutter" + - ".net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_UnionCmd_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_UnionCmd_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_UnionCmd_descriptor, - new java.lang.String[] { "MessageId", "Body", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/UnlockAvatarTalentReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/UnlockAvatarTalentReqOuterClass.java deleted file mode 100644 index ef7efd41e..000000000 --- a/src/main/java/emu/grasscutter/net/proto/UnlockAvatarTalentReqOuterClass.java +++ /dev/null @@ -1,608 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: UnlockAvatarTalentReq.proto - -package emu.grasscutter.net.proto; - -public final class UnlockAvatarTalentReqOuterClass { - private UnlockAvatarTalentReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface UnlockAvatarTalentReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:UnlockAvatarTalentReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>uint32 talentId = 2;</code> - * @return The talentId. - */ - int getTalentId(); - } - /** - * Protobuf type {@code UnlockAvatarTalentReq} - */ - public static final class UnlockAvatarTalentReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:UnlockAvatarTalentReq) - UnlockAvatarTalentReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use UnlockAvatarTalentReq.newBuilder() to construct. - private UnlockAvatarTalentReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private UnlockAvatarTalentReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UnlockAvatarTalentReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UnlockAvatarTalentReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 16: { - - talentId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.internal_static_UnlockAvatarTalentReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.internal_static_UnlockAvatarTalentReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq.class, emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq.Builder.class); - } - - public static final int AVATARGUID_FIELD_NUMBER = 1; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int TALENTID_FIELD_NUMBER = 2; - private int talentId_; - /** - * <code>uint32 talentId = 2;</code> - * @return The talentId. - */ - @java.lang.Override - public int getTalentId() { - return talentId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (avatarGuid_ != 0L) { - output.writeUInt64(1, avatarGuid_); - } - if (talentId_ != 0) { - output.writeUInt32(2, talentId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, avatarGuid_); - } - if (talentId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, talentId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq other = (emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq) obj; - - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (getTalentId() - != other.getTalentId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - hash = (37 * hash) + TALENTID_FIELD_NUMBER; - hash = (53 * hash) + getTalentId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code UnlockAvatarTalentReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:UnlockAvatarTalentReq) - emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.internal_static_UnlockAvatarTalentReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.internal_static_UnlockAvatarTalentReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq.class, emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - avatarGuid_ = 0L; - - talentId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.internal_static_UnlockAvatarTalentReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq build() { - emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq buildPartial() { - emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq result = new emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq(this); - result.avatarGuid_ = avatarGuid_; - result.talentId_ = talentId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq) { - return mergeFrom((emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq other) { - if (other == emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq.getDefaultInstance()) return this; - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - if (other.getTalentId() != 0) { - setTalentId(other.getTalentId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private int talentId_ ; - /** - * <code>uint32 talentId = 2;</code> - * @return The talentId. - */ - @java.lang.Override - public int getTalentId() { - return talentId_; - } - /** - * <code>uint32 talentId = 2;</code> - * @param value The talentId to set. - * @return This builder for chaining. - */ - public Builder setTalentId(int value) { - - talentId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 talentId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearTalentId() { - - talentId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:UnlockAvatarTalentReq) - } - - // @@protoc_insertion_point(class_scope:UnlockAvatarTalentReq) - private static final emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq(); - } - - public static emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<UnlockAvatarTalentReq> - PARSER = new com.google.protobuf.AbstractParser<UnlockAvatarTalentReq>() { - @java.lang.Override - public UnlockAvatarTalentReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UnlockAvatarTalentReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<UnlockAvatarTalentReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<UnlockAvatarTalentReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_UnlockAvatarTalentReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_UnlockAvatarTalentReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033UnlockAvatarTalentReq.proto\"=\n\025UnlockA" + - "vatarTalentReq\022\022\n\navatarGuid\030\001 \001(\004\022\020\n\010ta" + - "lentId\030\002 \001(\rB\033\n\031emu.grasscutter.net.prot" + - "ob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_UnlockAvatarTalentReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_UnlockAvatarTalentReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_UnlockAvatarTalentReq_descriptor, - new java.lang.String[] { "AvatarGuid", "TalentId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/UnlockAvatarTalentRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/UnlockAvatarTalentRspOuterClass.java deleted file mode 100644 index 35361ecda..000000000 --- a/src/main/java/emu/grasscutter/net/proto/UnlockAvatarTalentRspOuterClass.java +++ /dev/null @@ -1,678 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: UnlockAvatarTalentRsp.proto - -package emu.grasscutter.net.proto; - -public final class UnlockAvatarTalentRspOuterClass { - private UnlockAvatarTalentRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface UnlockAvatarTalentRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:UnlockAvatarTalentRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>uint32 talentId = 3;</code> - * @return The talentId. - */ - int getTalentId(); - } - /** - * Protobuf type {@code UnlockAvatarTalentRsp} - */ - public static final class UnlockAvatarTalentRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:UnlockAvatarTalentRsp) - UnlockAvatarTalentRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use UnlockAvatarTalentRsp.newBuilder() to construct. - private UnlockAvatarTalentRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private UnlockAvatarTalentRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UnlockAvatarTalentRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UnlockAvatarTalentRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 24: { - - talentId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.internal_static_UnlockAvatarTalentRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.internal_static_UnlockAvatarTalentRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp.class, emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int AVATARGUID_FIELD_NUMBER = 2; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int TALENTID_FIELD_NUMBER = 3; - private int talentId_; - /** - * <code>uint32 talentId = 3;</code> - * @return The talentId. - */ - @java.lang.Override - public int getTalentId() { - return talentId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (avatarGuid_ != 0L) { - output.writeUInt64(2, avatarGuid_); - } - if (talentId_ != 0) { - output.writeUInt32(3, talentId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, avatarGuid_); - } - if (talentId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, talentId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp other = (emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (getTalentId() - != other.getTalentId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - hash = (37 * hash) + TALENTID_FIELD_NUMBER; - hash = (53 * hash) + getTalentId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code UnlockAvatarTalentRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:UnlockAvatarTalentRsp) - emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.internal_static_UnlockAvatarTalentRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.internal_static_UnlockAvatarTalentRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp.class, emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - avatarGuid_ = 0L; - - talentId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.internal_static_UnlockAvatarTalentRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp build() { - emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp buildPartial() { - emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp result = new emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp(this); - result.retcode_ = retcode_; - result.avatarGuid_ = avatarGuid_; - result.talentId_ = talentId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp) { - return mergeFrom((emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp other) { - if (other == emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - if (other.getTalentId() != 0) { - setTalentId(other.getTalentId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 2;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private int talentId_ ; - /** - * <code>uint32 talentId = 3;</code> - * @return The talentId. - */ - @java.lang.Override - public int getTalentId() { - return talentId_; - } - /** - * <code>uint32 talentId = 3;</code> - * @param value The talentId to set. - * @return This builder for chaining. - */ - public Builder setTalentId(int value) { - - talentId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 talentId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearTalentId() { - - talentId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:UnlockAvatarTalentRsp) - } - - // @@protoc_insertion_point(class_scope:UnlockAvatarTalentRsp) - private static final emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp(); - } - - public static emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<UnlockAvatarTalentRsp> - PARSER = new com.google.protobuf.AbstractParser<UnlockAvatarTalentRsp>() { - @java.lang.Override - public UnlockAvatarTalentRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UnlockAvatarTalentRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<UnlockAvatarTalentRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<UnlockAvatarTalentRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_UnlockAvatarTalentRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_UnlockAvatarTalentRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033UnlockAvatarTalentRsp.proto\"N\n\025UnlockA" + - "vatarTalentRsp\022\017\n\007retcode\030\001 \001(\005\022\022\n\navata" + - "rGuid\030\002 \001(\004\022\020\n\010talentId\030\003 \001(\rB\033\n\031emu.gra" + - "sscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_UnlockAvatarTalentRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_UnlockAvatarTalentRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_UnlockAvatarTalentRsp_descriptor, - new java.lang.String[] { "Retcode", "AvatarGuid", "TalentId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/UnlockNameCardNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/UnlockNameCardNotifyOuterClass.java deleted file mode 100644 index eed65f28f..000000000 --- a/src/main/java/emu/grasscutter/net/proto/UnlockNameCardNotifyOuterClass.java +++ /dev/null @@ -1,536 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: UnlockNameCardNotify.proto - -package emu.grasscutter.net.proto; - -public final class UnlockNameCardNotifyOuterClass { - private UnlockNameCardNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface UnlockNameCardNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:UnlockNameCardNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 nameCardId = 1;</code> - * @return The nameCardId. - */ - int getNameCardId(); - } - /** - * Protobuf type {@code UnlockNameCardNotify} - */ - public static final class UnlockNameCardNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:UnlockNameCardNotify) - UnlockNameCardNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use UnlockNameCardNotify.newBuilder() to construct. - private UnlockNameCardNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private UnlockNameCardNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UnlockNameCardNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UnlockNameCardNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - nameCardId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.internal_static_UnlockNameCardNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.internal_static_UnlockNameCardNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify.class, emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify.Builder.class); - } - - public static final int NAMECARDID_FIELD_NUMBER = 1; - private int nameCardId_; - /** - * <code>uint32 nameCardId = 1;</code> - * @return The nameCardId. - */ - @java.lang.Override - public int getNameCardId() { - return nameCardId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (nameCardId_ != 0) { - output.writeUInt32(1, nameCardId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nameCardId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, nameCardId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify other = (emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify) obj; - - if (getNameCardId() - != other.getNameCardId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAMECARDID_FIELD_NUMBER; - hash = (53 * hash) + getNameCardId(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code UnlockNameCardNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:UnlockNameCardNotify) - emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.internal_static_UnlockNameCardNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.internal_static_UnlockNameCardNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify.class, emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - nameCardId_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.internal_static_UnlockNameCardNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify build() { - emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify buildPartial() { - emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify result = new emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify(this); - result.nameCardId_ = nameCardId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify) { - return mergeFrom((emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify other) { - if (other == emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify.getDefaultInstance()) return this; - if (other.getNameCardId() != 0) { - setNameCardId(other.getNameCardId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int nameCardId_ ; - /** - * <code>uint32 nameCardId = 1;</code> - * @return The nameCardId. - */ - @java.lang.Override - public int getNameCardId() { - return nameCardId_; - } - /** - * <code>uint32 nameCardId = 1;</code> - * @param value The nameCardId to set. - * @return This builder for chaining. - */ - public Builder setNameCardId(int value) { - - nameCardId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 nameCardId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearNameCardId() { - - nameCardId_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:UnlockNameCardNotify) - } - - // @@protoc_insertion_point(class_scope:UnlockNameCardNotify) - private static final emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify(); - } - - public static emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<UnlockNameCardNotify> - PARSER = new com.google.protobuf.AbstractParser<UnlockNameCardNotify>() { - @java.lang.Override - public UnlockNameCardNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UnlockNameCardNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<UnlockNameCardNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<UnlockNameCardNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_UnlockNameCardNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_UnlockNameCardNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032UnlockNameCardNotify.proto\"*\n\024UnlockNa" + - "meCardNotify\022\022\n\nnameCardId\030\001 \001(\rB\033\n\031emu." + - "grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_UnlockNameCardNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_UnlockNameCardNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_UnlockNameCardNotify_descriptor, - new java.lang.String[] { "NameCardId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/UseItemReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/UseItemReqOuterClass.java deleted file mode 100644 index f3afd262d..000000000 --- a/src/main/java/emu/grasscutter/net/proto/UseItemReqOuterClass.java +++ /dev/null @@ -1,821 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: UseItemReq.proto - -package emu.grasscutter.net.proto; - -public final class UseItemReqOuterClass { - private UseItemReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface UseItemReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:UseItemReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 guid = 1;</code> - * @return The guid. - */ - long getGuid(); - - /** - * <code>uint32 count = 2;</code> - * @return The count. - */ - int getCount(); - - /** - * <code>uint64 targetGuid = 3;</code> - * @return The targetGuid. - */ - long getTargetGuid(); - - /** - * <code>uint32 optionIdx = 4;</code> - * @return The optionIdx. - */ - int getOptionIdx(); - - /** - * <code>bool isEnterMpDungeonTeam = 5;</code> - * @return The isEnterMpDungeonTeam. - */ - boolean getIsEnterMpDungeonTeam(); - } - /** - * Protobuf type {@code UseItemReq} - */ - public static final class UseItemReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:UseItemReq) - UseItemReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use UseItemReq.newBuilder() to construct. - private UseItemReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private UseItemReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UseItemReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UseItemReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - guid_ = input.readUInt64(); - break; - } - case 16: { - - count_ = input.readUInt32(); - break; - } - case 24: { - - targetGuid_ = input.readUInt64(); - break; - } - case 32: { - - optionIdx_ = input.readUInt32(); - break; - } - case 40: { - - isEnterMpDungeonTeam_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.UseItemReqOuterClass.internal_static_UseItemReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.UseItemReqOuterClass.internal_static_UseItemReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq.class, emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq.Builder.class); - } - - public static final int GUID_FIELD_NUMBER = 1; - private long guid_; - /** - * <code>uint64 guid = 1;</code> - * @return The guid. - */ - @java.lang.Override - public long getGuid() { - return guid_; - } - - public static final int COUNT_FIELD_NUMBER = 2; - private int count_; - /** - * <code>uint32 count = 2;</code> - * @return The count. - */ - @java.lang.Override - public int getCount() { - return count_; - } - - public static final int TARGETGUID_FIELD_NUMBER = 3; - private long targetGuid_; - /** - * <code>uint64 targetGuid = 3;</code> - * @return The targetGuid. - */ - @java.lang.Override - public long getTargetGuid() { - return targetGuid_; - } - - public static final int OPTIONIDX_FIELD_NUMBER = 4; - private int optionIdx_; - /** - * <code>uint32 optionIdx = 4;</code> - * @return The optionIdx. - */ - @java.lang.Override - public int getOptionIdx() { - return optionIdx_; - } - - public static final int ISENTERMPDUNGEONTEAM_FIELD_NUMBER = 5; - private boolean isEnterMpDungeonTeam_; - /** - * <code>bool isEnterMpDungeonTeam = 5;</code> - * @return The isEnterMpDungeonTeam. - */ - @java.lang.Override - public boolean getIsEnterMpDungeonTeam() { - return isEnterMpDungeonTeam_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (guid_ != 0L) { - output.writeUInt64(1, guid_); - } - if (count_ != 0) { - output.writeUInt32(2, count_); - } - if (targetGuid_ != 0L) { - output.writeUInt64(3, targetGuid_); - } - if (optionIdx_ != 0) { - output.writeUInt32(4, optionIdx_); - } - if (isEnterMpDungeonTeam_ != false) { - output.writeBool(5, isEnterMpDungeonTeam_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (guid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, guid_); - } - if (count_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, count_); - } - if (targetGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, targetGuid_); - } - if (optionIdx_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, optionIdx_); - } - if (isEnterMpDungeonTeam_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, isEnterMpDungeonTeam_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq other = (emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq) obj; - - if (getGuid() - != other.getGuid()) return false; - if (getCount() - != other.getCount()) return false; - if (getTargetGuid() - != other.getTargetGuid()) return false; - if (getOptionIdx() - != other.getOptionIdx()) return false; - if (getIsEnterMpDungeonTeam() - != other.getIsEnterMpDungeonTeam()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGuid()); - hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + getCount(); - hash = (37 * hash) + TARGETGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTargetGuid()); - hash = (37 * hash) + OPTIONIDX_FIELD_NUMBER; - hash = (53 * hash) + getOptionIdx(); - hash = (37 * hash) + ISENTERMPDUNGEONTEAM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsEnterMpDungeonTeam()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code UseItemReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:UseItemReq) - emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.UseItemReqOuterClass.internal_static_UseItemReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.UseItemReqOuterClass.internal_static_UseItemReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq.class, emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - guid_ = 0L; - - count_ = 0; - - targetGuid_ = 0L; - - optionIdx_ = 0; - - isEnterMpDungeonTeam_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.UseItemReqOuterClass.internal_static_UseItemReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq build() { - emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq buildPartial() { - emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq result = new emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq(this); - result.guid_ = guid_; - result.count_ = count_; - result.targetGuid_ = targetGuid_; - result.optionIdx_ = optionIdx_; - result.isEnterMpDungeonTeam_ = isEnterMpDungeonTeam_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq) { - return mergeFrom((emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq other) { - if (other == emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq.getDefaultInstance()) return this; - if (other.getGuid() != 0L) { - setGuid(other.getGuid()); - } - if (other.getCount() != 0) { - setCount(other.getCount()); - } - if (other.getTargetGuid() != 0L) { - setTargetGuid(other.getTargetGuid()); - } - if (other.getOptionIdx() != 0) { - setOptionIdx(other.getOptionIdx()); - } - if (other.getIsEnterMpDungeonTeam() != false) { - setIsEnterMpDungeonTeam(other.getIsEnterMpDungeonTeam()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long guid_ ; - /** - * <code>uint64 guid = 1;</code> - * @return The guid. - */ - @java.lang.Override - public long getGuid() { - return guid_; - } - /** - * <code>uint64 guid = 1;</code> - * @param value The guid to set. - * @return This builder for chaining. - */ - public Builder setGuid(long value) { - - guid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 guid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearGuid() { - - guid_ = 0L; - onChanged(); - return this; - } - - private int count_ ; - /** - * <code>uint32 count = 2;</code> - * @return The count. - */ - @java.lang.Override - public int getCount() { - return count_; - } - /** - * <code>uint32 count = 2;</code> - * @param value The count to set. - * @return This builder for chaining. - */ - public Builder setCount(int value) { - - count_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 count = 2;</code> - * @return This builder for chaining. - */ - public Builder clearCount() { - - count_ = 0; - onChanged(); - return this; - } - - private long targetGuid_ ; - /** - * <code>uint64 targetGuid = 3;</code> - * @return The targetGuid. - */ - @java.lang.Override - public long getTargetGuid() { - return targetGuid_; - } - /** - * <code>uint64 targetGuid = 3;</code> - * @param value The targetGuid to set. - * @return This builder for chaining. - */ - public Builder setTargetGuid(long value) { - - targetGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 targetGuid = 3;</code> - * @return This builder for chaining. - */ - public Builder clearTargetGuid() { - - targetGuid_ = 0L; - onChanged(); - return this; - } - - private int optionIdx_ ; - /** - * <code>uint32 optionIdx = 4;</code> - * @return The optionIdx. - */ - @java.lang.Override - public int getOptionIdx() { - return optionIdx_; - } - /** - * <code>uint32 optionIdx = 4;</code> - * @param value The optionIdx to set. - * @return This builder for chaining. - */ - public Builder setOptionIdx(int value) { - - optionIdx_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 optionIdx = 4;</code> - * @return This builder for chaining. - */ - public Builder clearOptionIdx() { - - optionIdx_ = 0; - onChanged(); - return this; - } - - private boolean isEnterMpDungeonTeam_ ; - /** - * <code>bool isEnterMpDungeonTeam = 5;</code> - * @return The isEnterMpDungeonTeam. - */ - @java.lang.Override - public boolean getIsEnterMpDungeonTeam() { - return isEnterMpDungeonTeam_; - } - /** - * <code>bool isEnterMpDungeonTeam = 5;</code> - * @param value The isEnterMpDungeonTeam to set. - * @return This builder for chaining. - */ - public Builder setIsEnterMpDungeonTeam(boolean value) { - - isEnterMpDungeonTeam_ = value; - onChanged(); - return this; - } - /** - * <code>bool isEnterMpDungeonTeam = 5;</code> - * @return This builder for chaining. - */ - public Builder clearIsEnterMpDungeonTeam() { - - isEnterMpDungeonTeam_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:UseItemReq) - } - - // @@protoc_insertion_point(class_scope:UseItemReq) - private static final emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq(); - } - - public static emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<UseItemReq> - PARSER = new com.google.protobuf.AbstractParser<UseItemReq>() { - @java.lang.Override - public UseItemReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UseItemReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<UseItemReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<UseItemReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_UseItemReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_UseItemReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020UseItemReq.proto\"n\n\nUseItemReq\022\014\n\004guid" + - "\030\001 \001(\004\022\r\n\005count\030\002 \001(\r\022\022\n\ntargetGuid\030\003 \001(" + - "\004\022\021\n\toptionIdx\030\004 \001(\r\022\034\n\024isEnterMpDungeon" + - "Team\030\005 \001(\010B\033\n\031emu.grasscutter.net.protob" + - "\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_UseItemReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_UseItemReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_UseItemReq_descriptor, - new java.lang.String[] { "Guid", "Count", "TargetGuid", "OptionIdx", "IsEnterMpDungeonTeam", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/UseItemRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/UseItemRspOuterClass.java deleted file mode 100644 index dd2fbad10..000000000 --- a/src/main/java/emu/grasscutter/net/proto/UseItemRspOuterClass.java +++ /dev/null @@ -1,819 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: UseItemRsp.proto - -package emu.grasscutter.net.proto; - -public final class UseItemRspOuterClass { - private UseItemRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface UseItemRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:UseItemRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint64 guid = 2;</code> - * @return The guid. - */ - long getGuid(); - - /** - * <code>uint32 itemId = 3;</code> - * @return The itemId. - */ - int getItemId(); - - /** - * <code>uint64 targetGuid = 4;</code> - * @return The targetGuid. - */ - long getTargetGuid(); - - /** - * <code>uint32 optionIdx = 5;</code> - * @return The optionIdx. - */ - int getOptionIdx(); - } - /** - * Protobuf type {@code UseItemRsp} - */ - public static final class UseItemRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:UseItemRsp) - UseItemRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use UseItemRsp.newBuilder() to construct. - private UseItemRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private UseItemRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UseItemRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UseItemRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - guid_ = input.readUInt64(); - break; - } - case 24: { - - itemId_ = input.readUInt32(); - break; - } - case 32: { - - targetGuid_ = input.readUInt64(); - break; - } - case 40: { - - optionIdx_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.UseItemRspOuterClass.internal_static_UseItemRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.UseItemRspOuterClass.internal_static_UseItemRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp.class, emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int GUID_FIELD_NUMBER = 2; - private long guid_; - /** - * <code>uint64 guid = 2;</code> - * @return The guid. - */ - @java.lang.Override - public long getGuid() { - return guid_; - } - - public static final int ITEMID_FIELD_NUMBER = 3; - private int itemId_; - /** - * <code>uint32 itemId = 3;</code> - * @return The itemId. - */ - @java.lang.Override - public int getItemId() { - return itemId_; - } - - public static final int TARGETGUID_FIELD_NUMBER = 4; - private long targetGuid_; - /** - * <code>uint64 targetGuid = 4;</code> - * @return The targetGuid. - */ - @java.lang.Override - public long getTargetGuid() { - return targetGuid_; - } - - public static final int OPTIONIDX_FIELD_NUMBER = 5; - private int optionIdx_; - /** - * <code>uint32 optionIdx = 5;</code> - * @return The optionIdx. - */ - @java.lang.Override - public int getOptionIdx() { - return optionIdx_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (guid_ != 0L) { - output.writeUInt64(2, guid_); - } - if (itemId_ != 0) { - output.writeUInt32(3, itemId_); - } - if (targetGuid_ != 0L) { - output.writeUInt64(4, targetGuid_); - } - if (optionIdx_ != 0) { - output.writeUInt32(5, optionIdx_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (guid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, guid_); - } - if (itemId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, itemId_); - } - if (targetGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, targetGuid_); - } - if (optionIdx_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, optionIdx_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp other = (emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getGuid() - != other.getGuid()) return false; - if (getItemId() - != other.getItemId()) return false; - if (getTargetGuid() - != other.getTargetGuid()) return false; - if (getOptionIdx() - != other.getOptionIdx()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + GUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGuid()); - hash = (37 * hash) + ITEMID_FIELD_NUMBER; - hash = (53 * hash) + getItemId(); - hash = (37 * hash) + TARGETGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTargetGuid()); - hash = (37 * hash) + OPTIONIDX_FIELD_NUMBER; - hash = (53 * hash) + getOptionIdx(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code UseItemRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:UseItemRsp) - emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.UseItemRspOuterClass.internal_static_UseItemRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.UseItemRspOuterClass.internal_static_UseItemRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp.class, emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - guid_ = 0L; - - itemId_ = 0; - - targetGuid_ = 0L; - - optionIdx_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.UseItemRspOuterClass.internal_static_UseItemRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp build() { - emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp buildPartial() { - emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp result = new emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp(this); - result.retcode_ = retcode_; - result.guid_ = guid_; - result.itemId_ = itemId_; - result.targetGuid_ = targetGuid_; - result.optionIdx_ = optionIdx_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp) { - return mergeFrom((emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp other) { - if (other == emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getGuid() != 0L) { - setGuid(other.getGuid()); - } - if (other.getItemId() != 0) { - setItemId(other.getItemId()); - } - if (other.getTargetGuid() != 0L) { - setTargetGuid(other.getTargetGuid()); - } - if (other.getOptionIdx() != 0) { - setOptionIdx(other.getOptionIdx()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private long guid_ ; - /** - * <code>uint64 guid = 2;</code> - * @return The guid. - */ - @java.lang.Override - public long getGuid() { - return guid_; - } - /** - * <code>uint64 guid = 2;</code> - * @param value The guid to set. - * @return This builder for chaining. - */ - public Builder setGuid(long value) { - - guid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 guid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearGuid() { - - guid_ = 0L; - onChanged(); - return this; - } - - private int itemId_ ; - /** - * <code>uint32 itemId = 3;</code> - * @return The itemId. - */ - @java.lang.Override - public int getItemId() { - return itemId_; - } - /** - * <code>uint32 itemId = 3;</code> - * @param value The itemId to set. - * @return This builder for chaining. - */ - public Builder setItemId(int value) { - - itemId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 itemId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearItemId() { - - itemId_ = 0; - onChanged(); - return this; - } - - private long targetGuid_ ; - /** - * <code>uint64 targetGuid = 4;</code> - * @return The targetGuid. - */ - @java.lang.Override - public long getTargetGuid() { - return targetGuid_; - } - /** - * <code>uint64 targetGuid = 4;</code> - * @param value The targetGuid to set. - * @return This builder for chaining. - */ - public Builder setTargetGuid(long value) { - - targetGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 targetGuid = 4;</code> - * @return This builder for chaining. - */ - public Builder clearTargetGuid() { - - targetGuid_ = 0L; - onChanged(); - return this; - } - - private int optionIdx_ ; - /** - * <code>uint32 optionIdx = 5;</code> - * @return The optionIdx. - */ - @java.lang.Override - public int getOptionIdx() { - return optionIdx_; - } - /** - * <code>uint32 optionIdx = 5;</code> - * @param value The optionIdx to set. - * @return This builder for chaining. - */ - public Builder setOptionIdx(int value) { - - optionIdx_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 optionIdx = 5;</code> - * @return This builder for chaining. - */ - public Builder clearOptionIdx() { - - optionIdx_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:UseItemRsp) - } - - // @@protoc_insertion_point(class_scope:UseItemRsp) - private static final emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp(); - } - - public static emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<UseItemRsp> - PARSER = new com.google.protobuf.AbstractParser<UseItemRsp>() { - @java.lang.Override - public UseItemRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UseItemRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<UseItemRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<UseItemRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_UseItemRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_UseItemRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020UseItemRsp.proto\"b\n\nUseItemRsp\022\017\n\007retc" + - "ode\030\001 \001(\005\022\014\n\004guid\030\002 \001(\004\022\016\n\006itemId\030\003 \001(\r\022" + - "\022\n\ntargetGuid\030\004 \001(\004\022\021\n\toptionIdx\030\005 \001(\rB\033" + - "\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_UseItemRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_UseItemRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_UseItemRsp_descriptor, - new java.lang.String[] { "Retcode", "Guid", "ItemId", "TargetGuid", "OptionIdx", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/VectorOuterClass.java b/src/main/java/emu/grasscutter/net/proto/VectorOuterClass.java deleted file mode 100644 index 4151faaec..000000000 --- a/src/main/java/emu/grasscutter/net/proto/VectorOuterClass.java +++ /dev/null @@ -1,682 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Vector.proto - -package emu.grasscutter.net.proto; - -public final class VectorOuterClass { - private VectorOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface VectorOrBuilder extends - // @@protoc_insertion_point(interface_extends:Vector) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>float x = 1;</code> - * @return The x. - */ - float getX(); - - /** - * <code>float y = 2;</code> - * @return The y. - */ - float getY(); - - /** - * <code>float z = 3;</code> - * @return The z. - */ - float getZ(); - } - /** - * Protobuf type {@code Vector} - */ - public static final class Vector extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Vector) - VectorOrBuilder { - private static final long serialVersionUID = 0L; - // Use Vector.newBuilder() to construct. - private Vector(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Vector() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Vector(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Vector( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 13: { - - x_ = input.readFloat(); - break; - } - case 21: { - - y_ = input.readFloat(); - break; - } - case 29: { - - z_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.VectorOuterClass.internal_static_Vector_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.VectorOuterClass.internal_static_Vector_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.VectorOuterClass.Vector.class, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder.class); - } - - public static final int X_FIELD_NUMBER = 1; - private float x_; - /** - * <code>float x = 1;</code> - * @return The x. - */ - @java.lang.Override - public float getX() { - return x_; - } - - public static final int Y_FIELD_NUMBER = 2; - private float y_; - /** - * <code>float y = 2;</code> - * @return The y. - */ - @java.lang.Override - public float getY() { - return y_; - } - - public static final int Z_FIELD_NUMBER = 3; - private float z_; - /** - * <code>float z = 3;</code> - * @return The z. - */ - @java.lang.Override - public float getZ() { - return z_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (x_ != 0F) { - output.writeFloat(1, x_); - } - if (y_ != 0F) { - output.writeFloat(2, y_); - } - if (z_ != 0F) { - output.writeFloat(3, z_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (x_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, x_); - } - if (y_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, y_); - } - if (z_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, z_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.VectorOuterClass.Vector)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.VectorOuterClass.Vector other = (emu.grasscutter.net.proto.VectorOuterClass.Vector) obj; - - if (java.lang.Float.floatToIntBits(getX()) - != java.lang.Float.floatToIntBits( - other.getX())) return false; - if (java.lang.Float.floatToIntBits(getY()) - != java.lang.Float.floatToIntBits( - other.getY())) return false; - if (java.lang.Float.floatToIntBits(getZ()) - != java.lang.Float.floatToIntBits( - other.getZ())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getX()); - hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getY()); - hash = (37 * hash) + Z_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getZ()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.VectorOuterClass.Vector parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.VectorOuterClass.Vector parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.VectorOuterClass.Vector parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.VectorOuterClass.Vector parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.VectorOuterClass.Vector parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.VectorOuterClass.Vector parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.VectorOuterClass.Vector parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.VectorOuterClass.Vector parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.VectorOuterClass.Vector parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.VectorOuterClass.Vector parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.VectorOuterClass.Vector parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.VectorOuterClass.Vector parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.VectorOuterClass.Vector prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Vector} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:Vector) - emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.VectorOuterClass.internal_static_Vector_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.VectorOuterClass.internal_static_Vector_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.VectorOuterClass.Vector.class, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - x_ = 0F; - - y_ = 0F; - - z_ = 0F; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.VectorOuterClass.internal_static_Vector_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getDefaultInstanceForType() { - return emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector build() { - emu.grasscutter.net.proto.VectorOuterClass.Vector result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector buildPartial() { - emu.grasscutter.net.proto.VectorOuterClass.Vector result = new emu.grasscutter.net.proto.VectorOuterClass.Vector(this); - result.x_ = x_; - result.y_ = y_; - result.z_ = z_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.VectorOuterClass.Vector) { - return mergeFrom((emu.grasscutter.net.proto.VectorOuterClass.Vector)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.VectorOuterClass.Vector other) { - if (other == emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance()) return this; - if (other.getX() != 0F) { - setX(other.getX()); - } - if (other.getY() != 0F) { - setY(other.getY()); - } - if (other.getZ() != 0F) { - setZ(other.getZ()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.VectorOuterClass.Vector parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.VectorOuterClass.Vector) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private float x_ ; - /** - * <code>float x = 1;</code> - * @return The x. - */ - @java.lang.Override - public float getX() { - return x_; - } - /** - * <code>float x = 1;</code> - * @param value The x to set. - * @return This builder for chaining. - */ - public Builder setX(float value) { - - x_ = value; - onChanged(); - return this; - } - /** - * <code>float x = 1;</code> - * @return This builder for chaining. - */ - public Builder clearX() { - - x_ = 0F; - onChanged(); - return this; - } - - private float y_ ; - /** - * <code>float y = 2;</code> - * @return The y. - */ - @java.lang.Override - public float getY() { - return y_; - } - /** - * <code>float y = 2;</code> - * @param value The y to set. - * @return This builder for chaining. - */ - public Builder setY(float value) { - - y_ = value; - onChanged(); - return this; - } - /** - * <code>float y = 2;</code> - * @return This builder for chaining. - */ - public Builder clearY() { - - y_ = 0F; - onChanged(); - return this; - } - - private float z_ ; - /** - * <code>float z = 3;</code> - * @return The z. - */ - @java.lang.Override - public float getZ() { - return z_; - } - /** - * <code>float z = 3;</code> - * @param value The z to set. - * @return This builder for chaining. - */ - public Builder setZ(float value) { - - z_ = value; - onChanged(); - return this; - } - /** - * <code>float z = 3;</code> - * @return This builder for chaining. - */ - public Builder clearZ() { - - z_ = 0F; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Vector) - } - - // @@protoc_insertion_point(class_scope:Vector) - private static final emu.grasscutter.net.proto.VectorOuterClass.Vector DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.VectorOuterClass.Vector(); - } - - public static emu.grasscutter.net.proto.VectorOuterClass.Vector getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<Vector> - PARSER = new com.google.protobuf.AbstractParser<Vector>() { - @java.lang.Override - public Vector parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Vector(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<Vector> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Vector> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.VectorOuterClass.Vector getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Vector_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Vector_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\014Vector.proto\")\n\006Vector\022\t\n\001x\030\001 \001(\002\022\t\n\001y" + - "\030\002 \001(\002\022\t\n\001z\030\003 \001(\002B\033\n\031emu.grasscutter.net" + - ".protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_Vector_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_Vector_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Vector_descriptor, - new java.lang.String[] { "X", "Y", "Z", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/VisionTypeOuterClass.java b/src/main/java/emu/grasscutter/net/proto/VisionTypeOuterClass.java deleted file mode 100644 index da5ffb0ea..000000000 --- a/src/main/java/emu/grasscutter/net/proto/VisionTypeOuterClass.java +++ /dev/null @@ -1,269 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: VisionType.proto - -package emu.grasscutter.net.proto; - -public final class VisionTypeOuterClass { - private VisionTypeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code VisionType} - */ - public enum VisionType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>VisionNone = 0;</code> - */ - VisionNone(0), - /** - * <code>VisionMeet = 1;</code> - */ - VisionMeet(1), - /** - * <code>VisionReborn = 2;</code> - */ - VisionReborn(2), - /** - * <code>VisionReplace = 3;</code> - */ - VisionReplace(3), - /** - * <code>VisionWaypointReborn = 4;</code> - */ - VisionWaypointReborn(4), - /** - * <code>VisionMiss = 5;</code> - */ - VisionMiss(5), - /** - * <code>VisionDie = 6;</code> - */ - VisionDie(6), - /** - * <code>VisionGatherEscape = 7;</code> - */ - VisionGatherEscape(7), - /** - * <code>VisionRefresh = 8;</code> - */ - VisionRefresh(8), - /** - * <code>VisionTransport = 9;</code> - */ - VisionTransport(9), - /** - * <code>VisionReplaceDie = 10;</code> - */ - VisionReplaceDie(10), - /** - * <code>VisionReplaceNoNotify = 11;</code> - */ - VisionReplaceNoNotify(11), - /** - * <code>VisionBorn = 12;</code> - */ - VisionBorn(12), - /** - * <code>VisionPickup = 13;</code> - */ - VisionPickup(13), - /** - * <code>VisionRemove = 14;</code> - */ - VisionRemove(14), - UNRECOGNIZED(-1), - ; - - /** - * <code>VisionNone = 0;</code> - */ - public static final int VisionNone_VALUE = 0; - /** - * <code>VisionMeet = 1;</code> - */ - public static final int VisionMeet_VALUE = 1; - /** - * <code>VisionReborn = 2;</code> - */ - public static final int VisionReborn_VALUE = 2; - /** - * <code>VisionReplace = 3;</code> - */ - public static final int VisionReplace_VALUE = 3; - /** - * <code>VisionWaypointReborn = 4;</code> - */ - public static final int VisionWaypointReborn_VALUE = 4; - /** - * <code>VisionMiss = 5;</code> - */ - public static final int VisionMiss_VALUE = 5; - /** - * <code>VisionDie = 6;</code> - */ - public static final int VisionDie_VALUE = 6; - /** - * <code>VisionGatherEscape = 7;</code> - */ - public static final int VisionGatherEscape_VALUE = 7; - /** - * <code>VisionRefresh = 8;</code> - */ - public static final int VisionRefresh_VALUE = 8; - /** - * <code>VisionTransport = 9;</code> - */ - public static final int VisionTransport_VALUE = 9; - /** - * <code>VisionReplaceDie = 10;</code> - */ - public static final int VisionReplaceDie_VALUE = 10; - /** - * <code>VisionReplaceNoNotify = 11;</code> - */ - public static final int VisionReplaceNoNotify_VALUE = 11; - /** - * <code>VisionBorn = 12;</code> - */ - public static final int VisionBorn_VALUE = 12; - /** - * <code>VisionPickup = 13;</code> - */ - public static final int VisionPickup_VALUE = 13; - /** - * <code>VisionRemove = 14;</code> - */ - public static final int VisionRemove_VALUE = 14; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static VisionType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static VisionType forNumber(int value) { - switch (value) { - case 0: return VisionNone; - case 1: return VisionMeet; - case 2: return VisionReborn; - case 3: return VisionReplace; - case 4: return VisionWaypointReborn; - case 5: return VisionMiss; - case 6: return VisionDie; - case 7: return VisionGatherEscape; - case 8: return VisionRefresh; - case 9: return VisionTransport; - case 10: return VisionReplaceDie; - case 11: return VisionReplaceNoNotify; - case 12: return VisionBorn; - case 13: return VisionPickup; - case 14: return VisionRemove; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<VisionType> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - VisionType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<VisionType>() { - public VisionType findValueByNumber(int number) { - return VisionType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return emu.grasscutter.net.proto.VisionTypeOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final VisionType[] VALUES = values(); - - public static VisionType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private VisionType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:VisionType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020VisionType.proto*\257\002\n\nVisionType\022\016\n\nVis" + - "ionNone\020\000\022\016\n\nVisionMeet\020\001\022\020\n\014VisionRebor" + - "n\020\002\022\021\n\rVisionReplace\020\003\022\030\n\024VisionWaypoint" + - "Reborn\020\004\022\016\n\nVisionMiss\020\005\022\r\n\tVisionDie\020\006\022" + - "\026\n\022VisionGatherEscape\020\007\022\021\n\rVisionRefresh" + - "\020\010\022\023\n\017VisionTransport\020\t\022\024\n\020VisionReplace" + - "Die\020\n\022\031\n\025VisionReplaceNoNotify\020\013\022\016\n\nVisi" + - "onBorn\020\014\022\020\n\014VisionPickup\020\r\022\020\n\014VisionRemo" + - "ve\020\016B\033\n\031emu.grasscutter.net.protob\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/WeaponAwakenReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/WeaponAwakenReqOuterClass.java deleted file mode 100644 index e1cd71b50..000000000 --- a/src/main/java/emu/grasscutter/net/proto/WeaponAwakenReqOuterClass.java +++ /dev/null @@ -1,942 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WeaponAwakenReq.proto - -package emu.grasscutter.net.proto; - -public final class WeaponAwakenReqOuterClass { - private WeaponAwakenReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WeaponAwakenReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:WeaponAwakenReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 targetWeaponGuid = 1;</code> - * @return The targetWeaponGuid. - */ - long getTargetWeaponGuid(); - - /** - * <code>uint64 itemGuid = 2;</code> - * @return The itemGuid. - */ - long getItemGuid(); - - /** - * <code>map<uint32, uint32> affixLevelMap = 3;</code> - */ - int getAffixLevelMapCount(); - /** - * <code>map<uint32, uint32> affixLevelMap = 3;</code> - */ - boolean containsAffixLevelMap( - int key); - /** - * Use {@link #getAffixLevelMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Integer> - getAffixLevelMap(); - /** - * <code>map<uint32, uint32> affixLevelMap = 3;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Integer> - getAffixLevelMapMap(); - /** - * <code>map<uint32, uint32> affixLevelMap = 3;</code> - */ - - int getAffixLevelMapOrDefault( - int key, - int defaultValue); - /** - * <code>map<uint32, uint32> affixLevelMap = 3;</code> - */ - - int getAffixLevelMapOrThrow( - int key); - } - /** - * Protobuf type {@code WeaponAwakenReq} - */ - public static final class WeaponAwakenReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WeaponAwakenReq) - WeaponAwakenReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use WeaponAwakenReq.newBuilder() to construct. - private WeaponAwakenReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private WeaponAwakenReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WeaponAwakenReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WeaponAwakenReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - targetWeaponGuid_ = input.readUInt64(); - break; - } - case 16: { - - itemGuid_ = input.readUInt64(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - affixLevelMap_ = com.google.protobuf.MapField.newMapField( - AffixLevelMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - affixLevelMap__ = input.readMessage( - AffixLevelMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - affixLevelMap_.getMutableMap().put( - affixLevelMap__.getKey(), affixLevelMap__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.internal_static_WeaponAwakenReq_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetAffixLevelMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.internal_static_WeaponAwakenReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq.class, emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq.Builder.class); - } - - public static final int TARGETWEAPONGUID_FIELD_NUMBER = 1; - private long targetWeaponGuid_; - /** - * <code>uint64 targetWeaponGuid = 1;</code> - * @return The targetWeaponGuid. - */ - @java.lang.Override - public long getTargetWeaponGuid() { - return targetWeaponGuid_; - } - - public static final int ITEMGUID_FIELD_NUMBER = 2; - private long itemGuid_; - /** - * <code>uint64 itemGuid = 2;</code> - * @return The itemGuid. - */ - @java.lang.Override - public long getItemGuid() { - return itemGuid_; - } - - public static final int AFFIXLEVELMAP_FIELD_NUMBER = 3; - private static final class AffixLevelMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Integer>newDefaultInstance( - emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.internal_static_WeaponAwakenReq_AffixLevelMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> affixLevelMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetAffixLevelMap() { - if (affixLevelMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AffixLevelMapDefaultEntryHolder.defaultEntry); - } - return affixLevelMap_; - } - - public int getAffixLevelMapCount() { - return internalGetAffixLevelMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> affixLevelMap = 3;</code> - */ - - @java.lang.Override - public boolean containsAffixLevelMap( - int key) { - - return internalGetAffixLevelMap().getMap().containsKey(key); - } - /** - * Use {@link #getAffixLevelMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getAffixLevelMap() { - return getAffixLevelMapMap(); - } - /** - * <code>map<uint32, uint32> affixLevelMap = 3;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getAffixLevelMapMap() { - return internalGetAffixLevelMap().getMap(); - } - /** - * <code>map<uint32, uint32> affixLevelMap = 3;</code> - */ - @java.lang.Override - - public int getAffixLevelMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetAffixLevelMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> affixLevelMap = 3;</code> - */ - @java.lang.Override - - public int getAffixLevelMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetAffixLevelMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (targetWeaponGuid_ != 0L) { - output.writeUInt64(1, targetWeaponGuid_); - } - if (itemGuid_ != 0L) { - output.writeUInt64(2, itemGuid_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetAffixLevelMap(), - AffixLevelMapDefaultEntryHolder.defaultEntry, - 3); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (targetWeaponGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, targetWeaponGuid_); - } - if (itemGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, itemGuid_); - } - for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry - : internalGetAffixLevelMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - affixLevelMap__ = AffixLevelMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, affixLevelMap__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq other = (emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq) obj; - - if (getTargetWeaponGuid() - != other.getTargetWeaponGuid()) return false; - if (getItemGuid() - != other.getItemGuid()) return false; - if (!internalGetAffixLevelMap().equals( - other.internalGetAffixLevelMap())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TARGETWEAPONGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTargetWeaponGuid()); - hash = (37 * hash) + ITEMGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getItemGuid()); - if (!internalGetAffixLevelMap().getMap().isEmpty()) { - hash = (37 * hash) + AFFIXLEVELMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetAffixLevelMap().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code WeaponAwakenReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:WeaponAwakenReq) - emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.internal_static_WeaponAwakenReq_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetAffixLevelMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 3: - return internalGetMutableAffixLevelMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.internal_static_WeaponAwakenReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq.class, emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - targetWeaponGuid_ = 0L; - - itemGuid_ = 0L; - - internalGetMutableAffixLevelMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.internal_static_WeaponAwakenReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq build() { - emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq buildPartial() { - emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq result = new emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq(this); - int from_bitField0_ = bitField0_; - result.targetWeaponGuid_ = targetWeaponGuid_; - result.itemGuid_ = itemGuid_; - result.affixLevelMap_ = internalGetAffixLevelMap(); - result.affixLevelMap_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq) { - return mergeFrom((emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq other) { - if (other == emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq.getDefaultInstance()) return this; - if (other.getTargetWeaponGuid() != 0L) { - setTargetWeaponGuid(other.getTargetWeaponGuid()); - } - if (other.getItemGuid() != 0L) { - setItemGuid(other.getItemGuid()); - } - internalGetMutableAffixLevelMap().mergeFrom( - other.internalGetAffixLevelMap()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long targetWeaponGuid_ ; - /** - * <code>uint64 targetWeaponGuid = 1;</code> - * @return The targetWeaponGuid. - */ - @java.lang.Override - public long getTargetWeaponGuid() { - return targetWeaponGuid_; - } - /** - * <code>uint64 targetWeaponGuid = 1;</code> - * @param value The targetWeaponGuid to set. - * @return This builder for chaining. - */ - public Builder setTargetWeaponGuid(long value) { - - targetWeaponGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 targetWeaponGuid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTargetWeaponGuid() { - - targetWeaponGuid_ = 0L; - onChanged(); - return this; - } - - private long itemGuid_ ; - /** - * <code>uint64 itemGuid = 2;</code> - * @return The itemGuid. - */ - @java.lang.Override - public long getItemGuid() { - return itemGuid_; - } - /** - * <code>uint64 itemGuid = 2;</code> - * @param value The itemGuid to set. - * @return This builder for chaining. - */ - public Builder setItemGuid(long value) { - - itemGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 itemGuid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearItemGuid() { - - itemGuid_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> affixLevelMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetAffixLevelMap() { - if (affixLevelMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AffixLevelMapDefaultEntryHolder.defaultEntry); - } - return affixLevelMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetMutableAffixLevelMap() { - onChanged();; - if (affixLevelMap_ == null) { - affixLevelMap_ = com.google.protobuf.MapField.newMapField( - AffixLevelMapDefaultEntryHolder.defaultEntry); - } - if (!affixLevelMap_.isMutable()) { - affixLevelMap_ = affixLevelMap_.copy(); - } - return affixLevelMap_; - } - - public int getAffixLevelMapCount() { - return internalGetAffixLevelMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> affixLevelMap = 3;</code> - */ - - @java.lang.Override - public boolean containsAffixLevelMap( - int key) { - - return internalGetAffixLevelMap().getMap().containsKey(key); - } - /** - * Use {@link #getAffixLevelMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getAffixLevelMap() { - return getAffixLevelMapMap(); - } - /** - * <code>map<uint32, uint32> affixLevelMap = 3;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getAffixLevelMapMap() { - return internalGetAffixLevelMap().getMap(); - } - /** - * <code>map<uint32, uint32> affixLevelMap = 3;</code> - */ - @java.lang.Override - - public int getAffixLevelMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetAffixLevelMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> affixLevelMap = 3;</code> - */ - @java.lang.Override - - public int getAffixLevelMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetAffixLevelMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearAffixLevelMap() { - internalGetMutableAffixLevelMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, uint32> affixLevelMap = 3;</code> - */ - - public Builder removeAffixLevelMap( - int key) { - - internalGetMutableAffixLevelMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> - getMutableAffixLevelMap() { - return internalGetMutableAffixLevelMap().getMutableMap(); - } - /** - * <code>map<uint32, uint32> affixLevelMap = 3;</code> - */ - public Builder putAffixLevelMap( - int key, - int value) { - - - internalGetMutableAffixLevelMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, uint32> affixLevelMap = 3;</code> - */ - - public Builder putAllAffixLevelMap( - java.util.Map<java.lang.Integer, java.lang.Integer> values) { - internalGetMutableAffixLevelMap().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WeaponAwakenReq) - } - - // @@protoc_insertion_point(class_scope:WeaponAwakenReq) - private static final emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq(); - } - - public static emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<WeaponAwakenReq> - PARSER = new com.google.protobuf.AbstractParser<WeaponAwakenReq>() { - @java.lang.Override - public WeaponAwakenReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WeaponAwakenReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<WeaponAwakenReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<WeaponAwakenReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WeaponAwakenReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WeaponAwakenReq_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WeaponAwakenReq_AffixLevelMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WeaponAwakenReq_AffixLevelMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025WeaponAwakenReq.proto\"\257\001\n\017WeaponAwaken" + - "Req\022\030\n\020targetWeaponGuid\030\001 \001(\004\022\020\n\010itemGui" + - "d\030\002 \001(\004\022:\n\raffixLevelMap\030\003 \003(\0132#.WeaponA" + - "wakenReq.AffixLevelMapEntry\0324\n\022AffixLeve" + - "lMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\r:\0028" + - "\001B\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_WeaponAwakenReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_WeaponAwakenReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WeaponAwakenReq_descriptor, - new java.lang.String[] { "TargetWeaponGuid", "ItemGuid", "AffixLevelMap", }); - internal_static_WeaponAwakenReq_AffixLevelMapEntry_descriptor = - internal_static_WeaponAwakenReq_descriptor.getNestedTypes().get(0); - internal_static_WeaponAwakenReq_AffixLevelMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WeaponAwakenReq_AffixLevelMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/WeaponAwakenRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/WeaponAwakenRspOuterClass.java deleted file mode 100644 index f5cc42232..000000000 --- a/src/main/java/emu/grasscutter/net/proto/WeaponAwakenRspOuterClass.java +++ /dev/null @@ -1,1387 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WeaponAwakenRsp.proto - -package emu.grasscutter.net.proto; - -public final class WeaponAwakenRspOuterClass { - private WeaponAwakenRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WeaponAwakenRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:WeaponAwakenRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint64 targetWeaponGuid = 2;</code> - * @return The targetWeaponGuid. - */ - long getTargetWeaponGuid(); - - /** - * <code>uint32 targetWeaponAwakenLevel = 3;</code> - * @return The targetWeaponAwakenLevel. - */ - int getTargetWeaponAwakenLevel(); - - /** - * <code>map<uint32, uint32> oldAffixLevelMap = 4;</code> - */ - int getOldAffixLevelMapCount(); - /** - * <code>map<uint32, uint32> oldAffixLevelMap = 4;</code> - */ - boolean containsOldAffixLevelMap( - int key); - /** - * Use {@link #getOldAffixLevelMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Integer> - getOldAffixLevelMap(); - /** - * <code>map<uint32, uint32> oldAffixLevelMap = 4;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Integer> - getOldAffixLevelMapMap(); - /** - * <code>map<uint32, uint32> oldAffixLevelMap = 4;</code> - */ - - int getOldAffixLevelMapOrDefault( - int key, - int defaultValue); - /** - * <code>map<uint32, uint32> oldAffixLevelMap = 4;</code> - */ - - int getOldAffixLevelMapOrThrow( - int key); - - /** - * <code>map<uint32, uint32> curAffixLevelMap = 5;</code> - */ - int getCurAffixLevelMapCount(); - /** - * <code>map<uint32, uint32> curAffixLevelMap = 5;</code> - */ - boolean containsCurAffixLevelMap( - int key); - /** - * Use {@link #getCurAffixLevelMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Integer> - getCurAffixLevelMap(); - /** - * <code>map<uint32, uint32> curAffixLevelMap = 5;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Integer> - getCurAffixLevelMapMap(); - /** - * <code>map<uint32, uint32> curAffixLevelMap = 5;</code> - */ - - int getCurAffixLevelMapOrDefault( - int key, - int defaultValue); - /** - * <code>map<uint32, uint32> curAffixLevelMap = 5;</code> - */ - - int getCurAffixLevelMapOrThrow( - int key); - - /** - * <code>uint64 avatarGuid = 6;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - } - /** - * Protobuf type {@code WeaponAwakenRsp} - */ - public static final class WeaponAwakenRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WeaponAwakenRsp) - WeaponAwakenRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use WeaponAwakenRsp.newBuilder() to construct. - private WeaponAwakenRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private WeaponAwakenRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WeaponAwakenRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WeaponAwakenRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - targetWeaponGuid_ = input.readUInt64(); - break; - } - case 24: { - - targetWeaponAwakenLevel_ = input.readUInt32(); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - oldAffixLevelMap_ = com.google.protobuf.MapField.newMapField( - OldAffixLevelMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - oldAffixLevelMap__ = input.readMessage( - OldAffixLevelMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - oldAffixLevelMap_.getMutableMap().put( - oldAffixLevelMap__.getKey(), oldAffixLevelMap__.getValue()); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - curAffixLevelMap_ = com.google.protobuf.MapField.newMapField( - CurAffixLevelMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - curAffixLevelMap__ = input.readMessage( - CurAffixLevelMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - curAffixLevelMap_.getMutableMap().put( - curAffixLevelMap__.getKey(), curAffixLevelMap__.getValue()); - break; - } - case 48: { - - avatarGuid_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.internal_static_WeaponAwakenRsp_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetOldAffixLevelMap(); - case 5: - return internalGetCurAffixLevelMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.internal_static_WeaponAwakenRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp.class, emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int TARGETWEAPONGUID_FIELD_NUMBER = 2; - private long targetWeaponGuid_; - /** - * <code>uint64 targetWeaponGuid = 2;</code> - * @return The targetWeaponGuid. - */ - @java.lang.Override - public long getTargetWeaponGuid() { - return targetWeaponGuid_; - } - - public static final int TARGETWEAPONAWAKENLEVEL_FIELD_NUMBER = 3; - private int targetWeaponAwakenLevel_; - /** - * <code>uint32 targetWeaponAwakenLevel = 3;</code> - * @return The targetWeaponAwakenLevel. - */ - @java.lang.Override - public int getTargetWeaponAwakenLevel() { - return targetWeaponAwakenLevel_; - } - - public static final int OLDAFFIXLEVELMAP_FIELD_NUMBER = 4; - private static final class OldAffixLevelMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Integer>newDefaultInstance( - emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.internal_static_WeaponAwakenRsp_OldAffixLevelMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> oldAffixLevelMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetOldAffixLevelMap() { - if (oldAffixLevelMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - OldAffixLevelMapDefaultEntryHolder.defaultEntry); - } - return oldAffixLevelMap_; - } - - public int getOldAffixLevelMapCount() { - return internalGetOldAffixLevelMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> oldAffixLevelMap = 4;</code> - */ - - @java.lang.Override - public boolean containsOldAffixLevelMap( - int key) { - - return internalGetOldAffixLevelMap().getMap().containsKey(key); - } - /** - * Use {@link #getOldAffixLevelMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getOldAffixLevelMap() { - return getOldAffixLevelMapMap(); - } - /** - * <code>map<uint32, uint32> oldAffixLevelMap = 4;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getOldAffixLevelMapMap() { - return internalGetOldAffixLevelMap().getMap(); - } - /** - * <code>map<uint32, uint32> oldAffixLevelMap = 4;</code> - */ - @java.lang.Override - - public int getOldAffixLevelMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetOldAffixLevelMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> oldAffixLevelMap = 4;</code> - */ - @java.lang.Override - - public int getOldAffixLevelMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetOldAffixLevelMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int CURAFFIXLEVELMAP_FIELD_NUMBER = 5; - private static final class CurAffixLevelMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Integer>newDefaultInstance( - emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.internal_static_WeaponAwakenRsp_CurAffixLevelMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> curAffixLevelMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetCurAffixLevelMap() { - if (curAffixLevelMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CurAffixLevelMapDefaultEntryHolder.defaultEntry); - } - return curAffixLevelMap_; - } - - public int getCurAffixLevelMapCount() { - return internalGetCurAffixLevelMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> curAffixLevelMap = 5;</code> - */ - - @java.lang.Override - public boolean containsCurAffixLevelMap( - int key) { - - return internalGetCurAffixLevelMap().getMap().containsKey(key); - } - /** - * Use {@link #getCurAffixLevelMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getCurAffixLevelMap() { - return getCurAffixLevelMapMap(); - } - /** - * <code>map<uint32, uint32> curAffixLevelMap = 5;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getCurAffixLevelMapMap() { - return internalGetCurAffixLevelMap().getMap(); - } - /** - * <code>map<uint32, uint32> curAffixLevelMap = 5;</code> - */ - @java.lang.Override - - public int getCurAffixLevelMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetCurAffixLevelMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> curAffixLevelMap = 5;</code> - */ - @java.lang.Override - - public int getCurAffixLevelMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetCurAffixLevelMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int AVATARGUID_FIELD_NUMBER = 6; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 6;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (targetWeaponGuid_ != 0L) { - output.writeUInt64(2, targetWeaponGuid_); - } - if (targetWeaponAwakenLevel_ != 0) { - output.writeUInt32(3, targetWeaponAwakenLevel_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetOldAffixLevelMap(), - OldAffixLevelMapDefaultEntryHolder.defaultEntry, - 4); - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetCurAffixLevelMap(), - CurAffixLevelMapDefaultEntryHolder.defaultEntry, - 5); - if (avatarGuid_ != 0L) { - output.writeUInt64(6, avatarGuid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (targetWeaponGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, targetWeaponGuid_); - } - if (targetWeaponAwakenLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, targetWeaponAwakenLevel_); - } - for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry - : internalGetOldAffixLevelMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - oldAffixLevelMap__ = OldAffixLevelMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, oldAffixLevelMap__); - } - for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry - : internalGetCurAffixLevelMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - curAffixLevelMap__ = CurAffixLevelMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, curAffixLevelMap__); - } - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(6, avatarGuid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp other = (emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getTargetWeaponGuid() - != other.getTargetWeaponGuid()) return false; - if (getTargetWeaponAwakenLevel() - != other.getTargetWeaponAwakenLevel()) return false; - if (!internalGetOldAffixLevelMap().equals( - other.internalGetOldAffixLevelMap())) return false; - if (!internalGetCurAffixLevelMap().equals( - other.internalGetCurAffixLevelMap())) return false; - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + TARGETWEAPONGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTargetWeaponGuid()); - hash = (37 * hash) + TARGETWEAPONAWAKENLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getTargetWeaponAwakenLevel(); - if (!internalGetOldAffixLevelMap().getMap().isEmpty()) { - hash = (37 * hash) + OLDAFFIXLEVELMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetOldAffixLevelMap().hashCode(); - } - if (!internalGetCurAffixLevelMap().getMap().isEmpty()) { - hash = (37 * hash) + CURAFFIXLEVELMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetCurAffixLevelMap().hashCode(); - } - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code WeaponAwakenRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:WeaponAwakenRsp) - emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.internal_static_WeaponAwakenRsp_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetOldAffixLevelMap(); - case 5: - return internalGetCurAffixLevelMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 4: - return internalGetMutableOldAffixLevelMap(); - case 5: - return internalGetMutableCurAffixLevelMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.internal_static_WeaponAwakenRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp.class, emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - targetWeaponGuid_ = 0L; - - targetWeaponAwakenLevel_ = 0; - - internalGetMutableOldAffixLevelMap().clear(); - internalGetMutableCurAffixLevelMap().clear(); - avatarGuid_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.internal_static_WeaponAwakenRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp build() { - emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp buildPartial() { - emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp result = new emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp(this); - int from_bitField0_ = bitField0_; - result.retcode_ = retcode_; - result.targetWeaponGuid_ = targetWeaponGuid_; - result.targetWeaponAwakenLevel_ = targetWeaponAwakenLevel_; - result.oldAffixLevelMap_ = internalGetOldAffixLevelMap(); - result.oldAffixLevelMap_.makeImmutable(); - result.curAffixLevelMap_ = internalGetCurAffixLevelMap(); - result.curAffixLevelMap_.makeImmutable(); - result.avatarGuid_ = avatarGuid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp) { - return mergeFrom((emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp other) { - if (other == emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getTargetWeaponGuid() != 0L) { - setTargetWeaponGuid(other.getTargetWeaponGuid()); - } - if (other.getTargetWeaponAwakenLevel() != 0) { - setTargetWeaponAwakenLevel(other.getTargetWeaponAwakenLevel()); - } - internalGetMutableOldAffixLevelMap().mergeFrom( - other.internalGetOldAffixLevelMap()); - internalGetMutableCurAffixLevelMap().mergeFrom( - other.internalGetCurAffixLevelMap()); - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private long targetWeaponGuid_ ; - /** - * <code>uint64 targetWeaponGuid = 2;</code> - * @return The targetWeaponGuid. - */ - @java.lang.Override - public long getTargetWeaponGuid() { - return targetWeaponGuid_; - } - /** - * <code>uint64 targetWeaponGuid = 2;</code> - * @param value The targetWeaponGuid to set. - * @return This builder for chaining. - */ - public Builder setTargetWeaponGuid(long value) { - - targetWeaponGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 targetWeaponGuid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearTargetWeaponGuid() { - - targetWeaponGuid_ = 0L; - onChanged(); - return this; - } - - private int targetWeaponAwakenLevel_ ; - /** - * <code>uint32 targetWeaponAwakenLevel = 3;</code> - * @return The targetWeaponAwakenLevel. - */ - @java.lang.Override - public int getTargetWeaponAwakenLevel() { - return targetWeaponAwakenLevel_; - } - /** - * <code>uint32 targetWeaponAwakenLevel = 3;</code> - * @param value The targetWeaponAwakenLevel to set. - * @return This builder for chaining. - */ - public Builder setTargetWeaponAwakenLevel(int value) { - - targetWeaponAwakenLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 targetWeaponAwakenLevel = 3;</code> - * @return This builder for chaining. - */ - public Builder clearTargetWeaponAwakenLevel() { - - targetWeaponAwakenLevel_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> oldAffixLevelMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetOldAffixLevelMap() { - if (oldAffixLevelMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - OldAffixLevelMapDefaultEntryHolder.defaultEntry); - } - return oldAffixLevelMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetMutableOldAffixLevelMap() { - onChanged();; - if (oldAffixLevelMap_ == null) { - oldAffixLevelMap_ = com.google.protobuf.MapField.newMapField( - OldAffixLevelMapDefaultEntryHolder.defaultEntry); - } - if (!oldAffixLevelMap_.isMutable()) { - oldAffixLevelMap_ = oldAffixLevelMap_.copy(); - } - return oldAffixLevelMap_; - } - - public int getOldAffixLevelMapCount() { - return internalGetOldAffixLevelMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> oldAffixLevelMap = 4;</code> - */ - - @java.lang.Override - public boolean containsOldAffixLevelMap( - int key) { - - return internalGetOldAffixLevelMap().getMap().containsKey(key); - } - /** - * Use {@link #getOldAffixLevelMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getOldAffixLevelMap() { - return getOldAffixLevelMapMap(); - } - /** - * <code>map<uint32, uint32> oldAffixLevelMap = 4;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getOldAffixLevelMapMap() { - return internalGetOldAffixLevelMap().getMap(); - } - /** - * <code>map<uint32, uint32> oldAffixLevelMap = 4;</code> - */ - @java.lang.Override - - public int getOldAffixLevelMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetOldAffixLevelMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> oldAffixLevelMap = 4;</code> - */ - @java.lang.Override - - public int getOldAffixLevelMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetOldAffixLevelMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearOldAffixLevelMap() { - internalGetMutableOldAffixLevelMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, uint32> oldAffixLevelMap = 4;</code> - */ - - public Builder removeOldAffixLevelMap( - int key) { - - internalGetMutableOldAffixLevelMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> - getMutableOldAffixLevelMap() { - return internalGetMutableOldAffixLevelMap().getMutableMap(); - } - /** - * <code>map<uint32, uint32> oldAffixLevelMap = 4;</code> - */ - public Builder putOldAffixLevelMap( - int key, - int value) { - - - internalGetMutableOldAffixLevelMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, uint32> oldAffixLevelMap = 4;</code> - */ - - public Builder putAllOldAffixLevelMap( - java.util.Map<java.lang.Integer, java.lang.Integer> values) { - internalGetMutableOldAffixLevelMap().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> curAffixLevelMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetCurAffixLevelMap() { - if (curAffixLevelMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CurAffixLevelMapDefaultEntryHolder.defaultEntry); - } - return curAffixLevelMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetMutableCurAffixLevelMap() { - onChanged();; - if (curAffixLevelMap_ == null) { - curAffixLevelMap_ = com.google.protobuf.MapField.newMapField( - CurAffixLevelMapDefaultEntryHolder.defaultEntry); - } - if (!curAffixLevelMap_.isMutable()) { - curAffixLevelMap_ = curAffixLevelMap_.copy(); - } - return curAffixLevelMap_; - } - - public int getCurAffixLevelMapCount() { - return internalGetCurAffixLevelMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> curAffixLevelMap = 5;</code> - */ - - @java.lang.Override - public boolean containsCurAffixLevelMap( - int key) { - - return internalGetCurAffixLevelMap().getMap().containsKey(key); - } - /** - * Use {@link #getCurAffixLevelMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getCurAffixLevelMap() { - return getCurAffixLevelMapMap(); - } - /** - * <code>map<uint32, uint32> curAffixLevelMap = 5;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getCurAffixLevelMapMap() { - return internalGetCurAffixLevelMap().getMap(); - } - /** - * <code>map<uint32, uint32> curAffixLevelMap = 5;</code> - */ - @java.lang.Override - - public int getCurAffixLevelMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetCurAffixLevelMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> curAffixLevelMap = 5;</code> - */ - @java.lang.Override - - public int getCurAffixLevelMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetCurAffixLevelMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearCurAffixLevelMap() { - internalGetMutableCurAffixLevelMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, uint32> curAffixLevelMap = 5;</code> - */ - - public Builder removeCurAffixLevelMap( - int key) { - - internalGetMutableCurAffixLevelMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> - getMutableCurAffixLevelMap() { - return internalGetMutableCurAffixLevelMap().getMutableMap(); - } - /** - * <code>map<uint32, uint32> curAffixLevelMap = 5;</code> - */ - public Builder putCurAffixLevelMap( - int key, - int value) { - - - internalGetMutableCurAffixLevelMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, uint32> curAffixLevelMap = 5;</code> - */ - - public Builder putAllCurAffixLevelMap( - java.util.Map<java.lang.Integer, java.lang.Integer> values) { - internalGetMutableCurAffixLevelMap().getMutableMap() - .putAll(values); - return this; - } - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 6;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 6;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 6;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WeaponAwakenRsp) - } - - // @@protoc_insertion_point(class_scope:WeaponAwakenRsp) - private static final emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp(); - } - - public static emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<WeaponAwakenRsp> - PARSER = new com.google.protobuf.AbstractParser<WeaponAwakenRsp>() { - @java.lang.Override - public WeaponAwakenRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WeaponAwakenRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<WeaponAwakenRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<WeaponAwakenRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WeaponAwakenRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WeaponAwakenRsp_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WeaponAwakenRsp_OldAffixLevelMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WeaponAwakenRsp_OldAffixLevelMapEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WeaponAwakenRsp_CurAffixLevelMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WeaponAwakenRsp_CurAffixLevelMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025WeaponAwakenRsp.proto\"\347\002\n\017WeaponAwaken" + - "Rsp\022\017\n\007retcode\030\001 \001(\005\022\030\n\020targetWeaponGuid" + - "\030\002 \001(\004\022\037\n\027targetWeaponAwakenLevel\030\003 \001(\r\022" + - "@\n\020oldAffixLevelMap\030\004 \003(\0132&.WeaponAwaken" + - "Rsp.OldAffixLevelMapEntry\022@\n\020curAffixLev" + - "elMap\030\005 \003(\0132&.WeaponAwakenRsp.CurAffixLe" + - "velMapEntry\022\022\n\navatarGuid\030\006 \001(\004\0327\n\025OldAf" + - "fixLevelMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002" + - " \001(\r:\0028\001\0327\n\025CurAffixLevelMapEntry\022\013\n\003key" + - "\030\001 \001(\r\022\r\n\005value\030\002 \001(\r:\0028\001B\033\n\031emu.grasscu" + - "tter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_WeaponAwakenRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_WeaponAwakenRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WeaponAwakenRsp_descriptor, - new java.lang.String[] { "Retcode", "TargetWeaponGuid", "TargetWeaponAwakenLevel", "OldAffixLevelMap", "CurAffixLevelMap", "AvatarGuid", }); - internal_static_WeaponAwakenRsp_OldAffixLevelMapEntry_descriptor = - internal_static_WeaponAwakenRsp_descriptor.getNestedTypes().get(0); - internal_static_WeaponAwakenRsp_OldAffixLevelMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WeaponAwakenRsp_OldAffixLevelMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_WeaponAwakenRsp_CurAffixLevelMapEntry_descriptor = - internal_static_WeaponAwakenRsp_descriptor.getNestedTypes().get(1); - internal_static_WeaponAwakenRsp_CurAffixLevelMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WeaponAwakenRsp_CurAffixLevelMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/WeaponOuterClass.java b/src/main/java/emu/grasscutter/net/proto/WeaponOuterClass.java deleted file mode 100644 index 2a5dbad22..000000000 --- a/src/main/java/emu/grasscutter/net/proto/WeaponOuterClass.java +++ /dev/null @@ -1,1010 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Weapon.proto - -package emu.grasscutter.net.proto; - -public final class WeaponOuterClass { - private WeaponOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WeaponOrBuilder extends - // @@protoc_insertion_point(interface_extends:Weapon) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 level = 1;</code> - * @return The level. - */ - int getLevel(); - - /** - * <code>uint32 exp = 2;</code> - * @return The exp. - */ - int getExp(); - - /** - * <code>uint32 promoteLevel = 3;</code> - * @return The promoteLevel. - */ - int getPromoteLevel(); - - /** - * <code>map<uint32, uint32> affixMap = 4;</code> - */ - int getAffixMapCount(); - /** - * <code>map<uint32, uint32> affixMap = 4;</code> - */ - boolean containsAffixMap( - int key); - /** - * Use {@link #getAffixMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, java.lang.Integer> - getAffixMap(); - /** - * <code>map<uint32, uint32> affixMap = 4;</code> - */ - java.util.Map<java.lang.Integer, java.lang.Integer> - getAffixMapMap(); - /** - * <code>map<uint32, uint32> affixMap = 4;</code> - */ - - int getAffixMapOrDefault( - int key, - int defaultValue); - /** - * <code>map<uint32, uint32> affixMap = 4;</code> - */ - - int getAffixMapOrThrow( - int key); - } - /** - * Protobuf type {@code Weapon} - */ - public static final class Weapon extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Weapon) - WeaponOrBuilder { - private static final long serialVersionUID = 0L; - // Use Weapon.newBuilder() to construct. - private Weapon(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Weapon() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Weapon(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Weapon( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - level_ = input.readUInt32(); - break; - } - case 16: { - - exp_ = input.readUInt32(); - break; - } - case 24: { - - promoteLevel_ = input.readUInt32(); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - affixMap_ = com.google.protobuf.MapField.newMapField( - AffixMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - affixMap__ = input.readMessage( - AffixMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - affixMap_.getMutableMap().put( - affixMap__.getKey(), affixMap__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WeaponOuterClass.internal_static_Weapon_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetAffixMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WeaponOuterClass.internal_static_Weapon_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WeaponOuterClass.Weapon.class, emu.grasscutter.net.proto.WeaponOuterClass.Weapon.Builder.class); - } - - public static final int LEVEL_FIELD_NUMBER = 1; - private int level_; - /** - * <code>uint32 level = 1;</code> - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - - public static final int EXP_FIELD_NUMBER = 2; - private int exp_; - /** - * <code>uint32 exp = 2;</code> - * @return The exp. - */ - @java.lang.Override - public int getExp() { - return exp_; - } - - public static final int PROMOTELEVEL_FIELD_NUMBER = 3; - private int promoteLevel_; - /** - * <code>uint32 promoteLevel = 3;</code> - * @return The promoteLevel. - */ - @java.lang.Override - public int getPromoteLevel() { - return promoteLevel_; - } - - public static final int AFFIXMAP_FIELD_NUMBER = 4; - private static final class AffixMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, java.lang.Integer>newDefaultInstance( - emu.grasscutter.net.proto.WeaponOuterClass.internal_static_Weapon_AffixMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> affixMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetAffixMap() { - if (affixMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AffixMapDefaultEntryHolder.defaultEntry); - } - return affixMap_; - } - - public int getAffixMapCount() { - return internalGetAffixMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> affixMap = 4;</code> - */ - - @java.lang.Override - public boolean containsAffixMap( - int key) { - - return internalGetAffixMap().getMap().containsKey(key); - } - /** - * Use {@link #getAffixMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getAffixMap() { - return getAffixMapMap(); - } - /** - * <code>map<uint32, uint32> affixMap = 4;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getAffixMapMap() { - return internalGetAffixMap().getMap(); - } - /** - * <code>map<uint32, uint32> affixMap = 4;</code> - */ - @java.lang.Override - - public int getAffixMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetAffixMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> affixMap = 4;</code> - */ - @java.lang.Override - - public int getAffixMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetAffixMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (level_ != 0) { - output.writeUInt32(1, level_); - } - if (exp_ != 0) { - output.writeUInt32(2, exp_); - } - if (promoteLevel_ != 0) { - output.writeUInt32(3, promoteLevel_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetAffixMap(), - AffixMapDefaultEntryHolder.defaultEntry, - 4); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (level_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, level_); - } - if (exp_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, exp_); - } - if (promoteLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, promoteLevel_); - } - for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry - : internalGetAffixMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer> - affixMap__ = AffixMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, affixMap__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.WeaponOuterClass.Weapon)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.WeaponOuterClass.Weapon other = (emu.grasscutter.net.proto.WeaponOuterClass.Weapon) obj; - - if (getLevel() - != other.getLevel()) return false; - if (getExp() - != other.getExp()) return false; - if (getPromoteLevel() - != other.getPromoteLevel()) return false; - if (!internalGetAffixMap().equals( - other.internalGetAffixMap())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LEVEL_FIELD_NUMBER; - hash = (53 * hash) + getLevel(); - hash = (37 * hash) + EXP_FIELD_NUMBER; - hash = (53 * hash) + getExp(); - hash = (37 * hash) + PROMOTELEVEL_FIELD_NUMBER; - hash = (53 * hash) + getPromoteLevel(); - if (!internalGetAffixMap().getMap().isEmpty()) { - hash = (37 * hash) + AFFIXMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetAffixMap().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.WeaponOuterClass.Weapon parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WeaponOuterClass.Weapon parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponOuterClass.Weapon parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WeaponOuterClass.Weapon parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponOuterClass.Weapon parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WeaponOuterClass.Weapon parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponOuterClass.Weapon parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WeaponOuterClass.Weapon parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponOuterClass.Weapon parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WeaponOuterClass.Weapon parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponOuterClass.Weapon parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WeaponOuterClass.Weapon parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.WeaponOuterClass.Weapon prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Weapon} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:Weapon) - emu.grasscutter.net.proto.WeaponOuterClass.WeaponOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WeaponOuterClass.internal_static_Weapon_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetAffixMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 4: - return internalGetMutableAffixMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WeaponOuterClass.internal_static_Weapon_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WeaponOuterClass.Weapon.class, emu.grasscutter.net.proto.WeaponOuterClass.Weapon.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.WeaponOuterClass.Weapon.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - level_ = 0; - - exp_ = 0; - - promoteLevel_ = 0; - - internalGetMutableAffixMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.WeaponOuterClass.internal_static_Weapon_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponOuterClass.Weapon getDefaultInstanceForType() { - return emu.grasscutter.net.proto.WeaponOuterClass.Weapon.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponOuterClass.Weapon build() { - emu.grasscutter.net.proto.WeaponOuterClass.Weapon result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponOuterClass.Weapon buildPartial() { - emu.grasscutter.net.proto.WeaponOuterClass.Weapon result = new emu.grasscutter.net.proto.WeaponOuterClass.Weapon(this); - int from_bitField0_ = bitField0_; - result.level_ = level_; - result.exp_ = exp_; - result.promoteLevel_ = promoteLevel_; - result.affixMap_ = internalGetAffixMap(); - result.affixMap_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.WeaponOuterClass.Weapon) { - return mergeFrom((emu.grasscutter.net.proto.WeaponOuterClass.Weapon)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.WeaponOuterClass.Weapon other) { - if (other == emu.grasscutter.net.proto.WeaponOuterClass.Weapon.getDefaultInstance()) return this; - if (other.getLevel() != 0) { - setLevel(other.getLevel()); - } - if (other.getExp() != 0) { - setExp(other.getExp()); - } - if (other.getPromoteLevel() != 0) { - setPromoteLevel(other.getPromoteLevel()); - } - internalGetMutableAffixMap().mergeFrom( - other.internalGetAffixMap()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.WeaponOuterClass.Weapon parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.WeaponOuterClass.Weapon) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int level_ ; - /** - * <code>uint32 level = 1;</code> - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - /** - * <code>uint32 level = 1;</code> - * @param value The level to set. - * @return This builder for chaining. - */ - public Builder setLevel(int value) { - - level_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 level = 1;</code> - * @return This builder for chaining. - */ - public Builder clearLevel() { - - level_ = 0; - onChanged(); - return this; - } - - private int exp_ ; - /** - * <code>uint32 exp = 2;</code> - * @return The exp. - */ - @java.lang.Override - public int getExp() { - return exp_; - } - /** - * <code>uint32 exp = 2;</code> - * @param value The exp to set. - * @return This builder for chaining. - */ - public Builder setExp(int value) { - - exp_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 exp = 2;</code> - * @return This builder for chaining. - */ - public Builder clearExp() { - - exp_ = 0; - onChanged(); - return this; - } - - private int promoteLevel_ ; - /** - * <code>uint32 promoteLevel = 3;</code> - * @return The promoteLevel. - */ - @java.lang.Override - public int getPromoteLevel() { - return promoteLevel_; - } - /** - * <code>uint32 promoteLevel = 3;</code> - * @param value The promoteLevel to set. - * @return This builder for chaining. - */ - public Builder setPromoteLevel(int value) { - - promoteLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 promoteLevel = 3;</code> - * @return This builder for chaining. - */ - public Builder clearPromoteLevel() { - - promoteLevel_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> affixMap_; - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetAffixMap() { - if (affixMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AffixMapDefaultEntryHolder.defaultEntry); - } - return affixMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer> - internalGetMutableAffixMap() { - onChanged();; - if (affixMap_ == null) { - affixMap_ = com.google.protobuf.MapField.newMapField( - AffixMapDefaultEntryHolder.defaultEntry); - } - if (!affixMap_.isMutable()) { - affixMap_ = affixMap_.copy(); - } - return affixMap_; - } - - public int getAffixMapCount() { - return internalGetAffixMap().getMap().size(); - } - /** - * <code>map<uint32, uint32> affixMap = 4;</code> - */ - - @java.lang.Override - public boolean containsAffixMap( - int key) { - - return internalGetAffixMap().getMap().containsKey(key); - } - /** - * Use {@link #getAffixMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> getAffixMap() { - return getAffixMapMap(); - } - /** - * <code>map<uint32, uint32> affixMap = 4;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, java.lang.Integer> getAffixMapMap() { - return internalGetAffixMap().getMap(); - } - /** - * <code>map<uint32, uint32> affixMap = 4;</code> - */ - @java.lang.Override - - public int getAffixMapOrDefault( - int key, - int defaultValue) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetAffixMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, uint32> affixMap = 4;</code> - */ - @java.lang.Override - - public int getAffixMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, java.lang.Integer> map = - internalGetAffixMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearAffixMap() { - internalGetMutableAffixMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, uint32> affixMap = 4;</code> - */ - - public Builder removeAffixMap( - int key) { - - internalGetMutableAffixMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, java.lang.Integer> - getMutableAffixMap() { - return internalGetMutableAffixMap().getMutableMap(); - } - /** - * <code>map<uint32, uint32> affixMap = 4;</code> - */ - public Builder putAffixMap( - int key, - int value) { - - - internalGetMutableAffixMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, uint32> affixMap = 4;</code> - */ - - public Builder putAllAffixMap( - java.util.Map<java.lang.Integer, java.lang.Integer> values) { - internalGetMutableAffixMap().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Weapon) - } - - // @@protoc_insertion_point(class_scope:Weapon) - private static final emu.grasscutter.net.proto.WeaponOuterClass.Weapon DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.WeaponOuterClass.Weapon(); - } - - public static emu.grasscutter.net.proto.WeaponOuterClass.Weapon getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<Weapon> - PARSER = new com.google.protobuf.AbstractParser<Weapon>() { - @java.lang.Override - public Weapon parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Weapon(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<Weapon> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Weapon> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponOuterClass.Weapon getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Weapon_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Weapon_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Weapon_AffixMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Weapon_AffixMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\014Weapon.proto\"\224\001\n\006Weapon\022\r\n\005level\030\001 \001(\r" + - "\022\013\n\003exp\030\002 \001(\r\022\024\n\014promoteLevel\030\003 \001(\r\022\'\n\010a" + - "ffixMap\030\004 \003(\0132\025.Weapon.AffixMapEntry\032/\n\r" + - "AffixMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(" + - "\r:\0028\001B\033\n\031emu.grasscutter.net.protob\006prot" + - "o3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_Weapon_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_Weapon_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Weapon_descriptor, - new java.lang.String[] { "Level", "Exp", "PromoteLevel", "AffixMap", }); - internal_static_Weapon_AffixMapEntry_descriptor = - internal_static_Weapon_descriptor.getNestedTypes().get(0); - internal_static_Weapon_AffixMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Weapon_AffixMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/WeaponPromoteReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/WeaponPromoteReqOuterClass.java deleted file mode 100644 index dad5a8d93..000000000 --- a/src/main/java/emu/grasscutter/net/proto/WeaponPromoteReqOuterClass.java +++ /dev/null @@ -1,537 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WeaponPromoteReq.proto - -package emu.grasscutter.net.proto; - -public final class WeaponPromoteReqOuterClass { - private WeaponPromoteReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WeaponPromoteReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:WeaponPromoteReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 targetWeaponGuid = 1;</code> - * @return The targetWeaponGuid. - */ - long getTargetWeaponGuid(); - } - /** - * Protobuf type {@code WeaponPromoteReq} - */ - public static final class WeaponPromoteReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WeaponPromoteReq) - WeaponPromoteReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use WeaponPromoteReq.newBuilder() to construct. - private WeaponPromoteReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private WeaponPromoteReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WeaponPromoteReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WeaponPromoteReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - targetWeaponGuid_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.internal_static_WeaponPromoteReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.internal_static_WeaponPromoteReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq.class, emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq.Builder.class); - } - - public static final int TARGETWEAPONGUID_FIELD_NUMBER = 1; - private long targetWeaponGuid_; - /** - * <code>uint64 targetWeaponGuid = 1;</code> - * @return The targetWeaponGuid. - */ - @java.lang.Override - public long getTargetWeaponGuid() { - return targetWeaponGuid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (targetWeaponGuid_ != 0L) { - output.writeUInt64(1, targetWeaponGuid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (targetWeaponGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, targetWeaponGuid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq other = (emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq) obj; - - if (getTargetWeaponGuid() - != other.getTargetWeaponGuid()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TARGETWEAPONGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTargetWeaponGuid()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code WeaponPromoteReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:WeaponPromoteReq) - emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.internal_static_WeaponPromoteReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.internal_static_WeaponPromoteReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq.class, emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - targetWeaponGuid_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.internal_static_WeaponPromoteReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq build() { - emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq buildPartial() { - emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq result = new emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq(this); - result.targetWeaponGuid_ = targetWeaponGuid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq) { - return mergeFrom((emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq other) { - if (other == emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq.getDefaultInstance()) return this; - if (other.getTargetWeaponGuid() != 0L) { - setTargetWeaponGuid(other.getTargetWeaponGuid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long targetWeaponGuid_ ; - /** - * <code>uint64 targetWeaponGuid = 1;</code> - * @return The targetWeaponGuid. - */ - @java.lang.Override - public long getTargetWeaponGuid() { - return targetWeaponGuid_; - } - /** - * <code>uint64 targetWeaponGuid = 1;</code> - * @param value The targetWeaponGuid to set. - * @return This builder for chaining. - */ - public Builder setTargetWeaponGuid(long value) { - - targetWeaponGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 targetWeaponGuid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTargetWeaponGuid() { - - targetWeaponGuid_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WeaponPromoteReq) - } - - // @@protoc_insertion_point(class_scope:WeaponPromoteReq) - private static final emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq(); - } - - public static emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<WeaponPromoteReq> - PARSER = new com.google.protobuf.AbstractParser<WeaponPromoteReq>() { - @java.lang.Override - public WeaponPromoteReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WeaponPromoteReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<WeaponPromoteReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<WeaponPromoteReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WeaponPromoteReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WeaponPromoteReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026WeaponPromoteReq.proto\",\n\020WeaponPromot" + - "eReq\022\030\n\020targetWeaponGuid\030\001 \001(\004B\033\n\031emu.gr" + - "asscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_WeaponPromoteReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_WeaponPromoteReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WeaponPromoteReq_descriptor, - new java.lang.String[] { "TargetWeaponGuid", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/WeaponPromoteRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/WeaponPromoteRspOuterClass.java deleted file mode 100644 index fe5efdef7..000000000 --- a/src/main/java/emu/grasscutter/net/proto/WeaponPromoteRspOuterClass.java +++ /dev/null @@ -1,749 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WeaponPromoteRsp.proto - -package emu.grasscutter.net.proto; - -public final class WeaponPromoteRspOuterClass { - private WeaponPromoteRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WeaponPromoteRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:WeaponPromoteRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint64 targetWeaponGuid = 2;</code> - * @return The targetWeaponGuid. - */ - long getTargetWeaponGuid(); - - /** - * <code>uint32 oldPromoteLevel = 3;</code> - * @return The oldPromoteLevel. - */ - int getOldPromoteLevel(); - - /** - * <code>uint32 curPromoteLevel = 4;</code> - * @return The curPromoteLevel. - */ - int getCurPromoteLevel(); - } - /** - * Protobuf type {@code WeaponPromoteRsp} - */ - public static final class WeaponPromoteRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WeaponPromoteRsp) - WeaponPromoteRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use WeaponPromoteRsp.newBuilder() to construct. - private WeaponPromoteRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private WeaponPromoteRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WeaponPromoteRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WeaponPromoteRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - targetWeaponGuid_ = input.readUInt64(); - break; - } - case 24: { - - oldPromoteLevel_ = input.readUInt32(); - break; - } - case 32: { - - curPromoteLevel_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.internal_static_WeaponPromoteRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.internal_static_WeaponPromoteRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp.class, emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int TARGETWEAPONGUID_FIELD_NUMBER = 2; - private long targetWeaponGuid_; - /** - * <code>uint64 targetWeaponGuid = 2;</code> - * @return The targetWeaponGuid. - */ - @java.lang.Override - public long getTargetWeaponGuid() { - return targetWeaponGuid_; - } - - public static final int OLDPROMOTELEVEL_FIELD_NUMBER = 3; - private int oldPromoteLevel_; - /** - * <code>uint32 oldPromoteLevel = 3;</code> - * @return The oldPromoteLevel. - */ - @java.lang.Override - public int getOldPromoteLevel() { - return oldPromoteLevel_; - } - - public static final int CURPROMOTELEVEL_FIELD_NUMBER = 4; - private int curPromoteLevel_; - /** - * <code>uint32 curPromoteLevel = 4;</code> - * @return The curPromoteLevel. - */ - @java.lang.Override - public int getCurPromoteLevel() { - return curPromoteLevel_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (targetWeaponGuid_ != 0L) { - output.writeUInt64(2, targetWeaponGuid_); - } - if (oldPromoteLevel_ != 0) { - output.writeUInt32(3, oldPromoteLevel_); - } - if (curPromoteLevel_ != 0) { - output.writeUInt32(4, curPromoteLevel_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (targetWeaponGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, targetWeaponGuid_); - } - if (oldPromoteLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, oldPromoteLevel_); - } - if (curPromoteLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, curPromoteLevel_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp other = (emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getTargetWeaponGuid() - != other.getTargetWeaponGuid()) return false; - if (getOldPromoteLevel() - != other.getOldPromoteLevel()) return false; - if (getCurPromoteLevel() - != other.getCurPromoteLevel()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + TARGETWEAPONGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTargetWeaponGuid()); - hash = (37 * hash) + OLDPROMOTELEVEL_FIELD_NUMBER; - hash = (53 * hash) + getOldPromoteLevel(); - hash = (37 * hash) + CURPROMOTELEVEL_FIELD_NUMBER; - hash = (53 * hash) + getCurPromoteLevel(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code WeaponPromoteRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:WeaponPromoteRsp) - emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.internal_static_WeaponPromoteRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.internal_static_WeaponPromoteRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp.class, emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - targetWeaponGuid_ = 0L; - - oldPromoteLevel_ = 0; - - curPromoteLevel_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.internal_static_WeaponPromoteRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp build() { - emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp buildPartial() { - emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp result = new emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp(this); - result.retcode_ = retcode_; - result.targetWeaponGuid_ = targetWeaponGuid_; - result.oldPromoteLevel_ = oldPromoteLevel_; - result.curPromoteLevel_ = curPromoteLevel_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp) { - return mergeFrom((emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp other) { - if (other == emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getTargetWeaponGuid() != 0L) { - setTargetWeaponGuid(other.getTargetWeaponGuid()); - } - if (other.getOldPromoteLevel() != 0) { - setOldPromoteLevel(other.getOldPromoteLevel()); - } - if (other.getCurPromoteLevel() != 0) { - setCurPromoteLevel(other.getCurPromoteLevel()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private long targetWeaponGuid_ ; - /** - * <code>uint64 targetWeaponGuid = 2;</code> - * @return The targetWeaponGuid. - */ - @java.lang.Override - public long getTargetWeaponGuid() { - return targetWeaponGuid_; - } - /** - * <code>uint64 targetWeaponGuid = 2;</code> - * @param value The targetWeaponGuid to set. - * @return This builder for chaining. - */ - public Builder setTargetWeaponGuid(long value) { - - targetWeaponGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 targetWeaponGuid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearTargetWeaponGuid() { - - targetWeaponGuid_ = 0L; - onChanged(); - return this; - } - - private int oldPromoteLevel_ ; - /** - * <code>uint32 oldPromoteLevel = 3;</code> - * @return The oldPromoteLevel. - */ - @java.lang.Override - public int getOldPromoteLevel() { - return oldPromoteLevel_; - } - /** - * <code>uint32 oldPromoteLevel = 3;</code> - * @param value The oldPromoteLevel to set. - * @return This builder for chaining. - */ - public Builder setOldPromoteLevel(int value) { - - oldPromoteLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 oldPromoteLevel = 3;</code> - * @return This builder for chaining. - */ - public Builder clearOldPromoteLevel() { - - oldPromoteLevel_ = 0; - onChanged(); - return this; - } - - private int curPromoteLevel_ ; - /** - * <code>uint32 curPromoteLevel = 4;</code> - * @return The curPromoteLevel. - */ - @java.lang.Override - public int getCurPromoteLevel() { - return curPromoteLevel_; - } - /** - * <code>uint32 curPromoteLevel = 4;</code> - * @param value The curPromoteLevel to set. - * @return This builder for chaining. - */ - public Builder setCurPromoteLevel(int value) { - - curPromoteLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 curPromoteLevel = 4;</code> - * @return This builder for chaining. - */ - public Builder clearCurPromoteLevel() { - - curPromoteLevel_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WeaponPromoteRsp) - } - - // @@protoc_insertion_point(class_scope:WeaponPromoteRsp) - private static final emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp(); - } - - public static emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<WeaponPromoteRsp> - PARSER = new com.google.protobuf.AbstractParser<WeaponPromoteRsp>() { - @java.lang.Override - public WeaponPromoteRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WeaponPromoteRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<WeaponPromoteRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<WeaponPromoteRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WeaponPromoteRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WeaponPromoteRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026WeaponPromoteRsp.proto\"o\n\020WeaponPromot" + - "eRsp\022\017\n\007retcode\030\001 \001(\005\022\030\n\020targetWeaponGui" + - "d\030\002 \001(\004\022\027\n\017oldPromoteLevel\030\003 \001(\r\022\027\n\017curP" + - "romoteLevel\030\004 \001(\rB\033\n\031emu.grasscutter.net" + - ".protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_WeaponPromoteRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_WeaponPromoteRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WeaponPromoteRsp_descriptor, - new java.lang.String[] { "Retcode", "TargetWeaponGuid", "OldPromoteLevel", "CurPromoteLevel", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/WeaponUpgradeReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/WeaponUpgradeReqOuterClass.java deleted file mode 100644 index 9490c6e29..000000000 --- a/src/main/java/emu/grasscutter/net/proto/WeaponUpgradeReqOuterClass.java +++ /dev/null @@ -1,1110 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WeaponUpgradeReq.proto - -package emu.grasscutter.net.proto; - -public final class WeaponUpgradeReqOuterClass { - private WeaponUpgradeReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WeaponUpgradeReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:WeaponUpgradeReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 targetWeaponGuid = 1;</code> - * @return The targetWeaponGuid. - */ - long getTargetWeaponGuid(); - - /** - * <code>repeated uint64 foodWeaponGuidList = 2;</code> - * @return A list containing the foodWeaponGuidList. - */ - java.util.List<java.lang.Long> getFoodWeaponGuidListList(); - /** - * <code>repeated uint64 foodWeaponGuidList = 2;</code> - * @return The count of foodWeaponGuidList. - */ - int getFoodWeaponGuidListCount(); - /** - * <code>repeated uint64 foodWeaponGuidList = 2;</code> - * @param index The index of the element to return. - * @return The foodWeaponGuidList at the given index. - */ - long getFoodWeaponGuidList(int index); - - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> - getItemParamListList(); - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index); - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - int getItemParamListCount(); - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getItemParamListOrBuilderList(); - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder( - int index); - } - /** - * Protobuf type {@code WeaponUpgradeReq} - */ - public static final class WeaponUpgradeReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WeaponUpgradeReq) - WeaponUpgradeReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use WeaponUpgradeReq.newBuilder() to construct. - private WeaponUpgradeReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private WeaponUpgradeReq() { - foodWeaponGuidList_ = emptyLongList(); - itemParamList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WeaponUpgradeReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WeaponUpgradeReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - targetWeaponGuid_ = input.readUInt64(); - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - foodWeaponGuidList_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - foodWeaponGuidList_.addLong(input.readUInt64()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - foodWeaponGuidList_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - foodWeaponGuidList_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - itemParamList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>(); - mutable_bitField0_ |= 0x00000002; - } - itemParamList_.add( - input.readMessage(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - foodWeaponGuidList_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - itemParamList_ = java.util.Collections.unmodifiableList(itemParamList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.internal_static_WeaponUpgradeReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.internal_static_WeaponUpgradeReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq.class, emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq.Builder.class); - } - - public static final int TARGETWEAPONGUID_FIELD_NUMBER = 1; - private long targetWeaponGuid_; - /** - * <code>uint64 targetWeaponGuid = 1;</code> - * @return The targetWeaponGuid. - */ - @java.lang.Override - public long getTargetWeaponGuid() { - return targetWeaponGuid_; - } - - public static final int FOODWEAPONGUIDLIST_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.LongList foodWeaponGuidList_; - /** - * <code>repeated uint64 foodWeaponGuidList = 2;</code> - * @return A list containing the foodWeaponGuidList. - */ - @java.lang.Override - public java.util.List<java.lang.Long> - getFoodWeaponGuidListList() { - return foodWeaponGuidList_; - } - /** - * <code>repeated uint64 foodWeaponGuidList = 2;</code> - * @return The count of foodWeaponGuidList. - */ - public int getFoodWeaponGuidListCount() { - return foodWeaponGuidList_.size(); - } - /** - * <code>repeated uint64 foodWeaponGuidList = 2;</code> - * @param index The index of the element to return. - * @return The foodWeaponGuidList at the given index. - */ - public long getFoodWeaponGuidList(int index) { - return foodWeaponGuidList_.getLong(index); - } - private int foodWeaponGuidListMemoizedSerializedSize = -1; - - public static final int ITEMPARAMLIST_FIELD_NUMBER = 3; - private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> itemParamList_; - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getItemParamListList() { - return itemParamList_; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getItemParamListOrBuilderList() { - return itemParamList_; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - @java.lang.Override - public int getItemParamListCount() { - return itemParamList_.size(); - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) { - return itemParamList_.get(index); - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder( - int index) { - return itemParamList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (targetWeaponGuid_ != 0L) { - output.writeUInt64(1, targetWeaponGuid_); - } - if (getFoodWeaponGuidListList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(foodWeaponGuidListMemoizedSerializedSize); - } - for (int i = 0; i < foodWeaponGuidList_.size(); i++) { - output.writeUInt64NoTag(foodWeaponGuidList_.getLong(i)); - } - for (int i = 0; i < itemParamList_.size(); i++) { - output.writeMessage(3, itemParamList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (targetWeaponGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, targetWeaponGuid_); - } - { - int dataSize = 0; - for (int i = 0; i < foodWeaponGuidList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(foodWeaponGuidList_.getLong(i)); - } - size += dataSize; - if (!getFoodWeaponGuidListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - foodWeaponGuidListMemoizedSerializedSize = dataSize; - } - for (int i = 0; i < itemParamList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, itemParamList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq other = (emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq) obj; - - if (getTargetWeaponGuid() - != other.getTargetWeaponGuid()) return false; - if (!getFoodWeaponGuidListList() - .equals(other.getFoodWeaponGuidListList())) return false; - if (!getItemParamListList() - .equals(other.getItemParamListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TARGETWEAPONGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTargetWeaponGuid()); - if (getFoodWeaponGuidListCount() > 0) { - hash = (37 * hash) + FOODWEAPONGUIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getFoodWeaponGuidListList().hashCode(); - } - if (getItemParamListCount() > 0) { - hash = (37 * hash) + ITEMPARAMLIST_FIELD_NUMBER; - hash = (53 * hash) + getItemParamListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code WeaponUpgradeReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:WeaponUpgradeReq) - emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.internal_static_WeaponUpgradeReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.internal_static_WeaponUpgradeReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq.class, emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getItemParamListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - targetWeaponGuid_ = 0L; - - foodWeaponGuidList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - if (itemParamListBuilder_ == null) { - itemParamList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - itemParamListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.internal_static_WeaponUpgradeReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq build() { - emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq buildPartial() { - emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq result = new emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq(this); - int from_bitField0_ = bitField0_; - result.targetWeaponGuid_ = targetWeaponGuid_; - if (((bitField0_ & 0x00000001) != 0)) { - foodWeaponGuidList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.foodWeaponGuidList_ = foodWeaponGuidList_; - if (itemParamListBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - itemParamList_ = java.util.Collections.unmodifiableList(itemParamList_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.itemParamList_ = itemParamList_; - } else { - result.itemParamList_ = itemParamListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq) { - return mergeFrom((emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq other) { - if (other == emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq.getDefaultInstance()) return this; - if (other.getTargetWeaponGuid() != 0L) { - setTargetWeaponGuid(other.getTargetWeaponGuid()); - } - if (!other.foodWeaponGuidList_.isEmpty()) { - if (foodWeaponGuidList_.isEmpty()) { - foodWeaponGuidList_ = other.foodWeaponGuidList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFoodWeaponGuidListIsMutable(); - foodWeaponGuidList_.addAll(other.foodWeaponGuidList_); - } - onChanged(); - } - if (itemParamListBuilder_ == null) { - if (!other.itemParamList_.isEmpty()) { - if (itemParamList_.isEmpty()) { - itemParamList_ = other.itemParamList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureItemParamListIsMutable(); - itemParamList_.addAll(other.itemParamList_); - } - onChanged(); - } - } else { - if (!other.itemParamList_.isEmpty()) { - if (itemParamListBuilder_.isEmpty()) { - itemParamListBuilder_.dispose(); - itemParamListBuilder_ = null; - itemParamList_ = other.itemParamList_; - bitField0_ = (bitField0_ & ~0x00000002); - itemParamListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getItemParamListFieldBuilder() : null; - } else { - itemParamListBuilder_.addAllMessages(other.itemParamList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long targetWeaponGuid_ ; - /** - * <code>uint64 targetWeaponGuid = 1;</code> - * @return The targetWeaponGuid. - */ - @java.lang.Override - public long getTargetWeaponGuid() { - return targetWeaponGuid_; - } - /** - * <code>uint64 targetWeaponGuid = 1;</code> - * @param value The targetWeaponGuid to set. - * @return This builder for chaining. - */ - public Builder setTargetWeaponGuid(long value) { - - targetWeaponGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 targetWeaponGuid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearTargetWeaponGuid() { - - targetWeaponGuid_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList foodWeaponGuidList_ = emptyLongList(); - private void ensureFoodWeaponGuidListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - foodWeaponGuidList_ = mutableCopy(foodWeaponGuidList_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint64 foodWeaponGuidList = 2;</code> - * @return A list containing the foodWeaponGuidList. - */ - public java.util.List<java.lang.Long> - getFoodWeaponGuidListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(foodWeaponGuidList_) : foodWeaponGuidList_; - } - /** - * <code>repeated uint64 foodWeaponGuidList = 2;</code> - * @return The count of foodWeaponGuidList. - */ - public int getFoodWeaponGuidListCount() { - return foodWeaponGuidList_.size(); - } - /** - * <code>repeated uint64 foodWeaponGuidList = 2;</code> - * @param index The index of the element to return. - * @return The foodWeaponGuidList at the given index. - */ - public long getFoodWeaponGuidList(int index) { - return foodWeaponGuidList_.getLong(index); - } - /** - * <code>repeated uint64 foodWeaponGuidList = 2;</code> - * @param index The index to set the value at. - * @param value The foodWeaponGuidList to set. - * @return This builder for chaining. - */ - public Builder setFoodWeaponGuidList( - int index, long value) { - ensureFoodWeaponGuidListIsMutable(); - foodWeaponGuidList_.setLong(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint64 foodWeaponGuidList = 2;</code> - * @param value The foodWeaponGuidList to add. - * @return This builder for chaining. - */ - public Builder addFoodWeaponGuidList(long value) { - ensureFoodWeaponGuidListIsMutable(); - foodWeaponGuidList_.addLong(value); - onChanged(); - return this; - } - /** - * <code>repeated uint64 foodWeaponGuidList = 2;</code> - * @param values The foodWeaponGuidList to add. - * @return This builder for chaining. - */ - public Builder addAllFoodWeaponGuidList( - java.lang.Iterable<? extends java.lang.Long> values) { - ensureFoodWeaponGuidListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, foodWeaponGuidList_); - onChanged(); - return this; - } - /** - * <code>repeated uint64 foodWeaponGuidList = 2;</code> - * @return This builder for chaining. - */ - public Builder clearFoodWeaponGuidList() { - foodWeaponGuidList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> itemParamList_ = - java.util.Collections.emptyList(); - private void ensureItemParamListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - itemParamList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>(itemParamList_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> itemParamListBuilder_; - - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getItemParamListList() { - if (itemParamListBuilder_ == null) { - return java.util.Collections.unmodifiableList(itemParamList_); - } else { - return itemParamListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public int getItemParamListCount() { - if (itemParamListBuilder_ == null) { - return itemParamList_.size(); - } else { - return itemParamListBuilder_.getCount(); - } - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) { - if (itemParamListBuilder_ == null) { - return itemParamList_.get(index); - } else { - return itemParamListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder setItemParamList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (itemParamListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemParamListIsMutable(); - itemParamList_.set(index, value); - onChanged(); - } else { - itemParamListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder setItemParamList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - itemParamList_.set(index, builderForValue.build()); - onChanged(); - } else { - itemParamListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder addItemParamList(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (itemParamListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemParamListIsMutable(); - itemParamList_.add(value); - onChanged(); - } else { - itemParamListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder addItemParamList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (itemParamListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemParamListIsMutable(); - itemParamList_.add(index, value); - onChanged(); - } else { - itemParamListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder addItemParamList( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - itemParamList_.add(builderForValue.build()); - onChanged(); - } else { - itemParamListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder addItemParamList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - itemParamList_.add(index, builderForValue.build()); - onChanged(); - } else { - itemParamListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder addAllItemParamList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> values) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, itemParamList_); - onChanged(); - } else { - itemParamListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder clearItemParamList() { - if (itemParamListBuilder_ == null) { - itemParamList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - itemParamListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public Builder removeItemParamList(int index) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - itemParamList_.remove(index); - onChanged(); - } else { - itemParamListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getItemParamListBuilder( - int index) { - return getItemParamListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder( - int index) { - if (itemParamListBuilder_ == null) { - return itemParamList_.get(index); } else { - return itemParamListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getItemParamListOrBuilderList() { - if (itemParamListBuilder_ != null) { - return itemParamListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(itemParamList_); - } - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder() { - return getItemParamListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder( - int index) { - return getItemParamListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); - } - /** - * <code>repeated .ItemParam itemParamList = 3;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder> - getItemParamListBuilderList() { - return getItemParamListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getItemParamListFieldBuilder() { - if (itemParamListBuilder_ == null) { - itemParamListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>( - itemParamList_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - itemParamList_ = null; - } - return itemParamListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WeaponUpgradeReq) - } - - // @@protoc_insertion_point(class_scope:WeaponUpgradeReq) - private static final emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq(); - } - - public static emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<WeaponUpgradeReq> - PARSER = new com.google.protobuf.AbstractParser<WeaponUpgradeReq>() { - @java.lang.Override - public WeaponUpgradeReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WeaponUpgradeReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<WeaponUpgradeReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<WeaponUpgradeReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WeaponUpgradeReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WeaponUpgradeReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026WeaponUpgradeReq.proto\032\017ItemParam.prot" + - "o\"k\n\020WeaponUpgradeReq\022\030\n\020targetWeaponGui" + - "d\030\001 \001(\004\022\032\n\022foodWeaponGuidList\030\002 \003(\004\022!\n\ri" + - "temParamList\030\003 \003(\0132\n.ItemParamB\033\n\031emu.gr" + - "asscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(), - }); - internal_static_WeaponUpgradeReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_WeaponUpgradeReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WeaponUpgradeReq_descriptor, - new java.lang.String[] { "TargetWeaponGuid", "FoodWeaponGuidList", "ItemParamList", }); - emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/WeaponUpgradeRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/WeaponUpgradeRspOuterClass.java deleted file mode 100644 index eb12cb769..000000000 --- a/src/main/java/emu/grasscutter/net/proto/WeaponUpgradeRspOuterClass.java +++ /dev/null @@ -1,1127 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WeaponUpgradeRsp.proto - -package emu.grasscutter.net.proto; - -public final class WeaponUpgradeRspOuterClass { - private WeaponUpgradeRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WeaponUpgradeRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:WeaponUpgradeRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint64 targetWeaponGuid = 2;</code> - * @return The targetWeaponGuid. - */ - long getTargetWeaponGuid(); - - /** - * <code>uint32 oldLevel = 3;</code> - * @return The oldLevel. - */ - int getOldLevel(); - - /** - * <code>uint32 curLevel = 4;</code> - * @return The curLevel. - */ - int getCurLevel(); - - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> - getItemParamListList(); - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index); - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - int getItemParamListCount(); - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getItemParamListOrBuilderList(); - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder( - int index); - } - /** - * Protobuf type {@code WeaponUpgradeRsp} - */ - public static final class WeaponUpgradeRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WeaponUpgradeRsp) - WeaponUpgradeRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use WeaponUpgradeRsp.newBuilder() to construct. - private WeaponUpgradeRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private WeaponUpgradeRsp() { - itemParamList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WeaponUpgradeRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WeaponUpgradeRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - targetWeaponGuid_ = input.readUInt64(); - break; - } - case 24: { - - oldLevel_ = input.readUInt32(); - break; - } - case 32: { - - curLevel_ = input.readUInt32(); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - itemParamList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>(); - mutable_bitField0_ |= 0x00000001; - } - itemParamList_.add( - input.readMessage(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - itemParamList_ = java.util.Collections.unmodifiableList(itemParamList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.internal_static_WeaponUpgradeRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.internal_static_WeaponUpgradeRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp.class, emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int TARGETWEAPONGUID_FIELD_NUMBER = 2; - private long targetWeaponGuid_; - /** - * <code>uint64 targetWeaponGuid = 2;</code> - * @return The targetWeaponGuid. - */ - @java.lang.Override - public long getTargetWeaponGuid() { - return targetWeaponGuid_; - } - - public static final int OLDLEVEL_FIELD_NUMBER = 3; - private int oldLevel_; - /** - * <code>uint32 oldLevel = 3;</code> - * @return The oldLevel. - */ - @java.lang.Override - public int getOldLevel() { - return oldLevel_; - } - - public static final int CURLEVEL_FIELD_NUMBER = 4; - private int curLevel_; - /** - * <code>uint32 curLevel = 4;</code> - * @return The curLevel. - */ - @java.lang.Override - public int getCurLevel() { - return curLevel_; - } - - public static final int ITEMPARAMLIST_FIELD_NUMBER = 5; - private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> itemParamList_; - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getItemParamListList() { - return itemParamList_; - } - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getItemParamListOrBuilderList() { - return itemParamList_; - } - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - @java.lang.Override - public int getItemParamListCount() { - return itemParamList_.size(); - } - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) { - return itemParamList_.get(index); - } - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder( - int index) { - return itemParamList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (targetWeaponGuid_ != 0L) { - output.writeUInt64(2, targetWeaponGuid_); - } - if (oldLevel_ != 0) { - output.writeUInt32(3, oldLevel_); - } - if (curLevel_ != 0) { - output.writeUInt32(4, curLevel_); - } - for (int i = 0; i < itemParamList_.size(); i++) { - output.writeMessage(5, itemParamList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (targetWeaponGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, targetWeaponGuid_); - } - if (oldLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, oldLevel_); - } - if (curLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, curLevel_); - } - for (int i = 0; i < itemParamList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, itemParamList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp other = (emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getTargetWeaponGuid() - != other.getTargetWeaponGuid()) return false; - if (getOldLevel() - != other.getOldLevel()) return false; - if (getCurLevel() - != other.getCurLevel()) return false; - if (!getItemParamListList() - .equals(other.getItemParamListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + TARGETWEAPONGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTargetWeaponGuid()); - hash = (37 * hash) + OLDLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getOldLevel(); - hash = (37 * hash) + CURLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getCurLevel(); - if (getItemParamListCount() > 0) { - hash = (37 * hash) + ITEMPARAMLIST_FIELD_NUMBER; - hash = (53 * hash) + getItemParamListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code WeaponUpgradeRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:WeaponUpgradeRsp) - emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.internal_static_WeaponUpgradeRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.internal_static_WeaponUpgradeRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp.class, emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getItemParamListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - targetWeaponGuid_ = 0L; - - oldLevel_ = 0; - - curLevel_ = 0; - - if (itemParamListBuilder_ == null) { - itemParamList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - itemParamListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.internal_static_WeaponUpgradeRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp build() { - emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp buildPartial() { - emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp result = new emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp(this); - int from_bitField0_ = bitField0_; - result.retcode_ = retcode_; - result.targetWeaponGuid_ = targetWeaponGuid_; - result.oldLevel_ = oldLevel_; - result.curLevel_ = curLevel_; - if (itemParamListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - itemParamList_ = java.util.Collections.unmodifiableList(itemParamList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.itemParamList_ = itemParamList_; - } else { - result.itemParamList_ = itemParamListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp) { - return mergeFrom((emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp other) { - if (other == emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getTargetWeaponGuid() != 0L) { - setTargetWeaponGuid(other.getTargetWeaponGuid()); - } - if (other.getOldLevel() != 0) { - setOldLevel(other.getOldLevel()); - } - if (other.getCurLevel() != 0) { - setCurLevel(other.getCurLevel()); - } - if (itemParamListBuilder_ == null) { - if (!other.itemParamList_.isEmpty()) { - if (itemParamList_.isEmpty()) { - itemParamList_ = other.itemParamList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureItemParamListIsMutable(); - itemParamList_.addAll(other.itemParamList_); - } - onChanged(); - } - } else { - if (!other.itemParamList_.isEmpty()) { - if (itemParamListBuilder_.isEmpty()) { - itemParamListBuilder_.dispose(); - itemParamListBuilder_ = null; - itemParamList_ = other.itemParamList_; - bitField0_ = (bitField0_ & ~0x00000001); - itemParamListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getItemParamListFieldBuilder() : null; - } else { - itemParamListBuilder_.addAllMessages(other.itemParamList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private long targetWeaponGuid_ ; - /** - * <code>uint64 targetWeaponGuid = 2;</code> - * @return The targetWeaponGuid. - */ - @java.lang.Override - public long getTargetWeaponGuid() { - return targetWeaponGuid_; - } - /** - * <code>uint64 targetWeaponGuid = 2;</code> - * @param value The targetWeaponGuid to set. - * @return This builder for chaining. - */ - public Builder setTargetWeaponGuid(long value) { - - targetWeaponGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 targetWeaponGuid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearTargetWeaponGuid() { - - targetWeaponGuid_ = 0L; - onChanged(); - return this; - } - - private int oldLevel_ ; - /** - * <code>uint32 oldLevel = 3;</code> - * @return The oldLevel. - */ - @java.lang.Override - public int getOldLevel() { - return oldLevel_; - } - /** - * <code>uint32 oldLevel = 3;</code> - * @param value The oldLevel to set. - * @return This builder for chaining. - */ - public Builder setOldLevel(int value) { - - oldLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 oldLevel = 3;</code> - * @return This builder for chaining. - */ - public Builder clearOldLevel() { - - oldLevel_ = 0; - onChanged(); - return this; - } - - private int curLevel_ ; - /** - * <code>uint32 curLevel = 4;</code> - * @return The curLevel. - */ - @java.lang.Override - public int getCurLevel() { - return curLevel_; - } - /** - * <code>uint32 curLevel = 4;</code> - * @param value The curLevel to set. - * @return This builder for chaining. - */ - public Builder setCurLevel(int value) { - - curLevel_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 curLevel = 4;</code> - * @return This builder for chaining. - */ - public Builder clearCurLevel() { - - curLevel_ = 0; - onChanged(); - return this; - } - - private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> itemParamList_ = - java.util.Collections.emptyList(); - private void ensureItemParamListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - itemParamList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>(itemParamList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> itemParamListBuilder_; - - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getItemParamListList() { - if (itemParamListBuilder_ == null) { - return java.util.Collections.unmodifiableList(itemParamList_); - } else { - return itemParamListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - public int getItemParamListCount() { - if (itemParamListBuilder_ == null) { - return itemParamList_.size(); - } else { - return itemParamListBuilder_.getCount(); - } - } - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) { - if (itemParamListBuilder_ == null) { - return itemParamList_.get(index); - } else { - return itemParamListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - public Builder setItemParamList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (itemParamListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemParamListIsMutable(); - itemParamList_.set(index, value); - onChanged(); - } else { - itemParamListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - public Builder setItemParamList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - itemParamList_.set(index, builderForValue.build()); - onChanged(); - } else { - itemParamListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - public Builder addItemParamList(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (itemParamListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemParamListIsMutable(); - itemParamList_.add(value); - onChanged(); - } else { - itemParamListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - public Builder addItemParamList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) { - if (itemParamListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemParamListIsMutable(); - itemParamList_.add(index, value); - onChanged(); - } else { - itemParamListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - public Builder addItemParamList( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - itemParamList_.add(builderForValue.build()); - onChanged(); - } else { - itemParamListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - public Builder addItemParamList( - int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - itemParamList_.add(index, builderForValue.build()); - onChanged(); - } else { - itemParamListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - public Builder addAllItemParamList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> values) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, itemParamList_); - onChanged(); - } else { - itemParamListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - public Builder clearItemParamList() { - if (itemParamListBuilder_ == null) { - itemParamList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - itemParamListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - public Builder removeItemParamList(int index) { - if (itemParamListBuilder_ == null) { - ensureItemParamListIsMutable(); - itemParamList_.remove(index); - onChanged(); - } else { - itemParamListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getItemParamListBuilder( - int index) { - return getItemParamListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder( - int index) { - if (itemParamListBuilder_ == null) { - return itemParamList_.get(index); } else { - return itemParamListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getItemParamListOrBuilderList() { - if (itemParamListBuilder_ != null) { - return itemParamListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(itemParamList_); - } - } - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder() { - return getItemParamListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); - } - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder( - int index) { - return getItemParamListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); - } - /** - * <code>repeated .ItemParam itemParamList = 5;</code> - */ - public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder> - getItemParamListBuilderList() { - return getItemParamListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> - getItemParamListFieldBuilder() { - if (itemParamListBuilder_ == null) { - itemParamListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>( - itemParamList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - itemParamList_ = null; - } - return itemParamListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WeaponUpgradeRsp) - } - - // @@protoc_insertion_point(class_scope:WeaponUpgradeRsp) - private static final emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp(); - } - - public static emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<WeaponUpgradeRsp> - PARSER = new com.google.protobuf.AbstractParser<WeaponUpgradeRsp>() { - @java.lang.Override - public WeaponUpgradeRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WeaponUpgradeRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<WeaponUpgradeRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<WeaponUpgradeRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WeaponUpgradeRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WeaponUpgradeRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026WeaponUpgradeRsp.proto\032\017ItemParam.prot" + - "o\"\204\001\n\020WeaponUpgradeRsp\022\017\n\007retcode\030\001 \001(\005\022" + - "\030\n\020targetWeaponGuid\030\002 \001(\004\022\020\n\010oldLevel\030\003 " + - "\001(\r\022\020\n\010curLevel\030\004 \001(\r\022!\n\ritemParamList\030\005" + - " \003(\0132\n.ItemParamB\033\n\031emu.grasscutter.net." + - "protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(), - }); - internal_static_WeaponUpgradeRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_WeaponUpgradeRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WeaponUpgradeRsp_descriptor, - new java.lang.String[] { "Retcode", "TargetWeaponGuid", "OldLevel", "CurLevel", "ItemParamList", }); - emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/WearEquipReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/WearEquipReqOuterClass.java deleted file mode 100644 index 2a7823da4..000000000 --- a/src/main/java/emu/grasscutter/net/proto/WearEquipReqOuterClass.java +++ /dev/null @@ -1,608 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WearEquipReq.proto - -package emu.grasscutter.net.proto; - -public final class WearEquipReqOuterClass { - private WearEquipReqOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WearEquipReqOrBuilder extends - // @@protoc_insertion_point(interface_extends:WearEquipReq) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>uint64 equipGuid = 2;</code> - * @return The equipGuid. - */ - long getEquipGuid(); - } - /** - * Protobuf type {@code WearEquipReq} - */ - public static final class WearEquipReq extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WearEquipReq) - WearEquipReqOrBuilder { - private static final long serialVersionUID = 0L; - // Use WearEquipReq.newBuilder() to construct. - private WearEquipReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private WearEquipReq() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WearEquipReq(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WearEquipReq( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 16: { - - equipGuid_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WearEquipReqOuterClass.internal_static_WearEquipReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WearEquipReqOuterClass.internal_static_WearEquipReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq.class, emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq.Builder.class); - } - - public static final int AVATARGUID_FIELD_NUMBER = 1; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int EQUIPGUID_FIELD_NUMBER = 2; - private long equipGuid_; - /** - * <code>uint64 equipGuid = 2;</code> - * @return The equipGuid. - */ - @java.lang.Override - public long getEquipGuid() { - return equipGuid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (avatarGuid_ != 0L) { - output.writeUInt64(1, avatarGuid_); - } - if (equipGuid_ != 0L) { - output.writeUInt64(2, equipGuid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, avatarGuid_); - } - if (equipGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, equipGuid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq other = (emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq) obj; - - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (getEquipGuid() - != other.getEquipGuid()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - hash = (37 * hash) + EQUIPGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEquipGuid()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code WearEquipReq} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:WearEquipReq) - emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReqOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WearEquipReqOuterClass.internal_static_WearEquipReq_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WearEquipReqOuterClass.internal_static_WearEquipReq_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq.class, emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - avatarGuid_ = 0L; - - equipGuid_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.WearEquipReqOuterClass.internal_static_WearEquipReq_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq getDefaultInstanceForType() { - return emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq build() { - emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq buildPartial() { - emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq result = new emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq(this); - result.avatarGuid_ = avatarGuid_; - result.equipGuid_ = equipGuid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq) { - return mergeFrom((emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq other) { - if (other == emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq.getDefaultInstance()) return this; - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - if (other.getEquipGuid() != 0L) { - setEquipGuid(other.getEquipGuid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 1;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 1;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private long equipGuid_ ; - /** - * <code>uint64 equipGuid = 2;</code> - * @return The equipGuid. - */ - @java.lang.Override - public long getEquipGuid() { - return equipGuid_; - } - /** - * <code>uint64 equipGuid = 2;</code> - * @param value The equipGuid to set. - * @return This builder for chaining. - */ - public Builder setEquipGuid(long value) { - - equipGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 equipGuid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearEquipGuid() { - - equipGuid_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WearEquipReq) - } - - // @@protoc_insertion_point(class_scope:WearEquipReq) - private static final emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq(); - } - - public static emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<WearEquipReq> - PARSER = new com.google.protobuf.AbstractParser<WearEquipReq>() { - @java.lang.Override - public WearEquipReq parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WearEquipReq(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<WearEquipReq> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<WearEquipReq> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WearEquipReq_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WearEquipReq_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\022WearEquipReq.proto\"5\n\014WearEquipReq\022\022\n\n" + - "avatarGuid\030\001 \001(\004\022\021\n\tequipGuid\030\002 \001(\004B\033\n\031e" + - "mu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_WearEquipReq_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_WearEquipReq_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WearEquipReq_descriptor, - new java.lang.String[] { "AvatarGuid", "EquipGuid", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/WearEquipRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/WearEquipRspOuterClass.java deleted file mode 100644 index 356f21e6f..000000000 --- a/src/main/java/emu/grasscutter/net/proto/WearEquipRspOuterClass.java +++ /dev/null @@ -1,679 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WearEquipRsp.proto - -package emu.grasscutter.net.proto; - -public final class WearEquipRspOuterClass { - private WearEquipRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WearEquipRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:WearEquipRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - long getAvatarGuid(); - - /** - * <code>uint64 equipGuid = 3;</code> - * @return The equipGuid. - */ - long getEquipGuid(); - } - /** - * Protobuf type {@code WearEquipRsp} - */ - public static final class WearEquipRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WearEquipRsp) - WearEquipRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use WearEquipRsp.newBuilder() to construct. - private WearEquipRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private WearEquipRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WearEquipRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WearEquipRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - case 16: { - - avatarGuid_ = input.readUInt64(); - break; - } - case 24: { - - equipGuid_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WearEquipRspOuterClass.internal_static_WearEquipRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WearEquipRspOuterClass.internal_static_WearEquipRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp.class, emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - public static final int AVATARGUID_FIELD_NUMBER = 2; - private long avatarGuid_; - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - - public static final int EQUIPGUID_FIELD_NUMBER = 3; - private long equipGuid_; - /** - * <code>uint64 equipGuid = 3;</code> - * @return The equipGuid. - */ - @java.lang.Override - public long getEquipGuid() { - return equipGuid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - if (avatarGuid_ != 0L) { - output.writeUInt64(2, avatarGuid_); - } - if (equipGuid_ != 0L) { - output.writeUInt64(3, equipGuid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - if (avatarGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, avatarGuid_); - } - if (equipGuid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, equipGuid_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp other = (emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (getAvatarGuid() - != other.getAvatarGuid()) return false; - if (getEquipGuid() - != other.getEquipGuid()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (37 * hash) + AVATARGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvatarGuid()); - hash = (37 * hash) + EQUIPGUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEquipGuid()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code WearEquipRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:WearEquipRsp) - emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WearEquipRspOuterClass.internal_static_WearEquipRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WearEquipRspOuterClass.internal_static_WearEquipRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp.class, emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - avatarGuid_ = 0L; - - equipGuid_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.WearEquipRspOuterClass.internal_static_WearEquipRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp build() { - emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp buildPartial() { - emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp result = new emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp(this); - result.retcode_ = retcode_; - result.avatarGuid_ = avatarGuid_; - result.equipGuid_ = equipGuid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp) { - return mergeFrom((emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp other) { - if (other == emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - if (other.getAvatarGuid() != 0L) { - setAvatarGuid(other.getAvatarGuid()); - } - if (other.getEquipGuid() != 0L) { - setEquipGuid(other.getEquipGuid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - - private long avatarGuid_ ; - /** - * <code>uint64 avatarGuid = 2;</code> - * @return The avatarGuid. - */ - @java.lang.Override - public long getAvatarGuid() { - return avatarGuid_; - } - /** - * <code>uint64 avatarGuid = 2;</code> - * @param value The avatarGuid to set. - * @return This builder for chaining. - */ - public Builder setAvatarGuid(long value) { - - avatarGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 avatarGuid = 2;</code> - * @return This builder for chaining. - */ - public Builder clearAvatarGuid() { - - avatarGuid_ = 0L; - onChanged(); - return this; - } - - private long equipGuid_ ; - /** - * <code>uint64 equipGuid = 3;</code> - * @return The equipGuid. - */ - @java.lang.Override - public long getEquipGuid() { - return equipGuid_; - } - /** - * <code>uint64 equipGuid = 3;</code> - * @param value The equipGuid to set. - * @return This builder for chaining. - */ - public Builder setEquipGuid(long value) { - - equipGuid_ = value; - onChanged(); - return this; - } - /** - * <code>uint64 equipGuid = 3;</code> - * @return This builder for chaining. - */ - public Builder clearEquipGuid() { - - equipGuid_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WearEquipRsp) - } - - // @@protoc_insertion_point(class_scope:WearEquipRsp) - private static final emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp(); - } - - public static emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<WearEquipRsp> - PARSER = new com.google.protobuf.AbstractParser<WearEquipRsp>() { - @java.lang.Override - public WearEquipRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WearEquipRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<WearEquipRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<WearEquipRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WearEquipRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WearEquipRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\022WearEquipRsp.proto\"F\n\014WearEquipRsp\022\017\n\007" + - "retcode\030\001 \001(\005\022\022\n\navatarGuid\030\002 \001(\004\022\021\n\tequ" + - "ipGuid\030\003 \001(\004B\033\n\031emu.grasscutter.net.prot" + - "ob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_WearEquipRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_WearEquipRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WearEquipRsp_descriptor, - new java.lang.String[] { "Retcode", "AvatarGuid", "EquipGuid", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/WeeklyBossResinDiscountInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/WeeklyBossResinDiscountInfoOuterClass.java deleted file mode 100644 index 3f87aeb8c..000000000 --- a/src/main/java/emu/grasscutter/net/proto/WeeklyBossResinDiscountInfoOuterClass.java +++ /dev/null @@ -1,748 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WeeklyBossResinDiscountInfo.proto - -package emu.grasscutter.net.proto; - -public final class WeeklyBossResinDiscountInfoOuterClass { - private WeeklyBossResinDiscountInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WeeklyBossResinDiscountInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:WeeklyBossResinDiscountInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 discountNum = 1;</code> - * @return The discountNum. - */ - int getDiscountNum(); - - /** - * <code>uint32 discountNumLimit = 2;</code> - * @return The discountNumLimit. - */ - int getDiscountNumLimit(); - - /** - * <code>uint32 resinCost = 3;</code> - * @return The resinCost. - */ - int getResinCost(); - - /** - * <code>uint32 originalResinCost = 4;</code> - * @return The originalResinCost. - */ - int getOriginalResinCost(); - } - /** - * Protobuf type {@code WeeklyBossResinDiscountInfo} - */ - public static final class WeeklyBossResinDiscountInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WeeklyBossResinDiscountInfo) - WeeklyBossResinDiscountInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use WeeklyBossResinDiscountInfo.newBuilder() to construct. - private WeeklyBossResinDiscountInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private WeeklyBossResinDiscountInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WeeklyBossResinDiscountInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WeeklyBossResinDiscountInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - discountNum_ = input.readUInt32(); - break; - } - case 16: { - - discountNumLimit_ = input.readUInt32(); - break; - } - case 24: { - - resinCost_ = input.readUInt32(); - break; - } - case 32: { - - originalResinCost_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.internal_static_WeeklyBossResinDiscountInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.internal_static_WeeklyBossResinDiscountInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo.class, emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo.Builder.class); - } - - public static final int DISCOUNTNUM_FIELD_NUMBER = 1; - private int discountNum_; - /** - * <code>uint32 discountNum = 1;</code> - * @return The discountNum. - */ - @java.lang.Override - public int getDiscountNum() { - return discountNum_; - } - - public static final int DISCOUNTNUMLIMIT_FIELD_NUMBER = 2; - private int discountNumLimit_; - /** - * <code>uint32 discountNumLimit = 2;</code> - * @return The discountNumLimit. - */ - @java.lang.Override - public int getDiscountNumLimit() { - return discountNumLimit_; - } - - public static final int RESINCOST_FIELD_NUMBER = 3; - private int resinCost_; - /** - * <code>uint32 resinCost = 3;</code> - * @return The resinCost. - */ - @java.lang.Override - public int getResinCost() { - return resinCost_; - } - - public static final int ORIGINALRESINCOST_FIELD_NUMBER = 4; - private int originalResinCost_; - /** - * <code>uint32 originalResinCost = 4;</code> - * @return The originalResinCost. - */ - @java.lang.Override - public int getOriginalResinCost() { - return originalResinCost_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (discountNum_ != 0) { - output.writeUInt32(1, discountNum_); - } - if (discountNumLimit_ != 0) { - output.writeUInt32(2, discountNumLimit_); - } - if (resinCost_ != 0) { - output.writeUInt32(3, resinCost_); - } - if (originalResinCost_ != 0) { - output.writeUInt32(4, originalResinCost_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (discountNum_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, discountNum_); - } - if (discountNumLimit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, discountNumLimit_); - } - if (resinCost_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, resinCost_); - } - if (originalResinCost_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, originalResinCost_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo other = (emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo) obj; - - if (getDiscountNum() - != other.getDiscountNum()) return false; - if (getDiscountNumLimit() - != other.getDiscountNumLimit()) return false; - if (getResinCost() - != other.getResinCost()) return false; - if (getOriginalResinCost() - != other.getOriginalResinCost()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DISCOUNTNUM_FIELD_NUMBER; - hash = (53 * hash) + getDiscountNum(); - hash = (37 * hash) + DISCOUNTNUMLIMIT_FIELD_NUMBER; - hash = (53 * hash) + getDiscountNumLimit(); - hash = (37 * hash) + RESINCOST_FIELD_NUMBER; - hash = (53 * hash) + getResinCost(); - hash = (37 * hash) + ORIGINALRESINCOST_FIELD_NUMBER; - hash = (53 * hash) + getOriginalResinCost(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code WeeklyBossResinDiscountInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:WeeklyBossResinDiscountInfo) - emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.internal_static_WeeklyBossResinDiscountInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.internal_static_WeeklyBossResinDiscountInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo.class, emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - discountNum_ = 0; - - discountNumLimit_ = 0; - - resinCost_ = 0; - - originalResinCost_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.internal_static_WeeklyBossResinDiscountInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo build() { - emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo buildPartial() { - emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo result = new emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo(this); - result.discountNum_ = discountNum_; - result.discountNumLimit_ = discountNumLimit_; - result.resinCost_ = resinCost_; - result.originalResinCost_ = originalResinCost_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo) { - return mergeFrom((emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo other) { - if (other == emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo.getDefaultInstance()) return this; - if (other.getDiscountNum() != 0) { - setDiscountNum(other.getDiscountNum()); - } - if (other.getDiscountNumLimit() != 0) { - setDiscountNumLimit(other.getDiscountNumLimit()); - } - if (other.getResinCost() != 0) { - setResinCost(other.getResinCost()); - } - if (other.getOriginalResinCost() != 0) { - setOriginalResinCost(other.getOriginalResinCost()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int discountNum_ ; - /** - * <code>uint32 discountNum = 1;</code> - * @return The discountNum. - */ - @java.lang.Override - public int getDiscountNum() { - return discountNum_; - } - /** - * <code>uint32 discountNum = 1;</code> - * @param value The discountNum to set. - * @return This builder for chaining. - */ - public Builder setDiscountNum(int value) { - - discountNum_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 discountNum = 1;</code> - * @return This builder for chaining. - */ - public Builder clearDiscountNum() { - - discountNum_ = 0; - onChanged(); - return this; - } - - private int discountNumLimit_ ; - /** - * <code>uint32 discountNumLimit = 2;</code> - * @return The discountNumLimit. - */ - @java.lang.Override - public int getDiscountNumLimit() { - return discountNumLimit_; - } - /** - * <code>uint32 discountNumLimit = 2;</code> - * @param value The discountNumLimit to set. - * @return This builder for chaining. - */ - public Builder setDiscountNumLimit(int value) { - - discountNumLimit_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 discountNumLimit = 2;</code> - * @return This builder for chaining. - */ - public Builder clearDiscountNumLimit() { - - discountNumLimit_ = 0; - onChanged(); - return this; - } - - private int resinCost_ ; - /** - * <code>uint32 resinCost = 3;</code> - * @return The resinCost. - */ - @java.lang.Override - public int getResinCost() { - return resinCost_; - } - /** - * <code>uint32 resinCost = 3;</code> - * @param value The resinCost to set. - * @return This builder for chaining. - */ - public Builder setResinCost(int value) { - - resinCost_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 resinCost = 3;</code> - * @return This builder for chaining. - */ - public Builder clearResinCost() { - - resinCost_ = 0; - onChanged(); - return this; - } - - private int originalResinCost_ ; - /** - * <code>uint32 originalResinCost = 4;</code> - * @return The originalResinCost. - */ - @java.lang.Override - public int getOriginalResinCost() { - return originalResinCost_; - } - /** - * <code>uint32 originalResinCost = 4;</code> - * @param value The originalResinCost to set. - * @return This builder for chaining. - */ - public Builder setOriginalResinCost(int value) { - - originalResinCost_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 originalResinCost = 4;</code> - * @return This builder for chaining. - */ - public Builder clearOriginalResinCost() { - - originalResinCost_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WeeklyBossResinDiscountInfo) - } - - // @@protoc_insertion_point(class_scope:WeeklyBossResinDiscountInfo) - private static final emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo(); - } - - public static emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<WeeklyBossResinDiscountInfo> - PARSER = new com.google.protobuf.AbstractParser<WeeklyBossResinDiscountInfo>() { - @java.lang.Override - public WeeklyBossResinDiscountInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WeeklyBossResinDiscountInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<WeeklyBossResinDiscountInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<WeeklyBossResinDiscountInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WeeklyBossResinDiscountInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WeeklyBossResinDiscountInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n!WeeklyBossResinDiscountInfo.proto\"z\n\033W" + - "eeklyBossResinDiscountInfo\022\023\n\013discountNu" + - "m\030\001 \001(\r\022\030\n\020discountNumLimit\030\002 \001(\r\022\021\n\tres" + - "inCost\030\003 \001(\r\022\031\n\021originalResinCost\030\004 \001(\rB" + - "\033\n\031emu.grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_WeeklyBossResinDiscountInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_WeeklyBossResinDiscountInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WeeklyBossResinDiscountInfo_descriptor, - new java.lang.String[] { "DiscountNum", "DiscountNumLimit", "ResinCost", "OriginalResinCost", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/WorldDataNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/WorldDataNotifyOuterClass.java deleted file mode 100644 index 6fc843b25..000000000 --- a/src/main/java/emu/grasscutter/net/proto/WorldDataNotifyOuterClass.java +++ /dev/null @@ -1,802 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WorldDataNotify.proto - -package emu.grasscutter.net.proto; - -public final class WorldDataNotifyOuterClass { - private WorldDataNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WorldDataNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:WorldDataNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>map<uint32, .PropValue> worldPropMap = 1;</code> - */ - int getWorldPropMapCount(); - /** - * <code>map<uint32, .PropValue> worldPropMap = 1;</code> - */ - boolean containsWorldPropMap( - int key); - /** - * Use {@link #getWorldPropMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - getWorldPropMap(); - /** - * <code>map<uint32, .PropValue> worldPropMap = 1;</code> - */ - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - getWorldPropMapMap(); - /** - * <code>map<uint32, .PropValue> worldPropMap = 1;</code> - */ - - emu.grasscutter.net.proto.PropValueOuterClass.PropValue getWorldPropMapOrDefault( - int key, - emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue); - /** - * <code>map<uint32, .PropValue> worldPropMap = 1;</code> - */ - - emu.grasscutter.net.proto.PropValueOuterClass.PropValue getWorldPropMapOrThrow( - int key); - } - /** - * Protobuf type {@code WorldDataNotify} - */ - public static final class WorldDataNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WorldDataNotify) - WorldDataNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorldDataNotify.newBuilder() to construct. - private WorldDataNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private WorldDataNotify() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WorldDataNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorldDataNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - worldPropMap_ = com.google.protobuf.MapField.newMapField( - WorldPropMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - worldPropMap__ = input.readMessage( - WorldPropMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - worldPropMap_.getMutableMap().put( - worldPropMap__.getKey(), worldPropMap__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WorldDataNotifyOuterClass.internal_static_WorldDataNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetWorldPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WorldDataNotifyOuterClass.internal_static_WorldDataNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify.class, emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify.Builder.class); - } - - public static final int WORLDPROPMAP_FIELD_NUMBER = 1; - private static final class WorldPropMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue>newDefaultInstance( - emu.grasscutter.net.proto.WorldDataNotifyOuterClass.internal_static_WorldDataNotify_WorldPropMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - emu.grasscutter.net.proto.PropValueOuterClass.PropValue.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> worldPropMap_; - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - internalGetWorldPropMap() { - if (worldPropMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - WorldPropMapDefaultEntryHolder.defaultEntry); - } - return worldPropMap_; - } - - public int getWorldPropMapCount() { - return internalGetWorldPropMap().getMap().size(); - } - /** - * <code>map<uint32, .PropValue> worldPropMap = 1;</code> - */ - - @java.lang.Override - public boolean containsWorldPropMap( - int key) { - - return internalGetWorldPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getWorldPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> getWorldPropMap() { - return getWorldPropMapMap(); - } - /** - * <code>map<uint32, .PropValue> worldPropMap = 1;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> getWorldPropMapMap() { - return internalGetWorldPropMap().getMap(); - } - /** - * <code>map<uint32, .PropValue> worldPropMap = 1;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getWorldPropMapOrDefault( - int key, - emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> map = - internalGetWorldPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, .PropValue> worldPropMap = 1;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getWorldPropMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> map = - internalGetWorldPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetWorldPropMap(), - WorldPropMapDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> entry - : internalGetWorldPropMap().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - worldPropMap__ = WorldPropMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, worldPropMap__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify other = (emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify) obj; - - if (!internalGetWorldPropMap().equals( - other.internalGetWorldPropMap())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetWorldPropMap().getMap().isEmpty()) { - hash = (37 * hash) + WORLDPROPMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetWorldPropMap().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code WorldDataNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:WorldDataNotify) - emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WorldDataNotifyOuterClass.internal_static_WorldDataNotify_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetWorldPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableWorldPropMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WorldDataNotifyOuterClass.internal_static_WorldDataNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify.class, emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableWorldPropMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.WorldDataNotifyOuterClass.internal_static_WorldDataNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify build() { - emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify buildPartial() { - emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify result = new emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify(this); - int from_bitField0_ = bitField0_; - result.worldPropMap_ = internalGetWorldPropMap(); - result.worldPropMap_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify) { - return mergeFrom((emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify other) { - if (other == emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify.getDefaultInstance()) return this; - internalGetMutableWorldPropMap().mergeFrom( - other.internalGetWorldPropMap()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> worldPropMap_; - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - internalGetWorldPropMap() { - if (worldPropMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - WorldPropMapDefaultEntryHolder.defaultEntry); - } - return worldPropMap_; - } - private com.google.protobuf.MapField<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - internalGetMutableWorldPropMap() { - onChanged();; - if (worldPropMap_ == null) { - worldPropMap_ = com.google.protobuf.MapField.newMapField( - WorldPropMapDefaultEntryHolder.defaultEntry); - } - if (!worldPropMap_.isMutable()) { - worldPropMap_ = worldPropMap_.copy(); - } - return worldPropMap_; - } - - public int getWorldPropMapCount() { - return internalGetWorldPropMap().getMap().size(); - } - /** - * <code>map<uint32, .PropValue> worldPropMap = 1;</code> - */ - - @java.lang.Override - public boolean containsWorldPropMap( - int key) { - - return internalGetWorldPropMap().getMap().containsKey(key); - } - /** - * Use {@link #getWorldPropMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> getWorldPropMap() { - return getWorldPropMapMap(); - } - /** - * <code>map<uint32, .PropValue> worldPropMap = 1;</code> - */ - @java.lang.Override - - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> getWorldPropMapMap() { - return internalGetWorldPropMap().getMap(); - } - /** - * <code>map<uint32, .PropValue> worldPropMap = 1;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getWorldPropMapOrDefault( - int key, - emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> map = - internalGetWorldPropMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map<uint32, .PropValue> worldPropMap = 1;</code> - */ - @java.lang.Override - - public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getWorldPropMapOrThrow( - int key) { - - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> map = - internalGetWorldPropMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearWorldPropMap() { - internalGetMutableWorldPropMap().getMutableMap() - .clear(); - return this; - } - /** - * <code>map<uint32, .PropValue> worldPropMap = 1;</code> - */ - - public Builder removeWorldPropMap( - int key) { - - internalGetMutableWorldPropMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> - getMutableWorldPropMap() { - return internalGetMutableWorldPropMap().getMutableMap(); - } - /** - * <code>map<uint32, .PropValue> worldPropMap = 1;</code> - */ - public Builder putWorldPropMap( - int key, - emu.grasscutter.net.proto.PropValueOuterClass.PropValue value) { - - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableWorldPropMap().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map<uint32, .PropValue> worldPropMap = 1;</code> - */ - - public Builder putAllWorldPropMap( - java.util.Map<java.lang.Integer, emu.grasscutter.net.proto.PropValueOuterClass.PropValue> values) { - internalGetMutableWorldPropMap().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WorldDataNotify) - } - - // @@protoc_insertion_point(class_scope:WorldDataNotify) - private static final emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify(); - } - - public static emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<WorldDataNotify> - PARSER = new com.google.protobuf.AbstractParser<WorldDataNotify>() { - @java.lang.Override - public WorldDataNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorldDataNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<WorldDataNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<WorldDataNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WorldDataNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WorldDataNotify_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WorldDataNotify_WorldPropMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WorldDataNotify_WorldPropMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025WorldDataNotify.proto\032\017PropValue.proto" + - "\"\214\001\n\017WorldDataNotify\0228\n\014worldPropMap\030\001 \003" + - "(\0132\".WorldDataNotify.WorldPropMapEntry\032?" + - "\n\021WorldPropMapEntry\022\013\n\003key\030\001 \001(\r\022\031\n\005valu" + - "e\030\002 \001(\0132\n.PropValue:\0028\001B\033\n\031emu.grasscutt" + - "er.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.PropValueOuterClass.getDescriptor(), - }); - internal_static_WorldDataNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_WorldDataNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WorldDataNotify_descriptor, - new java.lang.String[] { "WorldPropMap", }); - internal_static_WorldDataNotify_WorldPropMapEntry_descriptor = - internal_static_WorldDataNotify_descriptor.getNestedTypes().get(0); - internal_static_WorldDataNotify_WorldPropMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WorldDataNotify_WorldPropMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - emu.grasscutter.net.proto.PropValueOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/WorldPlayerDieNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/WorldPlayerDieNotifyOuterClass.java deleted file mode 100644 index f7ea9a90e..000000000 --- a/src/main/java/emu/grasscutter/net/proto/WorldPlayerDieNotifyOuterClass.java +++ /dev/null @@ -1,927 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WorldPlayerDieNotify.proto - -package emu.grasscutter.net.proto; - -public final class WorldPlayerDieNotifyOuterClass { - private WorldPlayerDieNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WorldPlayerDieNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:WorldPlayerDieNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.PlayerDieType dieType = 1;</code> - * @return The enum numeric value on the wire for dieType. - */ - int getDieTypeValue(); - /** - * <code>.PlayerDieType dieType = 1;</code> - * @return The dieType. - */ - emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType getDieType(); - - /** - * <code>uint32 murdererEntityId = 2;</code> - * @return The murdererEntityId. - */ - int getMurdererEntityId(); - - /** - * <code>uint32 monsterId = 3;</code> - * @return Whether the monsterId field is set. - */ - boolean hasMonsterId(); - /** - * <code>uint32 monsterId = 3;</code> - * @return The monsterId. - */ - int getMonsterId(); - - /** - * <code>uint32 gadgetId = 4;</code> - * @return Whether the gadgetId field is set. - */ - boolean hasGadgetId(); - /** - * <code>uint32 gadgetId = 4;</code> - * @return The gadgetId. - */ - int getGadgetId(); - - public emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify.EntityCase getEntityCase(); - } - /** - * Protobuf type {@code WorldPlayerDieNotify} - */ - public static final class WorldPlayerDieNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WorldPlayerDieNotify) - WorldPlayerDieNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorldPlayerDieNotify.newBuilder() to construct. - private WorldPlayerDieNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private WorldPlayerDieNotify() { - dieType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WorldPlayerDieNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorldPlayerDieNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - dieType_ = rawValue; - break; - } - case 16: { - - murdererEntityId_ = input.readUInt32(); - break; - } - case 24: { - entityCase_ = 3; - entity_ = input.readUInt32(); - break; - } - case 32: { - entityCase_ = 4; - entity_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.internal_static_WorldPlayerDieNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.internal_static_WorldPlayerDieNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify.class, emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify.Builder.class); - } - - private int entityCase_ = 0; - private java.lang.Object entity_; - public enum EntityCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - MONSTERID(3), - GADGETID(4), - ENTITY_NOT_SET(0); - private final int value; - private EntityCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static EntityCase valueOf(int value) { - return forNumber(value); - } - - public static EntityCase forNumber(int value) { - switch (value) { - case 3: return MONSTERID; - case 4: return GADGETID; - case 0: return ENTITY_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public EntityCase - getEntityCase() { - return EntityCase.forNumber( - entityCase_); - } - - public static final int DIETYPE_FIELD_NUMBER = 1; - private int dieType_; - /** - * <code>.PlayerDieType dieType = 1;</code> - * @return The enum numeric value on the wire for dieType. - */ - @java.lang.Override public int getDieTypeValue() { - return dieType_; - } - /** - * <code>.PlayerDieType dieType = 1;</code> - * @return The dieType. - */ - @java.lang.Override public emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType getDieType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType result = emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.valueOf(dieType_); - return result == null ? emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.UNRECOGNIZED : result; - } - - public static final int MURDERERENTITYID_FIELD_NUMBER = 2; - private int murdererEntityId_; - /** - * <code>uint32 murdererEntityId = 2;</code> - * @return The murdererEntityId. - */ - @java.lang.Override - public int getMurdererEntityId() { - return murdererEntityId_; - } - - public static final int MONSTERID_FIELD_NUMBER = 3; - /** - * <code>uint32 monsterId = 3;</code> - * @return Whether the monsterId field is set. - */ - @java.lang.Override - public boolean hasMonsterId() { - return entityCase_ == 3; - } - /** - * <code>uint32 monsterId = 3;</code> - * @return The monsterId. - */ - @java.lang.Override - public int getMonsterId() { - if (entityCase_ == 3) { - return (java.lang.Integer) entity_; - } - return 0; - } - - public static final int GADGETID_FIELD_NUMBER = 4; - /** - * <code>uint32 gadgetId = 4;</code> - * @return Whether the gadgetId field is set. - */ - @java.lang.Override - public boolean hasGadgetId() { - return entityCase_ == 4; - } - /** - * <code>uint32 gadgetId = 4;</code> - * @return The gadgetId. - */ - @java.lang.Override - public int getGadgetId() { - if (entityCase_ == 4) { - return (java.lang.Integer) entity_; - } - return 0; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (dieType_ != emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.PlayerDieNone.getNumber()) { - output.writeEnum(1, dieType_); - } - if (murdererEntityId_ != 0) { - output.writeUInt32(2, murdererEntityId_); - } - if (entityCase_ == 3) { - output.writeUInt32( - 3, (int)((java.lang.Integer) entity_)); - } - if (entityCase_ == 4) { - output.writeUInt32( - 4, (int)((java.lang.Integer) entity_)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dieType_ != emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.PlayerDieNone.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, dieType_); - } - if (murdererEntityId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, murdererEntityId_); - } - if (entityCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size( - 3, (int)((java.lang.Integer) entity_)); - } - if (entityCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size( - 4, (int)((java.lang.Integer) entity_)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify other = (emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify) obj; - - if (dieType_ != other.dieType_) return false; - if (getMurdererEntityId() - != other.getMurdererEntityId()) return false; - if (!getEntityCase().equals(other.getEntityCase())) return false; - switch (entityCase_) { - case 3: - if (getMonsterId() - != other.getMonsterId()) return false; - break; - case 4: - if (getGadgetId() - != other.getGadgetId()) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DIETYPE_FIELD_NUMBER; - hash = (53 * hash) + dieType_; - hash = (37 * hash) + MURDERERENTITYID_FIELD_NUMBER; - hash = (53 * hash) + getMurdererEntityId(); - switch (entityCase_) { - case 3: - hash = (37 * hash) + MONSTERID_FIELD_NUMBER; - hash = (53 * hash) + getMonsterId(); - break; - case 4: - hash = (37 * hash) + GADGETID_FIELD_NUMBER; - hash = (53 * hash) + getGadgetId(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code WorldPlayerDieNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:WorldPlayerDieNotify) - emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.internal_static_WorldPlayerDieNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.internal_static_WorldPlayerDieNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify.class, emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - dieType_ = 0; - - murdererEntityId_ = 0; - - entityCase_ = 0; - entity_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.internal_static_WorldPlayerDieNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify build() { - emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify buildPartial() { - emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify result = new emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify(this); - result.dieType_ = dieType_; - result.murdererEntityId_ = murdererEntityId_; - if (entityCase_ == 3) { - result.entity_ = entity_; - } - if (entityCase_ == 4) { - result.entity_ = entity_; - } - result.entityCase_ = entityCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify) { - return mergeFrom((emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify other) { - if (other == emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify.getDefaultInstance()) return this; - if (other.dieType_ != 0) { - setDieTypeValue(other.getDieTypeValue()); - } - if (other.getMurdererEntityId() != 0) { - setMurdererEntityId(other.getMurdererEntityId()); - } - switch (other.getEntityCase()) { - case MONSTERID: { - setMonsterId(other.getMonsterId()); - break; - } - case GADGETID: { - setGadgetId(other.getGadgetId()); - break; - } - case ENTITY_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int entityCase_ = 0; - private java.lang.Object entity_; - public EntityCase - getEntityCase() { - return EntityCase.forNumber( - entityCase_); - } - - public Builder clearEntity() { - entityCase_ = 0; - entity_ = null; - onChanged(); - return this; - } - - - private int dieType_ = 0; - /** - * <code>.PlayerDieType dieType = 1;</code> - * @return The enum numeric value on the wire for dieType. - */ - @java.lang.Override public int getDieTypeValue() { - return dieType_; - } - /** - * <code>.PlayerDieType dieType = 1;</code> - * @param value The enum numeric value on the wire for dieType to set. - * @return This builder for chaining. - */ - public Builder setDieTypeValue(int value) { - - dieType_ = value; - onChanged(); - return this; - } - /** - * <code>.PlayerDieType dieType = 1;</code> - * @return The dieType. - */ - @java.lang.Override - public emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType getDieType() { - @SuppressWarnings("deprecation") - emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType result = emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.valueOf(dieType_); - return result == null ? emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.UNRECOGNIZED : result; - } - /** - * <code>.PlayerDieType dieType = 1;</code> - * @param value The dieType to set. - * @return This builder for chaining. - */ - public Builder setDieType(emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType value) { - if (value == null) { - throw new NullPointerException(); - } - - dieType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.PlayerDieType dieType = 1;</code> - * @return This builder for chaining. - */ - public Builder clearDieType() { - - dieType_ = 0; - onChanged(); - return this; - } - - private int murdererEntityId_ ; - /** - * <code>uint32 murdererEntityId = 2;</code> - * @return The murdererEntityId. - */ - @java.lang.Override - public int getMurdererEntityId() { - return murdererEntityId_; - } - /** - * <code>uint32 murdererEntityId = 2;</code> - * @param value The murdererEntityId to set. - * @return This builder for chaining. - */ - public Builder setMurdererEntityId(int value) { - - murdererEntityId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 murdererEntityId = 2;</code> - * @return This builder for chaining. - */ - public Builder clearMurdererEntityId() { - - murdererEntityId_ = 0; - onChanged(); - return this; - } - - /** - * <code>uint32 monsterId = 3;</code> - * @return Whether the monsterId field is set. - */ - public boolean hasMonsterId() { - return entityCase_ == 3; - } - /** - * <code>uint32 monsterId = 3;</code> - * @return The monsterId. - */ - public int getMonsterId() { - if (entityCase_ == 3) { - return (java.lang.Integer) entity_; - } - return 0; - } - /** - * <code>uint32 monsterId = 3;</code> - * @param value The monsterId to set. - * @return This builder for chaining. - */ - public Builder setMonsterId(int value) { - entityCase_ = 3; - entity_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 monsterId = 3;</code> - * @return This builder for chaining. - */ - public Builder clearMonsterId() { - if (entityCase_ == 3) { - entityCase_ = 0; - entity_ = null; - onChanged(); - } - return this; - } - - /** - * <code>uint32 gadgetId = 4;</code> - * @return Whether the gadgetId field is set. - */ - public boolean hasGadgetId() { - return entityCase_ == 4; - } - /** - * <code>uint32 gadgetId = 4;</code> - * @return The gadgetId. - */ - public int getGadgetId() { - if (entityCase_ == 4) { - return (java.lang.Integer) entity_; - } - return 0; - } - /** - * <code>uint32 gadgetId = 4;</code> - * @param value The gadgetId to set. - * @return This builder for chaining. - */ - public Builder setGadgetId(int value) { - entityCase_ = 4; - entity_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 gadgetId = 4;</code> - * @return This builder for chaining. - */ - public Builder clearGadgetId() { - if (entityCase_ == 4) { - entityCase_ = 0; - entity_ = null; - onChanged(); - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WorldPlayerDieNotify) - } - - // @@protoc_insertion_point(class_scope:WorldPlayerDieNotify) - private static final emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify(); - } - - public static emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<WorldPlayerDieNotify> - PARSER = new com.google.protobuf.AbstractParser<WorldPlayerDieNotify>() { - @java.lang.Override - public WorldPlayerDieNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorldPlayerDieNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<WorldPlayerDieNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<WorldPlayerDieNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WorldPlayerDieNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WorldPlayerDieNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032WorldPlayerDieNotify.proto\032\023PlayerDieT" + - "ype.proto\"\204\001\n\024WorldPlayerDieNotify\022\037\n\007di" + - "eType\030\001 \001(\0162\016.PlayerDieType\022\030\n\020murdererE" + - "ntityId\030\002 \001(\r\022\023\n\tmonsterId\030\003 \001(\rH\000\022\022\n\010ga" + - "dgetId\030\004 \001(\rH\000B\010\n\006entityB\033\n\031emu.grasscut" + - "ter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.PlayerDieTypeOuterClass.getDescriptor(), - }); - internal_static_WorldPlayerDieNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_WorldPlayerDieNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WorldPlayerDieNotify_descriptor, - new java.lang.String[] { "DieType", "MurdererEntityId", "MonsterId", "GadgetId", "Entity", }); - emu.grasscutter.net.proto.PlayerDieTypeOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/WorldPlayerInfoNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/WorldPlayerInfoNotifyOuterClass.java deleted file mode 100644 index ac9be187c..000000000 --- a/src/main/java/emu/grasscutter/net/proto/WorldPlayerInfoNotifyOuterClass.java +++ /dev/null @@ -1,1039 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WorldPlayerInfoNotify.proto - -package emu.grasscutter.net.proto; - -public final class WorldPlayerInfoNotifyOuterClass { - private WorldPlayerInfoNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WorldPlayerInfoNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:WorldPlayerInfoNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - java.util.List<emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo> - getPlayerInfoListList(); - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo getPlayerInfoList(int index); - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - int getPlayerInfoListCount(); - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfoOrBuilder> - getPlayerInfoListOrBuilderList(); - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfoOrBuilder getPlayerInfoListOrBuilder( - int index); - - /** - * <code>repeated uint32 playerUidList = 2;</code> - * @return A list containing the playerUidList. - */ - java.util.List<java.lang.Integer> getPlayerUidListList(); - /** - * <code>repeated uint32 playerUidList = 2;</code> - * @return The count of playerUidList. - */ - int getPlayerUidListCount(); - /** - * <code>repeated uint32 playerUidList = 2;</code> - * @param index The index of the element to return. - * @return The playerUidList at the given index. - */ - int getPlayerUidList(int index); - } - /** - * Protobuf type {@code WorldPlayerInfoNotify} - */ - public static final class WorldPlayerInfoNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WorldPlayerInfoNotify) - WorldPlayerInfoNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorldPlayerInfoNotify.newBuilder() to construct. - private WorldPlayerInfoNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private WorldPlayerInfoNotify() { - playerInfoList_ = java.util.Collections.emptyList(); - playerUidList_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WorldPlayerInfoNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorldPlayerInfoNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - playerInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo>(); - mutable_bitField0_ |= 0x00000001; - } - playerInfoList_.add( - input.readMessage(emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.parser(), extensionRegistry)); - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - playerUidList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - playerUidList_.addInt(input.readUInt32()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - playerUidList_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - playerUidList_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - playerInfoList_ = java.util.Collections.unmodifiableList(playerInfoList_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - playerUidList_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.internal_static_WorldPlayerInfoNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.internal_static_WorldPlayerInfoNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify.class, emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify.Builder.class); - } - - public static final int PLAYERINFOLIST_FIELD_NUMBER = 1; - private java.util.List<emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo> playerInfoList_; - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo> getPlayerInfoListList() { - return playerInfoList_; - } - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfoOrBuilder> - getPlayerInfoListOrBuilderList() { - return playerInfoList_; - } - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - @java.lang.Override - public int getPlayerInfoListCount() { - return playerInfoList_.size(); - } - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo getPlayerInfoList(int index) { - return playerInfoList_.get(index); - } - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfoOrBuilder getPlayerInfoListOrBuilder( - int index) { - return playerInfoList_.get(index); - } - - public static final int PLAYERUIDLIST_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.IntList playerUidList_; - /** - * <code>repeated uint32 playerUidList = 2;</code> - * @return A list containing the playerUidList. - */ - @java.lang.Override - public java.util.List<java.lang.Integer> - getPlayerUidListList() { - return playerUidList_; - } - /** - * <code>repeated uint32 playerUidList = 2;</code> - * @return The count of playerUidList. - */ - public int getPlayerUidListCount() { - return playerUidList_.size(); - } - /** - * <code>repeated uint32 playerUidList = 2;</code> - * @param index The index of the element to return. - * @return The playerUidList at the given index. - */ - public int getPlayerUidList(int index) { - return playerUidList_.getInt(index); - } - private int playerUidListMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - for (int i = 0; i < playerInfoList_.size(); i++) { - output.writeMessage(1, playerInfoList_.get(i)); - } - if (getPlayerUidListList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(playerUidListMemoizedSerializedSize); - } - for (int i = 0; i < playerUidList_.size(); i++) { - output.writeUInt32NoTag(playerUidList_.getInt(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < playerInfoList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, playerInfoList_.get(i)); - } - { - int dataSize = 0; - for (int i = 0; i < playerUidList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(playerUidList_.getInt(i)); - } - size += dataSize; - if (!getPlayerUidListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - playerUidListMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify other = (emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify) obj; - - if (!getPlayerInfoListList() - .equals(other.getPlayerInfoListList())) return false; - if (!getPlayerUidListList() - .equals(other.getPlayerUidListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPlayerInfoListCount() > 0) { - hash = (37 * hash) + PLAYERINFOLIST_FIELD_NUMBER; - hash = (53 * hash) + getPlayerInfoListList().hashCode(); - } - if (getPlayerUidListCount() > 0) { - hash = (37 * hash) + PLAYERUIDLIST_FIELD_NUMBER; - hash = (53 * hash) + getPlayerUidListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code WorldPlayerInfoNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:WorldPlayerInfoNotify) - emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.internal_static_WorldPlayerInfoNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.internal_static_WorldPlayerInfoNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify.class, emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPlayerInfoListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (playerInfoListBuilder_ == null) { - playerInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - playerInfoListBuilder_.clear(); - } - playerUidList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.internal_static_WorldPlayerInfoNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify build() { - emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify buildPartial() { - emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify result = new emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify(this); - int from_bitField0_ = bitField0_; - if (playerInfoListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - playerInfoList_ = java.util.Collections.unmodifiableList(playerInfoList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.playerInfoList_ = playerInfoList_; - } else { - result.playerInfoList_ = playerInfoListBuilder_.build(); - } - if (((bitField0_ & 0x00000002) != 0)) { - playerUidList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.playerUidList_ = playerUidList_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify) { - return mergeFrom((emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify other) { - if (other == emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify.getDefaultInstance()) return this; - if (playerInfoListBuilder_ == null) { - if (!other.playerInfoList_.isEmpty()) { - if (playerInfoList_.isEmpty()) { - playerInfoList_ = other.playerInfoList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePlayerInfoListIsMutable(); - playerInfoList_.addAll(other.playerInfoList_); - } - onChanged(); - } - } else { - if (!other.playerInfoList_.isEmpty()) { - if (playerInfoListBuilder_.isEmpty()) { - playerInfoListBuilder_.dispose(); - playerInfoListBuilder_ = null; - playerInfoList_ = other.playerInfoList_; - bitField0_ = (bitField0_ & ~0x00000001); - playerInfoListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPlayerInfoListFieldBuilder() : null; - } else { - playerInfoListBuilder_.addAllMessages(other.playerInfoList_); - } - } - } - if (!other.playerUidList_.isEmpty()) { - if (playerUidList_.isEmpty()) { - playerUidList_ = other.playerUidList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensurePlayerUidListIsMutable(); - playerUidList_.addAll(other.playerUidList_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List<emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo> playerInfoList_ = - java.util.Collections.emptyList(); - private void ensurePlayerInfoListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - playerInfoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo>(playerInfoList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo, emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder, emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfoOrBuilder> playerInfoListBuilder_; - - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo> getPlayerInfoListList() { - if (playerInfoListBuilder_ == null) { - return java.util.Collections.unmodifiableList(playerInfoList_); - } else { - return playerInfoListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - public int getPlayerInfoListCount() { - if (playerInfoListBuilder_ == null) { - return playerInfoList_.size(); - } else { - return playerInfoListBuilder_.getCount(); - } - } - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo getPlayerInfoList(int index) { - if (playerInfoListBuilder_ == null) { - return playerInfoList_.get(index); - } else { - return playerInfoListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - public Builder setPlayerInfoList( - int index, emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo value) { - if (playerInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePlayerInfoListIsMutable(); - playerInfoList_.set(index, value); - onChanged(); - } else { - playerInfoListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - public Builder setPlayerInfoList( - int index, emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder builderForValue) { - if (playerInfoListBuilder_ == null) { - ensurePlayerInfoListIsMutable(); - playerInfoList_.set(index, builderForValue.build()); - onChanged(); - } else { - playerInfoListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - public Builder addPlayerInfoList(emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo value) { - if (playerInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePlayerInfoListIsMutable(); - playerInfoList_.add(value); - onChanged(); - } else { - playerInfoListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - public Builder addPlayerInfoList( - int index, emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo value) { - if (playerInfoListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePlayerInfoListIsMutable(); - playerInfoList_.add(index, value); - onChanged(); - } else { - playerInfoListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - public Builder addPlayerInfoList( - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder builderForValue) { - if (playerInfoListBuilder_ == null) { - ensurePlayerInfoListIsMutable(); - playerInfoList_.add(builderForValue.build()); - onChanged(); - } else { - playerInfoListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - public Builder addPlayerInfoList( - int index, emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder builderForValue) { - if (playerInfoListBuilder_ == null) { - ensurePlayerInfoListIsMutable(); - playerInfoList_.add(index, builderForValue.build()); - onChanged(); - } else { - playerInfoListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - public Builder addAllPlayerInfoList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo> values) { - if (playerInfoListBuilder_ == null) { - ensurePlayerInfoListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, playerInfoList_); - onChanged(); - } else { - playerInfoListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - public Builder clearPlayerInfoList() { - if (playerInfoListBuilder_ == null) { - playerInfoList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - playerInfoListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - public Builder removePlayerInfoList(int index) { - if (playerInfoListBuilder_ == null) { - ensurePlayerInfoListIsMutable(); - playerInfoList_.remove(index); - onChanged(); - } else { - playerInfoListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder getPlayerInfoListBuilder( - int index) { - return getPlayerInfoListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfoOrBuilder getPlayerInfoListOrBuilder( - int index) { - if (playerInfoListBuilder_ == null) { - return playerInfoList_.get(index); } else { - return playerInfoListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfoOrBuilder> - getPlayerInfoListOrBuilderList() { - if (playerInfoListBuilder_ != null) { - return playerInfoListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(playerInfoList_); - } - } - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder addPlayerInfoListBuilder() { - return getPlayerInfoListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.getDefaultInstance()); - } - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder addPlayerInfoListBuilder( - int index) { - return getPlayerInfoListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.getDefaultInstance()); - } - /** - * <code>repeated .OnlinePlayerInfo playerInfoList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder> - getPlayerInfoListBuilderList() { - return getPlayerInfoListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo, emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder, emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfoOrBuilder> - getPlayerInfoListFieldBuilder() { - if (playerInfoListBuilder_ == null) { - playerInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo, emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder, emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfoOrBuilder>( - playerInfoList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - playerInfoList_ = null; - } - return playerInfoListBuilder_; - } - - private com.google.protobuf.Internal.IntList playerUidList_ = emptyIntList(); - private void ensurePlayerUidListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - playerUidList_ = mutableCopy(playerUidList_); - bitField0_ |= 0x00000002; - } - } - /** - * <code>repeated uint32 playerUidList = 2;</code> - * @return A list containing the playerUidList. - */ - public java.util.List<java.lang.Integer> - getPlayerUidListList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(playerUidList_) : playerUidList_; - } - /** - * <code>repeated uint32 playerUidList = 2;</code> - * @return The count of playerUidList. - */ - public int getPlayerUidListCount() { - return playerUidList_.size(); - } - /** - * <code>repeated uint32 playerUidList = 2;</code> - * @param index The index of the element to return. - * @return The playerUidList at the given index. - */ - public int getPlayerUidList(int index) { - return playerUidList_.getInt(index); - } - /** - * <code>repeated uint32 playerUidList = 2;</code> - * @param index The index to set the value at. - * @param value The playerUidList to set. - * @return This builder for chaining. - */ - public Builder setPlayerUidList( - int index, int value) { - ensurePlayerUidListIsMutable(); - playerUidList_.setInt(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 playerUidList = 2;</code> - * @param value The playerUidList to add. - * @return This builder for chaining. - */ - public Builder addPlayerUidList(int value) { - ensurePlayerUidListIsMutable(); - playerUidList_.addInt(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 playerUidList = 2;</code> - * @param values The playerUidList to add. - * @return This builder for chaining. - */ - public Builder addAllPlayerUidList( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensurePlayerUidListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, playerUidList_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 playerUidList = 2;</code> - * @return This builder for chaining. - */ - public Builder clearPlayerUidList() { - playerUidList_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WorldPlayerInfoNotify) - } - - // @@protoc_insertion_point(class_scope:WorldPlayerInfoNotify) - private static final emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify(); - } - - public static emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<WorldPlayerInfoNotify> - PARSER = new com.google.protobuf.AbstractParser<WorldPlayerInfoNotify>() { - @java.lang.Override - public WorldPlayerInfoNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorldPlayerInfoNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<WorldPlayerInfoNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<WorldPlayerInfoNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WorldPlayerInfoNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WorldPlayerInfoNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033WorldPlayerInfoNotify.proto\032\026OnlinePla" + - "yerInfo.proto\"Y\n\025WorldPlayerInfoNotify\022)" + - "\n\016playerInfoList\030\001 \003(\0132\021.OnlinePlayerInf" + - "o\022\025\n\rplayerUidList\030\002 \003(\rB\033\n\031emu.grasscut" + - "ter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.getDescriptor(), - }); - internal_static_WorldPlayerInfoNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_WorldPlayerInfoNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WorldPlayerInfoNotify_descriptor, - new java.lang.String[] { "PlayerInfoList", "PlayerUidList", }); - emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/WorldPlayerLocationInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/WorldPlayerLocationInfoOuterClass.java deleted file mode 100644 index b8c634fd1..000000000 --- a/src/main/java/emu/grasscutter/net/proto/WorldPlayerLocationInfoOuterClass.java +++ /dev/null @@ -1,743 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WorldPlayerLocationInfo.proto - -package emu.grasscutter.net.proto; - -public final class WorldPlayerLocationInfoOuterClass { - private WorldPlayerLocationInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WorldPlayerLocationInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:WorldPlayerLocationInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - int getSceneId(); - - /** - * <code>.PlayerLocationInfo playerLoc = 2;</code> - * @return Whether the playerLoc field is set. - */ - boolean hasPlayerLoc(); - /** - * <code>.PlayerLocationInfo playerLoc = 2;</code> - * @return The playerLoc. - */ - emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo getPlayerLoc(); - /** - * <code>.PlayerLocationInfo playerLoc = 2;</code> - */ - emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfoOrBuilder getPlayerLocOrBuilder(); - } - /** - * Protobuf type {@code WorldPlayerLocationInfo} - */ - public static final class WorldPlayerLocationInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WorldPlayerLocationInfo) - WorldPlayerLocationInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorldPlayerLocationInfo.newBuilder() to construct. - private WorldPlayerLocationInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private WorldPlayerLocationInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WorldPlayerLocationInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorldPlayerLocationInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - sceneId_ = input.readUInt32(); - break; - } - case 18: { - emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.Builder subBuilder = null; - if (playerLoc_ != null) { - subBuilder = playerLoc_.toBuilder(); - } - playerLoc_ = input.readMessage(emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(playerLoc_); - playerLoc_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.internal_static_WorldPlayerLocationInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.internal_static_WorldPlayerLocationInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo.class, emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo.Builder.class); - } - - public static final int SCENEID_FIELD_NUMBER = 1; - private int sceneId_; - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - - public static final int PLAYERLOC_FIELD_NUMBER = 2; - private emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo playerLoc_; - /** - * <code>.PlayerLocationInfo playerLoc = 2;</code> - * @return Whether the playerLoc field is set. - */ - @java.lang.Override - public boolean hasPlayerLoc() { - return playerLoc_ != null; - } - /** - * <code>.PlayerLocationInfo playerLoc = 2;</code> - * @return The playerLoc. - */ - @java.lang.Override - public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo getPlayerLoc() { - return playerLoc_ == null ? emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.getDefaultInstance() : playerLoc_; - } - /** - * <code>.PlayerLocationInfo playerLoc = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfoOrBuilder getPlayerLocOrBuilder() { - return getPlayerLoc(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (sceneId_ != 0) { - output.writeUInt32(1, sceneId_); - } - if (playerLoc_ != null) { - output.writeMessage(2, getPlayerLoc()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sceneId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, sceneId_); - } - if (playerLoc_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPlayerLoc()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo other = (emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo) obj; - - if (getSceneId() - != other.getSceneId()) return false; - if (hasPlayerLoc() != other.hasPlayerLoc()) return false; - if (hasPlayerLoc()) { - if (!getPlayerLoc() - .equals(other.getPlayerLoc())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SCENEID_FIELD_NUMBER; - hash = (53 * hash) + getSceneId(); - if (hasPlayerLoc()) { - hash = (37 * hash) + PLAYERLOC_FIELD_NUMBER; - hash = (53 * hash) + getPlayerLoc().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code WorldPlayerLocationInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:WorldPlayerLocationInfo) - emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.internal_static_WorldPlayerLocationInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.internal_static_WorldPlayerLocationInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo.class, emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sceneId_ = 0; - - if (playerLocBuilder_ == null) { - playerLoc_ = null; - } else { - playerLoc_ = null; - playerLocBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.internal_static_WorldPlayerLocationInfo_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo getDefaultInstanceForType() { - return emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo build() { - emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo buildPartial() { - emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo result = new emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo(this); - result.sceneId_ = sceneId_; - if (playerLocBuilder_ == null) { - result.playerLoc_ = playerLoc_; - } else { - result.playerLoc_ = playerLocBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo) { - return mergeFrom((emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo other) { - if (other == emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo.getDefaultInstance()) return this; - if (other.getSceneId() != 0) { - setSceneId(other.getSceneId()); - } - if (other.hasPlayerLoc()) { - mergePlayerLoc(other.getPlayerLoc()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int sceneId_ ; - /** - * <code>uint32 sceneId = 1;</code> - * @return The sceneId. - */ - @java.lang.Override - public int getSceneId() { - return sceneId_; - } - /** - * <code>uint32 sceneId = 1;</code> - * @param value The sceneId to set. - * @return This builder for chaining. - */ - public Builder setSceneId(int value) { - - sceneId_ = value; - onChanged(); - return this; - } - /** - * <code>uint32 sceneId = 1;</code> - * @return This builder for chaining. - */ - public Builder clearSceneId() { - - sceneId_ = 0; - onChanged(); - return this; - } - - private emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo playerLoc_; - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo, emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.Builder, emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfoOrBuilder> playerLocBuilder_; - /** - * <code>.PlayerLocationInfo playerLoc = 2;</code> - * @return Whether the playerLoc field is set. - */ - public boolean hasPlayerLoc() { - return playerLocBuilder_ != null || playerLoc_ != null; - } - /** - * <code>.PlayerLocationInfo playerLoc = 2;</code> - * @return The playerLoc. - */ - public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo getPlayerLoc() { - if (playerLocBuilder_ == null) { - return playerLoc_ == null ? emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.getDefaultInstance() : playerLoc_; - } else { - return playerLocBuilder_.getMessage(); - } - } - /** - * <code>.PlayerLocationInfo playerLoc = 2;</code> - */ - public Builder setPlayerLoc(emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo value) { - if (playerLocBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - playerLoc_ = value; - onChanged(); - } else { - playerLocBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.PlayerLocationInfo playerLoc = 2;</code> - */ - public Builder setPlayerLoc( - emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.Builder builderForValue) { - if (playerLocBuilder_ == null) { - playerLoc_ = builderForValue.build(); - onChanged(); - } else { - playerLocBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.PlayerLocationInfo playerLoc = 2;</code> - */ - public Builder mergePlayerLoc(emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo value) { - if (playerLocBuilder_ == null) { - if (playerLoc_ != null) { - playerLoc_ = - emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.newBuilder(playerLoc_).mergeFrom(value).buildPartial(); - } else { - playerLoc_ = value; - } - onChanged(); - } else { - playerLocBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.PlayerLocationInfo playerLoc = 2;</code> - */ - public Builder clearPlayerLoc() { - if (playerLocBuilder_ == null) { - playerLoc_ = null; - onChanged(); - } else { - playerLoc_ = null; - playerLocBuilder_ = null; - } - - return this; - } - /** - * <code>.PlayerLocationInfo playerLoc = 2;</code> - */ - public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.Builder getPlayerLocBuilder() { - - onChanged(); - return getPlayerLocFieldBuilder().getBuilder(); - } - /** - * <code>.PlayerLocationInfo playerLoc = 2;</code> - */ - public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfoOrBuilder getPlayerLocOrBuilder() { - if (playerLocBuilder_ != null) { - return playerLocBuilder_.getMessageOrBuilder(); - } else { - return playerLoc_ == null ? - emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.getDefaultInstance() : playerLoc_; - } - } - /** - * <code>.PlayerLocationInfo playerLoc = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo, emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.Builder, emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfoOrBuilder> - getPlayerLocFieldBuilder() { - if (playerLocBuilder_ == null) { - playerLocBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo, emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.Builder, emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfoOrBuilder>( - getPlayerLoc(), - getParentForChildren(), - isClean()); - playerLoc_ = null; - } - return playerLocBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WorldPlayerLocationInfo) - } - - // @@protoc_insertion_point(class_scope:WorldPlayerLocationInfo) - private static final emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo(); - } - - public static emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<WorldPlayerLocationInfo> - PARSER = new com.google.protobuf.AbstractParser<WorldPlayerLocationInfo>() { - @java.lang.Override - public WorldPlayerLocationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorldPlayerLocationInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<WorldPlayerLocationInfo> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<WorldPlayerLocationInfo> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WorldPlayerLocationInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WorldPlayerLocationInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035WorldPlayerLocationInfo.proto\032\030PlayerL" + - "ocationInfo.proto\"R\n\027WorldPlayerLocation" + - "Info\022\017\n\007sceneId\030\001 \001(\r\022&\n\tplayerLoc\030\002 \001(\013" + - "2\023.PlayerLocationInfoB\033\n\031emu.grasscutter" + - ".net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.getDescriptor(), - }); - internal_static_WorldPlayerLocationInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_WorldPlayerLocationInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WorldPlayerLocationInfo_descriptor, - new java.lang.String[] { "SceneId", "PlayerLoc", }); - emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/WorldPlayerLocationNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/WorldPlayerLocationNotifyOuterClass.java deleted file mode 100644 index 89859a9d1..000000000 --- a/src/main/java/emu/grasscutter/net/proto/WorldPlayerLocationNotifyOuterClass.java +++ /dev/null @@ -1,845 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WorldPlayerLocationNotify.proto - -package emu.grasscutter.net.proto; - -public final class WorldPlayerLocationNotifyOuterClass { - private WorldPlayerLocationNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WorldPlayerLocationNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:WorldPlayerLocationNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - java.util.List<emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo> - getPlayerLocListList(); - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo getPlayerLocList(int index); - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - int getPlayerLocListCount(); - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfoOrBuilder> - getPlayerLocListOrBuilderList(); - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfoOrBuilder getPlayerLocListOrBuilder( - int index); - } - /** - * Protobuf type {@code WorldPlayerLocationNotify} - */ - public static final class WorldPlayerLocationNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WorldPlayerLocationNotify) - WorldPlayerLocationNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorldPlayerLocationNotify.newBuilder() to construct. - private WorldPlayerLocationNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private WorldPlayerLocationNotify() { - playerLocList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WorldPlayerLocationNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorldPlayerLocationNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - playerLocList_ = new java.util.ArrayList<emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo>(); - mutable_bitField0_ |= 0x00000001; - } - playerLocList_.add( - input.readMessage(emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - playerLocList_ = java.util.Collections.unmodifiableList(playerLocList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.internal_static_WorldPlayerLocationNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.internal_static_WorldPlayerLocationNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify.class, emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify.Builder.class); - } - - public static final int PLAYERLOCLIST_FIELD_NUMBER = 2; - private java.util.List<emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo> playerLocList_; - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo> getPlayerLocListList() { - return playerLocList_; - } - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfoOrBuilder> - getPlayerLocListOrBuilderList() { - return playerLocList_; - } - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - @java.lang.Override - public int getPlayerLocListCount() { - return playerLocList_.size(); - } - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo getPlayerLocList(int index) { - return playerLocList_.get(index); - } - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfoOrBuilder getPlayerLocListOrBuilder( - int index) { - return playerLocList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < playerLocList_.size(); i++) { - output.writeMessage(2, playerLocList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < playerLocList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, playerLocList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify other = (emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify) obj; - - if (!getPlayerLocListList() - .equals(other.getPlayerLocListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPlayerLocListCount() > 0) { - hash = (37 * hash) + PLAYERLOCLIST_FIELD_NUMBER; - hash = (53 * hash) + getPlayerLocListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code WorldPlayerLocationNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:WorldPlayerLocationNotify) - emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.internal_static_WorldPlayerLocationNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.internal_static_WorldPlayerLocationNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify.class, emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPlayerLocListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (playerLocListBuilder_ == null) { - playerLocList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - playerLocListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.internal_static_WorldPlayerLocationNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify build() { - emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify buildPartial() { - emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify result = new emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify(this); - int from_bitField0_ = bitField0_; - if (playerLocListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - playerLocList_ = java.util.Collections.unmodifiableList(playerLocList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.playerLocList_ = playerLocList_; - } else { - result.playerLocList_ = playerLocListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify) { - return mergeFrom((emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify other) { - if (other == emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify.getDefaultInstance()) return this; - if (playerLocListBuilder_ == null) { - if (!other.playerLocList_.isEmpty()) { - if (playerLocList_.isEmpty()) { - playerLocList_ = other.playerLocList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePlayerLocListIsMutable(); - playerLocList_.addAll(other.playerLocList_); - } - onChanged(); - } - } else { - if (!other.playerLocList_.isEmpty()) { - if (playerLocListBuilder_.isEmpty()) { - playerLocListBuilder_.dispose(); - playerLocListBuilder_ = null; - playerLocList_ = other.playerLocList_; - bitField0_ = (bitField0_ & ~0x00000001); - playerLocListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPlayerLocListFieldBuilder() : null; - } else { - playerLocListBuilder_.addAllMessages(other.playerLocList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List<emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo> playerLocList_ = - java.util.Collections.emptyList(); - private void ensurePlayerLocListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - playerLocList_ = new java.util.ArrayList<emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo>(playerLocList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo, emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo.Builder, emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfoOrBuilder> playerLocListBuilder_; - - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo> getPlayerLocListList() { - if (playerLocListBuilder_ == null) { - return java.util.Collections.unmodifiableList(playerLocList_); - } else { - return playerLocListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - public int getPlayerLocListCount() { - if (playerLocListBuilder_ == null) { - return playerLocList_.size(); - } else { - return playerLocListBuilder_.getCount(); - } - } - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - public emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo getPlayerLocList(int index) { - if (playerLocListBuilder_ == null) { - return playerLocList_.get(index); - } else { - return playerLocListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - public Builder setPlayerLocList( - int index, emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo value) { - if (playerLocListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePlayerLocListIsMutable(); - playerLocList_.set(index, value); - onChanged(); - } else { - playerLocListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - public Builder setPlayerLocList( - int index, emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo.Builder builderForValue) { - if (playerLocListBuilder_ == null) { - ensurePlayerLocListIsMutable(); - playerLocList_.set(index, builderForValue.build()); - onChanged(); - } else { - playerLocListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - public Builder addPlayerLocList(emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo value) { - if (playerLocListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePlayerLocListIsMutable(); - playerLocList_.add(value); - onChanged(); - } else { - playerLocListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - public Builder addPlayerLocList( - int index, emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo value) { - if (playerLocListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePlayerLocListIsMutable(); - playerLocList_.add(index, value); - onChanged(); - } else { - playerLocListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - public Builder addPlayerLocList( - emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo.Builder builderForValue) { - if (playerLocListBuilder_ == null) { - ensurePlayerLocListIsMutable(); - playerLocList_.add(builderForValue.build()); - onChanged(); - } else { - playerLocListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - public Builder addPlayerLocList( - int index, emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo.Builder builderForValue) { - if (playerLocListBuilder_ == null) { - ensurePlayerLocListIsMutable(); - playerLocList_.add(index, builderForValue.build()); - onChanged(); - } else { - playerLocListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - public Builder addAllPlayerLocList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo> values) { - if (playerLocListBuilder_ == null) { - ensurePlayerLocListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, playerLocList_); - onChanged(); - } else { - playerLocListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - public Builder clearPlayerLocList() { - if (playerLocListBuilder_ == null) { - playerLocList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - playerLocListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - public Builder removePlayerLocList(int index) { - if (playerLocListBuilder_ == null) { - ensurePlayerLocListIsMutable(); - playerLocList_.remove(index); - onChanged(); - } else { - playerLocListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - public emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo.Builder getPlayerLocListBuilder( - int index) { - return getPlayerLocListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - public emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfoOrBuilder getPlayerLocListOrBuilder( - int index) { - if (playerLocListBuilder_ == null) { - return playerLocList_.get(index); } else { - return playerLocListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfoOrBuilder> - getPlayerLocListOrBuilderList() { - if (playerLocListBuilder_ != null) { - return playerLocListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(playerLocList_); - } - } - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - public emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo.Builder addPlayerLocListBuilder() { - return getPlayerLocListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo.getDefaultInstance()); - } - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - public emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo.Builder addPlayerLocListBuilder( - int index) { - return getPlayerLocListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo.getDefaultInstance()); - } - /** - * <code>repeated .WorldPlayerLocationInfo playerLocList = 2;</code> - */ - public java.util.List<emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo.Builder> - getPlayerLocListBuilderList() { - return getPlayerLocListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo, emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo.Builder, emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfoOrBuilder> - getPlayerLocListFieldBuilder() { - if (playerLocListBuilder_ == null) { - playerLocListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo, emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfo.Builder, emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.WorldPlayerLocationInfoOrBuilder>( - playerLocList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - playerLocList_ = null; - } - return playerLocListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WorldPlayerLocationNotify) - } - - // @@protoc_insertion_point(class_scope:WorldPlayerLocationNotify) - private static final emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify(); - } - - public static emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<WorldPlayerLocationNotify> - PARSER = new com.google.protobuf.AbstractParser<WorldPlayerLocationNotify>() { - @java.lang.Override - public WorldPlayerLocationNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorldPlayerLocationNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<WorldPlayerLocationNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<WorldPlayerLocationNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WorldPlayerLocationNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WorldPlayerLocationNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037WorldPlayerLocationNotify.proto\032\035World" + - "PlayerLocationInfo.proto\"L\n\031WorldPlayerL" + - "ocationNotify\022/\n\rplayerLocList\030\002 \003(\0132\030.W" + - "orldPlayerLocationInfoB\033\n\031emu.grasscutte" + - "r.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.getDescriptor(), - }); - internal_static_WorldPlayerLocationNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_WorldPlayerLocationNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WorldPlayerLocationNotify_descriptor, - new java.lang.String[] { "PlayerLocList", }); - emu.grasscutter.net.proto.WorldPlayerLocationInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/WorldPlayerRTTNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/WorldPlayerRTTNotifyOuterClass.java deleted file mode 100644 index 10b83637d..000000000 --- a/src/main/java/emu/grasscutter/net/proto/WorldPlayerRTTNotifyOuterClass.java +++ /dev/null @@ -1,844 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WorldPlayerRTTNotify.proto - -package emu.grasscutter.net.proto; - -public final class WorldPlayerRTTNotifyOuterClass { - private WorldPlayerRTTNotifyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WorldPlayerRTTNotifyOrBuilder extends - // @@protoc_insertion_point(interface_extends:WorldPlayerRTTNotify) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - java.util.List<emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo> - getPlayerRttListList(); - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo getPlayerRttList(int index); - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - int getPlayerRttListCount(); - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - java.util.List<? extends emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfoOrBuilder> - getPlayerRttListOrBuilderList(); - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfoOrBuilder getPlayerRttListOrBuilder( - int index); - } - /** - * Protobuf type {@code WorldPlayerRTTNotify} - */ - public static final class WorldPlayerRTTNotify extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WorldPlayerRTTNotify) - WorldPlayerRTTNotifyOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorldPlayerRTTNotify.newBuilder() to construct. - private WorldPlayerRTTNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private WorldPlayerRTTNotify() { - playerRttList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WorldPlayerRTTNotify(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorldPlayerRTTNotify( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - playerRttList_ = new java.util.ArrayList<emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo>(); - mutable_bitField0_ |= 0x00000001; - } - playerRttList_.add( - input.readMessage(emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - playerRttList_ = java.util.Collections.unmodifiableList(playerRttList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.internal_static_WorldPlayerRTTNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.internal_static_WorldPlayerRTTNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify.class, emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify.Builder.class); - } - - public static final int PLAYERRTTLIST_FIELD_NUMBER = 1; - private java.util.List<emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo> playerRttList_; - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - @java.lang.Override - public java.util.List<emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo> getPlayerRttListList() { - return playerRttList_; - } - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - @java.lang.Override - public java.util.List<? extends emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfoOrBuilder> - getPlayerRttListOrBuilderList() { - return playerRttList_; - } - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - @java.lang.Override - public int getPlayerRttListCount() { - return playerRttList_.size(); - } - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo getPlayerRttList(int index) { - return playerRttList_.get(index); - } - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - @java.lang.Override - public emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfoOrBuilder getPlayerRttListOrBuilder( - int index) { - return playerRttList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < playerRttList_.size(); i++) { - output.writeMessage(1, playerRttList_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < playerRttList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, playerRttList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify other = (emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify) obj; - - if (!getPlayerRttListList() - .equals(other.getPlayerRttListList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPlayerRttListCount() > 0) { - hash = (37 * hash) + PLAYERRTTLIST_FIELD_NUMBER; - hash = (53 * hash) + getPlayerRttListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code WorldPlayerRTTNotify} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:WorldPlayerRTTNotify) - emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotifyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.internal_static_WorldPlayerRTTNotify_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.internal_static_WorldPlayerRTTNotify_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify.class, emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPlayerRttListFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (playerRttListBuilder_ == null) { - playerRttList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - playerRttListBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.internal_static_WorldPlayerRTTNotify_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify getDefaultInstanceForType() { - return emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify build() { - emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify buildPartial() { - emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify result = new emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify(this); - int from_bitField0_ = bitField0_; - if (playerRttListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - playerRttList_ = java.util.Collections.unmodifiableList(playerRttList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.playerRttList_ = playerRttList_; - } else { - result.playerRttList_ = playerRttListBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify) { - return mergeFrom((emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify other) { - if (other == emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify.getDefaultInstance()) return this; - if (playerRttListBuilder_ == null) { - if (!other.playerRttList_.isEmpty()) { - if (playerRttList_.isEmpty()) { - playerRttList_ = other.playerRttList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePlayerRttListIsMutable(); - playerRttList_.addAll(other.playerRttList_); - } - onChanged(); - } - } else { - if (!other.playerRttList_.isEmpty()) { - if (playerRttListBuilder_.isEmpty()) { - playerRttListBuilder_.dispose(); - playerRttListBuilder_ = null; - playerRttList_ = other.playerRttList_; - bitField0_ = (bitField0_ & ~0x00000001); - playerRttListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPlayerRttListFieldBuilder() : null; - } else { - playerRttListBuilder_.addAllMessages(other.playerRttList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List<emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo> playerRttList_ = - java.util.Collections.emptyList(); - private void ensurePlayerRttListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - playerRttList_ = new java.util.ArrayList<emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo>(playerRttList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo, emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo.Builder, emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfoOrBuilder> playerRttListBuilder_; - - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo> getPlayerRttListList() { - if (playerRttListBuilder_ == null) { - return java.util.Collections.unmodifiableList(playerRttList_); - } else { - return playerRttListBuilder_.getMessageList(); - } - } - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - public int getPlayerRttListCount() { - if (playerRttListBuilder_ == null) { - return playerRttList_.size(); - } else { - return playerRttListBuilder_.getCount(); - } - } - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - public emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo getPlayerRttList(int index) { - if (playerRttListBuilder_ == null) { - return playerRttList_.get(index); - } else { - return playerRttListBuilder_.getMessage(index); - } - } - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - public Builder setPlayerRttList( - int index, emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo value) { - if (playerRttListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePlayerRttListIsMutable(); - playerRttList_.set(index, value); - onChanged(); - } else { - playerRttListBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - public Builder setPlayerRttList( - int index, emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo.Builder builderForValue) { - if (playerRttListBuilder_ == null) { - ensurePlayerRttListIsMutable(); - playerRttList_.set(index, builderForValue.build()); - onChanged(); - } else { - playerRttListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - public Builder addPlayerRttList(emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo value) { - if (playerRttListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePlayerRttListIsMutable(); - playerRttList_.add(value); - onChanged(); - } else { - playerRttListBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - public Builder addPlayerRttList( - int index, emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo value) { - if (playerRttListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePlayerRttListIsMutable(); - playerRttList_.add(index, value); - onChanged(); - } else { - playerRttListBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - public Builder addPlayerRttList( - emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo.Builder builderForValue) { - if (playerRttListBuilder_ == null) { - ensurePlayerRttListIsMutable(); - playerRttList_.add(builderForValue.build()); - onChanged(); - } else { - playerRttListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - public Builder addPlayerRttList( - int index, emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo.Builder builderForValue) { - if (playerRttListBuilder_ == null) { - ensurePlayerRttListIsMutable(); - playerRttList_.add(index, builderForValue.build()); - onChanged(); - } else { - playerRttListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - public Builder addAllPlayerRttList( - java.lang.Iterable<? extends emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo> values) { - if (playerRttListBuilder_ == null) { - ensurePlayerRttListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, playerRttList_); - onChanged(); - } else { - playerRttListBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - public Builder clearPlayerRttList() { - if (playerRttListBuilder_ == null) { - playerRttList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - playerRttListBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - public Builder removePlayerRttList(int index) { - if (playerRttListBuilder_ == null) { - ensurePlayerRttListIsMutable(); - playerRttList_.remove(index); - onChanged(); - } else { - playerRttListBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - public emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo.Builder getPlayerRttListBuilder( - int index) { - return getPlayerRttListFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - public emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfoOrBuilder getPlayerRttListOrBuilder( - int index) { - if (playerRttListBuilder_ == null) { - return playerRttList_.get(index); } else { - return playerRttListBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - public java.util.List<? extends emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfoOrBuilder> - getPlayerRttListOrBuilderList() { - if (playerRttListBuilder_ != null) { - return playerRttListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(playerRttList_); - } - } - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - public emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo.Builder addPlayerRttListBuilder() { - return getPlayerRttListFieldBuilder().addBuilder( - emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo.getDefaultInstance()); - } - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - public emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo.Builder addPlayerRttListBuilder( - int index) { - return getPlayerRttListFieldBuilder().addBuilder( - index, emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo.getDefaultInstance()); - } - /** - * <code>repeated .PlayerRTTInfo playerRttList = 1;</code> - */ - public java.util.List<emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo.Builder> - getPlayerRttListBuilderList() { - return getPlayerRttListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo, emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo.Builder, emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfoOrBuilder> - getPlayerRttListFieldBuilder() { - if (playerRttListBuilder_ == null) { - playerRttListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo, emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo.Builder, emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfoOrBuilder>( - playerRttList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - playerRttList_ = null; - } - return playerRttListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WorldPlayerRTTNotify) - } - - // @@protoc_insertion_point(class_scope:WorldPlayerRTTNotify) - private static final emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify(); - } - - public static emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<WorldPlayerRTTNotify> - PARSER = new com.google.protobuf.AbstractParser<WorldPlayerRTTNotify>() { - @java.lang.Override - public WorldPlayerRTTNotify parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorldPlayerRTTNotify(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<WorldPlayerRTTNotify> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<WorldPlayerRTTNotify> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WorldPlayerRTTNotify_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WorldPlayerRTTNotify_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032WorldPlayerRTTNotify.proto\032\023PlayerRTTI" + - "nfo.proto\"=\n\024WorldPlayerRTTNotify\022%\n\rpla" + - "yerRttList\030\001 \003(\0132\016.PlayerRTTInfoB\033\n\031emu." + - "grasscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.getDescriptor(), - }); - internal_static_WorldPlayerRTTNotify_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_WorldPlayerRTTNotify_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WorldPlayerRTTNotify_descriptor, - new java.lang.String[] { "PlayerRttList", }); - emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/net/proto/WorldPlayerReviveRspOuterClass.java b/src/main/java/emu/grasscutter/net/proto/WorldPlayerReviveRspOuterClass.java deleted file mode 100644 index 5986c9d92..000000000 --- a/src/main/java/emu/grasscutter/net/proto/WorldPlayerReviveRspOuterClass.java +++ /dev/null @@ -1,536 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WorldPlayerReviveRsp.proto - -package emu.grasscutter.net.proto; - -public final class WorldPlayerReviveRspOuterClass { - private WorldPlayerReviveRspOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WorldPlayerReviveRspOrBuilder extends - // @@protoc_insertion_point(interface_extends:WorldPlayerReviveRsp) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - int getRetcode(); - } - /** - * Protobuf type {@code WorldPlayerReviveRsp} - */ - public static final class WorldPlayerReviveRsp extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WorldPlayerReviveRsp) - WorldPlayerReviveRspOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorldPlayerReviveRsp.newBuilder() to construct. - private WorldPlayerReviveRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private WorldPlayerReviveRsp() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WorldPlayerReviveRsp(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorldPlayerReviveRsp( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - retcode_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.internal_static_WorldPlayerReviveRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.internal_static_WorldPlayerReviveRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp.class, emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp.Builder.class); - } - - public static final int RETCODE_FIELD_NUMBER = 1; - private int retcode_; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (retcode_ != 0) { - output.writeInt32(1, retcode_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retcode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, retcode_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp other = (emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp) obj; - - if (getRetcode() - != other.getRetcode()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RETCODE_FIELD_NUMBER; - hash = (53 * hash) + getRetcode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code WorldPlayerReviveRsp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:WorldPlayerReviveRsp) - emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRspOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.internal_static_WorldPlayerReviveRsp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.internal_static_WorldPlayerReviveRsp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp.class, emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - retcode_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.internal_static_WorldPlayerReviveRsp_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp getDefaultInstanceForType() { - return emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp build() { - emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp buildPartial() { - emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp result = new emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp(this); - result.retcode_ = retcode_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp) { - return mergeFrom((emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp other) { - if (other == emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp.getDefaultInstance()) return this; - if (other.getRetcode() != 0) { - setRetcode(other.getRetcode()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retcode_ ; - /** - * <code>int32 retcode = 1;</code> - * @return The retcode. - */ - @java.lang.Override - public int getRetcode() { - return retcode_; - } - /** - * <code>int32 retcode = 1;</code> - * @param value The retcode to set. - * @return This builder for chaining. - */ - public Builder setRetcode(int value) { - - retcode_ = value; - onChanged(); - return this; - } - /** - * <code>int32 retcode = 1;</code> - * @return This builder for chaining. - */ - public Builder clearRetcode() { - - retcode_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WorldPlayerReviveRsp) - } - - // @@protoc_insertion_point(class_scope:WorldPlayerReviveRsp) - private static final emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp(); - } - - public static emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<WorldPlayerReviveRsp> - PARSER = new com.google.protobuf.AbstractParser<WorldPlayerReviveRsp>() { - @java.lang.Override - public WorldPlayerReviveRsp parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorldPlayerReviveRsp(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<WorldPlayerReviveRsp> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<WorldPlayerReviveRsp> getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.WorldPlayerReviveRspOuterClass.WorldPlayerReviveRsp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WorldPlayerReviveRsp_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WorldPlayerReviveRsp_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032WorldPlayerReviveRsp.proto\"\'\n\024WorldPla" + - "yerReviveRsp\022\017\n\007retcode\030\001 \001(\005B\033\n\031emu.gra" + - "sscutter.net.protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_WorldPlayerReviveRsp_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_WorldPlayerReviveRsp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WorldPlayerReviveRsp_descriptor, - new java.lang.String[] { "Retcode", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/netty/MihoyoKcpChannel.java b/src/main/java/emu/grasscutter/netty/KcpChannel.java similarity index 96% rename from src/main/java/emu/grasscutter/netty/MihoyoKcpChannel.java rename to src/main/java/emu/grasscutter/netty/KcpChannel.java index 233579199..2c234ae7c 100644 --- a/src/main/java/emu/grasscutter/netty/MihoyoKcpChannel.java +++ b/src/main/java/emu/grasscutter/netty/KcpChannel.java @@ -8,7 +8,7 @@ import io.netty.buffer.Unpooled; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelInboundHandlerAdapter; -public abstract class MihoyoKcpChannel extends ChannelInboundHandlerAdapter { +public abstract class KcpChannel extends ChannelInboundHandlerAdapter { private UkcpChannel kcpChannel; private ChannelHandlerContext ctx; private boolean isActive; diff --git a/src/main/java/emu/grasscutter/netty/MihoyoKcpHandshaker.java b/src/main/java/emu/grasscutter/netty/KcpHandshaker.java similarity index 91% rename from src/main/java/emu/grasscutter/netty/MihoyoKcpHandshaker.java rename to src/main/java/emu/grasscutter/netty/KcpHandshaker.java index cf94c7c75..9940402f1 100644 --- a/src/main/java/emu/grasscutter/netty/MihoyoKcpHandshaker.java +++ b/src/main/java/emu/grasscutter/netty/KcpHandshaker.java @@ -10,9 +10,9 @@ import io.netty.channel.ChannelMetadata; import io.netty.channel.ChannelOutboundBuffer; import io.netty.channel.nio.AbstractNioMessageChannel; -public class MihoyoKcpHandshaker extends AbstractNioMessageChannel { +public class KcpHandshaker extends AbstractNioMessageChannel { - protected MihoyoKcpHandshaker(Channel parent, SelectableChannel ch, int readInterestOp) { + protected KcpHandshaker(Channel parent, SelectableChannel ch, int readInterestOp) { super(parent, ch, readInterestOp); } diff --git a/src/main/java/emu/grasscutter/netty/MihoyoKcpServer.java b/src/main/java/emu/grasscutter/netty/KcpServer.java similarity index 93% rename from src/main/java/emu/grasscutter/netty/MihoyoKcpServer.java rename to src/main/java/emu/grasscutter/netty/KcpServer.java index 41e8ad412..4825a1b85 100644 --- a/src/main/java/emu/grasscutter/netty/MihoyoKcpServer.java +++ b/src/main/java/emu/grasscutter/netty/KcpServer.java @@ -13,14 +13,14 @@ import io.netty.channel.EventLoopGroup; import io.netty.channel.nio.NioEventLoopGroup; @SuppressWarnings("rawtypes") -public class MihoyoKcpServer extends Thread { +public class KcpServer extends Thread { private EventLoopGroup group; private UkcpServerBootstrap bootstrap; private ChannelInitializer serverInitializer; private InetSocketAddress address; - public MihoyoKcpServer(InetSocketAddress address) { + public KcpServer(InetSocketAddress address) { this.address = address; this.setName("Netty Server Thread"); } @@ -40,7 +40,7 @@ public class MihoyoKcpServer extends Thread { @Override public void run() { if (getServerInitializer() == null) { - this.setServerInitializer(new MihoyoKcpServerInitializer()); + this.setServerInitializer(new KcpServerInitializer()); } try { diff --git a/src/main/java/emu/grasscutter/netty/MihoyoKcpServerInitializer.java b/src/main/java/emu/grasscutter/netty/KcpServerInitializer.java similarity index 79% rename from src/main/java/emu/grasscutter/netty/MihoyoKcpServerInitializer.java rename to src/main/java/emu/grasscutter/netty/KcpServerInitializer.java index 7d4e58926..86d871c5f 100644 --- a/src/main/java/emu/grasscutter/netty/MihoyoKcpServerInitializer.java +++ b/src/main/java/emu/grasscutter/netty/KcpServerInitializer.java @@ -5,7 +5,7 @@ import io.netty.channel.ChannelInitializer; import io.netty.channel.ChannelPipeline; @SuppressWarnings("unused") -public class MihoyoKcpServerInitializer extends ChannelInitializer<UkcpChannel> { +public class KcpServerInitializer extends ChannelInitializer<UkcpChannel> { @Override protected void initChannel(UkcpChannel ch) throws Exception { diff --git a/src/main/java/emu/grasscutter/plugin/PluginManager.java b/src/main/java/emu/grasscutter/plugin/PluginManager.java index 2c6b9f23d..89adfeda0 100644 --- a/src/main/java/emu/grasscutter/plugin/PluginManager.java +++ b/src/main/java/emu/grasscutter/plugin/PluginManager.java @@ -17,7 +17,7 @@ import java.util.jar.JarEntry; import java.util.jar.JarFile; /** - * Manages the server's plugins & the event system. + * Manages the server's plugins and the event system. */ public final class PluginManager { private final Map<String, Plugin> plugins = new HashMap<>(); diff --git a/src/main/java/emu/grasscutter/plugin/api/PlayerHook.java b/src/main/java/emu/grasscutter/plugin/api/PlayerHook.java index f4a479acb..3760ea42c 100644 --- a/src/main/java/emu/grasscutter/plugin/api/PlayerHook.java +++ b/src/main/java/emu/grasscutter/plugin/api/PlayerHook.java @@ -1,11 +1,11 @@ package emu.grasscutter.plugin.api; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.game.avatar.Avatar; import emu.grasscutter.game.entity.EntityAvatar; +import emu.grasscutter.game.player.Player; import emu.grasscutter.game.props.EnterReason; import emu.grasscutter.game.props.FightProperty; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.proto.EnterTypeOuterClass.EnterType; import emu.grasscutter.server.packet.send.PacketAvatarFightPropUpdateNotify; import emu.grasscutter.server.packet.send.PacketAvatarLifeStateChangeNotify; @@ -13,16 +13,16 @@ import emu.grasscutter.server.packet.send.PacketPlayerEnterSceneNotify; import emu.grasscutter.utils.Position; /** - * Hooks into the {@link GenshinPlayer} class, adding convenient ways to do certain things. + * Hooks into the {@link Player} class, adding convenient ways to do certain things. */ public final class PlayerHook { - private final GenshinPlayer player; + private final Player player; /** * Hooks into the player. * @param player The player to hook into. */ - public PlayerHook(GenshinPlayer player) { + public PlayerHook(Player player) { this.player = player; } @@ -53,7 +53,7 @@ public final class PlayerHook { * Broadcasts the packet sent to all world players. * @param packet The packet to send. */ - public void broadcastPacketToWorld(GenshinPacket packet) { + public void broadcastPacketToWorld(BasePacket packet) { this.player.getWorld().broadcastPacket(packet); } @@ -70,7 +70,7 @@ public final class PlayerHook { * Revives the specified avatar. * @param avatar The avatar to revive. */ - public void reviveAvatar(GenshinAvatar avatar) { + public void reviveAvatar(Avatar avatar) { this.broadcastPacketToWorld(new PacketAvatarLifeStateChangeNotify(avatar)); } @@ -82,7 +82,7 @@ public final class PlayerHook { public void teleport(Position position) { this.player.getPos().set(position); this.player.sendPacket(new PacketPlayerEnterSceneNotify(this.player, - EnterType.EnterJump, EnterReason.TransPoint, + EnterType.ENTER_JUMP, EnterReason.TransPoint, this.player.getSceneId(), position )); } @@ -105,9 +105,9 @@ public final class PlayerHook { /** * Gets the currently selected avatar. - * @return The avatar as an {@link GenshinAvatar}. + * @return The avatar as an {@link Avatar}. */ - public GenshinAvatar getCurrentAvatar() { + public Avatar getCurrentAvatar() { return this.getCurrentAvatarEntity().getAvatar(); } } \ No newline at end of file diff --git a/src/main/java/emu/grasscutter/plugin/api/ServerHook.java b/src/main/java/emu/grasscutter/plugin/api/ServerHook.java index 34ceb25f4..cbca97b8f 100644 --- a/src/main/java/emu/grasscutter/plugin/api/ServerHook.java +++ b/src/main/java/emu/grasscutter/plugin/api/ServerHook.java @@ -1,6 +1,6 @@ package emu.grasscutter.plugin.api; -import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.player.Player; import emu.grasscutter.server.game.GameServer; import java.util.LinkedList; @@ -35,7 +35,7 @@ public final class ServerHook { * Gets all online players. * @return Players connected to the server. */ - public List<GenshinPlayer> getOnlinePlayers() { + public List<Player> getOnlinePlayers() { return new LinkedList<>(this.server.getPlayers().values()); } } \ No newline at end of file diff --git a/src/main/java/emu/grasscutter/server/dispatch/DispatchServer.java b/src/main/java/emu/grasscutter/server/dispatch/DispatchServer.java index e8caaaea8..1ac721ce2 100644 --- a/src/main/java/emu/grasscutter/server/dispatch/DispatchServer.java +++ b/src/main/java/emu/grasscutter/server/dispatch/DispatchServer.java @@ -55,9 +55,14 @@ public final class DispatchServer { this.initRegion(); } + @Deprecated public HttpServer getServer() { return server; } + + public HttpServer getHttpServer() { + return server; + } public InetSocketAddress getAddress() { return address; @@ -126,10 +131,10 @@ public final class DispatchServer { servers.add(server); RegionInfo serverRegion = regionQuery.getRegionInfo().toBuilder() - .setIp((Grasscutter.getConfig().getGameServerOptions().PublicIp.isEmpty() + .setGateserverIp((Grasscutter.getConfig().getGameServerOptions().PublicIp.isEmpty() ? Grasscutter.getConfig().getGameServerOptions().Ip : Grasscutter.getConfig().getGameServerOptions().PublicIp)) - .setPort(Grasscutter.getConfig().getGameServerOptions().PublicPort != 0 + .setGateserverPort(Grasscutter.getConfig().getGameServerOptions().PublicPort != 0 ? Grasscutter.getConfig().getGameServerOptions().PublicPort : Grasscutter.getConfig().getGameServerOptions().Port) .setSecretKey(ByteString @@ -169,8 +174,8 @@ public final class DispatchServer { servers.add(server); RegionInfo serverRegion = regionQuery.getRegionInfo().toBuilder() - .setIp(regionInfo.Ip) - .setPort(regionInfo.Port) + .setGateserverIp(regionInfo.Ip) + .setGateserverPort(regionInfo.Port) .setSecretKey(ByteString .copyFrom(FileUtils.read(Grasscutter.getConfig().KEY_FOLDER + "dispatchSeed.bin"))) .build(); @@ -181,7 +186,7 @@ public final class DispatchServer { } QueryRegionListHttpRsp regionList = QueryRegionListHttpRsp.newBuilder() - .addAllServers(servers) + .addAllRegionList(servers) .setClientSecretKey(rl.getClientSecretKey()) .setClientCustomConfigEncrypted(rl.getClientCustomConfigEncrypted()) .setEnableLoginPc(true) @@ -203,56 +208,65 @@ public final class DispatchServer { } return null; } + + private KeyManagerFactory createKeyManagerFactory(File keystore, String password) throws Exception { + char[] pass = password.toCharArray(); + KeyManagerFactory kmf = null; + + try (FileInputStream fis = new FileInputStream(keystore)) { + + KeyStore ks = KeyStore.getInstance("PKCS12"); + ks.load(fis, pass); + + kmf = KeyManagerFactory.getInstance("SunX509"); + kmf.init(ks, pass); + } catch (Exception e) { + throw e; + } + + return kmf; + } public void start() throws Exception { if (Grasscutter.getConfig().getDispatchOptions().UseSSL) { - HttpsServer httpsServer = HttpsServer.create(getAddress(), 0); + // Keystore SSLContext sslContext = SSLContext.getInstance("TLS"); - try (FileInputStream fis = new FileInputStream(Grasscutter.getConfig().getDispatchOptions().KeystorePath)) { - char[] keystorePassword = Grasscutter.getConfig().getDispatchOptions().KeystorePassword.toCharArray(); - KeyManagerFactory _kmf; + KeyManagerFactory kmf = null; + File keystoreFile = new File(Grasscutter.getConfig().getDispatchOptions().KeystorePath); + + if (keystoreFile.exists()) { try { - KeyStore ks = KeyStore.getInstance("PKCS12"); - ks.load(fis, keystorePassword); - KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509"); - _kmf = kmf; - kmf.init(ks, keystorePassword); - } catch (Exception originalEx) { + kmf = createKeyManagerFactory(keystoreFile, Grasscutter.getConfig().getDispatchOptions().KeystorePassword); + } catch (Exception e) { + Grasscutter.getLogger().warn("[Dispatch] Unable to load keystore. Trying default keystore password..."); + try { - // try to initialize kmf with the default password - char[] defaultPassword = "123456".toCharArray(); - - Grasscutter.getLogger() - .warn("[Dispatch] Unable to load keystore. Trying default keystore password..."); - KeyStore ks = KeyStore.getInstance("PKCS12"); - ks.load(fis, defaultPassword); - KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509"); - kmf.init(ks, defaultPassword); - _kmf = kmf; - + kmf = createKeyManagerFactory(keystoreFile, "123456"); Grasscutter.getLogger().warn( - "[Dispatch] The default keystore password was loaded successfully. Please consider setting the password in config.json."); - } catch (Exception ignored) { + "[Dispatch] The default keystore password was loaded successfully. Please consider setting the password to 123456 in config.json."); + } catch (Exception e2) { Grasscutter.getLogger().warn("[Dispatch] Error while loading keystore!"); - - // don't care about the exception for the "123456" default password attempt - originalEx.printStackTrace(); - throw originalEx; + e2.printStackTrace(); } } - - sslContext.init(_kmf.getKeyManagers(), null, null); - - httpsServer.setHttpsConfigurator(new HttpsConfigurator(sslContext)); - server = httpsServer; - } catch (BindException ignored) { - Grasscutter.getLogger().error("Unable to bind to port: " + getAddress().getPort() + " (HTTPS)"); - server = this.safelyCreateServer(this.getAddress()); - } catch (Exception e) { + } + + if (kmf == null) { Grasscutter.getLogger().warn("[Dispatch] No SSL cert found! Falling back to HTTP server."); Grasscutter.getConfig().getDispatchOptions().UseSSL = false; server = this.safelyCreateServer(this.getAddress()); } + + HttpsServer httpsServer = null; + + try { + httpsServer = HttpsServer.create(getAddress(), 0); + sslContext.init(kmf.getKeyManagers(), null, null); + httpsServer.setHttpsConfigurator(new HttpsConfigurator(sslContext)); + server = httpsServer; + } catch (BindException e) { + Grasscutter.getLogger().error("Unable to bind to port: " + getAddress().getPort() + " (HTTPS)"); + } } else { server = this.safelyCreateServer(this.getAddress()); } diff --git a/src/main/java/emu/grasscutter/server/event/game/SendPacketEvent.java b/src/main/java/emu/grasscutter/server/event/game/SendPacketEvent.java index 7a25b4e10..b78e0d0c8 100644 --- a/src/main/java/emu/grasscutter/server/event/game/SendPacketEvent.java +++ b/src/main/java/emu/grasscutter/server/event/game/SendPacketEvent.java @@ -1,15 +1,15 @@ package emu.grasscutter.server.event.game; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.server.event.Cancellable; import emu.grasscutter.server.event.ServerEvent; import emu.grasscutter.server.game.GameSession; public final class SendPacketEvent extends ServerEvent implements Cancellable { private final GameSession gameSession; - private GenshinPacket packet; + private BasePacket packet; - public SendPacketEvent(GameSession gameSession, GenshinPacket packet) { + public SendPacketEvent(GameSession gameSession, BasePacket packet) { super(Type.GAME); this.gameSession = gameSession; @@ -20,11 +20,11 @@ public final class SendPacketEvent extends ServerEvent implements Cancellable { return this.gameSession; } - public void setPacket(GenshinPacket packet) { + public void setPacket(BasePacket packet) { this.packet = packet; } - public GenshinPacket getPacket() { + public BasePacket getPacket() { return this.packet; } } diff --git a/src/main/java/emu/grasscutter/server/game/GameServer.java b/src/main/java/emu/grasscutter/server/game/GameServer.java index b37b24f33..50889fd56 100644 --- a/src/main/java/emu/grasscutter/server/game/GameServer.java +++ b/src/main/java/emu/grasscutter/server/game/GameServer.java @@ -5,32 +5,33 @@ import java.time.OffsetDateTime; import java.util.*; import java.util.concurrent.ConcurrentHashMap; -import emu.grasscutter.GenshinConstants; +import emu.grasscutter.GameConstants; import emu.grasscutter.Grasscutter; import emu.grasscutter.command.CommandMap; import emu.grasscutter.database.DatabaseHelper; import emu.grasscutter.game.Account; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.World; import emu.grasscutter.game.dungeons.DungeonManager; import emu.grasscutter.game.gacha.GachaManager; import emu.grasscutter.game.managers.ChatManager; import emu.grasscutter.game.managers.InventoryManager; import emu.grasscutter.game.managers.MultiplayerManager; +import emu.grasscutter.game.player.Player; import emu.grasscutter.game.shop.ShopManager; +import emu.grasscutter.game.world.World; import emu.grasscutter.net.packet.PacketHandler; import emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail; -import emu.grasscutter.netty.MihoyoKcpServer; +import emu.grasscutter.netty.KcpServer; import emu.grasscutter.server.event.ServerEvent; import emu.grasscutter.server.event.game.ServerTickEvent; import emu.grasscutter.server.event.internal.ServerStartEvent; import emu.grasscutter.server.event.internal.ServerStopEvent; +import emu.grasscutter.task.TaskMap; -public final class GameServer extends MihoyoKcpServer { +public final class GameServer extends KcpServer { private final InetSocketAddress address; private final GameServerPacketHandler packetHandler; - private final Map<Integer, GenshinPlayer> players; + private final Map<Integer, Player> players; private final Set<World> worlds; private final ChatManager chatManager; @@ -40,6 +41,7 @@ public final class GameServer extends MihoyoKcpServer { private final MultiplayerManager multiplayerManager; private final DungeonManager dungeonManager; private final CommandMap commandMap; + private final TaskMap taskMap; public GameServer(InetSocketAddress address) { super(address); @@ -57,6 +59,7 @@ public final class GameServer extends MihoyoKcpServer { this.multiplayerManager = new MultiplayerManager(this); this.dungeonManager = new DungeonManager(this); this.commandMap = new CommandMap(true); + this.taskMap = new TaskMap(true); // Schedule game loop. Timer gameLoop = new Timer(); @@ -79,7 +82,7 @@ public final class GameServer extends MihoyoKcpServer { return packetHandler; } - public Map<Integer, GenshinPlayer> getPlayers() { + public Map<Integer, Player> getPlayers() { return players; } @@ -114,23 +117,27 @@ public final class GameServer extends MihoyoKcpServer { public CommandMap getCommandMap() { return this.commandMap; } + + public TaskMap getTaskMap() { + return this.taskMap; + } - public void registerPlayer(GenshinPlayer player) { + public void registerPlayer(Player player) { getPlayers().put(player.getUid(), player); } - public GenshinPlayer getPlayerByUid(int id) { + public Player getPlayerByUid(int id) { return this.getPlayerByUid(id, false); } - public GenshinPlayer getPlayerByUid(int id, boolean allowOfflinePlayers) { + public Player getPlayerByUid(int id, boolean allowOfflinePlayers) { // Console check - if (id == GenshinConstants.SERVER_CONSOLE_UID) { + if (id == GameConstants.SERVER_CONSOLE_UID) { return null; } // Get from online players - GenshinPlayer player = this.getPlayers().get(id); + Player player = this.getPlayers().get(id); if (!allowOfflinePlayers) { return player; @@ -146,7 +153,7 @@ public final class GameServer extends MihoyoKcpServer { public SocialDetail.Builder getSocialDetailByUid(int id) { // Get from online players - GenshinPlayer player = this.getPlayerByUid(id, true); + Player player = this.getPlayerByUid(id, true); if (player == null) { return null; @@ -156,7 +163,7 @@ public final class GameServer extends MihoyoKcpServer { } public Account getAccountByName(String username) { - Optional<GenshinPlayer> playerOpt = getPlayers().values().stream().filter(player -> player.getAccount().getUsername().equals(username)).findFirst(); + Optional<Player> playerOpt = getPlayers().values().stream().filter(player -> player.getAccount().getUsername().equals(username)).findFirst(); if (playerOpt.isPresent()) { return playerOpt.get().getAccount(); } @@ -197,10 +204,10 @@ public final class GameServer extends MihoyoKcpServer { ServerStopEvent event = new ServerStopEvent(ServerEvent.Type.GAME, OffsetDateTime.now()); event.call(); // Kick and save all players - List<GenshinPlayer> list = new ArrayList<>(this.getPlayers().size()); + List<Player> list = new ArrayList<>(this.getPlayers().size()); list.addAll(this.getPlayers().values()); - for (GenshinPlayer player : list) { + for (Player player : list) { player.getSession().close(); } } diff --git a/src/main/java/emu/grasscutter/server/game/GameServerInitializer.java b/src/main/java/emu/grasscutter/server/game/GameServerInitializer.java index 5472c1db5..1c5f51388 100644 --- a/src/main/java/emu/grasscutter/server/game/GameServerInitializer.java +++ b/src/main/java/emu/grasscutter/server/game/GameServerInitializer.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.game; -import emu.grasscutter.netty.MihoyoKcpServerInitializer; +import emu.grasscutter.netty.KcpServerInitializer; import io.jpower.kcp.netty.UkcpChannel; import io.netty.channel.ChannelPipeline; -public class GameServerInitializer extends MihoyoKcpServerInitializer { +public class GameServerInitializer extends KcpServerInitializer { private GameServer server; public GameServerInitializer(GameServer server) { diff --git a/src/main/java/emu/grasscutter/server/game/GameServerPacketHandler.java b/src/main/java/emu/grasscutter/server/game/GameServerPacketHandler.java index 50d508bed..e6d6564ed 100644 --- a/src/main/java/emu/grasscutter/server/game/GameServerPacketHandler.java +++ b/src/main/java/emu/grasscutter/server/game/GameServerPacketHandler.java @@ -89,7 +89,7 @@ public class GameServerPacketHandler { // Log unhandled packets if (Grasscutter.getConfig().getGameServerOptions().LOG_PACKETS) { - //Grasscutter.getLogger().info("Unhandled packet (" + opcode + "): " + PacketOpcodesUtil.getOpcodeName(opcode)); + Grasscutter.getLogger().info("Unhandled packet (" + opcode + "): " + emu.grasscutter.net.packet.PacketOpcodesUtil.getOpcodeName(opcode)); } } } diff --git a/src/main/java/emu/grasscutter/server/game/GameSession.java b/src/main/java/emu/grasscutter/server/game/GameSession.java index 53b4f32cc..227d3fd65 100644 --- a/src/main/java/emu/grasscutter/server/game/GameSession.java +++ b/src/main/java/emu/grasscutter/server/game/GameSession.java @@ -3,13 +3,16 @@ package emu.grasscutter.server.game; import java.io.File; import java.net.InetSocketAddress; import java.nio.ByteBuffer; +import java.util.HashSet; +import java.util.Set; import emu.grasscutter.Grasscutter; import emu.grasscutter.game.Account; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; +import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.packet.PacketOpcodesUtil; -import emu.grasscutter.netty.MihoyoKcpChannel; +import emu.grasscutter.netty.KcpChannel; import emu.grasscutter.server.event.game.SendPacketEvent; import emu.grasscutter.utils.Crypto; import emu.grasscutter.utils.FileUtils; @@ -18,11 +21,11 @@ import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; import io.netty.channel.ChannelHandlerContext; -public class GameSession extends MihoyoKcpChannel { +public class GameSession extends KcpChannel { private GameServer server; private Account account; - private GenshinPlayer player; + private Player player; private boolean useSecretKey; private SessionState state; @@ -64,11 +67,11 @@ public class GameSession extends MihoyoKcpChannel { return this.getAccount().getId(); } - public GenshinPlayer getPlayer() { + public Player getPlayer() { return player; } - public synchronized void setPlayer(GenshinPlayer player) { + public synchronized void setPlayer(Player player) { this.player = player; this.player.setSession(this); this.player.setAccount(this.getAccount()); @@ -141,46 +144,48 @@ public class GameSession extends MihoyoKcpChannel { byte[] packet = FileUtils.read(p); - GenshinPacket genshinPacket = new GenshinPacket(opcode); - genshinPacket.setData(packet); + BasePacket basePacket = new BasePacket(opcode); + basePacket.setData(packet); - // Log - logPacket(genshinPacket.getOpcode()); - - send(genshinPacket); + send(basePacket); } - public void send(GenshinPacket genshinPacket) { + public void send(BasePacket packet) { // Test - if (genshinPacket.getOpcode() <= 0) { + if (packet.getOpcode() <= 0) { Grasscutter.getLogger().warn("Tried to send packet with missing cmd id!"); return; } // Header - if (genshinPacket.shouldBuildHeader()) { - genshinPacket.buildHeader(this.getNextClientSequence()); + if (packet.shouldBuildHeader()) { + packet.buildHeader(this.getNextClientSequence()); } // Log if (Grasscutter.getConfig().getGameServerOptions().LOG_PACKETS) { - logPacket(genshinPacket); + logPacket(packet); } // Invoke event. - SendPacketEvent event = new SendPacketEvent(this, genshinPacket); event.call(); + SendPacketEvent event = new SendPacketEvent(this, packet); event.call(); if(!event.isCanceled()) // If event is not cancelled, continue. this.send(event.getPacket().build()); } - private void logPacket(int opcode) { - //Grasscutter.getLogger().info("SEND: " + PacketOpcodesUtil.getOpcodeName(opcode)); - //System.out.println(Utils.bytesToHex(genshinPacket.getData())); - } - - private void logPacket(GenshinPacket genshinPacket) { - Grasscutter.getLogger().info("SEND: " + PacketOpcodesUtil.getOpcodeName(genshinPacket.getOpcode()) + " (" + genshinPacket.getOpcode() + ")"); - System.out.println(Utils.bytesToHex(genshinPacket.getData())); + private static final Set<Integer> loopPacket = Set.of( + PacketOpcodes.PingReq, + PacketOpcodes.PingRsp, + PacketOpcodes.WorldPlayerRTTNotify, + PacketOpcodes.UnionCmdNotify, + PacketOpcodes.QueryPathReq + ); + + private void logPacket(BasePacket packet) { + if (!loopPacket.contains(packet.getOpcode())) { + Grasscutter.getLogger().info("SEND: " + PacketOpcodesUtil.getOpcodeName(packet.getOpcode()) + " (" + packet.getOpcode() + ")"); + System.out.println(Utils.bytesToHex(packet.getData())); + } } @Override @@ -226,8 +231,10 @@ public class GameSession extends MihoyoKcpChannel { // Log packet if (Grasscutter.getConfig().getGameServerOptions().LOG_PACKETS) { - Grasscutter.getLogger().info("RECV: " + PacketOpcodesUtil.getOpcodeName(opcode) + " (" + opcode + ")"); - System.out.println(Utils.bytesToHex(payload)); + if (!loopPacket.contains(opcode)) { + Grasscutter.getLogger().info("RECV: " + PacketOpcodesUtil.getOpcodeName(opcode) + " (" + opcode + ")"); + System.out.println(Utils.bytesToHex(payload)); + } } // Handle diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandleSitReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandleSitReq.java deleted file mode 100644 index 418d99eef..000000000 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandleSitReq.java +++ /dev/null @@ -1,24 +0,0 @@ -package emu.grasscutter.server.packet.recv; - -import emu.grasscutter.net.packet.Opcodes; -import emu.grasscutter.net.packet.PacketHandler; -import emu.grasscutter.net.packet.PacketOpcodes; -import emu.grasscutter.net.proto.SitReqOuterClass; -import emu.grasscutter.server.game.GameSession; -import emu.grasscutter.server.packet.send.PacketSitRsp; -import emu.grasscutter.utils.Position; - -@Opcodes(PacketOpcodes.SitReq) -public class HandleSitReq extends PacketHandler { - @Override - public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { - SitReqOuterClass.SitReq req = SitReqOuterClass.SitReq.parseFrom(payload); - - float x = req.getPosition().getX(); - float y = req.getPosition().getY(); - float z = req.getPosition().getZ(); - - session.send(new PacketSitRsp(req.getChairId(), new Position(x, y, z), session.getPlayer().getTeamManager().getCurrentAvatarEntity().getId())); - } - -} \ No newline at end of file diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerAvatarFetterLevelRewardReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerAvatarFetterLevelRewardReq.java index b8b4f5e57..fa760a7a8 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandlerAvatarFetterLevelRewardReq.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerAvatarFetterLevelRewardReq.java @@ -1,9 +1,9 @@ package emu.grasscutter.server.packet.recv; -import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.GameData; import emu.grasscutter.data.def.RewardData; -import emu.grasscutter.game.avatar.GenshinAvatar; -import emu.grasscutter.game.inventory.GenshinItem; +import emu.grasscutter.game.avatar.Avatar; +import emu.grasscutter.game.inventory.GameItem; import emu.grasscutter.game.props.ActionReason; import emu.grasscutter.net.packet.Opcodes; import emu.grasscutter.net.packet.PacketOpcodes; @@ -27,14 +27,14 @@ public class HandlerAvatarFetterLevelRewardReq extends PacketHandler { } else { long avatarGuid = req.getAvatarGuid(); - GenshinAvatar avatar = session + Avatar avatar = session .getPlayer() .getAvatars() .getAvatarByGuid(avatarGuid); int rewardId = avatar.getNameCardRewardId(); - RewardData card = GenshinData.getRewardDataMap().get(rewardId); + RewardData card = GameData.getRewardDataMap().get(rewardId); int cardId = card.getRewardItemList().get(0).getItemId(); if (session.getPlayer().getNameCardList().contains(cardId)) { @@ -43,9 +43,8 @@ public class HandlerAvatarFetterLevelRewardReq extends PacketHandler { return; } - GenshinItem item = new GenshinItem(cardId); - session.getPlayer().getInventory().addItem(item); - session.getPlayer().sendPacket(new PacketItemAddHintNotify(item, ActionReason.FetterLevelReward)); + GameItem item = new GameItem(cardId); + session.getPlayer().getInventory().addItem(item, ActionReason.FetterLevelReward); session.getPlayer().sendPacket(new PacketUnlockNameCardNotify(cardId)); session.send(new PacketAvatarFetterDataNotify(avatar)); session.send(new PacketAvatarDataNotify(avatar.getPlayer())); diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerChangeMailStarNotify.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerChangeMailStarNotify.java new file mode 100644 index 000000000..0967cfc47 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerChangeMailStarNotify.java @@ -0,0 +1,34 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.game.mail.Mail; +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketMailChangeNotify; + +import java.util.ArrayList; +import java.util.List; + +@Opcodes(PacketOpcodes.ChangeMailStarNotify) +public class HandlerChangeMailStarNotify extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + ChangeMailStarNotifyOuterClass.ChangeMailStarNotify req = ChangeMailStarNotifyOuterClass.ChangeMailStarNotify.parseFrom(payload); + + List<Mail> updatedMail = new ArrayList<>(); + + for (int mailId : req.getMailIdListList()) { + Mail message = session.getPlayer().getMail(mailId); + + message.importance = req.getIsStar() == true ? 1 : 0; + + session.getPlayer().replaceMailByIndex(mailId, message); + updatedMail.add(message); + } + + session.send(new PacketMailChangeNotify(session.getPlayer(), updatedMail)); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerCombatInvocationsNotify.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerCombatInvocationsNotify.java index 570c3e981..a5a3fd4c3 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandlerCombatInvocationsNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerCombatInvocationsNotify.java @@ -1,6 +1,6 @@ package emu.grasscutter.server.packet.recv; -import emu.grasscutter.game.entity.GenshinEntity; +import emu.grasscutter.game.entity.GameEntity; import emu.grasscutter.net.packet.Opcodes; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify; @@ -19,15 +19,15 @@ public class HandlerCombatInvocationsNotify extends PacketHandler { for (CombatInvokeEntry entry : notif.getInvokeListList()) { switch (entry.getArgumentType()) { - case CombatEvtBeingHit: + case COMBAT_EVT_BEING_HIT: // Handle damage EvtBeingHitInfo hitInfo = EvtBeingHitInfo.parseFrom(entry.getCombatData()); session.getPlayer().getScene().handleAttack(hitInfo.getAttackResult()); break; - case EntityMove: + case ENTITY_MOVE: // Handle movement EntityMoveInfo moveInfo = EntityMoveInfo.parseFrom(entry.getCombatData()); - GenshinEntity entity = session.getPlayer().getScene().getEntityById(moveInfo.getEntityId()); + GameEntity entity = session.getPlayer().getScene().getEntityById(moveInfo.getEntityId()); if (entity != null) { entity.getPosition().set(moveInfo.getMotionInfo().getPos()); entity.getRotation().set(moveInfo.getMotionInfo().getRot()); diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerCombineReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerCombineReq.java new file mode 100644 index 000000000..d5ff27a15 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerCombineReq.java @@ -0,0 +1,20 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.CombineReqOuterClass; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.CombineReq) +public class HandlerCombineReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + + CombineReqOuterClass.CombineReq req = CombineReqOuterClass.CombineReq.parseFrom(payload); + + } + +} + diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerDelMailReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerDelMailReq.java new file mode 100644 index 000000000..4c6473996 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerDelMailReq.java @@ -0,0 +1,21 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.DelMailReqOuterClass; +import emu.grasscutter.net.proto.DeleteFriendReqOuterClass; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketDelMailRsp; + +@Opcodes(PacketOpcodes.DelMailReq) +public class HandlerDelMailReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + DelMailReqOuterClass.DelMailReq req = DelMailReqOuterClass.DelMailReq.parseFrom(payload); + + session.send(new PacketDelMailRsp(session.getPlayer(), req.getMailIdListList())); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerEnterSceneDoneReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerEnterSceneDoneReq.java index 2f7da6884..d374cfd46 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandlerEnterSceneDoneReq.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerEnterSceneDoneReq.java @@ -1,6 +1,6 @@ package emu.grasscutter.server.packet.recv; -import emu.grasscutter.game.GenshinPlayer.SceneLoadState; +import emu.grasscutter.game.player.Player.SceneLoadState; import emu.grasscutter.net.packet.Opcodes; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.packet.PacketHandler; diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandleEvtAvatarSitDownNotify.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerEvtAvatarSitDownNotify.java similarity index 91% rename from src/main/java/emu/grasscutter/server/packet/recv/HandleEvtAvatarSitDownNotify.java rename to src/main/java/emu/grasscutter/server/packet/recv/HandlerEvtAvatarSitDownNotify.java index 8f653dde9..d825bf21a 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandleEvtAvatarSitDownNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerEvtAvatarSitDownNotify.java @@ -8,7 +8,7 @@ import emu.grasscutter.server.game.GameSession; import emu.grasscutter.server.packet.send.PacketEvtAvatarSitDownNotify; @Opcodes(PacketOpcodes.EvtAvatarSitDownNotify) -public class HandleEvtAvatarSitDownNotify extends PacketHandler { +public class HandlerEvtAvatarSitDownNotify extends PacketHandler { @Override public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetAllMailReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetAllMailReq.java new file mode 100644 index 000000000..899ba6d95 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetAllMailReq.java @@ -0,0 +1,21 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.Grasscutter; +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.net.proto.GetAllMailReqOuterClass; +import emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketGetAllMailRsp; +import emu.grasscutter.server.packet.send.PacketGetGachaInfoRsp; + +@Opcodes(PacketOpcodes.GetAllMailReq) +public class HandlerGetAllMailReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + GetAllMailReqOuterClass.GetAllMailReq req = GetAllMailReqOuterClass.GetAllMailReq.parseFrom(payload); + session.send(new PacketGetAllMailRsp(session.getPlayer(), req.getIsGiftMail())); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetMailItemReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetMailItemReq.java new file mode 100644 index 000000000..f00bf911e --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetMailItemReq.java @@ -0,0 +1,20 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.Grasscutter; +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.GetMailItemReqOuterClass; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketGetMailItemRsp; + +@Opcodes(PacketOpcodes.GetMailItemReq) +public class HandlerGetMailItemReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + GetMailItemReqOuterClass.GetMailItemReq req = GetMailItemReqOuterClass.GetMailItemReq.parseFrom(payload); + session.send(new PacketGetMailItemRsp(session.getPlayer(), req.getMailIdListList())); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetPlayerBlacklistReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetPlayerBlacklistReq.java index 2d0b650d8..7036aff6a 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetPlayerBlacklistReq.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetPlayerBlacklistReq.java @@ -1,6 +1,6 @@ package emu.grasscutter.server.packet.recv; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.Opcodes; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.packet.PacketHandler; @@ -11,7 +11,7 @@ public class HandlerGetPlayerBlacklistReq extends PacketHandler { @Override public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { - session.send(new GenshinPacket(PacketOpcodes.GetPlayerBlacklistRsp).buildHeader(3)); + session.send(new BasePacket(PacketOpcodes.GetPlayerBlacklistRsp).buildHeader(3)); } } diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerMarkMapReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerMarkMapReq.java index 60d58e75e..bd403047f 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandlerMarkMapReq.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerMarkMapReq.java @@ -1,8 +1,8 @@ package emu.grasscutter.server.packet.recv; import emu.grasscutter.Grasscutter; -import emu.grasscutter.game.World; import emu.grasscutter.game.props.EnterReason; +import emu.grasscutter.game.world.World; import emu.grasscutter.net.packet.Opcodes; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.EnterTypeOuterClass.EnterType; @@ -32,7 +32,7 @@ public class HandlerMarkMapReq extends PacketHandler { public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { MarkMapReq req = MarkMapReq.parseFrom(payload); - if (req.getOp() != Operation.Add) { + if (req.getOp() != MarkMapReq.Operation.ADD) { return; } diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerNpcTalkReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerNpcTalkReq.java index 588e1c4e1..309d7e2e2 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandlerNpcTalkReq.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerNpcTalkReq.java @@ -1,6 +1,6 @@ package emu.grasscutter.server.packet.recv; -import emu.grasscutter.game.inventory.GenshinItem; +import emu.grasscutter.game.inventory.GameItem; import emu.grasscutter.net.packet.Opcodes; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.NpcTalkReqOuterClass.NpcTalkReq; diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerGetForceQuitBanInfoReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerGetForceQuitBanInfoReq.java index b7afdb905..65740c7fd 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerGetForceQuitBanInfoReq.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerGetForceQuitBanInfoReq.java @@ -3,6 +3,7 @@ package emu.grasscutter.server.packet.recv; import emu.grasscutter.net.packet.Opcodes; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.net.proto.RetcodeOuterClass; import emu.grasscutter.server.game.GameSession; import emu.grasscutter.server.packet.send.PacketPlayerGetForceQuitBanInfoRsp; @@ -14,10 +15,10 @@ public class HandlerPlayerGetForceQuitBanInfoReq extends PacketHandler { if (session.getServer().getMultiplayerManager().leaveCoop(session.getPlayer())) { // Success - session.send(new PacketPlayerGetForceQuitBanInfoRsp(0)); + session.send(new PacketPlayerGetForceQuitBanInfoRsp(RetcodeOuterClass.Retcode.RET_SUCC_VALUE)); } else { // Fail - session.send(new PacketPlayerGetForceQuitBanInfoRsp(1)); + session.send(new PacketPlayerGetForceQuitBanInfoRsp(RetcodeOuterClass.Retcode.RET_SVR_ERROR_VALUE)); } } diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerLoginReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerLoginReq.java index 05753aec0..a419a0db9 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerLoginReq.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerLoginReq.java @@ -1,8 +1,8 @@ package emu.grasscutter.server.packet.recv; import emu.grasscutter.database.DatabaseHelper; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.Opcodes; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq; @@ -30,12 +30,12 @@ public class HandlerPlayerLoginReq extends PacketHandler { } // Load character from db - GenshinPlayer player = DatabaseHelper.getPlayerById(session.getAccount().getPlayerUid()); + Player player = DatabaseHelper.getPlayerById(session.getAccount().getPlayerUid()); if (player == null) { // Send packets session.setState(SessionState.PICKING_CHARACTER); - session.send(new GenshinPacket(PacketOpcodes.DoSetPlayerBornDataNotify)); + session.send(new BasePacket(PacketOpcodes.DoSetPlayerBornDataNotify)); } else { // Set character session.setPlayer(player); diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPrivateChatReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPrivateChatReq.java index b576bbb20..89c0621cb 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPrivateChatReq.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPrivateChatReq.java @@ -19,8 +19,6 @@ public class HandlerPrivateChatReq extends PacketHandler { } else if (content == PrivateChatReq.ContentCase.ICON) { session.getServer().getChatManager().sendPrivateMessage(session.getPlayer(), req.getTargetUid(), req.getIcon()); } - - //session.send(new GenshinPacket(PacketOpcodes.PrivateChatRsp)); // Unused by server } } diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerReadMailNotify.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerReadMailNotify.java new file mode 100644 index 000000000..8c9c87149 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerReadMailNotify.java @@ -0,0 +1,35 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.game.mail.Mail; +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.GetAllMailReqOuterClass; +import emu.grasscutter.net.proto.ReadMailNotifyOuterClass; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketMailChangeNotify; + +import java.util.ArrayList; +import java.util.List; + +@Opcodes(PacketOpcodes.ReadMailNotify) +public class HandlerReadMailNotify extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + ReadMailNotifyOuterClass.ReadMailNotify req = ReadMailNotifyOuterClass.ReadMailNotify.parseFrom(payload); + + List<Mail> updatedMail = new ArrayList<>(); + + for (int mailId : req.getMailIdListList()) { + Mail message = session.getPlayer().getMail(mailId); + + message.isRead = true; + + session.getPlayer().replaceMailByIndex(mailId, message); + updatedMail.add(message); + } + + session.send(new PacketMailChangeNotify(session.getPlayer(), updatedMail)); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerSceneEntityDrownReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSceneEntityDrownReq.java new file mode 100644 index 000000000..fefbee3b6 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSceneEntityDrownReq.java @@ -0,0 +1,35 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.game.entity.EntityAvatar; +import emu.grasscutter.game.entity.EntityMonster; +import emu.grasscutter.game.entity.GameEntity; +import emu.grasscutter.game.props.FightProperty; +import emu.grasscutter.game.props.LifeState; +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.SceneEntityDrownReqOuterClass.SceneEntityDrownReq; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketSceneEntityDrownRsp; + +@Opcodes(PacketOpcodes.SceneEntityDrownReq) +public class HandlerSceneEntityDrownReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + SceneEntityDrownReq req = SceneEntityDrownReq.parseFrom(payload); + + GameEntity entity = session.getPlayer().getScene().getEntityById(req.getEntityId()); + + if (entity == null || !(entity instanceof EntityMonster || entity instanceof EntityAvatar)) { + return; + } + + entity.setFightProperty(FightProperty.FIGHT_PROP_CUR_HP, 0); + + //TODO: make a list somewhere of all entities to remove per tick rather than one by one + session.getPlayer().getScene().killEntity(entity, 0); + session.getPlayer().getScene().broadcastPacket(new PacketSceneEntityDrownRsp(req.getEntityId())); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerSceneInitFinishReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSceneInitFinishReq.java index 4a4dbfcf1..587cf7ce1 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandlerSceneInitFinishReq.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSceneInitFinishReq.java @@ -1,7 +1,7 @@ package emu.grasscutter.server.packet.recv; -import emu.grasscutter.game.GenshinPlayer.SceneLoadState; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player.SceneLoadState; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.Opcodes; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.packet.PacketHandler; @@ -31,7 +31,7 @@ public class HandlerSceneInitFinishReq extends PacketHandler { session.send(new PacketWorldPlayerInfoNotify(session.getPlayer().getWorld())); session.send(new PacketWorldDataNotify(session.getPlayer().getWorld())); session.send(new PacketSceneUnlockInfoNotify()); - session.send(new GenshinPacket(PacketOpcodes.SceneForceUnlockNotify)); + session.send(new BasePacket(PacketOpcodes.SceneForceUnlockNotify)); session.send(new PacketHostPlayerNotify(session.getPlayer().getWorld())); session.send(new PacketSceneTimeNotify(session.getPlayer())); diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerSceneTransToPointReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSceneTransToPointReq.java index f01f5980d..65783d01b 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandlerSceneTransToPointReq.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSceneTransToPointReq.java @@ -1,6 +1,6 @@ package emu.grasscutter.server.packet.recv; -import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.GameData; import emu.grasscutter.data.custom.ScenePointEntry; import emu.grasscutter.net.packet.Opcodes; import emu.grasscutter.net.packet.PacketOpcodes; @@ -19,7 +19,7 @@ public class HandlerSceneTransToPointReq extends PacketHandler { SceneTransToPointReq req = SceneTransToPointReq.parseFrom(payload); String code = req.getSceneId() + "_" + req.getPointId(); - ScenePointEntry scenePointEntry = GenshinData.getScenePointEntries().get(code); + ScenePointEntry scenePointEntry = GameData.getScenePointEntries().get(code); if (scenePointEntry != null) { float x = scenePointEntry.getPointData().getTranPos().getX(); diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetEntityClientDataNotify.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetEntityClientDataNotify.java index d194e1465..5151034f2 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetEntityClientDataNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetEntityClientDataNotify.java @@ -1,6 +1,6 @@ package emu.grasscutter.server.packet.recv; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.Opcodes; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.SetEntityClientDataNotifyOuterClass.SetEntityClientDataNotify; @@ -20,7 +20,7 @@ public class HandlerSetEntityClientDataNotify extends PacketHandler { // Make sure packet is a valid proto before replaying it to the other players SetEntityClientDataNotify notif = SetEntityClientDataNotify.parseFrom(payload); - GenshinPacket packet = new GenshinPacket(PacketOpcodes.SetEntityClientDataNotify, true); + BasePacket packet = new BasePacket(PacketOpcodes.SetEntityClientDataNotify, true); packet.setData(notif); session.getPlayer().getScene().broadcastPacketToOthers(session.getPlayer(), packet); diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetPlayerBornDataReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetPlayerBornDataReq.java index 72fc709d9..53312b5b1 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetPlayerBornDataReq.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetPlayerBornDataReq.java @@ -1,12 +1,12 @@ package emu.grasscutter.server.packet.recv; -import emu.grasscutter.GenshinConstants; +import emu.grasscutter.GameConstants; import emu.grasscutter.Grasscutter; -import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.GameData; import emu.grasscutter.database.DatabaseHelper; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.avatar.GenshinAvatar; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.avatar.Avatar; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.Opcodes; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq; @@ -24,9 +24,9 @@ public class HandlerSetPlayerBornDataReq extends PacketHandler { // Sanity checks int avatarId = req.getAvatarId(); int startingSkillDepot = 0; - if (avatarId == GenshinConstants.MAIN_CHARACTER_MALE) { + if (avatarId == GameConstants.MAIN_CHARACTER_MALE) { startingSkillDepot = 504; - } else if (avatarId == GenshinConstants.MAIN_CHARACTER_FEMALE) { + } else if (avatarId == GameConstants.MAIN_CHARACTER_FEMALE) { startingSkillDepot = 704; } else { return; @@ -38,7 +38,7 @@ public class HandlerSetPlayerBornDataReq extends PacketHandler { } // Create character - GenshinPlayer player = new GenshinPlayer(session); + Player player = new Player(session); player.setNickname(nickname); try { @@ -47,8 +47,8 @@ public class HandlerSetPlayerBornDataReq extends PacketHandler { // Create avatar if (player.getAvatars().getAvatarCount() == 0) { - GenshinAvatar mainCharacter = new GenshinAvatar(avatarId); - mainCharacter.setSkillDepot(GenshinData.getAvatarSkillDepotDataMap().get(startingSkillDepot)); + Avatar mainCharacter = new Avatar(avatarId); + mainCharacter.setSkillDepot(GameData.getAvatarSkillDepotDataMap().get(startingSkillDepot)); player.addAvatar(mainCharacter); player.setMainCharacterId(avatarId); player.setHeadImage(avatarId); @@ -68,7 +68,7 @@ public class HandlerSetPlayerBornDataReq extends PacketHandler { session.setState(SessionState.ACTIVE); // Born resp packet - session.send(new GenshinPacket(PacketOpcodes.SetPlayerBornDataRsp)); + session.send(new BasePacket(PacketOpcodes.SetPlayerBornDataRsp)); } catch (Exception e) { Grasscutter.getLogger().error("Error creating player object: ", e); session.close(); diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerTakePlayerLevelRewardReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerTakePlayerLevelRewardReq.java index a81da7758..8ee2d934b 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandlerTakePlayerLevelRewardReq.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerTakePlayerLevelRewardReq.java @@ -5,9 +5,9 @@ import java.util.List; import java.util.Set; import emu.grasscutter.Grasscutter; -import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.GameData; import emu.grasscutter.data.common.RewardItemData; -import emu.grasscutter.game.inventory.GenshinItem; +import emu.grasscutter.game.inventory.GameItem; import emu.grasscutter.game.props.ActionReason; import emu.grasscutter.net.packet.Opcodes; import emu.grasscutter.net.packet.PacketHandler; @@ -24,15 +24,15 @@ public class HandlerTakePlayerLevelRewardReq extends PacketHandler { TakePlayerLevelRewardReq req = TakePlayerLevelRewardReq.parseFrom(payload); int level = req.getLevel(); - int rewardId = GenshinData.getPlayerLevelDataMap().get(level).getRewardId(); + int rewardId = GameData.getPlayerLevelDataMap().get(level).getRewardId(); if (rewardId != 0) { - List<RewardItemData> rewardItems = GenshinData.getRewardDataMap().get(rewardId).getRewardItemList(); - List<GenshinItem> items = new LinkedList<>(); + List<RewardItemData> rewardItems = GameData.getRewardDataMap().get(rewardId).getRewardItemList(); + List<GameItem> items = new LinkedList<>(); for (RewardItemData rewardItem : rewardItems) { if (rewardItem != null) { if (rewardItem.getItemId() != 0) { - items.add(new GenshinItem(rewardItem.getItemId(), rewardItem.getItemCount())); + items.add(new GameItem(rewardItem.getItemId(), rewardItem.getItemCount())); } } } diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerUseItemReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerUseItemReq.java index 8a1f4a70c..81a1f160b 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandlerUseItemReq.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerUseItemReq.java @@ -1,6 +1,6 @@ package emu.grasscutter.server.packet.recv; -import emu.grasscutter.game.inventory.GenshinItem; +import emu.grasscutter.game.inventory.GameItem; import emu.grasscutter.net.packet.Opcodes; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq; @@ -15,7 +15,7 @@ public class HandlerUseItemReq extends PacketHandler { public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { UseItemReq req = UseItemReq.parseFrom(payload); - GenshinItem useItem = session.getServer().getInventoryManager().useItem(session.getPlayer(), req.getTargetGuid(), req.getGuid(), req.getCount()); + GameItem useItem = session.getServer().getInventoryManager().useItem(session.getPlayer(), req.getTargetGuid(), req.getGuid(), req.getCount()); if (useItem != null) { session.send(new PacketUseItemRsp(req.getTargetGuid(), useItem)); } else { diff --git a/src/main/java/emu/grasscutter/server/packet/send/Packet.java b/src/main/java/emu/grasscutter/server/packet/send/Packet.java index 70306892d..22f4924a1 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/Packet.java +++ b/src/main/java/emu/grasscutter/server/packet/send/Packet.java @@ -1,9 +1,9 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; -public class Packet extends GenshinPacket { +public class Packet extends BasePacket { public Packet() { super(PacketOpcodes.NONE); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAbilityChangeNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAbilityChangeNotify.java index d8cdfdef8..e6ce9ee00 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketAbilityChangeNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAbilityChangeNotify.java @@ -1,11 +1,11 @@ package emu.grasscutter.server.packet.send; import emu.grasscutter.game.entity.EntityAvatar; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify; -public class PacketAbilityChangeNotify extends GenshinPacket { +public class PacketAbilityChangeNotify extends BasePacket { public PacketAbilityChangeNotify(EntityAvatar entity) { super(PacketOpcodes.AbilityChangeNotify, true); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAbilityInvocationsNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAbilityInvocationsNotify.java index 5b1b19a4b..c674fb9d6 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketAbilityInvocationsNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAbilityInvocationsNotify.java @@ -2,12 +2,12 @@ package emu.grasscutter.server.packet.send; import java.util.List; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify; import emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry; -public class PacketAbilityInvocationsNotify extends GenshinPacket { +public class PacketAbilityInvocationsNotify extends BasePacket { public PacketAbilityInvocationsNotify(AbilityInvokeEntry entry) { super(PacketOpcodes.AbilityInvocationsNotify, true); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAskAddFriendNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAskAddFriendNotify.java index a0f2e428f..c71ea4beb 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketAskAddFriendNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAskAddFriendNotify.java @@ -1,11 +1,11 @@ package emu.grasscutter.server.packet.send; import emu.grasscutter.game.friends.Friendship; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify; -public class PacketAskAddFriendNotify extends GenshinPacket { +public class PacketAskAddFriendNotify extends BasePacket { public PacketAskAddFriendNotify(Friendship friendship) { super(PacketOpcodes.AskAddFriendNotify); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAskAddFriendRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAskAddFriendRsp.java index df46ac296..3f258b75a 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketAskAddFriendRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAskAddFriendRsp.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp; -public class PacketAskAddFriendRsp extends GenshinPacket { +public class PacketAskAddFriendRsp extends BasePacket { public PacketAskAddFriendRsp(int targetUid) { super(PacketOpcodes.AskAddFriendRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarAddNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarAddNotify.java index 620165d5c..5ee2fb803 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarAddNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarAddNotify.java @@ -1,13 +1,13 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.avatar.GenshinAvatar; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.avatar.Avatar; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify; -public class PacketAvatarAddNotify extends GenshinPacket { +public class PacketAvatarAddNotify extends BasePacket { - public PacketAvatarAddNotify(GenshinAvatar avatar, boolean addedToTeam) { + public PacketAvatarAddNotify(Avatar avatar, boolean addedToTeam) { super(PacketOpcodes.AvatarAddNotify); AvatarAddNotify proto = AvatarAddNotify.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarChangeCostumeNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarChangeCostumeNotify.java index 0319fc4c9..a14be26d1 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarChangeCostumeNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarChangeCostumeNotify.java @@ -1,17 +1,17 @@ package emu.grasscutter.server.packet.send; import emu.grasscutter.game.entity.EntityAvatar; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify; -public class PacketAvatarChangeCostumeNotify extends GenshinPacket { +public class PacketAvatarChangeCostumeNotify extends BasePacket { public PacketAvatarChangeCostumeNotify(EntityAvatar entity) { super(PacketOpcodes.AvatarChangeCostumeNotify); AvatarChangeCostumeNotify proto = AvatarChangeCostumeNotify.newBuilder() - .setEntity(entity.toProto()) + .setEntityInfo(entity.toProto()) .build(); this.setData(proto); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarChangeCostumeRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarChangeCostumeRsp.java index 66c1d5050..da5848378 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarChangeCostumeRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarChangeCostumeRsp.java @@ -1,10 +1,11 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp; +import emu.grasscutter.net.proto.RetcodeOuterClass; -public class PacketAvatarChangeCostumeRsp extends GenshinPacket { +public class PacketAvatarChangeCostumeRsp extends BasePacket { public PacketAvatarChangeCostumeRsp(long avatarGuid, int costumeId) { super(PacketOpcodes.AvatarChangeCostumeRsp); @@ -21,7 +22,7 @@ public class PacketAvatarChangeCostumeRsp extends GenshinPacket { super(PacketOpcodes.AvatarChangeCostumeRsp); AvatarChangeCostumeRsp proto = AvatarChangeCostumeRsp.newBuilder() - .setRetcode(1) + .setRetcode(RetcodeOuterClass.Retcode.RET_SVR_ERROR_VALUE) .build(); this.setData(proto); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarDataNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarDataNotify.java index a05a2dabb..ca50b8f94 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarDataNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarDataNotify.java @@ -2,17 +2,17 @@ package emu.grasscutter.server.packet.send; import java.util.Map.Entry; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.TeamInfo; -import emu.grasscutter.game.avatar.GenshinAvatar; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.avatar.Avatar; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.game.player.TeamInfo; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify; import emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam; -public class PacketAvatarDataNotify extends GenshinPacket { +public class PacketAvatarDataNotify extends BasePacket { - public PacketAvatarDataNotify(GenshinPlayer player) { + public PacketAvatarDataNotify(Player player) { super(PacketOpcodes.AvatarDataNotify, 2); AvatarDataNotify.Builder proto = AvatarDataNotify.newBuilder() @@ -21,7 +21,7 @@ public class PacketAvatarDataNotify extends GenshinPacket { .addAllOwnedFlycloakList(player.getFlyCloakList()) .addAllOwnedCostumeList(player.getCostumeList()); - for (GenshinAvatar avatar : player.getAvatars()) { + for (Avatar avatar : player.getAvatars()) { proto.addAvatarList(avatar.toProto()); } @@ -31,7 +31,7 @@ public class PacketAvatarDataNotify extends GenshinPacket { .setTeamName(teamInfo.getName()); for (int i = 0; i < teamInfo.getAvatars().size(); i++) { - GenshinAvatar avatar = player.getAvatars().getAvatarById(teamInfo.getAvatars().get(i)); + Avatar avatar = player.getAvatars().getAvatarById(teamInfo.getAvatars().get(i)); avatarTeam.addAvatarGuidList(avatar.getGuid()); } diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarDieAnimationEndRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarDieAnimationEndRsp.java index 3fa913a0a..b057ef34d 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarDieAnimationEndRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarDieAnimationEndRsp.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp; -public class PacketAvatarDieAnimationEndRsp extends GenshinPacket { +public class PacketAvatarDieAnimationEndRsp extends BasePacket { public PacketAvatarDieAnimationEndRsp(long dieGuid, int skillId) { super(PacketOpcodes.AvatarDieAnimationEndRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarEquipChangeNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarEquipChangeNotify.java index 000c72d38..dc00ad75c 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarEquipChangeNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarEquipChangeNotify.java @@ -1,15 +1,15 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.game.avatar.Avatar; import emu.grasscutter.game.inventory.EquipType; -import emu.grasscutter.game.inventory.GenshinItem; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.inventory.GameItem; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify; -public class PacketAvatarEquipChangeNotify extends GenshinPacket { +public class PacketAvatarEquipChangeNotify extends BasePacket { - public PacketAvatarEquipChangeNotify(GenshinAvatar avatar, GenshinItem item) { + public PacketAvatarEquipChangeNotify(Avatar avatar, GameItem item) { super(PacketOpcodes.AvatarEquipChangeNotify); AvatarEquipChangeNotify.Builder proto = AvatarEquipChangeNotify.newBuilder() @@ -27,7 +27,7 @@ public class PacketAvatarEquipChangeNotify extends GenshinPacket { this.setData(proto); } - public PacketAvatarEquipChangeNotify(GenshinAvatar avatar, EquipType slot) { + public PacketAvatarEquipChangeNotify(Avatar avatar, EquipType slot) { super(PacketOpcodes.AvatarEquipChangeNotify); AvatarEquipChangeNotify.Builder proto = AvatarEquipChangeNotify.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFetterDataNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFetterDataNotify.java index 68d3dbeac..816fec64b 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFetterDataNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFetterDataNotify.java @@ -1,16 +1,16 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.game.avatar.Avatar; import emu.grasscutter.game.props.FetterState; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify; import emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo; import emu.grasscutter.net.proto.FetterDataOuterClass.FetterData; -public class PacketAvatarFetterDataNotify extends GenshinPacket { +public class PacketAvatarFetterDataNotify extends BasePacket { - public PacketAvatarFetterDataNotify(GenshinAvatar avatar) { + public PacketAvatarFetterDataNotify(Avatar avatar) { super(PacketOpcodes.AvatarFetterDataNotify); int fetterLevel = avatar.getFetterLevel(); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFetterLevelRewardRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFetterLevelRewardRsp.java index e9d4895ff..481cdb620 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFetterLevelRewardRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFetterLevelRewardRsp.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp; -public class PacketAvatarFetterLevelRewardRsp extends GenshinPacket { +public class PacketAvatarFetterLevelRewardRsp extends BasePacket { public PacketAvatarFetterLevelRewardRsp(long guid, int fetterLevel, int rewardId) { super(PacketOpcodes.AvatarFetterLevelRewardRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFightPropNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFightPropNotify.java index bb68c5d12..556ba8626 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFightPropNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFightPropNotify.java @@ -1,13 +1,13 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.avatar.GenshinAvatar; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.avatar.Avatar; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify; -public class PacketAvatarFightPropNotify extends GenshinPacket { +public class PacketAvatarFightPropNotify extends BasePacket { - public PacketAvatarFightPropNotify(GenshinAvatar avatar) { + public PacketAvatarFightPropNotify(Avatar avatar) { super(PacketOpcodes.AvatarFightPropNotify); AvatarFightPropNotify proto = AvatarFightPropNotify.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFightPropUpdateNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFightPropUpdateNotify.java index a939ba057..9b9f4e9dd 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFightPropUpdateNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFightPropUpdateNotify.java @@ -1,14 +1,14 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.game.avatar.Avatar; import emu.grasscutter.game.props.FightProperty; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify; -public class PacketAvatarFightPropUpdateNotify extends GenshinPacket { +public class PacketAvatarFightPropUpdateNotify extends BasePacket { - public PacketAvatarFightPropUpdateNotify(GenshinAvatar avatar, FightProperty prop) { + public PacketAvatarFightPropUpdateNotify(Avatar avatar, FightProperty prop) { super(PacketOpcodes.AvatarFightPropUpdateNotify); AvatarFightPropUpdateNotify proto = AvatarFightPropUpdateNotify.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFlycloakChangeNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFlycloakChangeNotify.java index 88efecfe7..23a35c815 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFlycloakChangeNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFlycloakChangeNotify.java @@ -1,13 +1,13 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.avatar.GenshinAvatar; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.avatar.Avatar; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify; -public class PacketAvatarFlycloakChangeNotify extends GenshinPacket { +public class PacketAvatarFlycloakChangeNotify extends BasePacket { - public PacketAvatarFlycloakChangeNotify(GenshinAvatar avatar) { + public PacketAvatarFlycloakChangeNotify(Avatar avatar) { super(PacketOpcodes.AvatarFlycloakChangeNotify); AvatarFlycloakChangeNotify proto = AvatarFlycloakChangeNotify.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarGainCostumeNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarGainCostumeNotify.java index 74946d959..f8b14cda7 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarGainCostumeNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarGainCostumeNotify.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify; -public class PacketAvatarGainCostumeNotify extends GenshinPacket { +public class PacketAvatarGainCostumeNotify extends BasePacket { public PacketAvatarGainCostumeNotify(int costumeId) { super(PacketOpcodes.AvatarGainCostumeNotify); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarGainFlycloakNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarGainFlycloakNotify.java index a3dfacc13..88856ad25 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarGainFlycloakNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarGainFlycloakNotify.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify; -public class PacketAvatarGainFlycloakNotify extends GenshinPacket { +public class PacketAvatarGainFlycloakNotify extends BasePacket { public PacketAvatarGainFlycloakNotify(int flycloak) { super(PacketOpcodes.AvatarGainFlycloakNotify); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarLifeStateChangeNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarLifeStateChangeNotify.java index d9acb5d4e..fcdce2b9a 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarLifeStateChangeNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarLifeStateChangeNotify.java @@ -1,15 +1,15 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.game.avatar.Avatar; import emu.grasscutter.game.props.FightProperty; import emu.grasscutter.game.props.LifeState; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify; -public class PacketAvatarLifeStateChangeNotify extends GenshinPacket { +public class PacketAvatarLifeStateChangeNotify extends BasePacket { - public PacketAvatarLifeStateChangeNotify(GenshinAvatar avatar) { + public PacketAvatarLifeStateChangeNotify(Avatar avatar) { super(PacketOpcodes.AvatarLifeStateChangeNotify); AvatarLifeStateChangeNotify proto = AvatarLifeStateChangeNotify.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarPromoteRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarPromoteRsp.java index feef149e7..80d7d6ca9 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarPromoteRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarPromoteRsp.java @@ -1,13 +1,13 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.avatar.GenshinAvatar; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.avatar.Avatar; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp; -public class PacketAvatarPromoteRsp extends GenshinPacket { +public class PacketAvatarPromoteRsp extends BasePacket { - public PacketAvatarPromoteRsp(GenshinAvatar avatar) { + public PacketAvatarPromoteRsp(Avatar avatar) { super(PacketOpcodes.AvatarPromoteRsp); AvatarPromoteRsp proto = AvatarPromoteRsp.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarPropNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarPropNotify.java index d1c04d9db..21d373838 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarPropNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarPropNotify.java @@ -1,13 +1,13 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.game.avatar.Avatar; import emu.grasscutter.game.props.PlayerProperty; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify; -public class PacketAvatarPropNotify extends GenshinPacket { - public PacketAvatarPropNotify(GenshinAvatar avatar) { +public class PacketAvatarPropNotify extends BasePacket { + public PacketAvatarPropNotify(Avatar avatar) { super(PacketOpcodes.AvatarPropNotify); AvatarPropNotify proto = AvatarPropNotify.newBuilder() @@ -22,7 +22,7 @@ public class PacketAvatarPropNotify extends GenshinPacket { this.setData(proto); } - public PacketAvatarPropNotify(GenshinAvatar avatar, PlayerProperty prop, int value) { + public PacketAvatarPropNotify(Avatar avatar, PlayerProperty prop, int value) { super(PacketOpcodes.AvatarPropNotify); AvatarPropNotify proto = AvatarPropNotify.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarSkillChangeNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarSkillChangeNotify.java index ba787ee7c..ba260ce6c 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarSkillChangeNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarSkillChangeNotify.java @@ -1,13 +1,13 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.avatar.GenshinAvatar; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.avatar.Avatar; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify; -public class PacketAvatarSkillChangeNotify extends GenshinPacket { +public class PacketAvatarSkillChangeNotify extends BasePacket { - public PacketAvatarSkillChangeNotify(GenshinAvatar avatar, int skillId, int oldLevel, int curLevel) { + public PacketAvatarSkillChangeNotify(Avatar avatar, int skillId, int oldLevel, int curLevel) { super(PacketOpcodes.AvatarSkillChangeNotify); AvatarSkillChangeNotify proto = AvatarSkillChangeNotify.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarSkillUpgradeRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarSkillUpgradeRsp.java index 21163e901..22678db64 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarSkillUpgradeRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarSkillUpgradeRsp.java @@ -1,13 +1,13 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.avatar.GenshinAvatar; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.avatar.Avatar; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp; -public class PacketAvatarSkillUpgradeRsp extends GenshinPacket { +public class PacketAvatarSkillUpgradeRsp extends BasePacket { - public PacketAvatarSkillUpgradeRsp(GenshinAvatar avatar, int skillId, int oldLevel, int newLevel) { + public PacketAvatarSkillUpgradeRsp(Avatar avatar, int skillId, int oldLevel, int newLevel) { super(PacketOpcodes.AvatarSkillUpgradeRsp); AvatarSkillUpgradeRsp proto = AvatarSkillUpgradeRsp.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarTeamUpdateNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarTeamUpdateNotify.java index 519584cc3..93e9e12c3 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarTeamUpdateNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarTeamUpdateNotify.java @@ -2,17 +2,17 @@ package emu.grasscutter.server.packet.send; import java.util.Map.Entry; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.TeamInfo; -import emu.grasscutter.game.avatar.GenshinAvatar; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.avatar.Avatar; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.game.player.TeamInfo; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam; import emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify; -public class PacketAvatarTeamUpdateNotify extends GenshinPacket { +public class PacketAvatarTeamUpdateNotify extends BasePacket { - public PacketAvatarTeamUpdateNotify(GenshinPlayer player) { + public PacketAvatarTeamUpdateNotify(Player player) { super(PacketOpcodes.AvatarTeamUpdateNotify); AvatarTeamUpdateNotify.Builder proto = AvatarTeamUpdateNotify.newBuilder(); @@ -23,7 +23,7 @@ public class PacketAvatarTeamUpdateNotify extends GenshinPacket { .setTeamName(teamInfo.getName()); for (int i = 0; i < teamInfo.getAvatars().size(); i++) { - GenshinAvatar avatar = player.getAvatars().getAvatarById(teamInfo.getAvatars().get(i)); + Avatar avatar = player.getAvatars().getAvatarById(teamInfo.getAvatars().get(i)); avatarTeam.addAvatarGuidList(avatar.getGuid()); } diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarUnlockTalentNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarUnlockTalentNotify.java index 4c0b11ae9..baa93bccf 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarUnlockTalentNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarUnlockTalentNotify.java @@ -1,13 +1,13 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.avatar.GenshinAvatar; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.avatar.Avatar; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify; -public class PacketAvatarUnlockTalentNotify extends GenshinPacket { +public class PacketAvatarUnlockTalentNotify extends BasePacket { - public PacketAvatarUnlockTalentNotify(GenshinAvatar avatar, int talentId) { + public PacketAvatarUnlockTalentNotify(Avatar avatar, int talentId) { super(PacketOpcodes.AvatarUnlockTalentNotify); AvatarUnlockTalentNotify proto = AvatarUnlockTalentNotify.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarUpgradeRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarUpgradeRsp.java index 031313ea6..99ac311fd 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarUpgradeRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarUpgradeRsp.java @@ -2,14 +2,14 @@ package emu.grasscutter.server.packet.send; import java.util.Map; -import emu.grasscutter.game.avatar.GenshinAvatar; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.avatar.Avatar; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp; -public class PacketAvatarUpgradeRsp extends GenshinPacket { +public class PacketAvatarUpgradeRsp extends BasePacket { - public PacketAvatarUpgradeRsp(GenshinAvatar avatar, int oldLevel, Map<Integer, Float> oldFightPropMap) { + public PacketAvatarUpgradeRsp(Avatar avatar, int oldLevel, Map<Integer, Float> oldFightPropMap) { super(PacketOpcodes.AvatarUpgradeRsp); this.buildHeader(0); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarWearFlycloakRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarWearFlycloakRsp.java index b95cfafcf..0995e5d18 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarWearFlycloakRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarWearFlycloakRsp.java @@ -1,10 +1,11 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp; +import emu.grasscutter.net.proto.RetcodeOuterClass; -public class PacketAvatarWearFlycloakRsp extends GenshinPacket { +public class PacketAvatarWearFlycloakRsp extends BasePacket { public PacketAvatarWearFlycloakRsp(long avatarGuid, int costumeId) { super(PacketOpcodes.AvatarWearFlycloakRsp); @@ -20,7 +21,7 @@ public class PacketAvatarWearFlycloakRsp extends GenshinPacket { super(PacketOpcodes.AvatarWearFlycloakRsp); AvatarWearFlycloakRsp proto = AvatarWearFlycloakRsp.newBuilder() - .setRetcode(1) + .setRetcode(RetcodeOuterClass.Retcode.RET_SVR_ERROR_VALUE) .build(); this.setData(proto); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketCalcWeaponUpgradeReturnItemsRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketCalcWeaponUpgradeReturnItemsRsp.java index d3a30a700..8d2bfacfb 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketCalcWeaponUpgradeReturnItemsRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketCalcWeaponUpgradeReturnItemsRsp.java @@ -2,13 +2,13 @@ package emu.grasscutter.server.packet.send; import java.util.List; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; -import emu.grasscutter.net.packet.Retcode; import emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp; import emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam; +import emu.grasscutter.net.proto.RetcodeOuterClass; -public class PacketCalcWeaponUpgradeReturnItemsRsp extends GenshinPacket { +public class PacketCalcWeaponUpgradeReturnItemsRsp extends BasePacket { public PacketCalcWeaponUpgradeReturnItemsRsp(long itemGuid, List<ItemParam> returnItems) { super(PacketOpcodes.CalcWeaponUpgradeReturnItemsRsp); @@ -25,7 +25,7 @@ public class PacketCalcWeaponUpgradeReturnItemsRsp extends GenshinPacket { super(PacketOpcodes.CalcWeaponUpgradeReturnItemsRsp); CalcWeaponUpgradeReturnItemsRsp proto = CalcWeaponUpgradeReturnItemsRsp.newBuilder() - .setRetcode(Retcode.FAIL) + .setRetcode(RetcodeOuterClass.Retcode.RET_SVR_ERROR_VALUE) .build(); this.setData(proto); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketCardProductRewardNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketCardProductRewardNotify.java new file mode 100644 index 000000000..606c77fff --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketCardProductRewardNotify.java @@ -0,0 +1,24 @@ +package emu.grasscutter.server.packet.send; + + +import emu.grasscutter.net.packet.BasePacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify; + +public class PacketCardProductRewardNotify extends BasePacket { + + public PacketCardProductRewardNotify(int remainsDay) { + super(PacketOpcodes.CardProductRewardNotify); + + CardProductRewardNotify proto = CardProductRewardNotify.newBuilder() + .setProductId("ys_chn_blessofmoon_tier5") + .setHcoin(90) + .setRemainDays(remainsDay) + .build(); + + // Hard code Product id keep cool 😎 + + this.setData(proto); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketChangeAvatarRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketChangeAvatarRsp.java index ac222a43f..f5efe6808 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketChangeAvatarRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketChangeAvatarRsp.java @@ -1,17 +1,18 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp; +import emu.grasscutter.net.proto.RetcodeOuterClass; -public class PacketChangeAvatarRsp extends GenshinPacket { +public class PacketChangeAvatarRsp extends BasePacket { public PacketChangeAvatarRsp(long guid) { super(PacketOpcodes.ChangeAvatarRsp); ChangeAvatarRsp p = ChangeAvatarRsp.newBuilder() - .setRetcode(0) - .setCurrGuid(guid) + .setRetcode(RetcodeOuterClass.Retcode.RET_SVR_ERROR_VALUE) + .setCurGuid(guid) .build(); this.setData(p); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketChangeGameTimeRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketChangeGameTimeRsp.java index 45a485553..b0b46bde9 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketChangeGameTimeRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketChangeGameTimeRsp.java @@ -1,14 +1,14 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.World; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.game.world.World; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp; -public class PacketChangeGameTimeRsp extends GenshinPacket { +public class PacketChangeGameTimeRsp extends BasePacket { - public PacketChangeGameTimeRsp(GenshinPlayer player) { + public PacketChangeGameTimeRsp(Player player) { super(PacketOpcodes.ChangeGameTimeRsp); ChangeGameTimeRsp proto = ChangeGameTimeRsp.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketChangeMpTeamAvatarRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketChangeMpTeamAvatarRsp.java index 36d2ed248..f44c3326e 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketChangeMpTeamAvatarRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketChangeMpTeamAvatarRsp.java @@ -1,14 +1,14 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.TeamInfo; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.game.player.TeamInfo; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp; -public class PacketChangeMpTeamAvatarRsp extends GenshinPacket { +public class PacketChangeMpTeamAvatarRsp extends BasePacket { - public PacketChangeMpTeamAvatarRsp(GenshinPlayer player, TeamInfo teamInfo) { + public PacketChangeMpTeamAvatarRsp(Player player, TeamInfo teamInfo) { super(PacketOpcodes.ChangeMpTeamAvatarRsp); ChangeMpTeamAvatarRsp.Builder proto = ChangeMpTeamAvatarRsp.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketChangeTeamNameRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketChangeTeamNameRsp.java index 52c6bccbf..a965eb1bb 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketChangeTeamNameRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketChangeTeamNameRsp.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp; -public class PacketChangeTeamNameRsp extends GenshinPacket { +public class PacketChangeTeamNameRsp extends BasePacket { public PacketChangeTeamNameRsp(int teamId, String teamName) { super(PacketOpcodes.ChangeTeamNameRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketChooseCurAvatarTeamRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketChooseCurAvatarTeamRsp.java index 2af34109a..3eaecdb6d 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketChooseCurAvatarTeamRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketChooseCurAvatarTeamRsp.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp; -public class PacketChooseCurAvatarTeamRsp extends GenshinPacket { +public class PacketChooseCurAvatarTeamRsp extends BasePacket { public PacketChooseCurAvatarTeamRsp(int teamId) { super(PacketOpcodes.ChooseCurAvatarTeamRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketClientAbilityInitFinishNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketClientAbilityInitFinishNotify.java index dc676c4d1..61a682b4e 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketClientAbilityInitFinishNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketClientAbilityInitFinishNotify.java @@ -2,12 +2,12 @@ package emu.grasscutter.server.packet.send; import java.util.List; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry; import emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify; -public class PacketClientAbilityInitFinishNotify extends GenshinPacket { +public class PacketClientAbilityInitFinishNotify extends BasePacket { public PacketClientAbilityInitFinishNotify(List<AbilityInvokeEntry> entries) { super(PacketOpcodes.ClientAbilityInitFinishNotify, true); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketCombatInvocationsNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketCombatInvocationsNotify.java index c2031065f..7e9fba335 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketCombatInvocationsNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketCombatInvocationsNotify.java @@ -2,12 +2,12 @@ package emu.grasscutter.server.packet.send; import java.util.List; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify; import emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry; -public class PacketCombatInvocationsNotify extends GenshinPacket { +public class PacketCombatInvocationsNotify extends BasePacket { public PacketCombatInvocationsNotify(CombatInvokeEntry entry) { super(PacketOpcodes.CombatInvocationsNotify, true); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketCombineRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketCombineRsp.java new file mode 100644 index 000000000..f552d1ec7 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketCombineRsp.java @@ -0,0 +1,58 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.BasePacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.CombineReqOuterClass; +import emu.grasscutter.net.proto.CombineRspOuterClass; +import emu.grasscutter.net.proto.ItemParamOuterClass; +import emu.grasscutter.net.proto.RetcodeOuterClass; + +public class PacketCombineRsp extends BasePacket { + + public PacketCombineRsp() { + super(PacketOpcodes.CombineRsp); + + CombineRspOuterClass.CombineRsp proto = CombineRspOuterClass.CombineRsp.newBuilder() + .setRetcode(RetcodeOuterClass.Retcode.RET_SVR_ERROR_VALUE).build(); + + + this.setData(proto); + } + + public PacketCombineRsp(int retcode) { + super(PacketOpcodes.CombineRsp); + + CombineRspOuterClass.CombineRsp proto = CombineRspOuterClass.CombineRsp.newBuilder() + .setRetcode(retcode).build(); + + + this.setData(proto); + } + + public PacketCombineRsp(CombineReqOuterClass.CombineReq combineReq, + Iterable<ItemParamOuterClass.ItemParam> costItemList, + Iterable<ItemParamOuterClass.ItemParam> resultItemList, + Iterable<ItemParamOuterClass.ItemParam> totalRandomItemList, + Iterable<ItemParamOuterClass.ItemParam> totalReturnItemList, + Iterable<ItemParamOuterClass.ItemParam> totalExtraItemList) { + + super(PacketOpcodes.CombineRsp); + + CombineRspOuterClass.CombineRsp proto = CombineRspOuterClass.CombineRsp.newBuilder() + .setRetcode(RetcodeOuterClass.Retcode.RET_SUCC_VALUE) + .setCombineId(combineReq.getCombineId()) + .setCombineCount(combineReq.getCombineCount()) + .setAvatarGuid(combineReq.getAvatarGuid()) + .addAllCostItemList(costItemList) + .addAllResultItemList(resultItemList) + .addAllTotalRandomItemList(totalRandomItemList) + .addAllTotalReturnItemList(totalReturnItemList) + .addAllTotalExtraItemList(totalExtraItemList) + .build(); + + this.setData(proto); + } + + + +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketDealAddFriendRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketDealAddFriendRsp.java index 590506c1f..9163797f4 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketDealAddFriendRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketDealAddFriendRsp.java @@ -1,11 +1,11 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType; import emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp; -public class PacketDealAddFriendRsp extends GenshinPacket { +public class PacketDealAddFriendRsp extends BasePacket { public PacketDealAddFriendRsp(int targetUid, DealAddFriendResultType result) { super(PacketOpcodes.DealAddFriendRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketDelMailRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketDelMailRsp.java new file mode 100644 index 000000000..e8348a144 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketDelMailRsp.java @@ -0,0 +1,29 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp; + +import java.util.ArrayList; +import java.util.List; + +public class PacketDelMailRsp extends BasePacket { + + public PacketDelMailRsp(Player player, List<Integer> toDeleteIds) { + super(PacketOpcodes.DelMailRsp); + + DelMailRsp.Builder proto = DelMailRsp.newBuilder(); + + List<Integer> deletedIds = new ArrayList<>(); + + for(int mailId : toDeleteIds) { + if(player.deleteMail(mailId)) { + deletedIds.add(mailId); + } + } + + this.setData(proto.build()); + player.getSession().send(new PacketMailChangeNotify(player, null, deletedIds)); + } +} \ No newline at end of file diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketDelTeamEntityNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketDelTeamEntityNotify.java index 8e6bd10f3..23f7570ac 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketDelTeamEntityNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketDelTeamEntityNotify.java @@ -2,11 +2,11 @@ package emu.grasscutter.server.packet.send; import java.util.List; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify; -public class PacketDelTeamEntityNotify extends GenshinPacket { +public class PacketDelTeamEntityNotify extends BasePacket { public PacketDelTeamEntityNotify(int sceneId, int teamEntityId) { super(PacketOpcodes.DelTeamEntityNotify); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketDeleteFriendNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketDeleteFriendNotify.java index 7b41b14a5..d56dd639d 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketDeleteFriendNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketDeleteFriendNotify.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify; -public class PacketDeleteFriendNotify extends GenshinPacket { +public class PacketDeleteFriendNotify extends BasePacket { public PacketDeleteFriendNotify(int targetUid) { super(PacketOpcodes.DeleteFriendNotify); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketDeleteFriendRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketDeleteFriendRsp.java index bfe7c2ced..a4181feec 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketDeleteFriendRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketDeleteFriendRsp.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp; -public class PacketDeleteFriendRsp extends GenshinPacket { +public class PacketDeleteFriendRsp extends BasePacket { public PacketDeleteFriendRsp(int targetUid) { super(PacketOpcodes.DeleteFriendRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketDestroyMaterialRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketDestroyMaterialRsp.java index 76bc1ebb5..95fb95b6d 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketDestroyMaterialRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketDestroyMaterialRsp.java @@ -1,12 +1,12 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp; import it.unimi.dsi.fastutil.ints.Int2IntMap; import it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap; -public class PacketDestroyMaterialRsp extends GenshinPacket { +public class PacketDestroyMaterialRsp extends BasePacket { public PacketDestroyMaterialRsp(Int2IntOpenHashMap returnMaterialMap) { super(PacketOpcodes.DestroyMaterialRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketDoGachaRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketDoGachaRsp.java index 090fcfc23..9144c0d8e 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketDoGachaRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketDoGachaRsp.java @@ -3,12 +3,13 @@ package emu.grasscutter.server.packet.send; import java.util.List; import emu.grasscutter.game.gacha.GachaBanner; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp; import emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem; +import emu.grasscutter.net.proto.RetcodeOuterClass; -public class PacketDoGachaRsp extends GenshinPacket { +public class PacketDoGachaRsp extends BasePacket { public PacketDoGachaRsp(GachaBanner banner, List<GachaItem> list) { super(PacketOpcodes.DoGachaRsp); @@ -33,7 +34,7 @@ public class PacketDoGachaRsp extends GenshinPacket { super(PacketOpcodes.DoGachaRsp); DoGachaRsp p = DoGachaRsp.newBuilder() - .setRetcode(1) + .setRetcode(RetcodeOuterClass.Retcode.RET_SVR_ERROR_VALUE) .build(); this.setData(p); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketEnterSceneDoneRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketEnterSceneDoneRsp.java index 6f1314a25..c32f6a922 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketEnterSceneDoneRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketEnterSceneDoneRsp.java @@ -1,13 +1,13 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp; -public class PacketEnterSceneDoneRsp extends GenshinPacket { +public class PacketEnterSceneDoneRsp extends BasePacket { - public PacketEnterSceneDoneRsp(GenshinPlayer player) { + public PacketEnterSceneDoneRsp(Player player) { super(PacketOpcodes.EnterSceneDoneRsp); EnterSceneDoneRsp p = EnterSceneDoneRsp.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketEnterScenePeerNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketEnterScenePeerNotify.java index 07c2bbf27..c41c40bdd 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketEnterScenePeerNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketEnterScenePeerNotify.java @@ -1,13 +1,13 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify; -public class PacketEnterScenePeerNotify extends GenshinPacket { +public class PacketEnterScenePeerNotify extends BasePacket { - public PacketEnterScenePeerNotify(GenshinPlayer player) { + public PacketEnterScenePeerNotify(Player player) { super(PacketOpcodes.EnterScenePeerNotify); EnterScenePeerNotify proto = EnterScenePeerNotify.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketEnterSceneReadyRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketEnterSceneReadyRsp.java index c426bc728..5dfbc3407 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketEnterSceneReadyRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketEnterSceneReadyRsp.java @@ -1,13 +1,13 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp; -public class PacketEnterSceneReadyRsp extends GenshinPacket { +public class PacketEnterSceneReadyRsp extends BasePacket { - public PacketEnterSceneReadyRsp(GenshinPlayer player) { + public PacketEnterSceneReadyRsp(Player player) { super(PacketOpcodes.EnterSceneReadyRsp, 11); EnterSceneReadyRsp p = EnterSceneReadyRsp.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketEnterWorldAreaRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketEnterWorldAreaRsp.java index 0d907f318..53e57b78a 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketEnterWorldAreaRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketEnterWorldAreaRsp.java @@ -1,11 +1,11 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq; import emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp; -public class PacketEnterWorldAreaRsp extends GenshinPacket { +public class PacketEnterWorldAreaRsp extends BasePacket { public PacketEnterWorldAreaRsp(int clientSequence, EnterWorldAreaReq enterWorld) { super(PacketOpcodes.EnterWorldAreaRsp, clientSequence); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketEntityAiSyncNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketEntityAiSyncNotify.java index 36e4d813e..a3e300c25 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketEntityAiSyncNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketEntityAiSyncNotify.java @@ -1,11 +1,11 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo; import emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify; -public class PacketEntityAiSyncNotify extends GenshinPacket { +public class PacketEntityAiSyncNotify extends BasePacket { public PacketEntityAiSyncNotify(EntityAiSyncNotify notify) { super(PacketOpcodes.EntityAiSyncNotify, true); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketEntityFightPropUpdateNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketEntityFightPropUpdateNotify.java index 8d76891ef..85c207dde 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketEntityFightPropUpdateNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketEntityFightPropUpdateNotify.java @@ -1,14 +1,14 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.entity.GenshinEntity; +import emu.grasscutter.game.entity.GameEntity; import emu.grasscutter.game.props.FightProperty; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify; -public class PacketEntityFightPropUpdateNotify extends GenshinPacket { +public class PacketEntityFightPropUpdateNotify extends BasePacket { - public PacketEntityFightPropUpdateNotify(GenshinEntity entity, FightProperty prop) { + public PacketEntityFightPropUpdateNotify(GameEntity entity, FightProperty prop) { super(PacketOpcodes.EntityFightPropUpdateNotify); EntityFightPropUpdateNotify proto = EntityFightPropUpdateNotify.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketEvtAvatarSitDownNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketEvtAvatarSitDownNotify.java index 6a051024a..f85bbfbc3 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketEvtAvatarSitDownNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketEvtAvatarSitDownNotify.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify; -public class PacketEvtAvatarSitDownNotify extends GenshinPacket { +public class PacketEvtAvatarSitDownNotify extends BasePacket { public PacketEvtAvatarSitDownNotify(EvtAvatarSitDownNotify notify) { super(PacketOpcodes.EvtAvatarSitDownNotify); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGadgetInteractRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGadgetInteractRsp.java index 3cb2661de..d15cca8a8 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketGadgetInteractRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGadgetInteractRsp.java @@ -1,12 +1,13 @@ package emu.grasscutter.server.packet.send; import emu.grasscutter.game.entity.EntityGadget; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp; import emu.grasscutter.net.proto.InteractTypeOuterClass.InteractType; +import emu.grasscutter.net.proto.RetcodeOuterClass; -public class PacketGadgetInteractRsp extends GenshinPacket { +public class PacketGadgetInteractRsp extends BasePacket { public PacketGadgetInteractRsp(EntityGadget gadget, InteractType interact) { super(PacketOpcodes.GadgetInteractRsp); @@ -23,7 +24,7 @@ public class PacketGadgetInteractRsp extends GenshinPacket { super(PacketOpcodes.GadgetInteractRsp); GadgetInteractRsp proto = GadgetInteractRsp.newBuilder() - .setRetcode(1) + .setRetcode(RetcodeOuterClass.Retcode.RET_SVR_ERROR_VALUE) .build(); this.setData(proto); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetActivityInfoRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetActivityInfoRsp.java index 8b8a5cffa..1808391c6 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketGetActivityInfoRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetActivityInfoRsp.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp; -public class PacketGetActivityInfoRsp extends GenshinPacket { +public class PacketGetActivityInfoRsp extends BasePacket { public PacketGetActivityInfoRsp() { super(PacketOpcodes.GetActivityInfoRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetAllMailRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetAllMailRsp.java new file mode 100644 index 000000000..8c8fb4b07 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetAllMailRsp.java @@ -0,0 +1,95 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.Grasscutter; +import emu.grasscutter.game.mail.Mail; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.GetAllMailRspOuterClass.GetAllMailRsp; +import emu.grasscutter.net.proto.ItemParamOuterClass; +import emu.grasscutter.net.proto.MailDataOuterClass; +import emu.grasscutter.net.proto.MailDataOuterClass.MailData; +import emu.grasscutter.net.proto.MailItemOuterClass; +import emu.grasscutter.net.proto.MailTextContentOuterClass.MailTextContent; + +import java.time.Instant; +import java.util.ArrayList; +import java.util.Base64; +import java.util.List; + +public class PacketGetAllMailRsp extends BasePacket { + + public PacketGetAllMailRsp(Player player, boolean isGiftMail) { + super(PacketOpcodes.GetAllMailRsp); + + if (isGiftMail) { + // TODO: Gift Mail + // Make sure to send the stupid empty packet + Base64.Decoder decoder = Base64.getDecoder(); + byte[] rsp = decoder.decode("IAE="); + try { + GetAllMailRsp var = GetAllMailRsp.parseFrom(rsp); + this.setData(var.toBuilder().build()); + } catch (Exception e) { + } + + } else { + if (player.getAllMail().size() != 0) { // Make sure the player has mail + GetAllMailRsp.Builder proto = GetAllMailRsp.newBuilder(); + List<MailData> mailDataList = new ArrayList<MailData>(); + + for (Mail message : player.getAllMail()) { + + if(message.stateValue == 1) { // Make sure it isn't a gift + if (message.expireTime > (int) Instant.now().getEpochSecond()) { // Make sure the message isn't expired (The game won't show expired mail, but I don't want to send unnecessary information). + if(mailDataList.size() <= 1000) { // Make sure that there isn't over 1000 messages in the mailbox. (idk what will happen if there is but the game probably won't like it.) + MailTextContent.Builder mailTextContent = MailTextContent.newBuilder(); + mailTextContent.setTitle(message.mailContent.title); + mailTextContent.setContent(message.mailContent.content); + mailTextContent.setSender(message.mailContent.sender); + + List<MailItemOuterClass.MailItem> mailItems = new ArrayList<>(); + + for (Mail.MailItem item : message.itemList) { + MailItemOuterClass.MailItem.Builder mailItem = MailItemOuterClass.MailItem.newBuilder(); + ItemParamOuterClass.ItemParam.Builder itemParam = ItemParamOuterClass.ItemParam.newBuilder(); + itemParam.setItemId(item.itemId); + itemParam.setCount(item.itemCount); + mailItem.setItemParam(itemParam.build()); + + mailItems.add(mailItem.build()); + } + + MailDataOuterClass.MailData.Builder mailData = MailDataOuterClass.MailData.newBuilder(); + mailData.setMailId(player.getMailId(message)); + mailData.setMailTextContent(mailTextContent.build()); + mailData.addAllItemList(mailItems); + mailData.setSendTime((int) message.sendTime); + mailData.setExpireTime((int) message.expireTime); + mailData.setImportance(message.importance); + mailData.setIsRead(message.isRead); + mailData.setIsAttachmentGot(message.isAttachmentGot); + mailData.setStateValue(1); + + mailDataList.add(mailData.build()); + } + } + } + } + + proto.addAllMailList(mailDataList); + proto.setIsTruncated(mailDataList.size() <= 1000 ? false : true); // When enabled this will send a notification to the user telling them their inbox is full and they should delete old messages when opening the mailbox. + + this.setData(proto.build()); + } else { + // Make sure to send the stupid empty packet + Base64.Decoder decoder = Base64.getDecoder(); + byte[] rsp = decoder.decode("IAE="); + try { + GetAllMailRsp var = GetAllMailRsp.parseFrom(rsp); + this.setData(var.toBuilder().build()); + } catch (Exception e) {} + } + } + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetAllUnlockNameCardRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetAllUnlockNameCardRsp.java index 0ac6516de..d1f9393cd 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketGetAllUnlockNameCardRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetAllUnlockNameCardRsp.java @@ -1,13 +1,13 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp; -public class PacketGetAllUnlockNameCardRsp extends GenshinPacket { +public class PacketGetAllUnlockNameCardRsp extends BasePacket { - public PacketGetAllUnlockNameCardRsp(GenshinPlayer player) { + public PacketGetAllUnlockNameCardRsp(Player player) { super(PacketOpcodes.GetAllUnlockNameCardRsp); GetAllUnlockNameCardRsp proto = GetAllUnlockNameCardRsp.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetAuthkeyRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetAuthkeyRsp.java index da250fec8..0e798cd59 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketGetAuthkeyRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetAuthkeyRsp.java @@ -1,15 +1,16 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp; +import emu.grasscutter.net.proto.RetcodeOuterClass; -public class PacketGetAuthkeyRsp extends GenshinPacket { +public class PacketGetAuthkeyRsp extends BasePacket { public PacketGetAuthkeyRsp() { super(PacketOpcodes.GetAuthkeyRsp); - GetAuthkeyRsp proto = GetAuthkeyRsp.newBuilder().setRetcode(1).build(); + GetAuthkeyRsp proto = GetAuthkeyRsp.newBuilder().setRetcode(RetcodeOuterClass.Retcode.RET_SVR_ERROR_VALUE).build(); this.setData(proto); } diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetGachaInfoRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetGachaInfoRsp.java index 6772516a7..89af334a5 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketGetGachaInfoRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetGachaInfoRsp.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; import emu.grasscutter.game.gacha.GachaManager; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; -public class PacketGetGachaInfoRsp extends GenshinPacket { +public class PacketGetGachaInfoRsp extends BasePacket { public PacketGetGachaInfoRsp(GachaManager manager) { super(PacketOpcodes.GetGachaInfoRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetMailItemRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetMailItemRsp.java new file mode 100644 index 000000000..37f753c17 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetMailItemRsp.java @@ -0,0 +1,72 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.data.GameData; +import emu.grasscutter.game.inventory.GameItem; +import emu.grasscutter.game.mail.Mail; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.game.props.ActionReason; +import emu.grasscutter.net.packet.BasePacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.EquipParamOuterClass; +import emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp; + +import java.util.ArrayList; +import java.util.List; +import java.util.stream.Collectors; + +public class PacketGetMailItemRsp extends BasePacket { + + public PacketGetMailItemRsp(Player player, List<Integer> mailList) { + super(PacketOpcodes.GetMailItemRsp); + + List<Mail> claimedMessages = new ArrayList<>(); + List<EquipParamOuterClass.EquipParam> claimedItems = new ArrayList<>(); + + GetMailItemRsp.Builder proto = GetMailItemRsp.newBuilder(); + + for (int mailId : mailList) { + Mail message = player.getMail(mailId); + + for(Mail.MailItem mailItem : message.itemList) { + EquipParamOuterClass.EquipParam.Builder item = EquipParamOuterClass.EquipParam.newBuilder(); + int promoteLevel = 0; + if (mailItem.itemLevel > 20) { // 20/40 + promoteLevel = 1; + } else if (mailItem.itemLevel > 40) { // 40/50 + promoteLevel = 2; + } else if (mailItem.itemLevel > 50) { // 50/60 + promoteLevel = 3; + } else if (mailItem.itemLevel > 60) { // 60/70 + promoteLevel = 4; + } else if (mailItem.itemLevel > 70) { // 70/80 + promoteLevel = 5; + } else if (mailItem.itemLevel > 80) { // 80/90 + promoteLevel = 6; + } + + item.setItemId(mailItem.itemId); + item.setItemNum(mailItem.itemCount); + item.setItemLevel(mailItem.itemLevel); + item.setPromoteLevel(promoteLevel); + claimedItems.add(item.build()); + + GameItem gameItem = new GameItem(GameData.getItemDataMap().get(mailItem.itemId)); + gameItem.setCount(mailItem.itemCount); + gameItem.setLevel(mailItem.itemLevel); + gameItem.setPromoteLevel(promoteLevel); + player.getInventory().addItem(gameItem, ActionReason.MailAttachment); + } + + message.isAttachmentGot = true; + claimedMessages.add(message); + + player.replaceMailByIndex(mailId, message); + } + + proto.addAllMailIdList(claimedMessages.stream().map(message -> player.getMailId(message)).collect(Collectors.toList())); + proto.addAllItemList(claimedItems); + + this.setData(proto.build()); + player.getSession().send(new PacketMailChangeNotify(player, claimedMessages)); // For some reason you have to also send the MailChangeNotify packet + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerAskFriendListRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerAskFriendListRsp.java index e0aa0601f..7fc37e280 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerAskFriendListRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerAskFriendListRsp.java @@ -1,14 +1,14 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; import emu.grasscutter.game.friends.Friendship; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp; -public class PacketGetPlayerAskFriendListRsp extends GenshinPacket { +public class PacketGetPlayerAskFriendListRsp extends BasePacket { - public PacketGetPlayerAskFriendListRsp(GenshinPlayer player) { + public PacketGetPlayerAskFriendListRsp(Player player) { super(PacketOpcodes.GetPlayerAskFriendListRsp); GetPlayerAskFriendListRsp.Builder proto = GetPlayerAskFriendListRsp.newBuilder(); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerFriendListRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerFriendListRsp.java index 4d22f9603..b2628e36d 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerFriendListRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerFriendListRsp.java @@ -1,33 +1,34 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.GenshinConstants; -import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.GameConstants; import emu.grasscutter.game.friends.Friendship; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief; import emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState; import emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFriendListRsp; import emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage; +import emu.grasscutter.net.proto.PlatformTypeOuterClass; -public class PacketGetPlayerFriendListRsp extends GenshinPacket { +public class PacketGetPlayerFriendListRsp extends BasePacket { - public PacketGetPlayerFriendListRsp(GenshinPlayer player) { + public PacketGetPlayerFriendListRsp(Player player) { super(PacketOpcodes.GetPlayerFriendListRsp); FriendBrief serverFriend = FriendBrief.newBuilder() - .setUid(GenshinConstants.SERVER_CONSOLE_UID) + .setUid(GameConstants.SERVER_CONSOLE_UID) .setNickname("Server") .setLevel(1) - .setAvatar(HeadImage.newBuilder().setAvatarId(GenshinConstants.MAIN_CHARACTER_FEMALE)) + .setAvatarId(HeadImage.newBuilder().setAvatarId(GameConstants.MAIN_CHARACTER_FEMALE).getAvatarId()) .setWorldLevel(0) .setSignature("") .setLastActiveTime((int) (System.currentTimeMillis() / 1000f)) .setNameCardId(210001) .setOnlineState(FriendOnlineState.FRIEND_ONLINE) .setParam(1) - .setUnk1(1) - .setUnk2(3) + .setIsGameSource(true) + .setPlatformType(PlatformTypeOuterClass.PlatformType.PC) .build(); GetPlayerFriendListRsp.Builder proto = GetPlayerFriendListRsp.newBuilder().addFriendList(serverFriend); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerSocialDetailRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerSocialDetailRsp.java index 5529d7227..6c36e1729 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerSocialDetailRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerSocialDetailRsp.java @@ -1,11 +1,12 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp; +import emu.grasscutter.net.proto.RetcodeOuterClass; import emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail; -public class PacketGetPlayerSocialDetailRsp extends GenshinPacket { +public class PacketGetPlayerSocialDetailRsp extends BasePacket { public PacketGetPlayerSocialDetailRsp(SocialDetail.Builder detail) { super(PacketOpcodes.GetPlayerSocialDetailRsp); @@ -15,7 +16,7 @@ public class PacketGetPlayerSocialDetailRsp extends GenshinPacket { if (detail != null) { proto.setDetailData(detail); } else { - proto.setRetcode(1); + proto.setRetcode(RetcodeOuterClass.Retcode.RET_SVR_ERROR_VALUE); } this.setData(proto); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerTokenRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerTokenRsp.java index 00f512ea7..3a5e0f08c 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerTokenRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerTokenRsp.java @@ -2,13 +2,13 @@ package emu.grasscutter.server.packet.send; import com.google.protobuf.ByteString; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp; import emu.grasscutter.server.game.GameSession; import emu.grasscutter.utils.Crypto; -public class PacketGetPlayerTokenRsp extends GenshinPacket { +public class PacketGetPlayerTokenRsp extends BasePacket { public PacketGetPlayerTokenRsp(GameSession session, boolean doesPlayerExist) { super(PacketOpcodes.GetPlayerTokenRsp, true); @@ -16,18 +16,18 @@ public class PacketGetPlayerTokenRsp extends GenshinPacket { this.setUseDispatchKey(true); GetPlayerTokenRsp p = GetPlayerTokenRsp.newBuilder() - .setPlayerUid(session.getAccount().getPlayerUid()) - .setAccountToken(session.getAccount().getToken()) + .setUid(session.getAccount().getPlayerUid()) + .setToken(session.getAccount().getToken()) .setAccountType(1) .setIsProficientPlayer(doesPlayerExist) // Not sure where this goes - .setSecretKey(Crypto.ENCRYPT_SEED) - .setSecretKeyBuffer(ByteString.copyFrom(Crypto.ENCRYPT_SEED_BUFFER)) + .setSecretKeySeed(Crypto.ENCRYPT_SEED) + .setSecurityCmdBuffer(ByteString.copyFrom(Crypto.ENCRYPT_SEED_BUFFER)) .setPlatformType(3) .setChannelId(1) .setCountryCode("US") - .setUnk1("c25-314dd05b0b5f") - .setUnk3(3) - .setClientIp(session.getAddress().getAddress().getHostAddress()) + .setClientVersionRandomKey("c25-314dd05b0b5f") + .setRegPlatform(3) + .setClientIpStr(session.getAddress().getAddress().getHostAddress()) .build(); this.setData(p.toByteArray()); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetSceneAreaRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetSceneAreaRsp.java index e0f6c5a03..280b62623 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketGetSceneAreaRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetSceneAreaRsp.java @@ -3,12 +3,12 @@ package emu.grasscutter.server.packet.send; import java.util.Arrays; import java.util.stream.Collectors; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo; import emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp; -public class PacketGetSceneAreaRsp extends GenshinPacket { +public class PacketGetSceneAreaRsp extends BasePacket { public PacketGetSceneAreaRsp(int sceneId) { super(PacketOpcodes.GetSceneAreaRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetScenePointRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetScenePointRsp.java index 73807bed7..85b7ab02f 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketGetScenePointRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetScenePointRsp.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp; -public class PacketGetScenePointRsp extends GenshinPacket { +public class PacketGetScenePointRsp extends BasePacket { public PacketGetScenePointRsp(int sceneId) { super(PacketOpcodes.GetScenePointRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetShopRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetShopRsp.java index d80d445d9..64d415763 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketGetShopRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetShopRsp.java @@ -1,11 +1,11 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp; import emu.grasscutter.net.proto.ShopOuterClass.Shop; -public class PacketGetShopRsp extends GenshinPacket { +public class PacketGetShopRsp extends BasePacket { public PacketGetShopRsp(int shopType) { super(PacketOpcodes.GetShopRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetShopmallDataRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetShopmallDataRsp.java index 38b44b5b6..17f682406 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketGetShopmallDataRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetShopmallDataRsp.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp; -public class PacketGetShopmallDataRsp extends GenshinPacket { +public class PacketGetShopmallDataRsp extends BasePacket { public PacketGetShopmallDataRsp() { super(PacketOpcodes.GetShopmallDataRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetWorldMpInfoRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetWorldMpInfoRsp.java index 1b06c2cfe..7ab3c88e4 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketGetWorldMpInfoRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetWorldMpInfoRsp.java @@ -1,11 +1,11 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.World; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.world.World; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp; -public class PacketGetWorldMpInfoRsp extends GenshinPacket { +public class PacketGetWorldMpInfoRsp extends BasePacket { public PacketGetWorldMpInfoRsp(World world) { super(PacketOpcodes.GetWorldMpInfoRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketH5ActivityIdsNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketH5ActivityIdsNotify.java index 9ce59137b..128a15133 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketH5ActivityIdsNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketH5ActivityIdsNotify.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify; -public class PacketH5ActivityIdsNotify extends GenshinPacket { +public class PacketH5ActivityIdsNotify extends BasePacket { public PacketH5ActivityIdsNotify() { super(PacketOpcodes.H5ActivityIdsNotify); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketHostPlayerNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketHostPlayerNotify.java index 9a43124e4..48d0f7b9e 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketHostPlayerNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketHostPlayerNotify.java @@ -1,11 +1,11 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.World; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.world.World; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify; -public class PacketHostPlayerNotify extends GenshinPacket { +public class PacketHostPlayerNotify extends BasePacket { public PacketHostPlayerNotify(World world) { super(PacketOpcodes.HostPlayerNotify); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketItemAddHintNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketItemAddHintNotify.java index 598b9a0f6..7b0275c50 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketItemAddHintNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketItemAddHintNotify.java @@ -1,16 +1,17 @@ package emu.grasscutter.server.packet.send; +import java.util.Collection; import java.util.List; -import emu.grasscutter.game.inventory.GenshinItem; +import emu.grasscutter.game.inventory.GameItem; import emu.grasscutter.game.props.ActionReason; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify; -public class PacketItemAddHintNotify extends GenshinPacket { +public class PacketItemAddHintNotify extends BasePacket { - public PacketItemAddHintNotify(GenshinItem item, ActionReason reason) { + public PacketItemAddHintNotify(GameItem item, ActionReason reason) { super(PacketOpcodes.ItemAddHintNotify); ItemAddHintNotify proto = ItemAddHintNotify.newBuilder() @@ -21,13 +22,13 @@ public class PacketItemAddHintNotify extends GenshinPacket { this.setData(proto); } - public PacketItemAddHintNotify(List<GenshinItem> items, ActionReason reason) { + public PacketItemAddHintNotify(Collection<GameItem> items, ActionReason reason) { super(PacketOpcodes.ItemAddHintNotify); ItemAddHintNotify.Builder proto = ItemAddHintNotify.newBuilder() .setReason(reason.getValue()); - for (GenshinItem item : items) { + for (GameItem item : items) { proto.addItemList(item.toItemHintProto()); } diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketLifeStateChangeNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketLifeStateChangeNotify.java index 1f26717a3..c70d117d7 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketLifeStateChangeNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketLifeStateChangeNotify.java @@ -1,13 +1,13 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.entity.GenshinEntity; +import emu.grasscutter.game.entity.GameEntity; import emu.grasscutter.game.props.LifeState; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify; -public class PacketLifeStateChangeNotify extends GenshinPacket { - public PacketLifeStateChangeNotify(GenshinEntity attacker, GenshinEntity target, LifeState lifeState) { +public class PacketLifeStateChangeNotify extends BasePacket { + public PacketLifeStateChangeNotify(GameEntity attacker, GameEntity target, LifeState lifeState) { super(PacketOpcodes.LifeStateChangeNotify); LifeStateChangeNotify proto = LifeStateChangeNotify.newBuilder() @@ -18,7 +18,7 @@ public class PacketLifeStateChangeNotify extends GenshinPacket { this.setData(proto); } - public PacketLifeStateChangeNotify(int attackerId, GenshinEntity target, LifeState lifeState) { + public PacketLifeStateChangeNotify(int attackerId, GameEntity target, LifeState lifeState) { super(PacketOpcodes.LifeStateChangeNotify); LifeStateChangeNotify proto = LifeStateChangeNotify.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketMailChangeNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketMailChangeNotify.java new file mode 100644 index 000000000..c4b2b229e --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketMailChangeNotify.java @@ -0,0 +1,69 @@ +package emu.grasscutter.server.packet.send; + + +import emu.grasscutter.Grasscutter; +import emu.grasscutter.game.mail.Mail; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.*; + +import java.util.ArrayList; +import java.util.List; + +public class PacketMailChangeNotify extends BasePacket { + + public PacketMailChangeNotify(Player player, Mail message) { + this (player, new ArrayList<Mail>(){{add(message);}}); + } + + public PacketMailChangeNotify(Player player, List<Mail> mailList) { + this(player, mailList, null); + } + + public PacketMailChangeNotify(Player player, List<Mail> mailList, List<Integer> delMailIdList) { + super(PacketOpcodes.MailChangeNotify); + + MailChangeNotifyOuterClass.MailChangeNotify.Builder proto = MailChangeNotifyOuterClass.MailChangeNotify.newBuilder(); + + if (mailList != null) { + for (Mail message : mailList) { + MailTextContentOuterClass.MailTextContent.Builder mailTextContent = MailTextContentOuterClass.MailTextContent.newBuilder(); + mailTextContent.setTitle(message.mailContent.title); + mailTextContent.setContent(message.mailContent.content); + mailTextContent.setSender(message.mailContent.sender); + + List<MailItemOuterClass.MailItem> mailItems = new ArrayList<MailItemOuterClass.MailItem>(); + + for (Mail.MailItem item : message.itemList) { + MailItemOuterClass.MailItem.Builder mailItem = MailItemOuterClass.MailItem.newBuilder(); + ItemParamOuterClass.ItemParam.Builder itemParam = ItemParamOuterClass.ItemParam.newBuilder(); + itemParam.setItemId(item.itemId); + itemParam.setCount(item.itemCount); + mailItem.setItemParam(itemParam.build()); + + mailItems.add(mailItem.build()); + } + + MailDataOuterClass.MailData.Builder mailData = MailDataOuterClass.MailData.newBuilder(); + mailData.setMailId(player.getMailId(message)); + mailData.setMailTextContent(mailTextContent.build()); + mailData.addAllItemList(mailItems); + mailData.setSendTime((int) message.sendTime); + mailData.setExpireTime((int) message.expireTime); + mailData.setImportance(message.importance); + mailData.setIsRead(message.isRead); + mailData.setIsAttachmentGot(message.isAttachmentGot); + mailData.setStateValue(message.stateValue); + + proto.addMailList(mailData.build()); + } + } + + if(delMailIdList != null) { + proto.addAllDelMailIdList(delMailIdList); + } + + this.setData(proto.build()); + } +} \ No newline at end of file diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketNpcTalkRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketNpcTalkRsp.java index b447a19eb..f3720a60e 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketNpcTalkRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketNpcTalkRsp.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp; -public class PacketNpcTalkRsp extends GenshinPacket { +public class PacketNpcTalkRsp extends BasePacket { public PacketNpcTalkRsp(int npcEntityId, int curTalkId, int entityId) { super(PacketOpcodes.NpcTalkRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketOpenStateUpdateNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketOpenStateUpdateNotify.java index c0b5fd38f..df74264ca 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketOpenStateUpdateNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketOpenStateUpdateNotify.java @@ -1,11 +1,11 @@ package emu.grasscutter.server.packet.send; import emu.grasscutter.game.props.OpenState; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify; -public class PacketOpenStateUpdateNotify extends GenshinPacket { +public class PacketOpenStateUpdateNotify extends BasePacket { public PacketOpenStateUpdateNotify() { super(PacketOpcodes.OpenStateUpdateNotify); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPathfindingEnterSceneRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPathfindingEnterSceneRsp.java index 029b0fc7e..16caca296 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPathfindingEnterSceneRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPathfindingEnterSceneRsp.java @@ -1,9 +1,9 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; -public class PacketPathfindingEnterSceneRsp extends GenshinPacket { +public class PacketPathfindingEnterSceneRsp extends BasePacket { public PacketPathfindingEnterSceneRsp(int clientSequence) { super(PacketOpcodes.PathfindingEnterSceneRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPingRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPingRsp.java index 47151bf06..735fe855b 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPingRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPingRsp.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.PingRspOuterClass.PingRsp; -public class PacketPingRsp extends GenshinPacket { +public class PacketPingRsp extends BasePacket { public PacketPingRsp(int clientSeq, int time) { super(PacketOpcodes.PingRsp, clientSeq); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpNotify.java index 7d064aa9c..bbf0c03c6 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpNotify.java @@ -1,13 +1,13 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify; -public class PacketPlayerApplyEnterMpNotify extends GenshinPacket { +public class PacketPlayerApplyEnterMpNotify extends BasePacket { - public PacketPlayerApplyEnterMpNotify(GenshinPlayer srcPlayer) { + public PacketPlayerApplyEnterMpNotify(Player srcPlayer) { super(PacketOpcodes.PlayerApplyEnterMpNotify); PlayerApplyEnterMpNotify proto = PlayerApplyEnterMpNotify.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpResultNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpResultNotify.java index d2b5be7f5..b92f8a3b3 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpResultNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpResultNotify.java @@ -1,14 +1,15 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.PlayerApplyEnterMpReasonOuterClass.PlayerApplyEnterMpReason; +import emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass; import emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify; -public class PacketPlayerApplyEnterMpResultNotify extends GenshinPacket { +public class PacketPlayerApplyEnterMpResultNotify extends BasePacket { - public PacketPlayerApplyEnterMpResultNotify(GenshinPlayer target, boolean isAgreed, PlayerApplyEnterMpReason reason) { + public PacketPlayerApplyEnterMpResultNotify(Player target, boolean isAgreed, PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify.Reason reason) { super(PacketOpcodes.PlayerApplyEnterMpResultNotify); PlayerApplyEnterMpResultNotify proto = PlayerApplyEnterMpResultNotify.newBuilder() @@ -21,7 +22,7 @@ public class PacketPlayerApplyEnterMpResultNotify extends GenshinPacket { this.setData(proto); } - public PacketPlayerApplyEnterMpResultNotify(int targetId, String targetName, boolean isAgreed, PlayerApplyEnterMpReason reason) { + public PacketPlayerApplyEnterMpResultNotify(int targetId, String targetName, boolean isAgreed, PlayerApplyEnterMpResultNotify.Reason reason) { super(PacketOpcodes.PlayerApplyEnterMpResultNotify); PlayerApplyEnterMpResultNotify proto = PlayerApplyEnterMpResultNotify.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpResultRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpResultRsp.java index 7fa4baa55..94fcb3150 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpResultRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpResultRsp.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp; -public class PacketPlayerApplyEnterMpResultRsp extends GenshinPacket { +public class PacketPlayerApplyEnterMpResultRsp extends BasePacket { public PacketPlayerApplyEnterMpResultRsp(int applyUid, boolean isAgreed) { super(PacketOpcodes.PlayerApplyEnterMpResultRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpRsp.java index 71174371d..1dce6f8b5 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpRsp.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp; -public class PacketPlayerApplyEnterMpRsp extends GenshinPacket { +public class PacketPlayerApplyEnterMpRsp extends BasePacket { public PacketPlayerApplyEnterMpRsp(int targetUid) { super(PacketOpcodes.PlayerApplyEnterMpRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerChatNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerChatNotify.java index 287292ee4..16ce6a6f7 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerChatNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerChatNotify.java @@ -1,15 +1,15 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo; import emu.grasscutter.net.proto.PlayerChatNotifyOuterClass.PlayerChatNotify; import emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint; -public class PacketPlayerChatNotify extends GenshinPacket { +public class PacketPlayerChatNotify extends BasePacket { - public PacketPlayerChatNotify(GenshinPlayer sender, int channelId, String message) { + public PacketPlayerChatNotify(Player sender, int channelId, String message) { super(PacketOpcodes.PlayerChatNotify); ChatInfo info = ChatInfo.newBuilder() @@ -26,7 +26,7 @@ public class PacketPlayerChatNotify extends GenshinPacket { this.setData(proto); } - public PacketPlayerChatNotify(GenshinPlayer sender, int channelId, int emote) { + public PacketPlayerChatNotify(Player sender, int channelId, int emote) { super(PacketOpcodes.PlayerChatNotify); ChatInfo info = ChatInfo.newBuilder() @@ -43,7 +43,7 @@ public class PacketPlayerChatNotify extends GenshinPacket { this.setData(proto); } - public PacketPlayerChatNotify(GenshinPlayer sender, int channelId, SystemHint systemHint) { + public PacketPlayerChatNotify(Player sender, int channelId, ChatInfo.SystemHint systemHint) { super(PacketOpcodes.PlayerChatNotify); ChatInfo info = ChatInfo.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerChatRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerChatRsp.java index 83b51a2a2..9dbda6c88 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerChatRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerChatRsp.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp; -public class PacketPlayerChatRsp extends GenshinPacket { +public class PacketPlayerChatRsp extends BasePacket { public PacketPlayerChatRsp() { super(PacketOpcodes.PlayerChatRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerDataNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerDataNotify.java index 51b043ab3..81da25821 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerDataNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerDataNotify.java @@ -1,19 +1,19 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.PlayerDataNotifyOuterClass.PlayerDataNotify; import emu.grasscutter.net.proto.PropValueOuterClass.PropValue; -public class PacketPlayerDataNotify extends GenshinPacket { +public class PacketPlayerDataNotify extends BasePacket { - public PacketPlayerDataNotify(GenshinPlayer player) { + public PacketPlayerDataNotify(Player player) { super(PacketOpcodes.PlayerDataNotify, 2); PlayerDataNotify.Builder p = PlayerDataNotify.newBuilder() .setNickName(player.getNickname()) - .setClientTime(System.currentTimeMillis()) + .setServerTime(System.currentTimeMillis()) .setIsFirstLoginToday(true) .setRegionId(player.getRegionId()); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerEnterSceneInfoNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerEnterSceneInfoNotify.java index e47021a05..c0bc5abe1 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerEnterSceneInfoNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerEnterSceneInfoNotify.java @@ -1,19 +1,20 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; import emu.grasscutter.game.entity.EntityAvatar; -import emu.grasscutter.game.inventory.GenshinItem; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.inventory.GameItem; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AbilityControlBlockOuterClass; import emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo; import emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo; import emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo; import emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify; import emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo; -public class PacketPlayerEnterSceneInfoNotify extends GenshinPacket { +public class PacketPlayerEnterSceneInfoNotify extends BasePacket { - public PacketPlayerEnterSceneInfoNotify(GenshinPlayer player) { + public PacketPlayerEnterSceneInfoNotify(Player player) { super(PacketOpcodes.PlayerEnterSceneInfoNotify); AbilitySyncStateInfo empty = AbilitySyncStateInfo.newBuilder().build(); @@ -26,7 +27,7 @@ public class PacketPlayerEnterSceneInfoNotify extends GenshinPacket { TeamEnterSceneInfo.newBuilder() .setTeamEntityId(player.getTeamManager().getEntityId()) // 150995833 .setTeamAbilityInfo(empty) - .setUnk(empty) + .setAbilityControlBlock(AbilityControlBlockOuterClass.AbilityControlBlock.newBuilder().build()) ); proto.setMpLevelEntityInfo( MPLevelEntityInfo.newBuilder() @@ -36,7 +37,7 @@ public class PacketPlayerEnterSceneInfoNotify extends GenshinPacket { ); for (EntityAvatar avatarEntity : player.getTeamManager().getActiveTeam()) { - GenshinItem weapon = avatarEntity.getAvatar().getWeapon(); + GameItem weapon = avatarEntity.getAvatar().getWeapon(); long weaponGuid = weapon != null ? weapon.getGuid() : 0; AvatarEnterSceneInfo avatarInfo = AvatarEnterSceneInfo.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerEnterSceneNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerEnterSceneNotify.java index d66575273..42fe3a12f 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerEnterSceneNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerEnterSceneNotify.java @@ -1,19 +1,19 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.GenshinPlayer.SceneLoadState; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.game.player.Player.SceneLoadState; import emu.grasscutter.game.props.EnterReason; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.EnterTypeOuterClass.EnterType; import emu.grasscutter.net.proto.PlayerEnterSceneNotifyOuterClass.PlayerEnterSceneNotify; import emu.grasscutter.utils.Position; import emu.grasscutter.utils.Utils; -public class PacketPlayerEnterSceneNotify extends GenshinPacket { +public class PacketPlayerEnterSceneNotify extends BasePacket { // Login - public PacketPlayerEnterSceneNotify(GenshinPlayer player) { + public PacketPlayerEnterSceneNotify(Player player) { super(PacketOpcodes.PlayerEnterSceneNotify); player.setSceneLoadState(SceneLoadState.LOADING); @@ -23,25 +23,25 @@ public class PacketPlayerEnterSceneNotify extends GenshinPacket { .setSceneId(player.getSceneId()) .setPos(player.getPos().toProto()) .setSceneBeginTime(System.currentTimeMillis()) - .setType(EnterType.EnterSelf) + .setType(EnterType.ENTER_SELF) .setTargetUid(player.getUid()) .setEnterSceneToken(player.getEnterSceneToken()) .setWorldLevel(player.getWorldLevel()) .setEnterReason(EnterReason.Login.getValue()) .setIsFirstLoginEnterScene(player.isFirstLoginEnterScene()) - .setUnk1(1) - .setUnk2("3-" + player.getUid() + "-" + (int) (System.currentTimeMillis() / 1000) + "-" + 18402) + .setWorldType(1) + .setSceneTransaction("3-" + player.getUid() + "-" + (int) (System.currentTimeMillis() / 1000) + "-" + 18402) .build(); this.setData(proto); } - public PacketPlayerEnterSceneNotify(GenshinPlayer player, EnterType type, EnterReason reason, int newScene, Position newPos) { + public PacketPlayerEnterSceneNotify(Player player, EnterType type, EnterReason reason, int newScene, Position newPos) { this(player, player, type, reason, newScene, newPos); } // Teleport or go somewhere - public PacketPlayerEnterSceneNotify(GenshinPlayer player, GenshinPlayer target, EnterType type, EnterReason reason, int newScene, Position newPos) { + public PacketPlayerEnterSceneNotify(Player player, Player target, EnterType type, EnterReason reason, int newScene, Position newPos) { super(PacketOpcodes.PlayerEnterSceneNotify); player.setEnterSceneToken(Utils.randomRange(1000, 99999)); @@ -62,8 +62,8 @@ public class PacketPlayerEnterSceneNotify extends GenshinPacket { .addSceneTagIdList(109) .addSceneTagIdList(113) .addSceneTagIdList(117) - .setUnk1(1) - .setUnk2(newScene + "-" + target.getUid() + "-" + (int) (System.currentTimeMillis() / 1000) + "-" + 18402) + .setWorldType(1) + .setSceneTransaction(newScene + "-" + target.getUid() + "-" + (int) (System.currentTimeMillis() / 1000) + "-" + 18402) .build(); this.setData(proto); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerGameTimeNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerGameTimeNotify.java index 1dd219e1e..51bcef3a5 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerGameTimeNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerGameTimeNotify.java @@ -1,14 +1,14 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.World; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.game.world.World; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify; -public class PacketPlayerGameTimeNotify extends GenshinPacket { +public class PacketPlayerGameTimeNotify extends BasePacket { - public PacketPlayerGameTimeNotify(GenshinPlayer player) { + public PacketPlayerGameTimeNotify(Player player) { super(PacketOpcodes.PlayerGameTimeNotify); PlayerGameTimeNotify proto = PlayerGameTimeNotify.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerGetForceQuitBanInfoRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerGetForceQuitBanInfoRsp.java index acc030817..057f9f005 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerGetForceQuitBanInfoRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerGetForceQuitBanInfoRsp.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp; -public class PacketPlayerGetForceQuitBanInfoRsp extends GenshinPacket { +public class PacketPlayerGetForceQuitBanInfoRsp extends BasePacket { public PacketPlayerGetForceQuitBanInfoRsp(int retcode) { super(PacketOpcodes.PlayerGetForceQuitBanInfoRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerLevelRewardUpdateNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerLevelRewardUpdateNotify.java index 6a20e288b..972e507c9 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerLevelRewardUpdateNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerLevelRewardUpdateNotify.java @@ -2,11 +2,11 @@ package emu.grasscutter.server.packet.send; import java.util.Set; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify; -public class PacketPlayerLevelRewardUpdateNotify extends GenshinPacket { +public class PacketPlayerLevelRewardUpdateNotify extends BasePacket { public PacketPlayerLevelRewardUpdateNotify(Set<Integer> rewardedLevels) { super(PacketOpcodes.PlayerLevelRewardUpdateNotify); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerLoginRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerLoginRsp.java index 3a796c7ad..18ff6c03e 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerLoginRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerLoginRsp.java @@ -2,7 +2,7 @@ package emu.grasscutter.server.packet.send; import com.google.protobuf.ByteString; import emu.grasscutter.Grasscutter; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp; import emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass; @@ -14,7 +14,7 @@ import java.io.File; import java.net.URL; import java.util.Base64; -public class PacketPlayerLoginRsp extends GenshinPacket { +public class PacketPlayerLoginRsp extends BasePacket { private static QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp regionCache; @@ -40,8 +40,8 @@ public class PacketPlayerLoginRsp extends GenshinPacket { QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp regionQuery = QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp.parseFrom(decodedCurRegion); RegionInfo serverRegion = regionQuery.getRegionInfo().toBuilder() - .setIp((Grasscutter.getConfig().getGameServerOptions().PublicIp.isEmpty() ? Grasscutter.getConfig().getGameServerOptions().Ip : Grasscutter.getConfig().getGameServerOptions().PublicIp)) - .setPort(Grasscutter.getConfig().getGameServerOptions().PublicPort != 0 ? Grasscutter.getConfig().getGameServerOptions().PublicPort : Grasscutter.getConfig().getGameServerOptions().Port) + .setGateserverIp((Grasscutter.getConfig().getGameServerOptions().PublicIp.isEmpty() ? Grasscutter.getConfig().getGameServerOptions().Ip : Grasscutter.getConfig().getGameServerOptions().PublicIp)) + .setGateserverPort(Grasscutter.getConfig().getGameServerOptions().PublicPort != 0 ? Grasscutter.getConfig().getGameServerOptions().PublicPort : Grasscutter.getConfig().getGameServerOptions().Port) .setSecretKey(ByteString.copyFrom(FileUtils.read(Grasscutter.getConfig().KEY_FOLDER + "dispatchSeed.bin"))) .build(); @@ -64,7 +64,7 @@ public class PacketPlayerLoginRsp extends GenshinPacket { .setClientSilenceDataVersion(info.getClientSilenceDataVersion()) .setClientMd5(info.getClientDataMd5()) .setClientSilenceMd5(info.getClientSilenceDataMd5()) - .setResVersionConfig(info.getConfig()) + .setResVersionConfig(info.getResVersionConfig()) .setClientVersionSuffix(info.getClientVersionSuffix()) .setClientSilenceVersionSuffix(info.getClientSilenceVersionSuffix()) .setIsScOpen(false) diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerPropNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerPropNotify.java index 2e2812eb8..4cd708045 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerPropNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerPropNotify.java @@ -1,15 +1,15 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.player.Player; import emu.grasscutter.game.props.PlayerProperty; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify; import emu.grasscutter.utils.ProtoHelper; -public class PacketPlayerPropNotify extends GenshinPacket { +public class PacketPlayerPropNotify extends BasePacket { - public PacketPlayerPropNotify(GenshinPlayer player, PlayerProperty prop) { + public PacketPlayerPropNotify(Player player, PlayerProperty prop) { super(PacketOpcodes.PlayerPropNotify); this.buildHeader(0); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerSetPauseRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerSetPauseRsp.java index e199381f8..7f79c629a 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerSetPauseRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerSetPauseRsp.java @@ -1,9 +1,9 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; -public class PacketPlayerSetPauseRsp extends GenshinPacket { +public class PacketPlayerSetPauseRsp extends BasePacket { public PacketPlayerSetPauseRsp(int clientSequence) { super(PacketOpcodes.PlayerSetPauseRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerStoreNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerStoreNotify.java index a3309a5c1..a3a6ff7b8 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerStoreNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerStoreNotify.java @@ -1,27 +1,27 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.GenshinConstants; +import emu.grasscutter.GameConstants; import emu.grasscutter.Grasscutter; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.inventory.GenshinItem; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.inventory.GameItem; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.ItemOuterClass.Item; import emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify; import emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType; -public class PacketPlayerStoreNotify extends GenshinPacket { +public class PacketPlayerStoreNotify extends BasePacket { - public PacketPlayerStoreNotify(GenshinPlayer player) { + public PacketPlayerStoreNotify(Player player) { super(PacketOpcodes.PlayerStoreNotify); this.buildHeader(2); PlayerStoreNotify.Builder p = PlayerStoreNotify.newBuilder() - .setStoreType(StoreType.StorePack) + .setStoreType(StoreType.STORE_PACK) .setWeightLimit(Grasscutter.getConfig().getGameServerOptions().InventoryLimitAll); - for (GenshinItem item : player.getInventory()) { + for (GameItem item : player.getInventory()) { Item itemProto = item.toProto(); p.addItemList(itemProto); } diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerTimeNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerTimeNotify.java index ad9a869cf..9bd2a1f08 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerTimeNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerTimeNotify.java @@ -1,13 +1,13 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify; -public class PacketPlayerTimeNotify extends GenshinPacket { +public class PacketPlayerTimeNotify extends BasePacket { - public PacketPlayerTimeNotify(GenshinPlayer player) { + public PacketPlayerTimeNotify(Player player) { super(PacketOpcodes.PlayerTimeNotify); PlayerTimeNotify proto = PlayerTimeNotify.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPostEnterSceneRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPostEnterSceneRsp.java index be8dede98..2bdc30dbc 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPostEnterSceneRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPostEnterSceneRsp.java @@ -1,13 +1,13 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp; -public class PacketPostEnterSceneRsp extends GenshinPacket { +public class PacketPostEnterSceneRsp extends BasePacket { - public PacketPostEnterSceneRsp(GenshinPlayer player) { + public PacketPostEnterSceneRsp(Player player) { super(PacketOpcodes.PostEnterSceneRsp); PostEnterSceneRsp p = PostEnterSceneRsp.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPrivateChatNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPrivateChatNotify.java index 60e08827b..94f389521 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPrivateChatNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPrivateChatNotify.java @@ -1,11 +1,11 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo; import emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify; -public class PacketPrivateChatNotify extends GenshinPacket { +public class PacketPrivateChatNotify extends BasePacket { public PacketPrivateChatNotify(int senderId, int recvId, String message) { super(PacketOpcodes.PrivateChatNotify); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketProudSkillChangeNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketProudSkillChangeNotify.java index b089e5c8e..0ba63718a 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketProudSkillChangeNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketProudSkillChangeNotify.java @@ -1,13 +1,13 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.avatar.GenshinAvatar; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.avatar.Avatar; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify; -public class PacketProudSkillChangeNotify extends GenshinPacket { +public class PacketProudSkillChangeNotify extends BasePacket { - public PacketProudSkillChangeNotify(GenshinAvatar avatar) { + public PacketProudSkillChangeNotify(Avatar avatar) { super(PacketOpcodes.ProudSkillChangeNotify); ProudSkillChangeNotify proto = ProudSkillChangeNotify.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketProudSkillExtraLevelNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketProudSkillExtraLevelNotify.java index 127a0ec4f..2c8ac7867 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketProudSkillExtraLevelNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketProudSkillExtraLevelNotify.java @@ -1,13 +1,13 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.avatar.GenshinAvatar; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.avatar.Avatar; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify; -public class PacketProudSkillExtraLevelNotify extends GenshinPacket { +public class PacketProudSkillExtraLevelNotify extends BasePacket { - public PacketProudSkillExtraLevelNotify(GenshinAvatar avatar, int talentIndex) { + public PacketProudSkillExtraLevelNotify(Avatar avatar, int talentIndex) { super(PacketOpcodes.ProudSkillExtraLevelNotify); ProudSkillExtraLevelNotify proto = ProudSkillExtraLevelNotify.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPullPrivateChatRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPullPrivateChatRsp.java index 6d5e829c3..094a1e9c1 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPullPrivateChatRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPullPrivateChatRsp.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp; -public class PacketPullPrivateChatRsp extends GenshinPacket { +public class PacketPullPrivateChatRsp extends BasePacket { public PacketPullPrivateChatRsp() { super(PacketOpcodes.PullPrivateChatRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPullRecentChatRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPullRecentChatRsp.java index 5af6999d5..871534b53 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPullRecentChatRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPullRecentChatRsp.java @@ -1,17 +1,17 @@ package emu.grasscutter.server.packet.send; import emu.grasscutter.Config.GameServerOptions; -import emu.grasscutter.GenshinConstants; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.GameConstants; import emu.grasscutter.Grasscutter; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo; import emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp; import emu.grasscutter.utils.Utils; -public class PacketPullRecentChatRsp extends GenshinPacket { - public PacketPullRecentChatRsp(GenshinPlayer player) { +public class PacketPullRecentChatRsp extends BasePacket { + public PacketPullRecentChatRsp(Player player) { super(PacketOpcodes.PullRecentChatRsp); GameServerOptions serverOptions = Grasscutter.getConfig().getGameServerOptions(); @@ -20,7 +20,7 @@ public class PacketPullRecentChatRsp extends GenshinPacket { if (serverOptions.WelcomeEmotes != null && serverOptions.WelcomeEmotes.length > 0) { ChatInfo welcomeEmote = ChatInfo.newBuilder() .setTime((int) (System.currentTimeMillis() / 1000)) - .setUid(GenshinConstants.SERVER_CONSOLE_UID) + .setUid(GameConstants.SERVER_CONSOLE_UID) .setToUid(player.getUid()) .setIcon(serverOptions.WelcomeEmotes[Utils.randomRange(0, serverOptions.WelcomeEmotes.length - 1)]) .build(); @@ -31,7 +31,7 @@ public class PacketPullRecentChatRsp extends GenshinPacket { if (serverOptions.WelcomeMotd != null && serverOptions.WelcomeMotd.length() > 0) { ChatInfo welcomeMotd = ChatInfo.newBuilder() .setTime((int) (System.currentTimeMillis() / 1000)) - .setUid(GenshinConstants.SERVER_CONSOLE_UID) + .setUid(GameConstants.SERVER_CONSOLE_UID) .setToUid(player.getUid()) .setText(Grasscutter.getConfig().getGameServerOptions().WelcomeMotd) .build(); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketReliquaryUpgradeRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketReliquaryUpgradeRsp.java index 34c9c3d85..14bd76fa6 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketReliquaryUpgradeRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketReliquaryUpgradeRsp.java @@ -2,14 +2,14 @@ package emu.grasscutter.server.packet.send; import java.util.List; -import emu.grasscutter.game.inventory.GenshinItem; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.inventory.GameItem; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp; -public class PacketReliquaryUpgradeRsp extends GenshinPacket { +public class PacketReliquaryUpgradeRsp extends BasePacket { - public PacketReliquaryUpgradeRsp(GenshinItem relic, int rate, int oldLevel, List<Integer> oldAppendPropIdList) { + public PacketReliquaryUpgradeRsp(GameItem relic, int rate, int oldLevel, List<Integer> oldAppendPropIdList) { super(PacketOpcodes.ReliquaryUpgradeRsp); ReliquaryUpgradeRsp proto = ReliquaryUpgradeRsp.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneAreaWeatherNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneAreaWeatherNotify.java index 69c40dba0..91112871d 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneAreaWeatherNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneAreaWeatherNotify.java @@ -1,14 +1,14 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.World; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.game.world.World; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify; -public class PacketSceneAreaWeatherNotify extends GenshinPacket { +public class PacketSceneAreaWeatherNotify extends BasePacket { - public PacketSceneAreaWeatherNotify(GenshinPlayer player) { + public PacketSceneAreaWeatherNotify(Player player) { super(PacketOpcodes.SceneAreaWeatherNotify); SceneAreaWeatherNotify proto = SceneAreaWeatherNotify.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneEntityAppearNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneEntityAppearNotify.java index 3b8a39025..78c17a5d5 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneEntityAppearNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneEntityAppearNotify.java @@ -2,26 +2,26 @@ package emu.grasscutter.server.packet.send; import java.util.Collection; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.entity.GenshinEntity; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.entity.GameEntity; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify; import emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType; -public class PacketSceneEntityAppearNotify extends GenshinPacket { +public class PacketSceneEntityAppearNotify extends BasePacket { - public PacketSceneEntityAppearNotify(GenshinEntity entity) { + public PacketSceneEntityAppearNotify(GameEntity entity) { super(PacketOpcodes.SceneEntityAppearNotify, true); SceneEntityAppearNotify.Builder proto = SceneEntityAppearNotify.newBuilder() - .setAppearType(VisionType.VisionBorn) + .setAppearType(VisionType.VISION_BORN) .addEntityList(entity.toProto()); this.setData(proto.build()); } - public PacketSceneEntityAppearNotify(GenshinEntity entity, VisionType vision, int param) { + public PacketSceneEntityAppearNotify(GameEntity entity, VisionType vision, int param) { super(PacketOpcodes.SceneEntityAppearNotify, true); SceneEntityAppearNotify.Builder proto = SceneEntityAppearNotify.newBuilder() @@ -32,11 +32,11 @@ public class PacketSceneEntityAppearNotify extends GenshinPacket { this.setData(proto.build()); } - public PacketSceneEntityAppearNotify(GenshinPlayer player) { + public PacketSceneEntityAppearNotify(Player player) { this(player.getTeamManager().getCurrentAvatarEntity()); } - public PacketSceneEntityAppearNotify(Collection<GenshinEntity> entities, VisionType visionType) { + public PacketSceneEntityAppearNotify(Collection<GameEntity> entities, VisionType visionType) { super(PacketOpcodes.SceneEntityAppearNotify, true); SceneEntityAppearNotify.Builder proto = SceneEntityAppearNotify.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneEntityDisappearNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneEntityDisappearNotify.java index 65dd8066b..49b334666 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneEntityDisappearNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneEntityDisappearNotify.java @@ -3,15 +3,15 @@ package emu.grasscutter.server.packet.send; import java.util.Collection; import java.util.List; -import emu.grasscutter.game.entity.GenshinEntity; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.entity.GameEntity; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify; import emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType; -public class PacketSceneEntityDisappearNotify extends GenshinPacket { +public class PacketSceneEntityDisappearNotify extends BasePacket { - public PacketSceneEntityDisappearNotify(GenshinEntity entity, VisionType disappearType) { + public PacketSceneEntityDisappearNotify(GameEntity entity, VisionType disappearType) { super(PacketOpcodes.SceneEntityDisappearNotify); SceneEntityDisappearNotify proto = SceneEntityDisappearNotify.newBuilder() @@ -22,7 +22,7 @@ public class PacketSceneEntityDisappearNotify extends GenshinPacket { this.setData(proto); } - public PacketSceneEntityDisappearNotify(Collection<GenshinEntity> entities, VisionType disappearType) { + public PacketSceneEntityDisappearNotify(Collection<GameEntity> entities, VisionType disappearType) { super(PacketOpcodes.SceneEntityDisappearNotify); SceneEntityDisappearNotify.Builder proto = SceneEntityDisappearNotify.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneEntityDrownRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneEntityDrownRsp.java new file mode 100644 index 000000000..20b1f4963 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneEntityDrownRsp.java @@ -0,0 +1,18 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.BasePacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.SceneEntityDrownRspOuterClass.SceneEntityDrownRsp; + +public class PacketSceneEntityDrownRsp extends BasePacket { + + public PacketSceneEntityDrownRsp(int entityId) { + super(PacketOpcodes.SceneEntityDrownRsp); + + SceneEntityDrownRsp proto = SceneEntityDrownRsp.newBuilder().setEntityId(entityId).build(); + + this.setData(proto); + } +} + + diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneEntityMoveNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneEntityMoveNotify.java index c3230f4d4..8a64585dd 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneEntityMoveNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneEntityMoveNotify.java @@ -1,11 +1,11 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo; import emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify; -public class PacketSceneEntityMoveNotify extends GenshinPacket { +public class PacketSceneEntityMoveNotify extends BasePacket { public PacketSceneEntityMoveNotify(EntityMoveInfo moveInfo) { super(PacketOpcodes.SceneEntityMoveNotify, true); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneInitFinishRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneInitFinishRsp.java index 78661f014..e2751a2c9 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneInitFinishRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneInitFinishRsp.java @@ -1,13 +1,13 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp; -public class PacketSceneInitFinishRsp extends GenshinPacket { +public class PacketSceneInitFinishRsp extends BasePacket { - public PacketSceneInitFinishRsp(GenshinPlayer player) { + public PacketSceneInitFinishRsp(Player player) { super(PacketOpcodes.SceneInitFinishRsp, 11); SceneInitFinishRsp p = SceneInitFinishRsp.newBuilder().setEnterSceneToken(player.getEnterSceneToken()).build(); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneKickPlayerRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneKickPlayerRsp.java index 7f0a6a12e..7b15b54d0 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneKickPlayerRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneKickPlayerRsp.java @@ -1,10 +1,11 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.RetcodeOuterClass; import emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp; -public class PacketSceneKickPlayerRsp extends GenshinPacket { +public class PacketSceneKickPlayerRsp extends BasePacket { public PacketSceneKickPlayerRsp(int targetUid) { super(PacketOpcodes.SceneKickPlayerRsp); @@ -20,7 +21,7 @@ public class PacketSceneKickPlayerRsp extends GenshinPacket { super(PacketOpcodes.SceneKickPlayerRsp); SceneKickPlayerRsp proto = SceneKickPlayerRsp.newBuilder() - .setRetcode(1) + .setRetcode(RetcodeOuterClass.Retcode.RET_SVR_ERROR_VALUE) .build(); this.setData(proto); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketScenePlayerInfoNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketScenePlayerInfoNotify.java index 0fa20784e..469a26cff 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketScenePlayerInfoNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketScenePlayerInfoNotify.java @@ -1,13 +1,13 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.World; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.game.world.World; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify; import emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo; -public class PacketScenePlayerInfoNotify extends GenshinPacket { +public class PacketScenePlayerInfoNotify extends BasePacket { public PacketScenePlayerInfoNotify(World world) { super(PacketOpcodes.ScenePlayerInfoNotify); @@ -15,7 +15,7 @@ public class PacketScenePlayerInfoNotify extends GenshinPacket { ScenePlayerInfoNotify.Builder proto = ScenePlayerInfoNotify.newBuilder(); for (int i = 0; i < world.getPlayers().size(); i++) { - GenshinPlayer p = world.getPlayers().get(i); + Player p = world.getPlayers().get(i); ScenePlayerInfo pInfo = ScenePlayerInfo.newBuilder() .setUid(p.getUid()) diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketScenePlayerLocationNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketScenePlayerLocationNotify.java index 2e9fb479d..427e94573 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketScenePlayerLocationNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketScenePlayerLocationNotify.java @@ -1,20 +1,20 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.GenshinScene; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.game.world.Scene; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify; -public class PacketScenePlayerLocationNotify extends GenshinPacket { +public class PacketScenePlayerLocationNotify extends BasePacket { - public PacketScenePlayerLocationNotify(GenshinScene scene) { + public PacketScenePlayerLocationNotify(Scene scene) { super(PacketOpcodes.ScenePlayerLocationNotify); ScenePlayerLocationNotify.Builder proto = ScenePlayerLocationNotify.newBuilder() .setSceneId(scene.getId()); - for (GenshinPlayer p : scene.getPlayers()) { + for (Player p : scene.getPlayers()) { proto.addPlayerLocList(p.getPlayerLocationInfo()); } diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneTeamUpdateNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneTeamUpdateNotify.java index 20e199bc4..ec3fea082 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneTeamUpdateNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneTeamUpdateNotify.java @@ -1,25 +1,25 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; import emu.grasscutter.game.entity.EntityAvatar; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo; import emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar; import emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify; -public class PacketSceneTeamUpdateNotify extends GenshinPacket { +public class PacketSceneTeamUpdateNotify extends BasePacket { - public PacketSceneTeamUpdateNotify(GenshinPlayer player) { + public PacketSceneTeamUpdateNotify(Player player) { super(PacketOpcodes.SceneTeamUpdateNotify); SceneTeamUpdateNotify.Builder proto = SceneTeamUpdateNotify.newBuilder() .setIsInMp(player.getWorld().isMultiplayer()); - for (GenshinPlayer p : player.getWorld().getPlayers()) { + for (Player p : player.getWorld().getPlayers()) { for (EntityAvatar entityAvatar : p.getTeamManager().getActiveTeam()) { SceneTeamAvatar.Builder avatarProto = SceneTeamAvatar.newBuilder() - .setPlayerId(p.getUid()) + .setPlayerUid(p.getUid()) .setAvatarGuid(entityAvatar.getAvatar().getGuid()) .setSceneId(p.getSceneId()) .setEntityId(entityAvatar.getId()) diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneTimeNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneTimeNotify.java index 5af88cf26..874efcc4b 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneTimeNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneTimeNotify.java @@ -1,13 +1,13 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify; -public class PacketSceneTimeNotify extends GenshinPacket { +public class PacketSceneTimeNotify extends BasePacket { - public PacketSceneTimeNotify(GenshinPlayer player) { + public PacketSceneTimeNotify(Player player) { super(PacketOpcodes.SceneTimeNotify); SceneTimeNotify proto = SceneTimeNotify.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneTransToPointRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneTransToPointRsp.java index 4795c5e9f..b421dfe40 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneTransToPointRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneTransToPointRsp.java @@ -1,16 +1,17 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.GameData; import emu.grasscutter.data.custom.ScenePointEntry; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.RetcodeOuterClass; import emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp; import emu.grasscutter.utils.Position; -public class PacketSceneTransToPointRsp extends GenshinPacket { +public class PacketSceneTransToPointRsp extends BasePacket { - public PacketSceneTransToPointRsp(GenshinPlayer player, int pointId, int sceneId) { + public PacketSceneTransToPointRsp(Player player, int pointId, int sceneId) { super(PacketOpcodes.SceneTransToPointRsp); SceneTransToPointRsp proto = SceneTransToPointRsp.newBuilder() @@ -26,7 +27,7 @@ public class PacketSceneTransToPointRsp extends GenshinPacket { super(PacketOpcodes.SceneTransToPointRsp); SceneTransToPointRsp proto = SceneTransToPointRsp.newBuilder() - .setRetcode(1) // Internal server error + .setRetcode(RetcodeOuterClass.Retcode.RET_SVR_ERROR_VALUE) // Internal server error .build(); this.setData(proto); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneUnlockInfoNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneUnlockInfoNotify.java index bd1b30685..223efc776 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneUnlockInfoNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneUnlockInfoNotify.java @@ -1,11 +1,11 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify; import emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo; -public class PacketSceneUnlockInfoNotify extends GenshinPacket { +public class PacketSceneUnlockInfoNotify extends BasePacket { public PacketSceneUnlockInfoNotify() { super(PacketOpcodes.SceneUnlockInfoNotify); // Rename opcode later diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketServerTimeNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketServerTimeNotify.java index a58b634f1..7086873e4 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketServerTimeNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketServerTimeNotify.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify; -public class PacketServerTimeNotify extends GenshinPacket { +public class PacketServerTimeNotify extends BasePacket { public PacketServerTimeNotify() { super(PacketOpcodes.ServerTimeNotify); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSetEquipLockStateRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSetEquipLockStateRsp.java index 7614c449d..612cd9d07 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketSetEquipLockStateRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSetEquipLockStateRsp.java @@ -1,13 +1,13 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.inventory.GenshinItem; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.inventory.GameItem; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp; -public class PacketSetEquipLockStateRsp extends GenshinPacket { +public class PacketSetEquipLockStateRsp extends BasePacket { - public PacketSetEquipLockStateRsp(GenshinItem equip) { + public PacketSetEquipLockStateRsp(GameItem equip) { super(PacketOpcodes.SetEquipLockStateRsp); this.buildHeader(0); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSetNameCardRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSetNameCardRsp.java index b3c77c33f..efc50f023 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketSetNameCardRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSetNameCardRsp.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp; -public class PacketSetNameCardRsp extends GenshinPacket { +public class PacketSetNameCardRsp extends BasePacket { public PacketSetNameCardRsp(int nameCardId) { super(PacketOpcodes.SetNameCardRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerBirthdayRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerBirthdayRsp.java index 8a343bf1d..6c875af56 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerBirthdayRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerBirthdayRsp.java @@ -1,11 +1,12 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp; +import emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass; -public class PacketSetPlayerBirthdayRsp extends GenshinPacket { +public class PacketSetPlayerBirthdayRsp extends BasePacket { public PacketSetPlayerBirthdayRsp(int retCode) { super(PacketOpcodes.SetPlayerBirthdayRsp); @@ -17,7 +18,7 @@ public class PacketSetPlayerBirthdayRsp extends GenshinPacket { this.setData(proto); } - public PacketSetPlayerBirthdayRsp(GenshinPlayer player) { + public PacketSetPlayerBirthdayRsp(Player player) { super(PacketOpcodes.SetPlayerBirthdayRsp); SetPlayerBirthdayRsp proto = SetPlayerBirthdayRsp.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerHeadImageRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerHeadImageRsp.java index 148c536f0..9b736dc3e 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerHeadImageRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerHeadImageRsp.java @@ -1,18 +1,18 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage; import emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp; -public class PacketSetPlayerHeadImageRsp extends GenshinPacket { +public class PacketSetPlayerHeadImageRsp extends BasePacket { - public PacketSetPlayerHeadImageRsp(GenshinPlayer player) { + public PacketSetPlayerHeadImageRsp(Player player) { super(PacketOpcodes.SetPlayerHeadImageRsp); SetPlayerHeadImageRsp proto = SetPlayerHeadImageRsp.newBuilder() - .setAvatar(HeadImage.newBuilder().setAvatarId(player.getHeadImage())) + .setAvatarId(HeadImage.newBuilder().setAvatarId(player.getHeadImage()).getAvatarId()) .build(); this.setData(proto); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerNameRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerNameRsp.java index a40b5115f..935957f70 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerNameRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerNameRsp.java @@ -1,13 +1,13 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp; -public class PacketSetPlayerNameRsp extends GenshinPacket { +public class PacketSetPlayerNameRsp extends BasePacket { - public PacketSetPlayerNameRsp(GenshinPlayer player) { + public PacketSetPlayerNameRsp(Player player) { super(PacketOpcodes.SetPlayerNameRsp); SetPlayerNameRsp proto = SetPlayerNameRsp.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerSignatureRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerSignatureRsp.java index 98ee97b68..9a4361b83 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerSignatureRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerSignatureRsp.java @@ -1,13 +1,13 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp; -public class PacketSetPlayerSignatureRsp extends GenshinPacket { +public class PacketSetPlayerSignatureRsp extends BasePacket { - public PacketSetPlayerSignatureRsp(GenshinPlayer player) { + public PacketSetPlayerSignatureRsp(Player player) { super(PacketOpcodes.SetPlayerSignatureRsp); SetPlayerSignatureRsp proto = SetPlayerSignatureRsp.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSetUpAvatarTeamRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSetUpAvatarTeamRsp.java index 55e530196..66d484248 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketSetUpAvatarTeamRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSetUpAvatarTeamRsp.java @@ -1,14 +1,14 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.TeamInfo; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.game.player.TeamInfo; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp; -public class PacketSetUpAvatarTeamRsp extends GenshinPacket { +public class PacketSetUpAvatarTeamRsp extends BasePacket { - public PacketSetUpAvatarTeamRsp(GenshinPlayer player, int teamId, TeamInfo teamInfo) { + public PacketSetUpAvatarTeamRsp(Player player, int teamId, TeamInfo teamInfo) { super(PacketOpcodes.SetUpAvatarTeamRsp); SetUpAvatarTeamRsp.Builder proto = SetUpAvatarTeamRsp.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSitRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSitRsp.java deleted file mode 100644 index 70893965b..000000000 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketSitRsp.java +++ /dev/null @@ -1,21 +0,0 @@ -package emu.grasscutter.server.packet.send; - -import emu.grasscutter.net.packet.GenshinPacket; -import emu.grasscutter.net.packet.PacketOpcodes; -import emu.grasscutter.net.proto.SitRspOuterClass.SitRsp; -import emu.grasscutter.utils.Position; - -public class PacketSitRsp extends GenshinPacket { - - public PacketSitRsp(long chairId, Position pos, int EntityId) { - super(PacketOpcodes.SitRsp); - - SitRsp proto = SitRsp.newBuilder() - .setEntityId(EntityId) - .setPosition(pos.toProto()) - .setChairId(chairId) - .build(); - - this.setData(proto); - } -} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketStoreItemChangeNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketStoreItemChangeNotify.java index 70f86b782..4d951c0d6 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketStoreItemChangeNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketStoreItemChangeNotify.java @@ -2,35 +2,35 @@ package emu.grasscutter.server.packet.send; import java.util.Collection; -import emu.grasscutter.game.inventory.GenshinItem; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.inventory.GameItem; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify; import emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType; -public class PacketStoreItemChangeNotify extends GenshinPacket { +public class PacketStoreItemChangeNotify extends BasePacket { private PacketStoreItemChangeNotify() { super(PacketOpcodes.StoreItemChangeNotify); } - public PacketStoreItemChangeNotify(GenshinItem item) { + public PacketStoreItemChangeNotify(GameItem item) { this(); StoreItemChangeNotify.Builder proto = StoreItemChangeNotify.newBuilder() - .setStoreType(StoreType.StorePack) + .setStoreType(StoreType.STORE_PACK) .addItemList(item.toProto()); this.setData(proto); } - public PacketStoreItemChangeNotify(Collection<GenshinItem> items) { + public PacketStoreItemChangeNotify(Collection<GameItem> items) { this(); StoreItemChangeNotify.Builder proto = StoreItemChangeNotify.newBuilder() - .setStoreType(StoreType.StorePack); + .setStoreType(StoreType.STORE_PACK); - items.stream().forEach(item -> proto.addItemList(item.toProto())); + items.forEach(item -> proto.addItemList(item.toProto())); this.setData(proto); } diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketStoreItemDelNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketStoreItemDelNotify.java index 0bd585720..197d4a32a 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketStoreItemDelNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketStoreItemDelNotify.java @@ -2,33 +2,33 @@ package emu.grasscutter.server.packet.send; import java.util.Collection; -import emu.grasscutter.game.inventory.GenshinItem; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.inventory.GameItem; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify; import emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType; -public class PacketStoreItemDelNotify extends GenshinPacket { +public class PacketStoreItemDelNotify extends BasePacket { private PacketStoreItemDelNotify() { super(PacketOpcodes.StoreItemDelNotify); } - public PacketStoreItemDelNotify(GenshinItem item) { + public PacketStoreItemDelNotify(GameItem item) { this(); StoreItemDelNotify.Builder proto = StoreItemDelNotify.newBuilder() - .setStoreType(StoreType.StorePack) + .setStoreType(StoreType.STORE_PACK) .addGuidList(item.getGuid()); this.setData(proto); } - public PacketStoreItemDelNotify(Collection<GenshinItem> items) { + public PacketStoreItemDelNotify(Collection<GameItem> items) { this(); StoreItemDelNotify.Builder proto = StoreItemDelNotify.newBuilder() - .setStoreType(StoreType.StorePack); + .setStoreType(StoreType.STORE_PACK); items.stream().forEach(item -> proto.addGuidList(item.getGuid())); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketStoreWeightLimitNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketStoreWeightLimitNotify.java index 04668b00e..61b51948b 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketStoreWeightLimitNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketStoreWeightLimitNotify.java @@ -1,18 +1,18 @@ package emu.grasscutter.server.packet.send; import emu.grasscutter.Grasscutter; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType; import emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify; -public class PacketStoreWeightLimitNotify extends GenshinPacket { +public class PacketStoreWeightLimitNotify extends BasePacket { public PacketStoreWeightLimitNotify() { super(PacketOpcodes.StoreWeightLimitNotify); StoreWeightLimitNotify p = StoreWeightLimitNotify.newBuilder() - .setStoreType(StoreType.StorePack) + .setStoreType(StoreType.STORE_PACK) .setWeightLimit(Grasscutter.getConfig().getGameServerOptions().InventoryLimitAll) .setWeaponCountLimit(Grasscutter.getConfig().getGameServerOptions().InventoryLimitWeapon) .setReliquaryCountLimit(Grasscutter.getConfig().getGameServerOptions().InventoryLimitRelic) diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSyncScenePlayTeamEntityNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSyncScenePlayTeamEntityNotify.java index 2983adbcb..c50b7c0a8 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketSyncScenePlayTeamEntityNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSyncScenePlayTeamEntityNotify.java @@ -1,13 +1,13 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify; -public class PacketSyncScenePlayTeamEntityNotify extends GenshinPacket { +public class PacketSyncScenePlayTeamEntityNotify extends BasePacket { - public PacketSyncScenePlayTeamEntityNotify(GenshinPlayer player) { + public PacketSyncScenePlayTeamEntityNotify(Player player) { super(PacketOpcodes.SyncScenePlayTeamEntityNotify); SyncScenePlayTeamEntityNotify proto = SyncScenePlayTeamEntityNotify.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSyncTeamEntityNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSyncTeamEntityNotify.java index 2c0bae908..ebb38df13 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketSyncTeamEntityNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSyncTeamEntityNotify.java @@ -1,22 +1,22 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo; import emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify; import emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo; -public class PacketSyncTeamEntityNotify extends GenshinPacket { +public class PacketSyncTeamEntityNotify extends BasePacket { - public PacketSyncTeamEntityNotify(GenshinPlayer player) { + public PacketSyncTeamEntityNotify(Player player) { super(PacketOpcodes.SyncTeamEntityNotify); SyncTeamEntityNotify.Builder proto = SyncTeamEntityNotify.newBuilder() .setSceneId(player.getSceneId()); if (player.getWorld().isMultiplayer()) { - for (GenshinPlayer p : player.getWorld().getPlayers()) { + for (Player p : player.getWorld().getPlayers()) { // Skip if same player if (player == p) { continue; diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketTakePlayerLevelRewardRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketTakePlayerLevelRewardRsp.java index 5a50d0806..c944a18d8 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketTakePlayerLevelRewardRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketTakePlayerLevelRewardRsp.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp; -public class PacketTakePlayerLevelRewardRsp extends GenshinPacket { +public class PacketTakePlayerLevelRewardRsp extends BasePacket { public PacketTakePlayerLevelRewardRsp(int level, int rewardId) { super(PacketOpcodes.TakePlayerLevelRewardRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketTakeoffEquipRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketTakeoffEquipRsp.java index 7250491e2..45297b29f 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketTakeoffEquipRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketTakeoffEquipRsp.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp; -public class PacketTakeoffEquipRsp extends GenshinPacket { +public class PacketTakeoffEquipRsp extends BasePacket { public PacketTakeoffEquipRsp(long avatarGuid, int slot) { super(PacketOpcodes.TakeoffEquipRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketTowerAllDataRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketTowerAllDataRsp.java index cb0d75abb..2bd1d0171 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketTowerAllDataRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketTowerAllDataRsp.java @@ -1,12 +1,12 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.TowerAllDataRspOuterClass.TowerAllDataRsp; import emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord; import emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord; -public class PacketTowerAllDataRsp extends GenshinPacket { +public class PacketTowerAllDataRsp extends BasePacket { public PacketTowerAllDataRsp() { super(PacketOpcodes.TowerAllDataRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketUnlockAvatarTalentRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketUnlockAvatarTalentRsp.java index 7c87f14e3..b980b9c89 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketUnlockAvatarTalentRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketUnlockAvatarTalentRsp.java @@ -1,13 +1,13 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.avatar.GenshinAvatar; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.avatar.Avatar; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp; -public class PacketUnlockAvatarTalentRsp extends GenshinPacket { +public class PacketUnlockAvatarTalentRsp extends BasePacket { - public PacketUnlockAvatarTalentRsp(GenshinAvatar avatar, int talentId) { + public PacketUnlockAvatarTalentRsp(Avatar avatar, int talentId) { super(PacketOpcodes.UnlockAvatarTalentRsp); UnlockAvatarTalentRsp proto = UnlockAvatarTalentRsp.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketUnlockNameCardNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketUnlockNameCardNotify.java index 9bbd7d5c3..4bb2aec7a 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketUnlockNameCardNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketUnlockNameCardNotify.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify; -public class PacketUnlockNameCardNotify extends GenshinPacket { +public class PacketUnlockNameCardNotify extends BasePacket { public PacketUnlockNameCardNotify(int nameCard) { super(PacketOpcodes.UnlockNameCardNotify); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketUseItemRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketUseItemRsp.java index 0069ee114..f6722bf56 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketUseItemRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketUseItemRsp.java @@ -1,13 +1,14 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.inventory.GenshinItem; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.inventory.GameItem; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.RetcodeOuterClass; import emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp; -public class PacketUseItemRsp extends GenshinPacket { +public class PacketUseItemRsp extends BasePacket { - public PacketUseItemRsp(long targetGuid, GenshinItem useItem) { + public PacketUseItemRsp(long targetGuid, GameItem useItem) { super(PacketOpcodes.UseItemRsp); UseItemRsp proto = UseItemRsp.newBuilder() @@ -22,7 +23,7 @@ public class PacketUseItemRsp extends GenshinPacket { public PacketUseItemRsp() { super(PacketOpcodes.UseItemRsp); - UseItemRsp proto = UseItemRsp.newBuilder().setRetcode(1).build(); + UseItemRsp proto = UseItemRsp.newBuilder().setRetcode(RetcodeOuterClass.Retcode.RET_SVR_ERROR_VALUE).build(); this.setData(proto); } diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketWeaponAwakenRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketWeaponAwakenRsp.java index 6ffba63fa..77a4e21ed 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketWeaponAwakenRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketWeaponAwakenRsp.java @@ -1,14 +1,14 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.avatar.GenshinAvatar; -import emu.grasscutter.game.inventory.GenshinItem; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.avatar.Avatar; +import emu.grasscutter.game.inventory.GameItem; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp; -public class PacketWeaponAwakenRsp extends GenshinPacket { +public class PacketWeaponAwakenRsp extends BasePacket { - public PacketWeaponAwakenRsp(GenshinAvatar avatar, GenshinItem item, GenshinItem feedWeapon, int oldRefineLevel) { + public PacketWeaponAwakenRsp(Avatar avatar, GameItem item, GameItem feedWeapon, int oldRefineLevel) { super(PacketOpcodes.WeaponAwakenRsp); WeaponAwakenRsp.Builder proto = WeaponAwakenRsp.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketWeaponPromoteRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketWeaponPromoteRsp.java index f647bd1ff..02f02eab7 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketWeaponPromoteRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketWeaponPromoteRsp.java @@ -1,13 +1,13 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.inventory.GenshinItem; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.inventory.GameItem; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp; -public class PacketWeaponPromoteRsp extends GenshinPacket { +public class PacketWeaponPromoteRsp extends BasePacket { - public PacketWeaponPromoteRsp(GenshinItem item, int oldPromoteLevel) { + public PacketWeaponPromoteRsp(GameItem item, int oldPromoteLevel) { super(PacketOpcodes.WeaponPromoteRsp); WeaponPromoteRsp proto = WeaponPromoteRsp.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketWeaponUpgradeRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketWeaponUpgradeRsp.java index b00accb60..2e0505d0e 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketWeaponUpgradeRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketWeaponUpgradeRsp.java @@ -2,15 +2,15 @@ package emu.grasscutter.server.packet.send; import java.util.List; -import emu.grasscutter.game.inventory.GenshinItem; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.inventory.GameItem; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam; import emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp; -public class PacketWeaponUpgradeRsp extends GenshinPacket { +public class PacketWeaponUpgradeRsp extends BasePacket { - public PacketWeaponUpgradeRsp(GenshinItem item, int oldLevel, List<ItemParam> leftoverOres) { + public PacketWeaponUpgradeRsp(GameItem item, int oldLevel, List<ItemParam> leftoverOres) { super(PacketOpcodes.WeaponUpgradeRsp); WeaponUpgradeRsp proto = WeaponUpgradeRsp.newBuilder() diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketWearEquipRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketWearEquipRsp.java index 26e48566c..090e6f7bd 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketWearEquipRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketWearEquipRsp.java @@ -1,10 +1,10 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp; -public class PacketWearEquipRsp extends GenshinPacket { +public class PacketWearEquipRsp extends BasePacket { public PacketWearEquipRsp(long avatarGuid, long equipGuid) { super(PacketOpcodes.WearEquipRsp); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketWorldDataNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketWorldDataNotify.java index 9a5aeb88d..159ca42a1 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketWorldDataNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketWorldDataNotify.java @@ -1,12 +1,12 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.World; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.world.World; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.PropValueOuterClass.PropValue; import emu.grasscutter.net.proto.WorldDataNotifyOuterClass.WorldDataNotify; -public class PacketWorldDataNotify extends GenshinPacket { +public class PacketWorldDataNotify extends BasePacket { public PacketWorldDataNotify(World world) { super(PacketOpcodes.WorldDataNotify); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerDieNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerDieNotify.java index f67ff0d57..4f9c839d9 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerDieNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerDieNotify.java @@ -1,11 +1,11 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType; import emu.grasscutter.net.proto.WorldPlayerDieNotifyOuterClass.WorldPlayerDieNotify; -public class PacketWorldPlayerDieNotify extends GenshinPacket { +public class PacketWorldPlayerDieNotify extends BasePacket { public PacketWorldPlayerDieNotify(PlayerDieType playerDieType, int killerId) { super(PacketOpcodes.WorldPlayerDieNotify); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerInfoNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerInfoNotify.java index 709a128d2..64fef4f3e 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerInfoNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerInfoNotify.java @@ -1,12 +1,12 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.World; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.game.world.World; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify; -public class PacketWorldPlayerInfoNotify extends GenshinPacket { +public class PacketWorldPlayerInfoNotify extends BasePacket { public PacketWorldPlayerInfoNotify(World world) { super(PacketOpcodes.WorldPlayerInfoNotify); @@ -14,7 +14,7 @@ public class PacketWorldPlayerInfoNotify extends GenshinPacket { WorldPlayerInfoNotify.Builder proto = WorldPlayerInfoNotify.newBuilder(); for (int i = 0; i < world.getPlayers().size(); i++) { - GenshinPlayer p = world.getPlayers().get(i); + Player p = world.getPlayers().get(i); proto.addPlayerInfoList(p.getOnlinePlayerInfo()); proto.addPlayerUidList(p.getUid()); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerLocationNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerLocationNotify.java index 1bb09f8db..0b6d3521c 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerLocationNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerLocationNotify.java @@ -1,20 +1,20 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.World; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.game.world.World; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify; -public class PacketWorldPlayerLocationNotify extends GenshinPacket { +public class PacketWorldPlayerLocationNotify extends BasePacket { public PacketWorldPlayerLocationNotify(World world) { super(PacketOpcodes.WorldPlayerLocationNotify); WorldPlayerLocationNotify.Builder proto = WorldPlayerLocationNotify.newBuilder(); - for (GenshinPlayer p : world.getPlayers()) { - proto.addPlayerLocList(p.getWorldPlayerLocationInfo()); + for (Player p : world.getPlayers()) { + proto.addPlayerWorldLocList(p.getWorldPlayerLocationInfo()); } this.setData(proto); diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerRTTNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerRTTNotify.java index 1154b3ee3..0ba3234d7 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerRTTNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerRTTNotify.java @@ -1,20 +1,20 @@ package emu.grasscutter.server.packet.send; -import emu.grasscutter.game.GenshinPlayer; -import emu.grasscutter.game.World; -import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.game.world.World; +import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo; import emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify; -public class PacketWorldPlayerRTTNotify extends GenshinPacket { +public class PacketWorldPlayerRTTNotify extends BasePacket { public PacketWorldPlayerRTTNotify(World world) { super(PacketOpcodes.WorldPlayerRTTNotify); WorldPlayerRTTNotify.Builder proto = WorldPlayerRTTNotify.newBuilder(); - for (GenshinPlayer player : world.getPlayers()) { + for (Player player : world.getPlayers()) { proto.addPlayerRttList( PlayerRTTInfo.newBuilder() .setUid(player.getUid()) diff --git a/src/main/java/emu/grasscutter/task/Task.java b/src/main/java/emu/grasscutter/task/Task.java new file mode 100644 index 000000000..34638a777 --- /dev/null +++ b/src/main/java/emu/grasscutter/task/Task.java @@ -0,0 +1,30 @@ +package emu.grasscutter.task; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + + +/* +* So what is cron expression? +The format of a Cron expression is as follows. +Second Minute Hour Day Month Week Year +Seconds: 0-59 +Minute: 0-59 +hour: 0-23 +Day: 1-31 +Month: 1-12 +Week: 1-7 (0-6 sometimes) +Year: Specify your own + +If you want to express every second or every minute or something like that, use the * symbol in that position; +if you want to express more than one such as every 15 minutes and every 30 minutes, you can write:`15, 30`. + +For the rest of the wildcard characters, please Google them yourself +*/ + +@Retention(RetentionPolicy.RUNTIME) +public @interface Task { + String taskName() default "NO_NAME"; + String taskCronExpression() default "0 0 0 0 0 ?"; + String triggerName() default "NO_NAME"; +} diff --git a/src/main/java/emu/grasscutter/task/TaskHandler.java b/src/main/java/emu/grasscutter/task/TaskHandler.java new file mode 100644 index 000000000..e1a160a07 --- /dev/null +++ b/src/main/java/emu/grasscutter/task/TaskHandler.java @@ -0,0 +1,11 @@ +package emu.grasscutter.task; + +import org.quartz.Job; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +public interface TaskHandler extends Job { + default void execute(JobExecutionContext context) throws JobExecutionException { + + } +} diff --git a/src/main/java/emu/grasscutter/task/TaskMap.java b/src/main/java/emu/grasscutter/task/TaskMap.java new file mode 100644 index 000000000..077ff1f59 --- /dev/null +++ b/src/main/java/emu/grasscutter/task/TaskMap.java @@ -0,0 +1,94 @@ +package emu.grasscutter.task; + +import emu.grasscutter.Grasscutter; +import emu.grasscutter.game.Account; +import emu.grasscutter.game.player.Player; + +import org.quartz.CronScheduleBuilder; +import org.quartz.CronTrigger; +import org.quartz.JobBuilder; +import org.quartz.JobDetail; +import org.quartz.Scheduler; +import org.quartz.SchedulerException; +import org.quartz.SchedulerFactory; +import org.quartz.Trigger; +import org.quartz.TriggerBuilder; +import org.quartz.impl.StdSchedulerFactory; +import org.quartz.spi.MutableTrigger; +import org.reflections.Reflections; + +import java.util.*; + +@SuppressWarnings({"UnusedReturnValue", "unused"}) +public final class TaskMap { + private final Map<String, TaskHandler> tasks = new HashMap<>(); + private final Map<String, Task> annotations = new HashMap<>(); + private final SchedulerFactory schedulerFactory = new StdSchedulerFactory(); + + public TaskMap() { + this(false); + } + + public TaskMap(boolean scan) { + if (scan) this.scan(); + } + + public static TaskMap getInstance() { + return Grasscutter.getGameServer().getTaskMap(); + } + + public TaskMap registerTask(String taskName, TaskHandler task) { + Task annotation = task.getClass().getAnnotation(Task.class); + this.annotations.put(taskName, annotation); + this.tasks.put(taskName, task); + + // register task + try { + Scheduler scheduler = schedulerFactory.getScheduler(); + JobDetail job = JobBuilder + .newJob(task.getClass()) + .withIdentity(taskName) + .build(); + + Trigger convTrigger = TriggerBuilder.newTrigger() + .withIdentity(annotation.triggerName()) + .withSchedule(CronScheduleBuilder.cronSchedule(annotation.taskCronExpression())) + .build(); + + scheduler.scheduleJob(job, convTrigger); + scheduler.start(); + } catch (SchedulerException e) { + e.printStackTrace(); + } + + return this; + } + + public List<TaskHandler> getHandlersAsList() { + return new LinkedList<>(this.tasks.values()); + } + + public HashMap<String, TaskHandler> getHandlers() { + return new LinkedHashMap<>(this.tasks); + } + + public TaskHandler getHandler(String taskName) { + return this.tasks.get(taskName); + } + + private void scan() { + Reflections reflector = Grasscutter.reflector; + Set<Class<?>> classes = reflector.getTypesAnnotatedWith(Task.class); + classes.forEach(annotated -> { + try { + Task taskData = annotated.getAnnotation(Task.class); + Object object = annotated.newInstance(); + if (object instanceof TaskHandler) + this.registerTask(taskData.taskName(), (TaskHandler) object); + else Grasscutter.getLogger().error("Class " + annotated.getName() + " is not a TaskHandler!"); + } catch (Exception exception) { + Grasscutter.getLogger().error("Failed to register task handler for " + annotated.getSimpleName(), exception); + } + }); + } +} diff --git a/src/main/java/emu/grasscutter/task/tasks/MoonCard.java b/src/main/java/emu/grasscutter/task/tasks/MoonCard.java new file mode 100644 index 000000000..45c04586e --- /dev/null +++ b/src/main/java/emu/grasscutter/task/tasks/MoonCard.java @@ -0,0 +1,27 @@ +package emu.grasscutter.task.tasks; + +import emu.grasscutter.database.DatabaseManager; +import emu.grasscutter.game.player.Player; +import emu.grasscutter.task.Task; +import emu.grasscutter.task.TaskHandler; + +import java.util.List; + +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +@Task(taskName = "MoonCard", taskCronExpression = "0 0 0 * * ?", triggerName = "MoonCardTrigger") +// taskCronExpression: Fixed time period: 0:0:0 every day (twenty-four hour system) +public final class MoonCard implements TaskHandler { + @Override + public void execute(JobExecutionContext context) throws JobExecutionException { + List<Player> players = DatabaseManager.getDatastore().find(Player.class).stream().toList(); + for (Player player : players) { + if (player.isOnline()) { + if (player.inMoonCard()) { + player.getTodayMoonCard(); + } + } + } + } +} diff --git a/src/main/java/emu/grasscutter/tools/Tools.java b/src/main/java/emu/grasscutter/tools/Tools.java index 1afcc1ebe..d0ac55c7d 100644 --- a/src/main/java/emu/grasscutter/tools/Tools.java +++ b/src/main/java/emu/grasscutter/tools/Tools.java @@ -18,9 +18,9 @@ import java.util.stream.Collectors; import com.google.gson.reflect.TypeToken; -import emu.grasscutter.GenshinConstants; +import emu.grasscutter.GameConstants; import emu.grasscutter.Grasscutter; -import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.GameData; import emu.grasscutter.data.ResourceLoader; import emu.grasscutter.data.def.AvatarData; import emu.grasscutter.data.def.ItemData; @@ -45,48 +45,48 @@ public final class Tools { DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy/MM/dd HH:mm:ss"); LocalDateTime now = LocalDateTime.now(); - writer.println("// Genshin Impact " + GenshinConstants.VERSION + " GM Handbook"); + writer.println("// Grasscutter " + GameConstants.VERSION + " GM Handbook"); writer.println("// Created " + dtf.format(now) + System.lineSeparator() + System.lineSeparator()); - list = new ArrayList<>(GenshinData.getAvatarDataMap().keySet()); + list = new ArrayList<>(GameData.getAvatarDataMap().keySet()); Collections.sort(list); writer.println("// Avatars"); for (Integer id : list) { - AvatarData data = GenshinData.getAvatarDataMap().get(id); + AvatarData data = GameData.getAvatarDataMap().get(id); writer.println(data.getId() + " : " + map.get(data.getNameTextMapHash())); } writer.println(); - list = new ArrayList<>(GenshinData.getItemDataMap().keySet()); + list = new ArrayList<>(GameData.getItemDataMap().keySet()); Collections.sort(list); writer.println("// Items"); for (Integer id : list) { - ItemData data = GenshinData.getItemDataMap().get(id); + ItemData data = GameData.getItemDataMap().get(id); writer.println(data.getId() + " : " + map.get(data.getNameTextMapHash())); } writer.println(); writer.println("// Scenes"); - list = new ArrayList<>(GenshinData.getSceneDataMap().keySet()); + list = new ArrayList<>(GameData.getSceneDataMap().keySet()); Collections.sort(list); for (Integer id : list) { - SceneData data = GenshinData.getSceneDataMap().get(id); + SceneData data = GameData.getSceneDataMap().get(id); writer.println(data.getId() + " : " + data.getScriptData()); } writer.println(); writer.println("// Monsters"); - list = new ArrayList<>(GenshinData.getMonsterDataMap().keySet()); + list = new ArrayList<>(GameData.getMonsterDataMap().keySet()); Collections.sort(list); for (Integer id : list) { - MonsterData data = GenshinData.getMonsterDataMap().get(id); + MonsterData data = GameData.getMonsterDataMap().get(id); writer.println(data.getId() + " : " + map.get(data.getNameTextMapHash())); } } diff --git a/src/main/java/emu/grasscutter/utils/Crypto.java b/src/main/java/emu/grasscutter/utils/Crypto.java index 2d3e96c16..e6d260e94 100644 --- a/src/main/java/emu/grasscutter/utils/Crypto.java +++ b/src/main/java/emu/grasscutter/utils/Crypto.java @@ -34,7 +34,7 @@ public final class Crypto { public static void extractSecretKeyBuffer(byte[] data) { try { GetPlayerTokenRsp p = GetPlayerTokenRsp.parseFrom(data); - FileUtils.write(Grasscutter.getConfig().KEY_FOLDER + "secretKeyBuffer.bin", p.getSecretKeyBuffer().toByteArray()); + FileUtils.write(Grasscutter.getConfig().KEY_FOLDER + "secretKeyBuffer.bin", p.getSecretKeyBytes().toByteArray()); Grasscutter.getLogger().info("Secret Key: " + p.getSecretKey()); } catch (Exception e) { Grasscutter.getLogger().error("Crypto error.", e); diff --git a/src/main/java/emu/grasscutter/utils/DateHelper.java b/src/main/java/emu/grasscutter/utils/DateHelper.java new file mode 100644 index 000000000..7005d9457 --- /dev/null +++ b/src/main/java/emu/grasscutter/utils/DateHelper.java @@ -0,0 +1,16 @@ +package emu.grasscutter.utils; + +import java.util.Date; +import java.util.Calendar; + +public final class DateHelper { + public static Date onlyYearMonthDay(Date now) { + Calendar calendar = Calendar.getInstance(); + calendar.setTime(now); + calendar.set(Calendar.HOUR_OF_DAY, 0); + calendar.set(Calendar.MINUTE, 0); + calendar.set(Calendar.SECOND, 0); + calendar.set(Calendar.MILLISECOND, 0); + return calendar.getTime(); + } +} diff --git a/src/main/java/emu/grasscutter/utils/Utils.java b/src/main/java/emu/grasscutter/utils/Utils.java index 16b9c344b..8129a1188 100644 --- a/src/main/java/emu/grasscutter/utils/Utils.java +++ b/src/main/java/emu/grasscutter/utils/Utils.java @@ -174,11 +174,11 @@ public final class Utils { // Check for resources folder. if(!fileExists(resourcesFolder)) { logger.info("Creating resources folder..."); - logger.info("Place a copy of 'GenshinData' in the resources folder."); + logger.info("Place a copy of 'BinOutput' and 'ExcelBinOutput' in the resources folder."); createFolder(resourcesFolder); exit = true; } - // Check for GenshinData. + // Check for BinOutput + ExcelBinOuput. if(!fileExists(resourcesFolder + "BinOutput") || !fileExists(resourcesFolder + "ExcelBinOutput")) { logger.info("Place a copy of 'BinOutput' and 'ExcelBinOutput' in the resources folder.");